v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465336243.7 KB

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.

post/#X-Amz-Target=WorkspacesService.ModifyWorkspaceState

Headers

X-Amz-Target'WorkspacesService.ModifyWorkspaceState' required

Request body

WorkspaceIdstring required

The identifier of the WorkSpace.

WorkspaceState'AVAILABLE' | 'ADMIN_MAINTENANCE' required

The WorkSpace state.

Response

Success

ModifyWorkspaceStateResult required