prefix_lists
Creates, updates, deletes, gets or lists a prefix_lists resource.
Overview
| Name | prefix_lists |
| Type | Resource |
| Id | aws.ec2.prefix_lists |
Fields
The following fields are returned by SELECT queries:
- describe_prefix_lists
| Name | Datatype | Description |
|---|---|---|
cidrs | string | The IP address range of the Amazon Web Services service. |
prefix_list_id | string | The ID of the prefix. |
prefix_list_name | string | The name of the prefix. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_prefix_lists | select | region | DryRun, Filter, MaxResults, NextToken, PrefixListId | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
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. |
Filter | array | One or more filters. prefix-list-id: The ID of a prefix list. prefix-list-name: The name of a 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. |
PrefixListId | array | One or more prefix list IDs. |
SELECT examples
- describe_prefix_lists
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 }}'
;