@aws-sdk/client-backup 3.458.0 → 3.460.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.
- package/README.md +112 -0
- package/dist-cjs/Backup.js +28 -0
- package/dist-cjs/commands/CreateRestoreTestingPlanCommand.js +52 -0
- package/dist-cjs/commands/CreateRestoreTestingSelectionCommand.js +52 -0
- package/dist-cjs/commands/DeleteRestoreTestingPlanCommand.js +51 -0
- package/dist-cjs/commands/DeleteRestoreTestingSelectionCommand.js +51 -0
- package/dist-cjs/commands/GetRestoreJobMetadataCommand.js +52 -0
- package/dist-cjs/commands/GetRestoreTestingInferredMetadataCommand.js +51 -0
- package/dist-cjs/commands/GetRestoreTestingPlanCommand.js +51 -0
- package/dist-cjs/commands/GetRestoreTestingSelectionCommand.js +52 -0
- package/dist-cjs/commands/ListRestoreJobsByProtectedResourceCommand.js +51 -0
- package/dist-cjs/commands/ListRestoreTestingPlansCommand.js +51 -0
- package/dist-cjs/commands/ListRestoreTestingSelectionsCommand.js +51 -0
- package/dist-cjs/commands/PutRestoreValidationResultCommand.js +51 -0
- package/dist-cjs/commands/UpdateRestoreTestingPlanCommand.js +51 -0
- package/dist-cjs/commands/UpdateRestoreTestingSelectionCommand.js +52 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/models/models_0.js +67 -1
- package/dist-cjs/pagination/ListRestoreJobsByProtectedResourcePaginator.js +29 -0
- package/dist-cjs/pagination/ListRestoreTestingPlansPaginator.js +29 -0
- package/dist-cjs/pagination/ListRestoreTestingSelectionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1059 -71
- package/dist-es/Backup.js +28 -0
- package/dist-es/commands/CreateRestoreTestingPlanCommand.js +48 -0
- package/dist-es/commands/CreateRestoreTestingSelectionCommand.js +48 -0
- package/dist-es/commands/DeleteRestoreTestingPlanCommand.js +47 -0
- package/dist-es/commands/DeleteRestoreTestingSelectionCommand.js +47 -0
- package/dist-es/commands/GetRestoreJobMetadataCommand.js +48 -0
- package/dist-es/commands/GetRestoreTestingInferredMetadataCommand.js +47 -0
- package/dist-es/commands/GetRestoreTestingPlanCommand.js +47 -0
- package/dist-es/commands/GetRestoreTestingSelectionCommand.js +48 -0
- package/dist-es/commands/ListRestoreJobsByProtectedResourceCommand.js +47 -0
- package/dist-es/commands/ListRestoreTestingPlansCommand.js +47 -0
- package/dist-es/commands/ListRestoreTestingSelectionsCommand.js +47 -0
- package/dist-es/commands/PutRestoreValidationResultCommand.js +47 -0
- package/dist-es/commands/UpdateRestoreTestingPlanCommand.js +47 -0
- package/dist-es/commands/UpdateRestoreTestingSelectionCommand.js +48 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/models_0.js +57 -0
- package/dist-es/pagination/ListRestoreJobsByProtectedResourcePaginator.js +25 -0
- package/dist-es/pagination/ListRestoreTestingPlansPaginator.js +25 -0
- package/dist-es/pagination/ListRestoreTestingSelectionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1023 -63
- package/dist-types/Backup.d.ts +98 -0
- package/dist-types/BackupClient.d.ts +16 -2
- package/dist-types/commands/CreateBackupPlanCommand.d.ts +2 -0
- package/dist-types/commands/CreateRestoreTestingPlanCommand.d.ts +122 -0
- package/dist-types/commands/CreateRestoreTestingSelectionCommand.d.ts +146 -0
- package/dist-types/commands/DeleteRestoreTestingPlanCommand.d.ts +80 -0
- package/dist-types/commands/DeleteRestoreTestingSelectionCommand.d.ts +81 -0
- package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -0
- package/dist-types/commands/DescribeProtectedResourceCommand.d.ts +5 -0
- package/dist-types/commands/DescribeRecoveryPointCommand.d.ts +1 -0
- package/dist-types/commands/DescribeRestoreJobCommand.d.ts +8 -0
- package/dist-types/commands/GetBackupPlanCommand.d.ts +2 -0
- package/dist-types/commands/GetBackupPlanFromJSONCommand.d.ts +2 -0
- package/dist-types/commands/GetBackupPlanFromTemplateCommand.d.ts +2 -0
- package/dist-types/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +1 -0
- package/dist-types/commands/GetRestoreJobMetadataCommand.d.ts +89 -0
- package/dist-types/commands/GetRestoreTestingInferredMetadataCommand.d.ts +93 -0
- package/dist-types/commands/GetRestoreTestingPlanCommand.d.ts +104 -0
- package/dist-types/commands/GetRestoreTestingSelectionCommand.d.ts +109 -0
- package/dist-types/commands/ListBackupJobsCommand.d.ts +1 -0
- package/dist-types/commands/ListProtectedResourcesByBackupVaultCommand.d.ts +2 -0
- package/dist-types/commands/ListProtectedResourcesCommand.d.ts +2 -0
- package/dist-types/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +1 -0
- package/dist-types/commands/ListRestoreJobsByProtectedResourceCommand.d.ts +120 -0
- package/dist-types/commands/ListRestoreJobsCommand.d.ts +9 -0
- package/dist-types/commands/ListRestoreTestingPlansCommand.d.ts +93 -0
- package/dist-types/commands/ListRestoreTestingSelectionsCommand.d.ts +96 -0
- package/dist-types/commands/PutRestoreValidationResultCommand.d.ts +94 -0
- package/dist-types/commands/StartBackupJobCommand.d.ts +1 -0
- package/dist-types/commands/StartCopyJobCommand.d.ts +1 -0
- package/dist-types/commands/UpdateBackupPlanCommand.d.ts +2 -0
- package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +2 -0
- package/dist-types/commands/UpdateRestoreTestingPlanCommand.d.ts +142 -0
- package/dist-types/commands/UpdateRestoreTestingSelectionCommand.d.ts +126 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +1481 -78
- package/dist-types/pagination/ListRestoreJobsByProtectedResourcePaginator.d.ts +7 -0
- package/dist-types/pagination/ListRestoreTestingPlansPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRestoreTestingSelectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/Backup.d.ts +250 -0
- package/dist-types/ts3.4/BackupClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateRestoreTestingPlanCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateRestoreTestingSelectionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteRestoreTestingPlanCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteRestoreTestingSelectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRestoreJobMetadataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetRestoreTestingInferredMetadataCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetRestoreTestingPlanCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetRestoreTestingSelectionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRestoreJobsByProtectedResourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRestoreTestingPlansCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRestoreTestingSelectionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutRestoreValidationResultCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRestoreTestingPlanCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateRestoreTestingSelectionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/models_0.d.ts +276 -0
- package/dist-types/ts3.4/pagination/ListRestoreJobsByProtectedResourcePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRestoreTestingPlansPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRestoreTestingSelectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +12 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.de_UpdateReportPlanCommand = exports.de_UpdateRegionSettingsCommand = exports.de_UpdateRecoveryPointLifecycleCommand = exports.de_UpdateGlobalSettingsCommand = void 0;
|
|
3
|
+
exports.se_ListBackupJobSummariesCommand = exports.se_ListBackupJobsCommand = exports.se_GetSupportedResourceTypesCommand = exports.se_GetRestoreTestingSelectionCommand = exports.se_GetRestoreTestingPlanCommand = exports.se_GetRestoreTestingInferredMetadataCommand = exports.se_GetRestoreJobMetadataCommand = exports.se_GetRecoveryPointRestoreMetadataCommand = exports.se_GetLegalHoldCommand = exports.se_GetBackupVaultNotificationsCommand = exports.se_GetBackupVaultAccessPolicyCommand = exports.se_GetBackupSelectionCommand = exports.se_GetBackupPlanFromTemplateCommand = exports.se_GetBackupPlanFromJSONCommand = exports.se_GetBackupPlanCommand = exports.se_ExportBackupPlanTemplateCommand = exports.se_DisassociateRecoveryPointFromParentCommand = exports.se_DisassociateRecoveryPointCommand = exports.se_DescribeRestoreJobCommand = exports.se_DescribeReportPlanCommand = exports.se_DescribeReportJobCommand = exports.se_DescribeRegionSettingsCommand = exports.se_DescribeRecoveryPointCommand = exports.se_DescribeProtectedResourceCommand = exports.se_DescribeGlobalSettingsCommand = exports.se_DescribeFrameworkCommand = exports.se_DescribeCopyJobCommand = exports.se_DescribeBackupVaultCommand = exports.se_DescribeBackupJobCommand = exports.se_DeleteRestoreTestingSelectionCommand = exports.se_DeleteRestoreTestingPlanCommand = exports.se_DeleteReportPlanCommand = exports.se_DeleteRecoveryPointCommand = exports.se_DeleteFrameworkCommand = exports.se_DeleteBackupVaultNotificationsCommand = exports.se_DeleteBackupVaultLockConfigurationCommand = exports.se_DeleteBackupVaultAccessPolicyCommand = exports.se_DeleteBackupVaultCommand = exports.se_DeleteBackupSelectionCommand = exports.se_DeleteBackupPlanCommand = exports.se_CreateRestoreTestingSelectionCommand = exports.se_CreateRestoreTestingPlanCommand = exports.se_CreateReportPlanCommand = exports.se_CreateLogicallyAirGappedBackupVaultCommand = exports.se_CreateLegalHoldCommand = exports.se_CreateFrameworkCommand = exports.se_CreateBackupVaultCommand = exports.se_CreateBackupSelectionCommand = exports.se_CreateBackupPlanCommand = exports.se_CancelLegalHoldCommand = void 0;
|
|
4
|
+
exports.de_CreateRestoreTestingPlanCommand = exports.de_CreateReportPlanCommand = exports.de_CreateLogicallyAirGappedBackupVaultCommand = exports.de_CreateLegalHoldCommand = exports.de_CreateFrameworkCommand = exports.de_CreateBackupVaultCommand = exports.de_CreateBackupSelectionCommand = exports.de_CreateBackupPlanCommand = exports.de_CancelLegalHoldCommand = exports.se_UpdateRestoreTestingSelectionCommand = exports.se_UpdateRestoreTestingPlanCommand = exports.se_UpdateReportPlanCommand = exports.se_UpdateRegionSettingsCommand = exports.se_UpdateRecoveryPointLifecycleCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateFrameworkCommand = exports.se_UpdateBackupPlanCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBackupJobCommand = exports.se_StartRestoreJobCommand = exports.se_StartReportJobCommand = exports.se_StartCopyJobCommand = exports.se_StartBackupJobCommand = exports.se_PutRestoreValidationResultCommand = exports.se_PutBackupVaultNotificationsCommand = exports.se_PutBackupVaultLockConfigurationCommand = exports.se_PutBackupVaultAccessPolicyCommand = exports.se_ListTagsCommand = exports.se_ListRestoreTestingSelectionsCommand = exports.se_ListRestoreTestingPlansCommand = exports.se_ListRestoreJobSummariesCommand = exports.se_ListRestoreJobsByProtectedResourceCommand = exports.se_ListRestoreJobsCommand = exports.se_ListReportPlansCommand = exports.se_ListReportJobsCommand = exports.se_ListRecoveryPointsByResourceCommand = exports.se_ListRecoveryPointsByLegalHoldCommand = exports.se_ListRecoveryPointsByBackupVaultCommand = exports.se_ListProtectedResourcesByBackupVaultCommand = exports.se_ListProtectedResourcesCommand = exports.se_ListLegalHoldsCommand = exports.se_ListFrameworksCommand = exports.se_ListCopyJobSummariesCommand = exports.se_ListCopyJobsCommand = exports.se_ListBackupVaultsCommand = exports.se_ListBackupSelectionsCommand = exports.se_ListBackupPlanVersionsCommand = exports.se_ListBackupPlanTemplatesCommand = exports.se_ListBackupPlansCommand = void 0;
|
|
5
|
+
exports.de_ListLegalHoldsCommand = exports.de_ListFrameworksCommand = exports.de_ListCopyJobSummariesCommand = exports.de_ListCopyJobsCommand = exports.de_ListBackupVaultsCommand = exports.de_ListBackupSelectionsCommand = exports.de_ListBackupPlanVersionsCommand = exports.de_ListBackupPlanTemplatesCommand = exports.de_ListBackupPlansCommand = exports.de_ListBackupJobSummariesCommand = exports.de_ListBackupJobsCommand = exports.de_GetSupportedResourceTypesCommand = exports.de_GetRestoreTestingSelectionCommand = exports.de_GetRestoreTestingPlanCommand = exports.de_GetRestoreTestingInferredMetadataCommand = exports.de_GetRestoreJobMetadataCommand = exports.de_GetRecoveryPointRestoreMetadataCommand = exports.de_GetLegalHoldCommand = exports.de_GetBackupVaultNotificationsCommand = exports.de_GetBackupVaultAccessPolicyCommand = exports.de_GetBackupSelectionCommand = exports.de_GetBackupPlanFromTemplateCommand = exports.de_GetBackupPlanFromJSONCommand = exports.de_GetBackupPlanCommand = exports.de_ExportBackupPlanTemplateCommand = exports.de_DisassociateRecoveryPointFromParentCommand = exports.de_DisassociateRecoveryPointCommand = exports.de_DescribeRestoreJobCommand = exports.de_DescribeReportPlanCommand = exports.de_DescribeReportJobCommand = exports.de_DescribeRegionSettingsCommand = exports.de_DescribeRecoveryPointCommand = exports.de_DescribeProtectedResourceCommand = exports.de_DescribeGlobalSettingsCommand = exports.de_DescribeFrameworkCommand = exports.de_DescribeCopyJobCommand = exports.de_DescribeBackupVaultCommand = exports.de_DescribeBackupJobCommand = exports.de_DeleteRestoreTestingSelectionCommand = exports.de_DeleteRestoreTestingPlanCommand = exports.de_DeleteReportPlanCommand = exports.de_DeleteRecoveryPointCommand = exports.de_DeleteFrameworkCommand = exports.de_DeleteBackupVaultNotificationsCommand = exports.de_DeleteBackupVaultLockConfigurationCommand = exports.de_DeleteBackupVaultAccessPolicyCommand = exports.de_DeleteBackupVaultCommand = exports.de_DeleteBackupSelectionCommand = exports.de_DeleteBackupPlanCommand = exports.de_CreateRestoreTestingSelectionCommand = void 0;
|
|
6
|
+
exports.de_UpdateRestoreTestingSelectionCommand = exports.de_UpdateRestoreTestingPlanCommand = exports.de_UpdateReportPlanCommand = exports.de_UpdateRegionSettingsCommand = exports.de_UpdateRecoveryPointLifecycleCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateFrameworkCommand = exports.de_UpdateBackupPlanCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBackupJobCommand = exports.de_StartRestoreJobCommand = exports.de_StartReportJobCommand = exports.de_StartCopyJobCommand = exports.de_StartBackupJobCommand = exports.de_PutRestoreValidationResultCommand = exports.de_PutBackupVaultNotificationsCommand = exports.de_PutBackupVaultLockConfigurationCommand = exports.de_PutBackupVaultAccessPolicyCommand = exports.de_ListTagsCommand = exports.de_ListRestoreTestingSelectionsCommand = exports.de_ListRestoreTestingPlansCommand = exports.de_ListRestoreJobSummariesCommand = exports.de_ListRestoreJobsByProtectedResourceCommand = exports.de_ListRestoreJobsCommand = exports.de_ListReportPlansCommand = exports.de_ListReportJobsCommand = exports.de_ListRecoveryPointsByResourceCommand = exports.de_ListRecoveryPointsByLegalHoldCommand = exports.de_ListRecoveryPointsByBackupVaultCommand = exports.de_ListProtectedResourcesByBackupVaultCommand = exports.de_ListProtectedResourcesCommand = void 0;
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
9
|
const uuid_1 = require("uuid");
|
|
@@ -203,6 +203,53 @@ const se_CreateReportPlanCommand = async (input, context) => {
|
|
|
203
203
|
});
|
|
204
204
|
};
|
|
205
205
|
exports.se_CreateReportPlanCommand = se_CreateReportPlanCommand;
|
|
206
|
+
const se_CreateRestoreTestingPlanCommand = async (input, context) => {
|
|
207
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
208
|
+
const headers = {
|
|
209
|
+
"content-type": "application/json",
|
|
210
|
+
};
|
|
211
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/plans";
|
|
212
|
+
let body;
|
|
213
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
|
+
CreatorRequestId: [],
|
|
215
|
+
RestoreTestingPlan: (_) => (0, smithy_client_1._json)(_),
|
|
216
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
217
|
+
}));
|
|
218
|
+
return new protocol_http_1.HttpRequest({
|
|
219
|
+
protocol,
|
|
220
|
+
hostname,
|
|
221
|
+
port,
|
|
222
|
+
method: "PUT",
|
|
223
|
+
headers,
|
|
224
|
+
path: resolvedPath,
|
|
225
|
+
body,
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
exports.se_CreateRestoreTestingPlanCommand = se_CreateRestoreTestingPlanCommand;
|
|
229
|
+
const se_CreateRestoreTestingSelectionCommand = async (input, context) => {
|
|
230
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/json",
|
|
233
|
+
};
|
|
234
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
235
|
+
"/restore-testing/plans/{RestoreTestingPlanName}/selections";
|
|
236
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
239
|
+
CreatorRequestId: [],
|
|
240
|
+
RestoreTestingSelection: (_) => (0, smithy_client_1._json)(_),
|
|
241
|
+
}));
|
|
242
|
+
return new protocol_http_1.HttpRequest({
|
|
243
|
+
protocol,
|
|
244
|
+
hostname,
|
|
245
|
+
port,
|
|
246
|
+
method: "PUT",
|
|
247
|
+
headers,
|
|
248
|
+
path: resolvedPath,
|
|
249
|
+
body,
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
exports.se_CreateRestoreTestingSelectionCommand = se_CreateRestoreTestingSelectionCommand;
|
|
206
253
|
const se_DeleteBackupPlanCommand = async (input, context) => {
|
|
207
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
208
255
|
const headers = {};
|
|
@@ -363,6 +410,43 @@ const se_DeleteReportPlanCommand = async (input, context) => {
|
|
|
363
410
|
});
|
|
364
411
|
};
|
|
365
412
|
exports.se_DeleteReportPlanCommand = se_DeleteReportPlanCommand;
|
|
413
|
+
const se_DeleteRestoreTestingPlanCommand = async (input, context) => {
|
|
414
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
|
+
const headers = {};
|
|
416
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
417
|
+
"/restore-testing/plans/{RestoreTestingPlanName}";
|
|
418
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
419
|
+
let body;
|
|
420
|
+
return new protocol_http_1.HttpRequest({
|
|
421
|
+
protocol,
|
|
422
|
+
hostname,
|
|
423
|
+
port,
|
|
424
|
+
method: "DELETE",
|
|
425
|
+
headers,
|
|
426
|
+
path: resolvedPath,
|
|
427
|
+
body,
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
exports.se_DeleteRestoreTestingPlanCommand = se_DeleteRestoreTestingPlanCommand;
|
|
431
|
+
const se_DeleteRestoreTestingSelectionCommand = async (input, context) => {
|
|
432
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
433
|
+
const headers = {};
|
|
434
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
435
|
+
"/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}";
|
|
436
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
437
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
|
|
438
|
+
let body;
|
|
439
|
+
return new protocol_http_1.HttpRequest({
|
|
440
|
+
protocol,
|
|
441
|
+
hostname,
|
|
442
|
+
port,
|
|
443
|
+
method: "DELETE",
|
|
444
|
+
headers,
|
|
445
|
+
path: resolvedPath,
|
|
446
|
+
body,
|
|
447
|
+
});
|
|
448
|
+
};
|
|
449
|
+
exports.se_DeleteRestoreTestingSelectionCommand = se_DeleteRestoreTestingSelectionCommand;
|
|
366
450
|
const se_DescribeBackupJobCommand = async (input, context) => {
|
|
367
451
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
368
452
|
const headers = {};
|
|
@@ -774,6 +858,82 @@ const se_GetRecoveryPointRestoreMetadataCommand = async (input, context) => {
|
|
|
774
858
|
});
|
|
775
859
|
};
|
|
776
860
|
exports.se_GetRecoveryPointRestoreMetadataCommand = se_GetRecoveryPointRestoreMetadataCommand;
|
|
861
|
+
const se_GetRestoreJobMetadataCommand = async (input, context) => {
|
|
862
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
863
|
+
const headers = {};
|
|
864
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}/metadata";
|
|
865
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
|
|
866
|
+
let body;
|
|
867
|
+
return new protocol_http_1.HttpRequest({
|
|
868
|
+
protocol,
|
|
869
|
+
hostname,
|
|
870
|
+
port,
|
|
871
|
+
method: "GET",
|
|
872
|
+
headers,
|
|
873
|
+
path: resolvedPath,
|
|
874
|
+
body,
|
|
875
|
+
});
|
|
876
|
+
};
|
|
877
|
+
exports.se_GetRestoreJobMetadataCommand = se_GetRestoreJobMetadataCommand;
|
|
878
|
+
const se_GetRestoreTestingInferredMetadataCommand = async (input, context) => {
|
|
879
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
880
|
+
const headers = {};
|
|
881
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/inferred-metadata";
|
|
882
|
+
const query = (0, smithy_client_1.map)({
|
|
883
|
+
BackupVaultAccountId: [, input.BackupVaultAccountId],
|
|
884
|
+
BackupVaultName: [, (0, smithy_client_1.expectNonNull)(input.BackupVaultName, `BackupVaultName`)],
|
|
885
|
+
RecoveryPointArn: [, (0, smithy_client_1.expectNonNull)(input.RecoveryPointArn, `RecoveryPointArn`)],
|
|
886
|
+
});
|
|
887
|
+
let body;
|
|
888
|
+
return new protocol_http_1.HttpRequest({
|
|
889
|
+
protocol,
|
|
890
|
+
hostname,
|
|
891
|
+
port,
|
|
892
|
+
method: "GET",
|
|
893
|
+
headers,
|
|
894
|
+
path: resolvedPath,
|
|
895
|
+
query,
|
|
896
|
+
body,
|
|
897
|
+
});
|
|
898
|
+
};
|
|
899
|
+
exports.se_GetRestoreTestingInferredMetadataCommand = se_GetRestoreTestingInferredMetadataCommand;
|
|
900
|
+
const se_GetRestoreTestingPlanCommand = async (input, context) => {
|
|
901
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
902
|
+
const headers = {};
|
|
903
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
904
|
+
"/restore-testing/plans/{RestoreTestingPlanName}";
|
|
905
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
906
|
+
let body;
|
|
907
|
+
return new protocol_http_1.HttpRequest({
|
|
908
|
+
protocol,
|
|
909
|
+
hostname,
|
|
910
|
+
port,
|
|
911
|
+
method: "GET",
|
|
912
|
+
headers,
|
|
913
|
+
path: resolvedPath,
|
|
914
|
+
body,
|
|
915
|
+
});
|
|
916
|
+
};
|
|
917
|
+
exports.se_GetRestoreTestingPlanCommand = se_GetRestoreTestingPlanCommand;
|
|
918
|
+
const se_GetRestoreTestingSelectionCommand = async (input, context) => {
|
|
919
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
920
|
+
const headers = {};
|
|
921
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
922
|
+
"/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}";
|
|
923
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
924
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
|
|
925
|
+
let body;
|
|
926
|
+
return new protocol_http_1.HttpRequest({
|
|
927
|
+
protocol,
|
|
928
|
+
hostname,
|
|
929
|
+
port,
|
|
930
|
+
method: "GET",
|
|
931
|
+
headers,
|
|
932
|
+
path: resolvedPath,
|
|
933
|
+
body,
|
|
934
|
+
});
|
|
935
|
+
};
|
|
936
|
+
exports.se_GetRestoreTestingSelectionCommand = se_GetRestoreTestingSelectionCommand;
|
|
777
937
|
const se_GetSupportedResourceTypesCommand = async (input, context) => {
|
|
778
938
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
779
939
|
const headers = {
|
|
@@ -1288,6 +1448,7 @@ const se_ListRestoreJobsCommand = async (input, context) => {
|
|
|
1288
1448
|
() => input.ByCompleteAfter !== void 0,
|
|
1289
1449
|
() => (input.ByCompleteAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
1290
1450
|
],
|
|
1451
|
+
restoreTestingPlanArn: [, input.ByRestoreTestingPlanArn],
|
|
1291
1452
|
});
|
|
1292
1453
|
let body;
|
|
1293
1454
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1302,6 +1463,37 @@ const se_ListRestoreJobsCommand = async (input, context) => {
|
|
|
1302
1463
|
});
|
|
1303
1464
|
};
|
|
1304
1465
|
exports.se_ListRestoreJobsCommand = se_ListRestoreJobsCommand;
|
|
1466
|
+
const se_ListRestoreJobsByProtectedResourceCommand = async (input, context) => {
|
|
1467
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1468
|
+
const headers = {};
|
|
1469
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/restore-jobs";
|
|
1470
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1471
|
+
const query = (0, smithy_client_1.map)({
|
|
1472
|
+
status: [, input.ByStatus],
|
|
1473
|
+
recoveryPointCreationDateAfter: [
|
|
1474
|
+
() => input.ByRecoveryPointCreationDateAfter !== void 0,
|
|
1475
|
+
() => (input.ByRecoveryPointCreationDateAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
1476
|
+
],
|
|
1477
|
+
recoveryPointCreationDateBefore: [
|
|
1478
|
+
() => input.ByRecoveryPointCreationDateBefore !== void 0,
|
|
1479
|
+
() => (input.ByRecoveryPointCreationDateBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
1480
|
+
],
|
|
1481
|
+
nextToken: [, input.NextToken],
|
|
1482
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1483
|
+
});
|
|
1484
|
+
let body;
|
|
1485
|
+
return new protocol_http_1.HttpRequest({
|
|
1486
|
+
protocol,
|
|
1487
|
+
hostname,
|
|
1488
|
+
port,
|
|
1489
|
+
method: "GET",
|
|
1490
|
+
headers,
|
|
1491
|
+
path: resolvedPath,
|
|
1492
|
+
query,
|
|
1493
|
+
body,
|
|
1494
|
+
});
|
|
1495
|
+
};
|
|
1496
|
+
exports.se_ListRestoreJobsByProtectedResourceCommand = se_ListRestoreJobsByProtectedResourceCommand;
|
|
1305
1497
|
const se_ListRestoreJobSummariesCommand = async (input, context) => {
|
|
1306
1498
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1307
1499
|
const headers = {};
|
|
@@ -1327,6 +1519,50 @@ const se_ListRestoreJobSummariesCommand = async (input, context) => {
|
|
|
1327
1519
|
});
|
|
1328
1520
|
};
|
|
1329
1521
|
exports.se_ListRestoreJobSummariesCommand = se_ListRestoreJobSummariesCommand;
|
|
1522
|
+
const se_ListRestoreTestingPlansCommand = async (input, context) => {
|
|
1523
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1524
|
+
const headers = {};
|
|
1525
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-testing/plans";
|
|
1526
|
+
const query = (0, smithy_client_1.map)({
|
|
1527
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1528
|
+
NextToken: [, input.NextToken],
|
|
1529
|
+
});
|
|
1530
|
+
let body;
|
|
1531
|
+
return new protocol_http_1.HttpRequest({
|
|
1532
|
+
protocol,
|
|
1533
|
+
hostname,
|
|
1534
|
+
port,
|
|
1535
|
+
method: "GET",
|
|
1536
|
+
headers,
|
|
1537
|
+
path: resolvedPath,
|
|
1538
|
+
query,
|
|
1539
|
+
body,
|
|
1540
|
+
});
|
|
1541
|
+
};
|
|
1542
|
+
exports.se_ListRestoreTestingPlansCommand = se_ListRestoreTestingPlansCommand;
|
|
1543
|
+
const se_ListRestoreTestingSelectionsCommand = async (input, context) => {
|
|
1544
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1545
|
+
const headers = {};
|
|
1546
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1547
|
+
"/restore-testing/plans/{RestoreTestingPlanName}/selections";
|
|
1548
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
1549
|
+
const query = (0, smithy_client_1.map)({
|
|
1550
|
+
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1551
|
+
NextToken: [, input.NextToken],
|
|
1552
|
+
});
|
|
1553
|
+
let body;
|
|
1554
|
+
return new protocol_http_1.HttpRequest({
|
|
1555
|
+
protocol,
|
|
1556
|
+
hostname,
|
|
1557
|
+
port,
|
|
1558
|
+
method: "GET",
|
|
1559
|
+
headers,
|
|
1560
|
+
path: resolvedPath,
|
|
1561
|
+
query,
|
|
1562
|
+
body,
|
|
1563
|
+
});
|
|
1564
|
+
};
|
|
1565
|
+
exports.se_ListRestoreTestingSelectionsCommand = se_ListRestoreTestingSelectionsCommand;
|
|
1330
1566
|
const se_ListTagsCommand = async (input, context) => {
|
|
1331
1567
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1332
1568
|
const headers = {};
|
|
@@ -1421,6 +1657,29 @@ const se_PutBackupVaultNotificationsCommand = async (input, context) => {
|
|
|
1421
1657
|
});
|
|
1422
1658
|
};
|
|
1423
1659
|
exports.se_PutBackupVaultNotificationsCommand = se_PutBackupVaultNotificationsCommand;
|
|
1660
|
+
const se_PutRestoreValidationResultCommand = async (input, context) => {
|
|
1661
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1662
|
+
const headers = {
|
|
1663
|
+
"content-type": "application/json",
|
|
1664
|
+
};
|
|
1665
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}/validations";
|
|
1666
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
|
|
1667
|
+
let body;
|
|
1668
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1669
|
+
ValidationStatus: [],
|
|
1670
|
+
ValidationStatusMessage: [],
|
|
1671
|
+
}));
|
|
1672
|
+
return new protocol_http_1.HttpRequest({
|
|
1673
|
+
protocol,
|
|
1674
|
+
hostname,
|
|
1675
|
+
port,
|
|
1676
|
+
method: "PUT",
|
|
1677
|
+
headers,
|
|
1678
|
+
path: resolvedPath,
|
|
1679
|
+
body,
|
|
1680
|
+
});
|
|
1681
|
+
};
|
|
1682
|
+
exports.se_PutRestoreValidationResultCommand = se_PutRestoreValidationResultCommand;
|
|
1424
1683
|
const se_StartBackupJobCommand = async (input, context) => {
|
|
1425
1684
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1426
1685
|
const headers = {
|
|
@@ -1723,6 +1982,53 @@ const se_UpdateReportPlanCommand = async (input, context) => {
|
|
|
1723
1982
|
});
|
|
1724
1983
|
};
|
|
1725
1984
|
exports.se_UpdateReportPlanCommand = se_UpdateReportPlanCommand;
|
|
1985
|
+
const se_UpdateRestoreTestingPlanCommand = async (input, context) => {
|
|
1986
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1987
|
+
const headers = {
|
|
1988
|
+
"content-type": "application/json",
|
|
1989
|
+
};
|
|
1990
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1991
|
+
"/restore-testing/plans/{RestoreTestingPlanName}";
|
|
1992
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
1993
|
+
let body;
|
|
1994
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1995
|
+
RestoreTestingPlan: (_) => (0, smithy_client_1._json)(_),
|
|
1996
|
+
}));
|
|
1997
|
+
return new protocol_http_1.HttpRequest({
|
|
1998
|
+
protocol,
|
|
1999
|
+
hostname,
|
|
2000
|
+
port,
|
|
2001
|
+
method: "PUT",
|
|
2002
|
+
headers,
|
|
2003
|
+
path: resolvedPath,
|
|
2004
|
+
body,
|
|
2005
|
+
});
|
|
2006
|
+
};
|
|
2007
|
+
exports.se_UpdateRestoreTestingPlanCommand = se_UpdateRestoreTestingPlanCommand;
|
|
2008
|
+
const se_UpdateRestoreTestingSelectionCommand = async (input, context) => {
|
|
2009
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2010
|
+
const headers = {
|
|
2011
|
+
"content-type": "application/json",
|
|
2012
|
+
};
|
|
2013
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2014
|
+
"/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}";
|
|
2015
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
|
|
2016
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
|
|
2017
|
+
let body;
|
|
2018
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2019
|
+
RestoreTestingSelection: (_) => (0, smithy_client_1._json)(_),
|
|
2020
|
+
}));
|
|
2021
|
+
return new protocol_http_1.HttpRequest({
|
|
2022
|
+
protocol,
|
|
2023
|
+
hostname,
|
|
2024
|
+
port,
|
|
2025
|
+
method: "PUT",
|
|
2026
|
+
headers,
|
|
2027
|
+
path: resolvedPath,
|
|
2028
|
+
body,
|
|
2029
|
+
});
|
|
2030
|
+
};
|
|
2031
|
+
exports.se_UpdateRestoreTestingSelectionCommand = se_UpdateRestoreTestingSelectionCommand;
|
|
1726
2032
|
const de_CancelLegalHoldCommand = async (output, context) => {
|
|
1727
2033
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1728
2034
|
return de_CancelLegalHoldCommandError(output, context);
|
|
@@ -2107,36 +2413,139 @@ const de_CreateReportPlanCommandError = async (output, context) => {
|
|
|
2107
2413
|
});
|
|
2108
2414
|
}
|
|
2109
2415
|
};
|
|
2110
|
-
const
|
|
2111
|
-
if (output.statusCode !==
|
|
2112
|
-
return
|
|
2416
|
+
const de_CreateRestoreTestingPlanCommand = async (output, context) => {
|
|
2417
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2418
|
+
return de_CreateRestoreTestingPlanCommandError(output, context);
|
|
2113
2419
|
}
|
|
2114
2420
|
const contents = (0, smithy_client_1.map)({
|
|
2115
2421
|
$metadata: deserializeMetadata(output),
|
|
2116
2422
|
});
|
|
2117
2423
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2118
2424
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
VersionId: smithy_client_1.expectString,
|
|
2425
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2426
|
+
RestoreTestingPlanArn: smithy_client_1.expectString,
|
|
2427
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
2123
2428
|
});
|
|
2124
2429
|
Object.assign(contents, doc);
|
|
2125
2430
|
return contents;
|
|
2126
2431
|
};
|
|
2127
|
-
exports.
|
|
2128
|
-
const
|
|
2432
|
+
exports.de_CreateRestoreTestingPlanCommand = de_CreateRestoreTestingPlanCommand;
|
|
2433
|
+
const de_CreateRestoreTestingPlanCommandError = async (output, context) => {
|
|
2129
2434
|
const parsedOutput = {
|
|
2130
2435
|
...output,
|
|
2131
2436
|
body: await parseErrorBody(output.body, context),
|
|
2132
2437
|
};
|
|
2133
2438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
2439
|
switch (errorCode) {
|
|
2440
|
+
case "AlreadyExistsException":
|
|
2441
|
+
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2442
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2443
|
+
case "ConflictException":
|
|
2444
|
+
case "com.amazonaws.backup#ConflictException":
|
|
2445
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2135
2446
|
case "InvalidParameterValueException":
|
|
2136
2447
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2137
2448
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "
|
|
2139
|
-
case "com.amazonaws.backup#
|
|
2449
|
+
case "LimitExceededException":
|
|
2450
|
+
case "com.amazonaws.backup#LimitExceededException":
|
|
2451
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2452
|
+
case "MissingParameterValueException":
|
|
2453
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2454
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2455
|
+
case "ServiceUnavailableException":
|
|
2456
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2457
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2458
|
+
default:
|
|
2459
|
+
const parsedBody = parsedOutput.body;
|
|
2460
|
+
return throwDefaultError({
|
|
2461
|
+
output,
|
|
2462
|
+
parsedBody,
|
|
2463
|
+
errorCode,
|
|
2464
|
+
});
|
|
2465
|
+
}
|
|
2466
|
+
};
|
|
2467
|
+
const de_CreateRestoreTestingSelectionCommand = async (output, context) => {
|
|
2468
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2469
|
+
return de_CreateRestoreTestingSelectionCommandError(output, context);
|
|
2470
|
+
}
|
|
2471
|
+
const contents = (0, smithy_client_1.map)({
|
|
2472
|
+
$metadata: deserializeMetadata(output),
|
|
2473
|
+
});
|
|
2474
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2475
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2476
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2477
|
+
RestoreTestingPlanArn: smithy_client_1.expectString,
|
|
2478
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
2479
|
+
RestoreTestingSelectionName: smithy_client_1.expectString,
|
|
2480
|
+
});
|
|
2481
|
+
Object.assign(contents, doc);
|
|
2482
|
+
return contents;
|
|
2483
|
+
};
|
|
2484
|
+
exports.de_CreateRestoreTestingSelectionCommand = de_CreateRestoreTestingSelectionCommand;
|
|
2485
|
+
const de_CreateRestoreTestingSelectionCommandError = async (output, context) => {
|
|
2486
|
+
const parsedOutput = {
|
|
2487
|
+
...output,
|
|
2488
|
+
body: await parseErrorBody(output.body, context),
|
|
2489
|
+
};
|
|
2490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
|
+
switch (errorCode) {
|
|
2492
|
+
case "AlreadyExistsException":
|
|
2493
|
+
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2494
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2495
|
+
case "InvalidParameterValueException":
|
|
2496
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2497
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2498
|
+
case "LimitExceededException":
|
|
2499
|
+
case "com.amazonaws.backup#LimitExceededException":
|
|
2500
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2501
|
+
case "MissingParameterValueException":
|
|
2502
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2503
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2504
|
+
case "ResourceNotFoundException":
|
|
2505
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2506
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2507
|
+
case "ServiceUnavailableException":
|
|
2508
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2509
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2510
|
+
default:
|
|
2511
|
+
const parsedBody = parsedOutput.body;
|
|
2512
|
+
return throwDefaultError({
|
|
2513
|
+
output,
|
|
2514
|
+
parsedBody,
|
|
2515
|
+
errorCode,
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
const de_DeleteBackupPlanCommand = async (output, context) => {
|
|
2520
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2521
|
+
return de_DeleteBackupPlanCommandError(output, context);
|
|
2522
|
+
}
|
|
2523
|
+
const contents = (0, smithy_client_1.map)({
|
|
2524
|
+
$metadata: deserializeMetadata(output),
|
|
2525
|
+
});
|
|
2526
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2527
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2528
|
+
BackupPlanArn: smithy_client_1.expectString,
|
|
2529
|
+
BackupPlanId: smithy_client_1.expectString,
|
|
2530
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2531
|
+
VersionId: smithy_client_1.expectString,
|
|
2532
|
+
});
|
|
2533
|
+
Object.assign(contents, doc);
|
|
2534
|
+
return contents;
|
|
2535
|
+
};
|
|
2536
|
+
exports.de_DeleteBackupPlanCommand = de_DeleteBackupPlanCommand;
|
|
2537
|
+
const de_DeleteBackupPlanCommandError = async (output, context) => {
|
|
2538
|
+
const parsedOutput = {
|
|
2539
|
+
...output,
|
|
2540
|
+
body: await parseErrorBody(output.body, context),
|
|
2541
|
+
};
|
|
2542
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
|
+
switch (errorCode) {
|
|
2544
|
+
case "InvalidParameterValueException":
|
|
2545
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2546
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2547
|
+
case "InvalidRequestException":
|
|
2548
|
+
case "com.amazonaws.backup#InvalidRequestException":
|
|
2140
2549
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2141
2550
|
case "MissingParameterValueException":
|
|
2142
2551
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
@@ -2486,6 +2895,72 @@ const de_DeleteReportPlanCommandError = async (output, context) => {
|
|
|
2486
2895
|
});
|
|
2487
2896
|
}
|
|
2488
2897
|
};
|
|
2898
|
+
const de_DeleteRestoreTestingPlanCommand = async (output, context) => {
|
|
2899
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2900
|
+
return de_DeleteRestoreTestingPlanCommandError(output, context);
|
|
2901
|
+
}
|
|
2902
|
+
const contents = (0, smithy_client_1.map)({
|
|
2903
|
+
$metadata: deserializeMetadata(output),
|
|
2904
|
+
});
|
|
2905
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2906
|
+
return contents;
|
|
2907
|
+
};
|
|
2908
|
+
exports.de_DeleteRestoreTestingPlanCommand = de_DeleteRestoreTestingPlanCommand;
|
|
2909
|
+
const de_DeleteRestoreTestingPlanCommandError = async (output, context) => {
|
|
2910
|
+
const parsedOutput = {
|
|
2911
|
+
...output,
|
|
2912
|
+
body: await parseErrorBody(output.body, context),
|
|
2913
|
+
};
|
|
2914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2915
|
+
switch (errorCode) {
|
|
2916
|
+
case "InvalidRequestException":
|
|
2917
|
+
case "com.amazonaws.backup#InvalidRequestException":
|
|
2918
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2919
|
+
case "ServiceUnavailableException":
|
|
2920
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2921
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2922
|
+
default:
|
|
2923
|
+
const parsedBody = parsedOutput.body;
|
|
2924
|
+
return throwDefaultError({
|
|
2925
|
+
output,
|
|
2926
|
+
parsedBody,
|
|
2927
|
+
errorCode,
|
|
2928
|
+
});
|
|
2929
|
+
}
|
|
2930
|
+
};
|
|
2931
|
+
const de_DeleteRestoreTestingSelectionCommand = async (output, context) => {
|
|
2932
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2933
|
+
return de_DeleteRestoreTestingSelectionCommandError(output, context);
|
|
2934
|
+
}
|
|
2935
|
+
const contents = (0, smithy_client_1.map)({
|
|
2936
|
+
$metadata: deserializeMetadata(output),
|
|
2937
|
+
});
|
|
2938
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2939
|
+
return contents;
|
|
2940
|
+
};
|
|
2941
|
+
exports.de_DeleteRestoreTestingSelectionCommand = de_DeleteRestoreTestingSelectionCommand;
|
|
2942
|
+
const de_DeleteRestoreTestingSelectionCommandError = async (output, context) => {
|
|
2943
|
+
const parsedOutput = {
|
|
2944
|
+
...output,
|
|
2945
|
+
body: await parseErrorBody(output.body, context),
|
|
2946
|
+
};
|
|
2947
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
|
+
switch (errorCode) {
|
|
2949
|
+
case "ResourceNotFoundException":
|
|
2950
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2951
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2952
|
+
case "ServiceUnavailableException":
|
|
2953
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2954
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2955
|
+
default:
|
|
2956
|
+
const parsedBody = parsedOutput.body;
|
|
2957
|
+
return throwDefaultError({
|
|
2958
|
+
output,
|
|
2959
|
+
parsedBody,
|
|
2960
|
+
errorCode,
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2963
|
+
};
|
|
2489
2964
|
const de_DescribeBackupJobCommand = async (output, context) => {
|
|
2490
2965
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2491
2966
|
return de_DescribeBackupJobCommandError(output, context);
|
|
@@ -2509,6 +2984,7 @@ const de_DescribeBackupJobCommand = async (output, context) => {
|
|
|
2509
2984
|
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2510
2985
|
ExpectedCompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2511
2986
|
IamRoleArn: smithy_client_1.expectString,
|
|
2987
|
+
InitiationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2512
2988
|
IsParent: smithy_client_1.expectBoolean,
|
|
2513
2989
|
MessageCategory: smithy_client_1.expectString,
|
|
2514
2990
|
NumberOfChildJobs: smithy_client_1.expectLong,
|
|
@@ -2751,6 +3227,11 @@ const de_DescribeProtectedResourceCommand = async (output, context) => {
|
|
|
2751
3227
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2752
3228
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2753
3229
|
LastBackupTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3230
|
+
LastBackupVaultArn: smithy_client_1.expectString,
|
|
3231
|
+
LastRecoveryPointArn: smithy_client_1.expectString,
|
|
3232
|
+
LatestRestoreExecutionTimeMinutes: smithy_client_1.expectLong,
|
|
3233
|
+
LatestRestoreJobCreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3234
|
+
LatestRestoreRecoveryPointCreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2754
3235
|
ResourceArn: smithy_client_1.expectString,
|
|
2755
3236
|
ResourceName: smithy_client_1.expectString,
|
|
2756
3237
|
ResourceType: smithy_client_1.expectString,
|
|
@@ -2982,16 +3463,22 @@ const de_DescribeRestoreJobCommand = async (output, context) => {
|
|
|
2982
3463
|
AccountId: smithy_client_1.expectString,
|
|
2983
3464
|
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
2984
3465
|
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3466
|
+
CreatedBy: smithy_client_1._json,
|
|
2985
3467
|
CreatedResourceArn: smithy_client_1.expectString,
|
|
2986
3468
|
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3469
|
+
DeletionStatus: smithy_client_1.expectString,
|
|
3470
|
+
DeletionStatusMessage: smithy_client_1.expectString,
|
|
2987
3471
|
ExpectedCompletionTimeMinutes: smithy_client_1.expectLong,
|
|
2988
3472
|
IamRoleArn: smithy_client_1.expectString,
|
|
2989
3473
|
PercentDone: smithy_client_1.expectString,
|
|
2990
3474
|
RecoveryPointArn: smithy_client_1.expectString,
|
|
3475
|
+
RecoveryPointCreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2991
3476
|
ResourceType: smithy_client_1.expectString,
|
|
2992
3477
|
RestoreJobId: smithy_client_1.expectString,
|
|
2993
3478
|
Status: smithy_client_1.expectString,
|
|
2994
3479
|
StatusMessage: smithy_client_1.expectString,
|
|
3480
|
+
ValidationStatus: smithy_client_1.expectString,
|
|
3481
|
+
ValidationStatusMessage: smithy_client_1.expectString,
|
|
2995
3482
|
});
|
|
2996
3483
|
Object.assign(contents, doc);
|
|
2997
3484
|
return contents;
|
|
@@ -3499,6 +3986,7 @@ const de_GetRecoveryPointRestoreMetadataCommand = async (output, context) => {
|
|
|
3499
3986
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3500
3987
|
BackupVaultArn: smithy_client_1.expectString,
|
|
3501
3988
|
RecoveryPointArn: smithy_client_1.expectString,
|
|
3989
|
+
ResourceType: smithy_client_1.expectString,
|
|
3502
3990
|
RestoreMetadata: smithy_client_1._json,
|
|
3503
3991
|
});
|
|
3504
3992
|
Object.assign(contents, doc);
|
|
@@ -3533,6 +4021,167 @@ const de_GetRecoveryPointRestoreMetadataCommandError = async (output, context) =
|
|
|
3533
4021
|
});
|
|
3534
4022
|
}
|
|
3535
4023
|
};
|
|
4024
|
+
const de_GetRestoreJobMetadataCommand = async (output, context) => {
|
|
4025
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4026
|
+
return de_GetRestoreJobMetadataCommandError(output, context);
|
|
4027
|
+
}
|
|
4028
|
+
const contents = (0, smithy_client_1.map)({
|
|
4029
|
+
$metadata: deserializeMetadata(output),
|
|
4030
|
+
});
|
|
4031
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4032
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4033
|
+
Metadata: smithy_client_1._json,
|
|
4034
|
+
RestoreJobId: smithy_client_1.expectString,
|
|
4035
|
+
});
|
|
4036
|
+
Object.assign(contents, doc);
|
|
4037
|
+
return contents;
|
|
4038
|
+
};
|
|
4039
|
+
exports.de_GetRestoreJobMetadataCommand = de_GetRestoreJobMetadataCommand;
|
|
4040
|
+
const de_GetRestoreJobMetadataCommandError = async (output, context) => {
|
|
4041
|
+
const parsedOutput = {
|
|
4042
|
+
...output,
|
|
4043
|
+
body: await parseErrorBody(output.body, context),
|
|
4044
|
+
};
|
|
4045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4046
|
+
switch (errorCode) {
|
|
4047
|
+
case "InvalidParameterValueException":
|
|
4048
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4049
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4050
|
+
case "MissingParameterValueException":
|
|
4051
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4052
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4053
|
+
case "ResourceNotFoundException":
|
|
4054
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4055
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4056
|
+
case "ServiceUnavailableException":
|
|
4057
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4058
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4059
|
+
default:
|
|
4060
|
+
const parsedBody = parsedOutput.body;
|
|
4061
|
+
return throwDefaultError({
|
|
4062
|
+
output,
|
|
4063
|
+
parsedBody,
|
|
4064
|
+
errorCode,
|
|
4065
|
+
});
|
|
4066
|
+
}
|
|
4067
|
+
};
|
|
4068
|
+
const de_GetRestoreTestingInferredMetadataCommand = async (output, context) => {
|
|
4069
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4070
|
+
return de_GetRestoreTestingInferredMetadataCommandError(output, context);
|
|
4071
|
+
}
|
|
4072
|
+
const contents = (0, smithy_client_1.map)({
|
|
4073
|
+
$metadata: deserializeMetadata(output),
|
|
4074
|
+
});
|
|
4075
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4076
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4077
|
+
InferredMetadata: smithy_client_1._json,
|
|
4078
|
+
});
|
|
4079
|
+
Object.assign(contents, doc);
|
|
4080
|
+
return contents;
|
|
4081
|
+
};
|
|
4082
|
+
exports.de_GetRestoreTestingInferredMetadataCommand = de_GetRestoreTestingInferredMetadataCommand;
|
|
4083
|
+
const de_GetRestoreTestingInferredMetadataCommandError = async (output, context) => {
|
|
4084
|
+
const parsedOutput = {
|
|
4085
|
+
...output,
|
|
4086
|
+
body: await parseErrorBody(output.body, context),
|
|
4087
|
+
};
|
|
4088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4089
|
+
switch (errorCode) {
|
|
4090
|
+
case "InvalidParameterValueException":
|
|
4091
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4092
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4093
|
+
case "MissingParameterValueException":
|
|
4094
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4095
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4096
|
+
case "ResourceNotFoundException":
|
|
4097
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4098
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4099
|
+
case "ServiceUnavailableException":
|
|
4100
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4101
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4102
|
+
default:
|
|
4103
|
+
const parsedBody = parsedOutput.body;
|
|
4104
|
+
return throwDefaultError({
|
|
4105
|
+
output,
|
|
4106
|
+
parsedBody,
|
|
4107
|
+
errorCode,
|
|
4108
|
+
});
|
|
4109
|
+
}
|
|
4110
|
+
};
|
|
4111
|
+
const de_GetRestoreTestingPlanCommand = async (output, context) => {
|
|
4112
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4113
|
+
return de_GetRestoreTestingPlanCommandError(output, context);
|
|
4114
|
+
}
|
|
4115
|
+
const contents = (0, smithy_client_1.map)({
|
|
4116
|
+
$metadata: deserializeMetadata(output),
|
|
4117
|
+
});
|
|
4118
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4119
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4120
|
+
RestoreTestingPlan: (_) => de_RestoreTestingPlanForGet(_, context),
|
|
4121
|
+
});
|
|
4122
|
+
Object.assign(contents, doc);
|
|
4123
|
+
return contents;
|
|
4124
|
+
};
|
|
4125
|
+
exports.de_GetRestoreTestingPlanCommand = de_GetRestoreTestingPlanCommand;
|
|
4126
|
+
const de_GetRestoreTestingPlanCommandError = async (output, context) => {
|
|
4127
|
+
const parsedOutput = {
|
|
4128
|
+
...output,
|
|
4129
|
+
body: await parseErrorBody(output.body, context),
|
|
4130
|
+
};
|
|
4131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4132
|
+
switch (errorCode) {
|
|
4133
|
+
case "ResourceNotFoundException":
|
|
4134
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4135
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4136
|
+
case "ServiceUnavailableException":
|
|
4137
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4138
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4139
|
+
default:
|
|
4140
|
+
const parsedBody = parsedOutput.body;
|
|
4141
|
+
return throwDefaultError({
|
|
4142
|
+
output,
|
|
4143
|
+
parsedBody,
|
|
4144
|
+
errorCode,
|
|
4145
|
+
});
|
|
4146
|
+
}
|
|
4147
|
+
};
|
|
4148
|
+
const de_GetRestoreTestingSelectionCommand = async (output, context) => {
|
|
4149
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4150
|
+
return de_GetRestoreTestingSelectionCommandError(output, context);
|
|
4151
|
+
}
|
|
4152
|
+
const contents = (0, smithy_client_1.map)({
|
|
4153
|
+
$metadata: deserializeMetadata(output),
|
|
4154
|
+
});
|
|
4155
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4156
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4157
|
+
RestoreTestingSelection: (_) => de_RestoreTestingSelectionForGet(_, context),
|
|
4158
|
+
});
|
|
4159
|
+
Object.assign(contents, doc);
|
|
4160
|
+
return contents;
|
|
4161
|
+
};
|
|
4162
|
+
exports.de_GetRestoreTestingSelectionCommand = de_GetRestoreTestingSelectionCommand;
|
|
4163
|
+
const de_GetRestoreTestingSelectionCommandError = async (output, context) => {
|
|
4164
|
+
const parsedOutput = {
|
|
4165
|
+
...output,
|
|
4166
|
+
body: await parseErrorBody(output.body, context),
|
|
4167
|
+
};
|
|
4168
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4169
|
+
switch (errorCode) {
|
|
4170
|
+
case "ResourceNotFoundException":
|
|
4171
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4172
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4173
|
+
case "ServiceUnavailableException":
|
|
4174
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4175
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4176
|
+
default:
|
|
4177
|
+
const parsedBody = parsedOutput.body;
|
|
4178
|
+
return throwDefaultError({
|
|
4179
|
+
output,
|
|
4180
|
+
parsedBody,
|
|
4181
|
+
errorCode,
|
|
4182
|
+
});
|
|
4183
|
+
}
|
|
4184
|
+
};
|
|
3536
4185
|
const de_GetSupportedResourceTypesCommand = async (output, context) => {
|
|
3537
4186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3538
4187
|
return de_GetSupportedResourceTypesCommandError(output, context);
|
|
@@ -4027,13 +4676,136 @@ const de_ListProtectedResourcesCommand = async (output, context) => {
|
|
|
4027
4676
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4028
4677
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4029
4678
|
NextToken: smithy_client_1.expectString,
|
|
4030
|
-
Results: (_) => de_ProtectedResourcesList(_, context),
|
|
4679
|
+
Results: (_) => de_ProtectedResourcesList(_, context),
|
|
4680
|
+
});
|
|
4681
|
+
Object.assign(contents, doc);
|
|
4682
|
+
return contents;
|
|
4683
|
+
};
|
|
4684
|
+
exports.de_ListProtectedResourcesCommand = de_ListProtectedResourcesCommand;
|
|
4685
|
+
const de_ListProtectedResourcesCommandError = async (output, context) => {
|
|
4686
|
+
const parsedOutput = {
|
|
4687
|
+
...output,
|
|
4688
|
+
body: await parseErrorBody(output.body, context),
|
|
4689
|
+
};
|
|
4690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4691
|
+
switch (errorCode) {
|
|
4692
|
+
case "InvalidParameterValueException":
|
|
4693
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4694
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4695
|
+
case "ServiceUnavailableException":
|
|
4696
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4697
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4698
|
+
default:
|
|
4699
|
+
const parsedBody = parsedOutput.body;
|
|
4700
|
+
return throwDefaultError({
|
|
4701
|
+
output,
|
|
4702
|
+
parsedBody,
|
|
4703
|
+
errorCode,
|
|
4704
|
+
});
|
|
4705
|
+
}
|
|
4706
|
+
};
|
|
4707
|
+
const de_ListProtectedResourcesByBackupVaultCommand = async (output, context) => {
|
|
4708
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4709
|
+
return de_ListProtectedResourcesByBackupVaultCommandError(output, context);
|
|
4710
|
+
}
|
|
4711
|
+
const contents = (0, smithy_client_1.map)({
|
|
4712
|
+
$metadata: deserializeMetadata(output),
|
|
4713
|
+
});
|
|
4714
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4715
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4716
|
+
NextToken: smithy_client_1.expectString,
|
|
4717
|
+
Results: (_) => de_ProtectedResourcesList(_, context),
|
|
4718
|
+
});
|
|
4719
|
+
Object.assign(contents, doc);
|
|
4720
|
+
return contents;
|
|
4721
|
+
};
|
|
4722
|
+
exports.de_ListProtectedResourcesByBackupVaultCommand = de_ListProtectedResourcesByBackupVaultCommand;
|
|
4723
|
+
const de_ListProtectedResourcesByBackupVaultCommandError = async (output, context) => {
|
|
4724
|
+
const parsedOutput = {
|
|
4725
|
+
...output,
|
|
4726
|
+
body: await parseErrorBody(output.body, context),
|
|
4727
|
+
};
|
|
4728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4729
|
+
switch (errorCode) {
|
|
4730
|
+
case "InvalidParameterValueException":
|
|
4731
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4732
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4733
|
+
case "ResourceNotFoundException":
|
|
4734
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4735
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4736
|
+
case "ServiceUnavailableException":
|
|
4737
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4738
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4739
|
+
default:
|
|
4740
|
+
const parsedBody = parsedOutput.body;
|
|
4741
|
+
return throwDefaultError({
|
|
4742
|
+
output,
|
|
4743
|
+
parsedBody,
|
|
4744
|
+
errorCode,
|
|
4745
|
+
});
|
|
4746
|
+
}
|
|
4747
|
+
};
|
|
4748
|
+
const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
|
|
4749
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4750
|
+
return de_ListRecoveryPointsByBackupVaultCommandError(output, context);
|
|
4751
|
+
}
|
|
4752
|
+
const contents = (0, smithy_client_1.map)({
|
|
4753
|
+
$metadata: deserializeMetadata(output),
|
|
4754
|
+
});
|
|
4755
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4756
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4757
|
+
NextToken: smithy_client_1.expectString,
|
|
4758
|
+
RecoveryPoints: (_) => de_RecoveryPointByBackupVaultList(_, context),
|
|
4759
|
+
});
|
|
4760
|
+
Object.assign(contents, doc);
|
|
4761
|
+
return contents;
|
|
4762
|
+
};
|
|
4763
|
+
exports.de_ListRecoveryPointsByBackupVaultCommand = de_ListRecoveryPointsByBackupVaultCommand;
|
|
4764
|
+
const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) => {
|
|
4765
|
+
const parsedOutput = {
|
|
4766
|
+
...output,
|
|
4767
|
+
body: await parseErrorBody(output.body, context),
|
|
4768
|
+
};
|
|
4769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4770
|
+
switch (errorCode) {
|
|
4771
|
+
case "InvalidParameterValueException":
|
|
4772
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4773
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4774
|
+
case "MissingParameterValueException":
|
|
4775
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4776
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4777
|
+
case "ResourceNotFoundException":
|
|
4778
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4779
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4780
|
+
case "ServiceUnavailableException":
|
|
4781
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4782
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4783
|
+
default:
|
|
4784
|
+
const parsedBody = parsedOutput.body;
|
|
4785
|
+
return throwDefaultError({
|
|
4786
|
+
output,
|
|
4787
|
+
parsedBody,
|
|
4788
|
+
errorCode,
|
|
4789
|
+
});
|
|
4790
|
+
}
|
|
4791
|
+
};
|
|
4792
|
+
const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) => {
|
|
4793
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4794
|
+
return de_ListRecoveryPointsByLegalHoldCommandError(output, context);
|
|
4795
|
+
}
|
|
4796
|
+
const contents = (0, smithy_client_1.map)({
|
|
4797
|
+
$metadata: deserializeMetadata(output),
|
|
4798
|
+
});
|
|
4799
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4800
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4801
|
+
NextToken: smithy_client_1.expectString,
|
|
4802
|
+
RecoveryPoints: smithy_client_1._json,
|
|
4031
4803
|
});
|
|
4032
4804
|
Object.assign(contents, doc);
|
|
4033
4805
|
return contents;
|
|
4034
4806
|
};
|
|
4035
|
-
exports.
|
|
4036
|
-
const
|
|
4807
|
+
exports.de_ListRecoveryPointsByLegalHoldCommand = de_ListRecoveryPointsByLegalHoldCommand;
|
|
4808
|
+
const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) => {
|
|
4037
4809
|
const parsedOutput = {
|
|
4038
4810
|
...output,
|
|
4039
4811
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4043,6 +4815,9 @@ const de_ListProtectedResourcesCommandError = async (output, context) => {
|
|
|
4043
4815
|
case "InvalidParameterValueException":
|
|
4044
4816
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4045
4817
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4818
|
+
case "MissingParameterValueException":
|
|
4819
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4820
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4046
4821
|
case "ServiceUnavailableException":
|
|
4047
4822
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4048
4823
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -4055,9 +4830,9 @@ const de_ListProtectedResourcesCommandError = async (output, context) => {
|
|
|
4055
4830
|
});
|
|
4056
4831
|
}
|
|
4057
4832
|
};
|
|
4058
|
-
const
|
|
4833
|
+
const de_ListRecoveryPointsByResourceCommand = async (output, context) => {
|
|
4059
4834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4060
|
-
return
|
|
4835
|
+
return de_ListRecoveryPointsByResourceCommandError(output, context);
|
|
4061
4836
|
}
|
|
4062
4837
|
const contents = (0, smithy_client_1.map)({
|
|
4063
4838
|
$metadata: deserializeMetadata(output),
|
|
@@ -4065,13 +4840,13 @@ const de_ListProtectedResourcesByBackupVaultCommand = async (output, context) =>
|
|
|
4065
4840
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4066
4841
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4067
4842
|
NextToken: smithy_client_1.expectString,
|
|
4068
|
-
|
|
4843
|
+
RecoveryPoints: (_) => de_RecoveryPointByResourceList(_, context),
|
|
4069
4844
|
});
|
|
4070
4845
|
Object.assign(contents, doc);
|
|
4071
4846
|
return contents;
|
|
4072
4847
|
};
|
|
4073
|
-
exports.
|
|
4074
|
-
const
|
|
4848
|
+
exports.de_ListRecoveryPointsByResourceCommand = de_ListRecoveryPointsByResourceCommand;
|
|
4849
|
+
const de_ListRecoveryPointsByResourceCommandError = async (output, context) => {
|
|
4075
4850
|
const parsedOutput = {
|
|
4076
4851
|
...output,
|
|
4077
4852
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4081,6 +4856,9 @@ const de_ListProtectedResourcesByBackupVaultCommandError = async (output, contex
|
|
|
4081
4856
|
case "InvalidParameterValueException":
|
|
4082
4857
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4083
4858
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4859
|
+
case "MissingParameterValueException":
|
|
4860
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4861
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4084
4862
|
case "ResourceNotFoundException":
|
|
4085
4863
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4086
4864
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4096,9 +4874,9 @@ const de_ListProtectedResourcesByBackupVaultCommandError = async (output, contex
|
|
|
4096
4874
|
});
|
|
4097
4875
|
}
|
|
4098
4876
|
};
|
|
4099
|
-
const
|
|
4877
|
+
const de_ListReportJobsCommand = async (output, context) => {
|
|
4100
4878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4101
|
-
return
|
|
4879
|
+
return de_ListReportJobsCommandError(output, context);
|
|
4102
4880
|
}
|
|
4103
4881
|
const contents = (0, smithy_client_1.map)({
|
|
4104
4882
|
$metadata: deserializeMetadata(output),
|
|
@@ -4106,13 +4884,13 @@ const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
|
|
|
4106
4884
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4107
4885
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4108
4886
|
NextToken: smithy_client_1.expectString,
|
|
4109
|
-
|
|
4887
|
+
ReportJobs: (_) => de_ReportJobList(_, context),
|
|
4110
4888
|
});
|
|
4111
4889
|
Object.assign(contents, doc);
|
|
4112
4890
|
return contents;
|
|
4113
4891
|
};
|
|
4114
|
-
exports.
|
|
4115
|
-
const
|
|
4892
|
+
exports.de_ListReportJobsCommand = de_ListReportJobsCommand;
|
|
4893
|
+
const de_ListReportJobsCommandError = async (output, context) => {
|
|
4116
4894
|
const parsedOutput = {
|
|
4117
4895
|
...output,
|
|
4118
4896
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4122,9 +4900,6 @@ const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) =
|
|
|
4122
4900
|
case "InvalidParameterValueException":
|
|
4123
4901
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4124
4902
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4125
|
-
case "MissingParameterValueException":
|
|
4126
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4127
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4128
4903
|
case "ResourceNotFoundException":
|
|
4129
4904
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4130
4905
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4140,9 +4915,9 @@ const de_ListRecoveryPointsByBackupVaultCommandError = async (output, context) =
|
|
|
4140
4915
|
});
|
|
4141
4916
|
}
|
|
4142
4917
|
};
|
|
4143
|
-
const
|
|
4918
|
+
const de_ListReportPlansCommand = async (output, context) => {
|
|
4144
4919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4145
|
-
return
|
|
4920
|
+
return de_ListReportPlansCommandError(output, context);
|
|
4146
4921
|
}
|
|
4147
4922
|
const contents = (0, smithy_client_1.map)({
|
|
4148
4923
|
$metadata: deserializeMetadata(output),
|
|
@@ -4150,13 +4925,13 @@ const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) => {
|
|
|
4150
4925
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4151
4926
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4152
4927
|
NextToken: smithy_client_1.expectString,
|
|
4153
|
-
|
|
4928
|
+
ReportPlans: (_) => de_ReportPlanList(_, context),
|
|
4154
4929
|
});
|
|
4155
4930
|
Object.assign(contents, doc);
|
|
4156
4931
|
return contents;
|
|
4157
4932
|
};
|
|
4158
|
-
exports.
|
|
4159
|
-
const
|
|
4933
|
+
exports.de_ListReportPlansCommand = de_ListReportPlansCommand;
|
|
4934
|
+
const de_ListReportPlansCommandError = async (output, context) => {
|
|
4160
4935
|
const parsedOutput = {
|
|
4161
4936
|
...output,
|
|
4162
4937
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4166,9 +4941,6 @@ const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) =>
|
|
|
4166
4941
|
case "InvalidParameterValueException":
|
|
4167
4942
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4168
4943
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4169
|
-
case "MissingParameterValueException":
|
|
4170
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4171
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4172
4944
|
case "ServiceUnavailableException":
|
|
4173
4945
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4174
4946
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -4181,9 +4953,9 @@ const de_ListRecoveryPointsByLegalHoldCommandError = async (output, context) =>
|
|
|
4181
4953
|
});
|
|
4182
4954
|
}
|
|
4183
4955
|
};
|
|
4184
|
-
const
|
|
4956
|
+
const de_ListRestoreJobsCommand = async (output, context) => {
|
|
4185
4957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4186
|
-
return
|
|
4958
|
+
return de_ListRestoreJobsCommandError(output, context);
|
|
4187
4959
|
}
|
|
4188
4960
|
const contents = (0, smithy_client_1.map)({
|
|
4189
4961
|
$metadata: deserializeMetadata(output),
|
|
@@ -4191,13 +4963,13 @@ const de_ListRecoveryPointsByResourceCommand = async (output, context) => {
|
|
|
4191
4963
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4192
4964
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4193
4965
|
NextToken: smithy_client_1.expectString,
|
|
4194
|
-
|
|
4966
|
+
RestoreJobs: (_) => de_RestoreJobsList(_, context),
|
|
4195
4967
|
});
|
|
4196
4968
|
Object.assign(contents, doc);
|
|
4197
4969
|
return contents;
|
|
4198
4970
|
};
|
|
4199
|
-
exports.
|
|
4200
|
-
const
|
|
4971
|
+
exports.de_ListRestoreJobsCommand = de_ListRestoreJobsCommand;
|
|
4972
|
+
const de_ListRestoreJobsCommandError = async (output, context) => {
|
|
4201
4973
|
const parsedOutput = {
|
|
4202
4974
|
...output,
|
|
4203
4975
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4225,9 +4997,9 @@ const de_ListRecoveryPointsByResourceCommandError = async (output, context) => {
|
|
|
4225
4997
|
});
|
|
4226
4998
|
}
|
|
4227
4999
|
};
|
|
4228
|
-
const
|
|
5000
|
+
const de_ListRestoreJobsByProtectedResourceCommand = async (output, context) => {
|
|
4229
5001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4230
|
-
return
|
|
5002
|
+
return de_ListRestoreJobsByProtectedResourceCommandError(output, context);
|
|
4231
5003
|
}
|
|
4232
5004
|
const contents = (0, smithy_client_1.map)({
|
|
4233
5005
|
$metadata: deserializeMetadata(output),
|
|
@@ -4235,13 +5007,13 @@ const de_ListReportJobsCommand = async (output, context) => {
|
|
|
4235
5007
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4236
5008
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4237
5009
|
NextToken: smithy_client_1.expectString,
|
|
4238
|
-
|
|
5010
|
+
RestoreJobs: (_) => de_RestoreJobsList(_, context),
|
|
4239
5011
|
});
|
|
4240
5012
|
Object.assign(contents, doc);
|
|
4241
5013
|
return contents;
|
|
4242
5014
|
};
|
|
4243
|
-
exports.
|
|
4244
|
-
const
|
|
5015
|
+
exports.de_ListRestoreJobsByProtectedResourceCommand = de_ListRestoreJobsByProtectedResourceCommand;
|
|
5016
|
+
const de_ListRestoreJobsByProtectedResourceCommandError = async (output, context) => {
|
|
4245
5017
|
const parsedOutput = {
|
|
4246
5018
|
...output,
|
|
4247
5019
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4251,6 +5023,9 @@ const de_ListReportJobsCommandError = async (output, context) => {
|
|
|
4251
5023
|
case "InvalidParameterValueException":
|
|
4252
5024
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4253
5025
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5026
|
+
case "MissingParameterValueException":
|
|
5027
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5028
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4254
5029
|
case "ResourceNotFoundException":
|
|
4255
5030
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4256
5031
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4266,23 +5041,24 @@ const de_ListReportJobsCommandError = async (output, context) => {
|
|
|
4266
5041
|
});
|
|
4267
5042
|
}
|
|
4268
5043
|
};
|
|
4269
|
-
const
|
|
5044
|
+
const de_ListRestoreJobSummariesCommand = async (output, context) => {
|
|
4270
5045
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4271
|
-
return
|
|
5046
|
+
return de_ListRestoreJobSummariesCommandError(output, context);
|
|
4272
5047
|
}
|
|
4273
5048
|
const contents = (0, smithy_client_1.map)({
|
|
4274
5049
|
$metadata: deserializeMetadata(output),
|
|
4275
5050
|
});
|
|
4276
5051
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4277
5052
|
const doc = (0, smithy_client_1.take)(data, {
|
|
5053
|
+
AggregationPeriod: smithy_client_1.expectString,
|
|
4278
5054
|
NextToken: smithy_client_1.expectString,
|
|
4279
|
-
|
|
5055
|
+
RestoreJobSummaries: (_) => de_RestoreJobSummaryList(_, context),
|
|
4280
5056
|
});
|
|
4281
5057
|
Object.assign(contents, doc);
|
|
4282
5058
|
return contents;
|
|
4283
5059
|
};
|
|
4284
|
-
exports.
|
|
4285
|
-
const
|
|
5060
|
+
exports.de_ListRestoreJobSummariesCommand = de_ListRestoreJobSummariesCommand;
|
|
5061
|
+
const de_ListRestoreJobSummariesCommandError = async (output, context) => {
|
|
4286
5062
|
const parsedOutput = {
|
|
4287
5063
|
...output,
|
|
4288
5064
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4304,9 +5080,9 @@ const de_ListReportPlansCommandError = async (output, context) => {
|
|
|
4304
5080
|
});
|
|
4305
5081
|
}
|
|
4306
5082
|
};
|
|
4307
|
-
const
|
|
5083
|
+
const de_ListRestoreTestingPlansCommand = async (output, context) => {
|
|
4308
5084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4309
|
-
return
|
|
5085
|
+
return de_ListRestoreTestingPlansCommandError(output, context);
|
|
4310
5086
|
}
|
|
4311
5087
|
const contents = (0, smithy_client_1.map)({
|
|
4312
5088
|
$metadata: deserializeMetadata(output),
|
|
@@ -4314,13 +5090,13 @@ const de_ListRestoreJobsCommand = async (output, context) => {
|
|
|
4314
5090
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4315
5091
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4316
5092
|
NextToken: smithy_client_1.expectString,
|
|
4317
|
-
|
|
5093
|
+
RestoreTestingPlans: (_) => de_RestoreTestingPlans(_, context),
|
|
4318
5094
|
});
|
|
4319
5095
|
Object.assign(contents, doc);
|
|
4320
5096
|
return contents;
|
|
4321
5097
|
};
|
|
4322
|
-
exports.
|
|
4323
|
-
const
|
|
5098
|
+
exports.de_ListRestoreTestingPlansCommand = de_ListRestoreTestingPlansCommand;
|
|
5099
|
+
const de_ListRestoreTestingPlansCommandError = async (output, context) => {
|
|
4324
5100
|
const parsedOutput = {
|
|
4325
5101
|
...output,
|
|
4326
5102
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4330,12 +5106,6 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
|
|
|
4330
5106
|
case "InvalidParameterValueException":
|
|
4331
5107
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4332
5108
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4333
|
-
case "MissingParameterValueException":
|
|
4334
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4335
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4336
|
-
case "ResourceNotFoundException":
|
|
4337
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4339
5109
|
case "ServiceUnavailableException":
|
|
4340
5110
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4341
5111
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -4348,24 +5118,23 @@ const de_ListRestoreJobsCommandError = async (output, context) => {
|
|
|
4348
5118
|
});
|
|
4349
5119
|
}
|
|
4350
5120
|
};
|
|
4351
|
-
const
|
|
5121
|
+
const de_ListRestoreTestingSelectionsCommand = async (output, context) => {
|
|
4352
5122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4353
|
-
return
|
|
5123
|
+
return de_ListRestoreTestingSelectionsCommandError(output, context);
|
|
4354
5124
|
}
|
|
4355
5125
|
const contents = (0, smithy_client_1.map)({
|
|
4356
5126
|
$metadata: deserializeMetadata(output),
|
|
4357
5127
|
});
|
|
4358
5128
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4359
5129
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4360
|
-
AggregationPeriod: smithy_client_1.expectString,
|
|
4361
5130
|
NextToken: smithy_client_1.expectString,
|
|
4362
|
-
|
|
5131
|
+
RestoreTestingSelections: (_) => de_RestoreTestingSelections(_, context),
|
|
4363
5132
|
});
|
|
4364
5133
|
Object.assign(contents, doc);
|
|
4365
5134
|
return contents;
|
|
4366
5135
|
};
|
|
4367
|
-
exports.
|
|
4368
|
-
const
|
|
5136
|
+
exports.de_ListRestoreTestingSelectionsCommand = de_ListRestoreTestingSelectionsCommand;
|
|
5137
|
+
const de_ListRestoreTestingSelectionsCommandError = async (output, context) => {
|
|
4369
5138
|
const parsedOutput = {
|
|
4370
5139
|
...output,
|
|
4371
5140
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4375,6 +5144,9 @@ const de_ListRestoreJobSummariesCommandError = async (output, context) => {
|
|
|
4375
5144
|
case "InvalidParameterValueException":
|
|
4376
5145
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4377
5146
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5147
|
+
case "ResourceNotFoundException":
|
|
5148
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5149
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4378
5150
|
case "ServiceUnavailableException":
|
|
4379
5151
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4380
5152
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -4551,6 +5323,48 @@ const de_PutBackupVaultNotificationsCommandError = async (output, context) => {
|
|
|
4551
5323
|
});
|
|
4552
5324
|
}
|
|
4553
5325
|
};
|
|
5326
|
+
const de_PutRestoreValidationResultCommand = async (output, context) => {
|
|
5327
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5328
|
+
return de_PutRestoreValidationResultCommandError(output, context);
|
|
5329
|
+
}
|
|
5330
|
+
const contents = (0, smithy_client_1.map)({
|
|
5331
|
+
$metadata: deserializeMetadata(output),
|
|
5332
|
+
});
|
|
5333
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
5334
|
+
return contents;
|
|
5335
|
+
};
|
|
5336
|
+
exports.de_PutRestoreValidationResultCommand = de_PutRestoreValidationResultCommand;
|
|
5337
|
+
const de_PutRestoreValidationResultCommandError = async (output, context) => {
|
|
5338
|
+
const parsedOutput = {
|
|
5339
|
+
...output,
|
|
5340
|
+
body: await parseErrorBody(output.body, context),
|
|
5341
|
+
};
|
|
5342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5343
|
+
switch (errorCode) {
|
|
5344
|
+
case "InvalidParameterValueException":
|
|
5345
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5346
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5347
|
+
case "InvalidRequestException":
|
|
5348
|
+
case "com.amazonaws.backup#InvalidRequestException":
|
|
5349
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5350
|
+
case "MissingParameterValueException":
|
|
5351
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5352
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5353
|
+
case "ResourceNotFoundException":
|
|
5354
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5355
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5356
|
+
case "ServiceUnavailableException":
|
|
5357
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5358
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5359
|
+
default:
|
|
5360
|
+
const parsedBody = parsedOutput.body;
|
|
5361
|
+
return throwDefaultError({
|
|
5362
|
+
output,
|
|
5363
|
+
parsedBody,
|
|
5364
|
+
errorCode,
|
|
5365
|
+
});
|
|
5366
|
+
}
|
|
5367
|
+
};
|
|
4554
5368
|
const de_StartBackupJobCommand = async (output, context) => {
|
|
4555
5369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4556
5370
|
return de_StartBackupJobCommandError(output, context);
|
|
@@ -5139,6 +5953,105 @@ const de_UpdateReportPlanCommandError = async (output, context) => {
|
|
|
5139
5953
|
});
|
|
5140
5954
|
}
|
|
5141
5955
|
};
|
|
5956
|
+
const de_UpdateRestoreTestingPlanCommand = async (output, context) => {
|
|
5957
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5958
|
+
return de_UpdateRestoreTestingPlanCommandError(output, context);
|
|
5959
|
+
}
|
|
5960
|
+
const contents = (0, smithy_client_1.map)({
|
|
5961
|
+
$metadata: deserializeMetadata(output),
|
|
5962
|
+
});
|
|
5963
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5964
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5965
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5966
|
+
RestoreTestingPlanArn: smithy_client_1.expectString,
|
|
5967
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
5968
|
+
UpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5969
|
+
});
|
|
5970
|
+
Object.assign(contents, doc);
|
|
5971
|
+
return contents;
|
|
5972
|
+
};
|
|
5973
|
+
exports.de_UpdateRestoreTestingPlanCommand = de_UpdateRestoreTestingPlanCommand;
|
|
5974
|
+
const de_UpdateRestoreTestingPlanCommandError = async (output, context) => {
|
|
5975
|
+
const parsedOutput = {
|
|
5976
|
+
...output,
|
|
5977
|
+
body: await parseErrorBody(output.body, context),
|
|
5978
|
+
};
|
|
5979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5980
|
+
switch (errorCode) {
|
|
5981
|
+
case "ConflictException":
|
|
5982
|
+
case "com.amazonaws.backup#ConflictException":
|
|
5983
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5984
|
+
case "InvalidParameterValueException":
|
|
5985
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5986
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5987
|
+
case "MissingParameterValueException":
|
|
5988
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5989
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5990
|
+
case "ResourceNotFoundException":
|
|
5991
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5992
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5993
|
+
case "ServiceUnavailableException":
|
|
5994
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5995
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5996
|
+
default:
|
|
5997
|
+
const parsedBody = parsedOutput.body;
|
|
5998
|
+
return throwDefaultError({
|
|
5999
|
+
output,
|
|
6000
|
+
parsedBody,
|
|
6001
|
+
errorCode,
|
|
6002
|
+
});
|
|
6003
|
+
}
|
|
6004
|
+
};
|
|
6005
|
+
const de_UpdateRestoreTestingSelectionCommand = async (output, context) => {
|
|
6006
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6007
|
+
return de_UpdateRestoreTestingSelectionCommandError(output, context);
|
|
6008
|
+
}
|
|
6009
|
+
const contents = (0, smithy_client_1.map)({
|
|
6010
|
+
$metadata: deserializeMetadata(output),
|
|
6011
|
+
});
|
|
6012
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6013
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6014
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6015
|
+
RestoreTestingPlanArn: smithy_client_1.expectString,
|
|
6016
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
6017
|
+
RestoreTestingSelectionName: smithy_client_1.expectString,
|
|
6018
|
+
UpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6019
|
+
});
|
|
6020
|
+
Object.assign(contents, doc);
|
|
6021
|
+
return contents;
|
|
6022
|
+
};
|
|
6023
|
+
exports.de_UpdateRestoreTestingSelectionCommand = de_UpdateRestoreTestingSelectionCommand;
|
|
6024
|
+
const de_UpdateRestoreTestingSelectionCommandError = async (output, context) => {
|
|
6025
|
+
const parsedOutput = {
|
|
6026
|
+
...output,
|
|
6027
|
+
body: await parseErrorBody(output.body, context),
|
|
6028
|
+
};
|
|
6029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6030
|
+
switch (errorCode) {
|
|
6031
|
+
case "ConflictException":
|
|
6032
|
+
case "com.amazonaws.backup#ConflictException":
|
|
6033
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6034
|
+
case "InvalidParameterValueException":
|
|
6035
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6036
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
6037
|
+
case "MissingParameterValueException":
|
|
6038
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6039
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
6040
|
+
case "ResourceNotFoundException":
|
|
6041
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6042
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6043
|
+
case "ServiceUnavailableException":
|
|
6044
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6045
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6046
|
+
default:
|
|
6047
|
+
const parsedBody = parsedOutput.body;
|
|
6048
|
+
return throwDefaultError({
|
|
6049
|
+
output,
|
|
6050
|
+
parsedBody,
|
|
6051
|
+
errorCode,
|
|
6052
|
+
});
|
|
6053
|
+
}
|
|
6054
|
+
};
|
|
5142
6055
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(BackupServiceException_1.BackupServiceException);
|
|
5143
6056
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
5144
6057
|
const contents = (0, smithy_client_1.map)({});
|
|
@@ -5330,6 +6243,7 @@ const de_BackupJob = (output, context) => {
|
|
|
5330
6243
|
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5331
6244
|
ExpectedCompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5332
6245
|
IamRoleArn: smithy_client_1.expectString,
|
|
6246
|
+
InitiationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5333
6247
|
IsParent: smithy_client_1.expectBoolean,
|
|
5334
6248
|
MessageCategory: smithy_client_1.expectString,
|
|
5335
6249
|
ParentJobId: smithy_client_1.expectString,
|
|
@@ -5546,6 +6460,8 @@ const de_LegalHoldsList = (output, context) => {
|
|
|
5546
6460
|
const de_ProtectedResource = (output, context) => {
|
|
5547
6461
|
return (0, smithy_client_1.take)(output, {
|
|
5548
6462
|
LastBackupTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6463
|
+
LastBackupVaultArn: smithy_client_1.expectString,
|
|
6464
|
+
LastRecoveryPointArn: smithy_client_1.expectString,
|
|
5549
6465
|
ResourceArn: smithy_client_1.expectString,
|
|
5550
6466
|
ResourceName: smithy_client_1.expectString,
|
|
5551
6467
|
ResourceType: smithy_client_1.expectString,
|
|
@@ -5676,16 +6592,22 @@ const de_RestoreJobsListMember = (output, context) => {
|
|
|
5676
6592
|
AccountId: smithy_client_1.expectString,
|
|
5677
6593
|
BackupSizeInBytes: smithy_client_1.expectLong,
|
|
5678
6594
|
CompletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6595
|
+
CreatedBy: smithy_client_1._json,
|
|
5679
6596
|
CreatedResourceArn: smithy_client_1.expectString,
|
|
5680
6597
|
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6598
|
+
DeletionStatus: smithy_client_1.expectString,
|
|
6599
|
+
DeletionStatusMessage: smithy_client_1.expectString,
|
|
5681
6600
|
ExpectedCompletionTimeMinutes: smithy_client_1.expectLong,
|
|
5682
6601
|
IamRoleArn: smithy_client_1.expectString,
|
|
5683
6602
|
PercentDone: smithy_client_1.expectString,
|
|
5684
6603
|
RecoveryPointArn: smithy_client_1.expectString,
|
|
6604
|
+
RecoveryPointCreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5685
6605
|
ResourceType: smithy_client_1.expectString,
|
|
5686
6606
|
RestoreJobId: smithy_client_1.expectString,
|
|
5687
6607
|
Status: smithy_client_1.expectString,
|
|
5688
6608
|
StatusMessage: smithy_client_1.expectString,
|
|
6609
|
+
ValidationStatus: smithy_client_1.expectString,
|
|
6610
|
+
ValidationStatusMessage: smithy_client_1.expectString,
|
|
5689
6611
|
});
|
|
5690
6612
|
};
|
|
5691
6613
|
const de_RestoreJobSummary = (output, context) => {
|
|
@@ -5707,6 +6629,72 @@ const de_RestoreJobSummaryList = (output, context) => {
|
|
|
5707
6629
|
});
|
|
5708
6630
|
return retVal;
|
|
5709
6631
|
};
|
|
6632
|
+
const de_RestoreTestingPlanForGet = (output, context) => {
|
|
6633
|
+
return (0, smithy_client_1.take)(output, {
|
|
6634
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6635
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
6636
|
+
LastExecutionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6637
|
+
LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6638
|
+
RecoveryPointSelection: smithy_client_1._json,
|
|
6639
|
+
RestoreTestingPlanArn: smithy_client_1.expectString,
|
|
6640
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
6641
|
+
ScheduleExpression: smithy_client_1.expectString,
|
|
6642
|
+
ScheduleExpressionTimezone: smithy_client_1.expectString,
|
|
6643
|
+
StartWindowHours: smithy_client_1.expectInt32,
|
|
6644
|
+
});
|
|
6645
|
+
};
|
|
6646
|
+
const de_RestoreTestingPlanForList = (output, context) => {
|
|
6647
|
+
return (0, smithy_client_1.take)(output, {
|
|
6648
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6649
|
+
LastExecutionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6650
|
+
LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6651
|
+
RestoreTestingPlanArn: smithy_client_1.expectString,
|
|
6652
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
6653
|
+
ScheduleExpression: smithy_client_1.expectString,
|
|
6654
|
+
ScheduleExpressionTimezone: smithy_client_1.expectString,
|
|
6655
|
+
StartWindowHours: smithy_client_1.expectInt32,
|
|
6656
|
+
});
|
|
6657
|
+
};
|
|
6658
|
+
const de_RestoreTestingPlans = (output, context) => {
|
|
6659
|
+
const retVal = (output || [])
|
|
6660
|
+
.filter((e) => e != null)
|
|
6661
|
+
.map((entry) => {
|
|
6662
|
+
return de_RestoreTestingPlanForList(entry, context);
|
|
6663
|
+
});
|
|
6664
|
+
return retVal;
|
|
6665
|
+
};
|
|
6666
|
+
const de_RestoreTestingSelectionForGet = (output, context) => {
|
|
6667
|
+
return (0, smithy_client_1.take)(output, {
|
|
6668
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6669
|
+
CreatorRequestId: smithy_client_1.expectString,
|
|
6670
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
6671
|
+
ProtectedResourceArns: smithy_client_1._json,
|
|
6672
|
+
ProtectedResourceConditions: smithy_client_1._json,
|
|
6673
|
+
ProtectedResourceType: smithy_client_1.expectString,
|
|
6674
|
+
RestoreMetadataOverrides: smithy_client_1._json,
|
|
6675
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
6676
|
+
RestoreTestingSelectionName: smithy_client_1.expectString,
|
|
6677
|
+
ValidationWindowHours: smithy_client_1.expectInt32,
|
|
6678
|
+
});
|
|
6679
|
+
};
|
|
6680
|
+
const de_RestoreTestingSelectionForList = (output, context) => {
|
|
6681
|
+
return (0, smithy_client_1.take)(output, {
|
|
6682
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
6683
|
+
IamRoleArn: smithy_client_1.expectString,
|
|
6684
|
+
ProtectedResourceType: smithy_client_1.expectString,
|
|
6685
|
+
RestoreTestingPlanName: smithy_client_1.expectString,
|
|
6686
|
+
RestoreTestingSelectionName: smithy_client_1.expectString,
|
|
6687
|
+
ValidationWindowHours: smithy_client_1.expectInt32,
|
|
6688
|
+
});
|
|
6689
|
+
};
|
|
6690
|
+
const de_RestoreTestingSelections = (output, context) => {
|
|
6691
|
+
const retVal = (output || [])
|
|
6692
|
+
.filter((e) => e != null)
|
|
6693
|
+
.map((entry) => {
|
|
6694
|
+
return de_RestoreTestingSelectionForList(entry, context);
|
|
6695
|
+
});
|
|
6696
|
+
return retVal;
|
|
6697
|
+
};
|
|
5710
6698
|
const deserializeMetadata = (output) => ({
|
|
5711
6699
|
httpStatusCode: output.statusCode,
|
|
5712
6700
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|