Interface CfnDistributionPropsMixin.ILambdaFunctionAssociationProperty
A complex type that contains a Lambda@Edge function association.
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnDistributionPropsMixin.ILambdaFunctionAssociationProperty
Syntax (vb)
Public Interface CfnDistributionPropsMixin.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.Mixins.Preview.AWS.CloudFront.Mixins;
var lambdaFunctionAssociationProperty = new LambdaFunctionAssociationProperty {
EventType = "eventType",
IncludeBody = false,
LambdaFunctionArn = "lambdaFunctionArn"
};
Synopsis
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. |
Properties
EventType
Specifies the event type that triggers a Lambda@Edge function invocation. You can specify the following values:.
string? EventType { get; }
Property Value
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.
object? IncludeBody { get; }
Property Value
Remarks
For more information, see Accessing the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide.
Type union: either bool or IResolvable
LambdaFunctionArn
The ARN of the Lambda@Edge function.
string? LambdaFunctionArn { get; }
Property Value
Remarks
You must specify the ARN of a function version; you can't specify an alias or $LATEST.