Enum ProfileSection

java.lang.Object
java.lang.Enum<ProfileSection>
software.amazon.awssdk.profiles.internal.ProfileSection
All Implemented Interfaces:
Serializable, Comparable<ProfileSection>

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 Details

    • 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.
  • Method Details

    • values

      public static ProfileSection[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - 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.