Protected
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.
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 importconst 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);
CreateDirectConnectGatewayAssociationProposalCommandInput
CreateDirectConnectGatewayAssociationProposalCommandOutput
input
response
config
DirectConnectClientException (client fault)
One or more parameters are not valid.
DirectConnectServerException (server fault)
A server-side error occurred.
Readonly
Static
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.
Param
CreateDirectConnectGatewayAssociationProposalCommandInput
Returns
CreateDirectConnectGatewayAssociationProposalCommandOutput
See
input
shape.response
shape.config
shape.Throws
DirectConnectClientException (client fault)
One or more parameters are not valid.
Throws
DirectConnectServerException (server fault)
A server-side error occurred.