amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

Description

 
Synopsis

Documentation

data SMSMfaSettingsType Source #

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.

See: newSMSMfaSettingsType smart constructor.

Constructors

SMSMfaSettingsType' 

Fields

  • enabled :: Maybe 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.

  • preferredMfa :: Maybe Bool

    Specifies whether SMS is the preferred MFA method.

Instances

Instances details
ToJSON SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

Generic SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

Associated Types

type Rep SMSMfaSettingsType :: Type -> Type #

Read SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

Show SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

NFData SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

Methods

rnf :: SMSMfaSettingsType -> () #

Eq SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

Hashable SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

type Rep SMSMfaSettingsType Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType

type Rep SMSMfaSettingsType = D1 ('MetaData "SMSMfaSettingsType" "Amazonka.CognitoIdentityProvider.Types.SMSMfaSettingsType" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "SMSMfaSettingsType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "preferredMfa") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

newSMSMfaSettingsType :: SMSMfaSettingsType Source #

Create a value of SMSMfaSettingsType with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:enabled:SMSMfaSettingsType', sMSMfaSettingsType_enabled - 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.

$sel:preferredMfa:SMSMfaSettingsType', sMSMfaSettingsType_preferredMfa - Specifies whether SMS is the preferred MFA method.

sMSMfaSettingsType_enabled :: Lens' SMSMfaSettingsType (Maybe Bool) Source #

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.

sMSMfaSettingsType_preferredMfa :: Lens' SMSMfaSettingsType (Maybe Bool) Source #

Specifies whether SMS is the preferred MFA method.