Package pl.wrzasq.lambda.dynamodb
Class DynamoDbMapperFactory
- java.lang.Object
-
- pl.wrzasq.lambda.dynamodb.DynamoDbMapperFactory
-
public class DynamoDbMapperFactory extends Object
Default Jackson ObjectMapper provider.
-
-
Constructor Summary
Constructors Constructor Description DynamoDbMapperFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper
createDynamoDbMapper(String tableName)
Creates DynamoDB mapper.private static com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper
createDynamoDbMapper(String tableName, com.amazonaws.services.dynamodbv2.datamodeling.AttributeTransformer attributeTransformer)
Creates DynamoDB mapper.static com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper
createEncryptionDynamoDbMapper(String tableName, String keyId)
Creates DynamoDB mapper with encryption handling.
-
-
-
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.
-
-