Module Smaws_Client_CognitoIdentityProvider.CreateUserPool

Creates a new Amazon Cognito user pool. This operation sets basic and advanced configuration options.

If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `FeatureUnavailableInTierException of Types.feature_unavailable_in_tier_exception | `InternalErrorException of Types.internal_error_exception | `InvalidEmailRoleAccessPolicyException of Types.invalid_email_role_access_policy_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSmsRoleAccessPolicyException of Types.invalid_sms_role_access_policy_exception | `InvalidSmsRoleTrustRelationshipException of Types.invalid_sms_role_trust_relationship_exception | `LimitExceededException of Types.limit_exceeded_exception | `NotAuthorizedException of Types.not_authorized_exception | `TierChangeNotAllowedException of Types.tier_change_not_allowed_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserPoolTaggingException of Types.user_pool_tagging_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_user_pool_request -> (Types.create_user_pool_response, [> Smaws_Lib.Protocols.AwsJson.error | `FeatureUnavailableInTierException of Types.feature_unavailable_in_tier_exception | `InternalErrorException of Types.internal_error_exception | `InvalidEmailRoleAccessPolicyException of Types.invalid_email_role_access_policy_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSmsRoleAccessPolicyException of Types.invalid_sms_role_access_policy_exception | `InvalidSmsRoleTrustRelationshipException of Types.invalid_sms_role_trust_relationship_exception | `LimitExceededException of Types.limit_exceeded_exception | `NotAuthorizedException of Types.not_authorized_exception | `TierChangeNotAllowedException of Types.tier_change_not_allowed_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserPoolTaggingException of Types.user_pool_tagging_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_user_pool_request -> (Types.create_user_pool_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `FeatureUnavailableInTierException of Types.feature_unavailable_in_tier_exception | `InternalErrorException of Types.internal_error_exception | `InvalidEmailRoleAccessPolicyException of Types.invalid_email_role_access_policy_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSmsRoleAccessPolicyException of Types.invalid_sms_role_access_policy_exception | `InvalidSmsRoleTrustRelationshipException of Types.invalid_sms_role_trust_relationship_exception | `LimitExceededException of Types.limit_exceeded_exception | `NotAuthorizedException of Types.not_authorized_exception | `TierChangeNotAllowedException of Types.tier_change_not_allowed_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserPoolTaggingException of Types.user_pool_tagging_exception ] * Smaws_Lib.Response.metadata) Stdlib.result