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 |
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
- data StopWorkspaces = StopWorkspaces' {}
- newStopWorkspaces :: NonEmpty StopRequest -> StopWorkspaces
- stopWorkspaces_stopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest)
- data StopWorkspacesResponse = StopWorkspacesResponse' {}
- newStopWorkspacesResponse :: Int -> StopWorkspacesResponse
- stopWorkspacesResponse_failedRequests :: Lens' StopWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest])
- stopWorkspacesResponse_httpStatus :: Lens' StopWorkspacesResponse Int
Creating a Request
data StopWorkspaces Source #
See: newStopWorkspaces
smart constructor.
StopWorkspaces' | |
|
Instances
Create a value of StopWorkspaces
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:stopWorkspaceRequests:StopWorkspaces'
, stopWorkspaces_stopWorkspaceRequests
- The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
Request Lenses
stopWorkspaces_stopWorkspaceRequests :: Lens' StopWorkspaces (NonEmpty StopRequest) Source #
The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
Destructuring the Response
data StopWorkspacesResponse Source #
See: newStopWorkspacesResponse
smart constructor.
StopWorkspacesResponse' | |
|
Instances
newStopWorkspacesResponse Source #
Create a value of StopWorkspacesResponse
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:failedRequests:StopWorkspacesResponse'
, stopWorkspacesResponse_failedRequests
- Information about the WorkSpaces that could not be stopped.
$sel:httpStatus:StopWorkspacesResponse'
, stopWorkspacesResponse_httpStatus
- The response's http status code.
Response Lenses
stopWorkspacesResponse_failedRequests :: Lens' StopWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest]) Source #
Information about the WorkSpaces that could not be stopped.
stopWorkspacesResponse_httpStatus :: Lens' StopWorkspacesResponse Int Source #
The response's http status code.