link_associations
Creates, updates, deletes or gets a link_association
resource or lists link_associations
in a region
Overview
Name | link_associations |
Type | Resource |
Description | The 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. |
Id | aws.networkmanager.link_associations |
Fields
Name | Datatype | Description |
---|---|---|
global_network_id | string | The ID of the global network. |
device_id | string | The ID of the device |
link_id | string | The ID of the link |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | GlobalNetworkId, DeviceId, LinkId, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.networkmanager.link_associations (
GlobalNetworkId,
DeviceId,
LinkId,
region
)
SELECT
'{{ GlobalNetworkId }}',
'{{ DeviceId }}',
'{{ LinkId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.networkmanager.link_associations (
GlobalNetworkId,
DeviceId,
LinkId,
region
)
SELECT
'{{ GlobalNetworkId }}',
'{{ DeviceId }}',
'{{ LinkId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: link_association
props:
- name: GlobalNetworkId
value: '{{ GlobalNetworkId }}'
- name: DeviceId
value: '{{ DeviceId }}'
- name: LinkId
value: '{{ LinkId }}'
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