Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created Apr 11, 2022
Embed
What would you like to do?
public Product() {
DynamoDBMapperConfig mapperConfig = DynamoDBMapperConfig.builder()
.withTableNameOverride(new DynamoDBMapperConfig.TableNameOverride(PRODUCTS_TABLE_NAME))
.build();
this.db_adapter = DynamoDBAdapter.getInstance();
this.client = this.db_adapter.getDbClient();
this.mapper = this.db_adapter.createDbMapper(mapperConfig);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment