DistributedMapProps

class aws_cdk.aws_stepfunctions.DistributedMapProps(*, comment=None, input_path=None, item_selector=None, items_path=None, max_concurrency=None, max_concurrency_path=None, output_path=None, result_path=None, result_selector=None, state_name=None, item_batcher=None, item_reader=None, label=None, map_execution_type=None, result_writer=None, tolerated_failure_count=None, tolerated_failure_count_path=None, tolerated_failure_percentage=None, tolerated_failure_percentage_path=None)

Bases: MapBaseProps

Properties for configuring a Distribute Map state.

Parameters:
  • comment (Optional[str]) – An optional description for this state. Default: No comment

  • input_path (Optional[str]) – JSONPath expression to select part of the state to be the input to this state. May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}. Default: $

  • item_selector (Optional[Mapping[str, Any]]) – The JSON that you want to override your default iteration input (mutually exclusive with parameters). Default: $

  • items_path (Optional[str]) – JSONPath expression to select the array to iterate over. Default: $

  • max_concurrency (Union[int, float, None]) – MaxConcurrency. An upper bound on the number of iterations you want running at once. Default: - full concurrency

  • max_concurrency_path (Optional[str]) – MaxConcurrencyPath. A JsonPath that specifies the maximum concurrency dynamically from the state input. Default: - full concurrency

  • output_path (Optional[str]) – JSONPath expression to select part of the state to be the output to this state. May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}. Default: $

  • result_path (Optional[str]) – JSONPath expression to indicate where to inject the state’s output. May also be the special value JsonPath.DISCARD, which will cause the state’s input to become its output. Default: $

  • result_selector (Optional[Mapping[str, Any]]) – The JSON that will replace the state’s raw result and become the effective result before ResultPath is applied. You can use ResultSelector to create a payload with values that are static or selected from the state’s raw result. Default: - None

  • state_name (Optional[str]) – Optional name for this state. Default: - The construct ID will be used as state name

  • item_batcher (Optional[ItemBatcher]) – Specifies to process a group of items in a single child workflow execution. Default: - No itemBatcher

  • item_reader (Optional[IItemReader]) – ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader

  • label (Optional[str]) – Label. Unique name for the Distributed Map state added to each Map Run Default: - No label

  • map_execution_type (Optional[StateMachineType]) – MapExecutionType. The execution type of the distributed map state Default: StateMachineType.STANDARD

  • result_writer (Optional[ResultWriter]) – Configuration for S3 location in which to save Map Run results. Default: - No resultWriter

  • tolerated_failure_count (Union[int, float, None]) – ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount

  • tolerated_failure_count_path (Optional[str]) – ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath

  • tolerated_failure_percentage (Union[int, float, None]) – ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage

  • tolerated_failure_percentage_path (Optional[str]) – ToleratedFailurePercentagePath. Percentage of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailurePercentagePath

ExampleMetadata:

infused

Example:

distributed_map = sfn.DistributedMap(self, "Distributed Map State",
    max_concurrency=1,
    items_path=sfn.JsonPath.string_at("$.inputForMap")
)
distributed_map.item_processor(sfn.Pass(self, "Pass State"))

Attributes

comment

An optional description for this state.

Default:

No comment

input_path

JSONPath expression to select part of the state to be the input to this state.

May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.

Default:

$

item_batcher

Specifies to process a group of items in a single child workflow execution.

Default:
  • No itemBatcher

item_reader

ItemReader.

Configuration for where to read items dataset in S3 to iterate

Default:
  • No itemReader

item_selector

The JSON that you want to override your default iteration input (mutually exclusive with parameters).

Default:

$

See:

https://docs.aws.amazon.com/step-functions/latest/dg/input-output-itemselector.html

items_path

JSONPath expression to select the array to iterate over.

Default:

$

label

Label.

Unique name for the Distributed Map state added to each Map Run

Default:
  • No label

map_execution_type

MapExecutionType.

The execution type of the distributed map state

Default:

StateMachineType.STANDARD

max_concurrency

MaxConcurrency.

An upper bound on the number of iterations you want running at once.

Default:
  • full concurrency

See:

https://docs.aws.amazon.com/step-functions/latest/dg/concepts-asl-use-map-state-inline.html#map-state-inline-additional-fields

max_concurrency_path

MaxConcurrencyPath.

A JsonPath that specifies the maximum concurrency dynamically from the state input.

Default:
  • full concurrency

See:

https://docs.aws.amazon.com/step-functions/latest/dg/concepts-asl-use-map-state-inline.html#map-state-inline-additional-fields

output_path

JSONPath expression to select part of the state to be the output to this state.

May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.

Default:

$

result_path

JSONPath expression to indicate where to inject the state’s output.

May also be the special value JsonPath.DISCARD, which will cause the state’s input to become its output.

Default:

$

result_selector

The JSON that will replace the state’s raw result and become the effective result before ResultPath is applied.

You can use ResultSelector to create a payload with values that are static or selected from the state’s raw result.

Default:
  • None

See:

https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector

result_writer

Configuration for S3 location in which to save Map Run results.

Default:
  • No resultWriter

state_name

Optional name for this state.

Default:
  • The construct ID will be used as state name

tolerated_failure_count

ToleratedFailureCount.

Number of failed items to tolerate in a Map Run, as static number

Default:
  • No toleratedFailureCount

tolerated_failure_count_path

ToleratedFailureCountPath.

Number of failed items to tolerate in a Map Run, as JsonPath

Default:
  • No toleratedFailureCountPath

tolerated_failure_percentage

ToleratedFailurePercentage.

Percentage of failed items to tolerate in a Map Run, as static number

Default:
  • No toleratedFailurePercentage

tolerated_failure_percentage_path

ToleratedFailurePercentagePath.

Percentage of failed items to tolerate in a Map Run, as JsonPath

Default:
  • No toleratedFailurePercentagePath