:doc:`RAM <../../ram>` / Paginator / ListSourceAssociations

**********************
ListSourceAssociations
**********************



.. py:class:: RAM.Paginator.ListSourceAssociations

  ::

    
    paginator = client.get_paginator('list_source_associations')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`RAM.Client.list_source_associations`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListSourceAssociations>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          resourceShareArns=[
              'string',
          ],
          sourceId='string',
          sourceType='string',
          associationStatus='ASSOCIATING'|'ASSOCIATED'|'FAILED'|'DISASSOCIATING'|'DISASSOCIATED'|'SUSPENDED'|'SUSPENDING'|'RESTORING',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type resourceShareArns: list
    :param resourceShareArns: 

      The Amazon Resource Names (ARNs) of the resource shares for which you want to retrieve source associations.

      

    
      - *(string) --* 

      
  
    :type sourceId: string
    :param sourceId: 

      The identifier of the source for which you want to retrieve associations. This can be an account ID, Amazon Resource Name (ARN), organization ID, or organization path.

      

    
    :type sourceType: string
    :param sourceType: 

      The type of source for which you want to retrieve associations.

      

    
    :type associationStatus: string
    :param associationStatus: 

      The status of the source associations that you want to retrieve.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

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

      
      ::

        {
            'sourceAssociations': [
                {
                    'resourceShareArn': 'string',
                    'sourceId': 'string',
                    'sourceType': 'string',
                    'status': 'string',
                    'lastUpdatedTime': datetime(2015, 1, 1),
                    'creationTime': datetime(2015, 1, 1),
                    'statusMessage': 'string'
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **sourceAssociations** *(list) --* 

          Information about the source associations.

          
          

          - *(dict) --* 

            Information about a source association in a resource share. Source associations control which sources can be used with service principals.

            
            

            - **resourceShareArn** *(string) --* 

              The Amazon Resource Name (ARN) of the resource share that contains the source association.

              
            

            - **sourceId** *(string) --* 

              The identifier of the source. This can be an account ID, Amazon Resource Name (ARN), organization ID, or organization path.

              
            

            - **sourceType** *(string) --* 

              The type of source.

              
            

            - **status** *(string) --* 

              The current status of the source association.

              
            

            - **lastUpdatedTime** *(datetime) --* 

              The date and time when the source association was last updated.

              
            

            - **creationTime** *(datetime) --* 

              The date and time when the source association was created.

              
            

            - **statusMessage** *(string) --* 

              A message about the status of the source association.

              
        
      
        

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

          A token to resume pagination.

          
    