Skip to content

Commit

Permalink
feat(synthetics): cleanup provisioned lambda and layers for canary (#…
Browse files Browse the repository at this point in the history
…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*
  • Loading branch information
badmintoncryer authored Jan 24, 2025
1 parent 7329068 commit bdb4a59
Show file tree
Hide file tree
Showing 13 changed files with 33,188 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bdb4a59

Please sign in to comment.