Sets the user pool multi-factor authentication (MFA) and passkey configuration.
See https://www.paws-r-sdk.com/docs/cognitoidentityprovider_set_user_pool_mfa_config/ for full documentation.
cognitoidentityprovider_set_user_pool_mfa_config(
UserPoolId,
SmsMfaConfiguration = NULL,
SoftwareTokenMfaConfiguration = NULL,
EmailMfaConfiguration = NULL,
MfaConfiguration = NULL,
WebAuthnConfiguration = NULL
)
[required] The user pool ID.
Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.
Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.
Configures user pool email messages for MFA. Sets the subject and body of the email message template for MFA messages. To activate this setting, advanced security features must be active in your user pool.
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.
The configuration of your user pool for passkey, or webauthN, authentication and registration. You can set this configuration independent of the MFA configuration options in this operation.