#[non_exhaustive]pub struct PasswordPolicyType {
pub minimum_length: Option<i32>,
pub require_uppercase: bool,
pub require_lowercase: bool,
pub require_numbers: bool,
pub require_symbols: bool,
pub temporary_password_validity_days: i32,
}Expand description
The password policy type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.minimum_length: Option<i32>The minimum length of the password in the policy that you have set. This value can't be less than 6.
require_uppercase: boolIn the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
require_lowercase: boolIn the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
require_numbers: boolIn the password policy that you have set, refers to whether you have required users to use at least one number in their password.
require_symbols: boolIn the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
temporary_password_validity_days: i32The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password. Defaults to 7. If you submit a value of 0, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays to its default value.
When you set TemporaryPasswordValidityDays for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays parameter in that user pool.
Implementations§
source§impl PasswordPolicyType
impl PasswordPolicyType
sourcepub fn minimum_length(&self) -> Option<i32>
pub fn minimum_length(&self) -> Option<i32>
The minimum length of the password in the policy that you have set. This value can't be less than 6.
sourcepub fn require_uppercase(&self) -> bool
pub fn require_uppercase(&self) -> bool
In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
sourcepub fn require_lowercase(&self) -> bool
pub fn require_lowercase(&self) -> bool
In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
sourcepub fn require_numbers(&self) -> bool
pub fn require_numbers(&self) -> bool
In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
sourcepub fn require_symbols(&self) -> bool
pub fn require_symbols(&self) -> bool
In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
sourcepub fn temporary_password_validity_days(&self) -> i32
pub fn temporary_password_validity_days(&self) -> i32
The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password. Defaults to 7. If you submit a value of 0, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays to its default value.
When you set TemporaryPasswordValidityDays for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays parameter in that user pool.
source§impl PasswordPolicyType
impl PasswordPolicyType
sourcepub fn builder() -> PasswordPolicyTypeBuilder
pub fn builder() -> PasswordPolicyTypeBuilder
Creates a new builder-style object to manufacture PasswordPolicyType.
Trait Implementations§
source§impl Clone for PasswordPolicyType
impl Clone for PasswordPolicyType
source§fn clone(&self) -> PasswordPolicyType
fn clone(&self) -> PasswordPolicyType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PasswordPolicyType
impl Debug for PasswordPolicyType
source§impl PartialEq for PasswordPolicyType
impl PartialEq for PasswordPolicyType
source§fn eq(&self, other: &PasswordPolicyType) -> bool
fn eq(&self, other: &PasswordPolicyType) -> bool
self and other values to be equal, and is used
by ==.