Skip to content

IAM  >  Operations  >  delete_virtual_mfa_device

delete_virtual_mfa_device

Operation

delete_virtual_mfa_device async

delete_virtual_mfa_device(input: DeleteVirtualMFADeviceInput, plugins: list[Plugin] | None = None) -> DeleteVirtualMFADeviceOutput

Deletes a virtual MFA device.

Note

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

Parameters:

Name Type Description Default
input DeleteVirtualMFADeviceInput

An instance of DeleteVirtualMFADeviceInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteVirtualMFADeviceOutput

An instance of DeleteVirtualMFADeviceOutput.

Input

DeleteVirtualMFADeviceInput dataclass

Bases: _SerdeShape

Dataclass for DeleteVirtualMFADeviceInput structure.

Attributes

serial_number class-attribute instance-attribute
serial_number: str | None = ...

The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the same as the ARN.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@:/-

Output

DeleteVirtualMFADeviceOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteVirtualMFADeviceOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.