@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:34.686Z") @Stability(value=Stable) public interface StepFunctionsStartExecutionProps extends software.amazon.jsii.JsiiSerializable, 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 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 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
@Stability(value=Stable) @NotNull IStateMachine getStateMachine()
@Stability(value=Stable) @Nullable default 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
@Stability(value=Stable) @Nullable default TaskInput getInput()
Default: - The state input (JSON path '$')
@Stability(value=Stable) @Nullable default String getName()
Default: - None
@Stability(value=Stable) static StepFunctionsStartExecutionProps.Builder builder()
builder
in interface TaskStateBaseProps
StepFunctionsStartExecutionProps.Builder
of StepFunctionsStartExecutionProps
Copyright © 2023. All rights reserved.