aws_sdk_cognitoidentityprovider/client/get_device.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 [`GetDevice`](crate::operation::get_device::builders::GetDeviceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`device_key(impl Into<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::device_key) / [`set_device_key(Option<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::set_device_key):<br>required: **true**<br><p>The key of the device that you want to get information about.</p><br>
7 /// - [`access_token(impl Into<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::get_device::builders::GetDeviceFluentBuilder::set_access_token):<br>required: **false**<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>
8 /// - On success, responds with [`GetDeviceOutput`](crate::operation::get_device::GetDeviceOutput) with field(s):
9 /// - [`device(Option<DeviceType>)`](crate::operation::get_device::GetDeviceOutput::device): <p>Details of the requested device. Includes device information, last-accessed and created dates, and the device key.</p>
10 /// - On failure, responds with [`SdkError<GetDeviceError>`](crate::operation::get_device::GetDeviceError)
11 pub fn get_device(&self) -> crate::operation::get_device::builders::GetDeviceFluentBuilder {
12 crate::operation::get_device::builders::GetDeviceFluentBuilder::new(self.handle.clone())
13 }
14}