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 |
Rebuilds the specified WorkSpace.
You cannot rebuild a WorkSpace unless its state is AVAILABLE
, ERROR
,
UNHEALTHY
, STOPPED
, or REBOOTING
.
Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Rebuild a WorkSpace.
This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.
Synopsis
- data RebuildWorkspaces = RebuildWorkspaces' {}
- newRebuildWorkspaces :: NonEmpty RebuildRequest -> RebuildWorkspaces
- rebuildWorkspaces_rebuildWorkspaceRequests :: Lens' RebuildWorkspaces (NonEmpty RebuildRequest)
- data RebuildWorkspacesResponse = RebuildWorkspacesResponse' {}
- newRebuildWorkspacesResponse :: Int -> RebuildWorkspacesResponse
- rebuildWorkspacesResponse_failedRequests :: Lens' RebuildWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest])
- rebuildWorkspacesResponse_httpStatus :: Lens' RebuildWorkspacesResponse Int
Creating a Request
data RebuildWorkspaces Source #
See: newRebuildWorkspaces
smart constructor.
RebuildWorkspaces' | |
|
Instances
Create a value of RebuildWorkspaces
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:rebuildWorkspaceRequests:RebuildWorkspaces'
, rebuildWorkspaces_rebuildWorkspaceRequests
- The WorkSpace to rebuild. You can specify a single WorkSpace.
Request Lenses
rebuildWorkspaces_rebuildWorkspaceRequests :: Lens' RebuildWorkspaces (NonEmpty RebuildRequest) Source #
The WorkSpace to rebuild. You can specify a single WorkSpace.
Destructuring the Response
data RebuildWorkspacesResponse Source #
See: newRebuildWorkspacesResponse
smart constructor.
RebuildWorkspacesResponse' | |
|
Instances
newRebuildWorkspacesResponse Source #
Create a value of RebuildWorkspacesResponse
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:RebuildWorkspacesResponse'
, rebuildWorkspacesResponse_failedRequests
- Information about the WorkSpace that could not be rebuilt.
$sel:httpStatus:RebuildWorkspacesResponse'
, rebuildWorkspacesResponse_httpStatus
- The response's http status code.
Response Lenses
rebuildWorkspacesResponse_failedRequests :: Lens' RebuildWorkspacesResponse (Maybe [FailedWorkspaceChangeRequest]) Source #
Information about the WorkSpace that could not be rebuilt.
rebuildWorkspacesResponse_httpStatus :: Lens' RebuildWorkspacesResponse Int Source #
The response's http status code.