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.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "EventType" :String, "LambdaFunctionARN" :String}
YAML
EventType:StringLambdaFunctionARN: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
-
LambdaFunctionAssociation in the Amazon CloudFront API Reference
