@Stability(value=Stable)
public static interface CfnDistribution.FunctionAssociationProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDistribution.FunctionAssociationProperty.Builder
A builder for
CfnDistribution.FunctionAssociationProperty |
static class |
CfnDistribution.FunctionAssociationProperty.Jsii$Proxy
An implementation for
CfnDistribution.FunctionAssociationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDistribution.FunctionAssociationProperty.Builder |
builder() |
default String |
getEventType()
The event type of the function, either `viewer-request` or `viewer-response` .
|
default String |
getFunctionArn()
The Amazon Resource Name (ARN) of the function.
|
@Stability(value=Stable) @Nullable default String getEventType()
You cannot use origin-facing event types ( origin-request and origin-response ) with a CloudFront function.
@Stability(value=Stable) @Nullable default String getFunctionArn()
@Stability(value=Stable) static CfnDistribution.FunctionAssociationProperty.Builder builder()
Copyright © 2022. All rights reserved.