LinkAssociationArgs

data class LinkAssociationArgs(val deviceId: Output<String>? = null, val globalNetworkId: Output<String>? = null, val linkId: Output<String>? = null) : ConvertibleToJava<LinkAssociationArgs>

Associates a link to a device. A device can be associated to multiple links and a link can be associated to multiple devices. The device and link must be in the same global network and the same site.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networkmanager.LinkAssociation;
import com.pulumi.aws.networkmanager.LinkAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LinkAssociation("example", LinkAssociationArgs.builder()
.globalNetworkId(aws_networkmanager_global_network.example().id())
.linkId(aws_networkmanager_link.example().id())
.deviceId(aws_networkmanager_device.example().id())
.build());
}
}

Import

aws_networkmanager_link_association can be imported using the global network ID, link ID and device ID, e.g.

$ pulumi import aws:networkmanager/linkAssociation:LinkAssociation example global-network-0d47f6t230mz46dy4,link-444555aaabbb11223,device-07f6fd08867abc123

Constructors

Link copied to clipboard
constructor(deviceId: Output<String>? = null, globalNetworkId: Output<String>? = null, linkId: Output<String>? = null)

Properties

Link copied to clipboard
val deviceId: Output<String>? = null

The ID of the device.

Link copied to clipboard
val globalNetworkId: Output<String>? = null

The ID of the global network.

Link copied to clipboard
val linkId: Output<String>? = null

The ID of the link.

Functions

Link copied to clipboard
open override fun toJava(): LinkAssociationArgs