Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

DescribePrefixLists

Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a VPC endpoint.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

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: Boolean

Required: No

Filter.N

One or more filters.

  • prefix-list-id: The ID of a prefix list.

  • prefix-list-name: The name of a prefix list.

Type: Array of Filter objects

Required: No

MaxResults

The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.

Constraint: If the value specified is greater than 1000, we return only 1000 items.

Type: Integer

Required: No

NextToken

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

Type: String

Required: No

PrefixListId.N

One or more prefix list IDs.

Type: Array of strings

Required: No

Response Elements

The following elements are returned by the service.

nextToken

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

Type: String

prefixListSet

All available prefix lists.

Type: Array of PrefixList objects

requestId

The ID of the request.

Type: String

Errors

For information about the errors that are common to all actions, see Common Client Errors.

Example

Example

This example lists all available AWS prefix lists.

Sample Request

https://ec2.amazonaws.com/?Action=DescribePrefixLists
&AUTHPARAMS

Sample Response

<DescribePrefixListsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
   <prefixListSet>
        <item>
            <prefixListName>com.amazonaws.us-west-2.s3</prefixListName>
            <prefixListId>pl-12345678</prefixListId>
            <cidrSet>
              <item>54.123.456.7/19</item>
            </cidrSet>
        </item>
    </prefixListSet>
    <requestId>614db4d4-ac7b-4cb6-853e-example</requestId>
</DescribePrefixListsResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: