Show / Hide Table of Contents

Interface IFunctionAssociation

Represents a CloudFront function and event type when using CF Functions.

Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.AWS.CloudFront.dll
Syntax (csharp)
public interface IFunctionAssociation
Syntax (vb)
Public Interface IFunctionAssociation
Remarks

The type of the {@link AddBehaviorOptions.functionAssociations} property.

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;

Function function_;

var functionAssociation = new FunctionAssociation {
    EventType = FunctionEventType.VIEWER_REQUEST,
    Function = function_
};

Synopsis

Properties

EventType

The type of event which should invoke the function.

Function

The CloudFront function that will be invoked.

Properties

EventType

The type of event which should invoke the function.

FunctionEventType EventType { get; }
Property Value

FunctionEventType

Function

The CloudFront function that will be invoked.

IFunction Function { get; }
Property Value

IFunction

Back to top Generated by DocFX