resync_mfa_device
async
¶
resync_mfa_device(
user_name: existingUserNameType,
serial_number: serialNumberType,
authentication_code1: authenticationCodeType,
authentication_code2: authenticationCodeType,
*,
config_overrides: Optional[AsyncIAMClientConfig] = None,
) -> None
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:
-
user_name(existingUserNameType) –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: _+=,.@-
-
serial_number(serialNumberType) –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: _+=,.@-
-
authentication_code1(authenticationCodeType) –An authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
-
authentication_code2(authenticationCodeType) –A subsequent authentication code emitted by the device.
The format for this parameter is a sequence of six digits.
Raises:
-
ConcurrentModificationException–The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
-
InvalidAuthenticationCodeException–The request was rejected because the authentication code was not recognized. The error message describes the specific error.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
NoSuchEntityException–The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
-
ServiceFailureException–The request processing has failed because of an unknown error, exception or failure.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iam/_services/async_iam.py
10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 | |