Interface IFunctionAssociation
Represents a CloudFront function and event type when using CF Functions.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFunctionAssociation
Syntax (vb)
Public Interface 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;
using Amazon.CDK.Interfaces.CloudFront;
IFunctionRef functionRef;
var functionAssociation = new FunctionAssociation {
EventType = FunctionEventType.VIEWER_REQUEST,
Function = functionRef
};
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
Remarks
The type of the AddBehaviorOptions.functionAssociations property.
ExampleMetadata: fixture=_generated
Function
The CloudFront function that will be invoked.
IFunctionRef Function { get; }
Property Value
Remarks
The type of the AddBehaviorOptions.functionAssociations property.
ExampleMetadata: fixture=_generated