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

  • gcfiCustomRoleARN - The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.
  • gcfiLogins - A set of optional name-value pairs that map provider names to provider tokens.
  • gcfiIdentityId - A unique identifier in the format REGION:GUID.

data GetCredentialsForIdentity Source #

Input to the GetCredentialsForIdentity action.

See: getCredentialsForIdentity smart constructor.

Instances
Eq GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Data GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

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 # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Show GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Generic GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Associated Types

type Rep GetCredentialsForIdentity :: Type -> Type #

Hashable GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

ToJSON GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

AWSRequest GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Associated Types

type Rs GetCredentialsForIdentity :: Type #

ToHeaders GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

ToPath GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

ToQuery GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

NFData GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

type Rep GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

type Rep GetCredentialsForIdentity = D1 (MetaData "GetCredentialsForIdentity" "Network.AWS.CognitoIdentity.GetCredentialsForIdentity" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "GetCredentialsForIdentity'" PrefixI True) (S1 (MetaSel (Just "_gcfiCustomRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gcfiLogins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_gcfiIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetCredentialsForIdentity Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Request Lenses

gcfiCustomRoleARN :: Lens' GetCredentialsForIdentity (Maybe Text) Source #

The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.

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 # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Data GetCredentialsForIdentityResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

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 # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Show GetCredentialsForIdentityResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Generic GetCredentialsForIdentityResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

Associated Types

type Rep GetCredentialsForIdentityResponse :: Type -> Type #

NFData GetCredentialsForIdentityResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

type Rep GetCredentialsForIdentityResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetCredentialsForIdentity

type Rep GetCredentialsForIdentityResponse = D1 (MetaData "GetCredentialsForIdentityResponse" "Network.AWS.CognitoIdentity.GetCredentialsForIdentity" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "GetCredentialsForIdentityResponse'" PrefixI True) (S1 (MetaSel (Just "_gcfirsCredentials") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Credentials)) :*: (S1 (MetaSel (Just "_gcfirsIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.