CloudWatchLogsClient.describe_log_streams
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered. You can specify the log group to search by using either logGroupIdentifier or logGroupName . You must include one of these two parameters, but you can't include both. This operation has a limit of 25 transactions per second,...
Install and imports
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
DescribeLogStreamsOutput,
OrderBy,
)
Signature
async def describe_log_streams(
*,
log_group_name: str | None = None,
log_group_identifier: str | None = None,
log_stream_name_prefix: str | None = None,
order_by: OrderBy | None = None,
descending: bool | None = None,
next_token: str | None = None,
limit: int | None = None,
) -> DescribeLogStreamsOutput: ...
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) |
|---|---|---|
log_group_name |
No | The name of the log group. You must include either logGroupIdentifier or logGroupName , but not both. |
log_group_identifier |
No | Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN. You must include either logGroupIdentifier or logGroupName , but not both. |
log_stream_name_prefix |
No | The prefix to match. If orderBy is LastEventTime , you cannot specify this parameter. |
order_by |
No | If the value is LogStreamName , the results are ordered by log stream name. If the value is LastEventTime , the results are ordered by the event time. The default value is LogStreamName . If you order the results by event time, you cannot specify the logStreamNamePrefix parameter. lastEventTimestamp represents the time of the most recent log event in the log stream in CloudWatch Logs. This... |
descending |
No | If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false. |
next_token |
No | The token for the next set of items to return. (You received this token from a previous call.) |
limit |
No | The maximum number of items returned. If you don't specify a value, the default is up to 50 items. |
Output
DescribeLogStreamsOutput.
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 |
|---|---|---|---|
log_streams |
list[LogStreamOutput] | None |
Always present | LogStreamOutput |
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
DescribeLogStreamsOutput, OrderBy
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.describe_log_streams(...) accepts the same arguments and returns AsyncIterator[DescribeLogStreamsOutput]. 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, ResourceNotFoundError, ServiceUnavailableError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.