#[non_exhaustive]
pub struct UserPoolType {
Show 33 fields pub id: Option<String>, pub name: Option<String>, pub policies: Option<UserPoolPolicyType>, pub deletion_protection: Option<DeletionProtectionType>, pub lambda_config: Option<LambdaConfigType>, pub status: Option<StatusType>, pub last_modified_date: Option<DateTime>, pub creation_date: Option<DateTime>, pub schema_attributes: Option<Vec<SchemaAttributeType>>, pub auto_verified_attributes: Option<Vec<VerifiedAttributeType>>, pub alias_attributes: Option<Vec<AliasAttributeType>>, pub username_attributes: Option<Vec<UsernameAttributeType>>, pub sms_verification_message: Option<String>, pub email_verification_message: Option<String>, pub email_verification_subject: Option<String>, pub verification_message_template: Option<VerificationMessageTemplateType>, pub sms_authentication_message: Option<String>, pub user_attribute_update_settings: Option<UserAttributeUpdateSettingsType>, pub mfa_configuration: Option<UserPoolMfaType>, pub device_configuration: Option<DeviceConfigurationType>, pub estimated_number_of_users: i32, pub email_configuration: Option<EmailConfigurationType>, pub sms_configuration: Option<SmsConfigurationType>, pub user_pool_tags: Option<HashMap<String, String>>, pub sms_configuration_failure: Option<String>, pub email_configuration_failure: Option<String>, pub domain: Option<String>, pub custom_domain: Option<String>, pub admin_create_user_config: Option<AdminCreateUserConfigType>, pub user_pool_add_ons: Option<UserPoolAddOnsType>, pub username_configuration: Option<UsernameConfigurationType>, pub arn: Option<String>, pub account_recovery_setting: Option<AccountRecoverySettingType>,
}
Expand description

A container for information about the user pool.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§id: Option<String>

The ID of the user pool.

§name: Option<String>

The name of the user pool.

§policies: Option<UserPoolPolicyType>

The policies associated with the user pool.

§deletion_protection: Option<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.

§lambda_config: Option<LambdaConfigType>

The Lambda triggers associated with the user pool.

§status: Option<StatusType>
👎Deprecated: This property is no longer available.

This parameter is no longer used.

§last_modified_date: Option<DateTime>

The date and time, in ISO 8601 format, when the item was modified.

§creation_date: Option<DateTime>

The date and time, in ISO 8601 format, when the item was created.

§schema_attributes: Option<Vec<SchemaAttributeType>>

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, 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.

§auto_verified_attributes: Option<Vec<VerifiedAttributeType>>

The attributes that are auto-verified in a user pool.

§alias_attributes: Option<Vec<AliasAttributeType>>

The attributes that are aliased in a user pool.

§username_attributes: Option<Vec<UsernameAttributeType>>

Specifies whether a user can use an email address or phone number as a username when they sign up.

§sms_verification_message: Option<String>

This parameter is no longer used. See VerificationMessageTemplateType.

§email_verification_message: Option<String>

This parameter is no longer used. See VerificationMessageTemplateType.

§email_verification_subject: Option<String>

This parameter is no longer used. See VerificationMessageTemplateType.

§verification_message_template: Option<VerificationMessageTemplateType>

The template for verification messages.

§sms_authentication_message: Option<String>

The contents of the SMS authentication message.

§user_attribute_update_settings: Option<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.

§mfa_configuration: Option<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.

§device_configuration: Option<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.

§estimated_number_of_users: i32

A number estimating the size of the user pool.

§email_configuration: Option<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.

§sms_configuration: Option<SmsConfigurationType>

The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through 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.

§user_pool_tags: Option<HashMap<String, String>>

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.

§sms_configuration_failure: Option<String>

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.

§email_configuration_failure: Option<String>

Deprecated. Review error codes from API requests with EventSource:cognito-idp.amazonaws.com in CloudTrail for information about problems with user pool email configuration.

§domain: Option<String>

The domain prefix, if the user pool has a domain associated with it.

§custom_domain: Option<String>

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.

§admin_create_user_config: Option<AdminCreateUserConfigType>

The configuration for AdminCreateUser requests.

§user_pool_add_ons: Option<UserPoolAddOnsType>

User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to AUDIT. To configure automatic security responses to risky traffic to your user pool, set to ENFORCED.

For more information, see Adding advanced security to a user pool.

§username_configuration: Option<UsernameConfigurationType>

