#[non_exhaustive]pub struct PasswordPolicyTypeBuilder { /* private fields */ }
Expand description
A builder for PasswordPolicyType
.
Implementations§
source§impl PasswordPolicyTypeBuilder
impl PasswordPolicyTypeBuilder
sourcepub fn minimum_length(self, input: i32) -> Self
pub fn minimum_length(self, input: i32) -> Self
The minimum length of the password in the policy that you have set. This value can't be less than 6.
sourcepub fn set_minimum_length(self, input: Option<i32>) -> Self
pub fn set_minimum_length(self, input: Option<i32>) -> Self
The minimum length of the password in the policy that you have set. This value can't be less than 6.
sourcepub fn get_minimum_length(&self) -> &Option<i32>
pub fn get_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, input: bool) -> Self
pub fn require_uppercase(self, input: bool) -> Self
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 set_require_uppercase(self, input: Option<bool>) -> Self
pub fn set_require_uppercase(self, input: Option<bool>) -> Self
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 get_require_uppercase(&self) -> &Option<bool>
pub fn get_require_uppercase(&self) -> &Option<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, input: bool) -> Self
pub fn require_lowercase(self, input: bool) -> Self
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 set_require_lowercase(self, input: Option<bool>) -> Self
pub fn set_require_lowercase(self, input: Option<bool>) -> Self
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 get_require_lowercase(&self) -> &Option<bool>
pub fn get_require_lowercase(&self) -> &Option<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, input: bool) -> Self
pub fn require_numbers(self, input: bool) -> Self
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 set_require_numbers(self, input: Option<bool>) -> Self
pub fn set_require_numbers(self, input: Option<bool>) -> Self
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 get_require_numbers(&self) -> &Option<bool>
pub fn get_require_numbers(&self) -> &Option<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, input: bool) -> Self
pub fn require_symbols(self, input: bool) -> Self
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 set_require_symbols(self, input: Option<bool>) -> Self
pub fn set_require_symbols(self, input: Option<bool>) -> Self
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 get_require_symbols(&self) -> &Option<bool>
pub fn get_require_symbols(&self) -> &Option<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, input: i32) -> Self
pub fn temporary_password_validity_days(self, input: i32) -> Self
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.
sourcepub fn set_temporary_password_validity_days(self, input: Option<i32>) -> Self
pub fn set_temporary_password_validity_days(self, input: Option<i32>) -> Self
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.
sourcepub fn get_temporary_password_validity_days(&self) -> &Option<i32>
pub fn get_temporary_password_validity_days(&self) -> &Option<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.
sourcepub fn build(self) -> PasswordPolicyType
pub fn build(self) -> PasswordPolicyType
Consumes the builder and constructs a PasswordPolicyType
.
Trait Implementations§
source§impl Clone for PasswordPolicyTypeBuilder
impl Clone for PasswordPolicyTypeBuilder
source§fn clone(&self) -> PasswordPolicyTypeBuilder
fn clone(&self) -> PasswordPolicyTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PasswordPolicyTypeBuilder
impl Debug for PasswordPolicyTypeBuilder
source§impl Default for PasswordPolicyTypeBuilder
impl Default for PasswordPolicyTypeBuilder
source§fn default() -> PasswordPolicyTypeBuilder
fn default() -> PasswordPolicyTypeBuilder
source§impl PartialEq for PasswordPolicyTypeBuilder
impl PartialEq for PasswordPolicyTypeBuilder
source§fn eq(&self, other: &PasswordPolicyTypeBuilder) -> bool
fn eq(&self, other: &PasswordPolicyTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PasswordPolicyTypeBuilder
Auto Trait Implementations§
impl Freeze for PasswordPolicyTypeBuilder
impl RefUnwindSafe for PasswordPolicyTypeBuilder
impl Send for PasswordPolicyTypeBuilder
impl Sync for PasswordPolicyTypeBuilder
impl Unpin for PasswordPolicyTypeBuilder
impl UnwindSafe for PasswordPolicyTypeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more