Skip to content
v2.274.0

DistributedMapJsonPathProps Struct ​

Properties for configuring a Distribute Map state that using JSONPath.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';

declare const assign: any;
declare const itemBatcher: stepfunctions.ItemBatcher;
declare const itemReader: stepfunctions.IItemReader;
declare const itemSelector: any;
declare const resultSelector: any;
declare const resultWriter: stepfunctions.ResultWriter;
declare const resultWriterV2: stepfunctions.ResultWriterV2;
const distributedMapJsonPathProps: stepfunctions.DistributedMapJsonPathProps = {
  assign: {
    assignKey: assign,
  },
  comment: 'comment',
  inputPath: 'inputPath',
  itemBatcher: itemBatcher,
  itemReader: itemReader,
  itemSelector: {
    itemSelectorKey: itemSelector,
  },
  itemsPath: 'itemsPath',
  jsonataItemSelector: 'jsonataItemSelector',
  jsonataMaxConcurrency: 'jsonataMaxConcurrency',
  label: 'label',
  mapExecutionType: stepfunctions.StateMachineType.EXPRESS,
  maxConcurrency: 123,
  maxConcurrencyPath: 'maxConcurrencyPath',
  outputPath: 'outputPath',
  queryLanguage: stepfunctions.QueryLanguage.JSON_PATH,
  resultPath: 'resultPath',
  resultSelector: {
    resultSelectorKey: resultSelector,
  },
  resultWriter: resultWriter,
  resultWriterV2: resultWriterV2,
  stateName: 'stateName',
  toleratedFailureCount: 123,
  toleratedFailureCountPath: 'toleratedFailureCountPath',
  toleratedFailurePercentage: 123,
  toleratedFailurePercentagePath: 'toleratedFailurePercentagePath',
};

Properties ​

assignoptional{ [key: string]: any }assignoptionaltyping.Mapping[str, Any]assignoptionalMap<String, Object>AssignoptionalIDictionary<string, object>Assignoptional*map[string]interface{}#
Workflow variables to store in this step.

Default: Not assign variables

Using workflow variables, you can store data in a step and retrieve that data in future steps.

commentoptionalstringcommentoptionalstrcommentoptionalStringCommentoptionalstringCommentoptional*string#
A comment describing this state.

Default: No comment

inputPathoptionalstringinput_pathoptionalstrinputPathoptionalStringInputPathoptionalstringInputPathoptional*string= $#
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 {}.

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

Default: No itemBatcher

itemReaderoptionalIItemReaderitem_readeroptionalIItemReaderitemReaderoptionalIItemReaderItemReaderoptionalIItemReaderItemReaderoptionalIItemReader#
ItemReader.

Default: No itemReader

Configuration for where to read items dataset in S3 to iterate

itemSelectoroptional{ [key: string]: any }item_selectoroptionaltyping.Mapping[str, Any]itemSelectoroptionalMap<String, Object>ItemSelectoroptionalIDictionary<string, object>ItemSelectoroptional*map[string]interface{}= $#
The JSON that you want to override your default iteration input (mutually exclusive with `parameters` and `jsonataItemSelector`).
itemsPathoptionalstringitems_pathoptionalstritemsPathoptionalStringItemsPathoptionalstringItemsPathoptional*string= $#
JSONPath expression to select the array to iterate over.
jsonataItemSelectoroptionalstringjsonata_item_selectoroptionalstrjsonataItemSelectoroptionalStringJsonataItemSelectoroptionalstringJsonataItemSelectoroptional*string= $#
Jsonata expression that evaluates to a JSON array to override your default iteration input (mutually exclusive with `parameters` and `itemSelector`).

