@return [String] Returns the MFA device’s serial number
@return [User] Returns the MFA device’s user.
@param [User] user The user the MFA device is associated with. @param [String] #serial_number The MFA device’s unique serial number.
# File lib/aws/iam/mfa_device.rb, line 22 def initialize user, serial_number, options = {} @user = user @serial_number = serial_number super end
Deactivates the MFA device and removes it from association with the user for which it was originally enabled. You must call {AWS::IAM::MFADeviceCollection#enable} to enable the device again.
@return [nil]
# File lib/aws/iam/mfa_device.rb, line 39 def deactivate client.deactivate_mfa_device({ :user_name => user.name, :serial_number => serial_number, }) nil end