Copyright | (c) 2013-2021 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 |
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.
GetId' | |
|
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).
$sel:logins: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
$sel:identityPoolId: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.
GetIdResponse' | |
|
Instances
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:
$sel:identityId: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.