@aws-sdk/client-backup 3.458.0 → 3.459.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/Backup.js +28 -0
  3. package/dist-cjs/commands/CreateRestoreTestingPlanCommand.js +52 -0
  4. package/dist-cjs/commands/CreateRestoreTestingSelectionCommand.js +52 -0
  5. package/dist-cjs/commands/DeleteRestoreTestingPlanCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteRestoreTestingSelectionCommand.js +51 -0
  7. package/dist-cjs/commands/GetRestoreJobMetadataCommand.js +52 -0
  8. package/dist-cjs/commands/GetRestoreTestingInferredMetadataCommand.js +51 -0
  9. package/dist-cjs/commands/GetRestoreTestingPlanCommand.js +51 -0
  10. package/dist-cjs/commands/GetRestoreTestingSelectionCommand.js +52 -0
  11. package/dist-cjs/commands/ListRestoreJobsByProtectedResourceCommand.js +51 -0
  12. package/dist-cjs/commands/ListRestoreTestingPlansCommand.js +51 -0
  13. package/dist-cjs/commands/ListRestoreTestingSelectionsCommand.js +51 -0
  14. package/dist-cjs/commands/PutRestoreValidationResultCommand.js +51 -0
  15. package/dist-cjs/commands/UpdateRestoreTestingPlanCommand.js +51 -0
  16. package/dist-cjs/commands/UpdateRestoreTestingSelectionCommand.js +52 -0
  17. package/dist-cjs/commands/index.js +14 -0
  18. package/dist-cjs/models/models_0.js +67 -1
  19. package/dist-cjs/pagination/ListRestoreJobsByProtectedResourcePaginator.js +29 -0
  20. package/dist-cjs/pagination/ListRestoreTestingPlansPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListRestoreTestingSelectionsPaginator.js +29 -0
  22. package/dist-cjs/pagination/index.js +3 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +1059 -71
  24. package/dist-es/Backup.js +28 -0
  25. package/dist-es/commands/CreateRestoreTestingPlanCommand.js +48 -0
  26. package/dist-es/commands/CreateRestoreTestingSelectionCommand.js +48 -0
  27. package/dist-es/commands/DeleteRestoreTestingPlanCommand.js +47 -0
  28. package/dist-es/commands/DeleteRestoreTestingSelectionCommand.js +47 -0
  29. package/dist-es/commands/GetRestoreJobMetadataCommand.js +48 -0
  30. package/dist-es/commands/GetRestoreTestingInferredMetadataCommand.js +47 -0
  31. package/dist-es/commands/GetRestoreTestingPlanCommand.js +47 -0
  32. package/dist-es/commands/GetRestoreTestingSelectionCommand.js +48 -0
  33. package/dist-es/commands/ListRestoreJobsByProtectedResourceCommand.js +47 -0
  34. package/dist-es/commands/ListRestoreTestingPlansCommand.js +47 -0
  35. package/dist-es/commands/ListRestoreTestingSelectionsCommand.js +47 -0
  36. package/dist-es/commands/PutRestoreValidationResultCommand.js +47 -0
  37. package/dist-es/commands/UpdateRestoreTestingPlanCommand.js +47 -0
  38. package/dist-es/commands/UpdateRestoreTestingSelectionCommand.js +48 -0
  39. package/dist-es/commands/index.js +14 -0
  40. package/dist-es/models/models_0.js +57 -0
  41. package/dist-es/pagination/ListRestoreJobsByProtectedResourcePaginator.js +25 -0
  42. package/dist-es/pagination/ListRestoreTestingPlansPaginator.js +25 -0
  43. package/dist-es/pagination/ListRestoreTestingSelectionsPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +3 -0
  45. package/dist-es/protocols/Aws_restJson1.js +1023 -63
  46. package/dist-types/Backup.d.ts +98 -0
  47. package/dist-types/BackupClient.d.ts +16 -2
  48. package/dist-types/commands/CreateBackupPlanCommand.d.ts +2 -0
  49. package/dist-types/commands/CreateRestoreTestingPlanCommand.d.ts +122 -0
  50. package/dist-types/commands/CreateRestoreTestingSelectionCommand.d.ts +146 -0
  51. package/dist-types/commands/DeleteRestoreTestingPlanCommand.d.ts +80 -0
  52. package/dist-types/commands/DeleteRestoreTestingSelectionCommand.d.ts +81 -0
  53. package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -0
  54. package/dist-types/commands/DescribeProtectedResourceCommand.d.ts +5 -0
  55. package/dist-types/commands/DescribeRecoveryPointCommand.d.ts +1 -0
  56. package/dist-types/commands/DescribeRestoreJobCommand.d.ts +8 -0
  57. package/dist-types/commands/GetBackupPlanCommand.d.ts +2 -0
  58. package/dist-types/commands/GetBackupPlanFromJSONCommand.d.ts +2 -0
  59. package/dist-types/commands/GetBackupPlanFromTemplateCommand.d.ts +2 -0
  60. package/dist-types/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +1 -0
  61. package/dist-types/commands/GetRestoreJobMetadataCommand.d.ts +89 -0
  62. package/dist-types/commands/GetRestoreTestingInferredMetadataCommand.d.ts +93 -0
  63. package/dist-types/commands/GetRestoreTestingPlanCommand.d.ts +104 -0
  64. package/dist-types/commands/GetRestoreTestingSelectionCommand.d.ts +109 -0
  65. package/dist-types/commands/ListBackupJobsCommand.d.ts +1 -0
  66. package/dist-types/commands/ListProtectedResourcesByBackupVaultCommand.d.ts +2 -0
  67. package/dist-types/commands/ListProtectedResourcesCommand.d.ts +2 -0
  68. package/dist-types/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +1 -0
  69. package/dist-types/commands/ListRestoreJobsByProtectedResourceCommand.d.ts +120 -0
  70. package/dist-types/commands/ListRestoreJobsCommand.d.ts +9 -0
  71. package/dist-types/commands/ListRestoreTestingPlansCommand.d.ts +93 -0
  72. package/dist-types/commands/ListRestoreTestingSelectionsCommand.d.ts +96 -0
  73. package/dist-types/commands/PutRestoreValidationResultCommand.d.ts +94 -0
  74. package/dist-types/commands/StartBackupJobCommand.d.ts +1 -0
  75. package/dist-types/commands/StartCopyJobCommand.d.ts +1 -0
  76. package/dist-types/commands/UpdateBackupPlanCommand.d.ts +2 -0
  77. package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +2 -0
  78. package/dist-types/commands/UpdateRestoreTestingPlanCommand.d.ts +142 -0
  79. package/dist-types/commands/UpdateRestoreTestingSelectionCommand.d.ts +126 -0
  80. package/dist-types/commands/index.d.ts +14 -0
  81. package/dist-types/models/models_0.d.ts +1481 -78
  82. package/dist-types/pagination/ListRestoreJobsByProtectedResourcePaginator.d.ts +7 -0
  83. package/dist-types/pagination/ListRestoreTestingPlansPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListRestoreTestingSelectionsPaginator.d.ts +7 -0
  85. package/dist-types/pagination/index.d.ts +3 -0
  86. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  87. package/dist-types/ts3.4/Backup.d.ts +250 -0
  88. package/dist-types/ts3.4/BackupClient.d.ts +86 -2
  89. package/dist-types/ts3.4/commands/CreateRestoreTestingPlanCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/CreateRestoreTestingSelectionCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/DeleteRestoreTestingPlanCommand.d.ts +38 -0
  92. package/dist-types/ts3.4/commands/DeleteRestoreTestingSelectionCommand.d.ts +38 -0
  93. package/dist-types/ts3.4/commands/GetRestoreJobMetadataCommand.d.ts +42 -0
  94. package/dist-types/ts3.4/commands/GetRestoreTestingInferredMetadataCommand.d.ts +42 -0
  95. package/dist-types/ts3.4/commands/GetRestoreTestingPlanCommand.d.ts +42 -0
  96. package/dist-types/ts3.4/commands/GetRestoreTestingSelectionCommand.d.ts +42 -0
  97. package/dist-types/ts3.4/commands/ListRestoreJobsByProtectedResourceCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/ListRestoreTestingPlansCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/ListRestoreTestingSelectionsCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/PutRestoreValidationResultCommand.d.ts +38 -0
  101. package/dist-types/ts3.4/commands/UpdateRestoreTestingPlanCommand.d.ts +42 -0
  102. package/dist-types/ts3.4/commands/UpdateRestoreTestingSelectionCommand.d.ts +42 -0
  103. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  104. package/dist-types/ts3.4/models/models_0.d.ts +276 -0
  105. package/dist-types/ts3.4/pagination/ListRestoreJobsByProtectedResourcePaginator.d.ts +11 -0
  106. package/dist-types/ts3.4/pagination/ListRestoreTestingPlansPaginator.d.ts +11 -0
  107. package/dist-types/ts3.4/pagination/ListRestoreTestingSelectionsPaginator.d.ts +11 -0
  108. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  109. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  110. package/package.json +1 -1
