Skip to main content

prefix_lists

Creates, updates, deletes, gets or lists a prefix_lists resource.

Overview

Nameprefix_lists
TypeResource
Idaws.ec2.prefix_lists

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cidrsstringThe IP address range of the Amazon Web Services service.
prefix_list_idstringThe ID of the prefix.
prefix_list_namestringThe name of the prefix.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_prefix_listsselectregionDryRun, Filter, MaxResults, NextToken, PrefixListIdDescribes available Amazon Web Services 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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.
FilterarrayOne or more filters. prefix-list-id: The ID of a prefix list. prefix-list-name: The name of a prefix list.
MaxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
PrefixListIdarrayOne or more prefix list IDs.

SELECT examples

Describes available Amazon Web Services 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.

SELECT
cidrs,
prefix_list_id,
prefix_list_name
FROM aws.ec2.prefix_lists
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND PrefixListId = '{{ PrefixListId }}'
;