LambdaFunctionAssociation

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

Bases: object

__init__(*, event_type, lambda_function, include_body=None)
Parameters

stability :stability: experimental

Return type

None

Attributes

event_type

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

stability :stability: experimental

Return type

LambdaEdgeEventType

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]

lambda_function

A version of the lambda to associate.

stability :stability: experimental

Return type

IVersion