class AWS::IAM::MFADevice
Attributes
serial_number[R]
@return [String] Returns the MFA device's serial number
user[R]
@return [User] Returns the MFA device's user.
Public Class Methods
new(user, serial_number, options = {})
click to toggle source
@param [User] user The user the MFA device is associated with. @param [String] serial_number
The MFA device's unique serial number.
Calls superclass method
AWS::Core::Model::new
# File lib/aws/iam/mfa_device.rb, line 22 def initialize user, serial_number, options = {} @user = user @serial_number = serial_number super end
Public Instance Methods
deactivate()
click to toggle source
Deactivates the MFA device and removes it from association with the user for which it was originally enabled. You must call {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
Also aliased as: delete