Package software.amazon.awssdk.profiles
Enum ProfileFileSystemSetting
- java.lang.Object
-
- java.lang.Enum<ProfileFileSystemSetting>
-
- software.amazon.awssdk.profiles.ProfileFileSystemSetting
-
- All Implemented Interfaces:
Serializable,Comparable<ProfileFileSystemSetting>,SystemSetting
@SdkProtectedApi public enum ProfileFileSystemSetting extends Enum<ProfileFileSystemSetting> implements SystemSetting
System settings for loading configuration from profile files.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AWS_CONFIG_FILEConfigure the default configuration file used in the ProfileFile.AWS_PROFILEConfigure the default profile that should be loaded from theAWS_CONFIG_FILEAWS_SHARED_CREDENTIALS_FILEConfigure the default credentials file used in the ProfileFile.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultValue()StringenvironmentVariable()Stringproperty()static ProfileFileSystemSettingvalueOf(String name)Returns the enum constant of this type with the specified name.static ProfileFileSystemSetting[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface software.amazon.awssdk.utils.SystemSetting
getBooleanValue, getBooleanValueOrThrow, getIntegerValue, getIntegerValueOrThrow, getNonDefaultStringValue, getStringValue, getStringValueOrThrow
-
-
-
-
Enum Constant Detail
-
AWS_CONFIG_FILE
public static final ProfileFileSystemSetting AWS_CONFIG_FILE
Configure the default configuration file used in the ProfileFile. When not explicitly overridden in a client (eg. by specifying the region or credentials provider), this will be the location used when an AWS client is created. See http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html for more information on configuring the SDK via a configuration file.
-
AWS_SHARED_CREDENTIALS_FILE
public static final ProfileFileSystemSetting AWS_SHARED_CREDENTIALS_FILE
Configure the default credentials file used in the ProfileFile. When not explicitly overridden in a client (eg. by specifying the region or credentials provider), this will be the location used when an AWS client is created. See http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html for more information on configuring the SDK via a credentials file.
-
AWS_PROFILE
public static final ProfileFileSystemSetting AWS_PROFILE
Configure the default profile that should be loaded from theAWS_CONFIG_FILE- See Also:
AWS_CONFIG_FILE
-
-
Method Detail
-
values
public static ProfileFileSystemSetting[] 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 (ProfileFileSystemSetting c : ProfileFileSystemSetting.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProfileFileSystemSetting 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
-
property
public String property()
- Specified by:
propertyin interfaceSystemSetting
-
environmentVariable
public String environmentVariable()
- Specified by:
environmentVariablein interfaceSystemSetting
-
defaultValue
public String defaultValue()
- Specified by:
defaultValuein interfaceSystemSetting
-
-