Class LambdaToStepfunctions.Builder
java.lang.Object
software.amazon.awsconstructs.services.lambdastepfunctions.LambdaToStepfunctions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaToStepfunctions>
- Enclosing class:
LambdaToStepfunctions
public static final class LambdaToStepfunctions.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaToStepfunctions>
A fluent builder for
LambdaToStepfunctions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()createCloudWatchAlarms(Boolean createCloudWatchAlarms) Whether to create recommended CloudWatch alarms.Whether to deploy a new VPC.existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) An existing VPC for the construct to use (construct will NOT create a new VPC in this case).lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) User provided props to override the default props for the Lambda function.logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) User provided props to override the default props for the CloudWatchLogs LogGroup.stateMachineEnvironmentVariableName(String stateMachineEnvironmentVariableName) Optional Name for the Lambda function environment variable set to the ARN of the state machine.stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) User provided StateMachineProps to override the defaults.vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Properties to override default properties if deployVpc is true.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
LambdaToStepfunctions.Builder.
-
stateMachineProps
public LambdaToStepfunctions.Builder stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) User provided StateMachineProps to override the defaults.Default: - None
- Parameters:
stateMachineProps- User provided StateMachineProps to override the defaults. This parameter is required.- Returns:
this
-
createCloudWatchAlarms
Whether to create recommended CloudWatch alarms.Default: - Alarms are created
- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms. This parameter is required.- Returns:
this
-
deployVpc
Whether to deploy a new VPC.Default: - false
- Parameters:
deployVpc- Whether to deploy a new VPC. This parameter is required.- Returns:
this
-
existingLambdaObj
public LambdaToStepfunctions.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.Default: - None
- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error. This parameter is required.- Returns:
this
-
existingVpc
public LambdaToStepfunctions.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc) An existing VPC for the construct to use (construct will NOT create a new VPC in this case).- Parameters:
existingVpc- An existing VPC for the construct to use (construct will NOT create a new VPC in this case). This parameter is required.- Returns:
this
-
lambdaFunctionProps
public LambdaToStepfunctions.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) User provided props to override the default props for the Lambda function.Default: - Default properties are used.
- Parameters:
lambdaFunctionProps- User provided props to override the default props for the Lambda function. This parameter is required.- Returns:
this
-
logGroupProps
public LambdaToStepfunctions.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) User provided props to override the default props for the CloudWatchLogs LogGroup.Default: - Default props are used
- Parameters:
logGroupProps- User provided props to override the default props for the CloudWatchLogs LogGroup. This parameter is required.- Returns:
this
-
stateMachineEnvironmentVariableName
public LambdaToStepfunctions.Builder stateMachineEnvironmentVariableName(String stateMachineEnvironmentVariableName) Optional Name for the Lambda function environment variable set to the ARN of the state machine.Default: - STATE_MACHINE_ARN
- Parameters:
stateMachineEnvironmentVariableName- Optional Name for the Lambda function environment variable set to the ARN of the state machine. This parameter is required.- Returns:
this
-
vpcProps
public LambdaToStepfunctions.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps) Properties to override default properties if deployVpc is true.- Parameters:
vpcProps- Properties to override default properties if deployVpc is true. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LambdaToStepfunctions>- Returns:
- a newly built instance of
LambdaToStepfunctions.
-