Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data GetCredentialsForIdentity
- getCredentialsForIdentity :: Text -> GetCredentialsForIdentity
- gcfiIdentityId :: Lens' GetCredentialsForIdentity Text
- gcfiLogins :: Lens' GetCredentialsForIdentity (HashMap Text Text)
- data GetCredentialsForIdentityResponse
- getCredentialsForIdentityResponse :: GetCredentialsForIdentityResponse
- gcfirCredentials :: Lens' GetCredentialsForIdentityResponse (Maybe Credentials)
- gcfirIdentityId :: Lens' GetCredentialsForIdentityResponse (Maybe Text)
Request
data GetCredentialsForIdentity Source
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
getCredentialsForIdentityResponse :: GetCredentialsForIdentityResponse Source
GetCredentialsForIdentityResponse
constructor.
The fields accessible through corresponding lenses are:
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.