Copyright | (c) 2013-2018 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 |
Stops the specified WorkSpaces.
You cannot stop a WorkSpace unless it has a running mode of AutoStop
and a state of AVAILABLE
, IMPAIRED
, UNHEALTHY
, or ERROR
.
Synopsis
- 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:
swStopWorkspaceRequests
- The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
data StopWorkspaces Source #
See: stopWorkspaces
smart constructor.
Instances
Request Lenses
swStopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest) Source #
The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
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:
srsFailedRequests
- Information about the WorkSpaces that could not be stopped.srsResponseStatus
- -- | The response status code.
data StopWorkspacesResponse Source #
See: stopWorkspacesResponse
smart constructor.
Instances
Response Lenses
srsFailedRequests :: Lens' StopWorkspacesResponse [FailedWorkspaceChangeRequest] Source #
Information about the WorkSpaces that could not be stopped.
srsResponseStatus :: Lens' StopWorkspacesResponse Int Source #
- - | The response status code.