Case sensitivity of the username input for the selected sign-in option. For example, when case sensitivity is set to False, users can sign in using either "username" or "Username". This configuration is immutable once it has been set. For more information, see UsernameConfigurationType.

§arn: Option<String>

The Amazon Resource Name (ARN) for the user pool.

§account_recovery_setting: Option<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.

Implementations§

source§

impl UserPoolType

source

pub fn id(&self) -> Option<&str>

The ID of the user pool.

source

pub fn name(&self) -> Option<&str>

The name of the user pool.

source

pub fn policies(&self) -> Option<&UserPoolPolicyType>

The policies associated with the user pool.

source

pub fn deletion_protection(&self) -> Option<&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.

source

pub fn lambda_config(&self) -> Option<&LambdaConfigType>

The Lambda triggers associated with the user pool.

source

pub fn status(&self) -> Option<&StatusType>

👎Deprecated: This property is no longer available.

This parameter is no longer used.

source

pub fn last_modified_date(&self) -> Option<&DateTime>

The date and time, in ISO 8601 format, when the item was modified.

source

pub fn creation_date(&self) -> Option<&DateTime>

The date and time, in ISO 8601 format, when the item was created.

source

pub fn schema_attributes(&self) -> &[SchemaAttributeType]

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, 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.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .schema_attributes.is_none().

source

pub fn auto_verified_attributes(&self) -> &[VerifiedAttributeType]

The attributes that are auto-verified in a user pool.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .auto_verified_attributes.is_none().

source

pub fn alias_attributes(&self) -> &[AliasAttributeType]

The attributes that are aliased in a user pool.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .alias_attributes.is_none().

source

pub fn username_attributes(&self) -> &[UsernameAttributeType]

Specifies whether a user can use an email address or phone number as a username when they sign up.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .username_attributes.is_none().

source

pub fn sms_verification_message(&self) -> Option<&str>

This parameter is no longer used. See VerificationMessageTemplateType.

source

pub fn email_verification_message(&self) -> Option<&str>

This parameter is no longer used. See VerificationMessageTemplateType.

source

pub fn email_verification_subject(&self) -> Option<&str>

This parameter is no longer used. See VerificationMessageTemplateType.

source

pub fn verification_message_template( &self ) -> Option<&VerificationMessageTemplateType>

The template for verification messages.

source

pub fn sms_authentication_message(&self) -> Option<&str>

The contents of the SMS authentication message.

source

pub fn user_attribute_update_settings( &self ) -> Option<&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.

source

pub fn mfa_configuration(&self) -> Option<&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.

source

pub fn device_configuration(&self) -> Option<&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.

source

pub fn estimated_number_of_users(&self) -> i32

A number estimating the size of the user pool.

source

pub fn email_configuration(&self) -> Option<&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.

source

pub fn sms_configuration(&self) -> Option<&SmsConfigurationType>

The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through 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.

source

pub fn user_pool_tags(&self) -> Option<&HashMap<String, String>>

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.

source

pub fn sms_configuration_failure(&self) -> Option<&str>

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.

source

pub fn email_configuration_failure(&self) -> Option<&str>

Deprecated. Review error codes from API requests with EventSource:cognito-idp.amazonaws.com in CloudTrail for information about problems with user pool email configuration.

source

pub fn domain(&self) -> Option<&str>

The domain prefix, if the user pool has a domain associated with it.

source

pub fn custom_domain(&self) -> Option<&str>

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.

source

pub fn admin_create_user_config(&self) -> Option<&AdminCreateUserConfigType>

The configuration for AdminCreateUser requests.

source

pub fn user_pool_add_ons(&self) -> Option<&UserPoolAddOnsType>

User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to AUDIT. To configure automatic security responses to risky traffic to your user pool, set to ENFORCED.

For more information, see Adding advanced security to a user pool.

source

pub fn username_configuration(&self) -> Option<&UsernameConfigurationType>

Case sensitivity of the username input for the selected sign-in option. For example, when case sensitivity is set to False, users can sign in using either "username" or "Username". This configuration is immutable once it has been set. For more information, see UsernameConfigurationType.

source

pub fn arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) for the user pool.

source

pub fn account_recovery_setting(&self) -> Option<&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.

source§

impl UserPoolType

source

pub fn builder() -> UserPoolTypeBuilder

Creates a new builder-style object to manufacture UserPoolType.

Trait Implementations§

source§

impl Clone for UserPoolType

source§

fn clone(&self) -> UserPoolType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UserPoolType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for UserPoolType

source§

fn eq(&self, other: &UserPoolType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for UserPoolType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more