import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ModifyWorkspaceStateRequest, ModifyWorkspaceStateResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ModifyWorkspaceStateCommand}. */ export interface ModifyWorkspaceStateCommandInput extends ModifyWorkspaceStateRequest { } /** * @public * * The output of {@link ModifyWorkspaceStateCommand}. */ export interface ModifyWorkspaceStateCommandOutput extends ModifyWorkspaceStateResult, __MetadataBearer { } declare const ModifyWorkspaceStateCommand_base: { new (input: ModifyWorkspaceStateCommandInput): import("@smithy/core/client").CommandImpl; new (input: ModifyWorkspaceStateCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sets the state of the specified WorkSpace.

*

To maintain a WorkSpace without being interrupted, set the WorkSpace state to * ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests to * reboot, stop, start, rebuild, or restore. An AutoStop WorkSpace in this state is not * stopped. Users cannot log into a WorkSpace in the ADMIN_MAINTENANCE * state.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, ModifyWorkspaceStateCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, ModifyWorkspaceStateCommand } = 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 = { // ModifyWorkspaceStateRequest * WorkspaceId: "STRING_VALUE", // required * WorkspaceState: "AVAILABLE" || "ADMIN_MAINTENANCE", // required * }; * const command = new ModifyWorkspaceStateCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param ModifyWorkspaceStateCommandInput - {@link ModifyWorkspaceStateCommandInput} * @returns {@link ModifyWorkspaceStateCommandOutput} * @see {@link ModifyWorkspaceStateCommandInput} for command's `input` shape. * @see {@link ModifyWorkspaceStateCommandOutput} for command's `response` shape. * @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. * * @throws {@link InvalidParameterValuesException} (client fault) *

One or more parameter values are not valid.

* * @throws {@link InvalidResourceStateException} (client fault) *

The state of the resource is not valid for this operation.

* * @throws {@link OperationNotSupportedException} (client fault) *

This operation is not supported.

* * @throws {@link ResourceNotFoundException} (client fault) *

The resource could not be found.

* * @throws {@link WorkSpacesServiceException} *

Base exception class for all service exceptions from WorkSpaces service.

* * * @public */ export declare class ModifyWorkspaceStateCommand extends ModifyWorkspaceStateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyWorkspaceStateRequest; output: {}; }; sdk: { input: ModifyWorkspaceStateCommandInput; output: ModifyWorkspaceStateCommandOutput; }; }; }