Struct rusoto_iam::PasswordPolicy
source · [−]pub struct PasswordPolicy {
pub allow_users_to_change_password: Option<bool>,
pub expire_passwords: Option<bool>,
pub hard_expiry: Option<bool>,
pub max_password_age: Option<i64>,
pub minimum_password_length: Option<i64>,
pub password_reuse_prevention: Option<i64>,
pub require_lowercase_characters: Option<bool>,
pub require_numbers: Option<bool>,
pub require_symbols: Option<bool>,
pub require_uppercase_characters: Option<bool>,
}
Expand description
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy operation.
Fields
allow_users_to_change_password: Option<bool>
Specifies whether IAM users are allowed to change their own password.
expire_passwords: Option<bool>
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge
contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
hard_expiry: Option<bool>
Specifies whether IAM users are prevented from setting a new password after their password has expired.
max_password_age: Option<i64>
The number of days that an IAM user password is valid.
minimum_password_length: Option<i64>
Minimum length to require for IAM user passwords.
password_reuse_prevention: Option<i64>
Specifies the number of previous passwords that IAM users are prevented from reusing.
require_lowercase_characters: Option<bool>
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
require_numbers: Option<bool>
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
require_symbols: Option<bool>
Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
require_uppercase_characters: Option<bool>
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
Trait Implementations
sourceimpl Clone for PasswordPolicy
impl Clone for PasswordPolicy
sourcefn clone(&self) -> PasswordPolicy
fn clone(&self) -> PasswordPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PasswordPolicy
impl Debug for PasswordPolicy
sourceimpl Default for PasswordPolicy
impl Default for PasswordPolicy
sourcefn default() -> PasswordPolicy
fn default() -> PasswordPolicy
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PasswordPolicy> for PasswordPolicy
impl PartialEq<PasswordPolicy> for PasswordPolicy
sourcefn eq(&self, other: &PasswordPolicy) -> bool
fn eq(&self, other: &PasswordPolicy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PasswordPolicy) -> bool
fn ne(&self, other: &PasswordPolicy) -> bool
This method tests for !=
.
impl StructuralPartialEq for PasswordPolicy
Auto Trait Implementations
impl RefUnwindSafe for PasswordPolicy
impl Send for PasswordPolicy
impl Sync for PasswordPolicy
impl Unpin for PasswordPolicy
impl UnwindSafe for PasswordPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more