Interface ProvisionedPollerConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ProvisionedPollerConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:04.019Z")
@Stability(Stable)
public interface ProvisionedPollerConfig
extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSource; // Your MSK cluster arn String clusterArn; Function myFunction; // The Kafka topic you want to subscribe to String topic = "some-cool-topic"; myFunction.addEventSource(ManagedKafkaEventSource.Builder.create() .clusterArn(clusterArn) .topic(topic) .startingPosition(StartingPosition.TRIM_HORIZON) .provisionedPollerConfig(ProvisionedPollerConfig.builder() .minimumPollers(1) .maximumPollers(3) .build()) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forProvisionedPollerConfig
static final class
An implementation forProvisionedPollerConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The maximum number of pollers that can be provisioned.The minimum number of pollers that should be provisioned.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaximumPollers
The maximum number of pollers that can be provisioned.Default: 200
-
getMinimumPollers
The minimum number of pollers that should be provisioned.Default: 1
-
builder
- Returns:
- a
ProvisionedPollerConfig.Builder
ofProvisionedPollerConfig
-