amazonka-cognito-idp-1.4.5: Amazon Cognito Identity Provider SDK.

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

Network.AWS.CognitoIdentityProvider.GetUser

Contents

Description

Gets the user attributes and metadata for a user.

Synopsis

Creating a Request

getUser :: GetUser Source #

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

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

  • guAccessToken - The access token returned by the server response to get information about the user.

data GetUser Source #

Represents the request to get information about the user.

See: getUser smart constructor.

Instances

Eq GetUser Source # 

Methods

(==) :: GetUser -> GetUser -> Bool #

(/=) :: GetUser -> GetUser -> Bool #

Data GetUser Source # 

Methods

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

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

toConstr :: GetUser -> Constr #

dataTypeOf :: GetUser -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUser Source # 
Show GetUser Source # 
Generic GetUser Source # 

Associated Types

type Rep GetUser :: * -> * #

Methods

from :: GetUser -> Rep GetUser x #

to :: Rep GetUser x -> GetUser #

Hashable GetUser Source # 

Methods

hashWithSalt :: Int -> GetUser -> Int #

hash :: GetUser -> Int #

ToJSON GetUser Source # 
NFData GetUser Source # 

Methods

rnf :: GetUser -> () #

AWSRequest GetUser Source # 

Associated Types

type Rs GetUser :: * #

ToPath GetUser Source # 

Methods

toPath :: GetUser -> ByteString #

ToHeaders GetUser Source # 

Methods

toHeaders :: GetUser -> [Header] #

ToQuery GetUser Source # 
type Rep GetUser Source # 
type Rep GetUser = D1 (MetaData "GetUser" "Network.AWS.CognitoIdentityProvider.GetUser" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" True) (C1 (MetaCons "GetUser'" PrefixI True) (S1 (MetaSel (Just Symbol "_guAccessToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Sensitive Text)))))
type Rs GetUser Source # 

Request Lenses

guAccessToken :: Lens' GetUser (Maybe Text) Source #

The access token returned by the server response to get information about the user.

Destructuring the Response

getUserResponse Source #

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

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

data GetUserResponse Source #

Represents the response from the server from the request to get information about the user.

See: getUserResponse smart constructor.

Instances

Eq GetUserResponse Source # 
Data GetUserResponse Source # 

Methods

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

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

toConstr :: GetUserResponse -> Constr #

dataTypeOf :: GetUserResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetUserResponse Source # 
Show GetUserResponse Source # 
Generic GetUserResponse Source # 
NFData GetUserResponse Source # 

Methods

rnf :: GetUserResponse -> () #

type Rep GetUserResponse Source # 
type Rep GetUserResponse = D1 (MetaData "GetUserResponse" "Network.AWS.CognitoIdentityProvider.GetUser" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" False) (C1 (MetaCons "GetUserResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gursMFAOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [MFAOptionType]))) (S1 (MetaSel (Just Symbol "_gursResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))) ((:*:) (S1 (MetaSel (Just Symbol "_gursUsername") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))) (S1 (MetaSel (Just Symbol "_gursUserAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [AttributeType])))))

Response Lenses

gursMFAOptions :: Lens' GetUserResponse [MFAOptionType] Source #

Specifies the options for MFA (e.g., email or phone number).

gursResponseStatus :: Lens' GetUserResponse Int Source #

  • - | The response status code.

gursUsername :: Lens' GetUserResponse Text Source #

The user name of the user you wish to retrieve from the get user request.

gursUserAttributes :: Lens' GetUserResponse [AttributeType] Source #

An array of name-value pairs representing user attributes.