amazonka-cognito-identity-1.4.5: 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.CreateIdentityPool

Contents

Description

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account. The keys for SupportedLoginProviders are as follows: * Facebook: graph.facebook.com * Google: accounts.google.com * Amazon: www.amazon.com * Twitter: api.twitter.com * Digits: www.digits.com

You must use AWS Developer credentials to call this API.

Synopsis

Creating a Request

createIdentityPool Source #

Creates a value of CreateIdentityPool with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cipSamlProviderARNs - An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.
  • cipSupportedLoginProviders - Optional key:value pairs mapping provider names to provider app IDs.
  • cipDeveloperProviderName - The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName , you can use letters as well as period (. ), underscore (_ ), and dash (- ). Once you have set a developer provider name, you cannot change it. Please take care in setting this parameter.
  • cipOpenIdConnectProviderARNs - A list of OpendID Connect provider ARNs.
  • cipCognitoIdentityProviders - An array of Amazon Cognito Identity user pools.
  • cipIdentityPoolName - A string that you provide.
  • cipAllowUnauthenticatedIdentities - TRUE if the identity pool supports unauthenticated logins.

data CreateIdentityPool Source #

Input to the CreateIdentityPool action.

See: createIdentityPool smart constructor.

Instances

Eq CreateIdentityPool Source # 
Data CreateIdentityPool Source # 

Methods

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

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

toConstr :: CreateIdentityPool -> Constr #

dataTypeOf :: CreateIdentityPool -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateIdentityPool Source # 
Show CreateIdentityPool Source # 
Generic CreateIdentityPool Source # 
Hashable CreateIdentityPool Source # 
ToJSON CreateIdentityPool Source # 
NFData CreateIdentityPool Source # 

Methods

rnf :: CreateIdentityPool -> () #

AWSRequest CreateIdentityPool Source # 
ToPath CreateIdentityPool Source # 
ToHeaders CreateIdentityPool Source # 
ToQuery CreateIdentityPool Source # 
type Rep CreateIdentityPool Source # 
type Rep CreateIdentityPool = D1 (MetaData "CreateIdentityPool" "Network.AWS.CognitoIdentity.CreateIdentityPool" "amazonka-cognito-identity-1.4.5-FQJQgy9jw2zGp3zOnk88Lj" False) (C1 (MetaCons "CreateIdentityPool'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cipSamlProviderARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_cipSupportedLoginProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_cipDeveloperProviderName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cipOpenIdConnectProviderARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_cipCognitoIdentityProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CognitoIdentityProvider])))) ((:*:) (S1 (MetaSel (Just Symbol "_cipIdentityPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cipAllowUnauthenticatedIdentities") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))))
type Rs CreateIdentityPool Source # 

Request Lenses

cipSamlProviderARNs :: Lens' CreateIdentityPool [Text] Source #

An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.

cipSupportedLoginProviders :: Lens' CreateIdentityPool (HashMap Text Text) Source #

Optional key:value pairs mapping provider names to provider app IDs.

cipDeveloperProviderName :: Lens' CreateIdentityPool (Maybe Text) Source #

The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider. For the DeveloperProviderName , you can use letters as well as period (. ), underscore (_ ), and dash (- ). Once you have set a developer provider name, you cannot change it. Please take care in setting this parameter.

cipOpenIdConnectProviderARNs :: Lens' CreateIdentityPool [Text] Source #

A list of OpendID Connect provider ARNs.

cipCognitoIdentityProviders :: Lens' CreateIdentityPool [CognitoIdentityProvider] Source #

An array of Amazon Cognito Identity user pools.

cipAllowUnauthenticatedIdentities :: Lens' CreateIdentityPool Bool Source #

TRUE if the identity pool supports unauthenticated logins.

Destructuring the Response

identityPool Source #

Creates a value of IdentityPool with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data IdentityPool Source #

An object representing a Cognito identity pool.

See: identityPool smart constructor.

Instances

Eq IdentityPool Source # 
Data IdentityPool Source # 

Methods

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

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

toConstr :: IdentityPool -> Constr #

dataTypeOf :: IdentityPool -> DataType #

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

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

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

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

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

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

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

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

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

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

Read IdentityPool Source # 
Show IdentityPool Source # 
Generic IdentityPool Source # 

Associated Types

type Rep IdentityPool :: * -> * #

Hashable IdentityPool Source # 
ToJSON IdentityPool Source # 
FromJSON IdentityPool Source # 
NFData IdentityPool Source # 

Methods

rnf :: IdentityPool -> () #

type Rep IdentityPool Source # 
type Rep IdentityPool = D1 (MetaData "IdentityPool" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.4.5-FQJQgy9jw2zGp3zOnk88Lj" False) (C1 (MetaCons "IdentityPool'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ipSamlProviderARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_ipSupportedLoginProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_ipDeveloperProviderName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ipOpenIdConnectProviderARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ipCognitoIdentityProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CognitoIdentityProvider]))) (S1 (MetaSel (Just Symbol "_ipIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ipIdentityPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ipAllowUnauthenticatedIdentities") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))))

Response Lenses

ipSamlProviderARNs :: Lens' IdentityPool [Text] Source #

An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.

ipSupportedLoginProviders :: Lens' IdentityPool (HashMap Text Text) Source #

Optional key:value pairs mapping provider names to provider app IDs.

ipDeveloperProviderName :: Lens' IdentityPool (Maybe Text) Source #

The "domain" by which Cognito will refer to your users.

ipOpenIdConnectProviderARNs :: Lens' IdentityPool [Text] Source #

A list of OpendID Connect provider ARNs.

ipCognitoIdentityProviders :: Lens' IdentityPool [CognitoIdentityProvider] Source #

A list representing an Amazon Cognito Identity User Pool and its client ID.

ipIdentityPoolId :: Lens' IdentityPool Text Source #

An identity pool ID in the format REGION:GUID.

ipIdentityPoolName :: Lens' IdentityPool Text Source #

A string that you provide.

ipAllowUnauthenticatedIdentities :: Lens' IdentityPool Bool Source #

TRUE if the identity pool supports unauthenticated logins.