use of com.amazonaws.services.dynamodbv2.model.DeleteItemRequest in project aws-doc-sdk-examples by awsdocs.
the class StreamsAdapterDemoHelper method deleteItem.
public static void deleteItem(AmazonDynamoDB dynamoDBClient, String tableName, String id) {
java.util.Map<String, AttributeValue> key = new HashMap<String, AttributeValue>();
key.put("Id", new AttributeValue().withN(id));
DeleteItemRequest deleteItemRequest = new DeleteItemRequest().withTableName(tableName).withKey(key);
dynamoDBClient.deleteItem(deleteItemRequest);
}
Aggregations