Describe the bug
CloudFront cache policy have a maximum comment length of 128 but is currently not validated by CDK.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
CDK validates the comment's length.
Current Behavior
CDK doesn't validate the comment's length.
Reproduction Steps
const stack = new cdk.Stack();
new cloudfront.CachePolicy(stack, 'MyCachePolicy', {
comment: "a".repeat(129)
});
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.37.1
Framework Version
No response
Node.js Version
20
OS
macOS
Language
TypeScript
Language Version
TypeScript 5
Other information
No response
Describe the bug
CloudFront cache policy have a maximum comment length of 128 but is currently not validated by CDK.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
CDK validates the comment's length.
Current Behavior
CDK doesn't validate the comment's length.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.37.1
Framework Version
No response
Node.js Version
20
OS
macOS
Language
TypeScript
Language Version
TypeScript 5
Other information
No response