Skip to main content

ipam_prefix_list_resolvers

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

Overview

Nameipam_prefix_list_resolvers
TypeResource
Idaws.ec2.ipam_prefix_list_resolvers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
address_familystringThe address family (IPv4 or IPv6) for the IPAM prefix list resolver.
descriptionstringThe description of the IPAM prefix list resolver.
ipam_arnstringThe Amazon Resource Name (ARN) of the IPAM associated with this resolver.
ipam_prefix_list_resolver_arnstringThe Amazon Resource Name (ARN) of the IPAM prefix list resolver.
ipam_prefix_list_resolver_idstringThe ID of the IPAM prefix list resolver.
ipam_regionstringThe Amazon Web Services Region where the associated IPAM is located.
last_version_creation_statusstringThe status for the last time a version was created. Each version is a snapshot of what CIDRs matched your rules at that moment in time. The version number increments every time the CIDR list changes due to infrastructure changes.
last_version_creation_status_messagestringThe status message for the last time a version was created. Each version is a snapshot of what CIDRs matched your rules at that moment in time. The version number increments every time the CIDR list changes due to infrastructure changes.
owner_idstringThe ID of the Amazon Web Services account that owns the IPAM prefix list resolver.
statestringThe current state of the IPAM prefix list resolver. Valid values include create-in-progress, create-complete, create-failed, modify-in-progress, modify-complete, modify-failed, delete-in-progress, delete-complete, and delete-failed.
tagsstringThe tags assigned to the IPAM prefix list resolver.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_ipam_prefix_list_resolversselectregionDryRun, Filter, MaxResults, NextToken, IpamPrefixListResolverIdDescribes one or more IPAM prefix list resolvers. Use this operation to view the configuration, status, and properties of your resolvers.
create_ipam_prefix_list_resolverinsertIpamId, AddressFamily, regionDryRun, Description, Rule, TagSpecification, ClientTokenCreates an IPAM prefix list resolver. An IPAM prefix list resolver is a component that manages the synchronization between IPAM's CIDR selection rules and customer-managed prefix lists. It automates connectivity configurations by selecting CIDRs from IPAM's database based on your business logic and synchronizing them with prefix lists used in resources such as VPC route tables and security groups. For more information about IPAM prefix list resolver, see Automate prefix list updates with IPAM in the Amazon VPC IPAM User Guide.
modify_ipam_prefix_list_resolverupdateIpamPrefixListResolverId, regionDryRun, Description, RuleModifies an IPAM prefix list resolver. You can update the description and CIDR selection rules. Changes to rules will trigger re-evaluation and potential updates to associated prefix lists.
delete_ipam_prefix_list_resolverdeleteIpamPrefixListResolverId, regionDryRunDeletes an IPAM prefix list resolver. Before deleting a resolver, you must first delete all resolver targets associated with it.

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
AddressFamilystringThe address family for the IPAM prefix list resolver. Valid values are ipv4 and ipv6. You must create separate resolvers for IPv4 and IPv6 CIDRs as they cannot be mixed in the same resolver.
IpamIdstringThe ID of the IPAM that will serve as the source of the IP address database for CIDR selection. The IPAM must be in the Advanced tier to use this feature.
IpamPrefixListResolverIdstringThe ID of the IPAM prefix list resolver to delete.
regionstringAWS region (default: us-east-1)
ClientTokenstringA unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
DescriptionstringA new description for the IPAM prefix list resolver.
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.
IpamPrefixListResolverIdarrayThe IDs of the IPAM prefix list resolvers to describe. If not specified, all resolvers in your account are described.
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.
RulearrayThe updated CIDR selection rules for the resolver. These rules replace the existing rules entirely.
TagSpecificationarrayThe tags to apply to the IPAM prefix list resolver during creation. Tags help you organize and manage your Amazon Web Services resources.

SELECT examples

Describes one or more IPAM prefix list resolvers. Use this operation to view the configuration, status, and properties of your resolvers.

SELECT
address_family,
description,
ipam_arn,
ipam_prefix_list_resolver_arn,
ipam_prefix_list_resolver_id,
ipam_region,
last_version_creation_status,
last_version_creation_status_message,
owner_id,
state,
tags
FROM aws.ec2.ipam_prefix_list_resolvers
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND IpamPrefixListResolverId = '{{ IpamPrefixListResolverId }}'
;

INSERT examples

Creates an IPAM prefix list resolver. An IPAM prefix list resolver is a component that manages the synchronization between IPAM's CIDR selection rules and customer-managed prefix lists. It automates connectivity configurations by selecting CIDRs from IPAM's database based on your business logic and synchronizing them with prefix lists used in resources such as VPC route tables and security groups. For more information about IPAM prefix list resolver, see Automate prefix list updates with IPAM in the Amazon VPC IPAM User Guide.

INSERT INTO aws.ec2.ipam_prefix_list_resolvers (
IpamId,
AddressFamily,
region,
DryRun,
Description,
Rule,
TagSpecification,
ClientToken
)
SELECT
'{{ IpamId }}',
'{{ AddressFamily }}',
'{{ region }}',
'{{ DryRun }}',
'{{ Description }}',
'{{ Rule }}',
'{{ TagSpecification }}',
'{{ ClientToken }}'
RETURNING
address_family,
description,
ipam_arn,
ipam_prefix_list_resolver_arn,
ipam_prefix_list_resolver_id,
ipam_region,
last_version_creation_status,
last_version_creation_status_message,
owner_id,
state,
tags
;

UPDATE examples

Modifies an IPAM prefix list resolver. You can update the description and CIDR selection rules. Changes to rules will trigger re-evaluation and potential updates to associated prefix lists.

UPDATE aws.ec2.ipam_prefix_list_resolvers
SET
-- No updatable properties
WHERE
IpamPrefixListResolverId = '{{ IpamPrefixListResolverId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND Description = '{{ Description}}'
AND Rule = '{{ Rule}}'
RETURNING
address_family,
description,
ipam_arn,
ipam_prefix_list_resolver_arn,
ipam_prefix_list_resolver_id,
ipam_region,
last_version_creation_status,
last_version_creation_status_message,
owner_id,
state,
tags;

DELETE examples

Deletes an IPAM prefix list resolver. Before deleting a resolver, you must first delete all resolver targets associated with it.

DELETE FROM aws.ec2.ipam_prefix_list_resolvers
WHERE IpamPrefixListResolverId = '{{ IpamPrefixListResolverId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;