amazonka-cognito-idp-1.6.1: Amazon Cognito Identity Provider 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.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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Data CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Show CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Generic CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Associated Types

type Rep CreateUserPool :: Type -> Type #

Hashable CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

ToJSON CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

AWSRequest CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Associated Types

type Rs CreateUserPool :: Type #

ToHeaders CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

ToPath CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

ToQuery CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

NFData CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Methods

rnf :: CreateUserPool -> () #

type Rep CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

type Rep CreateUserPool = D1 (MetaData "CreateUserPool" "Network.AWS.CognitoIdentityProvider.CreateUserPool" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "CreateUserPool'" PrefixI True) ((((S1 (MetaSel (Just "_cupUserPoolTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_cupVerificationMessageTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VerificationMessageTemplateType))) :*: (S1 (MetaSel (Just "_cupEmailVerificationMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cupSmsAuthenticationMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_cupUserPoolAddOns") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolAddOnsType)) :*: S1 (MetaSel (Just "_cupEmailVerificationSubject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cupUsernameAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UsernameAttributeType])) :*: (S1 (MetaSel (Just "_cupAliasAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AliasAttributeType])) :*: S1 (MetaSel (Just "_cupSchema") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 SchemaAttributeType))))))) :*: (((S1 (MetaSel (Just "_cupEmailConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EmailConfigurationType)) :*: S1 (MetaSel (Just "_cupSmsVerificationMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cupMFAConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolMFAType)) :*: (S1 (MetaSel (Just "_cupLambdaConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LambdaConfigType)) :*: S1 (MetaSel (Just "_cupSmsConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SmsConfigurationType))))) :*: ((S1 (MetaSel (Just "_cupAdminCreateUserConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AdminCreateUserConfigType)) :*: S1 (MetaSel (Just "_cupDeviceConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DeviceConfigurationType))) :*: (S1 (MetaSel (Just "_cupAutoVerifiedAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [VerifiedAttributeType])) :*: (S1 (MetaSel (Just "_cupPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolPolicyType)) :*: S1 (MetaSel (Just "_cupPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))))
type Rs CreateUserPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Request Lenses

cupUserPoolTags :: Lens' CreateUserPool (HashMap Text Text) Source #

The cost allocation tags for the user pool. For more information, see Adding Cost Allocation Tags to Your User Pool

cupVerificationMessageTemplate :: Lens' CreateUserPool (Maybe VerificationMessageTemplateType) Source #

The template for the verification message that the user sees when the app requests permission to access the user's information.

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.

cupUserPoolAddOns :: Lens' CreateUserPool (Maybe UserPoolAddOnsType) Source #

Used to enable advanced security risk detection. Set the key AdvancedSecurityMode to the value AUDIT.

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

A string representing the email verification subject.

cupUsernameAttributes :: Lens' CreateUserPool [UsernameAttributeType] Source #

Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Data CreateUserPoolResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Show CreateUserPoolResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Generic CreateUserPoolResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Associated Types

type Rep CreateUserPoolResponse :: Type -> Type #

NFData CreateUserPoolResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

Methods

rnf :: CreateUserPoolResponse -> () #

type Rep CreateUserPoolResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPool

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

Response Lenses

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

A container for the user pool details.