:doc:`EC2 <../../ec2>` / Client / get_managed_prefix_list_associations

************************************
get_managed_prefix_list_associations
************************************



.. py:method:: EC2.Client.get_managed_prefix_list_associations(**kwargs)

  

  Gets information about the resources that are associated with the specified managed prefix list.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListAssociations>`_  


  **Request Syntax**
  ::

    response = client.get_managed_prefix_list_associations(
        DryRun=True|False,
        PrefixListId='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

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

    The ID of the prefix list.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned ``nextToken`` value.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next page of results.

    

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

    
    ::

      {
          'PrefixListAssociations': [
              {
                  'ResourceId': 'string',
                  'ResourceOwner': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PrefixListAssociations** *(list) --* 

        Information about the associations.

        
        

        - *(dict) --* 

          Describes the resource with which a prefix list is associated.

          
          

          - **ResourceId** *(string) --* 

            The ID of the resource.

            
          

          - **ResourceOwner** *(string) --* 

            The owner of the resource.

            
      
    
      

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

        The token to use to retrieve the next page of results. This value is ``null`` when there are no more results to return.

        
  