Interface FunctionAssociation
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FunctionAssociation.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.082Z")
@Stability(Stable)
public interface FunctionAssociation
extends software.amazon.jsii.JsiiSerializable
Represents a CloudFront function and event type when using CF Functions.
The type of the AddBehaviorOptions.functionAssociations property.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
import software.amazon.awscdk.interfaces.cloudfront.*;
IFunctionRef functionRef;
FunctionAssociation functionAssociation = FunctionAssociation.builder()
.eventType(FunctionEventType.VIEWER_REQUEST)
.function(functionRef)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFunctionAssociationstatic final classAn implementation forFunctionAssociation -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionAssociation.Builderbuilder()The type of event which should invoke the function.The CloudFront function that will be invoked.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventType
The type of event which should invoke the function. -
getFunction
The CloudFront function that will be invoked. -
builder
- Returns:
- a
FunctionAssociation.BuilderofFunctionAssociation
-