@@ -189,6 +189,51 @@ export const se_CreateReportPlanCommand = async (input, context) => {
189
189
  body,
190
190
  });
191
191
  };
192
+ export const se_CreateRestoreTestingPlanCommand = async (input, context) => {
193
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
194
+ const headers = {
195
+ "content-type": "application/json",
196
+ };
197
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/plans";
198
+ let body;
199
+ body = JSON.stringify(take(input, {
200
+ CreatorRequestId: [],
201
+ RestoreTestingPlan: (_) => _json(_),
202
+ Tags: (_) => _json(_),
203
+ }));
204
+ return new __HttpRequest({
205
+ protocol,
206
+ hostname,
207
+ port,
208
+ method: "PUT",
209
+ headers,
210
+ path: resolvedPath,
211
+ body,
212
+ });
213
+ };
214
+ export const se_CreateRestoreTestingSelectionCommand = async (input, context) => {
215
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
+ const headers = {
217
+ "content-type": "application/json",
218
+ };
219
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
220
+ "/restore-testing/plans/{RestoreTestingPlanName}/selections";
221
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
222
+ let body;
223
+ body = JSON.stringify(take(input, {
224
+ CreatorRequestId: [],
225
+ RestoreTestingSelection: (_) => _json(_),
226
+ }));
227
+ return new __HttpRequest({
228
+ protocol,
229
+ hostname,
230
+ port,
231
+ method: "PUT",
232
+ headers,
233
+ path: resolvedPath,
234
+ body,
235
+ });
236
+ };
192
237
  export const se_DeleteBackupPlanCommand = async (input, context) => {
193
238
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
194
239
  const headers = {};
@@ -340,6 +385,41 @@ export const se_DeleteReportPlanCommand = async (input, context) => {
340
385
  body,
341
386
  });
342
387
  };
388
+ export const se_DeleteRestoreTestingPlanCommand = async (input, context) => {
389
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
390
+ const headers = {};
391
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
392
+ "/restore-testing/plans/{RestoreTestingPlanName}";
393
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
394
+ let body;
395
+ return new __HttpRequest({
396
+ protocol,
397
+ hostname,
398
+ port,
399
+ method: "DELETE",
400
+ headers,
401
+ path: resolvedPath,
402
+ body,
403
+ });
404
+ };
405
+ export const se_DeleteRestoreTestingSelectionCommand = async (input, context) => {
406
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const headers = {};
408
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
409
+ "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}";
410
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
411
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
412
+ let body;
413
+ return new __HttpRequest({
414
+ protocol,
415
+ hostname,
416
+ port,
417
+ method: "DELETE",
418
+ headers,
419
+ path: resolvedPath,
420
+ body,
421
+ });
422
+ };
343
423
  export const se_DescribeBackupJobCommand = async (input, context) => {
344
424
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
345
425
  const headers = {};
@@ -729,6 +809,78 @@ export const se_GetRecoveryPointRestoreMetadataCommand = async (input, context)
729
809
  body,
730
810
  });
731
811
  };
812
+ export const se_GetRestoreJobMetadataCommand = async (input, context) => {
813
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
814
+ const headers = {};
815
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}/metadata";
816
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
817
+ let body;
818
+ return new __HttpRequest({
819
+ protocol,
820
+ hostname,
821
+ port,
822
+ method: "GET",
823
+ headers,
824
+ path: resolvedPath,
825
+ body,
826
+ });
827
+ };
828
+ export const se_GetRestoreTestingInferredMetadataCommand = async (input, context) => {
829
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
830
+ const headers = {};
831
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/inferred-metadata";
832
+ const query = map({
833
+ BackupVaultAccountId: [, input.BackupVaultAccountId],
834
+ BackupVaultName: [, __expectNonNull(input.BackupVaultName, `BackupVaultName`)],
835
+ RecoveryPointArn: [, __expectNonNull(input.RecoveryPointArn, `RecoveryPointArn`)],
836
+ });
837
+ let body;
838
+ return new __HttpRequest({
839
+ protocol,
840
+ hostname,
841
+ port,
842
+ method: "GET",
843
+ headers,
844
+ path: resolvedPath,
845
+ query,
846
+ body,
847
+ });
848
+ };
849
+ export const se_GetRestoreTestingPlanCommand = async (input, context) => {
850
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
851
+ const headers = {};
852
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
853
+ "/restore-testing/plans/{RestoreTestingPlanName}";
854
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
855
+ let body;
856
+ return new __HttpRequest({
857
+ protocol,
858
+ hostname,
859
+ port,
860
+ method: "GET",
861
+ headers,
862
+ path: resolvedPath,
863
+ body,
864
+ });
865
+ };
866
+ export const se_GetRestoreTestingSelectionCommand = async (input, context) => {
867
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
+ const headers = {};
869
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
870
+ "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}";
871
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
872
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
873
+ let body;
874
+ return new __HttpRequest({
875
+ protocol,
876
+ hostname,
877
+ port,
878
+ method: "GET",
879
+ headers,
880
+ path: resolvedPath,
881
+ body,
882
+ });
883
+ };
732
884
  export const se_GetSupportedResourceTypesCommand = async (input, context) => {
733
885
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
734
886
  const headers = {
@@ -1224,6 +1376,37 @@ export const se_ListRestoreJobsCommand = async (input, context) => {
1224
1376
  () => input.ByCompleteAfter !== void 0,
1225
1377
  () => (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
1226
1378
  ],
1379
+ restoreTestingPlanArn: [, input.ByRestoreTestingPlanArn],
1380
+ });
1381
+ let body;
1382
+ return new __HttpRequest({
1383
+ protocol,
1384
+ hostname,
1385
+ port,
1386
+ method: "GET",
1387
+ headers,
1388
+ path: resolvedPath,
1389
+ query,
1390
+ body,
1391
+ });
1392
+ };
1393
+ export const se_ListRestoreJobsByProtectedResourceCommand = async (input, context) => {
1394
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1395
+ const headers = {};
1396
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/restore-jobs";
1397
+ resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1398
+ const query = map({
1399
+ status: [, input.ByStatus],
1400
+ recoveryPointCreationDateAfter: [
1401
+ () => input.ByRecoveryPointCreationDateAfter !== void 0,
1402
+ () => (input.ByRecoveryPointCreationDateAfter.toISOString().split(".")[0] + "Z").toString(),
1403
+ ],
1404
+ recoveryPointCreationDateBefore: [
1405
+ () => input.ByRecoveryPointCreationDateBefore !== void 0,
1406
+ () => (input.ByRecoveryPointCreationDateBefore.toISOString().split(".")[0] + "Z").toString(),
1407
+ ],
1408
+ nextToken: [, input.NextToken],
1409
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1227
1410
  });
1228
1411
  let body;
1229
1412
  return new __HttpRequest({
@@ -1261,6 +1444,48 @@ export const se_ListRestoreJobSummariesCommand = async (input, context) => {
1261
1444
  body,
1262
1445
  });
1263
1446
  };
1447
+ export const se_ListRestoreTestingPlansCommand = async (input, context) => {
1448
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1449
+ const headers = {};
1450
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/plans";
1451
+ const query = map({
1452
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1453
+ NextToken: [, input.NextToken],
1454
+ });
1455
+ let body;
1456
+ return new __HttpRequest({
1457
+ protocol,
1458
+ hostname,
1459
+ port,
1460
+ method: "GET",
1461
+ headers,
1462
+ path: resolvedPath,
1463
+ query,
1464
+ body,
1465
+ });
1466
+ };
1467
+ export const se_ListRestoreTestingSelectionsCommand = async (input, context) => {
1468
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1469
+ const headers = {};
1470
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1471
+ "/restore-testing/plans/{RestoreTestingPlanName}/selections";
1472
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
1473
+ const query = map({
1474
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1475
+ NextToken: [, input.NextToken],
1476
+ });
1477
+ let body;
1478
+ return new __HttpRequest({
1479
+ protocol,
1480
+ hostname,
1481
+ port,
1482
+ method: "GET",
1483
+ headers,
1484
+ path: resolvedPath,
1485
+ query,
1486
+ body,
1487
+ });
1488
+ };
1264
1489
  export const se_ListTagsCommand = async (input, context) => {
1265
1490
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1266
1491
  const headers = {};
@@ -1351,6 +1576,28 @@ export const se_PutBackupVaultNotificationsCommand = async (input, context) => {
1351
1576
  body,
1352
1577
  });
1353
1578
  };
