There are more AWS SDK examples available in the AWS Doc SDK Examples
Connect to a local DynamoDB instance using an AWS SDK
The following code example shows how to override an endpoint URL to connect to a local development deployment of DynamoDB and an AWS SDK.
For more information, see DynamoDB Local.