Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateBGPPeerCommand

Creates a BGP peer on the specified virtual interface.

You must create a BGP peer for the corresponding address family (IPv4/IPv6) in order to access Amazon Web Services resources that also use that address family.

If logical redundancy is not supported by the connection, interconnect, or LAG, the BGP peer cannot be in the same address family as an existing BGP peer on the virtual interface.

When creating a IPv6 BGP peer, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon pool of IPv6 addresses; you cannot specify custom IPv6 addresses.

For a public virtual interface, the Autonomous System Number (ASN) must be private or already on the allow list for the virtual interface.

example

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

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

CreateBGPPeerCommandInput for command's input shape.

see

CreateBGPPeerCommandOutput for command's response shape.

see

config for DirectConnectClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateBGPPeerCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateBGPPeerCommandInput, CreateBGPPeerCommandOutput>

Methods

Static getEndpointParameterInstructions