AwsCloudfrontLambdaEdgeAssociationArgs

interface AwsCloudfrontLambdaEdgeAssociationArgs { eventType: 'viewer-request' | 'viewer-response' | 'origin-request' | 'origin-response'; function: Input<string>; includeBody?: boolean; }

Lambda@Edge association resolved from a version-qualified ARN or function name.

Example

CODE
`const association: AwsCloudfrontLambdaEdgeAssociationArgs = { eventType: 'origin-request', function: 'edge-handler' };`

Properties

eventType: 'viewer-request' | 'viewer-response' | 'origin-request' | 'origin-response'

CloudFront event at which Lambda@Edge executes.

function: Input<string>

Version-qualified Lambda@Edge ARN or Lambda function name.

includeBody: boolean

Whether Lambda@Edge receives the request body.

Default: `false`