Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteInternetGatewayCommand

Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.

example

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

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

DeleteInternetGatewayCommandInput for command's input shape.

see

DeleteInternetGatewayCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteInternetGatewayCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions