Skip to content

(core) RemovalPolicy DELETE does not exist (should be DESTROY) #16605

@hyooj

Description

@hyooj

The comments for Resource.applyRemovalPolicy(policy: RemovalPolicy) makes reference to a RemovalPolicy called DELETE, instead it should reference DESTROY.

This mistake is replicated to all resources. For example:

Code:

The resource can be deleted (RemovalPolicy.DELETE), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

should be

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

The same comment could also make reference to SNAPSHOT for supporting stateful resources. However, this optional feedback is not the focus of this issue.


This is a 📕 documentation issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalitybugThis issue is a bug.documentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions