lib/iam/right_iam_mfa_devices.rb
# Enables the specified MFA device and associates it with the specified User name.
# Once enabled, the MFA device is required for every subsequent login by the User name associated with the device.
#
#  iam.enable_mfa_device('kd1', 'x12345', '12345', '67890') #=> true
#
Enables the specified MFA device and associates it with the specified User name.
Once enabled, the MFA device is required for every subsequent login by the User name associated with the device.


Enables the specified MFA device and associates it with the specified User name . Once enabled the MFA device is required for every subsequent login by the User name associated with the device .
def enable_mfa_device(user_name, serial_number, auth_code1, auth_code2)
      request_hash = { 'UserName'            => user_name,
                       'SerialNumber'        => serial_number,
                       'AuthenticationCode1' => auth_code1,
                       'AuthenticationCode2' => auth_code2 }
      link = generate_request("EnableMFADevice", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    end
def enable_mfa_device ( user_name , serial_number , auth_code1 , auth_code2 ) request_hash = { 'UserName' => user_name , 'SerialNumber' => serial_number , 'AuthenticationCode1' => auth_code1 , 'AuthenticationCode2' => auth_code2 } link = generate_request ( "EnableMFADevice" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) end
Enables the specified MFA device and associates it with the specified User name.
Enables the specified MFA device and associates it with the specified User name .
user_name
<not_specific>
serial_number
<not_specific>
auth_code1
<not_specific>
auth_code2
<not_specific>