-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
@aws-cdk/aws-apigatewayRelated to Amazon API GatewayRelated to Amazon API Gatewayeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
When creating ApiGateway via RestApi
, the retention policy for the CloudWatchRole and Account sub-resources is RETAIN
. There is no option to set the policy to DELETE
. It looks like the policy used to be DELETE
based on this Issue.
I would like an option to set the retention policy of those two resources to be DELETE
.
Use Case
When I'm trying to destroy my CDK stack, CloudWatchRole
and Account
are the only two resources I have to manually delete. I would like those resources to be deleted automatically when I destroy the CDK stack.
Proposed Solution
A parameter option that I can past into RestApi Construct to delete those two resources.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
3.315.0
Environment details (OS name and version, etc.)
MacOS
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-apigatewayRelated to Amazon API GatewayRelated to Amazon API Gatewayeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2