| 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.RebootWorkspaces
Description
Reboots the specified WorkSpaces.
You cannot reboot a WorkSpace unless its state is AVAILABLE or
UNHEALTHY.
This operation is asynchronous and returns before the WorkSpaces have rebooted.
Synopsis
- data RebootWorkspaces = RebootWorkspaces' {}
- newRebootWorkspaces :: NonEmpty RebootRequest -> RebootWorkspaces
- rebootWorkspaces_rebootWorkspaceRequests :: Lens' RebootWorkspaces (NonEmpty RebootRequest)
- data RebootWorkspacesResponse = RebootWorkspacesResponse' {}
- newRebootWorkspacesResponse :: Int -> RebootWorkspacesResponse
- rebootWorkspacesResponse_failedRequests :: Lens' RebootWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest])
- rebootWorkspacesResponse_httpStatus :: Lens' RebootWorkspacesResponse Int
Creating a Request
data RebootWorkspaces Source #
See: newRebootWorkspaces smart constructor.
Constructors
| RebootWorkspaces' | |
Fields
| |
Instances
Create a value of RebootWorkspaces 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:rebootWorkspaceRequests:RebootWorkspaces', rebootWorkspaces_rebootWorkspaceRequests - The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
Request Lenses
rebootWorkspaces_rebootWorkspaceRequests :: Lens' RebootWorkspaces (NonEmpty RebootRequest) Source #
The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
Destructuring the Response
data RebootWorkspacesResponse Source #
See: newRebootWorkspacesResponse smart constructor.
Constructors
| RebootWorkspacesResponse' | |
Fields
| |
Instances
newRebootWorkspacesResponse Source #
Create a value of RebootWorkspacesResponse 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:RebootWorkspacesResponse', rebootWorkspacesResponse_failedRequests - Information about the WorkSpaces that could not be rebooted.
$sel:httpStatus:RebootWorkspacesResponse', rebootWorkspacesResponse_httpStatus - The response's http status code.
Response Lenses
rebootWorkspacesResponse_failedRequests :: Lens' RebootWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest]) Source #
Information about the WorkSpaces that could not be rebooted.
rebootWorkspacesResponse_httpStatus :: Lens' RebootWorkspacesResponse Int Source #
The response's http status code.