elasticloadbalancingv2: add validation for path parameter of ListenerAction.redirect()
#31201
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-elasticloadbalancingv2
Related to Amazon Elastic Load Balancing V2
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
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
The text was updated successfully, but these errors were encountered: