Commit bdb4a59
authored
feat(synthetics): cleanup provisioned lambda and layers for canary (#32738)
### Issue # (if applicable)
None
### Reason for this change
For the Lambda and Layer used in Canary, the deletion of related resources is [handled by a custom resource](#26580), but this functionality is now supported natively by CloudFormation.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-synthetics-canary.html#cfn-synthetics-canary-provisionedresourcecleanup
### Description of changes
- Add `provisionedResourceCleanup` prop to `CanaryProps`
- deprecate `cleanup` prop which uses custom resource
### Describe any new or updated permissions being added
None
### Description of how you validated changes
Add both unit and integ test
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 7329068 commit bdb4a59
13 files changed
Lines changed: 33188 additions & 4 deletions
File tree
- packages
- @aws-cdk-testing/framework-integ/test/aws-synthetics/test
- integ.canary-provisioned-resource-cleanup.js.snapshot
- asset.bfcf4228d6660f50e81f19efdb64c6388dda6796296eb239decdff1dbc2f4981.bundle
- aws-cdk-lib/aws-synthetics
- lib
- test
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments