aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.96k stars 557 forks source link

CloudwatchLogs `retention` field in `CreateLogGroupCommand` #6113

Closed DES-Destry closed 1 month ago

DES-Destry commented 1 month ago

Describe the feature

I want to describe retention for LogGroup from SDK. I found the only way to do it via a AWS Console. Another way to do it is create UpdateLogGroupCommand, but I think, that adding it into the CreateLogGroupCommand is much easier. I offer to pass in this variable value in days or as enum, such as in AWS Console.

Use Case

When I creating a new LogGroup from code and this code knows how long it want to store logs.

Proposed Solution

Idk. AWS Console can do it. Why SDK can't? :)

Other Information

No response

Acknowledgements

SDK version used

^3.577.0

Environment details (OS name and version, etc.)

MacOS 14.5 (Sonoma)

github-actions[bot] commented 3 weeks ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.