@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:37:01.166Z") public interface StepFunctionsStartExecutionProps extends TaskStateBaseProps
Example:
// Define a state machine with one Pass state StateMachine child = StateMachine.Builder.create(this, "ChildStateMachine") .definition(Chain.start(new Pass(this, "PassState"))) .build(); // Include the state machine in a Task state with callback pattern StepFunctionsStartExecution task = StepFunctionsStartExecution.Builder.create(this, "ChildTask") .stateMachine(child) .integrationPattern(IntegrationPattern.WAIT_FOR_TASK_TOKEN) .input(TaskInput.fromObject(Map.of( "token", JsonPath.getTaskToken(), "foo", "bar"))) .name("MyExecutionName") .build(); // Define a second state machine with the Task state above // Define a second state machine with the Task state above StateMachine.Builder.create(this, "ParentStateMachine") .definition(task) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
StepFunctionsStartExecutionProps.Builder
A builder for
StepFunctionsStartExecutionProps |
static class |
StepFunctionsStartExecutionProps.Jsii$Proxy
An implementation for
StepFunctionsStartExecutionProps |
Modifier and Type | Method and Description |
---|---|
static StepFunctionsStartExecutionProps.Builder |
builder() |
default java.lang.Boolean |
getAssociateWithParent()
Pass the execution ID from the context object to the execution input.
|
default TaskInput |
getInput()
The JSON input for the execution, same as that of StartExecution.
|
default java.lang.String |
getName()
The name of the execution, same as that of StartExecution.
|
IStateMachine |
getStateMachine()
The Step Functions state machine to start the execution on.
|
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
IStateMachine getStateMachine()
default java.lang.Boolean getAssociateWithParent()
This allows the Step Functions UI to link child executions from parent executions, making it easier to trace execution flow across state machines.
If you set this property to true
, the input
property must be an object (provided by sfn.TaskInput.fromObject
) or omitted entirely.
Default: - false
default TaskInput getInput()
Default: - The state input (JSON path '$')
default java.lang.String getName()
Default: - None
static StepFunctionsStartExecutionProps.Builder builder()
builder
in interface TaskStateBaseProps
StepFunctionsStartExecutionProps.Builder
of StepFunctionsStartExecutionProps