Experimental
@aws-cdk/aws-iot-actions-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
HttpActionBatchConfig Struct
Configuration for batching HTTP action messages.
Example
ts
import { Size } from 'aws-cdk-lib';
declare const topicRule: iot.TopicRule;
topicRule.addAction(
new actions.HttpsAction('https://example.com/endpoint', {
batchConfig: {
maxBatchOpenDuration: Duration.millis(100),
maxBatchSize: 5,
maxBatchSizeBytes: Size.kibibytes(1),
},
}),
);
Properties
maxBatchOpenDurationoptionalDurationmax_batch_open_durationoptionalDurationmaxBatchOpenDurationoptionalDurationMaxBatchOpenDurationoptionalDurationMaxBatchOpenDurationoptionalDuration= Duration.millis(20)#The maximum amount of time an outgoing message waits for other messages to create the batch.
Must be between 5 ms and 200 ms.
maxBatchSizeoptionalnumbermax_batch_sizeoptionalint | floatmaxBatchSizeoptionalNumberMaxBatchSizeoptionaldoubleMaxBatchSizeoptional*float64= 10#The maximum number of messages that are batched together in a single IoT rule action execution.
Must be between 2 and 10.