Open
Description
Describe the bug
After upgrading to CDK v2.158.0, I'm seeing deprecation warnings that I traced to use of the aws_route53_patterns.HttpsRedirect
construct:
[WARNING] aws-cdk-lib.aws_cloudfront.CloudFrontWebDistribution is deprecated.
Use `Distribution` instead
This API will be removed in the next major release.
Appears that the HttpsRedirect
construct needs to be updated to use Distribution
instead of CloudFrontWebDistribution
.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
2.147.3 (may be later - I upgraded from 2.147.3 straight to 2.158.0)
Expected Behavior
No changes and no deprecations after upgrading CDK version
Current Behavior
[WARNING] aws-cdk-lib.aws_cloudfront.CloudFrontWebDistribution is deprecated.
Use `Distribution` instead
This API will be removed in the next major release.
Reproduction Steps
Upgraded CDK project that included use of HttpsRedirect
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.158.0 (build 4b8714d)
Framework Version
No response
Node.js Version
v18.17.1
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response