aws-lambda: FilterRule.null() returns empty array #31458
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
According to the documentation here, the FilterPattern should be [null]. However, the function FilterRule.null() currently returns an empty array [] instead.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The filter pattern for null should be
{ "eventName": [ "INSERT" ], "dynamodb": { "NewImage": { "test": { "S": [ null ] } } } }
Current Behavior
The filter pattern currently being returned is
{ "eventName": [ "INSERT" ], "dynamodb": { "NewImage": { "test": { "S": [] } } } }
Reproduction Steps
Construct an EventSourceMapping
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.155.0
Framework Version
No response
Node.js Version
v20.11.0
OS
Sonoma
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: