AttributeType
- class aws_cdk.aws_dynamodb.AttributeType(*values)
Bases:
Enum
Data types for attributes within a table.
- See:
- ExampleMetadata:
infused
Example:
import aws_cdk as cdk app = cdk.App() stack = cdk.Stack(app, "Stack", env=cdk.Environment(region="us-west-2")) mrsc_table = dynamodb.TableV2(stack, "MRSCTable", partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING), multi_region_consistency=dynamodb.MultiRegionConsistency.STRONG, replicas=[dynamodb.ReplicaTableProps(region="us-east-1") ], witness_region="us-east-2" )
Attributes
- 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.