Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.
This is a public API. You do not need any credentials to call this API.
Synopsis
- getId :: Text -> GetId
- data GetId
- giAccountId :: Lens' GetId (Maybe Text)
- giLogins :: Lens' GetId (HashMap Text Text)
- giIdentityPoolId :: Lens' GetId Text
- getIdResponse :: Int -> GetIdResponse
- data GetIdResponse
- girsIdentityId :: Lens' GetIdResponse (Maybe Text)
- girsResponseStatus :: Lens' GetIdResponse Int
Creating a Request
Creates a value of GetId
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giAccountId
- A standard AWS account ID (9+ digits).giLogins
- A set of optional name-value pairs that map provider names to provider tokens. The available provider names forLogins
are as follows: * Facebook:graph.facebook.com
* Amazon Cognito Identity Provider:cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
* Google:accounts.google.com
* Amazon:www.amazon.com
* Twitter:api.twitter.com
* Digits:www.digits.com
giIdentityPoolId
- An identity pool ID in the format REGION:GUID.
Input to the GetId action.
See: getId
smart constructor.
Instances
Request Lenses
giLogins :: Lens' GetId (HashMap Text Text) Source #
A set of optional name-value pairs that map provider names to provider tokens. The available provider names for Logins
are as follows: * Facebook: graph.facebook.com
* Amazon Cognito Identity Provider: cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789
* Google: accounts.google.com
* Amazon: www.amazon.com
* Twitter: api.twitter.com
* Digits: www.digits.com
Destructuring the Response
Creates a value of GetIdResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
girsIdentityId
- A unique identifier in the format REGION:GUID.girsResponseStatus
- -- | The response status code.
data GetIdResponse Source #
Returned in response to a GetId request.
See: getIdResponse
smart constructor.
Instances
Response Lenses
girsIdentityId :: Lens' GetIdResponse (Maybe Text) Source #
A unique identifier in the format REGION:GUID.
girsResponseStatus :: Lens' GetIdResponse Int Source #
- - | The response status code.