Skip to content

Commit 00ef02c

Browse files
author
AWS
committed
Amazon WorkSpaces Update: Adds the WorkSpaces restore feature
1 parent d8edb0a commit 00ef02c

File tree

2 files changed

+89
-1
lines changed

2 files changed

+89
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon WorkSpaces",
4+
"description": "Adds the WorkSpaces restore feature"
5+
}

services/workspaces/src/main/resources/codegen-resources/service-2.json

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,21 @@
264264
],
265265
"documentation":"<p>Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described. </p>"
266266
},
267+
"DescribeWorkspaceSnapshots":{
268+
"name":"DescribeWorkspaceSnapshots",
269+
"http":{
270+
"method":"POST",
271+
"requestUri":"/"
272+
},
273+
"input":{"shape":"DescribeWorkspaceSnapshotsRequest"},
274+
"output":{"shape":"DescribeWorkspaceSnapshotsResult"},
275+
"errors":[
276+
{"shape":"InvalidParameterValuesException"},
277+
{"shape":"ResourceNotFoundException"},
278+
{"shape":"AccessDeniedException"}
279+
],
280+
"documentation":"<p>Describes the snapshots for the specified WorkSpace.</p>"
281+
},
267282
"DescribeWorkspaces":{
268283
"name":"DescribeWorkspaces",
269284
"http":{
@@ -425,6 +440,21 @@
425440
"output":{"shape":"RebuildWorkspacesResult"},
426441
"documentation":"<p>Rebuilds the specified WorkSpace.</p> <p>You cannot rebuild a WorkSpace unless its state is <code>AVAILABLE</code>, <code>ERROR</code>, or <code>UNHEALTHY</code>.</p> <p>Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see <a href=\"https://docs.aws.amazon.com/workspaces/latest/adminguide/reset-workspace.html\">Rebuild a WorkSpace</a>.</p> <p>This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt.</p>"
427442
},
443+
"RestoreWorkspace":{
444+
"name":"RestoreWorkspace",
445+
"http":{
446+
"method":"POST",
447+
"requestUri":"/"
448+
},
449+
"input":{"shape":"RestoreWorkspaceRequest"},
450+
"output":{"shape":"RestoreWorkspaceResult"},
451+
"errors":[
452+
{"shape":"InvalidParameterValuesException"},
453+
{"shape":"ResourceNotFoundException"},
454+
{"shape":"AccessDeniedException"}
455+
],
456+
"documentation":"<p>Restores the specified WorkSpace to its last known healthy state.</p> <p>You cannot restore a WorkSpace unless its state is <code> AVAILABLE</code>, <code>ERROR</code>, or <code>UNHEALTHY</code>.</p> <p>Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see <a href=\"https://docs.aws.amazon.com/workspaces/latest/adminguide/restore-workspace.html\">Restore a WorkSpace</a>.</p> <p>This operation is asynchronous and returns before the WorkSpace is completely restored.</p>"
457+
},
428458
"RevokeIpRules":{
429459
"name":"RevokeIpRules",
430460
"http":{
@@ -1071,6 +1101,29 @@
10711101
}
10721102
}
10731103
},
1104+
"DescribeWorkspaceSnapshotsRequest":{
1105+
"type":"structure",
1106+
"required":["WorkspaceId"],
1107+
"members":{
1108+
"WorkspaceId":{
1109+
"shape":"WorkspaceId",
1110+
"documentation":"<p>The identifier of the WorkSpace.</p>"
1111+
}
1112+
}
1113+
},
1114+
"DescribeWorkspaceSnapshotsResult":{
1115+
"type":"structure",
1116+
"members":{
1117+
"RebuildSnapshots":{
1118+
"shape":"SnapshotList",
1119+
"documentation":"<p>Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the root volume.</p>"
1120+
},
1121+
"RestoreSnapshots":{
1122+
"shape":"SnapshotList",
1123+
"documentation":"<p>Information about the snapshots that can be used to restore a WorkSpace. These snapshots include both the root volume and the user volume.</p>"
1124+
}
1125+
}
1126+
},
10741127
"DescribeWorkspacesConnectionStatusRequest":{
10751128
"type":"structure",
10761129
"members":{
@@ -1245,7 +1298,7 @@
12451298
"documentation":"<p>The text of the error message that is returned if the WorkSpace cannot be rebooted.</p>"
12461299
}
12471300
},
1248-
"documentation":"<p>Describes a WorkSpace that could not be rebooted. (<a>RebootWorkspaces</a>), rebuilt (<a>RebuildWorkspaces</a>), terminated (<a>TerminateWorkspaces</a>), started (<a>StartWorkspaces</a>), or stopped (<a>StopWorkspaces</a>).</p>"
1301+
"documentation":"<p>Describes a WorkSpace that could not be rebooted. (<a>RebootWorkspaces</a>), rebuilt (<a>RebuildWorkspaces</a>), restored (<a>RestoreWorkspace</a>), terminated (<a>TerminateWorkspaces</a>), started (<a>StartWorkspaces</a>), or stopped (<a>StopWorkspaces</a>).</p>"
12491302
},
12501303
"ImportWorkspaceImageRequest":{
12511304
"type":"structure",
@@ -1706,6 +1759,21 @@
17061759
"documentation":"<p>The specified resource is not available.</p>",
17071760
"exception":true
17081761
},
1762+
"RestoreWorkspaceRequest":{
1763+
"type":"structure",
1764+
"required":["WorkspaceId"],
1765+
"members":{
1766+
"WorkspaceId":{
1767+
"shape":"WorkspaceId",
1768+
"documentation":"<p>The identifier of the WorkSpace.</p>"
1769+
}
1770+
}
1771+
},
1772+
"RestoreWorkspaceResult":{
1773+
"type":"structure",
1774+
"members":{
1775+
}
1776+
},
17091777
"RevokeIpRulesRequest":{
17101778
"type":"structure",
17111779
"required":[
@@ -1751,6 +1819,20 @@
17511819
"type":"string",
17521820
"pattern":"^(sg-[0-9a-f]{8})$"
17531821
},
1822+
"Snapshot":{
1823+
"type":"structure",
1824+
"members":{
1825+
"SnapshotTime":{
1826+
"shape":"Timestamp",
1827+
"documentation":"<p>The time when the snapshot was created.</p>"
1828+
}
1829+
},
1830+
"documentation":"<p>Describes a snapshot.</p>"
1831+
},
1832+
"SnapshotList":{
1833+
"type":"list",
1834+
"member":{"shape":"Snapshot"}
1835+
},
17541836
"StartRequest":{
17551837
"type":"structure",
17561838
"members":{
@@ -2341,6 +2423,7 @@
23412423
"REBOOTING",
23422424
"STARTING",
23432425
"REBUILDING",
2426+
"RESTORING",
23442427
"MAINTENANCE",
23452428
"ADMIN_MAINTENANCE",
23462429
"TERMINATING",

0 commit comments

Comments
 (0)