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
CDK version used
3.315.0
Environment details (OS name and version, etc.)
MacOS
Describe the feature
When creating ApiGateway via
RestApi, the retention policy for the CloudWatchRole and Account sub-resources isRETAIN. There is no option to set the policy toDELETE. It looks like the policy used to beDELETEbased 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,
CloudWatchRoleandAccountare 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
CDK version used
3.315.0
Environment details (OS name and version, etc.)
MacOS