enum AttributeType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.DynamoDB.AttributeType |
![]() | software.amazon.awscdk.services.dynamodb.AttributeType |
![]() | aws_cdk.aws_dynamodb.AttributeType |
![]() | @aws-cdk/aws-dynamodb » AttributeType |
Data types for attributes within a table.
Example
const globalTable = new dynamodb.Table(this, 'Table', {
partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING },
replicationRegions: ['us-east-1', 'us-east-2', 'us-west-2'],
billingMode: dynamodb.BillingMode.PROVISIONED,
});
globalTable.autoScaleWriteCapacity({
minCapacity: 1,
maxCapacity: 10,
}).scaleOnUtilization({ targetUtilizationPercent: 75 });
Members
Name | Description |
---|---|
BINARY | Up to 400KiB of binary data (which must be encoded as base64 before sending to DynamoDB). |
NUMBER | Numeric values made of up to 38 digits (positive, negative or zero). |
STRING | Up to 400KiB of UTF-8 encoded text. |
BINARY
Up to 400KiB of binary data (which must be encoded as base64 before sending to DynamoDB).
NUMBER
Numeric values made of up to 38 digits (positive, negative or zero).
STRING
Up to 400KiB of UTF-8 encoded text.