aws_sdk_workdocs/client/get_current_user.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 [`GetCurrentUser`](crate::operation::get_current_user::builders::GetCurrentUserFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`authentication_token(impl Into<String>)`](crate::operation::get_current_user::builders::GetCurrentUserFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::get_current_user::builders::GetCurrentUserFluentBuilder::set_authentication_token):<br>required: **true**<br><p>Amazon WorkDocs authentication token.</p><br>
7 /// - On success, responds with [`GetCurrentUserOutput`](crate::operation::get_current_user::GetCurrentUserOutput) with field(s):
8 /// - [`user(Option<User>)`](crate::operation::get_current_user::GetCurrentUserOutput::user): <p>Metadata of the user.</p>
9 /// - On failure, responds with [`SdkError<GetCurrentUserError>`](crate::operation::get_current_user::GetCurrentUserError)
10 pub fn get_current_user(&self) -> crate::operation::get_current_user::builders::GetCurrentUserFluentBuilder {
11 crate::operation::get_current_user::builders::GetCurrentUserFluentBuilder::new(self.handle.clone())
12 }
13}