1579
+ export const se_PutRestoreValidationResultCommand = async (input, context) => {
1580
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1581
+ const headers = {
1582
+ "content-type": "application/json",
1583
+ };
1584
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}/validations";
1585
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
1586
+ let body;
1587
+ body = JSON.stringify(take(input, {
1588
+ ValidationStatus: [],
1589
+ ValidationStatusMessage: [],
1590
+ }));
1591
+ return new __HttpRequest({
1592
+ protocol,
1593
+ hostname,
1594
+ port,
1595
+ method: "PUT",
1596
+ headers,
1597
+ path: resolvedPath,
1598
+ body,
1599
+ });
1600
+ };
1354
1601
  export const se_StartBackupJobCommand = async (input, context) => {
1355
1602
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1356
1603
  const headers = {
@@ -1640,6 +1887,51 @@ export const se_UpdateReportPlanCommand = async (input, context) => {
1640
1887
  body,
1641
1888
  });
1642
1889
  };
1890
+ export const se_UpdateRestoreTestingPlanCommand = async (input, context) => {
1891
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1892
+ const headers = {
1893
+ "content-type": "application/json",
1894
+ };
1895
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1896
+ "/restore-testing/plans/{RestoreTestingPlanName}";
1897
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
1898
+ let body;
1899
+ body = JSON.stringify(take(input, {
1900
+ RestoreTestingPlan: (_) => _json(_),
1901
+ }));
1902
+ return new __HttpRequest({
1903
+ protocol,
1904
+ hostname,
1905
+ port,
1906
+ method: "PUT",
1907
+ headers,
1908
+ path: resolvedPath,
1909
+ body,
1910
+ });
1911
+ };
1912
+ export const se_UpdateRestoreTestingSelectionCommand = async (input, context) => {
1913
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1914
+ const headers = {
1915
+ "content-type": "application/json",
1916
+ };
1917
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1918
+ "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}";
1919
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
1920
+ resolvedPath = __resolvedPath(resolvedPath, input, "RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
1921
+ let body;
1922
+ body = JSON.stringify(take(input, {
1923
+ RestoreTestingSelection: (_) => _json(_),
1924
+ }));
1925
+ return new __HttpRequest({
1926
+ protocol,
1927
+ hostname,
1928
+ port,
1929
+ method: "PUT",
1930
+ headers,
1931
+ path: resolvedPath,
1932
+ body,
1933
+ });
1934
+ };
1643
1935
  export const de_CancelLegalHoldCommand = async (output, context) => {
1644
1936
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1645
1937
  return de_CancelLegalHoldCommandError(output, context);
@@ -2016,36 +2308,137 @@ const de_CreateReportPlanCommandError = async (output, context) => {
2016
2308
  });
2017
2309
  }
2018
2310
  };
2019
- export const de_DeleteBackupPlanCommand = async (output, context) => {
2020
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2021
- return de_DeleteBackupPlanCommandError(output, context);
2311
+ export const de_CreateRestoreTestingPlanCommand = async (output, context) => {
2312
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
2313
+ return de_CreateRestoreTestingPlanCommandError(output, context);
2022
2314
  }
2023
2315
  const contents = map({
2024
2316
  $metadata: deserializeMetadata(output),
2025
2317
  });
2026
2318
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2027
2319
  const doc = take(data, {
2028
- BackupPlanArn: __expectString,
2029
- BackupPlanId: __expectString,
2030
- DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2031
- VersionId: __expectString,
2320
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2321
+ RestoreTestingPlanArn: __expectString,
2322
+ RestoreTestingPlanName: __expectString,
2032
2323
  });
2033
2324
  Object.assign(contents, doc);
2034
2325
  return contents;
2035
2326
  };
2036
- const de_DeleteBackupPlanCommandError = async (output, context) => {
2327
+ const de_CreateRestoreTestingPlanCommandError = async (output, context) => {
2037
2328
  const parsedOutput = {
2038
2329
  ...output,
2039
2330
  body: await parseErrorBody(output.body, context),
2040
2331
  };
2041
2332
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2042
2333
  switch (errorCode) {
2334
+ case "AlreadyExistsException":
2335
+ case "com.amazonaws.backup#AlreadyExistsException":
2336
+ throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
2337
+ case "ConflictException":
2338
+ case "com.amazonaws.backup#ConflictException":
2339
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2043
2340
  case "InvalidParameterValueException":
2044
2341
  case "com.amazonaws.backup#InvalidParameterValueException":
2045
2342
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2046
- case "InvalidRequestException":
2047
- case "com.amazonaws.backup#InvalidRequestException":
2048
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2343
+ case "LimitExceededException":
2344
+ case "com.amazonaws.backup#LimitExceededException":
2345
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2346
+ case "MissingParameterValueException":
2347
+ case "com.amazonaws.backup#MissingParameterValueException":
2348
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
2349
+ case "ServiceUnavailableException":
2350
+ case "com.amazonaws.backup#ServiceUnavailableException":
2351
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2352
+ default:
2353
+ const parsedBody = parsedOutput.body;
2354
+ return throwDefaultError({
2355
+ output,
2356
+ parsedBody,
2357
+ errorCode,
2358
+ });
2359
+ }
2360
+ };
2361
+ export const de_CreateRestoreTestingSelectionCommand = async (output, context) => {
2362
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
2363
+ return de_CreateRestoreTestingSelectionCommandError(output, context);
2364
+ }
2365
+ const contents = map({
2366
+ $metadata: deserializeMetadata(output),
2367
+ });
2368
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2369
+ const doc = take(data, {
2370
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2371
+ RestoreTestingPlanArn: __expectString,
2372
+ RestoreTestingPlanName: __expectString,
2373
+ RestoreTestingSelectionName: __expectString,
2374
+ });
2375
+ Object.assign(contents, doc);
2376
+ return contents;
2377
+ };
2378
+ const de_CreateRestoreTestingSelectionCommandError = async (output, context) => {
2379
+ const parsedOutput = {
2380
+ ...output,
2381
+ body: await parseErrorBody(output.body, context),
2382
+ };
2383
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2384
+ switch (errorCode) {
2385
+ case "AlreadyExistsException":
2386
+ case "com.amazonaws.backup#AlreadyExistsException":
2387
+ throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
2388
+ case "InvalidParameterValueException":
2389
+ case "com.amazonaws.backup#InvalidParameterValueException":
2390
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2391
+ case "LimitExceededException":
2392
+ case "com.amazonaws.backup#LimitExceededException":
2393
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2394
+ case "MissingParameterValueException":
2395
+ case "com.amazonaws.backup#MissingParameterValueException":
2396
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
2397
+ case "ResourceNotFoundException":
2398
+ case "com.amazonaws.backup#ResourceNotFoundException":
2399
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2400
+ case "ServiceUnavailableException":
2401
+ case "com.amazonaws.backup#ServiceUnavailableException":
2402
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2403
+ default:
2404
+ const parsedBody = parsedOutput.body;
2405
+ return throwDefaultError({
2406
+ output,
2407
+ parsedBody,
2408
+ errorCode,
2409
+ });
2410
+ }
2411
+ };
2412
+ export const de_DeleteBackupPlanCommand = async (output, context) => {
2413
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2414
+ return de_DeleteBackupPlanCommandError(output, context);
2415
+ }
2416
+ const contents = map({
2417
+ $metadata: deserializeMetadata(output),
2418
+ });
2419
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2420
+ const doc = take(data, {
2421
+ BackupPlanArn: __expectString,
2422
+ BackupPlanId: __expectString,
2423
+ DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2424
+ VersionId: __expectString,
2425
+ });
2426
+ Object.assign(contents, doc);
2427
+ return contents;
2428
+ };
2429
+ const de_DeleteBackupPlanCommandError = async (output, context) => {
2430
+ const parsedOutput = {
2431
+ ...output,
2432
+ body: await parseErrorBody(output.body, context),
2433
+ };
2434
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2435
+ switch (errorCode) {
2436
+ case "InvalidParameterValueException":
2437
+ case "com.amazonaws.backup#InvalidParameterValueException":
2438
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2439
+ case "InvalidRequestException":
2440
+ case "com.amazonaws.backup#InvalidRequestException":
2441
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2049
2442
  case "MissingParameterValueException":
2050
2443
  case "com.amazonaws.backup#MissingParameterValueException":
2051
2444
  throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
@@ -2386,6 +2779,70 @@ const de_DeleteReportPlanCommandError = async (output, context) => {
2386
2779
  });
2387
2780
  }
2388
2781
  };
