Skip to main content

ipam_route_origin_authorizations

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

Overview

Nameipam_route_origin_authorizations
TypeResource
Idaws.ec2.ipam_route_origin_authorizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asnstringThe Autonomous System Number (ASN) authorized to originate the prefix.
cidrstringThe IP address prefix in CIDR notation authorized by the ROA.
max_lengthintegerThe maximum prefix length that the ASN is authorized to announce.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipam_route_origin_authorizationsselectIpamInternetRegistryAssociationId, regionDryRun, Cidr, MaxResults, NextTokenRetrieves the current Route Origin Authorizations (ROAs) published to the RPKI for an IPAM internet registry association. We recommend using pagination to ensure that the operation returns quickly and successfully.

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
IpamInternetRegistryAssociationIdstringThe ID of the IPAM internet registry association.
regionstringAWS region (default: us-east-1)
CidrstringFilter results to a specific CIDR prefix.
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.
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.

SELECT examples

Retrieves the current Route Origin Authorizations (ROAs) published to the RPKI for an IPAM internet registry association. We recommend using pagination to ensure that the operation returns quickly and successfully.

SELECT
asn,
cidr,
max_length
FROM aws.ec2.ipam_route_origin_authorizations
WHERE IpamInternetRegistryAssociationId = '{{ IpamInternetRegistryAssociationId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Cidr = '{{ Cidr }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;