Client creation defaults - Amazon SDK for Java 2.x
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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_DISABLED

    CBOR_ENABLED

    AWS_ION_BINARY_DISABLE

    BINARY_ION_ENABLED

  • The following system properties related to default client creation are different.

    1.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

  • Version 2.x does not support the following system properties.

  • 1.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.