TableClass

class aws_cdk.aws_dynamodb.TableClass(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

DynamoDB’s table class.

See:

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.TableClasses.html

ExampleMetadata:

infused

Example:

table = dynamodb.TableV2(self, "Table",
    partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
    contributor_insights=True,
    table_class=dynamodb.TableClass.STANDARD_INFREQUENT_ACCESS,
    point_in_time_recovery=True
)

Attributes

STANDARD

Default table class for DynamoDB.

STANDARD_INFREQUENT_ACCESS

Table class for DynamoDB that reduces storage costs compared to existing DynamoDB standard tables.