Class Map
- All Implemented Interfaces:
- IConstruct,- IDependable,- IChainable,- INextable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
 A Map state can be used to run a set of steps for each element of an input array.
 A Map state will execute the same steps for multiple entries of an array in the state input.
 
While the Parallel state executes multiple branches of steps using the same input, a Map state will execute the same steps for multiple entries of an array in the state input.
Example:
 Map map = Map.Builder.create(this, "Map State")
         .maxConcurrency(1)
         .itemsPath(JsonPath.stringAt("$.inputForMap"))
         .build();
 map.iterator(new Pass(this, "Pass State"));
 - 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.IChainableIChainable.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.INextableINextable.Jsii$Default, INextable.Jsii$Proxy
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddCatch(IChainable handler) Add a recovery handler for this state.addCatch(IChainable handler, CatchProps props) Add a recovery handler for this state.addRetry()Add retry configuration for this state.addRetry(RetryProps props) Add retry configuration for this state.Continuable states of this Chainable.iterator(IChainable iterator) Define iterator state machine in Map.next(IChainable next) Continue normal execution with the given state.com.fasterxml.jackson.databind.node.ObjectNodeReturn the Amazon States Language object for this state.validate()Validate this state.Methods inherited from class software.amazon.awscdk.services.stepfunctions.StateaddBranch, 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, whenBoundToGraphMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizeMethods inherited from class software.constructs.ConstructtoStringMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Constructor Details- 
Mapprotected Map(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Mapprotected Map(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
Map@Stability(Stable) public Map(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable MapProps props) - Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- props-
 
- 
Map- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
 
 
- 
- 
Method Details- 
addCatch@Stability(Stable) @NotNull public Map addCatch(@NotNull IChainable handler, @Nullable CatchProps props) Add a recovery handler for this state.When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution. - Parameters:
- handler- This parameter is required.
- props-
 
- 
addCatchAdd a recovery handler for this state.When a particular error occurs, execution will continue at the error handler instead of failing the state machine execution. - Parameters:
- handler- This parameter is required.
 
- 
addRetryAdd retry configuration for this state.This controls if and how the execution will be retried if a particular error occurs. - Parameters:
- props-
 
- 
addRetryAdd retry configuration for this state.This controls if and how the execution will be retried if a particular error occurs. 
- 
iteratorDefine iterator state machine in Map.- Parameters:
- iterator- This parameter is required.
 
- 
nextContinue normal execution with the given state.
- 
toStateJson@Stability(Stable) @NotNull public com.fasterxml.jackson.databind.node.ObjectNode toStateJson()Return the Amazon States Language object for this state.- Specified by:
- toStateJsonin class- State
 
- 
validateValidate this state.
- 
getEndStatesContinuable states of this Chainable.- Specified by:
- getEndStatesin interface- IChainable
- Specified by:
- getEndStatesin class- State
 
 
-