:doc:`ManagedintegrationsforIoTDeviceManagement <../../iot-managed-integrations>` / Client / register_account_association

****************************
register_account_association
****************************



.. py:method:: ManagedintegrationsforIoTDeviceManagement.Client.register_account_association(**kwargs)

  

  Registers an account association with a managed thing, establishing a connection between a device and a third-party account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-managed-integrations-2025-03-03/RegisterAccountAssociation>`_  


  **Request Syntax**
  ::

    response = client.register_account_association(
        ManagedThingId='string',
        AccountAssociationId='string',
        DeviceDiscoveryId='string'
    )
    
  :type ManagedThingId: string
  :param ManagedThingId: **[REQUIRED]** 

    The identifier of the managed thing to register with the account association.

    

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

    The identifier of the account association to register with the managed thing.

    

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

    The identifier of the device discovery job associated with this registration.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'AccountAssociationId': 'string',
          'DeviceDiscoveryId': 'string',
          'ManagedThingId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AccountAssociationId** *(string) --* 

        The identifier of the account association that was registered.

        
      

      - **DeviceDiscoveryId** *(string) --* 

        The identifier of the device discovery job associated with this registration.

        
      

      - **ManagedThingId** *(string) --* 

        The identifier of the managed thing that was registered with the account association.

        
  
  **Exceptions**
  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ValidationException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.InternalServerException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ConflictException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ResourceNotFoundException`

  