Creating Dynamo Client
- The Dynamo Client lets you store data into your Dynamo table
- The "enhanced" client lets you convert Java objects to a storable format
- Create a Dynamo table object in Java to be able to use your table
DynamoDbClient client = DynamoDbClient.builder()
.region(Region.US_EAST_1)
.build();
DynamoDbEnhancedClient enhancedClient = DynamoDbEnhancedClient.builder()
.dynamoDbClient(client)
.build();
DynamoDbTable<UserModel> table =
client.table("practicum-table", TableSchema.fromBean(UserModel.class));
14 / 22