Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data AdminSetUserMFAPreference = AdminSetUserMFAPreference' {}
- newAdminSetUserMFAPreference :: Text -> Text -> AdminSetUserMFAPreference
- adminSetUserMFAPreference_sMSMfaSettings :: Lens' AdminSetUserMFAPreference (Maybe SMSMfaSettingsType)
- adminSetUserMFAPreference_softwareTokenMfaSettings :: Lens' AdminSetUserMFAPreference (Maybe SoftwareTokenMfaSettingsType)
- adminSetUserMFAPreference_username :: Lens' AdminSetUserMFAPreference Text
- adminSetUserMFAPreference_userPoolId :: Lens' AdminSetUserMFAPreference Text
- data AdminSetUserMFAPreferenceResponse = AdminSetUserMFAPreferenceResponse' {
- httpStatus :: Int
- newAdminSetUserMFAPreferenceResponse :: Int -> AdminSetUserMFAPreferenceResponse
- adminSetUserMFAPreferenceResponse_httpStatus :: Lens' AdminSetUserMFAPreferenceResponse Int
Creating a Request
data AdminSetUserMFAPreference Source #
See: newAdminSetUserMFAPreference
smart constructor.
AdminSetUserMFAPreference' | |
|
Instances
newAdminSetUserMFAPreference Source #
:: Text | |
-> Text | |
-> AdminSetUserMFAPreference |
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
adminSetUserMFAPreference_sMSMfaSettings :: Lens' AdminSetUserMFAPreference (Maybe SMSMfaSettingsType) Source #
The SMS text message MFA settings.
adminSetUserMFAPreference_softwareTokenMfaSettings :: Lens' AdminSetUserMFAPreference (Maybe SoftwareTokenMfaSettingsType) Source #
The time-based one-time password software token MFA settings.
adminSetUserMFAPreference_username :: Lens' AdminSetUserMFAPreference Text Source #
The user pool username or alias.
adminSetUserMFAPreference_userPoolId :: Lens' AdminSetUserMFAPreference Text Source #
The user pool ID.
Destructuring the Response
data AdminSetUserMFAPreferenceResponse Source #
See: newAdminSetUserMFAPreferenceResponse
smart constructor.
AdminSetUserMFAPreferenceResponse' | |
|
Instances
Eq AdminSetUserMFAPreferenceResponse Source # | |
Read AdminSetUserMFAPreferenceResponse Source # | |
Show AdminSetUserMFAPreferenceResponse Source # | |
Generic AdminSetUserMFAPreferenceResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.AdminSetUserMFAPreference type Rep AdminSetUserMFAPreferenceResponse :: Type -> Type # | |
NFData AdminSetUserMFAPreferenceResponse Source # | |
type Rep AdminSetUserMFAPreferenceResponse Source # | |
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
adminSetUserMFAPreferenceResponse_httpStatus :: Lens' AdminSetUserMFAPreferenceResponse Int Source #
The response's http status code.