Skip to content

parseDeletionPolicy(module name): Reference based deletion policy #28292

@stuburg

Description

@stuburg

Describe the bug

There is no ability to use reference based deletion policies in the code.

Expected Behavior

The code should be able to use the reference to the deletion policy.

Current Behavior

Error: Unrecognized DeletionPolicy '[object Object]' is what is output

Reproduction Steps

'DeletionPolicy':
'Default': 'RetainExceptOnCreate'
'Description': 'Default DeletionPolicy. This parameter sources from AWSWaypointPipelineDeployableCfn.'
'Type': 'String'

'DeletionPolicy':
  'Ref': 'DeletionPolicy'

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.114.1

Framework Version

No response

Node.js Version

v21.3.0

OS

Ventura 13.5.1

Language

TypeScript

Language Version

TS 5.0.4

Other information

No response

Metadata

Metadata

Labels

@aws-cdk/aws-iamRelated to AWS Identity and Access ManagementbugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions