aws_sdk_cloudwatchlogs/client/describe_log_streams.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DescribeLogStreams`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`log_group_name(impl Into<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::log_group_name) / [`set_log_group_name(Option<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_log_group_name):<br>required: **false**<br><p>The name of the log group.</p><note> <p>You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both.</p> </note><br>
/// - [`log_group_identifier(impl Into<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::log_group_identifier) / [`set_log_group_identifier(Option<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_log_group_identifier):<br>required: **false**<br><p>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.</p><note> <p>You must include either <code>logGroupIdentifier</code> or <code>logGroupName</code>, but not both.</p> </note><br>
/// - [`log_stream_name_prefix(impl Into<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::log_stream_name_prefix) / [`set_log_stream_name_prefix(Option<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_log_stream_name_prefix):<br>required: **false**<br><p>The prefix to match.</p> <p>If <code>orderBy</code> is <code>LastEventTime</code>, you cannot specify this parameter.</p><br>
/// - [`order_by(OrderBy)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::order_by) / [`set_order_by(Option<OrderBy>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_order_by):<br>required: **false**<br><p>If the value is <code>LogStreamName</code>, the results are ordered by log stream name. If the value is <code>LastEventTime</code>, the results are ordered by the event time. The default value is <code>LogStreamName</code>.</p> <p>If you order the results by event time, you cannot specify the <code>logStreamNamePrefix</code> parameter.</p> <p><code>lastEventTimestamp</code> represents the time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after <code>Jan 1, 1970 00:00:00 UTC</code>. <code>lastEventTimestamp</code> updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.</p><br>
/// - [`descending(bool)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::descending) / [`set_descending(Option<bool>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_descending):<br>required: **false**<br><p>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.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of items to return. (You received this token from a previous call.)</p><br>
/// - [`limit(i32)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p><br>
/// - On success, responds with [`DescribeLogStreamsOutput`](crate::operation::describe_log_streams::DescribeLogStreamsOutput) with field(s):
/// - [`log_streams(Option<Vec::<LogStream>>)`](crate::operation::describe_log_streams::DescribeLogStreamsOutput::log_streams): <p>The log streams.</p>
/// - [`next_token(Option<String>)`](crate::operation::describe_log_streams::DescribeLogStreamsOutput::next_token): <p>The token for the next set of items to return. The token expires after 24 hours.</p>
/// - On failure, responds with [`SdkError<DescribeLogStreamsError>`](crate::operation::describe_log_streams::DescribeLogStreamsError)
pub fn describe_log_streams(&self) -> crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder {
crate::operation::describe_log_streams::builders::DescribeLogStreamsFluentBuilder::new(self.handle.clone())
}
}