-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamodb.Table needs a removalPolicy
prop
#2710
dynamodb.Table needs a removalPolicy
prop
#2710
Comments
Thanks for reaching out! Try something along the lines of: Let me know if this is what you were trying to accomplish! |
I believe @mansisorathiya is asking about the Some L2s (such as As a workaround, you should be able to use an escape hatch like so: const resource = table.node.findChild('Resource') as CfnResource;
resource.options.deletionPolicy = DeletionPolicy.Retain; |
removalPolicy
prop
Add support for RemovalPolicy on DynamoDB `Table`s, defaulting to `RemovalPolicy.RETAIN` as the resource is inherently stateful. Fixes #2710
How to attach Deletion policy to software.amazon.awscdk.services.dynamodb.Table Class ?
The text was updated successfully, but these errors were encountered: