-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
General Issue
Kafka event source properties includes unsupported properties
The Question
The SelfManagedKafkaEventSourceProps interface includes properties such as: bisectBatchOnError, retryAttempts, maxBatchingWindow, onFailure, maxRecordAge, and parallelizationFactor however, per API docs (ref), these properties are only supported by Kinesis and Dynamo Stream event sources.
This causes confusion during deployment as it appears these features are available, but the deploy fails.
CDK CLI Version
1.134.0 (build dd5e12d)
Framework Version
1.134.0
Node.js Version
v14.18.2
OS
Debian
Language
Typescript
Language Version
No response
Other information
Attempting to deploy returns an error:
9:25:56 PM | CREATE_FAILED | AWS::Lambda::EventSourceMapping | test...B0194DF1 Resource handler returned message: "Invalid request provided: Unsupported 'maximumRetryAttempts' parameter for given event source mapping type. (Service: Lambda, Status Code: 400, Request ID: 2f6..., Ext ended Request ID: null)" (RequestToken: 324..., HandlerErrorCode: InvalidRequest)