AttributeType
- class aws_cdk.aws_dynamodb.AttributeType(value)
Bases:
Enum
Data types for attributes within a table.
- See:
- ExampleMetadata:
infused
Example:
global_table = dynamodb.Table(self, "Table", partition_key=dynamodb.Attribute(name="id", type=dynamodb.AttributeType.STRING), replication_regions=["us-east-1", "us-east-2", "us-west-2"], billing_mode=dynamodb.BillingMode.PROVISIONED ) global_table.auto_scale_write_capacity( min_capacity=1, max_capacity=10 ).scale_on_utilization(target_utilization_percent=75)
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.