public static interface CfnDistribution.FunctionAssociationProperty
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 java.lang.String |
getEventType()
The event type of the function, either `viewer-request` or `viewer-response` .
|
default java.lang.String |
getFunctionArn()
The Amazon Resource Name (ARN) of the function.
|
default java.lang.String getEventType()
You cannot use origin-facing event types ( origin-request
and origin-response
) with a CloudFront function.
default java.lang.String getFunctionArn()
static CfnDistribution.FunctionAssociationProperty.Builder builder()