Closed badmintoncryer closed 1 month ago
Thank you for the PR as always @badmintoncryer !
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.
Describe the feature
When setting the path property for
ListenerAction.redirect()
, CDK will validate whether it starts with a/
.Use Case
If we set a string without a leading
/
for the path property, deployment will fail as shown below.Given:
Result:
Related docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-redirectconfig.html#cfn-elasticloadbalancingv2-listenerrule-redirectconfig-path
Proposed Solution
Add validation for path prop like below.
Other Information
No response
Acknowledgements
CDK version used
2.150.0
Environment details (OS name and version, etc.)
irrelevant