8000 ApiGateway: parameter for changing retention policy of CloudWatchRole and Account · Issue #26827 · aws/aws-cdk · GitHub < 10000 link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000">
[go: up one dir, main page]

Skip to content
ApiGateway: parameter for changing retention policy of CloudWatchRole and Account #26827
@nguyen102

Description

@nguyen102

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

No one assigned

    Labels

    @aws-cdk/aws-apigatewayRelated to Amazon API Gatewayeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0