Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data ModifyWorkspaceState = ModifyWorkspaceState' {}
- newModifyWorkspaceState :: Text -> TargetWorkspaceState -> ModifyWorkspaceState
- modifyWorkspaceState_workspaceId :: Lens' ModifyWorkspaceState Text
- modifyWorkspaceState_workspaceState :: Lens' ModifyWorkspaceState TargetWorkspaceState
- data ModifyWorkspaceStateResponse = ModifyWorkspaceStateResponse' {
- httpStatus :: Int
- newModifyWorkspaceStateResponse :: Int -> ModifyWorkspaceStateResponse
- modifyWorkspaceStateResponse_httpStatus :: Lens' ModifyWorkspaceStateResponse Int
Creating a Request
data ModifyWorkspaceState Source #
See: newModifyWorkspaceState
smart constructor.
ModifyWorkspaceState' | |
|
Instances
newModifyWorkspaceState Source #
Create a value of ModifyWorkspaceState
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:workspaceId:ModifyWorkspaceState'
, modifyWorkspaceState_workspaceId
- The identifier of the WorkSpace.
$sel:workspaceState:ModifyWorkspaceState'
, modifyWorkspaceState_workspaceState
- The WorkSpace state.
Request Lenses
modifyWorkspaceState_workspaceId :: Lens' ModifyWorkspaceState Text Source #
The identifier of the WorkSpace.
modifyWorkspaceState_workspaceState :: Lens' ModifyWorkspaceState TargetWorkspaceState Source #
The WorkSpace state.
Destructuring the Response
data ModifyWorkspaceStateResponse Source #
See: newModifyWorkspaceStateResponse
smart constructor.
ModifyWorkspaceStateResponse' | |
|
Instances
newModifyWorkspaceStateResponse Source #
Create a value of ModifyWorkspaceStateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:ModifyWorkspaceStateResponse'
, modifyWorkspaceStateResponse_httpStatus
- The response's http status code.
Response Lenses
modifyWorkspaceStateResponse_httpStatus :: Lens' ModifyWorkspaceStateResponse Int Source #
The response's http status code.