resync_mfa_device¶
Operation¶
resync_mfa_device
¶
resync_mfa_device(request: ResyncMFADeviceInput | ResyncMFADeviceInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ResyncMFADeviceInputDict]) -> 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 |
|---|---|---|---|
request
|
ResyncMFADeviceInput | ResyncMFADeviceInputDict | 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[ResyncMFADeviceInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
ResyncMFADeviceOutput
|
An instance of |
resync_mfa_device
async
¶
resync_mfa_device(request: ResyncMFADeviceInput | ResyncMFADeviceInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ResyncMFADeviceInputDict]) -> 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 |
|---|---|---|---|
request
|
ResyncMFADeviceInput | ResyncMFADeviceInputDict | 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[ResyncMFADeviceInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
ResyncMFADeviceOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
ResyncMFADeviceInputDict
¶
Bases: TypedDict
Dictionary form of ResyncMFADeviceInput.
Attributes¶
authentication_code1
instance-attribute
¶
An authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
authentication_code2
instance-attribute
¶
A subsequent authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
serial_number
instance-attribute
¶
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
instance-attribute
¶
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: _+=,.@-
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.