import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RebuildWorkspacesRequest, RebuildWorkspacesResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RebuildWorkspacesCommand}. */ export interface RebuildWorkspacesCommandInput extends RebuildWorkspacesRequest { } /** * @public * * The output of {@link RebuildWorkspacesCommand}. */ export interface RebuildWorkspacesCommandOutput extends RebuildWorkspacesResult, __MetadataBearer { } declare const RebuildWorkspacesCommand_base: { new (input: RebuildWorkspacesCommandInput): import("@smithy/core/client").CommandImpl; new (input: RebuildWorkspacesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Rebuilds the specified WorkSpace.

*

You cannot rebuild a WorkSpace unless its state is AVAILABLE, * ERROR, UNHEALTHY, STOPPED, or * REBOOTING.

*

Rebuilding a WorkSpace is a potentially destructive action that can result in the loss * of data. For more information, see Rebuild a * WorkSpace.

*

This operation is asynchronous and returns before the WorkSpaces have been completely * rebuilt.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, RebuildWorkspacesCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, RebuildWorkspacesCommand } = 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 = { // RebuildWorkspacesRequest * RebuildWorkspaceRequests: [ // RebuildWorkspaceRequests // required * { // RebuildRequest * WorkspaceId: "STRING_VALUE", // required * }, * ], * }; * const command = new RebuildWorkspacesCommand(input); * const response = await client.send(command); * // { // RebuildWorkspacesResult * // FailedRequests: [ // FailedRebuildWorkspaceRequests * // { // FailedWorkspaceChangeRequest * // WorkspaceId: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param RebuildWorkspacesCommandInput - {@link RebuildWorkspacesCommandInput} * @returns {@link RebuildWorkspacesCommandOutput} * @see {@link RebuildWorkspacesCommandInput} for command's `input` shape. * @see {@link RebuildWorkspacesCommandOutput} 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 RebuildWorkspacesCommand extends RebuildWorkspacesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RebuildWorkspacesRequest; output: RebuildWorkspacesResult; }; sdk: { input: RebuildWorkspacesCommandInput; output: RebuildWorkspacesCommandOutput; }; }; }