aws_sdk_ssmcontacts/client/
list_rotations.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 [`ListRotations`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`rotation_name_prefix(impl Into<String>)`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::rotation_name_prefix) / [`set_rotation_name_prefix(Option<String>)`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::set_rotation_name_prefix):<br>required: **false**<br><p>A filter to include rotations in list results based on their common prefix. For example, entering prod returns a list of all rotation names that begin with <code>prod</code>, such as <code>production</code> and <code>prod-1</code>.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token to start the list. Use this token to get the next set of results.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_rotations::builders::ListRotationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p><br>
10    /// - On success, responds with [`ListRotationsOutput`](crate::operation::list_rotations::ListRotationsOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::list_rotations::ListRotationsOutput::next_token): <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
12    ///   - [`rotations(Vec::<Rotation>)`](crate::operation::list_rotations::ListRotationsOutput::rotations): <p>Information about rotations that meet the filter criteria.</p>
13    /// - On failure, responds with [`SdkError<ListRotationsError>`](crate::operation::list_rotations::ListRotationsError)
14    pub fn list_rotations(&self) -> crate::operation::list_rotations::builders::ListRotationsFluentBuilder {
15        crate::operation::list_rotations::builders::ListRotationsFluentBuilder::new(self.handle.clone())
16    }
17}