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

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.

http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html

Synopsis

Request

Request constructor

getCredentialsForIdentity Source

GetCredentialsForIdentity constructor.

The fields accessible through corresponding lenses are:

Request lenses

gcfiIdentityId :: Lens' GetCredentialsForIdentity Text Source

A unique identifier in the format REGION:GUID.

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

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

Response

Response constructor

Response lenses

gcfirCredentials :: Lens' GetCredentialsForIdentityResponse (Maybe Credentials) Source

Credentials for the the provided identity ID.

gcfirIdentityId :: Lens' GetCredentialsForIdentityResponse (Maybe Text) Source

A unique identifier in the format REGION:GUID.