Class CfnSubscriberPropsMixin.BatchConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnSubscriberPropsMixin.BatchConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriberPropsMixin.BatchConfigurationProperty>
- Enclosing interface:
CfnSubscriberPropsMixin.BatchConfigurationProperty
@Stability(Stable)
public static final class CfnSubscriberPropsMixin.BatchConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriberPropsMixin.BatchConfigurationProperty>
A builder for
CfnSubscriberPropsMixin.BatchConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxBatchSize(Number maxBatchSize) Sets the value ofCfnSubscriberPropsMixin.BatchConfigurationProperty.getMaxBatchSize()maxBatchWindowInSeconds(Number maxBatchWindowInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxBatchSize
@Stability(Stable) public CfnSubscriberPropsMixin.BatchConfigurationProperty.Builder maxBatchSize(Number maxBatchSize) Sets the value ofCfnSubscriberPropsMixin.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 CfnSubscriberPropsMixin.BatchConfigurationProperty.Builder maxBatchWindowInSeconds(Number maxBatchWindowInSeconds) - 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<CfnSubscriberPropsMixin.BatchConfigurationProperty>- Returns:
- a new instance of
CfnSubscriberPropsMixin.BatchConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-