diff --git a/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts b/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts index cd78ca0520f4e..46b20d01e1787 100644 --- a/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts +++ b/packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts @@ -63,7 +63,11 @@ export interface StreamEventSourceProps extends BaseStreamEventSourceProps { * * Minimum value of 60 seconds * * Maximum value of 7 days * - * @default - the retention period configured on the stream + * The default value is -1, which sets the maximum age to infinite. + * When the value is set to infinite, Lambda never discards old records. + * Record are valid until it expires in the event source. + * + * @default -1 */ readonly maxRecordAge?: Duration; @@ -73,7 +77,11 @@ export interface StreamEventSourceProps extends BaseStreamEventSourceProps { * * Minimum value of 0 * * Maximum value of 10000 * - * @default - retry until the record expires + * The default value is -1, which sets the maximum number of retries to infinite. + * When MaximumRetryAttempts is infinite, Lambda retries failed records until + * the record expires in the event source. + * + * @default -1 */ readonly retryAttempts?: number;