libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Description

Set the user's multi-factor authentication (MFA) method preference, including which MFA factors are enabled and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are enabled. If multiple options are enabled and no preference is set, a challenge to choose an MFA option will be returned during sign in. If an MFA type is enabled 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, disable MFA for users and turn on Adaptive Authentication for the user pool.

Synopsis

Creating a Request

data SetUserMFAPreference Source #

See: newSetUserMFAPreference smart constructor.

Constructors

SetUserMFAPreference' 

Fields

Instances

Instances details
Eq SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Show SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Generic SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Associated Types

type Rep SetUserMFAPreference :: Type -> Type #

NFData SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Methods

rnf :: SetUserMFAPreference -> () #

Hashable SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

ToJSON SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

AWSRequest SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Associated Types

type AWSResponse SetUserMFAPreference #

ToHeaders SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

ToPath SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

ToQuery SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

type Rep SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

type Rep SetUserMFAPreference = D1 ('MetaData "SetUserMFAPreference" "Amazonka.CognitoIdentityProvider.SetUserMFAPreference" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "SetUserMFAPreference'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sMSMfaSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SMSMfaSettingsType)) :*: (S1 ('MetaSel ('Just "softwareTokenMfaSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SoftwareTokenMfaSettingsType)) :*: S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse SetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

newSetUserMFAPreference Source #

Create a value of SetUserMFAPreference 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:sMSMfaSettings:SetUserMFAPreference', setUserMFAPreference_sMSMfaSettings - The SMS text message multi-factor authentication (MFA) settings.

$sel:softwareTokenMfaSettings:SetUserMFAPreference', setUserMFAPreference_softwareTokenMfaSettings - The time-based one-time password software token MFA settings.

$sel:accessToken:SetUserMFAPreference', setUserMFAPreference_accessToken - The access token for the user.

Request Lenses

setUserMFAPreference_sMSMfaSettings :: Lens' SetUserMFAPreference (Maybe SMSMfaSettingsType) Source #

The SMS text message multi-factor authentication (MFA) settings.

Destructuring the Response

data SetUserMFAPreferenceResponse Source #

See: newSetUserMFAPreferenceResponse smart constructor.

Constructors

SetUserMFAPreferenceResponse' 

Fields

Instances

Instances details
Eq SetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Read SetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Show SetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Generic SetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

Associated Types

type Rep SetUserMFAPreferenceResponse :: Type -> Type #

NFData SetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

type Rep SetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.SetUserMFAPreference

type Rep SetUserMFAPreferenceResponse = D1 ('MetaData "SetUserMFAPreferenceResponse" "Amazonka.CognitoIdentityProvider.SetUserMFAPreference" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "SetUserMFAPreferenceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSetUserMFAPreferenceResponse Source #

Create a value of SetUserMFAPreferenceResponse 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:httpStatus:SetUserMFAPreferenceResponse', setUserMFAPreferenceResponse_httpStatus - The response's http status code.

Response Lenses