EdgeLambda

class aws_cdk.aws_cloudfront.EdgeLambda(*, event_type, function_version, include_body=None)

Bases: object

Represents a Lambda function version and event type when using Lambda@Edge.

The type of the {@link AddBehaviorOptions.edgeLambdas} property.

Parameters

stability :stability: experimental

Attributes

event_type

The type of event in response to which should the function be invoked.

stability :stability: experimental

Return type

LambdaEdgeEventType

function_version

The version of the Lambda function that will be invoked.

Note: it’s not possible to use the ‘$LATEST’ function version for Lambda@Edge!

stability :stability: experimental

Return type

IVersion

include_body

Allows a Lambda function to have read access to the body content.

Only valid for “request” event types (ORIGIN_REQUEST or VIEWER_REQUEST). See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html

default :default: false

stability :stability: experimental

Return type

Optional[bool]