@Generated(value="jsii-pacmak/1.24.0 (build b722f66)", date="2021-03-11T13:46:42.597Z") @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.
| 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, getStartState, getStateId, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderIterator, renderNextEnd, 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 © 2021. All rights reserved.