Class CfnDistributionPropsMixin.FunctionAssociationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.FunctionAssociationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.FunctionAssociationProperty>
- Enclosing interface:
CfnDistributionPropsMixin.FunctionAssociationProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.FunctionAssociationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.FunctionAssociationProperty>
A builder for
CfnDistributionPropsMixin.FunctionAssociationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDistributionPropsMixin.FunctionAssociationProperty.getEventType()functionArn(String functionArn) Sets the value ofCfnDistributionPropsMixin.FunctionAssociationProperty.getFunctionArn()functionArn(IFunctionRef functionArn) Sets the value ofCfnDistributionPropsMixin.FunctionAssociationProperty.getFunctionArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
@Stability(Stable) public CfnDistributionPropsMixin.FunctionAssociationProperty.Builder eventType(String eventType) Sets the value ofCfnDistributionPropsMixin.FunctionAssociationProperty.getEventType()- Parameters:
eventType- The event type of the function, eitherviewer-requestorviewer-response. You cannot use origin-facing event types (origin-requestandorigin-response) with a CloudFront function.- Returns:
this
-
functionArn
@Stability(Stable) public CfnDistributionPropsMixin.FunctionAssociationProperty.Builder functionArn(String functionArn) Sets the value ofCfnDistributionPropsMixin.FunctionAssociationProperty.getFunctionArn()- Parameters:
functionArn- The Amazon Resource Name (ARN) of the function.- Returns:
this
-
functionArn
@Stability(Stable) public CfnDistributionPropsMixin.FunctionAssociationProperty.Builder functionArn(IFunctionRef functionArn) Sets the value ofCfnDistributionPropsMixin.FunctionAssociationProperty.getFunctionArn()- Parameters:
functionArn- The Amazon Resource Name (ARN) of the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.FunctionAssociationProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.FunctionAssociationProperty - Throws:
NullPointerException- if any required attribute was not provided
-