The CDK Construct Library for AWS::DynamoDB provides high-level constructs for defining Amazon DynamoDB tables in AWS CDK applications. Version 1.204.0 is part of the AWS CDK v1 (maintenance mode). Releases follow the CDK release cadence. Note: v1 is in maintenance; prefer CDK v2.
pip install aws-cdk-aws-dynamodb==1.204.0No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a DynamoDB table with a simple partition key and on-demand billing.
Upgrade to aws-cdk-lib (v2) by changing imports: from aws_cdk.aws_dynamodb import ... (works in both v1 and v2 but v2 requires aws-cdk-lib).
Use from aws_cdk.aws_dynamodb import ... after installing aws-cdk-lib.
Explicitly set billing_mode to BillingMode.PAY_PER_REQUEST to avoid unexpected charges.
Use time_to_live_attribute='timetolive' when defining the table.
For CDK v1: pip install aws-cdk-aws-dynamodb. For CDK v2: pip install aws-cdk-lib.
Install core: pip install aws-cdk.core (or for v2, install aws-cdk-lib).
Ensure each table has a unique logical ID (e.g., by using different construct IDs).