:doc:`CloudWatchObservabilityAccessManager <../../oam>` / Client / list_attached_links

*******************
list_attached_links
*******************



.. py:method:: CloudWatchObservabilityAccessManager.Client.list_attached_links(**kwargs)

  

  Returns a list of source account links that are linked to this monitoring account sink.

   

  To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use `ListSinks <https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListSinks.html>`__.

   

  To find a list of links for one source account, use `ListLinks <https://docs.aws.amazon.com/OAM/latest/APIReference/API_ListLinks.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/ListAttachedLinks>`_  


  **Request Syntax**
  ::

    response = client.list_attached_links(
        MaxResults=123,
        NextToken='string',
        SinkIdentifier='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    Limits the number of returned links to the specified number.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next set of items to return. You received this token from a previous call.

    

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

    The ARN of the sink that you want to retrieve links for.

    

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

    
    ::

      {
          'Items': [
              {
                  'Label': 'string',
                  'LinkArn': 'string',
                  'ResourceTypes': [
                      'string',
                  ]
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Items** *(list) --* 

        An array of structures that contain the information about the attached links.

        
        

        - *(dict) --* 

          A structure that contains information about one link attached to this monitoring account sink.

          
          

          - **Label** *(string) --* 

            The label that was assigned to this link at creation, with the variables resolved to their actual values.

            
          

          - **LinkArn** *(string) --* 

            The ARN of the link.

            
          

          - **ResourceTypes** *(list) --* 

            The resource types supported by this link.

            
            

            - *(string) --* 
        
      
    
      

      - **NextToken** *(string) --* 

        The token to use when requesting the next set of links.

        
  
  **Exceptions**
  
  *   :py:class:`CloudWatchObservabilityAccessManager.Client.exceptions.InternalServiceFault`

  
  *   :py:class:`CloudWatchObservabilityAccessManager.Client.exceptions.MissingRequiredParameterException`

  
  *   :py:class:`CloudWatchObservabilityAccessManager.Client.exceptions.InvalidParameterException`

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

  