Skip to content

delete_virtual_mfa_device

Operation

delete_virtual_mfa_device

delete_virtual_mfa_device(request: DeleteVirtualMFADeviceInput | DeleteVirtualMFADeviceInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteVirtualMFADeviceInputDict]) -> 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
request DeleteVirtualMFADeviceInput | DeleteVirtualMFADeviceInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteVirtualMFADeviceInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteVirtualMFADeviceOutput

An instance of DeleteVirtualMFADeviceOutput.

delete_virtual_mfa_device async

delete_virtual_mfa_device(request: DeleteVirtualMFADeviceInput | DeleteVirtualMFADeviceInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteVirtualMFADeviceInputDict]) -> 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
request DeleteVirtualMFADeviceInput | DeleteVirtualMFADeviceInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteVirtualMFADeviceInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteVirtualMFADeviceOutput

An instance of DeleteVirtualMFADeviceOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteVirtualMFADeviceInputDict

Bases: TypedDict

Dictionary form of DeleteVirtualMFADeviceInput.

Attributes

serial_number instance-attribute
serial_number: Required[str]

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: =,.@:/-

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.