describe-log-groups: --log-group-name-pattern does not list retentionInDays #8264
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
logs
p3
This is a minor priority issue
service-api
This issue is due to a problem in a service API, not the SDK implementation.
Describe the bug
retentionInDays is missing from the listing when using --log-group-name-pattern.
Expected Behavior
Output should be the same when using --log-group-name-pattern as when using --log-group-name-prefix
Current Behavior
retentionInDays reported, when using --log-group-name-prefix
$ aws logs describe-log-groups --log-group-name-prefix '/aws/lambda/foo' --query 'logGroups[0].retentionInDays'
60
retentionInDays missing, when using --log-group-name-pattern
$ aws logs describe-log-groups --log-group-name-pattern 'foo' --query 'logGroups[0].retentionInDays'
null
Reproduction Steps
See above
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.13.21 Python/3.11.5
Environment details (OS name and version, etc.)
Windows/10 exe/AMD64
The text was updated successfully, but these errors were encountered: