aws-cdk-lib: CfnOriginAccessControl does not give error message for name that is too long #28030
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
When you have a CfnOriginAccessControl configuration with an
originAccessControlConfig
with aname
parameter that is too long it does not highlight this in the given error message:Resource handler returned message: "Invalid request provided: AWS::CloudFront::OriginAccessControl" (RequestToken: 1aafb6fa-72fe-4ce0-08be-523c109c03c1, HandlerErrorCode: InvalidRequest)
You just get a
Invalid request
response.Expected Behavior
Error message should highlight that the name parameter is too long.
Current Behavior
Error message does not reflect why the request is invalid.
Reproduction Steps
Create a CfnOriginAccessControl resource with a very long name.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.109.0
Framework Version
No response
Node.js Version
v20.3.0
OS
WSL
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: