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 { ResetInstanceAttributeRequest } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ResetInstanceAttributeCommand}. */ export interface ResetInstanceAttributeCommandInput extends ResetInstanceAttributeRequest { } /** * @public * * The output of {@link ResetInstanceAttributeCommand}. */ export interface ResetInstanceAttributeCommandOutput extends __MetadataBearer { } declare const ResetInstanceAttributeCommand_base: { new (input: ResetInstanceAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ResetInstanceAttributeCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Resets an attribute of an instance to its default value. To reset the * kernel or ramdisk, the instance must be in a stopped * state. To reset the sourceDestCheck, the instance can be either running or * stopped.

*

The sourceDestCheck attribute controls whether source/destination * checking is enabled. The default value is true, which means checking is * enabled. This value must be false for a NAT instance to perform NAT. For * more information, see NAT instances in the * Amazon VPC User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ResetInstanceAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ResetInstanceAttributeCommand } = 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 = { // ResetInstanceAttributeRequest * DryRun: true || false, * InstanceId: "STRING_VALUE", // required * Attribute: "instanceType" || "kernel" || "ramdisk" || "userData" || "disableApiTermination" || "instanceInitiatedShutdownBehavior" || "rootDeviceName" || "blockDeviceMapping" || "productCodes" || "sourceDestCheck" || "groupSet" || "ebsOptimized" || "sriovNetSupport" || "enaSupport" || "enclaveOptions" || "disableApiStop", // required * }; * const command = new ResetInstanceAttributeCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param ResetInstanceAttributeCommandInput - {@link ResetInstanceAttributeCommandInput} * @returns {@link ResetInstanceAttributeCommandOutput} * @see {@link ResetInstanceAttributeCommandInput} for command's `input` shape. * @see {@link ResetInstanceAttributeCommandOutput} 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 reset the sourceDestCheck attribute * ```javascript * // This example resets the sourceDestCheck attribute for the specified instance. * const input = { * Attribute: "sourceDestCheck", * InstanceId: "i-1234567890abcdef0" * }; * const command = new ResetInstanceAttributeCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class ResetInstanceAttributeCommand extends ResetInstanceAttributeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ResetInstanceAttributeRequest; output: {}; }; sdk: { input: ResetInstanceAttributeCommandInput; output: ResetInstanceAttributeCommandOutput; }; }; }