Interface MapProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,MapBaseProps
- All Known Implementing Classes:
MapProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:16.717Z")
@Stability(Stable)
public interface MapProps
extends software.amazon.jsii.JsiiSerializable, MapBaseProps
Properties for defining a Map state.
Example:
Map map = Map.Builder.create(this, "Map State")
.maxConcurrency(1)
.itemsPath(JsonPath.stringAt("$.inputForMap"))
.itemSelector(Map.of(
"item", JsonPath.stringAt("$.Map.Item.Value")))
.resultPath("$.mapOutput")
.build();
// The Map iterator can contain a IChainable, which can be an individual or multiple steps chained together.
// Below example is with a Choice and Pass step
Choice choice = new Choice(this, "Choice");
Condition condition1 = Condition.stringEquals("$.item.status", "SUCCESS");
Pass step1 = new Pass(this, "Step1");
Pass step2 = new Pass(this, "Step2");
Pass finish = new Pass(this, "Finish");
Chain definition = choice.when(condition1, step1).otherwise(step2).afterwards().next(finish);
map.itemProcessor(definition);
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.MapBaseProps
getComment, getInputPath, getItemSelector, getItemsPath, getMaxConcurrency, getMaxConcurrencyPath, getOutputPath, getResultPath, getResultSelector, getStateName
-
Method Details
-
getParameters
Deprecated.Step Functions has deprecated theparametersfield in favor of the newitemSelectorfield(deprecated) The JSON that you want to override your default iteration input (mutually exclusive withitemSelector).Default: $
- See Also:
-
builder
- Returns:
- a
MapProps.BuilderofMapProps
-
parametersfield in favor of the newitemSelectorfield