cloudfront: Missing origin event types in FunctionEventType #29354
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
feature-request
A feature should be added or improved.
Describe the feature
Missing origin event types in FunctionEventType.
According to: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-functionassociation.html#aws-properties-cloudfront-distribution-functionassociation-properties
The following are valid event types for CloudFront functions:
viewer-request | viewer-response | origin-request | origin-response
Currently only
viewer-request | viewer-response
exists in CDK.Use Case
Need it to be able to declare CloudFront functions on the origin request
Proposed Solution
Extend FunctionEventType with all available types:
viewer-request | viewer-response | origin-request | origin-response
Other Information
No response
Acknowledgements
CDK version used
2.128.0
Environment details (OS name and version, etc.)
Ubuntu 20.04.6 LTS
The text was updated successfully, but these errors were encountered: