UserPoolType
¶
Source code in docs_src/capo_cognito_identity_provider/types/user_pool_type.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
account_recovery_setting
instance-attribute
¶
account_recovery_setting: NotRequired[AccountRecoverySettingType]
The available verified method a user can use to recover their password when they call ForgotPassword. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.
acr_configuration
instance-attribute
¶
acr_configuration: NotRequired[AcrConfigurationType]
The names of the authentication context class reference (ACR) levels for the user pool. Amazon Cognito always returns the effective configuration, with default names merged in for any level that you haven't customized.
Configuring custom ACR level names requires the Essentials or Plus feature plan. To activate this setting, your user pool must be in the Essentials tier or higher.
admin_create_user_config
instance-attribute
¶
admin_create_user_config: NotRequired[AdminCreateUserConfigType]
The configuration for AdminCreateUser requests.
alias_attributes
instance-attribute
¶
alias_attributes: NotRequired[AliasAttributesListType]
Attributes supported as an alias for this user pool. An alias is an attribute that users can enter as an alternative username. Possible values: phone_number, email, or preferred_username.
auto_verified_attributes
instance-attribute
¶
auto_verified_attributes: NotRequired[VerifiedAttributesListType]
The attributes that are auto-verified in a user pool.
creation_date
instance-attribute
¶
creation_date: NotRequired[DateType]
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.
custom_domain
instance-attribute
¶
custom_domain: NotRequired[DomainType]
A custom domain name that you provide to Amazon Cognito. This parameter applies only if you use a custom domain to host the sign-up and sign-in pages for your application. An example of a custom domain name might be auth.example.com.
For more information about adding a custom domain to your user pool, see Using Your Own Domain for the Hosted UI.
deletion_protection
instance-attribute
¶
deletion_protection: NotRequired[DeletionProtectionType]
When active, DeletionProtection 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.
When you try to delete a protected user pool in a DeleteUserPool API request, Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, send a new DeleteUserPool request after you deactivate deletion protection in an UpdateUserPool API request.
device_configuration
instance-attribute
¶
device_configuration: NotRequired[DeviceConfigurationType]
The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.
When you provide a value for any DeviceConfiguration field, you activate the Amazon Cognito device-remembering feature.
domain
instance-attribute
¶
domain: NotRequired[DomainType]
The domain prefix, if the user pool has a domain associated with it.
email_configuration
instance-attribute
¶
email_configuration: NotRequired[EmailConfigurationType]
The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for messages from your user pool.
email_configuration_failure
instance-attribute
¶
email_configuration_failure: NotRequired[StringType]
Deprecated. Review error codes from API requests with EventSource:cognito-idp.amazonaws.com in CloudTrail for information about problems with user pool email configuration.
email_verification_message
instance-attribute
¶
email_verification_message: NotRequired[EmailVerificationMessageType]
This parameter is no longer used.
email_verification_subject
instance-attribute
¶
email_verification_subject: NotRequired[EmailVerificationSubjectType]
This parameter is no longer used.
estimated_number_of_users
instance-attribute
¶
estimated_number_of_users: IntegerType
A number estimating the size of the user pool.
issuer_configuration
instance-attribute
¶
issuer_configuration: NotRequired[IssuerConfigurationType]
The issuer configuration for the user pool, including token issuing settings.
key_configuration
instance-attribute
¶
key_configuration: NotRequired[KeyConfigurationType]
The key configuration for the user pool, including encryption settings.
lambda_config
instance-attribute
¶
lambda_config: NotRequired[LambdaConfigType]
A collection of user pool Lambda triggers. Amazon Cognito invokes triggers at several possible stages of user pool operations. Triggers can modify the outcome of the operations that invoked them.
last_modified_date
instance-attribute
¶
last_modified_date: NotRequired[DateType]
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.
mfa_configuration
instance-attribute
¶
mfa_configuration: NotRequired[UserPoolMfaType]
Can be one of the following values:
-
OFF- MFA tokens aren't required and can't be specified during user registration. -
ON- MFA tokens are required for all user registrations. You can only specify required when you're initially creating a user pool. -
OPTIONAL- Users have the option when registering to create an MFA token.
policies
instance-attribute
¶
policies: NotRequired[UserPoolPolicyType]
A list of user pool policies. Contains the policy that sets password-complexity requirements.
schema_attributes
instance-attribute
¶
schema_attributes: NotRequired[SchemaAttributesListType]
A list of the user attributes and their properties in your user pool. The attribute schema contains standard attributes, custom attributes with a custom: prefix, and developer attributes with a dev: prefix. For more information, see User pool attributes.
Developer-only attributes are a legacy feature of user pools, and are read-only to all app clients. You can create and update developer-only attributes only with IAM-authenticated API operations. Use app client read/write permissions instead.
sms_authentication_message
instance-attribute
¶
sms_authentication_message: NotRequired[SmsVerificationMessageType]
The contents of the SMS authentication message.
sms_configuration
instance-attribute
¶
sms_configuration: NotRequired[SmsConfigurationType]
User pool configuration for delivery of SMS messages with Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account.
sms_configuration_failure
instance-attribute
¶
sms_configuration_failure: NotRequired[StringType]
The reason why the SMS configuration can't send the messages to your users.
This message might include comma-separated values to describe why your SMS configuration can't send messages to user pool end users.
- InvalidSmsRoleAccessPolicyException
-
The Identity and Access Management role that Amazon Cognito uses to send SMS messages isn't properly configured. For more information, see SmsConfigurationType.
- SNSSandbox
-
The Amazon Web Services account is in the SNS SMS Sandbox and messages will only reach verified end users. This parameter won’t get populated with SNSSandbox if the user creating the user pool doesn’t have SNS permissions. To learn how to move your Amazon Web Services account out of the sandbox, see Moving out of the SMS sandbox.
sms_verification_message
instance-attribute
¶
sms_verification_message: NotRequired[SmsVerificationMessageType]
This parameter is no longer used.
user_attribute_update_settings
instance-attribute
¶
user_attribute_update_settings: NotRequired[UserAttributeUpdateSettingsType]
The settings for updates to user attributes. These settings include the property AttributesRequireVerificationBeforeUpdate, 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 Verifying updates to email addresses and phone numbers.
user_pool_add_ons
instance-attribute
¶
user_pool_add_ons: NotRequired[UserPoolAddOnsType]
Contains settings for activation of threat protection, including the operating mode and additional authentication types. To log user security information but take no action, set to AUDIT. To configure automatic security responses to potentially unwanted traffic to your user pool, set to ENFORCED.
For more information, see Adding advanced security to a user pool. To activate this setting, your user pool must be on the Plus tier.
user_pool_tags
instance-attribute
¶
user_pool_tags: NotRequired[UserPoolTagsType]
The tags that are assigned to the user pool. A tag is a label that you can apply to user pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.
user_pool_tier
instance-attribute
¶
user_pool_tier: NotRequired[UserPoolTierType]
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. Defaults to ESSENTIALS.
username_attributes
instance-attribute
¶
username_attributes: NotRequired[UsernameAttributesListType]
Specifies whether a user can use an email address or phone number as a username when they sign up.
username_configuration
instance-attribute
¶
username_configuration: NotRequired[UsernameConfigurationType]
Case sensitivity of the username input for the selected sign-in option. When case sensitivity is set to False (case insensitive), users can sign in with any combination of capital and lowercase letters. For example, username, USERNAME, or UserName, or for email, [email protected] or [email protected]. For most use cases, set case sensitivity to False (case insensitive) as a best practice. When usernames and email addresses are case insensitive, Amazon Cognito treats any variation in case as the same user, and prevents a case variation from being assigned to the same attribute for a different user.
verification_message_template
instance-attribute
¶
verification_message_template: NotRequired[VerificationMessageTemplateType]
The template for the verification message that your user pool delivers to users who set an email address or phone number attribute.