Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- getCredentialsForIdentity :: Text -> GetCredentialsForIdentity
- data GetCredentialsForIdentity
- gcfiLogins :: Lens' GetCredentialsForIdentity (HashMap Text Text)
- gcfiIdentityId :: Lens' GetCredentialsForIdentity Text
- getCredentialsForIdentityResponse :: Int -> GetCredentialsForIdentityResponse
- data GetCredentialsForIdentityResponse
- gcfirsCredentials :: Lens' GetCredentialsForIdentityResponse (Maybe Credentials)
- gcfirsIdentityId :: Lens' GetCredentialsForIdentityResponse (Maybe Text)
- gcfirsResponseStatus :: Lens' GetCredentialsForIdentityResponse Int
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:
data GetCredentialsForIdentity Source #
Input to the GetCredentialsForIdentity
action.
See: getCredentialsForIdentity
smart constructor.
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:
data GetCredentialsForIdentityResponse Source #
Returned in response to a successful GetCredentialsForIdentity
operation.
See: getCredentialsForIdentityResponse
smart constructor.
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.
gcfirsResponseStatus :: Lens' GetCredentialsForIdentityResponse Int Source #
The response status code.