Package software.amazon.awssdk.core
Enum SdkSystemSetting
- java.lang.Object
- 
- java.lang.Enum<SdkSystemSetting>
- 
- software.amazon.awssdk.core.SdkSystemSetting
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<SdkSystemSetting>,- SystemSetting
 
 public enum SdkSystemSetting extends Enum<SdkSystemSetting> implements SystemSetting System properties to configure the SDK runtime.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ASYNC_HTTP_SERVICE_IMPLExplicitly identify the default Async HTTP implementation the SDK will use.AWS_ACCESS_KEY_IDConfigure the AWS access key ID.AWS_ACCOUNT_IDConfigure the AWS account id associated with credentials supplied through system properties.AWS_ACCOUNT_ID_ENDPOINT_MODEWhichAccountIdEndpointModeto use, case insensitiveAWS_AUTH_SCHEME_PREFERENCEConfigure the preferred auth scheme to use.AWS_CONTAINER_AUTHORIZATION_TOKENAn authorization token to pass to a container metadata service, only used whenAWS_CONTAINER_CREDENTIALS_FULL_URIis specified.AWS_CONTAINER_AUTHORIZATION_TOKEN_FILEThe absolute file path containing the authorization token in plain text to pass to a container metadata service, only used whenAWS_CONTAINER_CREDENTIALS_FULL_URIis specified.AWS_CONTAINER_CREDENTIALS_FULL_URIThe full URI path to a localhost metadata service to be used.AWS_CONTAINER_CREDENTIALS_RELATIVE_URIThe elastic container metadata service path that should be called by the ContainerCredentialsProvider when loading credentials form the container metadata service.AWS_CONTAINER_SERVICE_ENDPOINTThe elastic container metadata service endpoint that should be called by the ContainerCredentialsProvider when loading data from the container metadata service.AWS_DEFAULTS_MODEWhichDefaultsModeto use, case insensitiveAWS_DISABLE_REQUEST_COMPRESSIONWhether request compression is disabled for operations marked with the RequestCompression trait.AWS_EC2_METADATA_DISABLEDWhether to load information such as credentials, regions from EC2 Metadata instance service.AWS_EC2_METADATA_SERVICE_ENDPOINTThe EC2 instance metadata service endpoint.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODEAWS_EC2_METADATA_V1_DISABLEDWhether to disable fallback to insecure EC2 Metadata instance service v1 on errors or timeouts.AWS_ENDPOINT_DISCOVERY_ENABLEDWhether endpoint discovery should be enabled.AWS_EXECUTION_ENVThe execution environment of the SDK user.AWS_MAX_ATTEMPTSDefines the default value forRetryPolicy.Builder.numRetries(Integer), if the retry count is not overridden in the retry policy configured viaClientOverrideConfiguration.Builder.retryPolicy(RetryPolicy).AWS_METADATA_SERVICE_TIMEOUTThe number of seconds (either as an integer or double) before a connection to the instance metadata service should time out.AWS_PARTITIONS_FILEDefines a file path from which partition metadata should be loaded.AWS_REGIONConfigure the default region.AWS_REQUEST_CHECKSUM_CALCULATIONThe request checksum calculation setting.AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTESDefines the minimum compression size in bytes, inclusive, for a request to be compressed.AWS_RESPONSE_CHECKSUM_VALIDATIONThe response checksum validation setting.AWS_RETRY_MODEWhichRetryModeto use for the defaultRetryPolicy, when one is not specified at the client level.AWS_ROLE_ARNConfigure the AWS role arn.AWS_ROLE_SESSION_NAMEConfigure the session name for a role.AWS_S3_DISABLE_EXPRESS_SESSION_AUTHAWS_S3_US_EAST_1_REGIONAL_ENDPOINTThe S3 regional endpoint setting for theus-east-1region.AWS_SDK_UA_APP_IDConfigure an optional identification value to be appended to the user agent header.AWS_SECRET_ACCESS_KEYConfigure the AWS secret access key.AWS_SESSION_TOKENConfigure the AWS session token.AWS_SIGV4A_SIGNING_REGION_SETConfigure the SIGV4A signing region set.AWS_USE_DUALSTACK_ENDPOINTDefines whether dualstack endpoints should be resolved during default endpoint resolution instead of non-dualstack endpoints.AWS_USE_FIPS_ENDPOINTDefines whether fips endpoints should be resolved during default endpoint resolution instead of non-fips endpoints.AWS_WEB_IDENTITY_TOKEN_FILEConfigure the AWS web identity token file path.BINARY_ION_ENABLEDWhether binary ION representation optimization should automatically be used if the service supports ION.CBOR_ENABLEDWhether CBOR optimization should automatically be used if its support is found on the classpath and the service supports CBOR-formatted JSON.SYNC_HTTP_SERVICE_IMPLExplicitly identify the default synchronous HTTP implementation the SDK will use.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultValue()StringenvironmentVariable()Stringproperty()static SdkSystemSettingvalueOf(String name)Returns the enum constant of this type with the specified name.static SdkSystemSetting[]values()Returns an array containing the constants of this enum type, in the order they are declared.- 
