#[non_exhaustive]pub struct SmsMfaSettingsType {
pub enabled: bool,
pub preferred_mfa: bool,
}Expand description
The type used for enabling SMS multi-factor authentication (MFA) at the user level. Phone numbers don't need to be verified to be used for SMS MFA. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you would like MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool.
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.enabled: boolSpecifies whether SMS text message MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.
preferred_mfa: boolSpecifies whether SMS is the preferred MFA method.
Implementations§
source§impl SmsMfaSettingsType
impl SmsMfaSettingsType
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Specifies whether SMS text message MFA is activated. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.
sourcepub fn preferred_mfa(&self) -> bool
pub fn preferred_mfa(&self) -> bool
Specifies whether SMS is the preferred MFA method.
source§impl SmsMfaSettingsType
impl SmsMfaSettingsType
sourcepub fn builder() -> SmsMfaSettingsTypeBuilder
pub fn builder() -> SmsMfaSettingsTypeBuilder
Creates a new builder-style object to manufacture SmsMfaSettingsType.
Trait Implementations§
source§impl Clone for SmsMfaSettingsType
impl Clone for SmsMfaSettingsType
source§fn clone(&self) -> SmsMfaSettingsType
fn clone(&self) -> SmsMfaSettingsType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SmsMfaSettingsType
impl Debug for SmsMfaSettingsType
source§impl PartialEq for SmsMfaSettingsType
impl PartialEq for SmsMfaSettingsType
source§fn eq(&self, other: &SmsMfaSettingsType) -> bool
fn eq(&self, other: &SmsMfaSettingsType) -> bool
self and other values to be equal, and is used
by ==.