| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkSpaces.StopWorkspaces
Description
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.
Constructors
| StopWorkspaces' | |
Fields
| |
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.
Constructors
| StopWorkspacesResponse' | |
Fields
| |
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.