@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-13T22:11:54.717Z") @Stability(value=Deprecated) @Deprecated public class Task extends State implements INextable
Reaching a Task state causes some work to be executed, represented by the Task's resource property. Task constructs represent a generic Amazon States Language Task.
For some resource types, more specific subclasses of Task may be available which are more convenient to use.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;
import software.amazon.awscdk.core.*;
Object parameters;
IStepFunctionsTask stepFunctionsTask;
Task task = Task.Builder.create(this, "MyTask")
.task(stepFunctionsTask)
// the properties below are optional
.comment("comment")
.inputPath("inputPath")
.outputPath("outputPath")
.parameters(Map.of(
"parametersKey", parameters))
.resultPath("resultPath")
.timeout(Duration.minutes(30))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Task.Builder
Deprecated.
|
software.amazon.jsii.JsiiObject.InitializationModeINextable.Jsii$Default, INextable.Jsii$ProxyIChainable.Jsii$DefaultIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Task(software.constructs.Construct scope,
String id,
TaskProps props)
Deprecated.
|
protected |
Task(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
Task(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
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, setIterationgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Task(software.amazon.jsii.JsiiObjectRef objRef)
protected Task(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Deprecated) @Deprecated public Task(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TaskProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public Task addCatch(@NotNull IChainable handler, @Nullable CatchProps props)
When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution.
handler - This parameter is required.props - @Stability(value=Deprecated) @Deprecated @NotNull public Task addCatch(@NotNull IChainable handler)
When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution.
handler - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public Task addRetry(@Nullable RetryProps props)
This controls if and how the execution will be retried if a particular error occurs.
props - @Stability(value=Deprecated) @Deprecated @NotNull public Task addRetry()
This controls if and how the execution will be retried if a particular error occurs.
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
Default: sum over 5 minutes
metricName - This parameter is required.props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metric(@NotNull String metricName)
Default: sum over 5 minutes
metricName - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricFailed(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricFailed()
Default: sum over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricHeartbeatTimedOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricHeartbeatTimedOut()
Default: sum over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricRunTime(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricRunTime()
Default: average over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricScheduled(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricScheduled()
Default: sum over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricScheduleTime(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricScheduleTime()
Default: average over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricStarted(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricStarted()
Default: sum over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricSucceeded(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricSucceeded()
Default: sum over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricTime(@Nullable MetricOptions props)
Default: average over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricTime()
Default: average over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Metric metricTimedOut(@Nullable MetricOptions props)
Default: sum over 5 minutes
props - @Stability(value=Deprecated) @Deprecated @NotNull public Metric metricTimedOut()
Default: sum over 5 minutes
@Stability(value=Deprecated) @Deprecated @NotNull public Chain next(@NotNull IChainable next)
@Stability(value=Deprecated) @Deprecated @NotNull public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
toStateJson in class State@Stability(value=Deprecated) @Deprecated protected void whenBoundToGraph(@NotNull StateGraph graph)
Can be overridden by subclasses.
whenBoundToGraph in class Stategraph - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public List<INextable> getEndStates()
getEndStates in interface IChainablegetEndStates in class StateCopyright © 2022. All rights reserved.