Show / Hide Table of Contents

Class LambdaFunctionAssociation

Inheritance
object
LambdaFunctionAssociation
Implements
ILambdaFunctionAssociation
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaFunctionAssociation : ILambdaFunctionAssociation
Syntax (vb)
Public Class LambdaFunctionAssociation Implements ILambdaFunctionAssociation
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;
            using Amazon.CDK.AWS.Lambda;

            Version version;

            var lambdaFunctionAssociation = new LambdaFunctionAssociation {
                EventType = LambdaEdgeEventType.ORIGIN_REQUEST,
                LambdaFunction = version,

                // the properties below are optional
                IncludeBody = false
            };

Synopsis

Constructors

LambdaFunctionAssociation()

Properties

EventType

The lambda event type defines at which event the lambda is called during the request lifecycle.

IncludeBody

Allows a Lambda function to have read access to the body content.

LambdaFunction

A version of the lambda to associate.

Constructors

LambdaFunctionAssociation()

public LambdaFunctionAssociation()
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;
            using Amazon.CDK.AWS.Lambda;

            Version version;

            var lambdaFunctionAssociation = new LambdaFunctionAssociation {
                EventType = LambdaEdgeEventType.ORIGIN_REQUEST,
                LambdaFunction = version,

                // the properties below are optional
                IncludeBody = false
            };

Properties

EventType

The lambda event type defines at which event the lambda is called during the request lifecycle.

public LambdaEdgeEventType EventType { get; set; }
Property Value

LambdaEdgeEventType

Remarks

ExampleMetadata: fixture=_generated

IncludeBody

Allows a Lambda function to have read access to the body content.

public bool? IncludeBody { get; set; }
Property Value

bool?

Remarks

Only valid for "request" event types (ORIGIN_REQUEST or VIEWER_REQUEST).

Default: false

See: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html

LambdaFunction

A version of the lambda to associate.

public IVersion LambdaFunction { get; set; }
Property Value

IVersion

Remarks

ExampleMetadata: fixture=_generated

Implements

ILambdaFunctionAssociation
Back to top Generated by DocFX