@Stability(value=Stable) public static final class CfnDistribution.FunctionAssociationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnDistribution.FunctionAssociationProperty>
CfnDistribution.FunctionAssociationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnDistribution.FunctionAssociationProperty |
build()
Builds the configured instance.
|
CfnDistribution.FunctionAssociationProperty.Builder |
eventType(String eventType)
Sets the value of
CfnDistribution.FunctionAssociationProperty.getEventType() |
CfnDistribution.FunctionAssociationProperty.Builder |
functionArn(String functionArn)
Sets the value of
CfnDistribution.FunctionAssociationProperty.getFunctionArn() |
@Stability(value=Stable) public CfnDistribution.FunctionAssociationProperty.Builder eventType(String eventType)
CfnDistribution.FunctionAssociationProperty.getEventType()eventType - The event type of the function, either `viewer-request` or `viewer-response` .
You cannot use origin-facing event types ( origin-request and origin-response ) with a CloudFront function.this@Stability(value=Stable) public CfnDistribution.FunctionAssociationProperty.Builder functionArn(String functionArn)
CfnDistribution.FunctionAssociationProperty.getFunctionArn()functionArn - The Amazon Resource Name (ARN) of the function.this@Stability(value=Stable) public CfnDistribution.FunctionAssociationProperty build()
build in interface software.amazon.jsii.Builder<CfnDistribution.FunctionAssociationProperty>CfnDistribution.FunctionAssociationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.