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.
Idawscc.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.

For more information, see AWS::NetworkManager::LinkAssociation.

Methods

NameResourceAccessible byRequired Params
create_resourcelink_associationsINSERTGlobalNetworkId, DeviceId, LinkId, region
delete_resourcelink_associationsDELETEIdentifier, region
list_resourceslink_associations_list_onlySELECTregion
get_resourcelink_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual link_association.

SELECT
region,
global_network_id,
device_id,
link_id
FROM awscc.networkmanager.link_associations
WHERE
region = 'us-east-1' AND
Identifier = '{{ global_network_id }}|{{ device_id }}|{{ link_id }}';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM awscc.networkmanager.link_associations
WHERE
Identifier = '{{ global_network_id }}|{{ device_id }}|{{ link_id }}' AND
region = 'us-east-1';

Permissions

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

networkmanager:GetLinkAssociations,
networkmanager:AssociateLink