We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Updates the name of a current Direct Connect gateway.
Use a bare-bones client and the command you need to make an API call.
import { DirectConnectClient, UpdateDirectConnectGatewayCommand } from "@aws-sdk/client-direct-connect"; // ES Modules import// const { DirectConnectClient, UpdateDirectConnectGatewayCommand } = require("@aws-sdk/client-direct-connect"); // CommonJS importconst client = new DirectConnectClient(config);const input = { // UpdateDirectConnectGatewayRequest directConnectGatewayId: "STRING_VALUE", // required newDirectConnectGatewayName: "STRING_VALUE", // required};const command = new UpdateDirectConnectGatewayCommand(input);const response = await client.send(command);// { // UpdateDirectConnectGatewayResponse// directConnectGateway: { // DirectConnectGateway// directConnectGatewayId: "STRING_VALUE",// directConnectGatewayName: "STRING_VALUE",// amazonSideAsn: Number("long"),// ownerAccount: "STRING_VALUE",// directConnectGatewayState: "pending" || "available" || "deleting" || "deleted",// stateChangeError: "STRING_VALUE",// },// };
UpdateDirectConnectGatewayCommandInput
UpdateDirectConnectGatewayCommandOutput
input
response
config
DirectConnectClientException (client fault)
One or more parameters are not valid.
DirectConnectServerException (server fault)
A server-side error occurred.
DirectConnectServiceException
Base exception class for all service exceptions from DirectConnect service.
Readonly
Static
Updates the name of a current Direct Connect gateway.
Example
Use a bare-bones client and the command you need to make an API call.
Param
UpdateDirectConnectGatewayCommandInput
Returns
UpdateDirectConnectGatewayCommandOutput
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.
Throws
DirectConnectServiceException
Base exception class for all service exceptions from DirectConnect service.