amazonka-workdocs-1.6.0: Amazon WorkDocs SDK.

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

Network.AWS.WorkDocs.GetCurrentUser

Contents

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.

Synopsis

Creating a Request

getCurrentUser Source #

Creates a value of GetCurrentUser with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gcuAuthenticationToken - Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

data GetCurrentUser Source #

See: getCurrentUser smart constructor.

Instances

Eq GetCurrentUser Source # 
Data GetCurrentUser Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCurrentUser -> c GetCurrentUser #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCurrentUser #

toConstr :: GetCurrentUser -> Constr #

dataTypeOf :: GetCurrentUser -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetCurrentUser) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCurrentUser) #

gmapT :: (forall b. Data b => b -> b) -> GetCurrentUser -> GetCurrentUser #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCurrentUser -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCurrentUser -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCurrentUser -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCurrentUser -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCurrentUser -> m GetCurrentUser #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCurrentUser -> m GetCurrentUser #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCurrentUser -> m GetCurrentUser #

Show GetCurrentUser Source # 
Generic GetCurrentUser Source # 

Associated Types

type Rep GetCurrentUser :: * -> * #

Hashable GetCurrentUser Source # 
NFData GetCurrentUser Source # 

Methods

rnf :: GetCurrentUser -> () #

AWSRequest GetCurrentUser Source # 
ToHeaders GetCurrentUser Source # 
ToPath GetCurrentUser Source # 
ToQuery GetCurrentUser Source # 
type Rep GetCurrentUser Source # 
type Rep GetCurrentUser = D1 * (MetaData "GetCurrentUser" "Network.AWS.WorkDocs.GetCurrentUser" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" True) (C1 * (MetaCons "GetCurrentUser'" PrefixI True) (S1 * (MetaSel (Just Symbol "_gcuAuthenticationToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Sensitive Text))))
type Rs GetCurrentUser Source # 

Request Lenses

gcuAuthenticationToken :: Lens' GetCurrentUser Text Source #

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

Destructuring the Response

getCurrentUserResponse Source #

Creates a value of GetCurrentUserResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetCurrentUserResponse Source #

See: getCurrentUserResponse smart constructor.

Instances

Eq GetCurrentUserResponse Source # 
Data GetCurrentUserResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCurrentUserResponse -> c GetCurrentUserResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCurrentUserResponse #

toConstr :: GetCurrentUserResponse -> Constr #

dataTypeOf :: GetCurrentUserResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetCurrentUserResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCurrentUserResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetCurrentUserResponse -> GetCurrentUserResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCurrentUserResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCurrentUserResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCurrentUserResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCurrentUserResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCurrentUserResponse -> m GetCurrentUserResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCurrentUserResponse -> m GetCurrentUserResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCurrentUserResponse -> m GetCurrentUserResponse #

Read GetCurrentUserResponse Source # 
Show GetCurrentUserResponse Source # 
Generic GetCurrentUserResponse Source # 
NFData GetCurrentUserResponse Source # 

Methods

rnf :: GetCurrentUserResponse -> () #

type Rep GetCurrentUserResponse Source # 
type Rep GetCurrentUserResponse = D1 * (MetaData "GetCurrentUserResponse" "Network.AWS.WorkDocs.GetCurrentUser" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "GetCurrentUserResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gcursUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe User))) (S1 * (MetaSel (Just Symbol "_gcursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses