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 { DescribeVpcAttributeRequest, DescribeVpcAttributeResult } from "../models/models_5"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeVpcAttributeCommand}. */ export interface DescribeVpcAttributeCommandInput extends DescribeVpcAttributeRequest { } /** * @public * * The output of {@link DescribeVpcAttributeCommand}. */ export interface DescribeVpcAttributeCommandOutput extends DescribeVpcAttributeResult, __MetadataBearer { } declare const DescribeVpcAttributeCommand_base: { new (input: DescribeVpcAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeVpcAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeVpcAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeVpcAttributeCommand } = 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 = { // DescribeVpcAttributeRequest * Attribute: "enableDnsSupport" || "enableDnsHostnames" || "enableNetworkAddressUsageMetrics", // required * VpcId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new DescribeVpcAttributeCommand(input); * const response = await client.send(command); * // { // DescribeVpcAttributeResult * // EnableDnsHostnames: { // AttributeBooleanValue * // Value: true || false, * // }, * // EnableDnsSupport: { * // Value: true || false, * // }, * // EnableNetworkAddressUsageMetrics: { * // Value: true || false, * // }, * // VpcId: "STRING_VALUE", * // }; * * ``` * * @param DescribeVpcAttributeCommandInput - {@link DescribeVpcAttributeCommandInput} * @returns {@link DescribeVpcAttributeCommandOutput} * @see {@link DescribeVpcAttributeCommandInput} for command's `input` shape. * @see {@link DescribeVpcAttributeCommandOutput} 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 enableDnsSupport attribute * ```javascript * // This example describes the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not. * const input = { * Attribute: "enableDnsSupport", * VpcId: "vpc-a01106c2" * }; * const command = new DescribeVpcAttributeCommand(input); * const response = await client.send(command); * /* response is * { * EnableDnsSupport: { * Value: true * }, * VpcId: "vpc-a01106c2" * } * *\/ * ``` * * @example To describe the enableDnsHostnames attribute * ```javascript * // This example describes the enableDnsHostnames attribute. This attribute indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not. * const input = { * Attribute: "enableDnsHostnames", * VpcId: "vpc-a01106c2" * }; * const command = new DescribeVpcAttributeCommand(input); * const response = await client.send(command); * /* response is * { * EnableDnsHostnames: { * Value: true * }, * VpcId: "vpc-a01106c2" * } * *\/ * ``` * * @public */ export declare class DescribeVpcAttributeCommand extends DescribeVpcAttributeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeVpcAttributeRequest; output: DescribeVpcAttributeResult; }; sdk: { input: DescribeVpcAttributeCommandInput; output: DescribeVpcAttributeCommandOutput; }; }; }