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.