2782
+ export const de_DeleteRestoreTestingPlanCommand = async (output, context) => {
2783
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2784
+ return de_DeleteRestoreTestingPlanCommandError(output, context);
2785
+ }
2786
+ const contents = map({
2787
+ $metadata: deserializeMetadata(output),
2788
+ });
2789
+ await collectBody(output.body, context);
2790
+ return contents;
2791
+ };
2792
+ const de_DeleteRestoreTestingPlanCommandError = async (output, context) => {
2793
+ const parsedOutput = {
2794
+ ...output,
2795
+ body: await parseErrorBody(output.body, context),
2796
+ };
2797
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2798
+ switch (errorCode) {
2799
+ case "InvalidRequestException":
2800
+ case "com.amazonaws.backup#InvalidRequestException":
2801
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2802
+ case "ServiceUnavailableException":
2803
+ case "com.amazonaws.backup#ServiceUnavailableException":
2804
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2805
+ default:
2806
+ const parsedBody = parsedOutput.body;
2807
+ return throwDefaultError({
2808
+ output,
2809
+ parsedBody,
2810
+ errorCode,
2811
+ });
2812
+ }
2813
+ };
2814
+ export const de_DeleteRestoreTestingSelectionCommand = async (output, context) => {
2815
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2816
+ return de_DeleteRestoreTestingSelectionCommandError(output, context);
2817
+ }
2818
+ const contents = map({
2819
+ $metadata: deserializeMetadata(output),
2820
+ });
2821
+ await collectBody(output.body, context);
2822
+ return contents;
2823
+ };
2824
+ const de_DeleteRestoreTestingSelectionCommandError = async (output, context) => {
2825
+ const parsedOutput = {
2826
+ ...output,
2827
+ body: await parseErrorBody(output.body, context),
2828
+ };
2829
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2830
+ switch (errorCode) {
2831
+ case "ResourceNotFoundException":
2832
+ case "com.amazonaws.backup#ResourceNotFoundException":
2833
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2834
+ case "ServiceUnavailableException":
2835
+ case "com.amazonaws.backup#ServiceUnavailableException":
2836
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2837
+ default:
2838
+ const parsedBody = parsedOutput.body;
2839
+ return throwDefaultError({
2840
+ output,
2841
+ parsedBody,
2842
+ errorCode,
2843
+ });
2844
+ }
2845
+ };
2389
2846
  export const de_DescribeBackupJobCommand = async (output, context) => {
2390
2847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2391
2848
  return de_DescribeBackupJobCommandError(output, context);
@@ -2409,6 +2866,7 @@ export const de_DescribeBackupJobCommand = async (output, context) => {
2409
2866
  CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2410
2867
  ExpectedCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2411
2868
  IamRoleArn: __expectString,
2869
+ InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2412
2870
  IsParent: __expectBoolean,
2413
2871
  MessageCategory: __expectString,
2414
2872
  NumberOfChildJobs: __expectLong,
@@ -2646,6 +3104,11 @@ export const de_DescribeProtectedResourceCommand = async (output, context) => {
2646
3104
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2647
3105
  const doc = take(data, {
2648
3106
  LastBackupTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3107
+ LastBackupVaultArn: __expectString,
3108
+ LastRecoveryPointArn: __expectString,
3109
+ LatestRestoreExecutionTimeMinutes: __expectLong,
3110
+ LatestRestoreJobCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3111
+ LatestRestoreRecoveryPointCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2649
3112
  ResourceArn: __expectString,
2650
3113
  ResourceName: __expectString,
2651
3114
  ResourceType: __expectString,
@@ -2872,16 +3335,22 @@ export const de_DescribeRestoreJobCommand = async (output, context) => {
2872
3335
  AccountId: __expectString,
2873
3336
  BackupSizeInBytes: __expectLong,
2874
3337
  CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3338
+ CreatedBy: _json,
2875
3339
  CreatedResourceArn: __expectString,
2876
3340
  CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3341
+ DeletionStatus: __expectString,
3342
+ DeletionStatusMessage: __expectString,
2877
3343
  ExpectedCompletionTimeMinutes: __expectLong,
2878
3344
  IamRoleArn: __expectString,
2879
3345
  PercentDone: __expectString,
2880
3346
  RecoveryPointArn: __expectString,
3347
+ RecoveryPointCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2881
3348
  ResourceType: __expectString,
2882
3349
  RestoreJobId: __expectString,
2883
3350
  Status: __expectString,
2884
3351
  StatusMessage: __expectString,
3352
+ ValidationStatus: __expectString,
3353
+ ValidationStatusMessage: __expectString,
2885
3354
  });
2886
3355
  Object.assign(contents, doc);
2887
3356
  return contents;
@@ -3378,6 +3847,7 @@ export const de_GetRecoveryPointRestoreMetadataCommand = async (output, context)
3378
3847
  const doc = take(data, {
3379
3848
  BackupVaultArn: __expectString,
3380
3849
  RecoveryPointArn: __expectString,
3850
+ ResourceType: __expectString,
3381
3851
  RestoreMetadata: _json,
3382
3852
  });
3383
3853
  Object.assign(contents, doc);
@@ -3411,6 +3881,163 @@ const de_GetRecoveryPointRestoreMetadataCommandError = async (output, context) =
3411
3881
  });
3412
3882
  }
3413
3883
  };
