Skip to content

aws_lambda_event_sources: Missing support for maxRecordAge=-1 value in KinesisEventSourceProps #27321

@grollat

Description

@grollat

Describe the bug

The service supports -1 as a value but CDK imposes a Duration object which does not support negative value. This can become an issue in case the Kinesis Stream Retention window is set to > 7 days (which is the max allowed for maxRecordAge). when this happens customer may lose records.

Expected Behavior

the KinesisEventSourceProps should support a way to set the maxRecordAge value to -1. (Duration(-1)?)

Current Behavior

Duration(-1) is not allowed and no other way to set this value

image

Reproduction Steps

self explanatory

Possible Solution

allow Duration.seconds(-1) as a way to pass through the value?

Additional Information/Context

No response

CDK CLI Version

latest

Framework Version

No response

Node.js Version

all

OS

all

Language

Typescript

Language Version

all

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambda-event-sourcesdocs/inlineRelated to inline documentation of the API ReferencedocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions