Module Smaws_Client_WorkSpaces.ModifyWorkspaceState

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `InvalidResourceStateException of Types.invalid_resource_state_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.modify_workspace_state_request -> (Types.modify_workspace_state_result, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `InvalidResourceStateException of Types.invalid_resource_state_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceNotFoundException of Types.resource_not_found_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.modify_workspace_state_request -> (Types.modify_workspace_state_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `InvalidResourceStateException of Types.invalid_resource_state_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] * Smaws_Lib.Response.metadata) Stdlib.result