aws_sdk_cognitoidentityprovider/client/forget_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 [`ForgetDevice`](crate::operation::forget_device::builders::ForgetDeviceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`access_token(impl Into<String>)`](crate::operation::forget_device::builders::ForgetDeviceFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::forget_device::builders::ForgetDeviceFluentBuilder::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>
7 /// - [`device_key(impl Into<String>)`](crate::operation::forget_device::builders::ForgetDeviceFluentBuilder::device_key) / [`set_device_key(Option<String>)`](crate::operation::forget_device::builders::ForgetDeviceFluentBuilder::set_device_key):<br>required: **true**<br><p>The unique identifier, or device key, of the device that the user wants to forget.</p><br>
8 /// - On success, responds with [`ForgetDeviceOutput`](crate::operation::forget_device::ForgetDeviceOutput)
9 /// - On failure, responds with [`SdkError<ForgetDeviceError>`](crate::operation::forget_device::ForgetDeviceError)
10 pub fn forget_device(&self) -> crate::operation::forget_device::builders::ForgetDeviceFluentBuilder {
11 crate::operation::forget_device::builders::ForgetDeviceFluentBuilder::new(self.handle.clone())
12 }
13}