#[non_exhaustive]pub struct DeviceConfigurationTypeBuilder { /* private fields */ }Expand description
A builder for DeviceConfigurationType.
Implementations§
source§impl DeviceConfigurationTypeBuilder
impl DeviceConfigurationTypeBuilder
sourcepub fn challenge_required_on_new_device(self, input: bool) -> Self
pub fn challenge_required_on_new_device(self, input: bool) -> Self
When true, a remembered device can sign in with device authentication instead of SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Whether or not ChallengeRequiredOnNewDevice is true, users who sign in with devices that have not been confirmed or remembered must still provide a second factor in a user pool that requires MFA.
sourcepub fn set_challenge_required_on_new_device(self, input: Option<bool>) -> Self
pub fn set_challenge_required_on_new_device(self, input: Option<bool>) -> Self
When true, a remembered device can sign in with device authentication instead of SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Whether or not ChallengeRequiredOnNewDevice is true, users who sign in with devices that have not been confirmed or remembered must still provide a second factor in a user pool that requires MFA.
sourcepub fn get_challenge_required_on_new_device(&self) -> &Option<bool>
pub fn get_challenge_required_on_new_device(&self) -> &Option<bool>
When true, a remembered device can sign in with device authentication instead of SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Whether or not ChallengeRequiredOnNewDevice is true, users who sign in with devices that have not been confirmed or remembered must still provide a second factor in a user pool that requires MFA.
sourcepub fn device_only_remembered_on_user_prompt(self, input: bool) -> Self
pub fn device_only_remembered_on_user_prompt(self, input: bool) -> Self
When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a ConfirmDevice API request. In your app, create a prompt for your user to choose whether they want to remember their device. Return the user's choice in an UpdateDeviceStatus API request.
When DeviceOnlyRememberedOnUserPrompt is false, Amazon Cognito immediately remembers devices that you register in a ConfirmDevice API request.
sourcepub fn set_device_only_remembered_on_user_prompt(
self,
input: Option<bool>
) -> Self
pub fn set_device_only_remembered_on_user_prompt( self, input: Option<bool> ) -> Self
When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a ConfirmDevice API request. In your app, create a prompt for your user to choose whether they want to remember their device. Return the user's choice in an UpdateDeviceStatus API request.
When DeviceOnlyRememberedOnUserPrompt is false, Amazon Cognito immediately remembers devices that you register in a ConfirmDevice API request.
sourcepub fn get_device_only_remembered_on_user_prompt(&self) -> &Option<bool>
pub fn get_device_only_remembered_on_user_prompt(&self) -> &Option<bool>
When true, Amazon Cognito doesn't automatically remember a user's device when your app sends a ConfirmDevice API request. In your app, create a prompt for your user to choose whether they want to remember their device. Return the user's choice in an UpdateDeviceStatus API request.
When DeviceOnlyRememberedOnUserPrompt is false, Amazon Cognito immediately remembers devices that you register in a ConfirmDevice API request.
sourcepub fn build(self) -> DeviceConfigurationType
pub fn build(self) -> DeviceConfigurationType
Consumes the builder and constructs a DeviceConfigurationType.
Trait Implementations§
source§impl Clone for DeviceConfigurationTypeBuilder
impl Clone for DeviceConfigurationTypeBuilder
source§fn clone(&self) -> DeviceConfigurationTypeBuilder
fn clone(&self) -> DeviceConfigurationTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DeviceConfigurationTypeBuilder
impl Default for DeviceConfigurationTypeBuilder
source§fn default() -> DeviceConfigurationTypeBuilder
fn default() -> DeviceConfigurationTypeBuilder
source§impl PartialEq for DeviceConfigurationTypeBuilder
impl PartialEq for DeviceConfigurationTypeBuilder
source§fn eq(&self, other: &DeviceConfigurationTypeBuilder) -> bool
fn eq(&self, other: &DeviceConfigurationTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.