Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon CloudFront Distribution LambdaFunctionAssociation

The LambdaFunctionAssociation property type specifies a Lambda function association for an Amazon CloudFront distribution.

LambdaFunctionAssociation is a property of the CloudFront DistributionConfig CacheBehavior and CloudFront DefaultCacheBehavior property types.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "EventType" : String, "LambdaFunctionARN" : String }

YAML

Copy
EventType: String LambdaFunctionARN: String

Properties

EventType

Specifies the event type that triggers a Lambda function invocation. For valid values and definitions, see LambdaFunctionAssociation in the Amazon CloudFront API Reference.

Required: No

Type: String

Update requires: No interruption

LambdaFunctionARN

The ARN of the Lambda function. You must specify the ARN of a function version; you can't specify a Lambda alias or $LATEST.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: