#[non_exhaustive]pub struct SoftwareTokenMfaSettingsType {
pub enabled: bool,
pub preferred_mfa: bool,
}Expand description
The type used for enabling software token MFA at the user level. 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 want 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 software token 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 software token MFA is the preferred MFA method.
Implementations§
source§impl SoftwareTokenMfaSettingsType
impl SoftwareTokenMfaSettingsType
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Specifies whether software token 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 software token MFA is the preferred MFA method.
source§impl SoftwareTokenMfaSettingsType
impl SoftwareTokenMfaSettingsType
sourcepub fn builder() -> SoftwareTokenMfaSettingsTypeBuilder
pub fn builder() -> SoftwareTokenMfaSettingsTypeBuilder
Creates a new builder-style object to manufacture SoftwareTokenMfaSettingsType.
Trait Implementations§
source§impl Clone for SoftwareTokenMfaSettingsType
impl Clone for SoftwareTokenMfaSettingsType
source§fn clone(&self) -> SoftwareTokenMfaSettingsType
fn clone(&self) -> SoftwareTokenMfaSettingsType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SoftwareTokenMfaSettingsType
impl Debug for SoftwareTokenMfaSettingsType
source§impl PartialEq for SoftwareTokenMfaSettingsType
impl PartialEq for SoftwareTokenMfaSettingsType
source§fn eq(&self, other: &SoftwareTokenMfaSettingsType) -> bool
fn eq(&self, other: &SoftwareTokenMfaSettingsType) -> bool
self and other values to be equal, and is used
by ==.