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公式更新しました 3年前