Class CfnDistribution.LambdaFunctionAssociationProperty
A complex type that contains a Lambda@Edge function association.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaFunctionAssociationProperty : Object, CfnDistribution.ILambdaFunctionAssociationProperty
Syntax (vb)
Public Class LambdaFunctionAssociationProperty
Inherits Object
Implements CfnDistribution.ILambdaFunctionAssociationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var lambdaFunctionAssociationProperty = new LambdaFunctionAssociationProperty {
EventType = "eventType",
IncludeBody = false,
LambdaFunctionArn = "lambdaFunctionArn"
};
Synopsis
Constructors
LambdaFunctionAssociationProperty() |
Properties
EventType | Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:. |
IncludeBody | A flag that allows a Lambda@Edge function to have read access to the body content. |
LambdaFunctionArn | The ARN of the Lambda@Edge function. |
Constructors
LambdaFunctionAssociationProperty()
public LambdaFunctionAssociationProperty()
Properties
EventType
Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:.
public string EventType { get; set; }
Property Value
System.String
Remarks
If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.
IncludeBody
A flag that allows a Lambda@Edge function to have read access to the body content.
public object IncludeBody { get; set; }
Property Value
System.Object
Remarks
For more information, see Accessing the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide.
LambdaFunctionArn
The ARN of the Lambda@Edge function.
public string LambdaFunctionArn { get; set; }
Property Value
System.String
Remarks
You must specify the ARN of a function version; you can't specify an alias or $LATEST.