BillingMode

class aws_cdk.aws_dynamodb.BillingMode(value)

Bases: Enum

DynamoDB’s Read/Write capacity modes.

ExampleMetadata:

infused

Example:

table = dynamodb.Table(self, "Table",
    partition_key=dynamodb.Attribute(name="id", type=dynamodb.AttributeType.STRING),
    billing_mode=dynamodb.BillingMode.PAY_PER_REQUEST
)

Attributes

PAY_PER_REQUEST

Pay only for what you use.

You don’t configure Read/Write capacity units.

PROVISIONED

Explicitly specified Read/Write capacity units.