LambdaFunctionAssociation

class aws_cdk.aws_cloudfront.LambdaFunctionAssociation(*, event_type, lambda_function, include_body=None)

Bases: object

Parameters
Stability

experimental

Attributes

event_type

(experimental) The lambda event type defines at which event the lambda is called during the request lifecycle.

Stability

experimental

Return type

LambdaEdgeEventType

include_body

(experimental) 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

false

Stability

experimental

Return type

Optional[bool]

lambda_function

(experimental) A version of the lambda to associate.

Stability

experimental

Return type

IVersion