Skip to main content

managed_prefix_list_entries

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

Overview

Namemanaged_prefix_list_entries
TypeResource
Idaws.ec2.managed_prefix_list_entries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cidrstringThe CIDR block.
descriptionstringThe description.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_prefix_list_entriesselectPrefixListId, regionDryRun, TargetVersion, MaxResults, NextTokenGets 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.

NameDatatypeDescription
PrefixListIdstringThe ID of the prefix list.
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.
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.
TargetVersioninteger (int64)The version of the prefix list for which to return the entries. The default is the current version.

SELECT examples

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 }}'
;