3884
+ export const de_GetRestoreJobMetadataCommand = async (output, context) => {
3885
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3886
+ return de_GetRestoreJobMetadataCommandError(output, context);
3887
+ }
3888
+ const contents = map({
3889
+ $metadata: deserializeMetadata(output),
3890
+ });
3891
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3892
+ const doc = take(data, {
3893
+ Metadata: _json,
3894
+ RestoreJobId: __expectString,
3895
+ });
3896
+ Object.assign(contents, doc);
3897
+ return contents;
3898
+ };
3899
+ const de_GetRestoreJobMetadataCommandError = async (output, context) => {
3900
+ const parsedOutput = {
3901
+ ...output,
3902
+ body: await parseErrorBody(output.body, context),
3903
+ };
3904
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3905
+ switch (errorCode) {
3906
+ case "InvalidParameterValueException":
3907
+ case "com.amazonaws.backup#InvalidParameterValueException":
3908
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3909
+ case "MissingParameterValueException":
3910
+ case "com.amazonaws.backup#MissingParameterValueException":
3911
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
3912
+ case "ResourceNotFoundException":
3913
+ case "com.amazonaws.backup#ResourceNotFoundException":
3914
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3915
+ case "ServiceUnavailableException":
3916
+ case "com.amazonaws.backup#ServiceUnavailableException":
3917
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3918
+ default:
3919
+ const parsedBody = parsedOutput.body;
3920
+ return throwDefaultError({
3921
+ output,
3922
+ parsedBody,
3923
+ errorCode,
3924
+ });
3925
+ }
3926
+ };
3927
+ export const de_GetRestoreTestingInferredMetadataCommand = async (output, context) => {
3928
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3929
+ return de_GetRestoreTestingInferredMetadataCommandError(output, context);
3930
+ }
3931
+ const contents = map({
3932
+ $metadata: deserializeMetadata(output),
3933
+ });
3934
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3935
+ const doc = take(data, {
3936
+ InferredMetadata: _json,
3937
+ });
3938
+ Object.assign(contents, doc);
3939
+ return contents;
3940
+ };
3941
+ const de_GetRestoreTestingInferredMetadataCommandError = async (output, context) => {
3942
+ const parsedOutput = {
3943
+ ...output,
3944
+ body: await parseErrorBody(output.body, context),
3945
+ };
3946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3947
+ switch (errorCode) {
3948
+ case "InvalidParameterValueException":
3949
+ case "com.amazonaws.backup#InvalidParameterValueException":
3950
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3951
+ case "MissingParameterValueException":
3952
+ case "com.amazonaws.backup#MissingParameterValueException":
3953
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
3954
+ case "ResourceNotFoundException":
3955
+ case "com.amazonaws.backup#ResourceNotFoundException":
3956
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3957
+ case "ServiceUnavailableException":
3958
+ case "com.amazonaws.backup#ServiceUnavailableException":
3959
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3960
+ default:
3961
+ const parsedBody = parsedOutput.body;
3962
+ return throwDefaultError({
3963
+ output,
3964
+ parsedBody,
3965
+ errorCode,
3966
+ });
3967
+ }
3968
+ };
3969
+ export const de_GetRestoreTestingPlanCommand = async (output, context) => {
3970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3971
+ return de_GetRestoreTestingPlanCommandError(output, context);
3972
+ }
3973
+ const contents = map({
3974
+ $metadata: deserializeMetadata(output),
3975
+ });
3976
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3977
+ const doc = take(data, {
3978
+ RestoreTestingPlan: (_) => de_RestoreTestingPlanForGet(_, context),
3979
+ });
3980
+ Object.assign(contents, doc);
3981
+ return contents;
3982
+ };
3983
+ const de_GetRestoreTestingPlanCommandError = async (output, context) => {
3984
+ const parsedOutput = {
3985
+ ...output,
3986
+ body: await parseErrorBody(output.body, context),
3987
+ };
3988
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3989
+ switch (errorCode) {
3990
+ case "ResourceNotFoundException":
3991
+ case "com.amazonaws.backup#ResourceNotFoundException":
3992
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3993
+ case "ServiceUnavailableException":
3994
+ case "com.amazonaws.backup#ServiceUnavailableException":
3995
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3996
+ default:
3997
+ const parsedBody = parsedOutput.body;
3998
+ return throwDefaultError({
3999
+ output,
4000
+ parsedBody,
4001
+ errorCode,
4002
+ });
4003
+ }
4004
+ };
4005
+ export const de_GetRestoreTestingSelectionCommand = async (output, context) => {
4006
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4007
+ return de_GetRestoreTestingSelectionCommandError(output, context);
4008
+ }
4009
+ const contents = map({
4010
+ $metadata: deserializeMetadata(output),
4011
+ });
4012
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4013
+ const doc = take(data, {
4014
+ RestoreTestingSelection: (_) => de_RestoreTestingSelectionForGet(_, context),
4015
+ });
4016
+ Object.assign(contents, doc);
4017
+ return contents;
4018
+ };
4019
+ const de_GetRestoreTestingSelectionCommandError = async (output, context) => {
4020
+ const parsedOutput = {
4021
+ ...output,
4022
+ body: await parseErrorBody(output.body, context),
4023
+ };
4024
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4025
+ switch (errorCode) {
4026
+ case "ResourceNotFoundException":
4027
+ case "com.amazonaws.backup#ResourceNotFoundException":
4028
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4029
+ case "ServiceUnavailableException":
4030
+ case "com.amazonaws.backup#ServiceUnavailableException":
4031
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4032
+ default:
4033
+ const parsedBody = parsedOutput.body;
4034
+ return throwDefaultError({
4035
+ output,
4036
+ parsedBody,
4037
+ errorCode,
4038
+ });
4039
+ }
4040
+ };
3414
4041
  export const de_GetSupportedResourceTypesCommand = async (output, context) => {
3415
4042
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3416
4043
  return de_GetSupportedResourceTypesCommandError(output, context);
@@ -3848,20 +4475,134 @@ const de_ListFrameworksCommandError = async (output, context) => {
3848
4475
  };
3849
4476
  export const de_ListLegalHoldsCommand = async (output, context) => {
3850
4477
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3851
- return de_ListLegalHoldsCommandError(output, context);
4478
+ return de_ListLegalHoldsCommandError(output, context);
4479
+ }
4480
+ const contents = map({
4481
+ $metadata: deserializeMetadata(output),
4482
+ });
4483
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4484
+ const doc = take(data, {
4485
+ LegalHolds: (_) => de_LegalHoldsList(_, context),
4486
+ NextToken: __expectString,
4487
+ });
4488
+ Object.assign(contents, doc);
4489
+ return contents;
4490
+ };
4491
+ const de_ListLegalHoldsCommandError = async (output, context) => {
4492
+ const parsedOutput = {
4493
+ ...output,
4494
+ body: await parseErrorBody(output.body, context),
4495
+ };
4496
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4497
+ switch (errorCode) {
4498
+ case "InvalidParameterValueException":
4499
+ case "com.amazonaws.backup#InvalidParameterValueException":
4500
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4501
+ case "ServiceUnavailableException":
4502
+ case "com.amazonaws.backup#ServiceUnavailableException":
4503
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4504
+ default:
4505
+ const parsedBody = parsedOutput.body;
4506
+ return throwDefaultError({
4507
+ output,
4508
+ parsedBody,
4509
+ errorCode,
4510
+ });
4511
+ }
4512
+ };
4513
+ export const de_ListProtectedResourcesCommand = async (output, context) => {
4514
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4515
+ return de_ListProtectedResourcesCommandError(output, context);
4516
+ }
4517
+ const contents = map({
4518
+ $metadata: deserializeMetadata(output),
4519
+ });
4520
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4521
+ const doc = take(data, {
4522
+ NextToken: __expectString,
4523
+ Results: (_) => de_ProtectedResourcesList(_, context),
4524
+ });
4525
+ Object.assign(contents, doc);
4526
+ return contents;
4527
+ };
4528
+ const de_ListProtectedResourcesCommandError = async (output, context) => {
4529
+ const parsedOutput = {
4530
+ ...output,
4531
+ body: await parseErrorBody(output.body, context),
4532
+ };
4533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4534
+ switch (errorCode) {
4535
+ case "InvalidParameterValueException":
4536
+ case "com.amazonaws.backup#InvalidParameterValueException":
4537
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4538
+ case "ServiceUnavailableException":
4539
+ case "com.amazonaws.backup#ServiceUnavailableException":
4540
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4541
+ default:
4542
+ const parsedBody = parsedOutput.body;
4543
+ return throwDefaultError({
4544
+ output,
4545
+ parsedBody,
4546
+ errorCode,
4547
+ });
4548
+ }
4549
+ };
4550
+ export const de_ListProtectedResourcesByBackupVaultCommand = async (output, context) => {
4551
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4552
+ return de_ListProtectedResourcesByBackupVaultCommandError(output, context);
4553
+ }
4554
+ const contents = map({
4555
+ $metadata: deserializeMetadata(output),
4556
+ });
4557
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4558
+ const doc = take(data, {
4559
+ NextToken: __expectString,
4560
+ Results: (_) => de_ProtectedResourcesList(_, context),
4561
+ });
4562
+ Object.assign(contents, doc);
4563
+ return contents;
4564
+ };
4565
+ const de_ListProtectedResourcesByBackupVaultCommandError = async (output, context) => {
4566
+ const parsedOutput = {
4567
+ ...output,
4568
+ body: await parseErrorBody(output.body, context),
4569
+ };
4570
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4571
+ switch (errorCode) {
4572
+ case "InvalidParameterValueException":
4573
+ case "com.amazonaws.backup#InvalidParameterValueException":
4574
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4575
+ case "ResourceNotFoundException":
4576
+ case "com.amazonaws.backup#ResourceNotFoundException":
4577
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4578
+ case "ServiceUnavailableException":
4579
+ case "com.amazonaws.backup#ServiceUnavailableException":
4580
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4581
+ default:
4582
+ const parsedBody = parsedOutput.body;
4583
+ return throwDefaultError({
4584
+ output,
4585
+ parsedBody,
4586
+ errorCode,
4587
+ });
4588
+ }
4589
+ };
4590
+ export const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
4591
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4592
+ return de_ListRecoveryPointsByBackupVaultCommandError(output, context);
3852
4593
  }
3853
4594
  const contents = map({
3854
4595
  $metadata: deserializeMetadata(output),
3855
4596
  });
3856
4597
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3857
4598
  const doc = take(data, {
3858
- LegalHolds: (_) => de_LegalHoldsList(_, context),
3859
4599
  NextToken: __expectString,
4600
+ RecoveryPoints: (_) => de_RecoveryPointByBackupVaultList(_, context),
3860
4601
  });
3861
4602
  Object.assign(contents, doc);
3862
4603
  return contents;
3863
4604
  };
3864
- const de_ListLegalHoldsCommandError = async (output, context) => {
4605
+ const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) => {
3865
4606
  const parsedOutput = {
3866
4607
  ...output,
3867
4608
  body: await parseErrorBody(output.body, context),
@@ -3871,6 +4612,12 @@ const de_ListLegalHoldsCommandError = async (output, context) => {
3871
4612
  case "InvalidParameterValueException":
3872
4613
  case "com.amazonaws.backup#InvalidParameterValueException":
3873
4614
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4615
+ case "MissingParameterValueException":
4616
+ case "com.amazonaws.backup#MissingParameterValueException":
4617
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
4618
+ case "ResourceNotFoundException":
4619
+ case "com.amazonaws.backup#ResourceNotFoundException":
4620
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3874
4621
  case "ServiceUnavailableException":
3875
4622
  case "com.amazonaws.backup#ServiceUnavailableException":
3876
4623
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -3883,9 +4630,9 @@ const de_ListLegalHoldsCommandError = async (output, context) => {
3883
4630
  });
3884
4631
  }
3885
4632
  };
3886
- export const de_ListProtectedResourcesCommand = async (output, context) => {
4633
+ export const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) => {
3887
4634
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3888
- return de_ListProtectedResourcesCommandError(output, context);
4635
+ return de_ListRecoveryPointsByLegalHoldCommandError(output, context);
3889
4636
  }
