libZSservicesZSamazonka-workdocsZSamazonka-workdocs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Show GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Generic GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Associated Types

type Rep GetCurrentUser :: Type -> Type #

NFData GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Methods

rnf :: GetCurrentUser -> () #

Hashable GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

AWSRequest GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Associated Types

type AWSResponse GetCurrentUser #

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

type Rep GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

type Rep GetCurrentUser = D1 ('MetaData "GetCurrentUser" "Amazonka.WorkDocs.GetCurrentUser" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "GetCurrentUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))
type AWSResponse GetCurrentUser Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

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

Instances

Instances details
Eq GetCurrentUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Read GetCurrentUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Show GetCurrentUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Generic GetCurrentUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Associated Types

type Rep GetCurrentUserResponse :: Type -> Type #

NFData GetCurrentUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

Methods

rnf :: GetCurrentUserResponse -> () #

type Rep GetCurrentUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetCurrentUser

type Rep GetCurrentUserResponse = D1 ('MetaData "GetCurrentUserResponse" "Amazonka.WorkDocs.GetCurrentUser" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "GetCurrentUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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