amazonka-cognito-identity-1.0.1: Amazon Cognito Identity SDK.

Copyright(c) 2013-2015 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 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.

See: AWS API Reference for GetCredentialsForIdentity.

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:

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:

Response Lenses

gcfirsCredentials :: Lens' GetCredentialsForIdentityResponse (Maybe Credentials) Source

Credentials for the the provided identity ID.

gcfirsIdentityId :: Lens' GetCredentialsForIdentityResponse (Maybe Text) Source

A unique identifier in the format REGION:GUID.