Interface DistributedMapProps
- All Superinterfaces:
AssignableStateOptions,software.amazon.jsii.JsiiSerializable,JsonataCommonOptions,JsonPathCommonOptions,MapBaseJsonataOptions,MapBaseJsonPathOptions,MapBaseOptions,MapBaseProps,StateBaseProps
- All Known Implementing Classes:
DistributedMapProps.Jsii$Proxy
Example:
/**
* JSON state input:
* {
* "bucketName": "my-bucket",
* "prefix": "item"
* }
*/
DistributedMap distributedMap = DistributedMap.Builder.create(this, "DistributedMap")
.itemReader(S3ObjectsItemReader.Builder.create()
.bucketNamePath(JsonPath.stringAt("$.bucketName"))
.prefix(JsonPath.stringAt("$.prefix"))
.build())
.build();
distributedMap.itemProcessor(new Pass(this, "Pass"));
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDistributedMapPropsstatic final classAn implementation forDistributedMapProps -
Method Summary
Modifier and TypeMethodDescriptionstatic DistributedMapProps.Builderbuilder()Workflow variables to store in this step.default StringJSONPath expression to select part of the state to be the input to this state.default ItemBatcherSpecifies to process a group of items in a single child workflow execution.default IItemReaderItemReader.default ProvideItemsgetItems()The array that the Map state will iterate over.The JSON that you want to override your default iteration input (mutually exclusive withparametersandjsonataItemSelector).default StringJSONPath expression to select the array to iterate over.default StringJsonata expression that evaluates to a JSON array to override your default iteration input (mutually exclusive withparametersanditemSelector).default StringgetLabel()Label.default StateMachineTypeMapExecutionType.default NumberMaxConcurrency.default StringMaxConcurrencyPath.default StringJSONPath expression to select part of the state to be the output to this state.default ObjectUsed to specify and transform output from the state.default StringJSONPath expression to indicate where to inject the state's output.The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.default ResultWriterDeprecated.default ResultWriterV2Configuration 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 NumberToleratedFailureCount.default StringToleratedFailureCountPath.default NumberToleratedFailurePercentage.default StringToleratedFailurePercentagePath.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.stepfunctions.StateBaseProps
getComment, getQueryLanguage, getStateName
-
Method Details
-
getItemBatcher
Specifies to process a group of items in a single child workflow execution.Default: - No itemBatcher
-
getItemReader
ItemReader.Configuration for where to read items dataset in S3 to iterate
Default: - No itemReader
-
getLabel
Label.Unique name for the Distributed Map state added to each Map Run
Default: - No label
-
getMapExecutionType
MapExecutionType.The execution type of the distributed map state
This property overwrites ProcessorConfig.executionType
Default: StateMachineType.STANDARD
-
getResultWriter
Deprecated.Useinvalid reference
resultWriterV2(deprecated) Configuration for S3 location in which to save Map Run results.Default: - No resultWriter
-
getResultWriterV2
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
-
getToleratedFailureCount
ToleratedFailureCount.Number of failed items to tolerate in a Map Run, as static number
Default: - No toleratedFailureCount
-
getToleratedFailureCountPath
ToleratedFailureCountPath.Number of failed items to tolerate in a Map Run, as JsonPath
Default: - No toleratedFailureCountPath
-
getToleratedFailurePercentage
ToleratedFailurePercentage.Percentage of failed items to tolerate in a Map Run, as static number
Default: - No toleratedFailurePercentage
-
getToleratedFailurePercentagePath
ToleratedFailurePercentagePath.Percentage of failed items to tolerate in a Map Run, as JsonPath
Default: - No toleratedFailurePercentagePath
-
getItemSelector
The JSON that you want to override your default iteration input (mutually exclusive withparametersandjsonataItemSelector).Default: $
- Specified by:
getItemSelectorin interfaceMapBaseOptions- See Also:
-
getJsonataItemSelector
Jsonata expression that evaluates to a JSON array to override your default iteration input (mutually exclusive withparametersanditemSelector).Example value:
{% {\"foo\": \"foo\", \"input\": $states.input} %}Default: $
- Specified by:
getJsonataItemSelectorin interfaceMapBaseOptions
-
getMaxConcurrency
MaxConcurrency.An upper bound on the number of iterations you want running at once.
Default: - full concurrency
- Specified by:
getMaxConcurrencyin interfaceMapBaseOptions- See Also:
-
getAssign
Workflow variables to store in this step.Using workflow variables, you can store data in a step and retrieve that data in future steps.
Default: - Not assign variables
- Specified by:
getAssignin interfaceAssignableStateOptions- See Also:
-
getItemsPath
JSONPath expression to select the array to iterate over.Default: $
- Specified by:
getItemsPathin interfaceMapBaseJsonPathOptions
-
getMaxConcurrencyPath
MaxConcurrencyPath.A JsonPath that specifies the maximum concurrency dynamically from the state input.
Default: - full concurrency
- Specified by:
getMaxConcurrencyPathin interfaceMapBaseJsonPathOptions- See Also:
-
getResultPath
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: $
- Specified by:
getResultPathin interfaceMapBaseJsonPathOptions
-
getResultSelector
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
- Specified by:
getResultSelectorin interfaceMapBaseJsonPathOptions- See Also:
-
getInputPath
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: $
- Specified by:
getInputPathin interfaceJsonPathCommonOptions
-
getOutputPath
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: $
- Specified by:
getOutputPathin interfaceJsonPathCommonOptions
-
getItems
The array that the Map state will iterate over.Default: - The state input as is.
- Specified by:
getItemsin interfaceMapBaseJsonataOptions
-
getOutputs
Used to specify and transform output from the state.When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly.
Default: - $states.result or $states.errorOutput
- Specified by:
getOutputsin interfaceJsonataCommonOptions- See Also:
-
builder
- Returns:
- a
DistributedMapProps.BuilderofDistributedMapProps
-
invalid reference