Learn R Programming

paws.security.identity (version 0.1.0)

cognitoidentityprovider_admin_set_user_mfa_preference: Sets the user's multi-factor authentication (MFA) preference

Description

Sets the user's multi-factor authentication (MFA) preference.

Usage

cognitoidentityprovider_admin_set_user_mfa_preference(SMSMfaSettings,
  SoftwareTokenMfaSettings, Username, UserPoolId)

Arguments

SMSMfaSettings

The SMS text message MFA settings.

SoftwareTokenMfaSettings

The time-based one-time password software token MFA settings.

Username

[required] The user pool username or alias.

UserPoolId

[required] The user pool ID.

Request syntax

svc$admin_set_user_mfa_preference(
  SMSMfaSettings = list(
    Enabled = TRUE|FALSE,
    PreferredMfa = TRUE|FALSE
  ),
  SoftwareTokenMfaSettings = list(
    Enabled = TRUE|FALSE,
    PreferredMfa = TRUE|FALSE
  ),
  Username = "string",
  UserPoolId = "string"
)