Skip to main content

link_associations

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

Overview​

Namelink_associations
TypeResource
Idaws.networkmanager.link_associations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
device_idstringThe device ID for the link association. (pattern: <code>[\s\S]*</code>)
global_network_idstringThe ID of the global network. (pattern: <code>[\s\S]*</code>)
link_association_statestringThe state of the association. (PENDING, AVAILABLE, DELETING, DELETED)
link_idstringThe ID of the link. (pattern: <code>[\s\S]*</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_link_associationsselectglobal_network_id, regiondeviceId, linkId, maxResults, nextTokenGets the link associations for a device or a link. Either the device ID or the link ID must be specified.

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)
deviceIdstringThe ID of the device.
linkIdstringThe ID of the link.
maxResultsintegerThe maximum number of results to return.
nextTokenstringThe token for the next page of results.

SELECT examples​

Gets the link associations for a device or a link. Either the device ID or the link ID must be specified.

SELECT
device_id,
global_network_id,
link_association_state,
link_id
FROM aws.networkmanager.link_associations
WHERE global_network_id = '{{ global_network_id }}' -- required
AND region = '{{ region }}' -- required
AND deviceId = '{{ deviceId }}'
AND linkId = '{{ linkId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;