Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateConnectionCommand

Creates a connection between a customer network and a specific Direct Connect location.

A connection links your internal network to an Direct Connect location over a standard Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an Direct Connect router.

To find the locations for your Region, use DescribeLocations.

You can automatically add the new connection to a link aggregation group (LAG) by specifying a LAG ID in the request. This ensures that the new connection is allocated on the same Direct Connect endpoint that hosts the specified LAG. If there are no available ports on the endpoint, the request fails and no connection is created.

example

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

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

CreateConnectionCommandInput for command's input shape.

see

CreateConnectionCommandOutput for command's response shape.

see

config for DirectConnectClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateConnectionCommandInput

Readonly middlewareStack