Skip to main content

ipam_prefix_list_resolver_rules

Creates, updates, deletes, gets or lists an ipam_prefix_list_resolver_rules resource.

Overview

Nameipam_prefix_list_resolver_rules
TypeResource
Idaws.ec2.ipam_prefix_list_resolver_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
conditionsstringThe conditions that determine which CIDRs are selected by this rule. Conditions specify criteria such as resource type, tags, account IDs, and Regions.
ipam_scope_idstringThe ID of the IPAM scope from which to select CIDRs. This determines whether to select from public or private IP address space.
resource_typestringFor rules of type ipam-resource-cidr, this is the resource type.
rule_typestringThe type of CIDR selection rule. Valid values include include for selecting CIDRs that match the conditions, and exclude for excluding CIDRs that match the conditions.
static_cidrstringA fixed list of CIDRs that do not change (like a manual list replicated across Regions).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipam_prefix_list_resolver_rulesselectIpamPrefixListResolverId, regionDryRun, Filter, MaxResults, NextTokenRetrieves the CIDR selection rules for an IPAM prefix list resolver. Use this operation to view the business logic that determines which CIDRs are selected for synchronization with prefix lists.

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
IpamPrefixListResolverIdstringThe ID of the IPAM prefix list resolver whose rules you want to retrieve.
regionstringAWS region (default: us-east-1)
DryRunbooleanA check for 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 to limit the results.
MaxResultsintegerThe maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
NextTokenstringThe token for the next page of results.

SELECT examples

Retrieves the CIDR selection rules for an IPAM prefix list resolver. Use this operation to view the business logic that determines which CIDRs are selected for synchronization with prefix lists.

SELECT
conditions,
ipam_scope_id,
resource_type,
rule_type,
static_cidr
FROM aws.ec2.ipam_prefix_list_resolver_rules
WHERE IpamPrefixListResolverId = '{{ IpamPrefixListResolverId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;