Class CfnSubscriber.BatchConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnSubscriber.BatchConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriber.BatchConfigurationProperty>
- Enclosing interface:
CfnSubscriber.BatchConfigurationProperty
@Stability(Stable)
public static final class CfnSubscriber.BatchConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriber.BatchConfigurationProperty>
A builder for
CfnSubscriber.BatchConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxBatchSize(Number maxBatchSize) Sets the value ofCfnSubscriber.BatchConfigurationProperty.getMaxBatchSize()maxBatchWindowInSeconds(Number maxBatchWindowInSeconds) Sets the value ofCfnSubscriber.BatchConfigurationProperty.getMaxBatchWindowInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxBatchSize
@Stability(Stable) public CfnSubscriber.BatchConfigurationProperty.Builder maxBatchSize(Number maxBatchSize) Sets the value ofCfnSubscriber.BatchConfigurationProperty.getMaxBatchSize()- Parameters:
maxBatchSize- The maximum number of events in a single batch delivered to the target. The maximum depends on the target: 500 for Kinesis Data Streams and Amazon Data Firehose, 100 for Lambda, Step Functions, and AWS::EventsV2::EventBus targets, 10 for Amazon SQS, Amazon SNS, and AWS::Events::EventBus targets, and 1 for API Gateway, API destinations, and universal service integration targets. The service rejects a value above the target's maximum. Fewer events may be delivered when the batch window elapses. When omitted, the default is 10 for Lambda and Step Functions targets and the target's maximum for other targets. The resolved value applied by the service is returned on read.- Returns:
this
-
maxBatchWindowInSeconds
@Stability(Stable) public CfnSubscriber.BatchConfigurationProperty.Builder maxBatchWindowInSeconds(Number maxBatchWindowInSeconds) Sets the value ofCfnSubscriber.BatchConfigurationProperty.getMaxBatchWindowInSeconds()- Parameters:
maxBatchWindowInSeconds- The maximum time in seconds to wait for a batch to fill before delivering it, 0-300. The default is 0 (no wait). The resolved value applied by the service is returned on read.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriber.BatchConfigurationProperty>- Returns:
- a new instance of
CfnSubscriber.BatchConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-