Client creation defaults
In version 2.x, the following changes have been made to the default client creation logic.
-
The default credential provider chain for S3 no longer includes anonymous credentials. You must manually specify anonymous access to S3 by using the
AnonymousCredentialsProvider. -
The following environment variables related to default client creation are different.
1.x 2.x AWS_CBOR_DISABLEDCBOR_ENABLEDAWS_ION_BINARY_DISABLEBINARY_ION_ENABLED -
The following system properties related to default client creation are different.
1.x 2.x com.amazonaws.sdk.disableEc2Metadataaws.disableEc2Metadatacom.amazonaws.sdk.ec2MetadataServiceEndpointOverrideaws.ec2MetadataServiceEndpointcom.amazonaws.sdk.disableCboraws.cborEnabledcom.amazonaws.sdk.disableIonBinaryaws.binaryIonEnabled -
Version 2.x does not support the following system properties.
-
1.x com.amazonaws.sdk.disableCertCheckingcom.amazonaws.sdk.enableDefaultMetricscom.amazonaws.sdk.enableThrottledRetrycom.amazonaws.regions.RegionUtils.fileOverridecom.amazonaws.regions.RegionUtils.disableRemotecom.amazonaws.services.s3.disableImplicitGlobalClientscom.amazonaws.sdk.enableInRegionOptimizedMode -
Loading Region configuration from a custom
endpoints.jsonfile is no longer supported.