I am a Technology Designer and YouTuber who likes to write Technical Blogs and contribute to Open Source which mainly includes Cloud, DevOps,Linux etc.
Nothing here yet.
response = client.describe_log_groups() will return below dictionary as seen below { 'logGroups': [ { 'logGroupName': 'string', 'creationTime': 123, 'retentionInDays': 123, 'metricFilterCount': 123, 'arn': 'string', 'storedBytes': 123, 'kmsKeyId': 'string' }, ], 'nextToken': 'string' } The way I iterated through this dict response using for loop to fetch loggroupname and append in list same way do it for retention days and append it to dictionary, then based on key value run conditions to execute program