Interface SMSMfaSettingsType.Builder

    • Method Detail

      • enabled

        SMSMfaSettingsType.Builder enabled​(Boolean enabled)

        Specifies whether SMS message MFA is activated. If an MFA type is activated 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.

        Parameters:
        enabled - Specifies whether SMS message MFA is activated. If an MFA type is activated 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • preferredMfa

        SMSMfaSettingsType.Builder preferredMfa​(Boolean preferredMfa)

        Specifies whether SMS is the preferred MFA method. If true, your user pool prompts the specified user for a code delivered by SMS message after username-password sign-in succeeds.

        Parameters:
        preferredMfa - Specifies whether SMS is the preferred MFA method. If true, your user pool prompts the specified user for a code delivered by SMS message after username-password sign-in succeeds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.