Skip to content

feat(core): add RemovalPolicyOptions parameter to L2 applyRemovalPolicy method#37314

Open
syukawa-gh wants to merge 3 commits intoaws:mainfrom
syukawa-gh:feat/core-removal-policy-options-clean
Open

feat(core): add RemovalPolicyOptions parameter to L2 applyRemovalPolicy method#37314
syukawa-gh wants to merge 3 commits intoaws:mainfrom
syukawa-gh:feat/core-removal-policy-options-clean

Conversation

@syukawa-gh
Copy link
Copy Markdown
Contributor

The L2 Resource.applyRemovalPolicy method now accepts an optional RemovalPolicyOptions parameter, matching the L1 CfnResource signature. This allows users to control options like applyToUpdateReplacePolicy without resorting to escape hatches.

Closes #22077

…cy method

The L2 Resource.applyRemovalPolicy method now accepts an optional
RemovalPolicyOptions parameter, matching the L1 CfnResource signature.
This allows users to control options like applyToUpdateReplacePolicy
without resorting to escape hatches.

Closes aws#22077
@syukawa-gh syukawa-gh requested a review from a team as a code owner March 23, 2026 03:35
@github-actions github-actions bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 labels Mar 23, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team March 23, 2026 03:35
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Mar 23, 2026
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@syukawa-gh
Copy link
Copy Markdown
Contributor Author

Exemption Request: This PR adds an optional parameter to the applyRemovalPolicy method signature. Integration test is not applicable as this is a core API change that passes through to CfnResource. Unit test has been added.

@aws-cdk-automation aws-cdk-automation added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Mar 23, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 24, 2026 01:37

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core: add RemovalPolicyOptions parameter to L2 applyRemovalPolicy method

3 participants