managed_prefix_list_entries
Creates, updates, deletes, gets or lists a managed_prefix_list_entries resource.
Overview
| Name | managed_prefix_list_entries |
| Type | Resource |
| Id | aws.ec2.managed_prefix_list_entries |
Fields
The following fields are returned by SELECT queries:
- get_managed_prefix_list_entries
| Name | Datatype | Description |
|---|---|---|
cidr | string | The CIDR block. |
description | string | The description. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_managed_prefix_list_entries | select | PrefixListId, region | DryRun, TargetVersion, MaxResults, NextToken | Gets information about the entries for a specified managed prefix list. |
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 |
|---|---|---|
PrefixListId | string | The ID of the prefix list. |
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. |
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. |
TargetVersion | integer (int64) | The version of the prefix list for which to return the entries. The default is the current version. |
SELECT examples
- get_managed_prefix_list_entries
Gets information about the entries for a specified managed prefix list.
SELECT
cidr,
description
FROM aws.ec2.managed_prefix_list_entries
WHERE PrefixListId = '{{ PrefixListId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND TargetVersion = '{{ TargetVersion }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;