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

***********************
get_account_association
***********************



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

  

  Get an account association for an Amazon Web Services account linked to a customer-managed destination.

  

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


  **Request Syntax**
  ::

    response = client.get_account_association(
        AccountAssociationId='string'
    )
    
  :type AccountAssociationId: string
  :param AccountAssociationId: **[REQUIRED]** 

    The unique identifier of the account association to retrieve.

    

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

    
    ::

      {
          'AccountAssociationId': 'string',
          'AssociationState': 'ASSOCIATION_IN_PROGRESS'|'ASSOCIATION_FAILED'|'ASSOCIATION_SUCCEEDED'|'ASSOCIATION_DELETING'|'REFRESH_TOKEN_EXPIRED',
          'ErrorMessage': 'string',
          'ConnectorDestinationId': 'string',
          'Name': 'string',
          'Description': 'string',
          'Arn': 'string',
          'OAuthAuthorizationUrl': 'string',
          'Tags': {
              'string': 'string'
          },
          'GeneralAuthorization': {
              'AuthMaterialName': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The unique identifier of the retrieved account association.

        
      

      - **AssociationState** *(string) --* 

        The current status state for the account association.

        
      

      - **ErrorMessage** *(string) --* 

        The error message explaining the current account association error.

        
      

      - **ConnectorDestinationId** *(string) --* 

        The identifier of the connector destination associated with this account association.

        
      

      - **Name** *(string) --* 

        The name of the account association.

        
      

      - **Description** *(string) --* 

        The description of the account association.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the account association.

        
      

      - **OAuthAuthorizationUrl** *(string) --* 

        Third party IoT platform OAuth authorization server URL backed with all the required parameters to perform end-user authentication. This field will be empty when using General Authorization flows that do not require OAuth.

        
      

      - **Tags** *(dict) --* 

        A set of key/value pairs that are used to manage the account association.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
      

      - **GeneralAuthorization** *(dict) --* 

        The General Authorization reference by authorization material name.

        
        

        - **AuthMaterialName** *(string) --* 

          The name of the authorization material.

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

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

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

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

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

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

  