Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ export enum OriginProtocolPolicy {
export enum SSLMethod {
SNI = 'sni-only',
VIP = 'vip',
STATIC_IP = 'static-ip',
}

/**
Expand Down
10 changes: 10 additions & 0 deletions packages/aws-cdk-lib/aws-cloudfront/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ export enum FunctionEventType {
* The viewer-response specifies the outgoing response
*/
VIEWER_RESPONSE = 'viewer-response',

/**
* The origin-request specifies the incoming request
*/
ORIGIN_REQUEST = 'origin-request',

/**
* The origin-response specifies the outgoing response
*/
ORIGIN_RESPONSE = 'origin-response',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These new enum values do not seem right. The origin-X events are only available to Lambda@Edge functions but not CloudFront functions: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-choosing.html

}

/**
Expand Down
Loading