resync_mfa_device¶
Operation¶
resync_mfa_device
async
¶
resync_mfa_device(input: ResyncMFADeviceInput, plugins: list[Plugin] | None = None) -> ResyncMFADeviceOutput
Synchronizes the specified MFA device with its IAM resource object on the Amazon Web Services servers.
For more information about creating and working with virtual MFA devices, see Using a virtual MFA device in the IAM User Guide.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ResyncMFADeviceInput
|
An instance of |
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 |
|---|---|
ResyncMFADeviceOutput
|
An instance of |
Input¶
ResyncMFADeviceInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ResyncMFADeviceInput structure.
Attributes¶
authentication_code1
class-attribute
instance-attribute
¶
authentication_code1: str | None = ...
An authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
authentication_code2
class-attribute
instance-attribute
¶
authentication_code2: str | None = ...
A subsequent authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
serial_number
class-attribute
instance-attribute
¶
serial_number: str | None = ...
Serial number that uniquely identifies the MFA device.
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: _+=,.@-
user_name
class-attribute
instance-attribute
¶
user_name: str | None = ...
The name of the user whose MFA device you want to resynchronize.
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¶
ResyncMFADeviceOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ResyncMFADeviceOutput structure.