Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateEgressOnlyInternetGatewayCommand

[IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.

example

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

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

CreateEgressOnlyInternetGatewayCommandInput for command's input shape.

see

CreateEgressOnlyInternetGatewayCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateEgressOnlyInternetGatewayCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions