public static final class StateMachine.Builder
extends java.lang.Object
StateMachine
.Modifier and Type | Method and Description |
---|---|
StateMachine |
build() |
static StateMachine.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
StateMachine.Builder |
definition(IChainable definition)
Definition for this state machine.
|
StateMachine.Builder |
logs(LogOptions logs)
Defines what execution history events are logged and where they are logged.
|
StateMachine.Builder |
role(IRole role)
The execution role for the state machine service.
|
StateMachine.Builder |
stateMachineName(java.lang.String stateMachineName)
A name for the state machine.
|
StateMachine.Builder |
stateMachineType(StateMachineType stateMachineType)
Type of the state machine.
|
StateMachine.Builder |
timeout(Duration timeout)
Maximum run time for this state machine.
|
StateMachine.Builder |
tracingEnabled(java.lang.Boolean tracingEnabled)
Specifies whether Amazon X-Ray tracing is enabled for this state machine.
|
public static StateMachine.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.StateMachine.Builder
.public StateMachine.Builder definition(IChainable definition)
definition
- Definition for this state machine. This parameter is required.this
public StateMachine.Builder logs(LogOptions logs)
Default: No logging
logs
- Defines what execution history events are logged and where they are logged. This parameter is required.this
public StateMachine.Builder role(IRole role)
Default: A role is automatically created
role
- The execution role for the state machine service. This parameter is required.this
public StateMachine.Builder stateMachineName(java.lang.String stateMachineName)
Default: A name is automatically generated
stateMachineName
- A name for the state machine. This parameter is required.this
public StateMachine.Builder stateMachineType(StateMachineType stateMachineType)
Default: StateMachineType.STANDARD
stateMachineType
- Type of the state machine. This parameter is required.this
public StateMachine.Builder timeout(Duration timeout)
Default: No timeout
timeout
- Maximum run time for this state machine. This parameter is required.this
public StateMachine.Builder tracingEnabled(java.lang.Boolean tracingEnabled)
Default: false
tracingEnabled
- Specifies whether Amazon X-Ray tracing is enabled for this state machine. This parameter is required.this
public StateMachine build()