Interface IMapProps
Properties for defining a Map state.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IMapProps : IMapBaseProps, IStateBaseProps, IMapBaseOptions, IAssignableStateOptions, IMapBaseJsonPathOptions, IJsonPathCommonOptions, IMapBaseJsonataOptions, IJsonataCommonOptions
Syntax (vb)
Public Interface IMapProps
Inherits IMapBaseProps, IStateBaseProps, IMapBaseOptions, IAssignableStateOptions, IMapBaseJsonPathOptions, IJsonPathCommonOptions, IMapBaseJsonataOptions, IJsonataCommonOptions
Remarks
ExampleMetadata: infused
Examples
var map = new Map(this, "Map State", new MapProps {
MaxConcurrency = 1,
ItemsPath = JsonPath.StringAt("$.inputForMap"),
ItemSelector = new Dictionary<string, object> {
{ "item", JsonPath.StringAt("$.Map.Item.Value") }
},
ResultPath = "$.mapOutput"
});
// 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
var choice = new Choice(this, "Choice");
var condition1 = Condition.StringEquals("$.item.status", "SUCCESS");
var step1 = new Pass(this, "Step1");
var step2 = new Pass(this, "Step2");
var finish = new Pass(this, "Finish");
var definition = choice.When(condition1, step1).Otherwise(step2).Afterwards().Next(finish);
map.ItemProcessor(definition);
Synopsis
Properties
Parameters | (deprecated) The JSON that you want to override your default iteration input (mutually exclusive with |
Properties
Parameters
(deprecated) The JSON that you want to override your default iteration input (mutually exclusive with itemSelector
).
virtual IDictionary<string, object> Parameters { get; }
Property Value
System.
Remarks
Default: $
Stability: Deprecated
See: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-itemselector.html