Class CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty>
- Enclosing interface:
CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty
@Stability(Stable)
public static final class CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maximumPollers(Number maximumPollers) minimumPollers(Number minimumPollers) pollerGroupName(String pollerGroupName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumPollers
@Stability(Stable) public CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.Builder maximumPollers(Number maximumPollers) Sets the value ofCfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.getMaximumPollers()- Parameters:
maximumPollers- The maximum number of event pollers this event source can scale up to. For Amazon SQS events source mappings, default is 200, and minimum value allowed is 2. For Amazon MSK and self-managed Apache Kafka event source mappings, default is 200, and minimum value allowed is 1.- Returns:
this
-
minimumPollers
@Stability(Stable) public CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.Builder minimumPollers(Number minimumPollers) Sets the value ofCfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.getMinimumPollers()- Parameters:
minimumPollers- The minimum number of event pollers this event source can scale down to. For Amazon SQS events source mappings, default is 2, and minimum 2 required. For Amazon MSK and self-managed Apache Kafka event source mappings, default is 1.- Returns:
this
-
pollerGroupName
@Stability(Stable) public CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.Builder pollerGroupName(String pollerGroupName) Sets the value ofCfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty.getPollerGroupName()- Parameters:
pollerGroupName- (Amazon MSK and self-managed Apache Kafka) The name of the provisioned poller group. Use this option to group multiple ESMs within the event source's VPC to share Event Poller Unit (EPU) capacity. You can use this option to optimize Provisioned mode costs for your ESMs. You can group up to 100 ESMs per poller group and aggregate maximum pollers across all ESMs in a group cannot exceed 2000.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty>- Returns:
- a new instance of
CfnEventSourceMappingPropsMixin.ProvisionedPollerConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-