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

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
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
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