Class CfnDistribution.FunctionAssociationProperty
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
Inheritance
System.Object
CfnDistribution.FunctionAssociationProperty
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FunctionAssociationProperty : Object, CfnDistribution.IFunctionAssociationProperty
Syntax (vb)
Public Class FunctionAssociationProperty
Inherits Object
Implements CfnDistribution.IFunctionAssociationProperty
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;
var functionAssociationProperty = new FunctionAssociationProperty {
EventType = "eventType",
FunctionArn = "functionArn"
};
Synopsis
Constructors
FunctionAssociationProperty() |
Properties
EventType | The event type of the function, either |
FunctionArn | The Amazon Resource Name (ARN) of the function. |
Constructors
FunctionAssociationProperty()
public FunctionAssociationProperty()
Properties
EventType
The event type of the function, either viewer-request
or viewer-response
.
public string EventType { get; set; }
Property Value
System.String
Remarks
You cannot use origin-facing event types ( origin-request
and origin-response
) with a CloudFront function.
FunctionArn
The Amazon Resource Name (ARN) of the function.
public string FunctionArn { get; set; }
Property Value
System.String