delete_virtual_mfa_device ( $serial_number, $opt )

Deletes a virtual MFA device.

You must deactivate a user’s virtual MFA device before you can delete it. For information about deactivating MFA devices, see DeactivateMFADevice.

Access

public

Parameters

Parameter

Type

Required

Description

$serial_number

string

Required

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN. [Constraints: The value must be between 9 and 256 characters, and must match the following regular expression pattern: [\w+=/:,.@-]*]

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Source

Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub

public function delete_virtual_mfa_device($serial_number, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['SerialNumber'] = $serial_number;
    
    return $this->authenticate('DeleteVirtualMFADevice', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback