amazonka-cognito-idp-1.4.5: Amazon Cognito Identity Provider 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.CognitoIdentityProvider.CreateUserPool

Contents

Description

Creates a new Amazon Cognito user pool and sets the password policy for the pool.

Synopsis

Creating a Request

createUserPool Source #

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

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

data CreateUserPool Source #

Represents the request to create a user pool.

See: createUserPool smart constructor.

Instances

Eq CreateUserPool Source # 
Data CreateUserPool Source # 

Methods

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

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

toConstr :: CreateUserPool -> Constr #

dataTypeOf :: CreateUserPool -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateUserPool Source # 
Show CreateUserPool Source # 
Generic CreateUserPool Source # 

Associated Types

type Rep CreateUserPool :: * -> * #

Hashable CreateUserPool Source # 
ToJSON CreateUserPool Source # 
NFData CreateUserPool Source # 

Methods

rnf :: CreateUserPool -> () #

AWSRequest CreateUserPool Source # 
ToPath CreateUserPool Source # 
ToHeaders CreateUserPool Source # 
ToQuery CreateUserPool Source # 
type Rep CreateUserPool Source # 
type Rep CreateUserPool = D1 (MetaData "CreateUserPool" "Network.AWS.CognitoIdentityProvider.CreateUserPool" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" False) (C1 (MetaCons "CreateUserPool'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cupEmailVerificationMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cupSmsAuthenticationMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cupEmailVerificationSubject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cupAliasAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AliasAttributeType]))) (S1 (MetaSel (Just Symbol "_cupSchema") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 SchemaAttributeType))))) ((:*:) (S1 (MetaSel (Just Symbol "_cupEmailConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EmailConfigurationType))) (S1 (MetaSel (Just Symbol "_cupSmsVerificationMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cupMFAConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolMFAType))) (S1 (MetaSel (Just Symbol "_cupLambdaConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LambdaConfigType)))) ((:*:) (S1 (MetaSel (Just Symbol "_cupSmsConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SmsConfigurationType))) (S1 (MetaSel (Just Symbol "_cupAdminCreateUserConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AdminCreateUserConfigType))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cupDeviceConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DeviceConfigurationType))) (S1 (MetaSel (Just Symbol "_cupAutoVerifiedAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [VerifiedAttributeType])))) ((:*:) (S1 (MetaSel (Just Symbol "_cupPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolPolicyType))) (S1 (MetaSel (Just Symbol "_cupPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Rs CreateUserPool Source # 

Request Lenses

cupEmailVerificationMessage :: Lens' CreateUserPool (Maybe Text) Source #

A string representing the email verification message.

cupSmsAuthenticationMessage :: Lens' CreateUserPool (Maybe Text) Source #

A string representing the SMS authentication message.

cupEmailVerificationSubject :: Lens' CreateUserPool (Maybe Text) Source #

A string representing the email verification subject.

cupAliasAttributes :: Lens' CreateUserPool [AliasAttributeType] Source #

Attributes supported as an alias for this user pool. Possible values: phone_number , email , or preferred_username .

cupSchema :: Lens' CreateUserPool (Maybe (NonEmpty SchemaAttributeType)) Source #

An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.

cupSmsVerificationMessage :: Lens' CreateUserPool (Maybe Text) Source #

A string representing the SMS verification message.

cupMFAConfiguration :: Lens' CreateUserPool (Maybe UserPoolMFAType) Source #

Specifies MFA configuration details.

cupLambdaConfig :: Lens' CreateUserPool (Maybe LambdaConfigType) Source #

The Lambda trigger configuration information for the new user pool.

cupAdminCreateUserConfig :: Lens' CreateUserPool (Maybe AdminCreateUserConfigType) Source #

The configuration for AdminCreateUser requests.

cupAutoVerifiedAttributes :: Lens' CreateUserPool [VerifiedAttributeType] Source #

The attributes to be auto-verified. Possible values: email , phone_number .

cupPolicies :: Lens' CreateUserPool (Maybe UserPoolPolicyType) Source #

The policies associated with the new user pool.

cupPoolName :: Lens' CreateUserPool Text Source #

A string used to name the user pool.

Destructuring the Response

createUserPoolResponse Source #

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

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

data CreateUserPoolResponse Source #

Represents the response from the server for the request to create a user pool.

See: createUserPoolResponse smart constructor.

Instances

Eq CreateUserPoolResponse Source # 
Data CreateUserPoolResponse Source # 

Methods

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

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

toConstr :: CreateUserPoolResponse -> Constr #

dataTypeOf :: CreateUserPoolResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateUserPoolResponse Source # 
Show CreateUserPoolResponse Source # 
Generic CreateUserPoolResponse Source # 
NFData CreateUserPoolResponse Source # 

Methods

rnf :: CreateUserPoolResponse -> () #

type Rep CreateUserPoolResponse Source # 
type Rep CreateUserPoolResponse = D1 (MetaData "CreateUserPoolResponse" "Network.AWS.CognitoIdentityProvider.CreateUserPool" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" False) (C1 (MetaCons "CreateUserPoolResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cuprsUserPool") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolType))) (S1 (MetaSel (Just Symbol "_cuprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

cuprsUserPool :: Lens' CreateUserPoolResponse (Maybe UserPoolType) Source #

A container for the user pool details.