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 |
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.
RestoreWorkspace' | |
|
Instances
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:
$sel:workspaceId: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.
RestoreWorkspaceResponse' | |
|
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.