aws_sdk_iot/client/list_streams.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ListStreams`](crate::operation::list_streams::builders::ListStreamsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`max_results(i32)`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return at a time.</p><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token used to get the next set of results.</p><br>
9 /// - [`ascending_order(bool)`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::ascending_order) / [`set_ascending_order(Option<bool>)`](crate::operation::list_streams::builders::ListStreamsFluentBuilder::set_ascending_order):<br>required: **false**<br><p>Set to true to return the list of streams in ascending order.</p><br>
10 /// - On success, responds with [`ListStreamsOutput`](crate::operation::list_streams::ListStreamsOutput) with field(s):
11 /// - [`streams(Option<Vec::<StreamSummary>>)`](crate::operation::list_streams::ListStreamsOutput::streams): <p>A list of streams.</p>
12 /// - [`next_token(Option<String>)`](crate::operation::list_streams::ListStreamsOutput::next_token): <p>A token used to get the next set of results.</p>
13 /// - On failure, responds with [`SdkError<ListStreamsError>`](crate::operation::list_streams::ListStreamsError)
14 pub fn list_streams(&self) -> crate::operation::list_streams::builders::ListStreamsFluentBuilder {
15 crate::operation::list_streams::builders::ListStreamsFluentBuilder::new(self.handle.clone())
16 }
17}