Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssociateVirtualInterfaceCommand

Associates a virtual interface with a specified link aggregation group (LAG) or connection. Connectivity to Amazon Web Services is temporarily interrupted as the virtual interface is being migrated. If the target connection or LAG has an associated virtual interface with a conflicting VLAN number or a conflicting IP address, the operation fails.

Virtual interfaces associated with a hosted connection cannot be associated with a LAG; hosted connections must be migrated along with their virtual interfaces using AssociateHostedConnection.

To reassociate a virtual interface to a new connection or LAG, the requester must own either the virtual interface itself or the connection to which the virtual interface is currently associated. Additionally, the requester must own the connection or LAG for the association.

example

Use a bare-bones client and the command you need to make an API call.

import { DirectConnectClient, AssociateVirtualInterfaceCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import
// const { DirectConnectClient, AssociateVirtualInterfaceCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import
const client = new DirectConnectClient(config);
const command = new AssociateVirtualInterfaceCommand(input);
const response = await client.send(command);
see

AssociateVirtualInterfaceCommandInput for command's input shape.

see

AssociateVirtualInterfaceCommandOutput for command's response shape.

see

config for DirectConnectClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: AssociateVirtualInterfaceCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions