:doc:`MfaDevice <index>` / Action / resync

******
resync
******



.. py:method:: IAM.MfaDevice.resync(**kwargs)

  

  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 <https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_VirtualMFA.html>`__ in the *IAM User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ResyncMFADevice>`_  


  **Request Syntax**
  ::

    response = mfa_device.resync(
        AuthenticationCode1='string',
        AuthenticationCode2='string'
    )
    
  :type AuthenticationCode1: string
  :param AuthenticationCode1: **[REQUIRED]** 

    An authentication code emitted by the device.

     

    The format for this parameter is a sequence of six digits.

    

  
  :type AuthenticationCode2: string
  :param AuthenticationCode2: **[REQUIRED]** 

    A subsequent authentication code emitted by the device.

     

    The format for this parameter is a sequence of six digits.

    

  
  
  :returns: None