Skip to main content

link_associations

Creates, updates, deletes or gets a link_association resource or lists link_associations in a region

Overview

Namelink_associations
TypeResource
DescriptionThe AWS::NetworkManager::LinkAssociation type associates a link to a device. The device and link must be in the same global network and the same site.
Idaws.networkmanager.link_associations

Fields

NameDatatypeDescription
global_network_idstringThe ID of the global network.
device_idstringThe ID of the device
link_idstringThe ID of the link
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTGlobalNetworkId, DeviceId, LinkId, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all link_associations in a region.

SELECT
region,
global_network_id,
device_id,
link_id
FROM aws.networkmanager.link_associations
WHERE region = 'us-east-1';

Gets all properties from an individual link_association.

SELECT
region,
global_network_id,
device_id,
link_id
FROM aws.networkmanager.link_associations
WHERE region = 'us-east-1' AND data__Identifier = '<GlobalNetworkId>|<DeviceId>|<LinkId>';

INSERT example

Use the following StackQL query and manifest file to create a new link_association resource, using stack-deploy.

/*+ create */
INSERT INTO aws.networkmanager.link_associations (
GlobalNetworkId,
DeviceId,
LinkId,
region
)
SELECT
'{{ GlobalNetworkId }}',
'{{ DeviceId }}',
'{{ LinkId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkmanager.link_associations
WHERE data__Identifier = '<GlobalNetworkId|DeviceId|LinkId>'
AND region = 'us-east-1';

Permissions

To operate on the link_associations resource, the following permissions are required:

Create

networkmanager:GetLinkAssociations,
networkmanager:AssociateLink

Read

networkmanager:GetLinkAssociations

List

networkmanager:GetLinkAssociations

Delete

networkmanager:DisassociateLink