ipam_route_origin_authorizations
Creates, updates, deletes, gets or lists an ipam_route_origin_authorizations resource.
Overview
| Name | ipam_route_origin_authorizations |
| Type | Resource |
| Id | aws.ec2.ipam_route_origin_authorizations |
Fields
The following fields are returned by SELECT queries:
- get_ipam_route_origin_authorizations
| Name | Datatype | Description |
|---|---|---|
asn | string | The Autonomous System Number (ASN) authorized to originate the prefix. |
cidr | string | The IP address prefix in CIDR notation authorized by the ROA. |
max_length | integer | The maximum prefix length that the ASN is authorized to announce. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_ipam_route_origin_authorizations | select | IpamInternetRegistryAssociationId, region | DryRun, Cidr, MaxResults, NextToken | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
IpamInternetRegistryAssociationId | string | The ID of the IPAM internet registry association. |
region | string | AWS region (default: us-east-1) |
Cidr | string | Filter results to a specific CIDR prefix. |
DryRun | boolean | Checks 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. |
MaxResults | integer | The 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. |
NextToken | string | The token for the next page of results. |
SELECT examples
- get_ipam_route_origin_authorizations
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 }}'
;