Client changes - 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 changes

Client builders

You must create all clients using the client builder method. Constructors are no longer available.

Example of creating a client in version 1.x
AmazonDynamoDB ddbClient = AmazonDynamoDBClientBuilder.defaultClient(); AmazonDynamoDBClient ddbClient = new AmazonDynamoDBClient();
Example of creating a client in version 2.x
DynamoDbClient ddbClient = DynamoDbClient.create(); DynamoDbClient ddbClient = DynamoDbClient.builder().build();

Client class names

All client class names are now fully camel cased and no longer prefixed by Amazon. These changes are aligned with names used in the Amazon CLI.

Example of class names in 1.x
AmazonDynamoDB AWSACMPCAAsyncClient
Example of class names in 2.x
DynamoDbClient AcmAsyncClient
Client class name changes
1.x Client 2.x Client Not Supported