Skip to content

Deactivate Mfa Device

iam_deactivate_mfa_device R Documentation

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled

Description

Deactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.

For more information about creating and working with virtual MFA devices, see Enabling a virtual multi-factor authentication (MFA) device in the IAM User Guide.

Usage

iam_deactivate_mfa_device(UserName, SerialNumber)

Arguments

UserName

[required] The name of the user whose MFA device you want to deactivate.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

SerialNumber

[required] The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-

Value

An empty list.

Request syntax

svc$deactivate_mfa_device(
  UserName = "string",
  SerialNumber = "string"
)