Interface CfnDistribution.FunctionAssociationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistribution.FunctionAssociationProperty.Jsii$Proxy
- Enclosing class:
CfnDistribution
@Stability(Stable)
public static interface CfnDistribution.FunctionAssociationProperty
extends software.amazon.jsii.JsiiSerializable
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
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.*;
FunctionAssociationProperty functionAssociationProperty = FunctionAssociationProperty.builder()
.eventType("eventType")
.functionArn("functionArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDistribution.FunctionAssociationPropertystatic final classAn implementation forCfnDistribution.FunctionAssociationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventType
The event type of the function, eitherviewer-requestorviewer-response.You cannot use origin-facing event types (
origin-requestandorigin-response) with a CloudFront function.- See Also:
-
getFunctionArn
The Amazon Resource Name (ARN) of the function.- See Also:
-
builder
-