import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DescribeInternetGatewaysRequest, DescribeInternetGatewaysResult } from "../models/models_4"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeInternetGatewaysCommand}. */ export interface DescribeInternetGatewaysCommandInput extends DescribeInternetGatewaysRequest { } /** * @public * * The output of {@link DescribeInternetGatewaysCommand}. */ export interface DescribeInternetGatewaysCommandOutput extends DescribeInternetGatewaysResult, __MetadataBearer { } declare const DescribeInternetGatewaysCommand_base: { new (input: DescribeInternetGatewaysCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeInternetGatewaysCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes your internet gateways. The default is to describe all your internet gateways. * Alternatively, you can specify specific internet gateway IDs or filter the results to * include only the internet gateways that match specific criteria.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeInternetGatewaysCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeInternetGatewaysCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DescribeInternetGatewaysRequest * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * DryRun: true || false, * InternetGatewayIds: [ // InternetGatewayIdList * "STRING_VALUE", * ], * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", * Values: [ // ValueStringList * "STRING_VALUE", * ], * }, * ], * }; * const command = new DescribeInternetGatewaysCommand(input); * const response = await client.send(command); * // { // DescribeInternetGatewaysResult * // InternetGateways: [ // InternetGatewayList * // { // InternetGateway * // Attachments: [ // InternetGatewayAttachmentList * // { // InternetGatewayAttachment * // State: "attaching" || "attached" || "detaching" || "detached", * // VpcId: "STRING_VALUE", * // }, * // ], * // InternetGatewayId: "STRING_VALUE", * // OwnerId: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeInternetGatewaysCommandInput - {@link DescribeInternetGatewaysCommandInput} * @returns {@link DescribeInternetGatewaysCommandOutput} * @see {@link DescribeInternetGatewaysCommandInput} for command's `input` shape. * @see {@link DescribeInternetGatewaysCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To describe the Internet gateway for a VPC * ```javascript * // This example describes the Internet gateway for the specified VPC. * const input = { * Filters: [ * { * Name: "attachment.vpc-id", * Values: [ * "vpc-a01106c2" * ] * } * ] * }; * const command = new DescribeInternetGatewaysCommand(input); * const response = await client.send(command); * /* response is * { * InternetGateways: [ * { * Attachments: [ * { * State: "attached", * VpcId: "vpc-a01106c2" * } * ], * InternetGatewayId: "igw-c0a643a9", * Tags: [] * } * ] * } * *\/ * ``` * * @public */ export declare class DescribeInternetGatewaysCommand extends DescribeInternetGatewaysCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeInternetGatewaysRequest; output: DescribeInternetGatewaysResult; }; sdk: { input: DescribeInternetGatewaysCommandInput; output: DescribeInternetGatewaysCommandOutput; }; }; }