Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.WorkSpaces.ModifyWorkspaceState
Description
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, or rebuild. An AutoStop WorkSpace in this state is not stopped. Users can log into a WorkSpace in the ADMIN_MAINTENANCE
state.
Synopsis
- modifyWorkspaceState :: Text -> TargetWorkspaceState -> ModifyWorkspaceState
- data ModifyWorkspaceState
- mwsWorkspaceId :: Lens' ModifyWorkspaceState Text
- mwsWorkspaceState :: Lens' ModifyWorkspaceState TargetWorkspaceState
- modifyWorkspaceStateResponse :: Int -> ModifyWorkspaceStateResponse
- data ModifyWorkspaceStateResponse
- mwsrsResponseStatus :: Lens' ModifyWorkspaceStateResponse Int
Creating a Request
Creates a value of ModifyWorkspaceState
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mwsWorkspaceId
- The ID of the WorkSpace.mwsWorkspaceState
- The WorkSpace state.
data ModifyWorkspaceState Source #
See: modifyWorkspaceState
smart constructor.
Instances
Request Lenses
mwsWorkspaceId :: Lens' ModifyWorkspaceState Text Source #
The ID of the WorkSpace.
mwsWorkspaceState :: Lens' ModifyWorkspaceState TargetWorkspaceState Source #
The WorkSpace state.
Destructuring the Response
modifyWorkspaceStateResponse Source #
Arguments
:: Int | |
-> ModifyWorkspaceStateResponse |
Creates a value of ModifyWorkspaceStateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mwsrsResponseStatus
- -- | The response status code.
data ModifyWorkspaceStateResponse Source #
See: modifyWorkspaceStateResponse
smart constructor.
Instances
Response Lenses
mwsrsResponseStatus :: Lens' ModifyWorkspaceStateResponse Int Source #
- - | The response status code.