Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new Amazon Cognito user pool and sets the password policy for the pool.
- createUserPool :: Text -> CreateUserPool
- data CreateUserPool
- cupEmailVerificationMessage :: Lens' CreateUserPool (Maybe Text)
- cupSmsAuthenticationMessage :: Lens' CreateUserPool (Maybe Text)
- cupEmailVerificationSubject :: Lens' CreateUserPool (Maybe Text)
- cupAliasAttributes :: Lens' CreateUserPool [AliasAttributeType]
- cupSmsVerificationMessage :: Lens' CreateUserPool (Maybe Text)
- cupMFAConfiguration :: Lens' CreateUserPool (Maybe UserPoolMFAType)
- cupLambdaConfig :: Lens' CreateUserPool (Maybe LambdaConfigType)
- cupAutoVerifiedAttributes :: Lens' CreateUserPool [VerifiedAttributeType]
- cupPolicies :: Lens' CreateUserPool (Maybe UserPoolPolicyType)
- cupPoolName :: Lens' CreateUserPool Text
- createUserPoolResponse :: Int -> CreateUserPoolResponse
- data CreateUserPoolResponse
- cuprsUserPool :: Lens' CreateUserPoolResponse (Maybe UserPoolType)
- cuprsResponseStatus :: Lens' CreateUserPoolResponse Int
Creating a Request
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.
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.
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.
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.
Response Lenses
cuprsUserPool :: Lens' CreateUserPoolResponse (Maybe UserPoolType) Source #
A container for the user pool details.
cuprsResponseStatus :: Lens' CreateUserPoolResponse Int Source #
The response status code.