3890
4637
  const contents = map({
3891
4638
  $metadata: deserializeMetadata(output),
@@ -3893,12 +4640,12 @@ export const de_ListProtectedResourcesCommand = async (output, context) => {
3893
4640
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3894
4641
  const doc = take(data, {
3895
4642
  NextToken: __expectString,
3896
- Results: (_) => de_ProtectedResourcesList(_, context),
4643
+ RecoveryPoints: _json,
3897
4644
  });
3898
4645
  Object.assign(contents, doc);
3899
4646
  return contents;
3900
4647
  };
3901
- const de_ListProtectedResourcesCommandError = async (output, context) => {
4648
+ const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) => {
3902
4649
  const parsedOutput = {
3903
4650
  ...output,
3904
4651
  body: await parseErrorBody(output.body, context),
@@ -3908,6 +4655,9 @@ const de_ListProtectedResourcesCommandError = async (output, context) => {
3908
4655
  case "InvalidParameterValueException":
3909
4656
  case "com.amazonaws.backup#InvalidParameterValueException":
3910
4657
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4658
+ case "MissingParameterValueException":
4659
+ case "com.amazonaws.backup#MissingParameterValueException":
4660
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
3911
4661
  case "ServiceUnavailableException":
3912
4662
  case "com.amazonaws.backup#ServiceUnavailableException":
3913
4663
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -3920,9 +4670,9 @@ const de_ListProtectedResourcesCommandError = async (output, context) => {
3920
4670
  });
3921
4671
  }
3922
4672
  };
3923
- export const de_ListProtectedResourcesByBackupVaultCommand = async (output, context) => {
4673
+ export const de_ListRecoveryPointsByResourceCommand = async (output, context) => {
3924
4674
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3925
- return de_ListProtectedResourcesByBackupVaultCommandError(output, context);
4675
+ return de_ListRecoveryPointsByResourceCommandError(output, context);
3926
4676
  }
3927
4677
  const contents = map({
3928
4678
  $metadata: deserializeMetadata(output),
@@ -3930,12 +4680,12 @@ export const de_ListProtectedResourcesByBackupVaultCommand = async (output, cont
3930
4680
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3931
4681
  const doc = take(data, {
3932
4682
  NextToken: __expectString,
3933
- Results: (_) => de_ProtectedResourcesList(_, context),
4683
+ RecoveryPoints: (_) => de_RecoveryPointByResourceList(_, context),
3934
4684
  });
3935
4685
  Object.assign(contents, doc);
3936
4686
  return contents;
3937
4687
  };
3938
- const de_ListProtectedResourcesByBackupVaultCommandError = async (output, context) => {
4688
+ const de_ListRecoveryPointsByResourceCommandError = async (output, context) => {
3939
4689
  const parsedOutput = {
3940
4690
  ...output,
3941
4691
  body: await parseErrorBody(output.body, context),
@@ -3945,6 +4695,9 @@ const de_ListProtectedResourcesByBackupVaultCommandError = async (output, contex
3945
4695
  case "InvalidParameterValueException":
3946
4696
  case "com.amazonaws.backup#InvalidParameterValueException":
3947
4697
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4698
+ case "MissingParameterValueException":
4699
+ case "com.amazonaws.backup#MissingParameterValueException":
4700
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
3948
4701
  case "ResourceNotFoundException":
3949
4702
  case "com.amazonaws.backup#ResourceNotFoundException":
3950
4703
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -3960,9 +4713,9 @@ const de_ListProtectedResourcesByBackupVaultCommandError = async (output, contex
3960
4713
  });
3961
4714
  }
3962
4715
  };
3963
- export const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
4716
+ export const de_ListReportJobsCommand = async (output, context) => {
3964
4717
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3965
- return de_ListRecoveryPointsByBackupVaultCommandError(output, context);
4718
+ return de_ListReportJobsCommandError(output, context);
3966
4719
  }
3967
4720
  const contents = map({
3968
4721
  $metadata: deserializeMetadata(output),
@@ -3970,12 +4723,12 @@ export const de_ListRecoveryPointsByBackupVaultCommand = async (output, context)
3970
4723
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3971
4724
  const doc = take(data, {
3972
4725
  NextToken: __expectString,
3973
- RecoveryPoints: (_) => de_RecoveryPointByBackupVaultList(_, context),
4726
+ ReportJobs: (_) => de_ReportJobList(_, context),
3974
4727
  });
3975
4728
  Object.assign(contents, doc);
3976
4729
  return contents;
3977
4730
  };
3978
- const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) => {
4731
+ const de_ListReportJobsCommandError = async (output, context) => {
3979
4732
  const parsedOutput = {
3980
4733
  ...output,
3981
4734
  body: await parseErrorBody(output.body, context),
@@ -3985,9 +4738,6 @@ const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) =
3985
4738
  case "InvalidParameterValueException":
3986
4739
  case "com.amazonaws.backup#InvalidParameterValueException":
3987
4740
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3988
- case "MissingParameterValueException":
3989
- case "com.amazonaws.backup#MissingParameterValueException":
3990
- throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
3991
4741
  case "ResourceNotFoundException":
3992
4742
  case "com.amazonaws.backup#ResourceNotFoundException":
3993
4743
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -4003,9 +4753,9 @@ const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) =
4003
4753
  });
4004
4754
  }
4005
4755
  };
4006
- export const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) => {
4756
+ export const de_ListReportPlansCommand = async (output, context) => {
4007
4757
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4008
- return de_ListRecoveryPointsByLegalHoldCommandError(output, context);
4758
+ return de_ListReportPlansCommandError(output, context);
4009
4759
  }
4010
4760
  const contents = map({
4011
4761
  $metadata: deserializeMetadata(output),
@@ -4013,12 +4763,12 @@ export const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) =
4013
4763
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4014
4764
  const doc = take(data, {
4015
4765
  NextToken: __expectString,
4016
- RecoveryPoints: _json,
4766
+ ReportPlans: (_) => de_ReportPlanList(_, context),
4017
4767
  });
4018
4768
  Object.assign(contents, doc);
4019
4769
  return contents;
4020
4770
  };
4021
- const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) => {
4771
+ const de_ListReportPlansCommandError = async (output, context) => {
4022
4772
  const parsedOutput = {
4023
4773
  ...output,
4024
4774
  body: await parseErrorBody(output.body, context),
@@ -4028,9 +4778,6 @@ const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) =>
4028
4778
  case "InvalidParameterValueException":
4029
4779
  case "com.amazonaws.backup#InvalidParameterValueException":
4030
4780
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4031
- case "MissingParameterValueException":
4032
- case "com.amazonaws.backup#MissingParameterValueException":
4033
- throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
4034
4781
  case "ServiceUnavailableException":
4035
4782
  case "com.amazonaws.backup#ServiceUnavailableException":
4036
4783
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -4043,9 +4790,9 @@ const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) =>
4043
4790
  });
4044
4791
  }
4045
4792
  };
