CmdID / aws / aws networkmanager
aws networkmanager associate-link
Associates a link to a device. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To associate a link
The following associate-link example associates link link-11112222aaaabbbb1 with device device-07f6fd08867abc123. The link and device are in the specified global network.
aws networkmanager associate-link --global-network-id global-network-01231231231231231 --device-id device-07f6fd08867abc123 --link-id link-11112222aaaabbbb1Identify--global-network-idThe ID of the global network.--device-idThe ID of the device.--link-idThe ID of the link.Its output
{
"LinkAssociation": {
"GlobalNetworkId": "global-network-01231231231231231",
"DeviceId": "device-07f6fd08867abc123",
"LinkId": "link-11112222aaaabbbb1",
"LinkAssociationState": "PENDING"
}
}For more information, see Associate or disassociate a device link using AWS Network Manager in the Transit Gateway Network Manager Guide.
Options
--device-idThe ID of the device.--global-network-idThe ID of the global network.--link-idThe ID of the link.