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 Distribution CacheBehavior and CloudFront Distribution DefaultCacheBehavior property types.


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


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


EventType: String LambdaFunctionARN: String



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


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: