Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Sets the user pool multi-factor authentication (MFA) configuration.
This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.
If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In <https:docs.aws.amazon.comsnslatestdgsns-sms-sandbox.html sandbox mode> , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.
Synopsis
- data SetUserPoolMfaConfig = SetUserPoolMfaConfig' {}
- newSetUserPoolMfaConfig :: Text -> SetUserPoolMfaConfig
- setUserPoolMfaConfig_mfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe UserPoolMfaType)
- setUserPoolMfaConfig_smsMfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe SmsMfaConfigType)
- setUserPoolMfaConfig_softwareTokenMfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe SoftwareTokenMfaConfigType)
- setUserPoolMfaConfig_userPoolId :: Lens' SetUserPoolMfaConfig Text
- data SetUserPoolMfaConfigResponse = SetUserPoolMfaConfigResponse' {}
- newSetUserPoolMfaConfigResponse :: Int -> SetUserPoolMfaConfigResponse
- setUserPoolMfaConfigResponse_mfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe UserPoolMfaType)
- setUserPoolMfaConfigResponse_smsMfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe SmsMfaConfigType)
- setUserPoolMfaConfigResponse_softwareTokenMfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe SoftwareTokenMfaConfigType)
- setUserPoolMfaConfigResponse_httpStatus :: Lens' SetUserPoolMfaConfigResponse Int
Creating a Request
data SetUserPoolMfaConfig Source #
See: newSetUserPoolMfaConfig
smart constructor.
SetUserPoolMfaConfig' | |
|
Instances
newSetUserPoolMfaConfig Source #
Create a value of SetUserPoolMfaConfig
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:
SetUserPoolMfaConfig
, setUserPoolMfaConfig_mfaConfiguration
- The MFA configuration. If you set the MfaConfiguration value to ‘ON’,
only users who have set up an MFA factor can sign in. To learn more, see
Adding Multi-Factor Authentication (MFA) to a user pool.
Valid values include:
OFF
MFA won't be used for any users.ON
MFA is required for all users to sign in.OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.
SetUserPoolMfaConfig
, setUserPoolMfaConfig_smsMfaConfiguration
- The SMS text message MFA configuration.
SetUserPoolMfaConfig
, setUserPoolMfaConfig_softwareTokenMfaConfiguration
- The software token MFA configuration.
SetUserPoolMfaConfig
, setUserPoolMfaConfig_userPoolId
- The user pool ID.
Request Lenses
setUserPoolMfaConfig_mfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe UserPoolMfaType) Source #
The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:
OFF
MFA won't be used for any users.ON
MFA is required for all users to sign in.OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.
setUserPoolMfaConfig_smsMfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe SmsMfaConfigType) Source #
The SMS text message MFA configuration.
setUserPoolMfaConfig_softwareTokenMfaConfiguration :: Lens' SetUserPoolMfaConfig (Maybe SoftwareTokenMfaConfigType) Source #
The software token MFA configuration.
setUserPoolMfaConfig_userPoolId :: Lens' SetUserPoolMfaConfig Text Source #
The user pool ID.
Destructuring the Response
data SetUserPoolMfaConfigResponse Source #
See: newSetUserPoolMfaConfigResponse
smart constructor.
SetUserPoolMfaConfigResponse' | |
|
Instances
newSetUserPoolMfaConfigResponse Source #
Create a value of SetUserPoolMfaConfigResponse
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:
SetUserPoolMfaConfig
, setUserPoolMfaConfigResponse_mfaConfiguration
- The MFA configuration. Valid values include:
OFF
MFA won't be used for any users.ON
MFA is required for all users to sign in.OPTIONAL
MFA will be required only for individual users who have an MFA factor enabled.
SetUserPoolMfaConfig
, setUserPoolMfaConfigResponse_smsMfaConfiguration
- The SMS text message MFA configuration.
SetUserPoolMfaConfig
, setUserPoolMfaConfigResponse_softwareTokenMfaConfiguration
- The software token MFA configuration.
$sel:httpStatus:SetUserPoolMfaConfigResponse'
, setUserPoolMfaConfigResponse_httpStatus
- The response's http status code.
Response Lenses
setUserPoolMfaConfigResponse_mfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe UserPoolMfaType) Source #
The MFA configuration. Valid values include:
OFF
MFA won't be used for any users.ON
MFA is required for all users to sign in.OPTIONAL
MFA will be required only for individual users who have an MFA factor enabled.
setUserPoolMfaConfigResponse_smsMfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe SmsMfaConfigType) Source #
The SMS text message MFA configuration.
setUserPoolMfaConfigResponse_softwareTokenMfaConfiguration :: Lens' SetUserPoolMfaConfigResponse (Maybe SoftwareTokenMfaConfigType) Source #
The software token MFA configuration.
setUserPoolMfaConfigResponse_httpStatus :: Lens' SetUserPoolMfaConfigResponse Int Source #
The response's http status code.