Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Stops the specified WorkSpaces. The API only works with WorkSpaces that have RunningMode configured as AutoStop and the State set to AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
- stopWorkspaces :: NonEmpty StopRequest -> StopWorkspaces
- data StopWorkspaces
- swStopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest)
- stopWorkspacesResponse :: Int -> StopWorkspacesResponse
- data StopWorkspacesResponse
- srsFailedRequests :: Lens' StopWorkspacesResponse [FailedWorkspaceChangeRequest]
- srsResponseStatus :: Lens' StopWorkspacesResponse Int
Creating a Request
Creates a value of StopWorkspaces
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data StopWorkspaces Source #
See: stopWorkspaces
smart constructor.
Request Lenses
swStopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest) Source #
The requests.
Destructuring the Response
stopWorkspacesResponse Source #
Creates a value of StopWorkspacesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data StopWorkspacesResponse Source #
See: stopWorkspacesResponse
smart constructor.
Response Lenses
srsFailedRequests :: Lens' StopWorkspacesResponse [FailedWorkspaceChangeRequest] Source #
The failed requests.
srsResponseStatus :: Lens' StopWorkspacesResponse Int Source #
The response status code.