aws_sdk_cognitoidentityprovider/client/
list_devices.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 [`ListDevices`](crate::operation::list_devices::builders::ListDevicesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`access_token(impl Into<String>)`](crate::operation::list_devices::builders::ListDevicesFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::list_devices::builders::ListDevicesFluentBuilder::set_access_token):<br>required: **true**<br><p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for <code>aws.cognito.signin.user.admin</code>.</p><br>
7    ///   - [`limit(i32)`](crate::operation::list_devices::builders::ListDevicesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_devices::builders::ListDevicesFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of devices that you want Amazon Cognito to return in the response.</p><br>
8    ///   - [`pagination_token(impl Into<String>)`](crate::operation::list_devices::builders::ListDevicesFluentBuilder::pagination_token) / [`set_pagination_token(Option<String>)`](crate::operation::list_devices::builders::ListDevicesFluentBuilder::set_pagination_token):<br>required: **false**<br><p>This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.</p><br>
9    /// - On success, responds with [`ListDevicesOutput`](crate::operation::list_devices::ListDevicesOutput) with field(s):
10    ///   - [`devices(Option<Vec::<DeviceType>>)`](crate::operation::list_devices::ListDevicesOutput::devices): <p>An array of devices and their details. Each entry that's returned includes device information, last-accessed and created dates, and the device key.</p>
11    ///   - [`pagination_token(Option<String>)`](crate::operation::list_devices::ListDevicesOutput::pagination_token): <p>The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.</p>
12    /// - On failure, responds with [`SdkError<ListDevicesError>`](crate::operation::list_devices::ListDevicesError)
13    pub fn list_devices(&self) -> crate::operation::list_devices::builders::ListDevicesFluentBuilder {
14        crate::operation::list_devices::builders::ListDevicesFluentBuilder::new(self.handle.clone())
15    }
16}