CloudWatchLogsClient.list_aggregate_log_group_summaries
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Returns an aggregate summary of all log groups in the Region grouped by specified data source characteristics. Supports optional filtering by log group class, name patterns, and data sources. If you perform this action in a monitoring account, you can also return aggregated summaries of log groups from source accounts that are linked to the monitoring account. For more information about using...
Install and imports
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
DataSourceFilter,
ListAggregateLogGroupSummariesGroupBy,
ListAggregateLogGroupSummariesOutput,
LogGroupClass,
)
Signature
async def list_aggregate_log_group_summaries(
*,
group_by: ListAggregateLogGroupSummariesGroupBy,
account_identifiers: Sequence[str] | None = None,
include_linked_accounts: bool | None = None,
log_group_class: LogGroupClass | None = None,
log_group_name_pattern: str | None = None,
data_sources: Sequence[DataSourceFilter] | None = None,
next_token: str | None = None,
limit: int | None = None,
) -> ListAggregateLogGroupSummariesOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
group_by |
Yes | Specifies how to group the log groups in the summary. |
account_identifiers |
No | When includeLinkedAccounts is set to true , use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array. |
include_linked_accounts |
No | If you are using a monitoring account, set this to true to have the operation return log groups in the accounts listed in accountIdentifiers . If this parameter is set to true and accountIdentifiers contains 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... |
log_group_class |
No | Filters the results by log group class to include only log groups of the specified class. |
log_group_name_pattern |
No | 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... |
data_sources |
No | Filters the results by data source characteristics to include only log groups associated with the specified data sources. |
next_token |
No | |
limit |
No | The maximum number of aggregated summaries to return. If you omit this parameter, the default is up to 50 aggregated summaries. |
Output
ListAggregateLogGroupSummariesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
aggregate_log_group_summaries |
list[AggregateLogGroupSummaryOutput] | None |
Always present | AggregateLogGroupSummaryOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
DataSourceFilter, ListAggregateLogGroupSummariesGroupBy, ListAggregateLogGroupSummariesOutput, LogGroupClass
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_aggregate_log_group_summaries(...) accepts the same arguments and returns AsyncIterator[ListAggregateLogGroupSummariesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: limit.
No output stream.
Errors
Import from rboto_cloudwatch_logs.exceptions:
InvalidParameterError, ServiceUnavailableError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.