Skip to content

Commit 734faa5

Browse files
authored
feat(logs): additional log retention periods (#20347)
Adds newly supported log retention periods per [the docs](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html#API_PutRetentionPolicy_RequestSyntax). Resolves #20346 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e2819b3 commit 734faa5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/@aws-cdk/aws-logs/lib/log-group.ts

+20
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,26 @@ export enum RetentionDays {
313313
*/
314314
FIVE_YEARS = 1827,
315315

316+
/**
317+
* 6 years
318+
*/
319+
SIX_YEARS = 2192,
320+
321+
/**
322+
* 7 years
323+
*/
324+
SEVEN_YEARS = 2557,
325+
326+
/**
327+
* 8 years
328+
*/
329+
EIGHT_YEARS = 2922,
330+
331+
/**
332+
* 9 years
333+
*/
334+
NINE_YEARS = 3288,
335+
316336
/**
317337
* 10 years
318338
*/

0 commit comments

Comments
 (0)