Class LambdaProps.Builder
java.lang.Object
software.amazon.awscdk.services.ses.actions.LambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaProps>
- Enclosing interface:
LambdaProps
@Stability(Stable)
public static final class LambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaProps>
A builder for
LambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofLambdaProps.getFunction()invocationType(LambdaInvocationType invocationType) Sets the value ofLambdaProps.getInvocationType()Sets the value ofLambdaProps.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
function
Sets the value ofLambdaProps.getFunction()- Parameters:
function- The Lambda function to invoke. This parameter is required.- Returns:
this
-
invocationType
Sets the value ofLambdaProps.getInvocationType()- Parameters:
invocationType- The invocation type of the Lambda function.- Returns:
this
-
topic
Sets the value ofLambdaProps.getTopic()- Parameters:
topic- The SNS topic to notify when the Lambda action is taken.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaProps>- Returns:
- a new instance of
LambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-