Skip to main content

ipam_routing_policy_registrations

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

Overview

Nameipam_routing_policy_registrations
TypeResource
Idaws.ec2.ipam_routing_policy_registrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asnsstringThe Autonomous System Numbers (ASNs) authorized to originate the prefix.
cidrstringThe IP address prefix in CIDR notation authorized by the ROA.
descriptionstringThe description of the routing policy registration.
latest_delta_idstringThe ID of the most recent delta that modified this registration.
max_lengthintegerThe maximum prefix length that the ASNs are authorized to announce.
permit_more_specific_announcementsbooleanSpecifies whether to permit more specific route announcements than the CIDR prefix. When enabled, ASNs can announce sub-prefixes of the authorized CIDR up to the specified maximum length. Default: false.
statestringThe state of the routing policy registration. Valid values: pending-activate | activate-failed | create-in-progress | create-complete | update-in-progress | update-complete | delete-in-progress | delete-complete.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipam_routing_policy_registrationsselectIpamInternetRegistryAssociationId, regionDryRun, Cidr, MaxResults, NextTokenRetrieves routing policy registrations for an IPAM internet registry association. Each registration represents a Route Origin Authorization (ROA) that has been created or is pending publication to the RPKI. We recommend using pagination to ensure that the operation returns quickly and successfully.
create_ipam_routing_policy_registrationinsertIpamInternetRegistryAssociationId, regionDryRun, Cidr, Asn, PermitMoreSpecificAnnouncements, MaxLength, Description, Force, ClientTokenCreates a routing policy registration and publishes Route Origin Authorizations (ROAs) to the RPKI for the specified CIDR prefix and ASNs.
modify_ipam_routing_policy_registrationupdateIpamInternetRegistryAssociationId, regionDryRun, Cidr, Asn, PermitMoreSpecificAnnouncements, MaxLength, Description, Force, ClientTokenModifies an existing routing policy registration. You can update the authorized ASNs, maximum prefix length, and other properties of a Route Origin Authorization (ROA).
delete_ipam_routing_policy_registrationdeleteIpamInternetRegistryAssociationId, regionDryRun, Cidr, Force, ClientTokenDeletes a routing policy registration for a specified CIDR prefix.
batch_modify_ipam_routing_policy_registrationsexecIpamInternetRegistryAssociationId, DeltaJson, regionDryRun, Force, ClientTokenModifies multiple routing policy registrations in a single operation. You can create, update, or delete Route Origin Authorizations (ROAs) in batch.

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
DeltaJsonstringThe batch modifications to apply, in JSON format.
IpamInternetRegistryAssociationIdstringThe ID of the IPAM internet registry association.
regionstringAWS region (default: us-east-1)
AsnarrayThe updated list of Autonomous System Numbers (ASNs) authorized to originate the prefix.
CidrstringThe IP address prefix in CIDR notation identifying the routing policy registration to delete.
ClientTokenstringA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the operation ignores the request, but does not return an error.
DescriptionstringA new description for the routing policy registration.
DryRunbooleanChecks whether you have the required permissions for the operation, 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.
ForcebooleanForces the batch modification even if individual changes conflict with announced routes. Default: false.
MaxLengthintegerThe new maximum prefix length that the ASNs are authorized to announce. Must be greater than or equal to the prefix length of the CIDR.
MaxResultsintegerThe maximum number of results to return in a single call. If not specified, all available results are returned. To retrieve the remaining results, make another call with the returned nextToken value.
NextTokenstringThe token for the next page of results.
PermitMoreSpecificAnnouncementsbooleanSpecifies whether to permit more specific route announcements than the CIDR prefix. Default: false.

SELECT examples

Retrieves routing policy registrations for an IPAM internet registry association. Each registration represents a Route Origin Authorization (ROA) that has been created or is pending publication to the RPKI. We recommend using pagination to ensure that the operation returns quickly and successfully.

SELECT
asns,
cidr,
description,
latest_delta_id,
max_length,
permit_more_specific_announcements,
state
FROM aws.ec2.ipam_routing_policy_registrations
WHERE IpamInternetRegistryAssociationId = '{{ IpamInternetRegistryAssociationId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Cidr = '{{ Cidr }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;

INSERT examples

Creates a routing policy registration and publishes Route Origin Authorizations (ROAs) to the RPKI for the specified CIDR prefix and ASNs.

INSERT INTO aws.ec2.ipam_routing_policy_registrations (
IpamInternetRegistryAssociationId,
region,
DryRun,
Cidr,
Asn,
PermitMoreSpecificAnnouncements,
MaxLength,
Description,
Force,
ClientToken
)
SELECT
'{{ IpamInternetRegistryAssociationId }}',
'{{ region }}',
'{{ DryRun }}',
'{{ Cidr }}',
'{{ Asn }}',
'{{ PermitMoreSpecificAnnouncements }}',
'{{ MaxLength }}',
'{{ Description }}',
'{{ Force }}',
'{{ ClientToken }}'
RETURNING
delta_id,
delta_json,
state,
state_message
;

UPDATE examples

Modifies an existing routing policy registration. You can update the authorized ASNs, maximum prefix length, and other properties of a Route Origin Authorization (ROA).

UPDATE aws.ec2.ipam_routing_policy_registrations
SET
-- No updatable properties
WHERE
IpamInternetRegistryAssociationId = '{{ IpamInternetRegistryAssociationId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND Cidr = '{{ Cidr}}'
AND Asn = '{{ Asn}}'
AND PermitMoreSpecificAnnouncements = {{ PermitMoreSpecificAnnouncements}}
AND MaxLength = '{{ MaxLength}}'
AND Description = '{{ Description}}'
AND Force = {{ Force}}
AND ClientToken = '{{ ClientToken}}'
RETURNING
delta_id,
delta_json,
state,
state_message;

DELETE examples

Deletes a routing policy registration for a specified CIDR prefix.

DELETE FROM aws.ec2.ipam_routing_policy_registrations
WHERE IpamInternetRegistryAssociationId = '{{ IpamInternetRegistryAssociationId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
AND Cidr = '{{ Cidr }}'
AND Force = '{{ Force }}'
AND ClientToken = '{{ ClientToken }}'
;

Lifecycle Methods

Modifies multiple routing policy registrations in a single operation. You can create, update, or delete Route Origin Authorizations (ROAs) in batch.

EXEC aws.ec2.ipam_routing_policy_registrations.batch_modify_ipam_routing_policy_registrations
@IpamInternetRegistryAssociationId='{{ IpamInternetRegistryAssociationId }}' --required,
@DeltaJson='{{ DeltaJson }}' --required,
@region='{{ region }}' --required,
@DryRun={{ DryRun }},
@Force={{ Force }},
@ClientToken='{{ ClientToken }}'
;