Skip to main content

connect_peer_associations

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

Overview

Nameconnect_peer_associations
TypeResource
Idaws.networkmanager.connect_peer_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connect_peer_idstringThe ID of the Connect peer. (pattern: <code>^connect-peer-([0-9a-f]{8,17})$</code>)
device_idstringThe ID of the device to connect to. (pattern: <code>[\s\S]*</code>)
global_network_idstringThe ID of the global network. (pattern: <code>[\s\S]*</code>)
link_idstringThe ID of the link. (pattern: <code>[\s\S]*</code>)
statestringThe state of the Connect peer association. (PENDING, AVAILABLE, DELETING, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connect_peer_associationsselectglobal_network_id, regionconnectPeerIds, maxResults, nextTokenReturns information about a core network Connect peer associations.

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
global_network_idstringThe ID of the global network.
regionstringAWS region (default: us-east-1)
connectPeerIdsarrayThe IDs of the Connect peers.
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.

SELECT examples

Returns information about a core network Connect peer associations.

SELECT
connect_peer_id,
device_id,
global_network_id,
link_id,
state
FROM aws.networkmanager.connect_peer_associations
WHERE global_network_id = '{{ global_network_id }}' -- required
AND region = '{{ region }}' -- required
AND connectPeerIds = '{{ connectPeerIds }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;