1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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');
}
}
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 3 ans