Skip to main content

ipam_internet_registry_association_asns

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

Overview

Nameipam_internet_registry_association_asns
TypeResource
Idaws.ec2.ipam_internet_registry_association_asns

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
asnstringThe Autonomous System Number.
last_observed_atstringThe time when the ASN was last observed at the internet registry.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipam_internet_registry_association_asnsselectIpamInternetRegistryAssociationId, regionDryRun, MaxResults, NextToken, FilterRetrieves Autonomous System Numbers (ASNs) registered with an internet registry 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)
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.
FilterarrayOne or more filters to apply to the results.
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 Autonomous System Numbers (ASNs) registered with an internet registry for an IPAM internet registry association. We recommend using pagination to ensure that the operation returns quickly and successfully.

SELECT
asn,
last_observed_at
FROM aws.ec2.ipam_internet_registry_association_asns
WHERE IpamInternetRegistryAssociationId = '{{ IpamInternetRegistryAssociationId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
AND Filter = '{{ Filter }}'
;