amazonka-cognito-identity-1.4.2: 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:

data GetId Source #

Input to the GetId action.

See: getId smart constructor.

Instances

Eq GetId Source # 

Methods

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

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

Data GetId Source # 

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 # 
Show GetId Source # 

Methods

showsPrec :: Int -> GetId -> ShowS #

show :: GetId -> String #

showList :: [GetId] -> ShowS #

Generic GetId Source # 

Associated Types

type Rep GetId :: * -> * #

Methods

from :: GetId -> Rep GetId x #

to :: Rep GetId x -> GetId #

ToJSON GetId Source # 
Hashable GetId Source # 

Methods

hashWithSalt :: Int -> GetId -> Int #

hash :: GetId -> Int #

NFData GetId Source # 

Methods

rnf :: GetId -> () #

AWSRequest GetId Source # 

Associated Types

type Rs GetId :: * #

ToPath GetId Source # 

Methods

toPath :: GetId -> ByteString #

ToHeaders GetId Source # 

Methods

toHeaders :: GetId -> [Header] #

ToQuery GetId Source # 

Methods

toQuery :: GetId -> QueryString #

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

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 # 
Data GetIdResponse Source # 

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 # 
Show GetIdResponse Source # 
Generic GetIdResponse Source # 

Associated Types

type Rep GetIdResponse :: * -> * #

NFData GetIdResponse Source # 

Methods

rnf :: GetIdResponse -> () #

type Rep GetIdResponse Source # 
type Rep GetIdResponse = D1 (MetaData "GetIdResponse" "Network.AWS.CognitoIdentity.GetId" "amazonka-cognito-identity-1.4.2-1l2swQqkpUS3BWLajeb9rI" False) (C1 (MetaCons "GetIdResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_girsIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_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.