AtfCognitoProps
Defined in: packages/constructs/src/auth/cognito.ts:79
AtfCognitoProps extends Omit
Extends
Section titled “Extends”Omit<cognito.UserPoolProps,"userPoolName"|"customAttributes"|"lambdaTriggers"|"removalPolicy">
Properties
Section titled “Properties”accountRecovery?
Section titled “accountRecovery?”
readonlyoptionalaccountRecovery?:AccountRecovery
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:766
How will a user be able to recover their account?
Default
Section titled “Default”AccountRecovery.PHONE_WITHOUT_MFA_AND_EMAILInherited from
Section titled “Inherited from”Omit.accountRecovery
advancedSecurityMode?
Section titled “advancedSecurityMode?”
readonlyoptionaladvancedSecurityMode?:AdvancedSecurityMode
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:795
The user pool’s Advanced Security Mode
Default
Section titled “Default”- no valueInherited from
Section titled “Inherited from”Omit.advancedSecurityMode
autoVerify?
Section titled “autoVerify?”
readonlyoptionalautoVerify?:AutoVerifiedAttrs
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:673
Attributes which Cognito will look to verify automatically upon user sign up. EMAIL and PHONE are the only available options.
Default
Section titled “Default”- If
signInAliasincludes email and/or phone, they will be included inautoVerifiedAttributesby default. If absent, no attributes will be auto-verified.
Inherited from
Section titled “Inherited from”Omit.autoVerify
callbackUrls?
Section titled “callbackUrls?”
optionalcallbackUrls?:string[]
Defined in: packages/constructs/src/auth/cognito.ts:108
OAuth callback URLs for hosted UI
customSenderKmsKey?
Section titled “customSenderKmsKey?”
readonlyoptionalcustomSenderKmsKey?:IKeyRef
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:789
This key will be used to encrypt temporary passwords and authorization codes that Amazon Cognito generates.
Default
Section titled “Default”- no key ID configuredInherited from
Section titled “Inherited from”Omit.customSenderKmsKey
customThreatProtectionMode?
Section titled “customThreatProtectionMode?”
readonlyoptionalcustomThreatProtectionMode?:CustomThreatProtectionMode
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:826
The Type of Threat Protection Enabled for Custom Authentication
This feature only functions if your FeaturePlan is set to FeaturePlan.PLUS
Acceptable values are strings with values ‘ENFORCED’, or ‘AUDIT’. For ‘OFF’ behavior, don’t define this value
Default
Section titled “Default”- no valueInherited from
Section titled “Inherited from”Omit.customThreatProtectionMode
deletionProtection?
Section titled “deletionProtection?”
readonlyoptionaldeletionProtection?:boolean
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:778
Indicates whether the user pool should have deletion protection enabled.
Default
Section titled “Default”falseInherited from
Section titled “Inherited from”Omit.deletionProtection
deviceTracking?
Section titled “deviceTracking?”
readonlyoptionaldeviceTracking?:DeviceTracking
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:783
Device tracking settings
Default
Section titled “Default”- see defaults on each property of DeviceTracking.Inherited from
Section titled “Inherited from”Omit.deviceTracking
domainPrefix?
Section titled “domainPrefix?”
optionaldomainPrefix?:string
Defined in: packages/constructs/src/auth/cognito.ts:117
Custom domain prefix override. Defaults to: {appName}-{stage}-{accountId}
email?
Section titled “email?”
readonlyoptionalemail?:UserPoolEmail
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:748
Email settings for a user pool.
Default
Section titled “Default”- cognito will use the default email configurationInherited from
Section titled “Inherited from”Omit.email
enableSmsRole?
Section titled “enableSmsRole?”
readonlyoptionalenableSmsRole?:boolean
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:651
Setting this would explicitly enable or disable SMS role creation. When left unspecified, CDK will determine based on other properties if a role is needed or not.
Default
Section titled “Default”- CDK will determine based on other properties of the user pool if an SMS role should be created or not.Inherited from
Section titled “Inherited from”Omit.enableSmsRole
envConfig
Section titled “envConfig”envConfig:
BaseEnvConfig
Defined in: packages/constructs/src/auth/cognito.ts:87
Axis env config — provides appName, stageName
extraCustomAttributes?
Section titled “extraCustomAttributes?”
optionalextraCustomAttributes?:Record<string,cognito.ICustomAttribute>
Defined in: packages/constructs/src/auth/cognito.ts:99
Extra custom attributes beyond the Axis defaults (custom:userId, custom:tenantId). Merged after Axis defaults.
featurePlan?
Section titled “featurePlan?”
readonlyoptionalfeaturePlan?:FeaturePlan
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:802
The user pool feature plan, or tier. This parameter determines the eligibility of the user pool for features like managed login, access-token customization, and threat protection.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-sign-in-feature-plans.html
Default
Section titled “Default”- FeaturePlan.ESSENTIALS for a newly created user pool; FeaturePlan.LITE otherwiseInherited from
Section titled “Inherited from”Omit.featurePlan
groups?
Section titled “groups?”
optionalgroups?:AxisGroupConfig[]
Defined in: packages/constructs/src/auth/cognito.ts:105
User pool groups to create. super-admin group is always created automatically.
keepOriginal?
Section titled “keepOriginal?”
readonlyoptionalkeepOriginal?:KeepOriginalAttrs
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:680
Attributes which Cognito will look to handle changes to the value of your users’ email address and phone number attributes. EMAIL and PHONE are the only available options.
Default
Section titled “Default”- Nothing is kept.Inherited from
Section titled “Inherited from”Omit.keepOriginal
logoutUrls?
Section titled “logoutUrls?”
optionallogoutUrls?:string[]
Defined in: packages/constructs/src/auth/cognito.ts:111
OAuth logout URLs
readonlyoptionalmfa?:Mfa
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:701
Configure whether users of this user pool can or are required use MFA to sign in.
Default
Section titled “Default”Mfa.OFFInherited from
Section titled “Inherited from”Omit.mfa
mfaMessage?
Section titled “mfaMessage?”
readonlyoptionalmfaMessage?:string
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:707
The SMS message template sent during MFA verification. Use ’{####}’ in the template where Cognito should insert the verification code.
Default
Section titled “Default”'Your authentication code is {####}.'Inherited from
Section titled “Inherited from”Omit.mfaMessage
mfaSecondFactor?
Section titled “mfaSecondFactor?”
readonlyoptionalmfaSecondFactor?:MfaSecondFactor
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:714
Configure the MFA types that users can use in this user pool. Ignored if mfa is set to OFF.
Default
Section titled “Default”- { sms: true, otp: false, email: false }, if
mfais set toOPTIONALorREQUIRED. { sms: false, otp: false, email:false }, otherwise
Inherited from
Section titled “Inherited from”Omit.mfaSecondFactor
passkeyRelyingPartyId?
Section titled “passkeyRelyingPartyId?”
readonlyoptionalpasskeyRelyingPartyId?:string
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:735
The authentication domain that passkey providers must use as a relying party (RP) in their configuration.
Under the following conditions, the passkey relying party ID must be the fully-qualified domain name of your custom domain:
- The user pool is configured for passkey authentication.
- The user pool has a custom domain, whether or not it also has a prefix domain.
- Your application performs authentication with managed login or the classic hosted UI.
Default
Section titled “Default”- No authentication domainInherited from
Section titled “Inherited from”Omit.passkeyRelyingPartyId
passkeyUserVerification?
Section titled “passkeyUserVerification?”
readonlyoptionalpasskeyUserVerification?:PasskeyUserVerification
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:743
Your user-pool treatment for MFA with a passkey. You can override other MFA options and require passkey MFA, or you can set it as preferred. When passkey MFA is preferred, the hosted UI encourages users to register a passkey at sign-in.
Default
Section titled “Default”- Cognito default setting is PasskeyUserVerification.PREFERREDInherited from
Section titled “Inherited from”Omit.passkeyUserVerification
passwordPolicy?
Section titled “passwordPolicy?”
readonlyoptionalpasswordPolicy?:PasswordPolicy
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:719
Password policy for this user pool.
Default
Section titled “Default”- see defaults on each property of PasswordPolicy.Inherited from
Section titled “Inherited from”Omit.passwordPolicy
selfSignUpEnabled?
Section titled “selfSignUpEnabled?”
readonlyoptionalselfSignUpEnabled?:boolean
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:608
Whether self sign-up should be enabled.
To configure self sign-up configuration use the userVerification property.
Default
Section titled “Default”- falseInherited from
Section titled “Inherited from”Omit.selfSignUpEnabled
signInAliases?
Section titled “signInAliases?”
readonlyoptionalsignInAliases?:SignInAliases
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:665
Methods in which a user registers or signs in to a user pool. Allows either username with aliases OR sign in with email, phone, or both.
Read the sections on usernames and aliases to learn more - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html
To match with ‘Option 1’ in the above link, with a verified email, this property should be set to
{ username: true, email: true }. To match with ‘Option 2’ in the above link with both a verified email and phone
number, this property should be set to { email: true, phone: true }.
Default
Section titled “Default”{ username: true }Inherited from
Section titled “Inherited from”Omit.signInAliases
signInCaseSensitive?
Section titled “signInCaseSensitive?”
readonlyoptionalsignInCaseSensitive?:boolean
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:760
Whether sign-in aliases should be evaluated with case sensitivity.
For example, when this option is set to false, users will be able to sign in using either MyUsername or myusername.
Default
Section titled “Default”trueInherited from
Section titled “Inherited from”Omit.signInCaseSensitive
signInPolicy?
Section titled “signInPolicy?”
readonlyoptionalsignInPolicy?:SignInPolicy
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:724
Sign-in policy for this user pool.
Default
Section titled “Default”- see defaults on each property of SignInPolicy.Inherited from
Section titled “Inherited from”Omit.signInPolicy
smsRole?
Section titled “smsRole?”
readonlyoptionalsmsRole?:IRoleRef
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:627
The IAM role that Cognito will assume while sending SMS messages.
Default
Section titled “Default”- a new IAM role is created.Inherited from
Section titled “Inherited from”Omit.smsRole
smsRoleExternalId?
Section titled “smsRoleExternalId?”
readonlyoptionalsmsRoleExternalId?:string
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:636
The ‘ExternalId’ that Cognito service must be using when assuming the smsRole, if the role is restricted with an ‘sts:ExternalId’ conditional.
Learn more about ExternalId here - https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
This property will be ignored if smsRole is not specified.
Default
Section titled “Default”- No external id will be configured.Inherited from
Section titled “Inherited from”Omit.smsRoleExternalId
snsRegion?
Section titled “snsRegion?”
readonlyoptionalsnsRegion?:string
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:644
The region to integrate with SNS to send SMS messages.
This property will do nothing if SMS configuration is not configured.
Default
Section titled “Default”- The same region as the user pool, with a few exceptions - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html#user-pool-sms-settings-first-timeInherited from
Section titled “Inherited from”Omit.snsRegion
standardAttributes?
Section titled “standardAttributes?”
readonlyoptionalstandardAttributes?:StandardAttributes
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:687
The set of attributes that are required for every user in the user pool. Read more on attributes here - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html
Default
Section titled “Default”- All standard attributes are optional and mutable.Inherited from
Section titled “Inherited from”Omit.standardAttributes
standardThreatProtectionMode?
Section titled “standardThreatProtectionMode?”
readonlyoptionalstandardThreatProtectionMode?:StandardThreatProtectionMode
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:814
The Type of Threat Protection Enabled for Standard Authentication
This feature only functions if your FeaturePlan is set to FeaturePlan.PLUS
Acceptable values are strings with values ‘ENFORCED’, ‘AUDIT’, or ‘OFF’
Default
Section titled “Default”- StandardThreatProtectionMode.NO_ENFORCEMENTInherited from
Section titled “Inherited from”Omit.standardThreatProtectionMode
triggers?
Section titled “triggers?”
optionaltriggers?:AxisCognitoTriggers
Defined in: packages/constructs/src/auth/cognito.ts:93
Explicit trigger map — assign lambdas to Cognito trigger slots. Much safer than inferring trigger type from lambda name.
userInvitation?
Section titled “userInvitation?”
readonlyoptionaluserInvitation?:UserInvitationConfig
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:621
Configuration around admins signing up users into a user pool.
Default
Section titled “Default”- see defaults in UserInvitationConfig.Inherited from
Section titled “Inherited from”Omit.userInvitation
userVerification?
Section titled “userVerification?”
readonlyoptionaluserVerification?:UserVerificationConfig
Defined in: node_modules/.pnpm/aws-cdk-lib@2.261.0_constructs@10.7.0/node_modules/aws-cdk-lib/aws-cognito/lib/user-pool.d.ts:615
Configuration around users signing themselves up to the user pool.
Enable or disable self sign-up via the selfSignUpEnabled property.
Default
Section titled “Default”- see defaults in UserVerificationConfig.Inherited from
Section titled “Inherited from”Omit.userVerification
© 2026 Axis Tech. Powered by axis-tech.co.