| 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.RestoreWorkspace
Description
Restores the specified WorkSpace to its last known healthy state.
You cannot restore a WorkSpace unless its state is AVAILABLE,
ERROR, UNHEALTHY, or STOPPED.
Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace.
This operation is asynchronous and returns before the WorkSpace is completely restored.
Synopsis
- data RestoreWorkspace = RestoreWorkspace' {
- workspaceId :: Text
- newRestoreWorkspace :: Text -> RestoreWorkspace
- restoreWorkspace_workspaceId :: Lens' RestoreWorkspace Text
- data RestoreWorkspaceResponse = RestoreWorkspaceResponse' {
- httpStatus :: Int
- newRestoreWorkspaceResponse :: Int -> RestoreWorkspaceResponse
- restoreWorkspaceResponse_httpStatus :: Lens' RestoreWorkspaceResponse Int
Creating a Request
data RestoreWorkspace Source #
See: newRestoreWorkspace smart constructor.
Constructors
| RestoreWorkspace' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RestoreWorkspace |
Create a value of RestoreWorkspace 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:
RestoreWorkspace, restoreWorkspace_workspaceId - The identifier of the WorkSpace.
Request Lenses
restoreWorkspace_workspaceId :: Lens' RestoreWorkspace Text Source #
The identifier of the WorkSpace.
Destructuring the Response
data RestoreWorkspaceResponse Source #
See: newRestoreWorkspaceResponse smart constructor.
Constructors
| RestoreWorkspaceResponse' | |
Fields
| |
Instances
newRestoreWorkspaceResponse Source #
Create a value of RestoreWorkspaceResponse 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:httpStatus:RestoreWorkspaceResponse', restoreWorkspaceResponse_httpStatus - The response's http status code.
Response Lenses
restoreWorkspaceResponse_httpStatus :: Lens' RestoreWorkspaceResponse Int Source #
The response's http status code.