Class FunctionAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.FunctionAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FunctionAssociation>
- Enclosing interface:
FunctionAssociation
@Stability(Stable)
public static final class FunctionAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<FunctionAssociation>
A builder for
FunctionAssociation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventType(FunctionEventType eventType) Sets the value ofFunctionAssociation.getEventType()function(IFunctionRef function) Sets the value ofFunctionAssociation.getFunction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
Sets the value ofFunctionAssociation.getEventType()- Parameters:
eventType- The type of event which should invoke the function. This parameter is required.- Returns:
this
-
function
Sets the value ofFunctionAssociation.getFunction()- Parameters:
function- The CloudFront function that will be invoked. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FunctionAssociation>- Returns:
- a new instance of
FunctionAssociation - Throws:
NullPointerException- if any required attribute was not provided
-