Jump to Content

Class CreateDirectConnectGatewayAssociationProposalCommandProtected

Creates a proposal to associate the specified virtual private gateway or transit gateway with the specified Direct Connect gateway.

You can associate a Direct Connect gateway and virtual private gateway or transit gateway that is owned by any Amazon Web Services account.

Example

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

import { DirectConnectClient, CreateDirectConnectGatewayAssociationProposalCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import
// const { DirectConnectClient, CreateDirectConnectGatewayAssociationProposalCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS import
const client = new DirectConnectClient(config);
const input = {
directConnectGatewayId: "STRING_VALUE", // required
directConnectGatewayOwnerAccount: "STRING_VALUE", // required
gatewayId: "STRING_VALUE", // required
addAllowedPrefixesToDirectConnectGateway: [
{
cidr: "STRING_VALUE",
},
],
removeAllowedPrefixesToDirectConnectGateway: [
{
cidr: "STRING_VALUE",
},
],
};
const command = new CreateDirectConnectGatewayAssociationProposalCommand(input);
const response = await client.send(command);

Param

CreateDirectConnectGatewayAssociationProposalCommandInput

Returns

CreateDirectConnectGatewayAssociationProposalCommandOutput

See

Throws

DirectConnectClientException (client fault)

One or more parameters are not valid.

Throws

DirectConnectServerException (server fault)

A server-side error occurred.

Hierarchy

Constructors

Properties

Methods