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.AdminSetUserMFAPreference

Description

Sets the user's multi-factor authentication (MFA) preference, including which MFA options 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.

Synopsis

Creating a Request

data AdminSetUserMFAPreference Source #

See: newAdminSetUserMFAPreference smart constructor.

Constructors

AdminSetUserMFAPreference' 

Fields

Instances

Instances details
Eq AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Show AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Generic AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Associated Types

type Rep AdminSetUserMFAPreference :: Type -> Type #

NFData AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Hashable AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

ToJSON AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

AWSRequest AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

ToHeaders AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

ToPath AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

ToQuery AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

type Rep AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

type Rep AdminSetUserMFAPreference = D1 ('MetaData "AdminSetUserMFAPreference" "Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminSetUserMFAPreference'" '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 "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AdminSetUserMFAPreference Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

newAdminSetUserMFAPreference Source #

Create a value of AdminSetUserMFAPreference 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:AdminSetUserMFAPreference', adminSetUserMFAPreference_sMSMfaSettings - The SMS text message MFA settings.

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

$sel:username:AdminSetUserMFAPreference', adminSetUserMFAPreference_username - The user pool username or alias.

$sel:userPoolId:AdminSetUserMFAPreference', adminSetUserMFAPreference_userPoolId - The user pool ID.

Request Lenses

Destructuring the Response

data AdminSetUserMFAPreferenceResponse Source #

See: newAdminSetUserMFAPreferenceResponse smart constructor.

Constructors

AdminSetUserMFAPreferenceResponse' 

Fields

Instances

Instances details
Eq AdminSetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Read AdminSetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Show AdminSetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Generic AdminSetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

Associated Types

type Rep AdminSetUserMFAPreferenceResponse :: Type -> Type #

NFData AdminSetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

type Rep AdminSetUserMFAPreferenceResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference

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

newAdminSetUserMFAPreferenceResponse Source #

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

Response Lenses