Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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
- cupUserPoolTags :: Lens' CreateUserPool (HashMap Text Text)
- cupVerificationMessageTemplate :: Lens' CreateUserPool (Maybe VerificationMessageTemplateType)
- cupEmailVerificationMessage :: Lens' CreateUserPool (Maybe Text)
- cupSmsAuthenticationMessage :: Lens' CreateUserPool (Maybe Text)
- cupUserPoolAddOns :: Lens' CreateUserPool (Maybe UserPoolAddOnsType)
- cupEmailVerificationSubject :: Lens' CreateUserPool (Maybe Text)
- cupUsernameAttributes :: Lens' CreateUserPool [UsernameAttributeType]
- cupAliasAttributes :: Lens' CreateUserPool [AliasAttributeType]
- cupSchema :: Lens' CreateUserPool (Maybe (NonEmpty SchemaAttributeType))
- cupEmailConfiguration :: Lens' CreateUserPool (Maybe EmailConfigurationType)
- cupSmsVerificationMessage :: Lens' CreateUserPool (Maybe Text)
- cupMFAConfiguration :: Lens' CreateUserPool (Maybe UserPoolMFAType)
- cupLambdaConfig :: Lens' CreateUserPool (Maybe LambdaConfigType)
- cupSmsConfiguration :: Lens' CreateUserPool (Maybe SmsConfigurationType)
- cupAdminCreateUserConfig :: Lens' CreateUserPool (Maybe AdminCreateUserConfigType)
- cupDeviceConfiguration :: Lens' CreateUserPool (Maybe DeviceConfigurationType)
- 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:
cupUserPoolTags
- The cost allocation tags for the user pool. For more information, see Adding Cost Allocation Tags to Your User PoolcupVerificationMessageTemplate
- The template for the verification message that the user sees when the app requests permission to access the user's information.cupEmailVerificationMessage
- A string representing the email verification message.cupSmsAuthenticationMessage
- A string representing the SMS authentication message.cupUserPoolAddOns
- Used to enable advanced security risk detection. Set the keyAdvancedSecurityMode
to the value AUDIT.cupEmailVerificationSubject
- A string representing the email verification subject.cupUsernameAttributes
- Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.cupAliasAttributes
- Attributes supported as an alias for this user pool. Possible values: phone_number , email , or preferred_username .cupSchema
- An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.cupEmailConfiguration
- The email configuration.cupSmsVerificationMessage
- A string representing the SMS verification message.cupMFAConfiguration
- Specifies MFA configuration details.cupLambdaConfig
- The Lambda trigger configuration information for the new user pool.cupSmsConfiguration
- The SMS configuration.cupAdminCreateUserConfig
- The configuration forAdminCreateUser
requests.cupDeviceConfiguration
- The device configuration.cupAutoVerifiedAttributes
- The attributes to be auto-verified. Possible values: email , phone_number .cupPolicies
- The policies associated with the new user pool.cupPoolName
- A string used to name the user pool.
data CreateUserPool Source #
Represents the request to create a user pool.
See: createUserPool
smart constructor.
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.
cupEmailConfiguration :: Lens' CreateUserPool (Maybe EmailConfigurationType) Source #
The email configuration.
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.
cupSmsConfiguration :: Lens' CreateUserPool (Maybe SmsConfigurationType) Source #
The SMS configuration.
cupAdminCreateUserConfig :: Lens' CreateUserPool (Maybe AdminCreateUserConfigType) Source #
The configuration for AdminCreateUser
requests.
cupDeviceConfiguration :: Lens' CreateUserPool (Maybe DeviceConfigurationType) Source #
The device configuration.
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:
cuprsUserPool
- A container for the user pool details.cuprsResponseStatus
- -- | The response status code.
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.