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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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:

  • 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 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
  • giIdentityPoolId - An identity pool ID in the format REGION:GUID.

data GetId Source #

Input to the GetId action.

See: getId smart constructor.

Instances
Eq GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

(==) :: GetId -> GetId -> Bool #

(/=) :: GetId -> GetId -> Bool #

Data GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetId -> c GetId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetId #

toConstr :: GetId -> Constr #

dataTypeOf :: GetId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetId) #

gmapT :: (forall b. Data b => b -> b) -> GetId -> GetId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetId -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetId -> m GetId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetId -> m GetId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetId -> m GetId #

Read GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Show GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

showsPrec :: Int -> GetId -> ShowS #

show :: GetId -> String #

showList :: [GetId] -> ShowS #

Generic GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Associated Types

type Rep GetId :: Type -> Type #

Methods

from :: GetId -> Rep GetId x #

to :: Rep GetId x -> GetId #

Hashable GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

hashWithSalt :: Int -> GetId -> Int #

hash :: GetId -> Int #

ToJSON GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

AWSRequest GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Associated Types

type Rs GetId :: Type #

ToHeaders GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

toHeaders :: GetId -> [Header] #

ToPath GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

toPath :: GetId -> ByteString #

ToQuery GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

toQuery :: GetId -> QueryString #

NFData GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

rnf :: GetId -> () #

type Rep GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

type Rep GetId = D1 (MetaData "GetId" "Network.AWS.CognitoIdentity.GetId" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "GetId'" PrefixI True) (S1 (MetaSel (Just "_giAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_giLogins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_giIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs GetId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

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 * 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 :: 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:

data GetIdResponse Source #

Returned in response to a GetId request.

See: getIdResponse smart constructor.

Instances
Eq GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Data GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetIdResponse -> c GetIdResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetIdResponse #

toConstr :: GetIdResponse -> Constr #

dataTypeOf :: GetIdResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetIdResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetIdResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetIdResponse -> GetIdResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetIdResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetIdResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetIdResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetIdResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetIdResponse -> m GetIdResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetIdResponse -> m GetIdResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetIdResponse -> m GetIdResponse #

Read GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Show GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Generic GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Associated Types

type Rep GetIdResponse :: Type -> Type #

NFData GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

Methods

rnf :: GetIdResponse -> () #

type Rep GetIdResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.GetId

type Rep GetIdResponse = D1 (MetaData "GetIdResponse" "Network.AWS.CognitoIdentity.GetId" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "GetIdResponse'" PrefixI True) (S1 (MetaSel (Just "_girsIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_girsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

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.