| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentity.GetId
Description
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
- data GetId = GetId' {}
- newGetId :: Text -> GetId
- getId_accountId :: Lens' GetId (Maybe Text)
- getId_logins :: Lens' GetId (Maybe (HashMap Text Text))
- getId_identityPoolId :: Lens' GetId Text
- data GetIdResponse = GetIdResponse' {
- identityId :: Maybe Text
- httpStatus :: Int
- newGetIdResponse :: Int -> GetIdResponse
- getIdResponse_identityId :: Lens' GetIdResponse (Maybe Text)
- getIdResponse_httpStatus :: Lens' GetIdResponse Int
Creating a Request
Input to the GetId action.
See: newGetId smart constructor.
Constructors
| GetId' | |
Fields
| |
Instances
Create a value of GetId with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountId:GetId', getId_accountId - A standard AWS account ID (9+ digits).
GetId, getId_logins - 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 user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, for example,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
GetId, getId_identityPoolId - An identity pool ID in the format REGION:GUID.
Request Lenses
getId_logins :: Lens' GetId (Maybe (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 user pool:
cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID>, for example,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
data GetIdResponse Source #
Returned in response to a GetId request.
See: newGetIdResponse smart constructor.
Constructors
| GetIdResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetIdResponse |
Create a value of GetIdResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetIdResponse, getIdResponse_identityId - A unique identifier in the format REGION:GUID.
$sel:httpStatus:GetIdResponse', getIdResponse_httpStatus - The response's http status code.
Response Lenses
getIdResponse_identityId :: Lens' GetIdResponse (Maybe Text) Source #
A unique identifier in the format REGION:GUID.
getIdResponse_httpStatus :: Lens' GetIdResponse Int Source #
The response's http status code.