Methods inherited from class java.lang.Enumclone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 - 
Methods inherited from interface software.amazon.awssdk.utils.SystemSettinggetBooleanValue, getBooleanValueOrThrow, getIntegerValue, getIntegerValueOrThrow, getNonDefaultStringValue, getStringValue, getStringValueOrThrow
 
- 
 
- 
- 
- 
Enum Constant Detail- 
AWS_ACCESS_KEY_IDpublic static final SdkSystemSetting AWS_ACCESS_KEY_ID Configure the AWS access key ID. This value will not be ignored if theAWS_SECRET_ACCESS_KEYis not specified.
 - 
AWS_SECRET_ACCESS_KEYpublic static final SdkSystemSetting AWS_SECRET_ACCESS_KEY Configure the AWS secret access key. This value will not be ignored if theAWS_ACCESS_KEY_IDis not specified.
 - 
AWS_SESSION_TOKENpublic static final SdkSystemSetting AWS_SESSION_TOKEN Configure the AWS session token.
 - 
AWS_ACCOUNT_IDpublic static final SdkSystemSetting AWS_ACCOUNT_ID Configure the AWS account id associated with credentials supplied through system properties.
 - 
AWS_WEB_IDENTITY_TOKEN_FILEpublic static final SdkSystemSetting AWS_WEB_IDENTITY_TOKEN_FILE Configure the AWS web identity token file path.
 - 
AWS_ROLE_ARNpublic static final SdkSystemSetting AWS_ROLE_ARN Configure the AWS role arn.
 - 
AWS_ROLE_SESSION_NAMEpublic static final SdkSystemSetting AWS_ROLE_SESSION_NAME Configure the session name for a role.
 - 
AWS_REGIONpublic static final SdkSystemSetting AWS_REGION Configure the default region.
 - 
AWS_EC2_METADATA_DISABLEDpublic static final SdkSystemSetting AWS_EC2_METADATA_DISABLED Whether to load information such as credentials, regions from EC2 Metadata instance service.
 - 
AWS_EC2_METADATA_V1_DISABLEDpublic static final SdkSystemSetting AWS_EC2_METADATA_V1_DISABLED Whether to disable fallback to insecure EC2 Metadata instance service v1 on errors or timeouts.
 - 
AWS_EC2_METADATA_SERVICE_ENDPOINTpublic static final SdkSystemSetting AWS_EC2_METADATA_SERVICE_ENDPOINT The EC2 instance metadata service endpoint. This allows a service running in EC2 to automatically load its credentials and region without needing to configure them in the SdkClientBuilder.
 - 
AWS_EC2_METADATA_SERVICE_ENDPOINT_MODEpublic static final SdkSystemSetting AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE 
 - 
AWS_METADATA_SERVICE_TIMEOUTpublic static final SdkSystemSetting AWS_METADATA_SERVICE_TIMEOUT The number of seconds (either as an integer or double) before a connection to the instance metadata service should time out. This value is applied to both the socket connect and read timeouts. The timeout can be configured using the system property "aws.ec2MetadataServiceTimeout". If not set, a default timeout is used. This setting is crucial for ensuring timely responses from the instance metadata service in environments with varying network conditions.
 - 
