In order to consume or submit data to DynamoDB, facts must be mapped to DynamoDB tables and attributes. This is performed using set of annotation.

Example:

package com.example;

import java.util.Set;

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBHashKey;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBTable;

declare CatalogItem
    @DynamoDBTable(tableName="ProductCatalog")
    
    id: Integer @DynamoDBHashKey(attributeName="Id") ;
    title: String @DynamoDBAttribute(attributeName="Title");
    ISBN: String @DynamoDBAttribute(attributeName="ISBN");
    bookAuthors: Set @DynamoDBAttribute(attributeName = "Authors");
    someProp: String @DynamoDBIgnore;
end

Note that the annotation types must be imported to ensure the correct annotation type is applied on the generated type.