:doc:`WorkSpaces <../../workspaces>` / Client / get_account_link

****************
get_account_link
****************



.. py:method:: WorkSpaces.Client.get_account_link(**kwargs)

  

  Retrieves account link information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/GetAccountLink>`_  


  **Request Syntax**
  ::

    response = client.get_account_link(
        LinkId='string',
        LinkedAccountId='string'
    )
    
  :type LinkId: string
  :param LinkId: 

    The identifier of the account to link.

    

  
  :type LinkedAccountId: string
  :param LinkedAccountId: 

    The identifier of the account link

    

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

    
    ::

      {
          'AccountLink': {
              'AccountLinkId': 'string',
              'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED',
              'SourceAccountId': 'string',
              'TargetAccountId': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AccountLink** *(dict) --* 

        The account link of the account link to retrieve.

        
        

        - **AccountLinkId** *(string) --* 

          The identifier of the account link.

          
        

        - **AccountLinkStatus** *(string) --* 

          The status of the account link.

          
        

        - **SourceAccountId** *(string) --* 

          The identifier of the source account.

          
        

        - **TargetAccountId** *(string) --* 

          The identifier of the target account.

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

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

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

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

  