Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Mar 27, 2024
2 parents 3062c2a + 3b64b12 commit 197d01f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 10 additions & 2 deletions packages/aws-cdk-lib/aws-lambda-event-sources/lib/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions packages/aws-cdk-lib/aws-sns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,9 @@ Message archiving provides the ability to archive a single copy of all messages
You can store published messages within your topic by enabling the message archive policy on the topic, which enables message archiving for all subscriptions linked to that topic.
Messages can be archived for a minimum of one day to a maximum of 365 days.

Example with a archive policy for SQS:
Example with an archive policy:

```ts
declare const role: iam.Role;
const topic = new sns.Topic(this, 'MyTopic', {
fifo: true,
messageRetentionPeriodInDays: 7,
Expand Down

0 comments on commit 197d01f

Please sign in to comment.