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.
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.
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);
AttachInternetGatewayCommandInput for command's
input
shape.AttachInternetGatewayCommandOutput for command's
response
shape.config for EC2Client's
config
shape.