Class FunctionAssociation
Represents a CloudFront function and event type when using CF Functions.
Inheritance
System.Object
FunctionAssociation
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FunctionAssociation : Object, IFunctionAssociation
Syntax (vb)
Public Class FunctionAssociation
Inherits Object
Implements IFunctionAssociation
Remarks
The type of the 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
Constructors
FunctionAssociation() |
Properties
EventType | The type of event which should invoke the function. |
Function | The CloudFront function that will be invoked. |
Constructors
FunctionAssociation()
public FunctionAssociation()
Properties
EventType
The type of event which should invoke the function.
public FunctionEventType EventType { get; set; }
Property Value
Function
The CloudFront function that will be invoked.
public IFunction Function { get; set; }
Property Value