Skip to content

(core): add setter for termination protection #14463

@rittneje

Description

@rittneje

Please add a setter for the termination protection flag to the Stack class. https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Stack.html#terminationprotection

Use Case

We would like to be able to automatically enable termination protection to all of our stacks via an Aspect. However, since there is no setter for this property (it can only be set in the constructor), there's no way for that to work.


This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalityfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions