amazonka-workdocs-2.0: Amazon WorkDocs SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkDocs.GetCurrentUser

Description

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.

Synopsis

Creating a Request

data GetCurrentUser Source #

See: newGetCurrentUser smart constructor.

Constructors

GetCurrentUser' 

Fields

Instances

Instances details
ToHeaders GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

ToPath GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

ToQuery GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

AWSRequest GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Associated Types

type AWSResponse GetCurrentUser #

Generic GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Associated Types

type Rep GetCurrentUser :: Type -> Type #

Show GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

NFData GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Methods

rnf :: GetCurrentUser -> () #

Eq GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Hashable GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

type AWSResponse GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

type Rep GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

type Rep GetCurrentUser = D1 ('MetaData "GetCurrentUser" "Amazonka.WorkDocs.GetCurrentUser" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "GetCurrentUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newGetCurrentUser Source #

Create a value of GetCurrentUser with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:authenticationToken:GetCurrentUser', getCurrentUser_authenticationToken - Amazon WorkDocs authentication token.

Request Lenses

getCurrentUser_authenticationToken :: Lens' GetCurrentUser Text Source #

Amazon WorkDocs authentication token.

Destructuring the Response

data GetCurrentUserResponse Source #

See: newGetCurrentUserResponse smart constructor.

Constructors

GetCurrentUserResponse' 

Fields

newGetCurrentUserResponse Source #

Create a value of GetCurrentUserResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:user:GetCurrentUserResponse', getCurrentUserResponse_user - Metadata of the user.

$sel:httpStatus:GetCurrentUserResponse', getCurrentUserResponse_httpStatus - The response's http status code.

Response Lenses