Skip to main content

peerings

Creates, updates, deletes, gets or lists a peerings resource.

Overview

Namepeerings
TypeResource
Idaws.networkmanager.peerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
core_network_arnstringThe ARN of a core network. (pattern: <code>[\s\S]*</code>)
core_network_idstringThe ID of the core network for the peering request. (pattern: <code>^core-network-([0-9a-f]{8,17})$</code>)
created_atstring (date-time)The timestamp when the attachment peer was created.
edge_locationstringThe edge location for the peer. (pattern: <code>[\s\S]*</code>)
last_modification_errorsarrayDescribes the error associated with the Connect peer request.
owner_account_idstringThe ID of the account owner. (pattern: <code>[\s\S]*</code>)
peering_idstringThe ID of the peering attachment. (pattern: <code>^peering-([0-9a-f]{8,17})$</code>)
peering_typestringThe type of peering. This will be TRANSIT_GATEWAY. (TRANSIT_GATEWAY)
resource_arnstringThe resource ARN of the peer. (pattern: <code>[\s\S]*</code>)
statestringThe current state of the peering connection. (CREATING, FAILED, AVAILABLE, DELETING)
tagsarrayThe list of key-value tags associated with the peering.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_peeringsselectregioncoreNetworkId, peeringType, edgeLocation, state, maxResults, nextTokenLists the peerings for a core network.
delete_peeringdeletepeering_id, regionDeletes an existing peering connection.

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
peering_idstringThe ID of the peering connection to delete.
regionstringAWS region (default: us-east-1)
coreNetworkIdstringThe ID of a core network.
edgeLocationstringReturns a list edge locations for the
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.
peeringTypestringReturns a list of a peering requests.
statestringReturns a list of the peering request states.

SELECT examples

Lists the peerings for a core network.

SELECT
core_network_arn,
core_network_id,
created_at,
edge_location,
last_modification_errors,
owner_account_id,
peering_id,
peering_type,
resource_arn,
state,
tags
FROM aws.networkmanager.peerings
WHERE region = '{{ region }}' -- required
AND coreNetworkId = '{{ coreNetworkId }}'
AND peeringType = '{{ peeringType }}'
AND edgeLocation = '{{ edgeLocation }}'
AND state = '{{ state }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

DELETE examples

Deletes an existing peering connection.

DELETE FROM aws.networkmanager.peerings
WHERE peering_id = '{{ peering_id }}' --required
AND region = '{{ region }}' --required
;