Struct aws_sdk_workdocs::client::fluent_builders::GetCurrentUser
source · [−]pub struct GetCurrentUser<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to GetCurrentUser
.
Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.
This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
Implementations
impl<C, M, R> GetCurrentUser<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetCurrentUser<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetCurrentUserOutput, SdkError<GetCurrentUserError>> where
R::Policy: SmithyRetryPolicy<GetCurrentUserInputOperationOutputAlias, GetCurrentUserOutput, GetCurrentUserError, GetCurrentUserInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetCurrentUserOutput, SdkError<GetCurrentUserError>> where
R::Policy: SmithyRetryPolicy<GetCurrentUserInputOperationOutputAlias, GetCurrentUserOutput, GetCurrentUserError, GetCurrentUserInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Amazon WorkDocs authentication token.
Amazon WorkDocs authentication token.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetCurrentUser<C, M, R>
impl<C, M, R> Send for GetCurrentUser<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetCurrentUser<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetCurrentUser<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetCurrentUser<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more