@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:36.278Z") public class StepFunctionsStartExecution extends TaskStateBase
It supports three service integration patterns: REQUEST_RESPONSE, RUN_JOB, and WAIT_FOR_TASK_TOKEN.
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 | Class and Description |
---|---|
static class |
StepFunctionsStartExecution.Builder
A fluent builder for
StepFunctionsStartExecution . |
INextable.Jsii$Default
IChainable.Jsii$Default
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
StepFunctionsStartExecution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StepFunctionsStartExecution(software.amazon.jsii.JsiiObjectRef objRef) |
|
StepFunctionsStartExecution(software.constructs.Construct scope,
java.lang.String id,
StepFunctionsStartExecutionProps props) |
Modifier and Type | Method and Description |
---|---|
protected TaskMetricsConfig |
getTaskMetrics() |
protected java.util.List<PolicyStatement> |
getTaskPolicies() |
addCatch, addCatch, addRetry, addRetry, getEndStates, metric, metric, metricFailed, metricFailed, metricHeartbeatTimedOut, metricHeartbeatTimedOut, metricRunTime, metricRunTime, metricScheduled, metricScheduled, metricScheduleTime, metricScheduleTime, metricStarted, metricStarted, metricSucceeded, metricSucceeded, metricTime, metricTime, metricTimedOut, metricTimedOut, next, toStateJson, whenBoundToGraph
addBranch, addChoice, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getResultPath, getResultSelector, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, renderResultSelector, renderRetryCatch, setDefaultChoice, setIteration
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected StepFunctionsStartExecution(software.amazon.jsii.JsiiObjectRef objRef)
protected StepFunctionsStartExecution(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public StepFunctionsStartExecution(software.constructs.Construct scope, java.lang.String id, StepFunctionsStartExecutionProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.protected TaskMetricsConfig getTaskMetrics()
getTaskMetrics
in class TaskStateBase
protected java.util.List<PolicyStatement> getTaskPolicies()
getTaskPolicies
in class TaskStateBase