Enum ProfileSection
- java.lang.Object
-
- java.lang.Enum<ProfileSection>
-
- software.amazon.awssdk.profiles.internal.ProfileSection
-
- All Implemented Interfaces:
Serializable,Comparable<ProfileSection>
@SdkInternalApi public enum ProfileSection extends Enum<ProfileSection>
Enum describing all the valid section names supported by SDK. The section declares that the attributes that follow are part of a named collection of attributes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SERVICESA `services` section declares a group of service-specific configurations that can be referenced by profiles.SSO_SESSIONAn `sso-session` section declares that the attributes that follow (until another section definition is encountered) are part of a named collection of attributes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProfileSectionfromPropertyKeyName(String propertyName)static ProfileSectionfromSectionTitle(String sectionTitle)StringgetPropertyKeyName()StringgetSectionTitle()static ProfileSectionvalueOf(String name)Returns the enum constant of this type with the specified name.static ProfileSection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SSO_SESSION
public static final ProfileSection SSO_SESSION
An `sso-session` section declares that the attributes that follow (until another section definition is encountered) are part of a named collection of attributes. This `sso-session` section is referenced by the user when configuring a profile to derive an SSO token.
-
SERVICES
public static final ProfileSection SERVICES
A `services` section declares a group of service-specific configurations that can be referenced by profiles. Service sub-sections use standardized names derived from the AWS service identifiers.
-
-
Method Detail
-
values
public static ProfileSection[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProfileSection c : ProfileSection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProfileSection valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromSectionTitle
public static ProfileSection fromSectionTitle(String sectionTitle)
- Parameters:
sectionTitle- The section title in the config or credential file.- Returns:
- ProfileSection enum that has title name as sectionTitle
-
fromPropertyKeyName
public static ProfileSection fromPropertyKeyName(String propertyName)
- Parameters:
propertyName- The property definition of a key that points to a Section.- Returns:
- ProfileSection enum that corresponds to a propertyKeyName for the given propertyName.
-
getSectionTitle
public String getSectionTitle()
- Returns:
- Gets the section title name for the given
ProfileSection.
-
getPropertyKeyName
public String getPropertyKeyName()
- Returns:
- Gets the property Hey name for the given
ProfileSection.
-
-