| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.WorkSpaces.StopWorkspaces
Description
Stops the specified WorkSpaces. The WorkSpaces must have a running mode of AutoStop and a state of 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
Arguments
| :: NonEmpty StopRequest | |
| -> StopWorkspaces |
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:
swStopWorkspaceRequests- The requests.
data StopWorkspaces Source #
See: stopWorkspaces smart constructor.
Instances
Request Lenses
swStopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest) Source #
The requests.
Destructuring the Response
stopWorkspacesResponse Source #
Arguments
| :: Int | |
| -> StopWorkspacesResponse |
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:
srsFailedRequests- The failed requests.srsResponseStatus- -- | The response status code.
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.