/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Resource Type definition for AWS::Cognito::UserPool */ export interface AwsCognitoUserpool { UserPoolTags?: { [k: string]: unknown; }; Policies?: Policies; Schema?: SchemaAttribute[]; AdminCreateUserConfig?: AdminCreateUserConfig; UsernameConfiguration?: UsernameConfiguration; UserPoolName?: string; SmsVerificationMessage?: string; UserAttributeUpdateSettings?: UserAttributeUpdateSettings; EmailConfiguration?: EmailConfiguration; SmsConfiguration?: SmsConfiguration; EmailVerificationSubject?: string; AccountRecoverySetting?: AccountRecoverySetting; VerificationMessageTemplate?: VerificationMessageTemplate; ProviderURL?: string; MfaConfiguration?: string; DeletionProtection?: string; SmsAuthenticationMessage?: string; ProviderName?: string; UserPoolAddOns?: UserPoolAddOns; AliasAttributes?: string[]; EnabledMfas?: string[]; LambdaConfig?: LambdaConfig; Id?: string; Arn?: string; UsernameAttributes?: string[]; AutoVerifiedAttributes?: string[]; DeviceConfiguration?: DeviceConfiguration; EmailVerificationMessage?: string; } export interface Policies { PasswordPolicy?: PasswordPolicy; } export interface PasswordPolicy { RequireNumbers?: boolean; MinimumLength?: number; TemporaryPasswordValidityDays?: number; RequireUppercase?: boolean; RequireLowercase?: boolean; RequireSymbols?: boolean; } export interface SchemaAttribute { DeveloperOnlyAttribute?: boolean; Mutable?: boolean; AttributeDataType?: string; StringAttributeConstraints?: StringAttributeConstraints; Required?: boolean; NumberAttributeConstraints?: NumberAttributeConstraints; Name?: string; } export interface StringAttributeConstraints { MaxLength?: string; MinLength?: string; } export interface NumberAttributeConstraints { MinValue?: string; MaxValue?: string; } export interface AdminCreateUserConfig { InviteMessageTemplate?: InviteMessageTemplate; UnusedAccountValidityDays?: number; AllowAdminCreateUserOnly?: boolean; } export interface InviteMessageTemplate { EmailSubject?: string; EmailMessage?: string; SMSMessage?: string; } export interface UsernameConfiguration { CaseSensitive?: boolean; } export interface UserAttributeUpdateSettings { AttributesRequireVerificationBeforeUpdate: string[]; } export interface EmailConfiguration { ReplyToEmailAddress?: string; ConfigurationSet?: string; EmailSendingAccount?: string; From?: string; SourceArn?: string; } export interface SmsConfiguration { SnsCallerArn?: string; SnsRegion?: string; ExternalId?: string; } export interface AccountRecoverySetting { RecoveryMechanisms?: RecoveryOption[]; } export interface RecoveryOption { Priority?: number; Name?: string; } export interface VerificationMessageTemplate { EmailMessageByLink?: string; EmailMessage?: string; SmsMessage?: string; EmailSubject?: string; DefaultEmailOption?: string; EmailSubjectByLink?: string; } export interface UserPoolAddOns { AdvancedSecurityMode?: string; } export interface LambdaConfig { CreateAuthChallenge?: string; PreSignUp?: string; KMSKeyID?: string; UserMigration?: string; PostAuthentication?: string; VerifyAuthChallengeResponse?: string; PreAuthentication?: string; DefineAuthChallenge?: string; PreTokenGeneration?: string; CustomSMSSender?: CustomSMSSender; PostConfirmation?: string; CustomMessage?: string; CustomEmailSender?: CustomEmailSender; } export interface CustomSMSSender { LambdaArn?: string; LambdaVersion?: string; } export interface CustomEmailSender { LambdaArn?: string; LambdaVersion?: string; } export interface DeviceConfiguration { DeviceOnlyRememberedOnUserPrompt?: boolean; ChallengeRequiredOnNewDevice?: boolean; }