Module Smaws_Client_WorkSpaces.RestoreWorkspace

Restores the specified WorkSpace to its last known healthy state.

You cannot restore a WorkSpace unless its state is AVAILABLE, ERROR, UNHEALTHY, or STOPPED.

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

This operation is asynchronous and returns before the WorkSpace is completely restored.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidParameterValuesException of Types.invalid_parameter_values_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.restore_workspace_request -> (Types.restore_workspace_result, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidParameterValuesException of Types.invalid_parameter_values_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.restore_workspace_request -> (Types.restore_workspace_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] * Smaws_Lib.Response.metadata) Stdlib.result