4046
- export const de_ListRecoveryPointsByResourceCommand = async (output, context) => {
4793
+ export const de_ListRestoreJobsCommand = async (output, context) => {
4047
4794
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4048
- return de_ListRecoveryPointsByResourceCommandError(output, context);
4795
+ return de_ListRestoreJobsCommandError(output, context);
4049
4796
  }
4050
4797
  const contents = map({
4051
4798
  $metadata: deserializeMetadata(output),
@@ -4053,12 +4800,12 @@ export const de_ListRecoveryPointsByResourceCommand = async (output, context) =>
4053
4800
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4054
4801
  const doc = take(data, {
4055
4802
  NextToken: __expectString,
4056
- RecoveryPoints: (_) => de_RecoveryPointByResourceList(_, context),
4803
+ RestoreJobs: (_) => de_RestoreJobsList(_, context),
4057
4804
  });
4058
4805
  Object.assign(contents, doc);
4059
4806
  return contents;
4060
4807
  };
4061
- const de_ListRecoveryPointsByResourceCommandError = async (output, context) => {
4808
+ const de_ListRestoreJobsCommandError = async (output, context) => {
4062
4809
  const parsedOutput = {
4063
4810
  ...output,
4064
4811
  body: await parseErrorBody(output.body, context),
@@ -4086,9 +4833,9 @@ const de_ListRecoveryPointsByResourceCommandError = async (output, context) => {
4086
4833
  });
4087
4834
  }
4088
4835
  };
4089
- export const de_ListReportJobsCommand = async (output, context) => {
4836
+ export const de_ListRestoreJobsByProtectedResourceCommand = async (output, context) => {
4090
4837
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4091
- return de_ListReportJobsCommandError(output, context);
4838
+ return de_ListRestoreJobsByProtectedResourceCommandError(output, context);
4092
4839
  }
4093
4840
  const contents = map({
4094
4841
  $metadata: deserializeMetadata(output),
@@ -4096,12 +4843,12 @@ export const de_ListReportJobsCommand = async (output, context) => {
4096
4843
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4097
4844
  const doc = take(data, {
4098
4845
  NextToken: __expectString,
4099
- ReportJobs: (_) => de_ReportJobList(_, context),
4846
+ RestoreJobs: (_) => de_RestoreJobsList(_, context),
4100
4847
  });
4101
4848
  Object.assign(contents, doc);
4102
4849
  return contents;
4103
4850
  };
4104
- const de_ListReportJobsCommandError = async (output, context) => {
4851
+ const de_ListRestoreJobsByProtectedResourceCommandError = async (output, context) => {
4105
4852
  const parsedOutput = {
4106
4853
  ...output,
4107
4854
  body: await parseErrorBody(output.body, context),
@@ -4111,6 +4858,9 @@ const de_ListReportJobsCommandError = async (output, context) => {
4111
4858
  case "InvalidParameterValueException":
4112
4859
  case "com.amazonaws.backup#InvalidParameterValueException":
4113
4860
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4861
+ case "MissingParameterValueException":
4862
+ case "com.amazonaws.backup#MissingParameterValueException":
4863
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
4114
4864
  case "ResourceNotFoundException":
4115
4865
  case "com.amazonaws.backup#ResourceNotFoundException":
4116
4866
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -4126,22 +4876,23 @@ const de_ListReportJobsCommandError = async (output, context) => {
4126
4876
  });
4127
4877
  }
4128
4878
  };
4129
- export const de_ListReportPlansCommand = async (output, context) => {
4879
+ export const de_ListRestoreJobSummariesCommand = async (output, context) => {
4130
4880
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4131
- return de_ListReportPlansCommandError(output, context);
4881
+ return de_ListRestoreJobSummariesCommandError(output, context);
4132
4882
  }
4133
4883
  const contents = map({
4134
4884
  $metadata: deserializeMetadata(output),
4135
4885
  });
4136
4886
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4137
4887
  const doc = take(data, {
4888
+ AggregationPeriod: __expectString,
4138
4889
  NextToken: __expectString,
4139
- ReportPlans: (_) => de_ReportPlanList(_, context),
4890
+ RestoreJobSummaries: (_) => de_RestoreJobSummaryList(_, context),
4140
4891
  });
4141
4892
  Object.assign(contents, doc);
4142
4893
  return contents;
4143
4894
  };
4144
- const de_ListReportPlansCommandError = async (output, context) => {
4895
+ const de_ListRestoreJobSummariesCommandError = async (output, context) => {
4145
4896
  const parsedOutput = {
4146
4897
  ...output,
4147
4898
  body: await parseErrorBody(output.body, context),
@@ -4163,9 +4914,9 @@ const de_ListReportPlansCommandError = async (output, context) => {
4163
4914
  });
4164
4915
  }
4165
4916
  };
4166
- export const de_ListRestoreJobsCommand = async (output, context) => {
4917
+ export const de_ListRestoreTestingPlansCommand = async (output, context) => {
4167
4918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4168
- return de_ListRestoreJobsCommandError(output, context);
4919
+ return de_ListRestoreTestingPlansCommandError(output, context);
4169
4920
  }
4170
4921
  const contents = map({
4171
4922
  $metadata: deserializeMetadata(output),
@@ -4173,12 +4924,12 @@ export const de_ListRestoreJobsCommand = async (output, context) => {
4173
4924
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4174
4925
  const doc = take(data, {
4175
4926
  NextToken: __expectString,
4176
- RestoreJobs: (_) => de_RestoreJobsList(_, context),
4927
+ RestoreTestingPlans: (_) => de_RestoreTestingPlans(_, context),
4177
4928
  });
4178
4929
  Object.assign(contents, doc);
4179
4930
  return contents;
4180
4931
  };
4181
- const de_ListRestoreJobsCommandError = async (output, context) => {
4932
+ const de_ListRestoreTestingPlansCommandError = async (output, context) => {
4182
4933
  const parsedOutput = {
4183
4934
  ...output,
4184
4935
  body: await parseErrorBody(output.body, context),
@@ -4188,12 +4939,6 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
4188
4939
  case "InvalidParameterValueException":
4189
4940
  case "com.amazonaws.backup#InvalidParameterValueException":
4190
4941
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4191
- case "MissingParameterValueException":
4192
- case "com.amazonaws.backup#MissingParameterValueException":
4193
- throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
4194
- case "ResourceNotFoundException":
4195
- case "com.amazonaws.backup#ResourceNotFoundException":
4196
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4197
4942
  case "ServiceUnavailableException":
4198
4943
  case "com.amazonaws.backup#ServiceUnavailableException":
4199
4944
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -4206,23 +4951,22 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
4206
4951
  });
4207
4952
  }
4208
4953
  };
4209
- export const de_ListRestoreJobSummariesCommand = async (output, context) => {
4954
+ export const de_ListRestoreTestingSelectionsCommand = async (output, context) => {
4210
4955
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4211
- return de_ListRestoreJobSummariesCommandError(output, context);
4956
+ return de_ListRestoreTestingSelectionsCommandError(output, context);
4212
4957
  }
4213
4958
  const contents = map({
4214
4959
  $metadata: deserializeMetadata(output),
4215
4960
  });
4216
4961
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4217
4962
  const doc = take(data, {
4218
- AggregationPeriod: __expectString,
4219
4963
  NextToken: __expectString,
4220
- RestoreJobSummaries: (_) => de_RestoreJobSummaryList(_, context),
4964
+ RestoreTestingSelections: (_) => de_RestoreTestingSelections(_, context),
4221
4965
  });
4222
4966
  Object.assign(contents, doc);
4223
4967
  return contents;
4224
4968
  };
4225
- const de_ListRestoreJobSummariesCommandError = async (output, context) => {
4969
+ const de_ListRestoreTestingSelectionsCommandError = async (output, context) => {
4226
4970
  const parsedOutput = {
4227
4971
  ...output,
4228
4972
  body: await parseErrorBody(output.body, context),
@@ -4232,6 +4976,9 @@ const de_ListRestoreJobSummariesCommandError = async (output, context) => {
4232
4976
  case "InvalidParameterValueException":
4233
4977
  case "com.amazonaws.backup#InvalidParameterValueException":
4234
4978
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4979
+ case "ResourceNotFoundException":
4980
+ case "com.amazonaws.backup#ResourceNotFoundException":
4981
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4235
4982
  case "ServiceUnavailableException":
4236
4983
  case "com.amazonaws.backup#ServiceUnavailableException":
4237
4984
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
@@ -4404,6 +5151,47 @@ const de_PutBackupVaultNotificationsCommandError = async (output, context) => {
4404
5151
  });
4405
5152
  }
4406
5153
  };
5154
+ export const de_PutRestoreValidationResultCommand = async (output, context) => {
5155
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
5156
+ return de_PutRestoreValidationResultCommandError(output, context);
5157
+ }
5158
+ const contents = map({
5159
+ $metadata: deserializeMetadata(output),
5160
+ });
5161
+ await collectBody(output.body, context);
5162
+ return contents;
5163
+ };
5164
+ const de_PutRestoreValidationResultCommandError = async (output, context) => {
5165
+ const parsedOutput = {
5166
+ ...output,
5167
+ body: await parseErrorBody(output.body, context),
5168
+ };
5169
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5170
+ switch (errorCode) {
5171
+ case "InvalidParameterValueException":
5172
+ case "com.amazonaws.backup#InvalidParameterValueException":
5173
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5174
+ case "InvalidRequestException":
5175
+ case "com.amazonaws.backup#InvalidRequestException":
5176
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5177
+ case "MissingParameterValueException":
5178
+ case "com.amazonaws.backup#MissingParameterValueException":
5179
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
5180
+ case "ResourceNotFoundException":
5181
+ case "com.amazonaws.backup#ResourceNotFoundException":
5182
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5183
+ case "ServiceUnavailableException":
5184
+ case "com.amazonaws.backup#ServiceUnavailableException":
5185
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5186
+ default:
5187
+ const parsedBody = parsedOutput.body;
5188
+ return throwDefaultError({
5189
+ output,
5190
+ parsedBody,
5191
+ errorCode,
5192
+ });
5193
+ }
5194
+ };
4407
5195
  export const de_StartBackupJobCommand = async (output, context) => {
4408
5196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4409
5197
  return de_StartBackupJobCommandError(output, context);
@@ -4979,6 +5767,103 @@ const de_UpdateReportPlanCommandError = async (output, context) => {
4979
5767
  });
4980
5768
  }
4981
5769
  };
5770
+ export const de_UpdateRestoreTestingPlanCommand = async (output, context) => {
5771
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5772
+ return de_UpdateRestoreTestingPlanCommandError(output, context);
5773
+ }
5774
+ const contents = map({
5775
+ $metadata: deserializeMetadata(output),
5776
+ });
5777
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5778
+ const doc = take(data, {
5779
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5780
+ RestoreTestingPlanArn: __expectString,
5781
+ RestoreTestingPlanName: __expectString,
5782
+ UpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5783
+ });
5784
+ Object.assign(contents, doc);
5785
+ return contents;
5786
+ };
5787
+ const de_UpdateRestoreTestingPlanCommandError = async (output, context) => {
5788
+ const parsedOutput = {
5789
+ ...output,
5790
+ body: await parseErrorBody(output.body, context),
5791
+ };
5792
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5793
+ switch (errorCode) {
5794
+ case "ConflictException":
5795
+ case "com.amazonaws.backup#ConflictException":
5796
+ throw await de_ConflictExceptionRes(parsedOutput, context);
5797
+ case "InvalidParameterValueException":
5798
+ case "com.amazonaws.backup#InvalidParameterValueException":
5799
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5800
+ case "MissingParameterValueException":
5801
+ case "com.amazonaws.backup#MissingParameterValueException":
5802
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
5803
+ case "ResourceNotFoundException":
5804
+ case "com.amazonaws.backup#ResourceNotFoundException":
5805
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5806
+ case "ServiceUnavailableException":
5807
+ case "com.amazonaws.backup#ServiceUnavailableException":
5808
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5809
+ default:
5810
+ const parsedBody = parsedOutput.body;
5811
+ return throwDefaultError({
5812
+ output,
5813
+ parsedBody,
5814
+ errorCode,
5815
+ });
5816
+ }
5817
+ };
5818
+ export const de_UpdateRestoreTestingSelectionCommand = async (output, context) => {
5819
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5820
+ return de_UpdateRestoreTestingSelectionCommandError(output, context);
5821
+ }
5822
+ const contents = map({
5823
+ $metadata: deserializeMetadata(output),
5824
+ });
5825
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5826
+ const doc = take(data, {
5827
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5828
+ RestoreTestingPlanArn: __expectString,
5829
+ RestoreTestingPlanName: __expectString,
5830
+ RestoreTestingSelectionName: __expectString,
5831
+ UpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5832
+ });
5833
+ Object.assign(contents, doc);
5834
+ return contents;
5835
+ };
5836
+ const de_UpdateRestoreTestingSelectionCommandError = async (output, context) => {
5837
+ const parsedOutput = {
5838
+ ...output,
5839
+ body: await parseErrorBody(output.body, context),
5840
+ };
5841
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5842
+ switch (errorCode) {
5843
+ case "ConflictException":
5844
+ case "com.amazonaws.backup#ConflictException":
5845
+ throw await de_ConflictExceptionRes(parsedOutput, context);
5846
+ case "InvalidParameterValueException":
5847
+ case "com.amazonaws.backup#InvalidParameterValueException":
5848
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5849
+ case "MissingParameterValueException":
5850
+ case "com.amazonaws.backup#MissingParameterValueException":
5851
+ throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
5852
+ case "ResourceNotFoundException":
5853
+ case "com.amazonaws.backup#ResourceNotFoundException":
5854
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5855
+ case "ServiceUnavailableException":
5856
+ case "com.amazonaws.backup#ServiceUnavailableException":
5857
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5858
+ default:
5859
+ const parsedBody = parsedOutput.body;
5860
+ return throwDefaultError({
5861
+ output,
5862
+ parsedBody,
5863
+ errorCode,
5864
+ });
5865
+ }
5866
+ };
4982
5867
  const throwDefaultError = withBaseException(__BaseException);
4983
5868
  const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
4984
5869
  const contents = map({});
@@ -5170,6 +6055,7 @@ const de_BackupJob = (output, context) => {
5170
6055
  CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5171
6056
  ExpectedCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5172
6057
  IamRoleArn: __expectString,
6058
+ InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5173
6059
  IsParent: __expectBoolean,
5174
6060
  MessageCategory: __expectString,
5175
6061
  ParentJobId: __expectString,
@@ -5386,6 +6272,8 @@ const de_LegalHoldsList = (output, context) => {
5386
6272
  const de_ProtectedResource = (output, context) => {
5387
6273
  return take(output, {
5388
6274
  LastBackupTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6275
+ LastBackupVaultArn: __expectString,
6276
+ LastRecoveryPointArn: __expectString,
5389
6277
  ResourceArn: __expectString,
5390
6278
  ResourceName: __expectString,
5391
6279
  ResourceType: __expectString,
@@ -5516,16 +6404,22 @@ const de_RestoreJobsListMember = (output, context) => {
5516
6404
  AccountId: __expectString,
5517
6405
  BackupSizeInBytes: __expectLong,
5518
6406
  CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6407
+ CreatedBy: _json,
5519
6408
  CreatedResourceArn: __expectString,
5520
6409
  CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6410
+ DeletionStatus: __expectString,
6411
+ DeletionStatusMessage: __expectString,
5521
6412
  ExpectedCompletionTimeMinutes: __expectLong,
5522
6413
  IamRoleArn: __expectString,
5523
6414
  PercentDone: __expectString,
5524
6415
  RecoveryPointArn: __expectString,
6416
+ RecoveryPointCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5525
6417
  ResourceType: __expectString,
5526
6418
  RestoreJobId: __expectString,
5527
6419
  Status: __expectString,
5528
6420
  StatusMessage: __expectString,
6421
+ ValidationStatus: __expectString,
6422
+ ValidationStatusMessage: __expectString,
5529
6423
  });
5530
6424
  };
5531
6425
  const de_RestoreJobSummary = (output, context) => {
@@ -5547,6 +6441,72 @@ const de_RestoreJobSummaryList = (output, context) => {
5547
6441
  });
5548
6442
  return retVal;
5549
6443
  };
6444
+ const de_RestoreTestingPlanForGet = (output, context) => {
6445
+ return take(output, {
6446
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6447
+ CreatorRequestId: __expectString,
6448
+ LastExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6449
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6450
+ RecoveryPointSelection: _json,
6451
+ RestoreTestingPlanArn: __expectString,
6452
+ RestoreTestingPlanName: __expectString,
6453
+ ScheduleExpression: __expectString,
6454
+ ScheduleExpressionTimezone: __expectString,
6455
+ StartWindowHours: __expectInt32,
6456
+ });
6457
+ };
6458
+ const de_RestoreTestingPlanForList = (output, context) => {
6459
+ return take(output, {
6460
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6461
+ LastExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6462
+ LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6463
+ RestoreTestingPlanArn: __expectString,
6464
+ RestoreTestingPlanName: __expectString,
6465
+ ScheduleExpression: __expectString,
6466
+ ScheduleExpressionTimezone: __expectString,
6467
+ StartWindowHours: __expectInt32,
6468
+ });
6469
+ };
6470
+ const de_RestoreTestingPlans = (output, context) => {
6471
+ const retVal = (output || [])
6472
+ .filter((e) => e != null)
6473
+ .map((entry) => {
6474
+ return de_RestoreTestingPlanForList(entry, context);
6475
+ });
6476
+ return retVal;
6477
+ };
6478
+ const de_RestoreTestingSelectionForGet = (output, context) => {
6479
+ return take(output, {
6480
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6481
+ CreatorRequestId: __expectString,
6482
+ IamRoleArn: __expectString,
6483
+ ProtectedResourceArns: _json,
6484
+ ProtectedResourceConditions: _json,
6485
+ ProtectedResourceType: __expectString,
6486
+ RestoreMetadataOverrides: _json,
6487
+ RestoreTestingPlanName: __expectString,
6488
+ RestoreTestingSelectionName: __expectString,
6489
+ ValidationWindowHours: __expectInt32,
6490
+ });
6491
+ };
6492
+ const de_RestoreTestingSelectionForList = (output, context) => {
6493
+ return take(output, {
6494
+ CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
6495
+ IamRoleArn: __expectString,
6496
+ ProtectedResourceType: __expectString,
6497
+ RestoreTestingPlanName: __expectString,
6498
+ RestoreTestingSelectionName: __expectString,
6499
+ ValidationWindowHours: __expectInt32,
6500
+ });
6501
+ };
6502
+ const de_RestoreTestingSelections = (output, context) => {
6503
+ const retVal = (output || [])
6504
+ .filter((e) => e != null)
6505
+ .map((entry) => {
6506
+ return de_RestoreTestingSelectionForList(entry, context);
6507
+ });
6508
+ return retVal;
6509
+ };
5550
6510
  const deserializeMetadata = (output) => ({
5551
6511
  httpStatusCode: output.statusCode,
5552
6512
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],