Skip to content
v2.273.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 ​

assign{ [key: string]: any }assigntyping.Mapping[str, Any]assignMap<String, Object>AssignIDictionary<string, object>Assign*map[string]interface{}= Not assign variables#
Workflow variables to store in this step.

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

commentstringcommentstrcommentStringCommentstringComment*string= No comment#
A comment describing this state.
inputPathstringinput_pathstrinputPathStringInputPathstringInputPath*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 {}.

itemBatcherItemBatcheritem_batcherItemBatcheritemBatcherItemBatcherItemBatcherItemBatcherItemBatcherItemBatcher= No itemBatcher#
Specifies to process a group of items in a single child workflow execution.
itemReaderIItemReaderitem_readerIItemReaderitemReaderIItemReaderItemReaderIItemReaderItemReaderIItemReader= No itemReader#
ItemReader.

Configuration for where to read items dataset in S3 to iterate

itemSelector{ [key: string]: any }item_selectortyping.Mapping[str, Any]itemSelectorMap<String, Object>ItemSelectorIDictionary<string, object>ItemSelector*map[string]interface{}= $#
The JSON that you want to override your default iteration input (mutually exclusive with `parameters` and `jsonataItemSelector`).
itemsPathstringitems_pathstritemsPathStringItemsPathstringItemsPath*string= $#
JSONPath expression to select the array to iterate over.
jsonataItemSelectorstringjsonata_item_selectorstrjsonataItemSelectorStringJsonataItemSelectorstringJsonataItemSelector*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} %}

jsonataMaxConcurrencystringjsonata_max_concurrencystrjsonataMaxConcurrencyStringJsonataMaxConcurrencystringJsonataMaxConcurrency*string= full concurrency#
JSONata expression for MaxConcurrency.

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

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

labelstringlabelstrlabelStringLabelstringLabel*string= No label#
Label.

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

mapExecutionTypeStateMachineTypemap_execution_typeStateMachineTypemapExecutionTypeStateMachineTypeMapExecutionTypeStateMachineTypeMapExecutionTypeStateMachineType= StateMachineType.STANDARD#
MapExecutionType.

The execution type of the distributed map state

This property overwrites ProcessorConfig.executionType

maxConcurrencynumbermax_concurrencyint | floatmaxConcurrencyNumberMaxConcurrencydoubleMaxConcurrency*float64= full concurrency#
MaxConcurrency.

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

maxConcurrencyPathstringmax_concurrency_pathstrmaxConcurrencyPathStringMaxConcurrencyPathstringMaxConcurrencyPath*string= full concurrency#
MaxConcurrencyPath.

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

outputPathstringoutput_pathstroutputPathStringOutputPathstringOutputPath*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 {}.

queryLanguageQueryLanguagequery_languageQueryLanguagequeryLanguageQueryLanguageQueryLanguageQueryLanguageQueryLanguageQueryLanguage= 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.

resultPathstringresult_pathstrresultPathStringResultPathstringResultPath*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.

resultSelector{ [key: string]: any }result_selectortyping.Mapping[str, Any]resultSelectorMap<String, Object>ResultSelectorIDictionary<string, object>ResultSelector*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.

resultWriterResultWriterresult_writerResultWriterresultWriterResultWriterResultWriterResultWriterResultWriterResultWriter= No resultWriterdeprecated#
Use {@link resultWriterV2 }
resultWriterV2ResultWriterV2result_writer_v2ResultWriterV2resultWriterV2ResultWriterV2ResultWriterV2ResultWriterV2ResultWriterV2ResultWriterV2= No resultWriterV2#
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);
stateNamestringstate_namestrstateNameStringStateNamestringStateName*string= The construct ID will be used as…#
Optional name for this state.
default

Default: The construct ID will be used as state name

toleratedFailureCountnumbertolerated_failure_countint | floattoleratedFailureCountNumberToleratedFailureCountdoubleToleratedFailureCount*float64= No toleratedFailureCount#
ToleratedFailureCount.

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

toleratedFailureCountPathstringtolerated_failure_count_pathstrtoleratedFailureCountPathStringToleratedFailureCountPathstringToleratedFailureCountPath*string= No toleratedFailureCountPath#
ToleratedFailureCountPath.

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

toleratedFailurePercentagenumbertolerated_failure_percentageint | floattoleratedFailurePercentageNumberToleratedFailurePercentagedoubleToleratedFailurePercentage*float64= No toleratedFailurePercentage#
ToleratedFailurePercentage.

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

toleratedFailurePercentagePathstringtolerated_failure_percentage_pathstrtoleratedFailurePercentagePathStringToleratedFailurePercentagePathstringToleratedFailurePercentagePath*string= No toleratedFailurePercentagePat…#
ToleratedFailurePercentagePath.

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

default

Default: No toleratedFailurePercentagePath