Skip to content
v2.273.0

ProvisionedPollerConfig Struct ​

(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const provisionedPollerConfig: lambda.ProvisionedPollerConfig = {
  maximumPollers: 123,
  minimumPollers: 123,
  pollerGroupName: 'pollerGroupName',
};

Properties ​

maximumPollersnumbermaximum_pollersint | floatmaximumPollersNumberMaximumPollersdoubleMaximumPollers*float64= 200#
The maximum number of pollers that can be provisioned.

Valid Range:

  • For Amazon SQS: Minimum value of 2. Maximum value of 2000. Default: 200.
  • For Amazon MSK, self-managed Apache Kafka, and Amazon MQ: Minimum value of 1. Maximum value of 2000. Default: 200.
minimumPollersnumberminimum_pollersint | floatminimumPollersNumberMinimumPollersdoubleMinimumPollers*float64= 2 for SQS, 1 for MSK/Kafka/MQ#
The minimum number of pollers that should be provisioned.

Valid Range:

  • For Amazon SQS: Minimum value of 2. Maximum value of 200. Default: 2.
  • For Amazon MSK, self-managed Apache Kafka, and Amazon MQ: Minimum value of 1. Maximum value of 200. Default: 1.
pollerGroupNamestringpoller_group_namestrpollerGroupNameStringPollerGroupNamestringPollerGroupName*string= not set, dedicated compute resou…#
An optional identifier that groups multiple ESMs to share EPU capacity and reduce costs.

ESMs with the same PollerGroupName share compute resources.

default

Default: not set, dedicated compute resource per event source.