EC2 / Client / get_managed_prefix_list_associations

get_managed_prefix_list_associations#

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

Request Syntax

response = client.get_managed_prefix_list_associations(
    DryRun=True|False,
    PrefixListId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • DryRun (boolean) – 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.

  • PrefixListId (string) –

    [REQUIRED]

    The ID of the prefix list.

  • MaxResults (integer) – The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • NextToken (string) – The token for the next page of results.

Return type:

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.