EnableScalingProps

class aws_cdk.aws_dynamodb.EnableScalingProps(*, max_capacity, min_capacity)

Bases: object

Properties for enabling DynamoDB capacity scaling.

Parameters:
  • max_capacity (Union[int, float]) – Maximum capacity to scale to.

  • min_capacity (Union[int, float]) – Minimum capacity to scale to.

ExampleMetadata:

infused

Example:

import aws_cdk.aws_dynamodb as dynamodb

# table: dynamodb.Table


read_capacity = table.auto_scale_read_capacity(
    min_capacity=10,
    max_capacity=1000
)
read_capacity.scale_on_utilization(
    target_utilization_percent=60
)

Attributes

max_capacity

Maximum capacity to scale to.

min_capacity

Minimum capacity to scale to.