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 |
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
- data SetUserMFAPreference = SetUserMFAPreference' {}
- newSetUserMFAPreference :: Text -> SetUserMFAPreference
- setUserMFAPreference_sMSMfaSettings :: Lens' SetUserMFAPreference (Maybe SMSMfaSettingsType)
- setUserMFAPreference_softwareTokenMfaSettings :: Lens' SetUserMFAPreference (Maybe SoftwareTokenMfaSettingsType)
- setUserMFAPreference_accessToken :: Lens' SetUserMFAPreference Text
- data SetUserMFAPreferenceResponse = SetUserMFAPreferenceResponse' {
- httpStatus :: Int
- newSetUserMFAPreferenceResponse :: Int -> SetUserMFAPreferenceResponse
- setUserMFAPreferenceResponse_httpStatus :: Lens' SetUserMFAPreferenceResponse Int
Creating a Request
data SetUserMFAPreference Source #
See: newSetUserMFAPreference
smart constructor.
SetUserMFAPreference' | |
|
Instances
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.
setUserMFAPreference_softwareTokenMfaSettings :: Lens' SetUserMFAPreference (Maybe SoftwareTokenMfaSettingsType) Source #
The time-based one-time password software token MFA settings.
setUserMFAPreference_accessToken :: Lens' SetUserMFAPreference Text Source #
The access token for the user.
Destructuring the Response
data SetUserMFAPreferenceResponse Source #
See: newSetUserMFAPreferenceResponse
smart constructor.
SetUserMFAPreferenceResponse' | |
|
Instances
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
setUserMFAPreferenceResponse_httpStatus :: Lens' SetUserMFAPreferenceResponse Int Source #
The response's http status code.