ItemBatcher Class
Configuration for processing a group of items in a single child workflow execution.
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 batchInput: any;
const itemBatcher = new stepfunctions.ItemBatcher({
batchInput: batchInput,
maxInputBytesPerBatch: 123,
maxInputBytesPerBatchPath: 'maxInputBytesPerBatchPath',
maxItemsPerBatch: 123,
maxItemsPerBatchPath: 'maxItemsPerBatchPath',
});
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions
# batch_input: Any
item_batcher = stepfunctions.ItemBatcher(
batch_input=batch_input,
max_input_bytes_per_batch=123,
max_input_bytes_per_batch_path="maxInputBytesPerBatchPath",
max_items_per_batch=123,
max_items_per_batch_path="maxItemsPerBatchPath"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;
Object batchInput;
ItemBatcher itemBatcher = ItemBatcher.Builder.create()
.batchInput(batchInput)
.maxInputBytesPerBatch(123)
.maxInputBytesPerBatchPath("maxInputBytesPerBatchPath")
.maxItemsPerBatch(123)
.maxItemsPerBatchPath("maxItemsPerBatchPath")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;
var batchInput;
var itemBatcher = new ItemBatcher(new ItemBatcherProps {
BatchInput = batchInput,
MaxInputBytesPerBatch = 123,
MaxInputBytesPerBatchPath = "maxInputBytesPerBatchPath",
MaxItemsPerBatch = 123,
MaxItemsPerBatchPath = "maxItemsPerBatchPath"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var batchInput interface{}
itemBatcher := awscdk.Aws_stepfunctions.NewItemBatcher(&ItemBatcherProps{
BatchInput: batchInput,
MaxInputBytesPerBatch: jsii.Number(123),
MaxInputBytesPerBatchPath: jsii.String("maxInputBytesPerBatchPath"),
MaxItemsPerBatch: jsii.Number(123),
MaxItemsPerBatchPath: jsii.String("maxItemsPerBatchPath"),
})
Initializer
ts
new ItemBatcher(props: ItemBatcherProps)
python
ItemBatcher(props: ItemBatcherProps)
java
new ItemBatcher(ItemBatcherProps props)
csharp
new ItemBatcher(ItemBatcherProps props)
go
NewItemBatcher(Props ItemBatcherProps)
Methods
render(): anydef render(self, ) -> Anypublic Object render()public object Render()func Render() interface{}#Render ItemBatcher in ASL JSON format.
validateItemBatcher(): string[]def validate_item_batcher(self, ) -> typing.List[str]public List<String> validateItemBatcher()public string[] ValidateItemBatcher()func ValidateItemBatcher() *[]*string#Validate this ItemBatcher.