import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RebootWorkspacesRequest, RebootWorkspacesResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RebootWorkspacesCommand}. */ export interface RebootWorkspacesCommandInput extends RebootWorkspacesRequest { } /** * @public * * The output of {@link RebootWorkspacesCommand}. */ export interface RebootWorkspacesCommandOutput extends RebootWorkspacesResult, __MetadataBearer { } declare const RebootWorkspacesCommand_base: { new (input: RebootWorkspacesCommandInput): import("@smithy/core/client").CommandImpl; new (input: RebootWorkspacesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Reboots the specified WorkSpaces.

*

You cannot reboot a WorkSpace unless its state is AVAILABLE, * UNHEALTHY, or REBOOTING. Reboot a WorkSpace in the REBOOTING * state only if your WorkSpace has been stuck in the REBOOTING state for over 20 minutes.

*

This operation is asynchronous and returns before the WorkSpaces have rebooted.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, RebootWorkspacesCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, RebootWorkspacesCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import * // import type { WorkSpacesClientConfig } from "@aws-sdk/client-workspaces"; * const config = {}; // type is WorkSpacesClientConfig * const client = new WorkSpacesClient(config); * const input = { // RebootWorkspacesRequest * RebootWorkspaceRequests: [ // RebootWorkspaceRequests // required * { // RebootRequest * WorkspaceId: "STRING_VALUE", // required * }, * ], * }; * const command = new RebootWorkspacesCommand(input); * const response = await client.send(command); * // { // RebootWorkspacesResult * // FailedRequests: [ // FailedRebootWorkspaceRequests * // { // FailedWorkspaceChangeRequest * // WorkspaceId: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param RebootWorkspacesCommandInput - {@link RebootWorkspacesCommandInput} * @returns {@link RebootWorkspacesCommandOutput} * @see {@link RebootWorkspacesCommandInput} for command's `input` shape. * @see {@link RebootWorkspacesCommandOutput} for command's `response` shape. * @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. * * @throws {@link OperationNotSupportedException} (client fault) *

This operation is not supported.

* * @throws {@link WorkSpacesServiceException} *

Base exception class for all service exceptions from WorkSpaces service.

* * * @public */ export declare class RebootWorkspacesCommand extends RebootWorkspacesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RebootWorkspacesRequest; output: RebootWorkspacesResult; }; sdk: { input: RebootWorkspacesCommandInput; output: RebootWorkspacesCommandOutput; }; }; }