Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Client creation defaults - AWS SDK for Java 2.x

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.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.