Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Rebuilds the specified WorkSpaces.
Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. Rebuilding a WorkSpace causes the following to occur:
- The system is restored to the image of the bundle that the WorkSpace is created from. Any applications that have been installed, or system settings that have been made since the WorkSpace was created will be lost.
- The data drive (D drive) is re-created from the last automatic snapshot taken of the data drive. The current contents of the data drive are overwritten. Automatic snapshots of the data drive are taken every 12 hours, so the snapshot can be as much as 12 hours old.
To be able to rebuild a WorkSpace, the WorkSpace must have a State
of AVAILABLE
or ERROR
.
This operation is asynchronous and will return before the WorkSpaces have been completely rebuilt.
See: AWS API Reference for RebuildWorkspaces.
- rebuildWorkspaces :: NonEmpty RebuildRequest -> RebuildWorkspaces
- data RebuildWorkspaces
- rwRebuildWorkspaceRequests :: Lens' RebuildWorkspaces (NonEmpty RebuildRequest)
- rebuildWorkspacesResponse :: Int -> RebuildWorkspacesResponse
- data RebuildWorkspacesResponse
- rwrsFailedRequests :: Lens' RebuildWorkspacesResponse [FailedWorkspaceChangeRequest]
- rwrsStatus :: Lens' RebuildWorkspacesResponse Int
Creating a Request
Creates a value of RebuildWorkspaces
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RebuildWorkspaces Source
Contains the inputs for the RebuildWorkspaces operation.
See: rebuildWorkspaces
smart constructor.
Request Lenses
rwRebuildWorkspaceRequests :: Lens' RebuildWorkspaces (NonEmpty RebuildRequest) Source
An array of structures that specify the WorkSpaces to rebuild.
Destructuring the Response
rebuildWorkspacesResponse Source
Creates a value of RebuildWorkspacesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RebuildWorkspacesResponse Source
Contains the results of the RebuildWorkspaces operation.
See: rebuildWorkspacesResponse
smart constructor.
Response Lenses
rwrsFailedRequests :: Lens' RebuildWorkspacesResponse [FailedWorkspaceChangeRequest] Source
An array of structures that represent any WorkSpaces that could not be rebuilt.
rwrsStatus :: Lens' RebuildWorkspacesResponse Int Source
The response status code.