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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
provisioned_poller_config = lambda.ProvisionedPollerConfig(
maximum_pollers=123,
minimum_pollers=123,
poller_group_name="pollerGroupName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
ProvisionedPollerConfig provisionedPollerConfig = ProvisionedPollerConfig.builder()
.maximumPollers(123)
.minimumPollers(123)
.pollerGroupName("pollerGroupName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var provisionedPollerConfig = new ProvisionedPollerConfig {
MaximumPollers = 123,
MinimumPollers = 123,
PollerGroupName = "pollerGroupName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
provisionedPollerConfig := &ProvisionedPollerConfig{
MaximumPollers: jsii.Number(123),
MinimumPollers: jsii.Number(123),
PollerGroupName: jsii.String("pollerGroupName"),
}
Properties
maximumPollersoptionalnumbermaximum_pollersoptionalint | floatmaximumPollersoptionalNumberMaximumPollersoptionaldoubleMaximumPollersoptional*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.
minimumPollersoptionalnumberminimum_pollersoptionalint | floatminimumPollersoptionalNumberMinimumPollersoptionaldoubleMinimumPollersoptional*float64#The minimum number of pollers that should be provisioned.
Default: 2 for SQS, 1 for MSK/Kafka/MQ
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.
pollerGroupNameoptionalstringpoller_group_nameoptionalstrpollerGroupNameoptionalStringPollerGroupNameoptionalstringPollerGroupNameoptional*string#An optional identifier that groups multiple ESMs to share EPU capacity and reduce costs.
Default: not set, dedicated compute resource per event source.
ESMs with the same PollerGroupName share compute resources.