AWS Identity and Access Management
CLI Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

iam-userdeactivatemfadevice

Description

Deactivates the specified MFA device associated with the specified user.

Syntax

iam-userdeactivatemfadevice -u USERNAME -s SERIAL

Options

Name Description Required

-u USERNAME

Name of the user you want to list the MFA device for.

Type: String

Default: None

Yes

-s SERIAL

The serial number for the MFA device to deactivate.

Type: String

Default: None

Yes

Output

If the command is successful, the output is empty.

Example

The following example deactivates the MFA device with a serial number GATTxxxx32X for a user called John.

PROMPT> iam-userdeactivatemfadevice -u John -s GATTxxxx32X