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
Eq GetCredentialsForIdentity | |
Read GetCredentialsForIdentity | |
Show GetCredentialsForIdentity | |
AWSRequest GetCredentialsForIdentity | |
ToQuery GetCredentialsForIdentity | |
ToPath GetCredentialsForIdentity | |
ToHeaders GetCredentialsForIdentity | |
ToJSON GetCredentialsForIdentity | |
type Sv GetCredentialsForIdentity = CognitoIdentity | |
type Rs GetCredentialsForIdentity = GetCredentialsForIdentityResponse |
Request constructor
getCredentialsForIdentity Source
:: Text | |
-> GetCredentialsForIdentity |
GetCredentialsForIdentity
constructor.
The fields accessible through corresponding lenses are:
gcfiIdentityId
::
Text
gcfiLogins
::
HashMap
Text
Text
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:
gcfirCredentials
::
Maybe
Credentials
gcfirIdentityId
::
Maybe
Text
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.