1 Answer
- Newest
- Most votes
- Most comments
1
For that you use either fromTableName
, fromTableArn
methods from the DynamoDB Table construct:
import * as cdk from '@aws-cdk/core';
import * as dynamodb from '@aws-cdk/aws-dynamodb';
class MyStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const existingTable = dynamodb.Table.fromTableName(this, 'ExistingTable', 'YourExistingTableName');
}
}
Relevant content
- asked 2 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago