AWS SDK for Java Migration Guide
AWS SDK for Java 2.x Migration Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Additional Client Changes

This topic describes additional changes to the default client in the SDK for Java 2.x.

Default Client Changes

  • The default credential provider chain for Amazon S3 no longer includes anonymous credentials. You must specify anonymous access to Amazon S3 manually by using the AnonymousCredentialsProvider.

  • The following environment variables related to default client creation have been changed.

    1.11.x 2.x
    AWS_CBOR_DISABLED CBOR_ENABLED
    AWS_ION_BINARY_DISABLE BINARY_ION_ENABLED
  • The following system properties related to default client creation have been changed.

    1.11.x 2.x
    com.amazonaws.sdk.disableEc2Metadata aws.disableEc2Metadata
    com.amazonaws.sdk.ec2MetadataServiceEndpointOverride aws.ec2MetadataServiceEndpoint
    com.amazonaws.sdk.disableCbor aws.cborEnabled
    com.amazonaws.sdk.disableIonBinary aws.binaryIonEnabled
  • The following system properties are no longer supported in 2.x.

    1.11.x
    com.amazonaws.sdk.disableCertChecking
    com.amazonaws.sdk.enableDefaultMetrics
    com.amazonaws.sdk.enableThrottledRetry
    com.amazonaws.regions.RegionUtils.fileOverride
    com.amazonaws.regions.RegionUtils.disableRemote
    com.amazonaws.services.s3.disableImplicitGlobalClients
    com.amazonaws.sdk.enableInRegionOptimizedMode
  • Loading Region configuration from a custom endpoints.json file is no longer supported.

On this page: