import { Value } from '../../cloudformation/Value';
import { PoliciesProps } from './userpool/PoliciesProps';
import { VerificationMessageTemplateProps } from './userpool/VerificationMessageTemplateProps';
import { SchemaAttributeProps } from './userpool/SchemaAttributeProps';
import { AdminCreateUserConfigProps } from './userpool/AdminCreateUserConfigProps';
import { UsernameConfigurationProps } from './userpool/UsernameConfigurationProps';
import { UserPoolAddOnsProps } from './userpool/UserPoolAddOnsProps';
import { UserAttributeUpdateSettingsProps } from './userpool/UserAttributeUpdateSettingsProps';
import { EmailConfigurationProps } from './userpool/EmailConfigurationProps';
import { SmsConfigurationProps } from './userpool/SmsConfigurationProps';
import { LambdaConfigProps } from './userpool/LambdaConfigProps';
import { DeviceConfigurationProps } from './userpool/DeviceConfigurationProps';
import { AccountRecoverySettingProps } from './userpool/AccountRecoverySettingProps';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type UserPoolAttributes = {
    ProviderName: Attribute<string>;
    UserPoolId: Attribute<string>;
    ProviderURL: Attribute<string>;
    Arn: Attribute<string>;
};
export type UserPool = AwsResource<'AWS::Cognito::UserPool', UserPoolProperties, UserPoolAttributes>;
/**
  The <code>AWS::Cognito::UserPool</code> resource creates an Amazon Cognito user pool. For more information on working with Amazon Cognito user pools, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html">Amazon Cognito User Pools</a> and <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html">CreateUserPool</a>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html">the AWS Docs</a>
*/
export declare function userPool(userPoolProps?: UserPoolProperties): UserPool;
/**
  The <code>AWS::Cognito::UserPool</code> resource creates an Amazon Cognito user pool. For more information on working with Amazon Cognito user pools, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html">Amazon Cognito User Pools</a> and <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPool.html">CreateUserPool</a>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html">the AWS Docs</a>
*/
export interface UserPoolProperties {
    /** <code>UserPoolTags</code>  <a name="cfn-cognito-userpool-userpooltags"></a>
  The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    userPoolTags?: Value<{
        [key: string]: Value<string>;
    }>;
    /** <code>Policies</code>  <a name="cfn-cognito-userpool-policies"></a>
  The policy associated with a user pool.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    policies?: PoliciesProps;
    /** <code>VerificationMessageTemplate</code>  <a name="cfn-cognito-userpool-verificationmessagetemplate"></a>
  The template for the verification message that the user sees when the app requests permission to access the user’s information.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    verificationMessageTemplate?: VerificationMessageTemplateProps;
    /** <p> */
    mfaConfiguration?: Value<string>;
    /** <code>Schema</code>  <a name="cfn-cognito-userpool-schema"></a>
  The schema attributes for the new user pool. These attributes can be standard or custom attributes.<br />
  During a user pool update, you can add new schema attributes but you cannot modify or delete an existing schema attribute.
  
  Required: No<br />
  
  Maximum: <code>50</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    schema?: SchemaAttributeProps[];
    /** <code>AdminCreateUserConfig</code>  <a name="cfn-cognito-userpool-admincreateuserconfig"></a>
  The configuration for creating a new user profile.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    adminCreateUserConfig?: AdminCreateUserConfigProps;
    /** <code>DeletionProtection</code>  <a name="cfn-cognito-userpool-deletionprotection"></a>
  When active, <code>DeletionProtection</code> prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.<br />
  When you try to delete a protected user pool in a <code>DeleteUserPool</code> API request, Amazon Cognito returns an <code>InvalidParameterException</code> error. To delete a protected user pool, send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an <code>UpdateUserPool</code> API request.<br />
  
  Required: No<br />
  
  Allowed values: <code>ACTIVE | INACTIVE</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    deletionProtection?: Value<'ACTIVE' | 'INACTIVE'>;
    /** <code>SmsAuthenticationMessage</code>  <a name="cfn-cognito-userpool-smsauthenticationmessage"></a>
  A string representing the SMS authentication message.<br />
  
  Required: No<br />
  
  Minimum: <code>6</code><br />
  
  Maximum: <code>140</code><br />
  
  Pattern: <code>.*\{####\}.*</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    smsAuthenticationMessage?: Value<string>;
    /** <code>UsernameConfiguration</code>  <a name="cfn-cognito-userpool-usernameconfiguration"></a>
  You can choose to set case sensitivity on the username input for the selected sign-in option. For example, when this is set to <code>False</code>, users will be able to sign in using either “username” or “Username”. This configuration is immutable once it has been set.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    usernameConfiguration?: UsernameConfigurationProps;
    /** <code>UserPoolName</code>  <a name="cfn-cognito-userpool-userpoolname"></a>
  A string used to name the user pool.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>128</code><br />
  
  Pattern: <code>[\w\s+=,.@-]+</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    userPoolName?: Value<string>;
    /** <code>SmsVerificationMessage</code>  <a name="cfn-cognito-userpool-smsverificationmessage"></a>
  This parameter is no longer used. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html">VerificationMessageTemplateType</a>.<br />
  
  Required: No<br />
  
  Minimum: <code>6</code><br />
  
  Maximum: <code>140</code><br />
  
  Pattern: <code>.*\{####\}.*</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    smsVerificationMessage?: Value<string>;
    /** <code>UserPoolAddOns</code>  <a name="cfn-cognito-userpool-userpooladdons"></a>
  User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to <code>AUDIT</code>. To configure automatic security responses to risky traffic to your user pool, set to <code>ENFORCED</code>.<br />
  For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html">Adding advanced security to a user pool</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    userPoolAddOns?: UserPoolAddOnsProps;
    /** <code>UserAttributeUpdateSettings</code>  <a name="cfn-cognito-userpool-userattributeupdatesettings"></a>
  The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users’ email address and phone number attributes. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates"> Verifying updates to email addresses and phone numbers</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    userAttributeUpdateSettings?: UserAttributeUpdateSettingsProps;
    /** <code>EmailConfiguration</code>  <a name="cfn-cognito-userpool-emailconfiguration"></a>
  The email configuration of your user pool. The email configuration type sets your preferred sending method, AWS Region, and sender for messages from your user pool.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    emailConfiguration?: EmailConfigurationProps;
    /** <code>SmsConfiguration</code>  <a name="cfn-cognito-userpool-smsconfiguration"></a>
  The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your AWS account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the AWS Region that you want, the Amazon Cognito user pool uses an AWS Identity and Access Management (IAM) role in your AWS account.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    smsConfiguration?: SmsConfigurationProps;
    /** <code>AliasAttributes</code>  <a name="cfn-cognito-userpool-aliasattributes"></a>
  Attributes supported as an alias for this user pool. Possible values: <strong>phone_number</strong>, <strong>email</strong>, or <strong>preferred_username</strong>.<br />
  This user pool property cannot be updated.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    aliasAttributes?: Value<Value<string>[]>;
    /** <p> */
    enabledMfas?: Value<Value<string>[]>;
    /** <code>EmailVerificationSubject</code>  <a name="cfn-cognito-userpool-emailverificationsubject"></a>
  This parameter is no longer used. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html">VerificationMessageTemplateType</a>.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>140</code><br />
  
  Pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\s]+</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    emailVerificationSubject?: Value<string>;
    /** <p> */
    lambdaConfig?: LambdaConfigProps;
    /** <code>UsernameAttributes</code>  <a name="cfn-cognito-userpool-usernameattributes"></a>
  Determines whether email addresses or phone numbers can be specified as user names when a user signs up. Possible values: <code>phone_number</code> or <code>email</code>.<br />
  This user pool property cannot be updated.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    usernameAttributes?: Value<Value<string>[]>;
    /** <code>AutoVerifiedAttributes</code>  <a name="cfn-cognito-userpool-autoverifiedattributes"></a>
  The attributes to be auto-verified. Possible values: <strong>email</strong>, <strong>phone_number</strong>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    autoVerifiedAttributes?: Value<Value<string>[]>;
    /** <code>DeviceConfiguration</code>  <a name="cfn-cognito-userpool-deviceconfiguration"></a>
  The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.<br />
  When you provide a value for any <code>DeviceConfiguration</code> field, you activate the Amazon Cognito device-remembering feature.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    deviceConfiguration?: DeviceConfigurationProps;
    /** <code>EmailVerificationMessage</code>  <a name="cfn-cognito-userpool-emailverificationmessage"></a>
  This parameter is no longer used. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html">VerificationMessageTemplateType</a>.<br />
  
  Required: No<br />
  
  Minimum: <code>6</code><br />
  
  Maximum: <code>20000</code><br />
  
  Pattern: <code>[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*\{####\}[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    emailVerificationMessage?: Value<string>;
    /** <code>AccountRecoverySetting</code>  <a name="cfn-cognito-userpool-accountrecoverysetting"></a>
  Use this setting to define which verified available method a user can use to recover their password when they call <code>ForgotPassword</code>. It allows you to define a preferred method when a user has more than one method available. With this setting, SMS does not qualify for a valid password recovery mechanism if the user also has SMS MFA enabled. In the absence of this setting, Cognito uses the legacy behavior to determine the recovery method where SMS is preferred over email.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    accountRecoverySetting?: AccountRecoverySettingProps;
}
