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 공식업데이트됨 일 년 전