amazonka-cognito-identity-1.4.0: Amazon Cognito Identity SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoIdentity.GetId

Contents

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

Creating a Request

getId Source

Arguments

:: Text

giIdentityPoolId

-> GetId 

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:

Request Lenses

giAccountId :: Lens' GetId (Maybe Text) Source

A standard AWS account ID (9+ digits).

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'
  • Google: 'accounts.google.com'
  • Amazon: 'www.amazon.com'
  • Twitter: 'api.twitter.com'
  • Digits: 'www.digits.com'

giIdentityPoolId :: Lens' GetId Text Source

An identity pool ID in the format REGION:GUID.

Destructuring the Response

getIdResponse Source

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:

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.