| 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 |
Network.AWS.CognitoIdentity.GetCredentialsForIdentity
Description
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
- gcfiCustomRoleARN :: Lens' GetCredentialsForIdentity (Maybe Text)
- 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 #
Arguments
| :: Text | |
| -> GetCredentialsForIdentity |
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:
gcfiCustomRoleARN- The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.gcfiLogins- A set of optional name-value pairs that map provider names to provider tokens.gcfiIdentityId- A unique identifier in the format REGION:GUID.
data GetCredentialsForIdentity Source #
Input to the GetCredentialsForIdentity action.
See: getCredentialsForIdentity smart constructor.
Instances
Request Lenses
gcfiCustomRoleARN :: Lens' GetCredentialsForIdentity (Maybe Text) Source #
The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.
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 #
Arguments
| :: Int | |
| -> GetCredentialsForIdentityResponse |
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:
gcfirsCredentials- Credentials for the provided identity ID.gcfirsIdentityId- A unique identifier in the format REGION:GUID.gcfirsResponseStatus- -- | The response status code.
data GetCredentialsForIdentityResponse Source #
Returned in response to a successful GetCredentialsForIdentity operation.
See: getCredentialsForIdentityResponse smart constructor.
Instances
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.