amazonka-cognito-identity-1.4.3: Amazon Cognito Identity 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.CognitoIdentity.GetCredentialsForIdentity

Contents

Description

Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

This is a public API. You do not need any credentials to call this API.

Synopsis

Creating a Request

getCredentialsForIdentity Source #

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

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

data GetCredentialsForIdentity Source #

Input to the GetCredentialsForIdentity action.

See: getCredentialsForIdentity smart constructor.

Instances

Eq GetCredentialsForIdentity Source # 
Data GetCredentialsForIdentity Source # 

Methods

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

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

toConstr :: GetCredentialsForIdentity -> Constr #

dataTypeOf :: GetCredentialsForIdentity -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCredentialsForIdentity Source # 
Show GetCredentialsForIdentity Source # 
Generic GetCredentialsForIdentity Source # 
Hashable GetCredentialsForIdentity Source # 
ToJSON GetCredentialsForIdentity Source # 
NFData GetCredentialsForIdentity Source # 
AWSRequest GetCredentialsForIdentity Source # 
ToQuery GetCredentialsForIdentity Source # 
ToPath GetCredentialsForIdentity Source # 
ToHeaders GetCredentialsForIdentity Source # 
type Rep GetCredentialsForIdentity Source # 
type Rep GetCredentialsForIdentity = D1 (MetaData "GetCredentialsForIdentity" "Network.AWS.CognitoIdentity.GetCredentialsForIdentity" "amazonka-cognito-identity-1.4.3-EUwhJeFWNF240FmChzIWwA" False) (C1 (MetaCons "GetCredentialsForIdentity'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gcfiLogins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_gcfiIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetCredentialsForIdentity Source # 

Request Lenses

gcfiLogins :: Lens' GetCredentialsForIdentity (HashMap Text Text) Source #

A set of optional name-value pairs that map provider names to provider tokens.

gcfiIdentityId :: Lens' GetCredentialsForIdentity Text Source #

A unique identifier in the format REGION:GUID.

Destructuring the Response

getCredentialsForIdentityResponse Source #

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

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

data GetCredentialsForIdentityResponse Source #

Returned in response to a successful GetCredentialsForIdentity operation.

See: getCredentialsForIdentityResponse smart constructor.

Instances

Eq GetCredentialsForIdentityResponse Source # 
Data GetCredentialsForIdentityResponse Source # 

Methods

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

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

toConstr :: GetCredentialsForIdentityResponse -> Constr #

dataTypeOf :: GetCredentialsForIdentityResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetCredentialsForIdentityResponse Source # 
Show GetCredentialsForIdentityResponse Source # 
Generic GetCredentialsForIdentityResponse Source # 
NFData GetCredentialsForIdentityResponse Source # 
type Rep GetCredentialsForIdentityResponse Source # 
type Rep GetCredentialsForIdentityResponse = D1 (MetaData "GetCredentialsForIdentityResponse" "Network.AWS.CognitoIdentity.GetCredentialsForIdentity" "amazonka-cognito-identity-1.4.3-EUwhJeFWNF240FmChzIWwA" False) (C1 (MetaCons "GetCredentialsForIdentityResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gcfirsCredentials") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Credentials))) ((:*:) (S1 (MetaSel (Just Symbol "_gcfirsIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gcfirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gcfirsCredentials :: Lens' GetCredentialsForIdentityResponse (Maybe Credentials) Source #

Credentials for the provided identity ID.

gcfirsIdentityId :: Lens' GetCredentialsForIdentityResponse (Maybe Text) Source #

A unique identifier in the format REGION:GUID.