CmdID / aws / aws workspaces
aws workspaces modify-workspace-state
Sets the state of the specified WorkSpace. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To modify the state of a WorkSpace
The following modify-workspace-state example sets the state of the specified WorkSpace to ADMIN_MAINTENANCE.
aws workspaces modify-workspace-state --workspace-id ws-dk1xzr417 --workspace-state ADMIN_MAINTENANCEIdentify--workspace-idThe identifier of the WorkSpace.--workspace-stateThe WorkSpace state.This command produces no output.
For more information, see WorkSpace maintenance in the Amazon WorkSpaces Administration Guide.
Options
--workspace-idThe identifier of the WorkSpace.--workspace-stateThe WorkSpace state.