1 個回答
- 最新
- 最多得票
- 最多評論
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');
}
}
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 5 個月前