AWS_CONTAINER_SERVICE_ENDPOINTpublic static final SdkSystemSetting AWS_CONTAINER_SERVICE_ENDPOINT The elastic container metadata service endpoint that should be called by the ContainerCredentialsProvider when loading data from the container metadata service. This allows a service running in an elastic container to automatically load its credentials without needing to configure them in the SdkClientBuilder. This is not used if theAWS_CONTAINER_CREDENTIALS_RELATIVE_URIis not specified.
 - 
AWS_CONTAINER_CREDENTIALS_RELATIVE_URIpublic static final SdkSystemSetting AWS_CONTAINER_CREDENTIALS_RELATIVE_URI The elastic container metadata service path that should be called by the ContainerCredentialsProvider when loading credentials form the container metadata service. If this is not specified, credentials will not be automatically loaded from the container metadata service.- See Also:
- AWS_CONTAINER_SERVICE_ENDPOINT
 
 - 
AWS_CONTAINER_CREDENTIALS_FULL_URIpublic static final SdkSystemSetting AWS_CONTAINER_CREDENTIALS_FULL_URI The full URI path to a localhost metadata service to be used.
 - 
AWS_CONTAINER_AUTHORIZATION_TOKENpublic static final SdkSystemSetting AWS_CONTAINER_AUTHORIZATION_TOKEN An authorization token to pass to a container metadata service, only used whenAWS_CONTAINER_CREDENTIALS_FULL_URIis specified.- See Also:
- AWS_CONTAINER_CREDENTIALS_FULL_URI
 
 - 
AWS_CONTAINER_AUTHORIZATION_TOKEN_FILEpublic static final SdkSystemSetting AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE The absolute file path containing the authorization token in plain text to pass to a container metadata service, only used whenAWS_CONTAINER_CREDENTIALS_FULL_URIis specified.- See Also:
- AWS_CONTAINER_CREDENTIALS_FULL_URI
 
 - 
SYNC_HTTP_SERVICE_IMPLpublic static final SdkSystemSetting SYNC_HTTP_SERVICE_IMPL Explicitly identify the default synchronous HTTP implementation the SDK will use. Useful when there are multiple implementations on the classpath or as a performance optimization since implementation discovery requires classpath scanning.
 - 
ASYNC_HTTP_SERVICE_IMPLpublic static final SdkSystemSetting ASYNC_HTTP_SERVICE_IMPL Explicitly identify the default Async HTTP implementation the SDK will use. Useful when there are multiple implementations on the classpath or as a performance optimization since implementation discovery requires classpath scanning.
 - 
CBOR_ENABLEDpublic static final SdkSystemSetting CBOR_ENABLED Whether CBOR optimization should automatically be used if its support is found on the classpath and the service supports CBOR-formatted JSON.
 - 
BINARY_ION_ENABLEDpublic static final SdkSystemSetting BINARY_ION_ENABLED Whether binary ION representation optimization should automatically be used if the service supports ION.
 - 
AWS_EXECUTION_ENVpublic static final SdkSystemSetting AWS_EXECUTION_ENV The execution environment of the SDK user. This is automatically set in certain environments by the underlying AWS service. For example, AWS Lambda will automatically specify a runtime indicating that the SDK is being used within Lambda.
 - 
AWS_ENDPOINT_DISCOVERY_ENABLEDpublic static final SdkSystemSetting AWS_ENDPOINT_DISCOVERY_ENABLED Whether endpoint discovery should be enabled.
 - 
AWS_S3_US_EAST_1_REGIONAL_ENDPOINTpublic static final SdkSystemSetting AWS_S3_US_EAST_1_REGIONAL_ENDPOINT The S3 regional endpoint setting for theus-east-1region. Setting the value toregionalcauses the SDK to use thes3.us-east-1.amazonaws.comendpoint when using theUS_EAST_1region instead of the globals3.amazonaws.com. Using the regional endpoint is disabled by default.
 - 
AWS_S3_DISABLE_EXPRESS_SESSION_AUTHpublic static final SdkSystemSetting AWS_S3_DISABLE_EXPRESS_SESSION_AUTH 
 - 
AWS_RETRY_MODEpublic static final SdkSystemSetting AWS_RETRY_MODE WhichRetryModeto use for the defaultRetryPolicy, when one is not specified at the client level.
 - 
AWS_MAX_ATTEMPTSpublic static final SdkSystemSetting AWS_MAX_ATTEMPTS Defines the default value forRetryPolicy.Builder.numRetries(Integer), if the retry count is not overridden in the retry policy configured viaClientOverrideConfiguration.Builder.retryPolicy(RetryPolicy). This is one more than the number of retries, so aws.maxAttempts = 1 is 0 retries.
 - 
AWS_DEFAULTS_MODEpublic static final SdkSystemSetting AWS_DEFAULTS_MODE WhichDefaultsModeto use, case insensitive
 - 
AWS_ACCOUNT_ID_ENDPOINT_MODEpublic static final SdkSystemSetting AWS_ACCOUNT_ID_ENDPOINT_MODE WhichAccountIdEndpointModeto use, case insensitive
 - 
AWS_USE_DUALSTACK_ENDPOINTpublic static final SdkSystemSetting AWS_USE_DUALSTACK_ENDPOINT Defines whether dualstack endpoints should be resolved during default endpoint resolution instead of non-dualstack endpoints.
 - 
AWS_USE_FIPS_ENDPOINTpublic static final SdkSystemSetting AWS_USE_FIPS_ENDPOINT Defines whether fips endpoints should be resolved during default endpoint resolution instead of non-fips endpoints.
 - 
AWS_DISABLE_REQUEST_COMPRESSIONpublic static final SdkSystemSetting AWS_DISABLE_REQUEST_COMPRESSION Whether request compression is disabled for operations marked with the RequestCompression trait. The default value is false, i.e., request compression is enabled.
 - 
AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTESpublic static final SdkSystemSetting AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES Defines the minimum compression size in bytes, inclusive, for a request to be compressed. The default value is 10_240. The value must be non-negative and no greater than 10_485_760.
 - 
AWS_PARTITIONS_FILEpublic static final SdkSystemSetting AWS_PARTITIONS_FILE Defines a file path from which partition metadata should be loaded. If this isn't specified, the partition metadata deployed with the SDK client will be used instead.
 - 
AWS_REQUEST_CHECKSUM_CALCULATIONpublic static final SdkSystemSetting AWS_REQUEST_CHECKSUM_CALCULATION The request checksum calculation setting. The default value is WHEN_SUPPORTED.
 - 
AWS_RESPONSE_CHECKSUM_VALIDATIONpublic static final SdkSystemSetting AWS_RESPONSE_CHECKSUM_VALIDATION The response checksum validation setting. The default value is WHEN_SUPPORTED.
 - 
AWS_SDK_UA_APP_IDpublic static final SdkSystemSetting AWS_SDK_UA_APP_ID Configure an optional identification value to be appended to the user agent header. The value should be less than 50 characters in length and is null by default.
 - 
AWS_SIGV4A_SIGNING_REGION_SETpublic static final SdkSystemSetting AWS_SIGV4A_SIGNING_REGION_SET Configure the SIGV4A signing region set. This is a non-empty, comma-delimited list of AWS region names used during signing.
 - 
AWS_AUTH_SCHEME_PREFERENCEpublic static final SdkSystemSetting AWS_AUTH_SCHEME_PREFERENCE Configure the preferred auth scheme to use. This is a comma-delimited list of AWS auth scheme names used during signing.
 
- 
 - 
Method Detail- 
valuespublic static SdkSystemSetting[] 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 (SdkSystemSetting c : SdkSystemSetting.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SdkSystemSetting 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
 
 - 
propertypublic String property() - Specified by:
- propertyin interface- SystemSetting
 
 - 
environmentVariablepublic String environmentVariable() - Specified by:
- environmentVariablein interface- SystemSetting
 
 - 
defaultValuepublic String defaultValue() - Specified by:
- defaultValuein interface- SystemSetting
 
 
- 
 
-