Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttachInternetGatewayCommand

Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.

example

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

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

AttachInternetGatewayCommandInput for command's input shape.

see

AttachInternetGatewayCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: AttachInternetGatewayCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions