Class DynamoDbMapperFactory


  • public class DynamoDbMapperFactory
    extends Object
    Default Jackson ObjectMapper provider.
    • Constructor Detail

      • DynamoDbMapperFactory

        public DynamoDbMapperFactory()
    • Method Detail

      • createEncryptionDynamoDbMapper

        public static com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper createEncryptionDynamoDbMapper​(String tableName,
                                                                                                                   String keyId)
        Creates DynamoDB mapper with encryption handling.
        Parameters:
        tableName - DynamoDB table name.
        keyId - KMS key ARN.
        Returns:
        DynamoDB mapping client.
      • createDynamoDbMapper

        public static com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper createDynamoDbMapper​(String tableName)
        Creates DynamoDB mapper.
        Parameters:
        tableName - DynamoDB table name.
        Returns:
        DynamoDB mapping client.
      • createDynamoDbMapper

        private static com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper createDynamoDbMapper​(String tableName,
                                                                                                          com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer attributeTransformer)
        Creates DynamoDB mapper.
        Parameters:
        tableName - DynamoDB table name.
        attributeTransformer - Custom attributes transformation logic.
        Returns:
        DynamoDB mapping client.