Example value: {% {\"foo\": \"foo\", \"input\": $states.input} %}

jsonataMaxConcurrencyoptionalstringjsonata_max_concurrencyoptionalstrjsonataMaxConcurrencyoptionalStringJsonataMaxConcurrencyoptionalstringJsonataMaxConcurrencyoptional*string#
JSONata expression for MaxConcurrency.

Default: full concurrency

A JSONata expression that evaluates to an integer, specifying the maximum concurrency dynamically. Mutually exclusive with maxConcurrency and maxConcurrencyPath.

Example value: {% $states.input.maxConcurrency %}

labeloptionalstringlabeloptionalstrlabeloptionalStringLabeloptionalstringLabeloptional*string#
Label.

Default: No label

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

mapExecutionTypeoptionalStateMachineTypemap_execution_typeoptionalStateMachineTypemapExecutionTypeoptionalStateMachineTypeMapExecutionTypeoptionalStateMachineTypeMapExecutionTypeoptionalStateMachineType= StateMachineType.STANDARD#
MapExecutionType.

The execution type of the distributed map state

This property overwrites ProcessorConfig.executionType

maxConcurrencyoptionalnumbermax_concurrencyoptionalint | floatmaxConcurrencyoptionalNumberMaxConcurrencyoptionaldoubleMaxConcurrencyoptional*float64#
MaxConcurrency.

Default: full concurrency

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

maxConcurrencyPathoptionalstringmax_concurrency_pathoptionalstrmaxConcurrencyPathoptionalStringMaxConcurrencyPathoptionalstringMaxConcurrencyPathoptional*string#
MaxConcurrencyPath.

Default: full concurrency

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

outputPathoptionalstringoutput_pathoptionalstroutputPathoptionalStringOutputPathoptionalstringOutputPathoptional*string= $#
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 {}.

queryLanguageoptionalQueryLanguagequery_languageoptionalQueryLanguagequeryLanguageoptionalQueryLanguageQueryLanguageoptionalQueryLanguageQueryLanguageoptionalQueryLanguage= JSONPath#
The name of the query language used by the state.

If the state does not contain a queryLanguage field, then it will use the query language specified in the top-level queryLanguage field.

resultPathoptionalstringresult_pathoptionalstrresultPathoptionalStringResultPathoptionalstringResultPathoptional*string= $#
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.

resultSelectoroptional{ [key: string]: any }result_selectoroptionaltyping.Mapping[str, Any]resultSelectoroptionalMap<String, Object>ResultSelectoroptionalIDictionary<string, object>ResultSelectoroptional*map[string]interface{}= None#
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.

resultWriteroptionalResultWriterresult_writeroptionalResultWriterresultWriteroptionalResultWriterResultWriteroptionalResultWriterResultWriteroptionalResultWriterdeprecated#
Use {@link resultWriterV2 }

Default: No resultWriter

resultWriterV2optionalResultWriterV2result_writer_v2optionalResultWriterV2resultWriterV2optionalResultWriterV2ResultWriterV2optionalResultWriterV2ResultWriterV2optionalResultWriterV2#
Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true);

Default: No resultWriterV2

stateNameoptionalstringstate_nameoptionalstrstateNameoptionalStringStateNameoptionalstringStateNameoptional*string#
Optional name for this state.

Default: The construct ID will be used as state name

toleratedFailureCountoptionalnumbertolerated_failure_countoptionalint | floattoleratedFailureCountoptionalNumberToleratedFailureCountoptionaldoubleToleratedFailureCountoptional*float64#
ToleratedFailureCount.

Default: No toleratedFailureCount

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

toleratedFailureCountPathoptionalstringtolerated_failure_count_pathoptionalstrtoleratedFailureCountPathoptionalStringToleratedFailureCountPathoptionalstringToleratedFailureCountPathoptional*string#
ToleratedFailureCountPath.

Default: No toleratedFailureCountPath

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

toleratedFailurePercentageoptionalnumbertolerated_failure_percentageoptionalint | floattoleratedFailurePercentageoptionalNumberToleratedFailurePercentageoptionaldoubleToleratedFailurePercentageoptional*float64#
ToleratedFailurePercentage.

Default: No toleratedFailurePercentage

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

toleratedFailurePercentagePathoptionalstringtolerated_failure_percentage_pathoptionalstrtoleratedFailurePercentagePathoptionalStringToleratedFailurePercentagePathoptionalstringToleratedFailurePercentagePathoptional*string#
ToleratedFailurePercentagePath.

Default: No toleratedFailurePercentagePath

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