Show / Hide Table of Contents

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html

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

string

Remarks

    If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-eventtype

    IncludeBody

    A flag that allows a Lambda@Edge function to have read access to the body content.

    object? IncludeBody { get; }
    Property Value

    object

    Remarks

    For more information, see Accessing the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-includebody

    Type union: either bool or IResolvable

    LambdaFunctionArn

    The ARN of the Lambda@Edge function.

    string? LambdaFunctionArn { get; }
    Property Value

    string

    Remarks

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

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-lambdafunctionassociation.html#cfn-cloudfront-distribution-lambdafunctionassociation-lambdafunctionarn

    Back to top Generated by DocFX