Class LambdaToStepfunctionsProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdastepfunctions.LambdaToStepfunctionsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToStepfunctionsProps>
- Enclosing interface:
LambdaToStepfunctionsProps
public static final class LambdaToStepfunctionsProps.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToStepfunctionsProps>
A builder for
LambdaToStepfunctionsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.createCloudWatchAlarms(Boolean createCloudWatchAlarms) Sets the value ofLambdaToStepfunctionsProps.getCreateCloudWatchAlarms()Sets the value ofLambdaToStepfunctionsProps.getDeployVpc()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToStepfunctionsProps.getExistingLambdaObj()existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToStepfunctionsProps.getExistingVpc()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToStepfunctionsProps.getLambdaFunctionProps()logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofLambdaToStepfunctionsProps.getLogGroupProps()stateMachineEnvironmentVariableName(String stateMachineEnvironmentVariableName) Sets the value ofLambdaToStepfunctionsProps.getStateMachineEnvironmentVariableName()stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) Sets the value ofLambdaToStepfunctionsProps.getStateMachineProps()vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToStepfunctionsProps.getVpcProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateMachineProps
public LambdaToStepfunctionsProps.Builder stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) Sets the value ofLambdaToStepfunctionsProps.getStateMachineProps()- Parameters:
stateMachineProps- User provided StateMachineProps to override the defaults. This parameter is required.- Returns:
this
-
createCloudWatchAlarms
Sets the value ofLambdaToStepfunctionsProps.getCreateCloudWatchAlarms()- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms.- Returns:
this
-
deployVpc
Sets the value ofLambdaToStepfunctionsProps.getDeployVpc()- Parameters:
deployVpc- Whether to deploy a new VPC.- Returns:
this
-
existingLambdaObj
public LambdaToStepfunctionsProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofLambdaToStepfunctionsProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
existingVpc
public LambdaToStepfunctionsProps.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) Sets the value ofLambdaToStepfunctionsProps.getExistingVpc()- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case).- Returns:
this
-
lambdaFunctionProps
public LambdaToStepfunctionsProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofLambdaToStepfunctionsProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function.- Returns:
this
-
logGroupProps
public LambdaToStepfunctionsProps.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofLambdaToStepfunctionsProps.getLogGroupProps()- Parameters:
logGroupProps- User provided props to override the default props for the CloudWatchLogs LogGroup.- Returns:
this
-
stateMachineEnvironmentVariableName
public LambdaToStepfunctionsProps.Builder stateMachineEnvironmentVariableName(String stateMachineEnvironmentVariableName) Sets the value ofLambdaToStepfunctionsProps.getStateMachineEnvironmentVariableName()- Parameters:
stateMachineEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the ARN of the state machine.- Returns:
this
-
vpcProps
public LambdaToStepfunctionsProps.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Sets the value ofLambdaToStepfunctionsProps.getVpcProps()- Parameters:
vpcProps- Properties to override default properties if deployVpc is true.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToStepfunctionsProps>- Returns:
- a new instance of
LambdaToStepfunctionsProps - Throws:
NullPointerException- if any required attribute was not provided
-