interface TableOptionsV2
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.DynamoDB.TableOptionsV2 |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#TableOptionsV2 |
Java | software.amazon.awscdk.services.dynamodb.TableOptionsV2 |
Python | aws_cdk.aws_dynamodb.TableOptionsV2 |
TypeScript (source) | aws-cdk-lib » aws_dynamodb » TableOptionsV2 |
Options used to configure a DynamoDB table.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_kinesis as kinesis } from 'aws-cdk-lib';
declare const policyDocument: iam.PolicyDocument;
declare const stream: kinesis.Stream;
const tableOptionsV2: dynamodb.TableOptionsV2 = {
contributorInsights: false,
deletionProtection: false,
kinesisStream: stream,
pointInTimeRecovery: false,
resourcePolicy: policyDocument,
tableClass: dynamodb.TableClass.STANDARD,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
contributor | boolean | Whether CloudWatch contributor insights is enabled. |
deletion | boolean | Whether deletion protection is enabled. |
kinesis | IStream | Kinesis Data Stream to capture item level changes. |
point | boolean | Whether point-in-time recovery is enabled. |
resource | Policy | Resource policy to assign to DynamoDB Table. |
table | Table | The table class. |
tags? | Cfn [] | Tags to be applied to the primary table (default replica table). |
contributorInsights?
Type:
boolean
(optional, default: false)
Whether CloudWatch contributor insights is enabled.
deletionProtection?
Type:
boolean
(optional, default: false)
Whether deletion protection is enabled.
kinesisStream?
Type:
IStream
(optional, default: no Kinesis Data Stream)
Kinesis Data Stream to capture item level changes.
pointInTimeRecovery?
Type:
boolean
(optional, default: false)
Whether point-in-time recovery is enabled.
resourcePolicy?
Type:
Policy
(optional, default: No resource policy statements are added to the created table.)
Resource policy to assign to DynamoDB Table.
tableClass?
Type:
Table
(optional, default: TableClass.STANDARD)
The table class.
tags?
Type:
Cfn
[]
(optional, default: no tags)
Tags to be applied to the primary table (default replica table).