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

Requests a reboot of the specified instances. This operation is asynchronous; it only * queues a request to reboot the specified instances. The operation succeeds if the * instances are valid and belong to you. Requests to reboot terminated instances are * ignored.

*

If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a * hard reboot.

*

For more information about troubleshooting, see Troubleshoot an unreachable * instance in the Amazon EC2 User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, RebootInstancesCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, RebootInstancesCommand } = 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 = { // RebootInstancesRequest * InstanceIds: [ // InstanceIdStringList // required * "STRING_VALUE", * ], * DryRun: true || false, * }; * const command = new RebootInstancesCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param RebootInstancesCommandInput - {@link RebootInstancesCommandInput} * @returns {@link RebootInstancesCommandOutput} * @see {@link RebootInstancesCommandInput} for command's `input` shape. * @see {@link RebootInstancesCommandOutput} 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 reboot an EC2 instance * ```javascript * // This example reboots the specified EC2 instance. * const input = { * InstanceIds: [ * "i-1234567890abcdef5" * ] * }; * const command = new RebootInstancesCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class RebootInstancesCommand extends RebootInstancesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RebootInstancesRequest; output: {}; }; sdk: { input: RebootInstancesCommandInput; output: RebootInstancesCommandOutput; }; }; }