CloudWatchLogs / Paginator / ListAggregateLogGroupSummaries
ListAggregateLogGroupSummaries¶
- class CloudWatchLogs.Paginator.ListAggregateLogGroupSummaries¶
paginator = client.get_paginator('list_aggregate_log_group_summaries')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
CloudWatchLogs.Client.list_aggregate_log_group_summaries().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( accountIdentifiers=[ 'string', ], includeLinkedAccounts=True|False, logGroupClass='STANDARD'|'INFREQUENT_ACCESS'|'DELIVERY', logGroupNamePattern='string', dataSources=[ { 'name': 'string', 'type': 'string' }, ], groupBy='DATA_SOURCE_NAME_TYPE_AND_FORMAT'|'DATA_SOURCE_NAME_AND_TYPE', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
accountIdentifiers (list) –
When
includeLinkedAccountsis set totrue, use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array.(string) –
includeLinkedAccounts (boolean) –
If you are using a monitoring account, set this to
trueto have the operation return log groups in the accounts listed inaccountIdentifiers.If this parameter is set to
trueandaccountIdentifierscontains a null value, the operation returns all log groups in the monitoring account and all log groups in all source accounts that are linked to the monitoring account.The default for this parameter is
false.logGroupClass (string) – Filters the results by log group class to include only log groups of the specified class.
logGroupNamePattern (string) –
Use this parameter to limit the returned log groups to only those with names that match the pattern that you specify. This parameter is a regular expression that can match prefixes and substrings, and supports wildcard matching and matching multiple patterns, as in the following examples.
Use
^to match log group names by prefix.For a substring match, specify the string to match. All matches are case sensitive
To match multiple patterns, separate them with a
|as in the example^/aws/lambda|discovery
You can specify as many as five different regular expression patterns in this field, each of which must be between 3 and 24 characters. You can include the
^symbol as many as five times, and include the|symbol as many as four times.dataSources (list) –
Filters the results by data source characteristics to include only log groups associated with the specified data sources.
(dict) –
Filter criteria for data sources, used to specify which data sources to include in operations based on name and type.
name (string) – [REQUIRED]
The name pattern to filter data sources by.
type (string) –
The type pattern to filter data sources by.
groupBy (string) –
[REQUIRED]
Specifies how to group the log groups in the summary.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'aggregateLogGroupSummaries': [ { 'logGroupCount': 123, 'groupingIdentifiers': [ { 'key': 'string', 'value': 'string' }, ] }, ], 'NextToken': 'string' }
Response Structure
(dict) –
aggregateLogGroupSummaries (list) –
The list of aggregate log group summaries grouped by the specified data source characteristics.
(dict) –
Contains an aggregate summary of log groups grouped by data source characteristics, including the count of log groups and their grouping identifiers.
logGroupCount (integer) –
The number of log groups in this aggregate summary group.
groupingIdentifiers (list) –
An array of key-value pairs that identify the data source characteristics used to group the log groups.
The size and content of this array depends on the
groupByparameter specified in the request.(dict) –
A key-value pair that identifies how log groups are grouped in aggregate summaries.
key (string) –
The key that identifies the grouping characteristic. The format of the key uses dot notation. Examples are,
dataSource.Name,dataSource.Type, anddataSource.Format.value (string) –
The value associated with the grouping characteristic. Examples are
amazon_vpc,flow, andOCSF.
NextToken (string) –
A token to resume pagination.