@aws-sdk/client-backup 3.54.1 → 3.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/BackupClient.js +13 -13
  3. package/dist-cjs/commands/CreateBackupPlanCommand.js +3 -3
  4. package/dist-cjs/commands/CreateBackupSelectionCommand.js +3 -3
  5. package/dist-cjs/commands/CreateBackupVaultCommand.js +3 -3
  6. package/dist-cjs/commands/CreateFrameworkCommand.js +3 -3
  7. package/dist-cjs/commands/CreateReportPlanCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteBackupPlanCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteBackupSelectionCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteBackupVaultAccessPolicyCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteBackupVaultCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteBackupVaultLockConfigurationCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteBackupVaultNotificationsCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteFrameworkCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteRecoveryPointCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteReportPlanCommand.js +3 -3
  17. package/dist-cjs/commands/DescribeBackupJobCommand.js +3 -3
  18. package/dist-cjs/commands/DescribeBackupVaultCommand.js +3 -3
  19. package/dist-cjs/commands/DescribeCopyJobCommand.js +3 -3
  20. package/dist-cjs/commands/DescribeFrameworkCommand.js +3 -3
  21. package/dist-cjs/commands/DescribeGlobalSettingsCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeProtectedResourceCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeRecoveryPointCommand.js +3 -3
  24. package/dist-cjs/commands/DescribeRegionSettingsCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeReportJobCommand.js +3 -3
  26. package/dist-cjs/commands/DescribeReportPlanCommand.js +3 -3
  27. package/dist-cjs/commands/DescribeRestoreJobCommand.js +3 -3
  28. package/dist-cjs/commands/DisassociateRecoveryPointCommand.js +3 -3
  29. package/dist-cjs/commands/ExportBackupPlanTemplateCommand.js +3 -3
  30. package/dist-cjs/commands/GetBackupPlanCommand.js +3 -3
  31. package/dist-cjs/commands/GetBackupPlanFromJSONCommand.js +3 -3
  32. package/dist-cjs/commands/GetBackupPlanFromTemplateCommand.js +3 -3
  33. package/dist-cjs/commands/GetBackupSelectionCommand.js +3 -3
  34. package/dist-cjs/commands/GetBackupVaultAccessPolicyCommand.js +3 -3
  35. package/dist-cjs/commands/GetBackupVaultNotificationsCommand.js +3 -3
  36. package/dist-cjs/commands/GetRecoveryPointRestoreMetadataCommand.js +3 -3
  37. package/dist-cjs/commands/GetSupportedResourceTypesCommand.js +3 -3
  38. package/dist-cjs/commands/ListBackupJobsCommand.js +3 -3
  39. package/dist-cjs/commands/ListBackupPlanTemplatesCommand.js +3 -3
  40. package/dist-cjs/commands/ListBackupPlanVersionsCommand.js +3 -3
  41. package/dist-cjs/commands/ListBackupPlansCommand.js +3 -3
  42. package/dist-cjs/commands/ListBackupSelectionsCommand.js +3 -3
  43. package/dist-cjs/commands/ListBackupVaultsCommand.js +3 -3
  44. package/dist-cjs/commands/ListCopyJobsCommand.js +3 -3
  45. package/dist-cjs/commands/ListFrameworksCommand.js +3 -3
  46. package/dist-cjs/commands/ListProtectedResourcesCommand.js +3 -3
  47. package/dist-cjs/commands/ListRecoveryPointsByBackupVaultCommand.js +3 -3
  48. package/dist-cjs/commands/ListRecoveryPointsByResourceCommand.js +3 -3
  49. package/dist-cjs/commands/ListReportJobsCommand.js +3 -3
  50. package/dist-cjs/commands/ListReportPlansCommand.js +3 -3
  51. package/dist-cjs/commands/ListRestoreJobsCommand.js +3 -3
  52. package/dist-cjs/commands/ListTagsCommand.js +3 -3
  53. package/dist-cjs/commands/PutBackupVaultAccessPolicyCommand.js +3 -3
  54. package/dist-cjs/commands/PutBackupVaultLockConfigurationCommand.js +3 -3
  55. package/dist-cjs/commands/PutBackupVaultNotificationsCommand.js +3 -3
  56. package/dist-cjs/commands/StartBackupJobCommand.js +3 -3
  57. package/dist-cjs/commands/StartCopyJobCommand.js +3 -3
  58. package/dist-cjs/commands/StartReportJobCommand.js +3 -3
  59. package/dist-cjs/commands/StartRestoreJobCommand.js +3 -3
  60. package/dist-cjs/commands/StopBackupJobCommand.js +3 -3
  61. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  62. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  63. package/dist-cjs/commands/UpdateBackupPlanCommand.js +3 -3
  64. package/dist-cjs/commands/UpdateFrameworkCommand.js +3 -3
  65. package/dist-cjs/commands/UpdateGlobalSettingsCommand.js +3 -3
  66. package/dist-cjs/commands/UpdateRecoveryPointLifecycleCommand.js +3 -3
  67. package/dist-cjs/commands/UpdateRegionSettingsCommand.js +3 -3
  68. package/dist-cjs/commands/UpdateReportPlanCommand.js +3 -3
  69. package/dist-cjs/endpoints.js +1 -1
  70. package/dist-cjs/protocols/Aws_restJson1.js +527 -527
  71. package/dist-cjs/runtimeConfig.browser.js +4 -4
  72. package/dist-cjs/runtimeConfig.js +9 -9
  73. package/dist-cjs/runtimeConfig.native.js +1 -1
  74. package/dist-es/Backup.js +66 -66
  75. package/dist-es/pagination/ListBackupJobsPaginator.js +4 -4
  76. package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +4 -4
  77. package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +4 -4
  78. package/dist-es/pagination/ListBackupPlansPaginator.js +4 -4
  79. package/dist-es/pagination/ListBackupSelectionsPaginator.js +4 -4
  80. package/dist-es/pagination/ListBackupVaultsPaginator.js +4 -4
  81. package/dist-es/pagination/ListCopyJobsPaginator.js +4 -4
  82. package/dist-es/pagination/ListFrameworksPaginator.js +4 -4
  83. package/dist-es/pagination/ListProtectedResourcesPaginator.js +4 -4
  84. package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +4 -4
  85. package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +4 -4
  86. package/dist-es/pagination/ListReportJobsPaginator.js +4 -4
  87. package/dist-es/pagination/ListReportPlansPaginator.js +4 -4
  88. package/dist-es/pagination/ListRestoreJobsPaginator.js +4 -4
  89. package/dist-es/pagination/ListTagsPaginator.js +4 -4
  90. package/dist-es/protocols/Aws_restJson1.js +66 -66
  91. package/dist-types/runtimeConfig.native.d.ts +2 -2
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  93. package/package.json +34 -34
@@ -45,7 +45,7 @@ const serializeAws_restJson1CreateBackupSelectionCommand = async (input, context
45
45
  if (labelValue.length <= 0) {
46
46
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
47
47
  }
48
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
48
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
49
49
  }
50
50
  else {
51
51
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -81,7 +81,7 @@ const serializeAws_restJson1CreateBackupVaultCommand = async (input, context) =>
81
81
  if (labelValue.length <= 0) {
82
82
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
83
83
  }
84
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
84
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
85
85
  }
86
86
  else {
87
87
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateFrameworkCommand = async (input, context) => {
126
126
  ...(input.FrameworkName !== undefined && input.FrameworkName !== null && { FrameworkName: input.FrameworkName }),
127
127
  ...(input.FrameworkTags !== undefined &&
128
128
  input.FrameworkTags !== null && { FrameworkTags: serializeAws_restJson1stringMap(input.FrameworkTags, context) }),
129
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
129
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
130
130
  });
131
131
  return new protocol_http_1.HttpRequest({
132
132
  protocol,
@@ -148,7 +148,7 @@ const serializeAws_restJson1CreateReportPlanCommand = async (input, context) =>
148
148
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans";
149
149
  let body;
150
150
  body = JSON.stringify({
151
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
151
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
152
152
  ...(input.ReportDeliveryChannel !== undefined &&
153
153
  input.ReportDeliveryChannel !== null && {
154
154
  ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
@@ -186,7 +186,7 @@ const serializeAws_restJson1DeleteBackupPlanCommand = async (input, context) =>
186
186
  if (labelValue.length <= 0) {
187
187
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
188
188
  }
189
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
189
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
190
190
  }
191
191
  else {
192
192
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -213,7 +213,7 @@ const serializeAws_restJson1DeleteBackupSelectionCommand = async (input, context
213
213
  if (labelValue.length <= 0) {
214
214
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
215
215
  }
216
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
216
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
217
217
  }
218
218
  else {
219
219
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -223,7 +223,7 @@ const serializeAws_restJson1DeleteBackupSelectionCommand = async (input, context
223
223
  if (labelValue.length <= 0) {
224
224
  throw new Error("Empty value provided for input HTTP label: SelectionId.");
225
225
  }
226
- resolvedPath = resolvedPath.replace("{SelectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
226
+ resolvedPath = resolvedPath.replace("{SelectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
227
227
  }
228
228
  else {
229
229
  throw new Error("No value provided for input HTTP label: SelectionId.");
@@ -249,7 +249,7 @@ const serializeAws_restJson1DeleteBackupVaultCommand = async (input, context) =>
249
249
  if (labelValue.length <= 0) {
250
250
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
251
251
  }
252
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
252
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
253
253
  }
254
254
  else {
255
255
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -276,7 +276,7 @@ const serializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = async (input,
276
276
  if (labelValue.length <= 0) {
277
277
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
278
278
  }
279
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
279
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
280
280
  }
281
281
  else {
282
282
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -303,7 +303,7 @@ const serializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = async (i
303
303
  if (labelValue.length <= 0) {
304
304
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
305
305
  }
306
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
306
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
307
307
  }
308
308
  else {
309
309
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -330,7 +330,7 @@ const serializeAws_restJson1DeleteBackupVaultNotificationsCommand = async (input
330
330
  if (labelValue.length <= 0) {
331
331
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
332
332
  }
333
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
333
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
334
334
  }
335
335
  else {
336
336
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -356,7 +356,7 @@ const serializeAws_restJson1DeleteFrameworkCommand = async (input, context) => {
356
356
  if (labelValue.length <= 0) {
357
357
  throw new Error("Empty value provided for input HTTP label: FrameworkName.");
358
358
  }
359
- resolvedPath = resolvedPath.replace("{FrameworkName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
359
+ resolvedPath = resolvedPath.replace("{FrameworkName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
360
360
  }
361
361
  else {
362
362
  throw new Error("No value provided for input HTTP label: FrameworkName.");
@@ -383,7 +383,7 @@ const serializeAws_restJson1DeleteRecoveryPointCommand = async (input, context)
383
383
  if (labelValue.length <= 0) {
384
384
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
385
385
  }
386
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
386
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
387
387
  }
388
388
  else {
389
389
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -393,7 +393,7 @@ const serializeAws_restJson1DeleteRecoveryPointCommand = async (input, context)
393
393
  if (labelValue.length <= 0) {
394
394
  throw new Error("Empty value provided for input HTTP label: RecoveryPointArn.");
395
395
  }
396
- resolvedPath = resolvedPath.replace("{RecoveryPointArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
396
+ resolvedPath = resolvedPath.replace("{RecoveryPointArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
397
397
  }
398
398
  else {
399
399
  throw new Error("No value provided for input HTTP label: RecoveryPointArn.");
@@ -419,7 +419,7 @@ const serializeAws_restJson1DeleteReportPlanCommand = async (input, context) =>
419
419
  if (labelValue.length <= 0) {
420
420
  throw new Error("Empty value provided for input HTTP label: ReportPlanName.");
421
421
  }
422
- resolvedPath = resolvedPath.replace("{ReportPlanName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
422
+ resolvedPath = resolvedPath.replace("{ReportPlanName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
423
423
  }
424
424
  else {
425
425
  throw new Error("No value provided for input HTTP label: ReportPlanName.");
@@ -445,7 +445,7 @@ const serializeAws_restJson1DescribeBackupJobCommand = async (input, context) =>
445
445
  if (labelValue.length <= 0) {
446
446
  throw new Error("Empty value provided for input HTTP label: BackupJobId.");
447
447
  }
448
- resolvedPath = resolvedPath.replace("{BackupJobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
448
+ resolvedPath = resolvedPath.replace("{BackupJobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
449
449
  }
450
450
  else {
451
451
  throw new Error("No value provided for input HTTP label: BackupJobId.");
@@ -471,7 +471,7 @@ const serializeAws_restJson1DescribeBackupVaultCommand = async (input, context)
471
471
  if (labelValue.length <= 0) {
472
472
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
473
473
  }
474
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
474
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
475
475
  }
476
476
  else {
477
477
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -497,7 +497,7 @@ const serializeAws_restJson1DescribeCopyJobCommand = async (input, context) => {
497
497
  if (labelValue.length <= 0) {
498
498
  throw new Error("Empty value provided for input HTTP label: CopyJobId.");
499
499
  }
500
- resolvedPath = resolvedPath.replace("{CopyJobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
500
+ resolvedPath = resolvedPath.replace("{CopyJobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
501
501
  }
502
502
  else {
503
503
  throw new Error("No value provided for input HTTP label: CopyJobId.");
@@ -523,7 +523,7 @@ const serializeAws_restJson1DescribeFrameworkCommand = async (input, context) =>
523
523
  if (labelValue.length <= 0) {
524
524
  throw new Error("Empty value provided for input HTTP label: FrameworkName.");
525
525
  }
526
- resolvedPath = resolvedPath.replace("{FrameworkName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
526
+ resolvedPath = resolvedPath.replace("{FrameworkName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
527
527
  }
528
528
  else {
529
529
  throw new Error("No value provided for input HTTP label: FrameworkName.");
@@ -568,7 +568,7 @@ const serializeAws_restJson1DescribeProtectedResourceCommand = async (input, con
568
568
  if (labelValue.length <= 0) {
569
569
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
570
570
  }
571
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
571
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
572
572
  }
573
573
  else {
574
574
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -595,7 +595,7 @@ const serializeAws_restJson1DescribeRecoveryPointCommand = async (input, context
595
595
  if (labelValue.length <= 0) {
596
596
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
597
597
  }
598
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
598
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
599
599
  }
600
600
  else {
601
601
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -605,7 +605,7 @@ const serializeAws_restJson1DescribeRecoveryPointCommand = async (input, context
605
605
  if (labelValue.length <= 0) {
606
606
  throw new Error("Empty value provided for input HTTP label: RecoveryPointArn.");
607
607
  }
608
- resolvedPath = resolvedPath.replace("{RecoveryPointArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
608
+ resolvedPath = resolvedPath.replace("{RecoveryPointArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
609
609
  }
610
610
  else {
611
611
  throw new Error("No value provided for input HTTP label: RecoveryPointArn.");
@@ -650,7 +650,7 @@ const serializeAws_restJson1DescribeReportJobCommand = async (input, context) =>
650
650
  if (labelValue.length <= 0) {
651
651
  throw new Error("Empty value provided for input HTTP label: ReportJobId.");
652
652
  }
653
- resolvedPath = resolvedPath.replace("{ReportJobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
653
+ resolvedPath = resolvedPath.replace("{ReportJobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
654
654
  }
655
655
  else {
656
656
  throw new Error("No value provided for input HTTP label: ReportJobId.");
@@ -676,7 +676,7 @@ const serializeAws_restJson1DescribeReportPlanCommand = async (input, context) =
676
676
  if (labelValue.length <= 0) {
677
677
  throw new Error("Empty value provided for input HTTP label: ReportPlanName.");
678
678
  }
679
- resolvedPath = resolvedPath.replace("{ReportPlanName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
679
+ resolvedPath = resolvedPath.replace("{ReportPlanName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
680
680
  }
681
681
  else {
682
682
  throw new Error("No value provided for input HTTP label: ReportPlanName.");
@@ -702,7 +702,7 @@ const serializeAws_restJson1DescribeRestoreJobCommand = async (input, context) =
702
702
  if (labelValue.length <= 0) {
703
703
  throw new Error("Empty value provided for input HTTP label: RestoreJobId.");
704
704
  }
705
- resolvedPath = resolvedPath.replace("{RestoreJobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
705
+ resolvedPath = resolvedPath.replace("{RestoreJobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
706
706
  }
707
707
  else {
708
708
  throw new Error("No value provided for input HTTP label: RestoreJobId.");
@@ -729,7 +729,7 @@ const serializeAws_restJson1DisassociateRecoveryPointCommand = async (input, con
729
729
  if (labelValue.length <= 0) {
730
730
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
731
731
  }
732
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
732
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
733
733
  }
734
734
  else {
735
735
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -739,7 +739,7 @@ const serializeAws_restJson1DisassociateRecoveryPointCommand = async (input, con
739
739
  if (labelValue.length <= 0) {
740
740
  throw new Error("Empty value provided for input HTTP label: RecoveryPointArn.");
741
741
  }
742
- resolvedPath = resolvedPath.replace("{RecoveryPointArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
742
+ resolvedPath = resolvedPath.replace("{RecoveryPointArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
743
743
  }
744
744
  else {
745
745
  throw new Error("No value provided for input HTTP label: RecoveryPointArn.");
@@ -765,7 +765,7 @@ const serializeAws_restJson1ExportBackupPlanTemplateCommand = async (input, cont
765
765
  if (labelValue.length <= 0) {
766
766
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
767
767
  }
768
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
768
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
769
769
  }
770
770
  else {
771
771
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -791,7 +791,7 @@ const serializeAws_restJson1GetBackupPlanCommand = async (input, context) => {
791
791
  if (labelValue.length <= 0) {
792
792
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
793
793
  }
794
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
794
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
795
795
  }
796
796
  else {
797
797
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -844,7 +844,7 @@ const serializeAws_restJson1GetBackupPlanFromTemplateCommand = async (input, con
844
844
  if (labelValue.length <= 0) {
845
845
  throw new Error("Empty value provided for input HTTP label: BackupPlanTemplateId.");
846
846
  }
847
- resolvedPath = resolvedPath.replace("{BackupPlanTemplateId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
847
+ resolvedPath = resolvedPath.replace("{BackupPlanTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
848
848
  }
849
849
  else {
850
850
  throw new Error("No value provided for input HTTP label: BackupPlanTemplateId.");
@@ -871,7 +871,7 @@ const serializeAws_restJson1GetBackupSelectionCommand = async (input, context) =
871
871
  if (labelValue.length <= 0) {
872
872
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
873
873
  }
874
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
874
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
875
875
  }
876
876
  else {
877
877
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -881,7 +881,7 @@ const serializeAws_restJson1GetBackupSelectionCommand = async (input, context) =
881
881
  if (labelValue.length <= 0) {
882
882
  throw new Error("Empty value provided for input HTTP label: SelectionId.");
883
883
  }
884
- resolvedPath = resolvedPath.replace("{SelectionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
884
+ resolvedPath = resolvedPath.replace("{SelectionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
885
885
  }
886
886
  else {
887
887
  throw new Error("No value provided for input HTTP label: SelectionId.");
@@ -908,7 +908,7 @@ const serializeAws_restJson1GetBackupVaultAccessPolicyCommand = async (input, co
908
908
  if (labelValue.length <= 0) {
909
909
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
910
910
  }
911
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
911
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
912
912
  }
913
913
  else {
914
914
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -935,7 +935,7 @@ const serializeAws_restJson1GetBackupVaultNotificationsCommand = async (input, c
935
935
  if (labelValue.length <= 0) {
936
936
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
937
937
  }
938
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
938
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
939
939
  }
940
940
  else {
941
941
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -962,7 +962,7 @@ const serializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = async (inpu
962
962
  if (labelValue.length <= 0) {
963
963
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
964
964
  }
965
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
965
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
966
966
  }
967
967
  else {
968
968
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -972,7 +972,7 @@ const serializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = async (inpu
972
972
  if (labelValue.length <= 0) {
973
973
  throw new Error("Empty value provided for input HTTP label: RecoveryPointArn.");
974
974
  }
975
- resolvedPath = resolvedPath.replace("{RecoveryPointArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
975
+ resolvedPath = resolvedPath.replace("{RecoveryPointArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
976
976
  }
977
977
  else {
978
978
  throw new Error("No value provided for input HTTP label: RecoveryPointArn.");
@@ -1092,7 +1092,7 @@ const serializeAws_restJson1ListBackupPlanVersionsCommand = async (input, contex
1092
1092
  if (labelValue.length <= 0) {
1093
1093
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
1094
1094
  }
1095
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1095
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1096
1096
  }
1097
1097
  else {
1098
1098
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -1123,7 +1123,7 @@ const serializeAws_restJson1ListBackupSelectionsCommand = async (input, context)
1123
1123
  if (labelValue.length <= 0) {
1124
1124
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
1125
1125
  }
1126
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1126
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1127
1127
  }
1128
1128
  else {
1129
1129
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -1250,7 +1250,7 @@ const serializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = async (inpu
1250
1250
  if (labelValue.length <= 0) {
1251
1251
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
1252
1252
  }
1253
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1253
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1254
1254
  }
1255
1255
  else {
1256
1256
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -1290,7 +1290,7 @@ const serializeAws_restJson1ListRecoveryPointsByResourceCommand = async (input,
1290
1290
  if (labelValue.length <= 0) {
1291
1291
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1292
1292
  }
1293
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1293
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1294
1294
  }
1295
1295
  else {
1296
1296
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1400,7 +1400,7 @@ const serializeAws_restJson1ListTagsCommand = async (input, context) => {
1400
1400
  if (labelValue.length <= 0) {
1401
1401
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1402
1402
  }
1403
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1403
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1404
1404
  }
1405
1405
  else {
1406
1406
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1434,7 +1434,7 @@ const serializeAws_restJson1PutBackupVaultAccessPolicyCommand = async (input, co
1434
1434
  if (labelValue.length <= 0) {
1435
1435
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
1436
1436
  }
1437
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1437
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1438
1438
  }
1439
1439
  else {
1440
1440
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -1466,7 +1466,7 @@ const serializeAws_restJson1PutBackupVaultLockConfigurationCommand = async (inpu
1466
1466
  if (labelValue.length <= 0) {
1467
1467
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
1468
1468
  }
1469
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1469
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1470
1470
  }
1471
1471
  else {
1472
1472
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -1503,7 +1503,7 @@ const serializeAws_restJson1PutBackupVaultNotificationsCommand = async (input, c
1503
1503
  if (labelValue.length <= 0) {
1504
1504
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
1505
1505
  }
1506
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1506
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1507
1507
  }
1508
1508
  else {
1509
1509
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -1610,14 +1610,14 @@ const serializeAws_restJson1StartReportJobCommand = async (input, context) => {
1610
1610
  if (labelValue.length <= 0) {
1611
1611
  throw new Error("Empty value provided for input HTTP label: ReportPlanName.");
1612
1612
  }
1613
- resolvedPath = resolvedPath.replace("{ReportPlanName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1613
+ resolvedPath = resolvedPath.replace("{ReportPlanName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1614
1614
  }
1615
1615
  else {
1616
1616
  throw new Error("No value provided for input HTTP label: ReportPlanName.");
1617
1617
  }
1618
1618
  let body;
1619
1619
  body = JSON.stringify({
1620
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1620
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1621
1621
  });
1622
1622
  return new protocol_http_1.HttpRequest({
1623
1623
  protocol,
@@ -1667,7 +1667,7 @@ const serializeAws_restJson1StopBackupJobCommand = async (input, context) => {
1667
1667
  if (labelValue.length <= 0) {
1668
1668
  throw new Error("Empty value provided for input HTTP label: BackupJobId.");
1669
1669
  }
1670
- resolvedPath = resolvedPath.replace("{BackupJobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1670
+ resolvedPath = resolvedPath.replace("{BackupJobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1671
1671
  }
1672
1672
  else {
1673
1673
  throw new Error("No value provided for input HTTP label: BackupJobId.");
@@ -1695,7 +1695,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1695
1695
  if (labelValue.length <= 0) {
1696
1696
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1697
1697
  }
1698
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1698
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1699
1699
  }
1700
1700
  else {
1701
1701
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1726,7 +1726,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1726
1726
  if (labelValue.length <= 0) {
1727
1727
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1728
1728
  }
1729
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1729
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1730
1730
  }
1731
1731
  else {
1732
1732
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1758,7 +1758,7 @@ const serializeAws_restJson1UpdateBackupPlanCommand = async (input, context) =>
1758
1758
  if (labelValue.length <= 0) {
1759
1759
  throw new Error("Empty value provided for input HTTP label: BackupPlanId.");
1760
1760
  }
1761
- resolvedPath = resolvedPath.replace("{BackupPlanId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1761
+ resolvedPath = resolvedPath.replace("{BackupPlanId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1762
1762
  }
1763
1763
  else {
1764
1764
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
@@ -1791,7 +1791,7 @@ const serializeAws_restJson1UpdateFrameworkCommand = async (input, context) => {
1791
1791
  if (labelValue.length <= 0) {
1792
1792
  throw new Error("Empty value provided for input HTTP label: FrameworkName.");
1793
1793
  }
1794
- resolvedPath = resolvedPath.replace("{FrameworkName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1794
+ resolvedPath = resolvedPath.replace("{FrameworkName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1795
1795
  }
1796
1796
  else {
1797
1797
  throw new Error("No value provided for input HTTP label: FrameworkName.");
@@ -1804,7 +1804,7 @@ const serializeAws_restJson1UpdateFrameworkCommand = async (input, context) => {
1804
1804
  }),
1805
1805
  ...(input.FrameworkDescription !== undefined &&
1806
1806
  input.FrameworkDescription !== null && { FrameworkDescription: input.FrameworkDescription }),
1807
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1807
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1808
1808
  });
1809
1809
  return new protocol_http_1.HttpRequest({
1810
1810
  protocol,
@@ -1853,7 +1853,7 @@ const serializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (input,
1853
1853
  if (labelValue.length <= 0) {
1854
1854
  throw new Error("Empty value provided for input HTTP label: BackupVaultName.");
1855
1855
  }
1856
- resolvedPath = resolvedPath.replace("{BackupVaultName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1856
+ resolvedPath = resolvedPath.replace("{BackupVaultName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1857
1857
  }
1858
1858
  else {
1859
1859
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
@@ -1863,7 +1863,7 @@ const serializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (input,
1863
1863
  if (labelValue.length <= 0) {
1864
1864
  throw new Error("Empty value provided for input HTTP label: RecoveryPointArn.");
1865
1865
  }
1866
- resolvedPath = resolvedPath.replace("{RecoveryPointArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1866
+ resolvedPath = resolvedPath.replace("{RecoveryPointArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1867
1867
  }
1868
1868
  else {
1869
1869
  throw new Error("No value provided for input HTTP label: RecoveryPointArn.");
@@ -1924,14 +1924,14 @@ const serializeAws_restJson1UpdateReportPlanCommand = async (input, context) =>
1924
1924
  if (labelValue.length <= 0) {
1925
1925
  throw new Error("Empty value provided for input HTTP label: ReportPlanName.");
1926
1926
  }
1927
- resolvedPath = resolvedPath.replace("{ReportPlanName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1927
+ resolvedPath = resolvedPath.replace("{ReportPlanName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1928
1928
  }
1929
1929
  else {
1930
1930
  throw new Error("No value provided for input HTTP label: ReportPlanName.");
1931
1931
  }
1932
1932
  let body;
1933
1933
  body = JSON.stringify({
1934
- IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1934
+ IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1935
1935
  ...(input.ReportDeliveryChannel !== undefined &&
1936
1936
  input.ReportDeliveryChannel !== null && {
1937
1937
  ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
@@ -1966,21 +1966,21 @@ const deserializeAws_restJson1CreateBackupPlanCommand = async (output, context)
1966
1966
  CreationDate: undefined,
1967
1967
  VersionId: undefined,
1968
1968
  };
1969
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1969
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1970
1970
  if (data.AdvancedBackupSettings !== undefined && data.AdvancedBackupSettings !== null) {
1971
1971
  contents.AdvancedBackupSettings = deserializeAws_restJson1AdvancedBackupSettings(data.AdvancedBackupSettings, context);
1972
1972
  }
1973
1973
  if (data.BackupPlanArn !== undefined && data.BackupPlanArn !== null) {
1974
- contents.BackupPlanArn = smithy_client_1.expectString(data.BackupPlanArn);
1974
+ contents.BackupPlanArn = (0, smithy_client_1.expectString)(data.BackupPlanArn);
1975
1975
  }
1976
1976
  if (data.BackupPlanId !== undefined && data.BackupPlanId !== null) {
1977
- contents.BackupPlanId = smithy_client_1.expectString(data.BackupPlanId);
1977
+ contents.BackupPlanId = (0, smithy_client_1.expectString)(data.BackupPlanId);
1978
1978
  }
1979
1979
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
1980
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
1980
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
1981
1981
  }
1982
1982
  if (data.VersionId !== undefined && data.VersionId !== null) {
1983
- contents.VersionId = smithy_client_1.expectString(data.VersionId);
1983
+ contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
1984
1984
  }
1985
1985
  return Promise.resolve(contents);
1986
1986
  };
@@ -2016,7 +2016,7 @@ const deserializeAws_restJson1CreateBackupPlanCommandError = async (output, cont
2016
2016
  $fault: "client",
2017
2017
  $metadata: deserializeMetadata(output),
2018
2018
  });
2019
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2019
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2020
2020
  }
2021
2021
  };
2022
2022
  const deserializeAws_restJson1CreateBackupSelectionCommand = async (output, context) => {
@@ -2029,15 +2029,15 @@ const deserializeAws_restJson1CreateBackupSelectionCommand = async (output, cont
2029
2029
  CreationDate: undefined,
2030
2030
  SelectionId: undefined,
2031
2031
  };
2032
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2032
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2033
2033
  if (data.BackupPlanId !== undefined && data.BackupPlanId !== null) {
2034
- contents.BackupPlanId = smithy_client_1.expectString(data.BackupPlanId);
2034
+ contents.BackupPlanId = (0, smithy_client_1.expectString)(data.BackupPlanId);
2035
2035
  }
2036
2036
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
2037
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
2037
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
2038
2038
  }
2039
2039
  if (data.SelectionId !== undefined && data.SelectionId !== null) {
2040
- contents.SelectionId = smithy_client_1.expectString(data.SelectionId);
2040
+ contents.SelectionId = (0, smithy_client_1.expectString)(data.SelectionId);
2041
2041
  }
2042
2042
  return Promise.resolve(contents);
2043
2043
  };
@@ -2073,7 +2073,7 @@ const deserializeAws_restJson1CreateBackupSelectionCommandError = async (output,
2073
2073
  $fault: "client",
2074
2074
  $metadata: deserializeMetadata(output),
2075
2075
  });
2076
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2076
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2077
2077
  }
2078
2078
  };
2079
2079
  const deserializeAws_restJson1CreateBackupVaultCommand = async (output, context) => {
@@ -2086,15 +2086,15 @@ const deserializeAws_restJson1CreateBackupVaultCommand = async (output, context)
2086
2086
  BackupVaultName: undefined,
2087
2087
  CreationDate: undefined,
2088
2088
  };
2089
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2089
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2090
2090
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
2091
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
2091
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
2092
2092
  }
2093
2093
  if (data.BackupVaultName !== undefined && data.BackupVaultName !== null) {
2094
- contents.BackupVaultName = smithy_client_1.expectString(data.BackupVaultName);
2094
+ contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
2095
2095
  }
2096
2096
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
2097
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
2097
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
2098
2098
  }
2099
2099
  return Promise.resolve(contents);
2100
2100
  };
@@ -2130,7 +2130,7 @@ const deserializeAws_restJson1CreateBackupVaultCommandError = async (output, con
2130
2130
  $fault: "client",
2131
2131
  $metadata: deserializeMetadata(output),
2132
2132
  });
2133
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2133
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2134
2134
  }
2135
2135
  };
2136
2136
  const deserializeAws_restJson1CreateFrameworkCommand = async (output, context) => {
@@ -2142,12 +2142,12 @@ const deserializeAws_restJson1CreateFrameworkCommand = async (output, context) =
2142
2142
  FrameworkArn: undefined,
2143
2143
  FrameworkName: undefined,
2144
2144
  };
2145
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2145
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2146
2146
  if (data.FrameworkArn !== undefined && data.FrameworkArn !== null) {
2147
- contents.FrameworkArn = smithy_client_1.expectString(data.FrameworkArn);
2147
+ contents.FrameworkArn = (0, smithy_client_1.expectString)(data.FrameworkArn);
2148
2148
  }
2149
2149
  if (data.FrameworkName !== undefined && data.FrameworkName !== null) {
2150
- contents.FrameworkName = smithy_client_1.expectString(data.FrameworkName);
2150
+ contents.FrameworkName = (0, smithy_client_1.expectString)(data.FrameworkName);
2151
2151
  }
2152
2152
  return Promise.resolve(contents);
2153
2153
  };
@@ -2183,7 +2183,7 @@ const deserializeAws_restJson1CreateFrameworkCommandError = async (output, conte
2183
2183
  $fault: "client",
2184
2184
  $metadata: deserializeMetadata(output),
2185
2185
  });
2186
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2186
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2187
2187
  }
2188
2188
  };
2189
2189
  const deserializeAws_restJson1CreateReportPlanCommand = async (output, context) => {
@@ -2196,15 +2196,15 @@ const deserializeAws_restJson1CreateReportPlanCommand = async (output, context)
2196
2196
  ReportPlanArn: undefined,
2197
2197
  ReportPlanName: undefined,
2198
2198
  };
2199
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2199
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2200
2200
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
2201
- contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
2201
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
2202
2202
  }
2203
2203
  if (data.ReportPlanArn !== undefined && data.ReportPlanArn !== null) {
2204
- contents.ReportPlanArn = smithy_client_1.expectString(data.ReportPlanArn);
2204
+ contents.ReportPlanArn = (0, smithy_client_1.expectString)(data.ReportPlanArn);
2205
2205
  }
2206
2206
  if (data.ReportPlanName !== undefined && data.ReportPlanName !== null) {
2207
- contents.ReportPlanName = smithy_client_1.expectString(data.ReportPlanName);
2207
+ contents.ReportPlanName = (0, smithy_client_1.expectString)(data.ReportPlanName);
2208
2208
  }
2209
2209
  return Promise.resolve(contents);
2210
2210
  };
@@ -2240,7 +2240,7 @@ const deserializeAws_restJson1CreateReportPlanCommandError = async (output, cont
2240
2240
  $fault: "client",
2241
2241
  $metadata: deserializeMetadata(output),
2242
2242
  });
2243
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2243
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2244
2244
  }
2245
2245
  };
2246
2246
  const deserializeAws_restJson1DeleteBackupPlanCommand = async (output, context) => {
@@ -2254,18 +2254,18 @@ const deserializeAws_restJson1DeleteBackupPlanCommand = async (output, context)
2254
2254
  DeletionDate: undefined,
2255
2255
  VersionId: undefined,
2256
2256
  };
2257
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2257
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2258
2258
  if (data.BackupPlanArn !== undefined && data.BackupPlanArn !== null) {
2259
- contents.BackupPlanArn = smithy_client_1.expectString(data.BackupPlanArn);
2259
+ contents.BackupPlanArn = (0, smithy_client_1.expectString)(data.BackupPlanArn);
2260
2260
  }
2261
2261
  if (data.BackupPlanId !== undefined && data.BackupPlanId !== null) {
2262
- contents.BackupPlanId = smithy_client_1.expectString(data.BackupPlanId);
2262
+ contents.BackupPlanId = (0, smithy_client_1.expectString)(data.BackupPlanId);
2263
2263
  }
2264
2264
  if (data.DeletionDate !== undefined && data.DeletionDate !== null) {
2265
- contents.DeletionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.DeletionDate)));
2265
+ contents.DeletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.DeletionDate)));
2266
2266
  }
2267
2267
  if (data.VersionId !== undefined && data.VersionId !== null) {
2268
- contents.VersionId = smithy_client_1.expectString(data.VersionId);
2268
+ contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
2269
2269
  }
2270
2270
  return Promise.resolve(contents);
2271
2271
  };
@@ -2301,7 +2301,7 @@ const deserializeAws_restJson1DeleteBackupPlanCommandError = async (output, cont
2301
2301
  $fault: "client",
2302
2302
  $metadata: deserializeMetadata(output),
2303
2303
  });
2304
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2304
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2305
2305
  }
2306
2306
  };
2307
2307
  const deserializeAws_restJson1DeleteBackupSelectionCommand = async (output, context) => {
@@ -2343,7 +2343,7 @@ const deserializeAws_restJson1DeleteBackupSelectionCommandError = async (output,
2343
2343
  $fault: "client",
2344
2344
  $metadata: deserializeMetadata(output),
2345
2345
  });
2346
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2346
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2347
2347
  }
2348
2348
  };
2349
2349
  const deserializeAws_restJson1DeleteBackupVaultCommand = async (output, context) => {
@@ -2388,7 +2388,7 @@ const deserializeAws_restJson1DeleteBackupVaultCommandError = async (output, con
2388
2388
  $fault: "client",
2389
2389
  $metadata: deserializeMetadata(output),
2390
2390
  });
2391
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2391
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2392
2392
  }
2393
2393
  };
2394
2394
  const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = async (output, context) => {
@@ -2430,7 +2430,7 @@ const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommandError = async
2430
2430
  $fault: "client",
2431
2431
  $metadata: deserializeMetadata(output),
2432
2432
  });
2433
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2433
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2434
2434
  }
2435
2435
  };
2436
2436
  const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = async (output, context) => {
@@ -2475,7 +2475,7 @@ const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommandError = a
2475
2475
  $fault: "client",
2476
2476
  $metadata: deserializeMetadata(output),
2477
2477
  });
2478
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2478
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2479
2479
  }
2480
2480
  };
2481
2481
  const deserializeAws_restJson1DeleteBackupVaultNotificationsCommand = async (output, context) => {
@@ -2517,7 +2517,7 @@ const deserializeAws_restJson1DeleteBackupVaultNotificationsCommandError = async
2517
2517
  $fault: "client",
2518
2518
  $metadata: deserializeMetadata(output),
2519
2519
  });
2520
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2520
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2521
2521
  }
2522
2522
  };
2523
2523
  const deserializeAws_restJson1DeleteFrameworkCommand = async (output, context) => {
@@ -2562,7 +2562,7 @@ const deserializeAws_restJson1DeleteFrameworkCommandError = async (output, conte
2562
2562
  $fault: "client",
2563
2563
  $metadata: deserializeMetadata(output),
2564
2564
  });
2565
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2565
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2566
2566
  }
2567
2567
  };
2568
2568
  const deserializeAws_restJson1DeleteRecoveryPointCommand = async (output, context) => {
@@ -2610,7 +2610,7 @@ const deserializeAws_restJson1DeleteRecoveryPointCommandError = async (output, c
2610
2610
  $fault: "client",
2611
2611
  $metadata: deserializeMetadata(output),
2612
2612
  });
2613
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2613
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2614
2614
  }
2615
2615
  };
2616
2616
  const deserializeAws_restJson1DeleteReportPlanCommand = async (output, context) => {
@@ -2655,7 +2655,7 @@ const deserializeAws_restJson1DeleteReportPlanCommandError = async (output, cont
2655
2655
  $fault: "client",
2656
2656
  $metadata: deserializeMetadata(output),
2657
2657
  });
2658
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2658
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2659
2659
  }
2660
2660
  };
2661
2661
  const deserializeAws_restJson1DescribeBackupJobCommand = async (output, context) => {
@@ -2685,66 +2685,66 @@ const deserializeAws_restJson1DescribeBackupJobCommand = async (output, context)
2685
2685
  State: undefined,
2686
2686
  StatusMessage: undefined,
2687
2687
  };
2688
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2688
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2689
2689
  if (data.AccountId !== undefined && data.AccountId !== null) {
2690
- contents.AccountId = smithy_client_1.expectString(data.AccountId);
2690
+ contents.AccountId = (0, smithy_client_1.expectString)(data.AccountId);
2691
2691
  }
2692
2692
  if (data.BackupJobId !== undefined && data.BackupJobId !== null) {
2693
- contents.BackupJobId = smithy_client_1.expectString(data.BackupJobId);
2693
+ contents.BackupJobId = (0, smithy_client_1.expectString)(data.BackupJobId);
2694
2694
  }
2695
2695
  if (data.BackupOptions !== undefined && data.BackupOptions !== null) {
2696
2696
  contents.BackupOptions = deserializeAws_restJson1BackupOptions(data.BackupOptions, context);
2697
2697
  }
2698
2698
  if (data.BackupSizeInBytes !== undefined && data.BackupSizeInBytes !== null) {
2699
- contents.BackupSizeInBytes = smithy_client_1.expectLong(data.BackupSizeInBytes);
2699
+ contents.BackupSizeInBytes = (0, smithy_client_1.expectLong)(data.BackupSizeInBytes);
2700
2700
  }
2701
2701
  if (data.BackupType !== undefined && data.BackupType !== null) {
2702
- contents.BackupType = smithy_client_1.expectString(data.BackupType);
2702
+ contents.BackupType = (0, smithy_client_1.expectString)(data.BackupType);
2703
2703
  }
2704
2704
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
2705
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
2705
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
2706
2706
  }
2707
2707
  if (data.BackupVaultName !== undefined && data.BackupVaultName !== null) {
2708
- contents.BackupVaultName = smithy_client_1.expectString(data.BackupVaultName);
2708
+ contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
2709
2709
  }
2710
2710
  if (data.BytesTransferred !== undefined && data.BytesTransferred !== null) {
2711
- contents.BytesTransferred = smithy_client_1.expectLong(data.BytesTransferred);
2711
+ contents.BytesTransferred = (0, smithy_client_1.expectLong)(data.BytesTransferred);
2712
2712
  }
2713
2713
  if (data.CompletionDate !== undefined && data.CompletionDate !== null) {
2714
- contents.CompletionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CompletionDate)));
2714
+ contents.CompletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CompletionDate)));
2715
2715
  }
2716
2716
  if (data.CreatedBy !== undefined && data.CreatedBy !== null) {
2717
2717
  contents.CreatedBy = deserializeAws_restJson1RecoveryPointCreator(data.CreatedBy, context);
2718
2718
  }
2719
2719
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
2720
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
2720
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
2721
2721
  }
2722
2722
  if (data.ExpectedCompletionDate !== undefined && data.ExpectedCompletionDate !== null) {
2723
- contents.ExpectedCompletionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.ExpectedCompletionDate)));
2723
+ contents.ExpectedCompletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.ExpectedCompletionDate)));
2724
2724
  }
2725
2725
  if (data.IamRoleArn !== undefined && data.IamRoleArn !== null) {
2726
- contents.IamRoleArn = smithy_client_1.expectString(data.IamRoleArn);
2726
+ contents.IamRoleArn = (0, smithy_client_1.expectString)(data.IamRoleArn);
2727
2727
  }
2728
2728
  if (data.PercentDone !== undefined && data.PercentDone !== null) {
2729
- contents.PercentDone = smithy_client_1.expectString(data.PercentDone);
2729
+ contents.PercentDone = (0, smithy_client_1.expectString)(data.PercentDone);
2730
2730
  }
2731
2731
  if (data.RecoveryPointArn !== undefined && data.RecoveryPointArn !== null) {
2732
- contents.RecoveryPointArn = smithy_client_1.expectString(data.RecoveryPointArn);
2732
+ contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
2733
2733
  }
2734
2734
  if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
2735
- contents.ResourceArn = smithy_client_1.expectString(data.ResourceArn);
2735
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
2736
2736
  }
2737
2737
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2738
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2738
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2739
2739
  }
2740
2740
  if (data.StartBy !== undefined && data.StartBy !== null) {
2741
- contents.StartBy = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartBy)));
2741
+ contents.StartBy = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartBy)));
2742
2742
  }
2743
2743
  if (data.State !== undefined && data.State !== null) {
2744
- contents.State = smithy_client_1.expectString(data.State);
2744
+ contents.State = (0, smithy_client_1.expectString)(data.State);
2745
2745
  }
2746
2746
  if (data.StatusMessage !== undefined && data.StatusMessage !== null) {
2747
- contents.StatusMessage = smithy_client_1.expectString(data.StatusMessage);
2747
+ contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
2748
2748
  }
2749
2749
  return Promise.resolve(contents);
2750
2750
  };
@@ -2780,7 +2780,7 @@ const deserializeAws_restJson1DescribeBackupJobCommandError = async (output, con
2780
2780
  $fault: "client",
2781
2781
  $metadata: deserializeMetadata(output),
2782
2782
  });
2783
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2783
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2784
2784
  }
2785
2785
  };
2786
2786
  const deserializeAws_restJson1DescribeBackupVaultCommand = async (output, context) => {
@@ -2800,36 +2800,36 @@ const deserializeAws_restJson1DescribeBackupVaultCommand = async (output, contex
2800
2800
  MinRetentionDays: undefined,
2801
2801
  NumberOfRecoveryPoints: undefined,
2802
2802
  };
2803
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2803
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2804
2804
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
2805
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
2805
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
2806
2806
  }
2807
2807
  if (data.BackupVaultName !== undefined && data.BackupVaultName !== null) {
2808
- contents.BackupVaultName = smithy_client_1.expectString(data.BackupVaultName);
2808
+ contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
2809
2809
  }
2810
2810
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
2811
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
2811
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
2812
2812
  }
2813
2813
  if (data.CreatorRequestId !== undefined && data.CreatorRequestId !== null) {
2814
- contents.CreatorRequestId = smithy_client_1.expectString(data.CreatorRequestId);
2814
+ contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
2815
2815
  }
2816
2816
  if (data.EncryptionKeyArn !== undefined && data.EncryptionKeyArn !== null) {
2817
- contents.EncryptionKeyArn = smithy_client_1.expectString(data.EncryptionKeyArn);
2817
+ contents.EncryptionKeyArn = (0, smithy_client_1.expectString)(data.EncryptionKeyArn);
2818
2818
  }
2819
2819
  if (data.LockDate !== undefined && data.LockDate !== null) {
2820
- contents.LockDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LockDate)));
2820
+ contents.LockDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LockDate)));
2821
2821
  }
2822
2822
  if (data.Locked !== undefined && data.Locked !== null) {
2823
- contents.Locked = smithy_client_1.expectBoolean(data.Locked);
2823
+ contents.Locked = (0, smithy_client_1.expectBoolean)(data.Locked);
2824
2824
  }
2825
2825
  if (data.MaxRetentionDays !== undefined && data.MaxRetentionDays !== null) {
2826
- contents.MaxRetentionDays = smithy_client_1.expectLong(data.MaxRetentionDays);
2826
+ contents.MaxRetentionDays = (0, smithy_client_1.expectLong)(data.MaxRetentionDays);
2827
2827
  }
2828
2828
  if (data.MinRetentionDays !== undefined && data.MinRetentionDays !== null) {
2829
- contents.MinRetentionDays = smithy_client_1.expectLong(data.MinRetentionDays);
2829
+ contents.MinRetentionDays = (0, smithy_client_1.expectLong)(data.MinRetentionDays);
2830
2830
  }
2831
2831
  if (data.NumberOfRecoveryPoints !== undefined && data.NumberOfRecoveryPoints !== null) {
2832
- contents.NumberOfRecoveryPoints = smithy_client_1.expectLong(data.NumberOfRecoveryPoints);
2832
+ contents.NumberOfRecoveryPoints = (0, smithy_client_1.expectLong)(data.NumberOfRecoveryPoints);
2833
2833
  }
2834
2834
  return Promise.resolve(contents);
2835
2835
  };
@@ -2862,7 +2862,7 @@ const deserializeAws_restJson1DescribeBackupVaultCommandError = async (output, c
2862
2862
  $fault: "client",
2863
2863
  $metadata: deserializeMetadata(output),
2864
2864
  });
2865
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2865
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2866
2866
  }
2867
2867
  };
2868
2868
  const deserializeAws_restJson1DescribeCopyJobCommand = async (output, context) => {
@@ -2873,7 +2873,7 @@ const deserializeAws_restJson1DescribeCopyJobCommand = async (output, context) =
2873
2873
  $metadata: deserializeMetadata(output),
2874
2874
  CopyJob: undefined,
2875
2875
  };
2876
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2876
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2877
2877
  if (data.CopyJob !== undefined && data.CopyJob !== null) {
2878
2878
  contents.CopyJob = deserializeAws_restJson1CopyJob(data.CopyJob, context);
2879
2879
  }
@@ -2908,7 +2908,7 @@ const deserializeAws_restJson1DescribeCopyJobCommandError = async (output, conte
2908
2908
  $fault: "client",
2909
2909
  $metadata: deserializeMetadata(output),
2910
2910
  });
2911
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2911
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2912
2912
  }
2913
2913
  };
2914
2914
  const deserializeAws_restJson1DescribeFrameworkCommand = async (output, context) => {
@@ -2926,30 +2926,30 @@ const deserializeAws_restJson1DescribeFrameworkCommand = async (output, context)
2926
2926
  FrameworkStatus: undefined,
2927
2927
  IdempotencyToken: undefined,
2928
2928
  };
2929
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2929
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2930
2930
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
2931
- contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
2931
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
2932
2932
  }
2933
2933
  if (data.DeploymentStatus !== undefined && data.DeploymentStatus !== null) {
2934
- contents.DeploymentStatus = smithy_client_1.expectString(data.DeploymentStatus);
2934
+ contents.DeploymentStatus = (0, smithy_client_1.expectString)(data.DeploymentStatus);
2935
2935
  }
2936
2936
  if (data.FrameworkArn !== undefined && data.FrameworkArn !== null) {
2937
- contents.FrameworkArn = smithy_client_1.expectString(data.FrameworkArn);
2937
+ contents.FrameworkArn = (0, smithy_client_1.expectString)(data.FrameworkArn);
2938
2938
  }
2939
2939
  if (data.FrameworkControls !== undefined && data.FrameworkControls !== null) {
2940
2940
  contents.FrameworkControls = deserializeAws_restJson1FrameworkControls(data.FrameworkControls, context);
2941
2941
  }
2942
2942
  if (data.FrameworkDescription !== undefined && data.FrameworkDescription !== null) {
2943
- contents.FrameworkDescription = smithy_client_1.expectString(data.FrameworkDescription);
2943
+ contents.FrameworkDescription = (0, smithy_client_1.expectString)(data.FrameworkDescription);
2944
2944
  }
2945
2945
  if (data.FrameworkName !== undefined && data.FrameworkName !== null) {
2946
- contents.FrameworkName = smithy_client_1.expectString(data.FrameworkName);
2946
+ contents.FrameworkName = (0, smithy_client_1.expectString)(data.FrameworkName);
2947
2947
  }
2948
2948
  if (data.FrameworkStatus !== undefined && data.FrameworkStatus !== null) {
2949
- contents.FrameworkStatus = smithy_client_1.expectString(data.FrameworkStatus);
2949
+ contents.FrameworkStatus = (0, smithy_client_1.expectString)(data.FrameworkStatus);
2950
2950
  }
2951
2951
  if (data.IdempotencyToken !== undefined && data.IdempotencyToken !== null) {
2952
- contents.IdempotencyToken = smithy_client_1.expectString(data.IdempotencyToken);
2952
+ contents.IdempotencyToken = (0, smithy_client_1.expectString)(data.IdempotencyToken);
2953
2953
  }
2954
2954
  return Promise.resolve(contents);
2955
2955
  };
@@ -2982,7 +2982,7 @@ const deserializeAws_restJson1DescribeFrameworkCommandError = async (output, con
2982
2982
  $fault: "client",
2983
2983
  $metadata: deserializeMetadata(output),
2984
2984
  });
2985
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2985
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2986
2986
  }
2987
2987
  };
2988
2988
  const deserializeAws_restJson1DescribeGlobalSettingsCommand = async (output, context) => {
@@ -2994,12 +2994,12 @@ const deserializeAws_restJson1DescribeGlobalSettingsCommand = async (output, con
2994
2994
  GlobalSettings: undefined,
2995
2995
  LastUpdateTime: undefined,
2996
2996
  };
2997
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2997
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2998
2998
  if (data.GlobalSettings !== undefined && data.GlobalSettings !== null) {
2999
2999
  contents.GlobalSettings = deserializeAws_restJson1GlobalSettings(data.GlobalSettings, context);
3000
3000
  }
3001
3001
  if (data.LastUpdateTime !== undefined && data.LastUpdateTime !== null) {
3002
- contents.LastUpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastUpdateTime)));
3002
+ contents.LastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdateTime)));
3003
3003
  }
3004
3004
  return Promise.resolve(contents);
3005
3005
  };
@@ -3026,7 +3026,7 @@ const deserializeAws_restJson1DescribeGlobalSettingsCommandError = async (output
3026
3026
  $fault: "client",
3027
3027
  $metadata: deserializeMetadata(output),
3028
3028
  });
3029
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3029
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3030
3030
  }
3031
3031
  };
3032
3032
  const deserializeAws_restJson1DescribeProtectedResourceCommand = async (output, context) => {
@@ -3039,15 +3039,15 @@ const deserializeAws_restJson1DescribeProtectedResourceCommand = async (output,
3039
3039
  ResourceArn: undefined,
3040
3040
  ResourceType: undefined,
3041
3041
  };
3042
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3042
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3043
3043
  if (data.LastBackupTime !== undefined && data.LastBackupTime !== null) {
3044
- contents.LastBackupTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastBackupTime)));
3044
+ contents.LastBackupTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastBackupTime)));
3045
3045
  }
3046
3046
  if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
3047
- contents.ResourceArn = smithy_client_1.expectString(data.ResourceArn);
3047
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
3048
3048
  }
3049
3049
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
3050
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
3050
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
3051
3051
  }
3052
3052
  return Promise.resolve(contents);
3053
3053
  };
@@ -3080,7 +3080,7 @@ const deserializeAws_restJson1DescribeProtectedResourceCommandError = async (out
3080
3080
  $fault: "client",
3081
3081
  $metadata: deserializeMetadata(output),
3082
3082
  });
3083
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3083
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3084
3084
  }
3085
3085
  };
3086
3086
  const deserializeAws_restJson1DescribeRecoveryPointCommand = async (output, context) => {
@@ -3109,63 +3109,63 @@ const deserializeAws_restJson1DescribeRecoveryPointCommand = async (output, cont
3109
3109
  StatusMessage: undefined,
3110
3110
  StorageClass: undefined,
3111
3111
  };
3112
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3112
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3113
3113
  if (data.BackupSizeInBytes !== undefined && data.BackupSizeInBytes !== null) {
3114
- contents.BackupSizeInBytes = smithy_client_1.expectLong(data.BackupSizeInBytes);
3114
+ contents.BackupSizeInBytes = (0, smithy_client_1.expectLong)(data.BackupSizeInBytes);
3115
3115
  }
3116
3116
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
3117
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
3117
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
3118
3118
  }
3119
3119
  if (data.BackupVaultName !== undefined && data.BackupVaultName !== null) {
3120
- contents.BackupVaultName = smithy_client_1.expectString(data.BackupVaultName);
3120
+ contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
3121
3121
  }
3122
3122
  if (data.CalculatedLifecycle !== undefined && data.CalculatedLifecycle !== null) {
3123
3123
  contents.CalculatedLifecycle = deserializeAws_restJson1CalculatedLifecycle(data.CalculatedLifecycle, context);
3124
3124
  }
3125
3125
  if (data.CompletionDate !== undefined && data.CompletionDate !== null) {
3126
- contents.CompletionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CompletionDate)));
3126
+ contents.CompletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CompletionDate)));
3127
3127
  }
3128
3128
  if (data.CreatedBy !== undefined && data.CreatedBy !== null) {
3129
3129
  contents.CreatedBy = deserializeAws_restJson1RecoveryPointCreator(data.CreatedBy, context);
3130
3130
  }
3131
3131
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
3132
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
3132
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
3133
3133
  }
3134
3134
  if (data.EncryptionKeyArn !== undefined && data.EncryptionKeyArn !== null) {
3135
- contents.EncryptionKeyArn = smithy_client_1.expectString(data.EncryptionKeyArn);
3135
+ contents.EncryptionKeyArn = (0, smithy_client_1.expectString)(data.EncryptionKeyArn);
3136
3136
  }
3137
3137
  if (data.IamRoleArn !== undefined && data.IamRoleArn !== null) {
3138
- contents.IamRoleArn = smithy_client_1.expectString(data.IamRoleArn);
3138
+ contents.IamRoleArn = (0, smithy_client_1.expectString)(data.IamRoleArn);
3139
3139
  }
3140
3140
  if (data.IsEncrypted !== undefined && data.IsEncrypted !== null) {
3141
- contents.IsEncrypted = smithy_client_1.expectBoolean(data.IsEncrypted);
3141
+ contents.IsEncrypted = (0, smithy_client_1.expectBoolean)(data.IsEncrypted);
3142
3142
  }
3143
3143
  if (data.LastRestoreTime !== undefined && data.LastRestoreTime !== null) {
3144
- contents.LastRestoreTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastRestoreTime)));
3144
+ contents.LastRestoreTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastRestoreTime)));
3145
3145
  }
3146
3146
  if (data.Lifecycle !== undefined && data.Lifecycle !== null) {
3147
3147
  contents.Lifecycle = deserializeAws_restJson1Lifecycle(data.Lifecycle, context);
3148
3148
  }
3149
3149
  if (data.RecoveryPointArn !== undefined && data.RecoveryPointArn !== null) {
3150
- contents.RecoveryPointArn = smithy_client_1.expectString(data.RecoveryPointArn);
3150
+ contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
3151
3151
  }
3152
3152
  if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
3153
- contents.ResourceArn = smithy_client_1.expectString(data.ResourceArn);
3153
+ contents.ResourceArn = (0, smithy_client_1.expectString)(data.ResourceArn);
3154
3154
  }
3155
3155
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
3156
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
3156
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
3157
3157
  }
3158
3158
  if (data.SourceBackupVaultArn !== undefined && data.SourceBackupVaultArn !== null) {
3159
- contents.SourceBackupVaultArn = smithy_client_1.expectString(data.SourceBackupVaultArn);
3159
+ contents.SourceBackupVaultArn = (0, smithy_client_1.expectString)(data.SourceBackupVaultArn);
3160
3160
  }
3161
3161
  if (data.Status !== undefined && data.Status !== null) {
3162
- contents.Status = smithy_client_1.expectString(data.Status);
3162
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
3163
3163
  }
3164
3164
  if (data.StatusMessage !== undefined && data.StatusMessage !== null) {
3165
- contents.StatusMessage = smithy_client_1.expectString(data.StatusMessage);
3165
+ contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
3166
3166
  }
3167
3167
  if (data.StorageClass !== undefined && data.StorageClass !== null) {
3168
- contents.StorageClass = smithy_client_1.expectString(data.StorageClass);
3168
+ contents.StorageClass = (0, smithy_client_1.expectString)(data.StorageClass);
3169
3169
  }
3170
3170
  return Promise.resolve(contents);
3171
3171
  };
@@ -3198,7 +3198,7 @@ const deserializeAws_restJson1DescribeRecoveryPointCommandError = async (output,
3198
3198
  $fault: "client",
3199
3199
  $metadata: deserializeMetadata(output),
3200
3200
  });
3201
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3201
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3202
3202
  }
3203
3203
  };
3204
3204
  const deserializeAws_restJson1DescribeRegionSettingsCommand = async (output, context) => {
@@ -3210,7 +3210,7 @@ const deserializeAws_restJson1DescribeRegionSettingsCommand = async (output, con
3210
3210
  ResourceTypeManagementPreference: undefined,
3211
3211
  ResourceTypeOptInPreference: undefined,
3212
3212
  };
3213
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3213
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3214
3214
  if (data.ResourceTypeManagementPreference !== undefined && data.ResourceTypeManagementPreference !== null) {
3215
3215
  contents.ResourceTypeManagementPreference = deserializeAws_restJson1ResourceTypeManagementPreference(data.ResourceTypeManagementPreference, context);
3216
3216
  }
@@ -3239,7 +3239,7 @@ const deserializeAws_restJson1DescribeRegionSettingsCommandError = async (output
3239
3239
  $fault: "client",
3240
3240
  $metadata: deserializeMetadata(output),
3241
3241
  });
3242
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3242
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3243
3243
  }
3244
3244
  };
3245
3245
  const deserializeAws_restJson1DescribeReportJobCommand = async (output, context) => {
@@ -3250,7 +3250,7 @@ const deserializeAws_restJson1DescribeReportJobCommand = async (output, context)
3250
3250
  $metadata: deserializeMetadata(output),
3251
3251
  ReportJob: undefined,
3252
3252
  };
3253
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3253
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3254
3254
  if (data.ReportJob !== undefined && data.ReportJob !== null) {
3255
3255
  contents.ReportJob = deserializeAws_restJson1ReportJob(data.ReportJob, context);
3256
3256
  }
@@ -3282,7 +3282,7 @@ const deserializeAws_restJson1DescribeReportJobCommandError = async (output, con
3282
3282
  $fault: "client",
3283
3283
  $metadata: deserializeMetadata(output),
3284
3284
  });
3285
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3285
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3286
3286
  }
3287
3287
  };
3288
3288
  const deserializeAws_restJson1DescribeReportPlanCommand = async (output, context) => {
@@ -3293,7 +3293,7 @@ const deserializeAws_restJson1DescribeReportPlanCommand = async (output, context
3293
3293
  $metadata: deserializeMetadata(output),
3294
3294
  ReportPlan: undefined,
3295
3295
  };
3296
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3296
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3297
3297
  if (data.ReportPlan !== undefined && data.ReportPlan !== null) {
3298
3298
  contents.ReportPlan = deserializeAws_restJson1ReportPlan(data.ReportPlan, context);
3299
3299
  }
@@ -3328,7 +3328,7 @@ const deserializeAws_restJson1DescribeReportPlanCommandError = async (output, co
3328
3328
  $fault: "client",
3329
3329
  $metadata: deserializeMetadata(output),
3330
3330
  });
3331
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3331
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3332
3332
  }
3333
3333
  };
3334
3334
  const deserializeAws_restJson1DescribeRestoreJobCommand = async (output, context) => {
@@ -3351,45 +3351,45 @@ const deserializeAws_restJson1DescribeRestoreJobCommand = async (output, context
3351
3351
  Status: undefined,
3352
3352
  StatusMessage: undefined,
3353
3353
  };
3354
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3354
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3355
3355
  if (data.AccountId !== undefined && data.AccountId !== null) {
3356
- contents.AccountId = smithy_client_1.expectString(data.AccountId);
3356
+ contents.AccountId = (0, smithy_client_1.expectString)(data.AccountId);
3357
3357
  }
3358
3358
  if (data.BackupSizeInBytes !== undefined && data.BackupSizeInBytes !== null) {
3359
- contents.BackupSizeInBytes = smithy_client_1.expectLong(data.BackupSizeInBytes);
3359
+ contents.BackupSizeInBytes = (0, smithy_client_1.expectLong)(data.BackupSizeInBytes);
3360
3360
  }
3361
3361
  if (data.CompletionDate !== undefined && data.CompletionDate !== null) {
3362
- contents.CompletionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CompletionDate)));
3362
+ contents.CompletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CompletionDate)));
3363
3363
  }
3364
3364
  if (data.CreatedResourceArn !== undefined && data.CreatedResourceArn !== null) {
3365
- contents.CreatedResourceArn = smithy_client_1.expectString(data.CreatedResourceArn);
3365
+ contents.CreatedResourceArn = (0, smithy_client_1.expectString)(data.CreatedResourceArn);
3366
3366
  }
3367
3367
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
3368
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
3368
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
3369
3369
  }
3370
3370
  if (data.ExpectedCompletionTimeMinutes !== undefined && data.ExpectedCompletionTimeMinutes !== null) {
3371
- contents.ExpectedCompletionTimeMinutes = smithy_client_1.expectLong(data.ExpectedCompletionTimeMinutes);
3371
+ contents.ExpectedCompletionTimeMinutes = (0, smithy_client_1.expectLong)(data.ExpectedCompletionTimeMinutes);
3372
3372
  }
3373
3373
  if (data.IamRoleArn !== undefined && data.IamRoleArn !== null) {
3374
- contents.IamRoleArn = smithy_client_1.expectString(data.IamRoleArn);
3374
+ contents.IamRoleArn = (0, smithy_client_1.expectString)(data.IamRoleArn);
3375
3375
  }
3376
3376
  if (data.PercentDone !== undefined && data.PercentDone !== null) {
3377
- contents.PercentDone = smithy_client_1.expectString(data.PercentDone);
3377
+ contents.PercentDone = (0, smithy_client_1.expectString)(data.PercentDone);
3378
3378
  }
3379
3379
  if (data.RecoveryPointArn !== undefined && data.RecoveryPointArn !== null) {
3380
- contents.RecoveryPointArn = smithy_client_1.expectString(data.RecoveryPointArn);
3380
+ contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
3381
3381
  }
3382
3382
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
3383
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
3383
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
3384
3384
  }
3385
3385
  if (data.RestoreJobId !== undefined && data.RestoreJobId !== null) {
3386
- contents.RestoreJobId = smithy_client_1.expectString(data.RestoreJobId);
3386
+ contents.RestoreJobId = (0, smithy_client_1.expectString)(data.RestoreJobId);
3387
3387
  }
3388
3388
  if (data.Status !== undefined && data.Status !== null) {
3389
- contents.Status = smithy_client_1.expectString(data.Status);
3389
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
3390
3390
  }
3391
3391
  if (data.StatusMessage !== undefined && data.StatusMessage !== null) {
3392
- contents.StatusMessage = smithy_client_1.expectString(data.StatusMessage);
3392
+ contents.StatusMessage = (0, smithy_client_1.expectString)(data.StatusMessage);
3393
3393
  }
3394
3394
  return Promise.resolve(contents);
3395
3395
  };
@@ -3425,7 +3425,7 @@ const deserializeAws_restJson1DescribeRestoreJobCommandError = async (output, co
3425
3425
  $fault: "client",
3426
3426
  $metadata: deserializeMetadata(output),
3427
3427
  });
3428
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3428
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3429
3429
  }
3430
3430
  };
3431
3431
  const deserializeAws_restJson1DisassociateRecoveryPointCommand = async (output, context) => {
@@ -3473,7 +3473,7 @@ const deserializeAws_restJson1DisassociateRecoveryPointCommandError = async (out
3473
3473
  $fault: "client",
3474
3474
  $metadata: deserializeMetadata(output),
3475
3475
  });
3476
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3476
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3477
3477
  }
3478
3478
  };
3479
3479
  const deserializeAws_restJson1ExportBackupPlanTemplateCommand = async (output, context) => {
@@ -3484,9 +3484,9 @@ const deserializeAws_restJson1ExportBackupPlanTemplateCommand = async (output, c
3484
3484
  $metadata: deserializeMetadata(output),
3485
3485
  BackupPlanTemplateJson: undefined,
3486
3486
  };
3487
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3487
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3488
3488
  if (data.BackupPlanTemplateJson !== undefined && data.BackupPlanTemplateJson !== null) {
3489
- contents.BackupPlanTemplateJson = smithy_client_1.expectString(data.BackupPlanTemplateJson);
3489
+ contents.BackupPlanTemplateJson = (0, smithy_client_1.expectString)(data.BackupPlanTemplateJson);
3490
3490
  }
3491
3491
  return Promise.resolve(contents);
3492
3492
  };
@@ -3519,7 +3519,7 @@ const deserializeAws_restJson1ExportBackupPlanTemplateCommandError = async (outp
3519
3519
  $fault: "client",
3520
3520
  $metadata: deserializeMetadata(output),
3521
3521
  });
3522
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3522
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3523
3523
  }
3524
3524
  };
3525
3525
  const deserializeAws_restJson1GetBackupPlanCommand = async (output, context) => {
@@ -3538,7 +3538,7 @@ const deserializeAws_restJson1GetBackupPlanCommand = async (output, context) =>
3538
3538
  LastExecutionDate: undefined,
3539
3539
  VersionId: undefined,
3540
3540
  };
3541
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3541
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3542
3542
  if (data.AdvancedBackupSettings !== undefined && data.AdvancedBackupSettings !== null) {
3543
3543
  contents.AdvancedBackupSettings = deserializeAws_restJson1AdvancedBackupSettings(data.AdvancedBackupSettings, context);
3544
3544
  }
@@ -3546,25 +3546,25 @@ const deserializeAws_restJson1GetBackupPlanCommand = async (output, context) =>
3546
3546
  contents.BackupPlan = deserializeAws_restJson1BackupPlan(data.BackupPlan, context);
3547
3547
  }
3548
3548
  if (data.BackupPlanArn !== undefined && data.BackupPlanArn !== null) {
3549
- contents.BackupPlanArn = smithy_client_1.expectString(data.BackupPlanArn);
3549
+ contents.BackupPlanArn = (0, smithy_client_1.expectString)(data.BackupPlanArn);
3550
3550
  }
3551
3551
  if (data.BackupPlanId !== undefined && data.BackupPlanId !== null) {
3552
- contents.BackupPlanId = smithy_client_1.expectString(data.BackupPlanId);
3552
+ contents.BackupPlanId = (0, smithy_client_1.expectString)(data.BackupPlanId);
3553
3553
  }
3554
3554
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
3555
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
3555
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
3556
3556
  }
3557
3557
  if (data.CreatorRequestId !== undefined && data.CreatorRequestId !== null) {
3558
- contents.CreatorRequestId = smithy_client_1.expectString(data.CreatorRequestId);
3558
+ contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
3559
3559
  }
3560
3560
  if (data.DeletionDate !== undefined && data.DeletionDate !== null) {
3561
- contents.DeletionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.DeletionDate)));
3561
+ contents.DeletionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.DeletionDate)));
3562
3562
  }
3563
3563
  if (data.LastExecutionDate !== undefined && data.LastExecutionDate !== null) {
3564
- contents.LastExecutionDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastExecutionDate)));
3564
+ contents.LastExecutionDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastExecutionDate)));
3565
3565
  }
3566
3566
  if (data.VersionId !== undefined && data.VersionId !== null) {
3567
- contents.VersionId = smithy_client_1.expectString(data.VersionId);
3567
+ contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
3568
3568
  }
3569
3569
  return Promise.resolve(contents);
3570
3570
  };
@@ -3597,7 +3597,7 @@ const deserializeAws_restJson1GetBackupPlanCommandError = async (output, context
3597
3597
  $fault: "client",
3598
3598
  $metadata: deserializeMetadata(output),
3599
3599
  });
3600
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3600
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3601
3601
  }
3602
3602
  };
3603
3603
  const deserializeAws_restJson1GetBackupPlanFromJSONCommand = async (output, context) => {
@@ -3608,7 +3608,7 @@ const deserializeAws_restJson1GetBackupPlanFromJSONCommand = async (output, cont
3608
3608
  $metadata: deserializeMetadata(output),
3609
3609
  BackupPlan: undefined,
3610
3610
  };
3611
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3611
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3612
3612
  if (data.BackupPlan !== undefined && data.BackupPlan !== null) {
3613
3613
  contents.BackupPlan = deserializeAws_restJson1BackupPlan(data.BackupPlan, context);
3614
3614
  }
@@ -3646,7 +3646,7 @@ const deserializeAws_restJson1GetBackupPlanFromJSONCommandError = async (output,
3646
3646
  $fault: "client",
3647
3647
  $metadata: deserializeMetadata(output),
3648
3648
  });
3649
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3649
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3650
3650
  }
3651
3651
  };
3652
3652
  const deserializeAws_restJson1GetBackupPlanFromTemplateCommand = async (output, context) => {
@@ -3657,7 +3657,7 @@ const deserializeAws_restJson1GetBackupPlanFromTemplateCommand = async (output,
3657
3657
  $metadata: deserializeMetadata(output),
3658
3658
  BackupPlanDocument: undefined,
3659
3659
  };
3660
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3660
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3661
3661
  if (data.BackupPlanDocument !== undefined && data.BackupPlanDocument !== null) {
3662
3662
  contents.BackupPlanDocument = deserializeAws_restJson1BackupPlan(data.BackupPlanDocument, context);
3663
3663
  }
@@ -3692,7 +3692,7 @@ const deserializeAws_restJson1GetBackupPlanFromTemplateCommandError = async (out
3692
3692
  $fault: "client",
3693
3693
  $metadata: deserializeMetadata(output),
3694
3694
  });
3695
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3695
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3696
3696
  }
3697
3697
  };
3698
3698
  const deserializeAws_restJson1GetBackupSelectionCommand = async (output, context) => {
@@ -3707,21 +3707,21 @@ const deserializeAws_restJson1GetBackupSelectionCommand = async (output, context
3707
3707
  CreatorRequestId: undefined,
3708
3708
  SelectionId: undefined,
3709
3709
  };
3710
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3710
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3711
3711
  if (data.BackupPlanId !== undefined && data.BackupPlanId !== null) {
3712
- contents.BackupPlanId = smithy_client_1.expectString(data.BackupPlanId);
3712
+ contents.BackupPlanId = (0, smithy_client_1.expectString)(data.BackupPlanId);
3713
3713
  }
3714
3714
  if (data.BackupSelection !== undefined && data.BackupSelection !== null) {
3715
3715
  contents.BackupSelection = deserializeAws_restJson1BackupSelection(data.BackupSelection, context);
3716
3716
  }
3717
3717
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
3718
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
3718
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
3719
3719
  }
3720
3720
  if (data.CreatorRequestId !== undefined && data.CreatorRequestId !== null) {
3721
- contents.CreatorRequestId = smithy_client_1.expectString(data.CreatorRequestId);
3721
+ contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
3722
3722
  }
3723
3723
  if (data.SelectionId !== undefined && data.SelectionId !== null) {
3724
- contents.SelectionId = smithy_client_1.expectString(data.SelectionId);
3724
+ contents.SelectionId = (0, smithy_client_1.expectString)(data.SelectionId);
3725
3725
  }
3726
3726
  return Promise.resolve(contents);
3727
3727
  };
@@ -3754,7 +3754,7 @@ const deserializeAws_restJson1GetBackupSelectionCommandError = async (output, co
3754
3754
  $fault: "client",
3755
3755
  $metadata: deserializeMetadata(output),
3756
3756
  });
3757
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3757
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3758
3758
  }
3759
3759
  };
3760
3760
  const deserializeAws_restJson1GetBackupVaultAccessPolicyCommand = async (output, context) => {
@@ -3767,15 +3767,15 @@ const deserializeAws_restJson1GetBackupVaultAccessPolicyCommand = async (output,
3767
3767
  BackupVaultName: undefined,
3768
3768
  Policy: undefined,
3769
3769
  };
3770
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3770
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3771
3771
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
3772
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
3772
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
3773
3773
  }
3774
3774
  if (data.BackupVaultName !== undefined && data.BackupVaultName !== null) {
3775
- contents.BackupVaultName = smithy_client_1.expectString(data.BackupVaultName);
3775
+ contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
3776
3776
  }
3777
3777
  if (data.Policy !== undefined && data.Policy !== null) {
3778
- contents.Policy = smithy_client_1.expectString(data.Policy);
3778
+ contents.Policy = (0, smithy_client_1.expectString)(data.Policy);
3779
3779
  }
3780
3780
  return Promise.resolve(contents);
3781
3781
  };
@@ -3808,7 +3808,7 @@ const deserializeAws_restJson1GetBackupVaultAccessPolicyCommandError = async (ou
3808
3808
  $fault: "client",
3809
3809
  $metadata: deserializeMetadata(output),
3810
3810
  });
3811
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3811
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3812
3812
  }
3813
3813
  };
3814
3814
  const deserializeAws_restJson1GetBackupVaultNotificationsCommand = async (output, context) => {
@@ -3822,18 +3822,18 @@ const deserializeAws_restJson1GetBackupVaultNotificationsCommand = async (output
3822
3822
  BackupVaultName: undefined,
3823
3823
  SNSTopicArn: undefined,
3824
3824
  };
3825
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3825
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3826
3826
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
3827
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
3827
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
3828
3828
  }
3829
3829
  if (data.BackupVaultEvents !== undefined && data.BackupVaultEvents !== null) {
3830
3830
  contents.BackupVaultEvents = deserializeAws_restJson1BackupVaultEvents(data.BackupVaultEvents, context);
3831
3831
  }
3832
3832
  if (data.BackupVaultName !== undefined && data.BackupVaultName !== null) {
3833
- contents.BackupVaultName = smithy_client_1.expectString(data.BackupVaultName);
3833
+ contents.BackupVaultName = (0, smithy_client_1.expectString)(data.BackupVaultName);
3834
3834
  }
3835
3835
  if (data.SNSTopicArn !== undefined && data.SNSTopicArn !== null) {
3836
- contents.SNSTopicArn = smithy_client_1.expectString(data.SNSTopicArn);
3836
+ contents.SNSTopicArn = (0, smithy_client_1.expectString)(data.SNSTopicArn);
3837
3837
  }
3838
3838
  return Promise.resolve(contents);
3839
3839
  };
@@ -3866,7 +3866,7 @@ const deserializeAws_restJson1GetBackupVaultNotificationsCommandError = async (o
3866
3866
  $fault: "client",
3867
3867
  $metadata: deserializeMetadata(output),
3868
3868
  });
3869
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3869
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3870
3870
  }
3871
3871
  };
3872
3872
  const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = async (output, context) => {
@@ -3879,12 +3879,12 @@ const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = async (ou
3879
3879
  RecoveryPointArn: undefined,
3880
3880
  RestoreMetadata: undefined,
3881
3881
  };
3882
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3882
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3883
3883
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
3884
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
3884
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
3885
3885
  }
3886
3886
  if (data.RecoveryPointArn !== undefined && data.RecoveryPointArn !== null) {
3887
- contents.RecoveryPointArn = smithy_client_1.expectString(data.RecoveryPointArn);
3887
+ contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
3888
3888
  }
3889
3889
  if (data.RestoreMetadata !== undefined && data.RestoreMetadata !== null) {
3890
3890
  contents.RestoreMetadata = deserializeAws_restJson1Metadata(data.RestoreMetadata, context);
@@ -3920,7 +3920,7 @@ const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommandError = asyn
3920
3920
  $fault: "client",
3921
3921
  $metadata: deserializeMetadata(output),
3922
3922
  });
3923
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3923
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3924
3924
  }
3925
3925
  };
3926
3926
  const deserializeAws_restJson1GetSupportedResourceTypesCommand = async (output, context) => {
@@ -3931,7 +3931,7 @@ const deserializeAws_restJson1GetSupportedResourceTypesCommand = async (output,
3931
3931
  $metadata: deserializeMetadata(output),
3932
3932
  ResourceTypes: undefined,
3933
3933
  };
3934
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3934
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3935
3935
  if (data.ResourceTypes !== undefined && data.ResourceTypes !== null) {
3936
3936
  contents.ResourceTypes = deserializeAws_restJson1ResourceTypes(data.ResourceTypes, context);
3937
3937
  }
@@ -3957,7 +3957,7 @@ const deserializeAws_restJson1GetSupportedResourceTypesCommandError = async (out
3957
3957
  $fault: "client",
3958
3958
  $metadata: deserializeMetadata(output),
3959
3959
  });
3960
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3960
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3961
3961
  }
3962
3962
  };
3963
3963
  const deserializeAws_restJson1ListBackupJobsCommand = async (output, context) => {
@@ -3969,12 +3969,12 @@ const deserializeAws_restJson1ListBackupJobsCommand = async (output, context) =>
3969
3969
  BackupJobs: undefined,
3970
3970
  NextToken: undefined,
3971
3971
  };
3972
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3972
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3973
3973
  if (data.BackupJobs !== undefined && data.BackupJobs !== null) {
3974
3974
  contents.BackupJobs = deserializeAws_restJson1BackupJobsList(data.BackupJobs, context);
3975
3975
  }
3976
3976
  if (data.NextToken !== undefined && data.NextToken !== null) {
3977
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
3977
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3978
3978
  }
3979
3979
  return Promise.resolve(contents);
3980
3980
  };
@@ -4001,7 +4001,7 @@ const deserializeAws_restJson1ListBackupJobsCommandError = async (output, contex
4001
4001
  $fault: "client",
4002
4002
  $metadata: deserializeMetadata(output),
4003
4003
  });
4004
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4004
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4005
4005
  }
4006
4006
  };
4007
4007
  const deserializeAws_restJson1ListBackupPlansCommand = async (output, context) => {
@@ -4013,12 +4013,12 @@ const deserializeAws_restJson1ListBackupPlansCommand = async (output, context) =
4013
4013
  BackupPlansList: undefined,
4014
4014
  NextToken: undefined,
4015
4015
  };
4016
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4016
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4017
4017
  if (data.BackupPlansList !== undefined && data.BackupPlansList !== null) {
4018
4018
  contents.BackupPlansList = deserializeAws_restJson1BackupPlansList(data.BackupPlansList, context);
4019
4019
  }
4020
4020
  if (data.NextToken !== undefined && data.NextToken !== null) {
4021
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4021
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4022
4022
  }
4023
4023
  return Promise.resolve(contents);
4024
4024
  };
@@ -4051,7 +4051,7 @@ const deserializeAws_restJson1ListBackupPlansCommandError = async (output, conte
4051
4051
  $fault: "client",
4052
4052
  $metadata: deserializeMetadata(output),
4053
4053
  });
4054
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4054
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4055
4055
  }
4056
4056
  };
4057
4057
  const deserializeAws_restJson1ListBackupPlanTemplatesCommand = async (output, context) => {
@@ -4063,12 +4063,12 @@ const deserializeAws_restJson1ListBackupPlanTemplatesCommand = async (output, co
4063
4063
  BackupPlanTemplatesList: undefined,
4064
4064
  NextToken: undefined,
4065
4065
  };
4066
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4066
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4067
4067
  if (data.BackupPlanTemplatesList !== undefined && data.BackupPlanTemplatesList !== null) {
4068
4068
  contents.BackupPlanTemplatesList = deserializeAws_restJson1BackupPlanTemplatesList(data.BackupPlanTemplatesList, context);
4069
4069
  }
4070
4070
  if (data.NextToken !== undefined && data.NextToken !== null) {
4071
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4071
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4072
4072
  }
4073
4073
  return Promise.resolve(contents);
4074
4074
  };
@@ -4101,7 +4101,7 @@ const deserializeAws_restJson1ListBackupPlanTemplatesCommandError = async (outpu
4101
4101
  $fault: "client",
4102
4102
  $metadata: deserializeMetadata(output),
4103
4103
  });
4104
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4104
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4105
4105
  }
4106
4106
  };
4107
4107
  const deserializeAws_restJson1ListBackupPlanVersionsCommand = async (output, context) => {
@@ -4113,12 +4113,12 @@ const deserializeAws_restJson1ListBackupPlanVersionsCommand = async (output, con
4113
4113
  BackupPlanVersionsList: undefined,
4114
4114
  NextToken: undefined,
4115
4115
  };
4116
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4116
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4117
4117
  if (data.BackupPlanVersionsList !== undefined && data.BackupPlanVersionsList !== null) {
4118
4118
  contents.BackupPlanVersionsList = deserializeAws_restJson1BackupPlanVersionsList(data.BackupPlanVersionsList, context);
4119
4119
  }
4120
4120
  if (data.NextToken !== undefined && data.NextToken !== null) {
4121
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4121
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4122
4122
  }
4123
4123
  return Promise.resolve(contents);
4124
4124
  };
@@ -4151,7 +4151,7 @@ const deserializeAws_restJson1ListBackupPlanVersionsCommandError = async (output
4151
4151
  $fault: "client",
4152
4152
  $metadata: deserializeMetadata(output),
4153
4153
  });
4154
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4154
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4155
4155
  }
4156
4156
  };
4157
4157
  const deserializeAws_restJson1ListBackupSelectionsCommand = async (output, context) => {
@@ -4163,12 +4163,12 @@ const deserializeAws_restJson1ListBackupSelectionsCommand = async (output, conte
4163
4163
  BackupSelectionsList: undefined,
4164
4164
  NextToken: undefined,
4165
4165
  };
4166
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4166
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4167
4167
  if (data.BackupSelectionsList !== undefined && data.BackupSelectionsList !== null) {
4168
4168
  contents.BackupSelectionsList = deserializeAws_restJson1BackupSelectionsList(data.BackupSelectionsList, context);
4169
4169
  }
4170
4170
  if (data.NextToken !== undefined && data.NextToken !== null) {
4171
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4171
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4172
4172
  }
4173
4173
  return Promise.resolve(contents);
4174
4174
  };
@@ -4201,7 +4201,7 @@ const deserializeAws_restJson1ListBackupSelectionsCommandError = async (output,
4201
4201
  $fault: "client",
4202
4202
  $metadata: deserializeMetadata(output),
4203
4203
  });
4204
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4204
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4205
4205
  }
4206
4206
  };
4207
4207
  const deserializeAws_restJson1ListBackupVaultsCommand = async (output, context) => {
@@ -4213,12 +4213,12 @@ const deserializeAws_restJson1ListBackupVaultsCommand = async (output, context)
4213
4213
  BackupVaultList: undefined,
4214
4214
  NextToken: undefined,
4215
4215
  };
4216
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4216
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4217
4217
  if (data.BackupVaultList !== undefined && data.BackupVaultList !== null) {
4218
4218
  contents.BackupVaultList = deserializeAws_restJson1BackupVaultList(data.BackupVaultList, context);
4219
4219
  }
4220
4220
  if (data.NextToken !== undefined && data.NextToken !== null) {
4221
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4221
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4222
4222
  }
4223
4223
  return Promise.resolve(contents);
4224
4224
  };
@@ -4251,7 +4251,7 @@ const deserializeAws_restJson1ListBackupVaultsCommandError = async (output, cont
4251
4251
  $fault: "client",
4252
4252
  $metadata: deserializeMetadata(output),
4253
4253
  });
4254
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4254
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4255
4255
  }
4256
4256
  };
4257
4257
  const deserializeAws_restJson1ListCopyJobsCommand = async (output, context) => {
@@ -4263,12 +4263,12 @@ const deserializeAws_restJson1ListCopyJobsCommand = async (output, context) => {
4263
4263
  CopyJobs: undefined,
4264
4264
  NextToken: undefined,
4265
4265
  };
4266
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4266
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4267
4267
  if (data.CopyJobs !== undefined && data.CopyJobs !== null) {
4268
4268
  contents.CopyJobs = deserializeAws_restJson1CopyJobsList(data.CopyJobs, context);
4269
4269
  }
4270
4270
  if (data.NextToken !== undefined && data.NextToken !== null) {
4271
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4271
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4272
4272
  }
4273
4273
  return Promise.resolve(contents);
4274
4274
  };
@@ -4295,7 +4295,7 @@ const deserializeAws_restJson1ListCopyJobsCommandError = async (output, context)
4295
4295
  $fault: "client",
4296
4296
  $metadata: deserializeMetadata(output),
4297
4297
  });
4298
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4298
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4299
4299
  }
4300
4300
  };
4301
4301
  const deserializeAws_restJson1ListFrameworksCommand = async (output, context) => {
@@ -4307,12 +4307,12 @@ const deserializeAws_restJson1ListFrameworksCommand = async (output, context) =>
4307
4307
  Frameworks: undefined,
4308
4308
  NextToken: undefined,
4309
4309
  };
4310
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4310
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4311
4311
  if (data.Frameworks !== undefined && data.Frameworks !== null) {
4312
4312
  contents.Frameworks = deserializeAws_restJson1FrameworkList(data.Frameworks, context);
4313
4313
  }
4314
4314
  if (data.NextToken !== undefined && data.NextToken !== null) {
4315
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4315
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4316
4316
  }
4317
4317
  return Promise.resolve(contents);
4318
4318
  };
@@ -4339,7 +4339,7 @@ const deserializeAws_restJson1ListFrameworksCommandError = async (output, contex
4339
4339
  $fault: "client",
4340
4340
  $metadata: deserializeMetadata(output),
4341
4341
  });
4342
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4342
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4343
4343
  }
4344
4344
  };
4345
4345
  const deserializeAws_restJson1ListProtectedResourcesCommand = async (output, context) => {
@@ -4351,9 +4351,9 @@ const deserializeAws_restJson1ListProtectedResourcesCommand = async (output, con
4351
4351
  NextToken: undefined,
4352
4352
  Results: undefined,
4353
4353
  };
4354
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4354
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4355
4355
  if (data.NextToken !== undefined && data.NextToken !== null) {
4356
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4356
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4357
4357
  }
4358
4358
  if (data.Results !== undefined && data.Results !== null) {
4359
4359
  contents.Results = deserializeAws_restJson1ProtectedResourcesList(data.Results, context);
@@ -4383,7 +4383,7 @@ const deserializeAws_restJson1ListProtectedResourcesCommandError = async (output
4383
4383
  $fault: "client",
4384
4384
  $metadata: deserializeMetadata(output),
4385
4385
  });
4386
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4386
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4387
4387
  }
4388
4388
  };
4389
4389
  const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
@@ -4395,9 +4395,9 @@ const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = async (ou
4395
4395
  NextToken: undefined,
4396
4396
  RecoveryPoints: undefined,
4397
4397
  };
4398
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4398
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4399
4399
  if (data.NextToken !== undefined && data.NextToken !== null) {
4400
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4400
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4401
4401
  }
4402
4402
  if (data.RecoveryPoints !== undefined && data.RecoveryPoints !== null) {
4403
4403
  contents.RecoveryPoints = deserializeAws_restJson1RecoveryPointByBackupVaultList(data.RecoveryPoints, context);
@@ -4433,7 +4433,7 @@ const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommandError = asyn
4433
4433
  $fault: "client",
4434
4434
  $metadata: deserializeMetadata(output),
4435
4435
  });
4436
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4436
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4437
4437
  }
4438
4438
  };
4439
4439
  const deserializeAws_restJson1ListRecoveryPointsByResourceCommand = async (output, context) => {
@@ -4445,9 +4445,9 @@ const deserializeAws_restJson1ListRecoveryPointsByResourceCommand = async (outpu
4445
4445
  NextToken: undefined,
4446
4446
  RecoveryPoints: undefined,
4447
4447
  };
4448
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4448
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4449
4449
  if (data.NextToken !== undefined && data.NextToken !== null) {
4450
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4450
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4451
4451
  }
4452
4452
  if (data.RecoveryPoints !== undefined && data.RecoveryPoints !== null) {
4453
4453
  contents.RecoveryPoints = deserializeAws_restJson1RecoveryPointByResourceList(data.RecoveryPoints, context);
@@ -4483,7 +4483,7 @@ const deserializeAws_restJson1ListRecoveryPointsByResourceCommandError = async (
4483
4483
  $fault: "client",
4484
4484
  $metadata: deserializeMetadata(output),
4485
4485
  });
4486
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4486
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4487
4487
  }
4488
4488
  };
4489
4489
  const deserializeAws_restJson1ListReportJobsCommand = async (output, context) => {
@@ -4495,9 +4495,9 @@ const deserializeAws_restJson1ListReportJobsCommand = async (output, context) =>
4495
4495
  NextToken: undefined,
4496
4496
  ReportJobs: undefined,
4497
4497
  };
4498
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4498
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4499
4499
  if (data.NextToken !== undefined && data.NextToken !== null) {
4500
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4500
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4501
4501
  }
4502
4502
  if (data.ReportJobs !== undefined && data.ReportJobs !== null) {
4503
4503
  contents.ReportJobs = deserializeAws_restJson1ReportJobList(data.ReportJobs, context);
@@ -4527,7 +4527,7 @@ const deserializeAws_restJson1ListReportJobsCommandError = async (output, contex
4527
4527
  $fault: "client",
4528
4528
  $metadata: deserializeMetadata(output),
4529
4529
  });
4530
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4530
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4531
4531
  }
4532
4532
  };
4533
4533
  const deserializeAws_restJson1ListReportPlansCommand = async (output, context) => {
@@ -4539,9 +4539,9 @@ const deserializeAws_restJson1ListReportPlansCommand = async (output, context) =
4539
4539
  NextToken: undefined,
4540
4540
  ReportPlans: undefined,
4541
4541
  };
4542
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4542
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4543
4543
  if (data.NextToken !== undefined && data.NextToken !== null) {
4544
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4544
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4545
4545
  }
4546
4546
  if (data.ReportPlans !== undefined && data.ReportPlans !== null) {
4547
4547
  contents.ReportPlans = deserializeAws_restJson1ReportPlanList(data.ReportPlans, context);
@@ -4571,7 +4571,7 @@ const deserializeAws_restJson1ListReportPlansCommandError = async (output, conte
4571
4571
  $fault: "client",
4572
4572
  $metadata: deserializeMetadata(output),
4573
4573
  });
4574
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4574
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4575
4575
  }
4576
4576
  };
4577
4577
  const deserializeAws_restJson1ListRestoreJobsCommand = async (output, context) => {
@@ -4583,9 +4583,9 @@ const deserializeAws_restJson1ListRestoreJobsCommand = async (output, context) =
4583
4583
  NextToken: undefined,
4584
4584
  RestoreJobs: undefined,
4585
4585
  };
4586
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4586
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4587
4587
  if (data.NextToken !== undefined && data.NextToken !== null) {
4588
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4588
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4589
4589
  }
4590
4590
  if (data.RestoreJobs !== undefined && data.RestoreJobs !== null) {
4591
4591
  contents.RestoreJobs = deserializeAws_restJson1RestoreJobsList(data.RestoreJobs, context);
@@ -4621,7 +4621,7 @@ const deserializeAws_restJson1ListRestoreJobsCommandError = async (output, conte
4621
4621
  $fault: "client",
4622
4622
  $metadata: deserializeMetadata(output),
4623
4623
  });
4624
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4624
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4625
4625
  }
4626
4626
  };
4627
4627
  const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
@@ -4633,9 +4633,9 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
4633
4633
  NextToken: undefined,
4634
4634
  Tags: undefined,
4635
4635
  };
4636
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4636
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4637
4637
  if (data.NextToken !== undefined && data.NextToken !== null) {
4638
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4638
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4639
4639
  }
4640
4640
  if (data.Tags !== undefined && data.Tags !== null) {
4641
4641
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
@@ -4671,7 +4671,7 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
4671
4671
  $fault: "client",
4672
4672
  $metadata: deserializeMetadata(output),
4673
4673
  });
4674
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4674
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4675
4675
  }
4676
4676
  };
4677
4677
  const deserializeAws_restJson1PutBackupVaultAccessPolicyCommand = async (output, context) => {
@@ -4713,7 +4713,7 @@ const deserializeAws_restJson1PutBackupVaultAccessPolicyCommandError = async (ou
4713
4713
  $fault: "client",
4714
4714
  $metadata: deserializeMetadata(output),
4715
4715
  });
4716
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4716
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4717
4717
  }
4718
4718
  };
4719
4719
  const deserializeAws_restJson1PutBackupVaultLockConfigurationCommand = async (output, context) => {
@@ -4758,7 +4758,7 @@ const deserializeAws_restJson1PutBackupVaultLockConfigurationCommandError = asyn
4758
4758
  $fault: "client",
4759
4759
  $metadata: deserializeMetadata(output),
4760
4760
  });
4761
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4761
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4762
4762
  }
4763
4763
  };
4764
4764
  const deserializeAws_restJson1PutBackupVaultNotificationsCommand = async (output, context) => {
@@ -4800,7 +4800,7 @@ const deserializeAws_restJson1PutBackupVaultNotificationsCommandError = async (o
4800
4800
  $fault: "client",
4801
4801
  $metadata: deserializeMetadata(output),
4802
4802
  });
4803
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4803
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4804
4804
  }
4805
4805
  };
4806
4806
  const deserializeAws_restJson1StartBackupJobCommand = async (output, context) => {
@@ -4813,15 +4813,15 @@ const deserializeAws_restJson1StartBackupJobCommand = async (output, context) =>
4813
4813
  CreationDate: undefined,
4814
4814
  RecoveryPointArn: undefined,
4815
4815
  };
4816
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4816
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4817
4817
  if (data.BackupJobId !== undefined && data.BackupJobId !== null) {
4818
- contents.BackupJobId = smithy_client_1.expectString(data.BackupJobId);
4818
+ contents.BackupJobId = (0, smithy_client_1.expectString)(data.BackupJobId);
4819
4819
  }
4820
4820
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
4821
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
4821
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
4822
4822
  }
4823
4823
  if (data.RecoveryPointArn !== undefined && data.RecoveryPointArn !== null) {
4824
- contents.RecoveryPointArn = smithy_client_1.expectString(data.RecoveryPointArn);
4824
+ contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
4825
4825
  }
4826
4826
  return Promise.resolve(contents);
4827
4827
  };
@@ -4860,7 +4860,7 @@ const deserializeAws_restJson1StartBackupJobCommandError = async (output, contex
4860
4860
  $fault: "client",
4861
4861
  $metadata: deserializeMetadata(output),
4862
4862
  });
4863
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4863
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4864
4864
  }
4865
4865
  };
4866
4866
  const deserializeAws_restJson1StartCopyJobCommand = async (output, context) => {
@@ -4872,12 +4872,12 @@ const deserializeAws_restJson1StartCopyJobCommand = async (output, context) => {
4872
4872
  CopyJobId: undefined,
4873
4873
  CreationDate: undefined,
4874
4874
  };
4875
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4875
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4876
4876
  if (data.CopyJobId !== undefined && data.CopyJobId !== null) {
4877
- contents.CopyJobId = smithy_client_1.expectString(data.CopyJobId);
4877
+ contents.CopyJobId = (0, smithy_client_1.expectString)(data.CopyJobId);
4878
4878
  }
4879
4879
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
4880
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
4880
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
4881
4881
  }
4882
4882
  return Promise.resolve(contents);
4883
4883
  };
@@ -4916,7 +4916,7 @@ const deserializeAws_restJson1StartCopyJobCommandError = async (output, context)
4916
4916
  $fault: "client",
4917
4917
  $metadata: deserializeMetadata(output),
4918
4918
  });
4919
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4919
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4920
4920
  }
4921
4921
  };
4922
4922
  const deserializeAws_restJson1StartReportJobCommand = async (output, context) => {
@@ -4927,9 +4927,9 @@ const deserializeAws_restJson1StartReportJobCommand = async (output, context) =>
4927
4927
  $metadata: deserializeMetadata(output),
4928
4928
  ReportJobId: undefined,
4929
4929
  };
4930
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4930
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4931
4931
  if (data.ReportJobId !== undefined && data.ReportJobId !== null) {
4932
- contents.ReportJobId = smithy_client_1.expectString(data.ReportJobId);
4932
+ contents.ReportJobId = (0, smithy_client_1.expectString)(data.ReportJobId);
4933
4933
  }
4934
4934
  return Promise.resolve(contents);
4935
4935
  };
@@ -4962,7 +4962,7 @@ const deserializeAws_restJson1StartReportJobCommandError = async (output, contex
4962
4962
  $fault: "client",
4963
4963
  $metadata: deserializeMetadata(output),
4964
4964
  });
4965
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4965
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4966
4966
  }
4967
4967
  };
4968
4968
  const deserializeAws_restJson1StartRestoreJobCommand = async (output, context) => {
@@ -4973,9 +4973,9 @@ const deserializeAws_restJson1StartRestoreJobCommand = async (output, context) =
4973
4973
  $metadata: deserializeMetadata(output),
4974
4974
  RestoreJobId: undefined,
4975
4975
  };
4976
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4976
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4977
4977
  if (data.RestoreJobId !== undefined && data.RestoreJobId !== null) {
4978
- contents.RestoreJobId = smithy_client_1.expectString(data.RestoreJobId);
4978
+ contents.RestoreJobId = (0, smithy_client_1.expectString)(data.RestoreJobId);
4979
4979
  }
4980
4980
  return Promise.resolve(contents);
4981
4981
  };
@@ -5008,7 +5008,7 @@ const deserializeAws_restJson1StartRestoreJobCommandError = async (output, conte
5008
5008
  $fault: "client",
5009
5009
  $metadata: deserializeMetadata(output),
5010
5010
  });
5011
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5011
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5012
5012
  }
5013
5013
  };
5014
5014
  const deserializeAws_restJson1StopBackupJobCommand = async (output, context) => {
@@ -5053,7 +5053,7 @@ const deserializeAws_restJson1StopBackupJobCommandError = async (output, context
5053
5053
  $fault: "client",
5054
5054
  $metadata: deserializeMetadata(output),
5055
5055
  });
5056
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5056
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5057
5057
  }
5058
5058
  };
5059
5059
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -5098,7 +5098,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
5098
5098
  $fault: "client",
5099
5099
  $metadata: deserializeMetadata(output),
5100
5100
  });
5101
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5101
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5102
5102
  }
5103
5103
  };
5104
5104
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -5140,7 +5140,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
5140
5140
  $fault: "client",
5141
5141
  $metadata: deserializeMetadata(output),
5142
5142
  });
5143
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5143
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5144
5144
  }
5145
5145
  };
5146
5146
  const deserializeAws_restJson1UpdateBackupPlanCommand = async (output, context) => {
@@ -5155,21 +5155,21 @@ const deserializeAws_restJson1UpdateBackupPlanCommand = async (output, context)
5155
5155
  CreationDate: undefined,
5156
5156
  VersionId: undefined,
5157
5157
  };
5158
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5158
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5159
5159
  if (data.AdvancedBackupSettings !== undefined && data.AdvancedBackupSettings !== null) {
5160
5160
  contents.AdvancedBackupSettings = deserializeAws_restJson1AdvancedBackupSettings(data.AdvancedBackupSettings, context);
5161
5161
  }
5162
5162
  if (data.BackupPlanArn !== undefined && data.BackupPlanArn !== null) {
5163
- contents.BackupPlanArn = smithy_client_1.expectString(data.BackupPlanArn);
5163
+ contents.BackupPlanArn = (0, smithy_client_1.expectString)(data.BackupPlanArn);
5164
5164
  }
5165
5165
  if (data.BackupPlanId !== undefined && data.BackupPlanId !== null) {
5166
- contents.BackupPlanId = smithy_client_1.expectString(data.BackupPlanId);
5166
+ contents.BackupPlanId = (0, smithy_client_1.expectString)(data.BackupPlanId);
5167
5167
  }
5168
5168
  if (data.CreationDate !== undefined && data.CreationDate !== null) {
5169
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationDate)));
5169
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationDate)));
5170
5170
  }
5171
5171
  if (data.VersionId !== undefined && data.VersionId !== null) {
5172
- contents.VersionId = smithy_client_1.expectString(data.VersionId);
5172
+ contents.VersionId = (0, smithy_client_1.expectString)(data.VersionId);
5173
5173
  }
5174
5174
  return Promise.resolve(contents);
5175
5175
  };
@@ -5202,7 +5202,7 @@ const deserializeAws_restJson1UpdateBackupPlanCommandError = async (output, cont
5202
5202
  $fault: "client",
5203
5203
  $metadata: deserializeMetadata(output),
5204
5204
  });
5205
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5205
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5206
5206
  }
5207
5207
  };
5208
5208
  const deserializeAws_restJson1UpdateFrameworkCommand = async (output, context) => {
@@ -5215,15 +5215,15 @@ const deserializeAws_restJson1UpdateFrameworkCommand = async (output, context) =
5215
5215
  FrameworkArn: undefined,
5216
5216
  FrameworkName: undefined,
5217
5217
  };
5218
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5218
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5219
5219
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
5220
- contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
5220
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
5221
5221
  }
5222
5222
  if (data.FrameworkArn !== undefined && data.FrameworkArn !== null) {
5223
- contents.FrameworkArn = smithy_client_1.expectString(data.FrameworkArn);
5223
+ contents.FrameworkArn = (0, smithy_client_1.expectString)(data.FrameworkArn);
5224
5224
  }
5225
5225
  if (data.FrameworkName !== undefined && data.FrameworkName !== null) {
5226
- contents.FrameworkName = smithy_client_1.expectString(data.FrameworkName);
5226
+ contents.FrameworkName = (0, smithy_client_1.expectString)(data.FrameworkName);
5227
5227
  }
5228
5228
  return Promise.resolve(contents);
5229
5229
  };
@@ -5265,7 +5265,7 @@ const deserializeAws_restJson1UpdateFrameworkCommandError = async (output, conte
5265
5265
  $fault: "client",
5266
5266
  $metadata: deserializeMetadata(output),
5267
5267
  });
5268
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5268
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5269
5269
  }
5270
5270
  };
5271
5271
  const deserializeAws_restJson1UpdateGlobalSettingsCommand = async (output, context) => {
@@ -5307,7 +5307,7 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
5307
5307
  $fault: "client",
5308
5308
  $metadata: deserializeMetadata(output),
5309
5309
  });
5310
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5310
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5311
5311
  }
5312
5312
  };
5313
5313
  const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (output, context) => {
@@ -5321,9 +5321,9 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (outpu
5321
5321
  Lifecycle: undefined,
5322
5322
  RecoveryPointArn: undefined,
5323
5323
  };
5324
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5324
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5325
5325
  if (data.BackupVaultArn !== undefined && data.BackupVaultArn !== null) {
5326
- contents.BackupVaultArn = smithy_client_1.expectString(data.BackupVaultArn);
5326
+ contents.BackupVaultArn = (0, smithy_client_1.expectString)(data.BackupVaultArn);
5327
5327
  }
5328
5328
  if (data.CalculatedLifecycle !== undefined && data.CalculatedLifecycle !== null) {
5329
5329
  contents.CalculatedLifecycle = deserializeAws_restJson1CalculatedLifecycle(data.CalculatedLifecycle, context);
@@ -5332,7 +5332,7 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (outpu
5332
5332
  contents.Lifecycle = deserializeAws_restJson1Lifecycle(data.Lifecycle, context);
5333
5333
  }
5334
5334
  if (data.RecoveryPointArn !== undefined && data.RecoveryPointArn !== null) {
5335
- contents.RecoveryPointArn = smithy_client_1.expectString(data.RecoveryPointArn);
5335
+ contents.RecoveryPointArn = (0, smithy_client_1.expectString)(data.RecoveryPointArn);
5336
5336
  }
5337
5337
  return Promise.resolve(contents);
5338
5338
  };
@@ -5368,7 +5368,7 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = async (
5368
5368
  $fault: "client",
5369
5369
  $metadata: deserializeMetadata(output),
5370
5370
  });
5371
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5371
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5372
5372
  }
5373
5373
  };
5374
5374
  const deserializeAws_restJson1UpdateRegionSettingsCommand = async (output, context) => {
@@ -5407,7 +5407,7 @@ const deserializeAws_restJson1UpdateRegionSettingsCommandError = async (output,
5407
5407
  $fault: "client",
5408
5408
  $metadata: deserializeMetadata(output),
5409
5409
  });
5410
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5410
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5411
5411
  }
5412
5412
  };
5413
5413
  const deserializeAws_restJson1UpdateReportPlanCommand = async (output, context) => {
@@ -5420,15 +5420,15 @@ const deserializeAws_restJson1UpdateReportPlanCommand = async (output, context)
5420
5420
  ReportPlanArn: undefined,
5421
5421
  ReportPlanName: undefined,
5422
5422
  };
5423
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5423
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5424
5424
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
5425
- contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
5425
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
5426
5426
  }
5427
5427
  if (data.ReportPlanArn !== undefined && data.ReportPlanArn !== null) {
5428
- contents.ReportPlanArn = smithy_client_1.expectString(data.ReportPlanArn);
5428
+ contents.ReportPlanArn = (0, smithy_client_1.expectString)(data.ReportPlanArn);
5429
5429
  }
5430
5430
  if (data.ReportPlanName !== undefined && data.ReportPlanName !== null) {
5431
- contents.ReportPlanName = smithy_client_1.expectString(data.ReportPlanName);
5431
+ contents.ReportPlanName = (0, smithy_client_1.expectString)(data.ReportPlanName);
5432
5432
  }
5433
5433
  return Promise.resolve(contents);
5434
5434
  };
@@ -5464,224 +5464,224 @@ const deserializeAws_restJson1UpdateReportPlanCommandError = async (output, cont
5464
5464
  $fault: "client",
5465
5465
  $metadata: deserializeMetadata(output),
5466
5466
  });
5467
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5467
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5468
5468
  }
5469
5469
  };
5470
5470
  const deserializeAws_restJson1AlreadyExistsExceptionResponse = async (parsedOutput, context) => {
5471
5471
  const contents = {};
5472
5472
  const data = parsedOutput.body;
5473
5473
  if (data.Arn !== undefined && data.Arn !== null) {
5474
- contents.Arn = smithy_client_1.expectString(data.Arn);
5474
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
5475
5475
  }
5476
5476
  if (data.Code !== undefined && data.Code !== null) {
5477
- contents.Code = smithy_client_1.expectString(data.Code);
5477
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5478
5478
  }
5479
5479
  if (data.Context !== undefined && data.Context !== null) {
5480
- contents.Context = smithy_client_1.expectString(data.Context);
5480
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5481
5481
  }
5482
5482
  if (data.CreatorRequestId !== undefined && data.CreatorRequestId !== null) {
5483
- contents.CreatorRequestId = smithy_client_1.expectString(data.CreatorRequestId);
5483
+ contents.CreatorRequestId = (0, smithy_client_1.expectString)(data.CreatorRequestId);
5484
5484
  }
5485
5485
  if (data.Message !== undefined && data.Message !== null) {
5486
- contents.Message = smithy_client_1.expectString(data.Message);
5486
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5487
5487
  }
5488
5488
  if (data.Type !== undefined && data.Type !== null) {
5489
- contents.Type = smithy_client_1.expectString(data.Type);
5489
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5490
5490
  }
5491
5491
  const exception = new models_0_1.AlreadyExistsException({
5492
5492
  $metadata: deserializeMetadata(parsedOutput),
5493
5493
  ...contents,
5494
5494
  });
5495
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5495
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5496
5496
  };
5497
5497
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
5498
5498
  const contents = {};
5499
5499
  const data = parsedOutput.body;
5500
5500
  if (data.Code !== undefined && data.Code !== null) {
5501
- contents.Code = smithy_client_1.expectString(data.Code);
5501
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5502
5502
  }
5503
5503
  if (data.Context !== undefined && data.Context !== null) {
5504
- contents.Context = smithy_client_1.expectString(data.Context);
5504
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5505
5505
  }
5506
5506
  if (data.Message !== undefined && data.Message !== null) {
5507
- contents.Message = smithy_client_1.expectString(data.Message);
5507
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5508
5508
  }
5509
5509
  if (data.Type !== undefined && data.Type !== null) {
5510
- contents.Type = smithy_client_1.expectString(data.Type);
5510
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5511
5511
  }
5512
5512
  const exception = new models_0_1.ConflictException({
5513
5513
  $metadata: deserializeMetadata(parsedOutput),
5514
5514
  ...contents,
5515
5515
  });
5516
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5516
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5517
5517
  };
5518
5518
  const deserializeAws_restJson1DependencyFailureExceptionResponse = async (parsedOutput, context) => {
5519
5519
  const contents = {};
5520
5520
  const data = parsedOutput.body;
5521
5521
  if (data.Code !== undefined && data.Code !== null) {
5522
- contents.Code = smithy_client_1.expectString(data.Code);
5522
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5523
5523
  }
5524
5524
  if (data.Context !== undefined && data.Context !== null) {
5525
- contents.Context = smithy_client_1.expectString(data.Context);
5525
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5526
5526
  }
5527
5527
  if (data.Message !== undefined && data.Message !== null) {
5528
- contents.Message = smithy_client_1.expectString(data.Message);
5528
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5529
5529
  }
5530
5530
  if (data.Type !== undefined && data.Type !== null) {
5531
- contents.Type = smithy_client_1.expectString(data.Type);
5531
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5532
5532
  }
5533
5533
  const exception = new models_0_1.DependencyFailureException({
5534
5534
  $metadata: deserializeMetadata(parsedOutput),
5535
5535
  ...contents,
5536
5536
  });
5537
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5537
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5538
5538
  };
5539
5539
  const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
5540
5540
  const contents = {};
5541
5541
  const data = parsedOutput.body;
5542
5542
  if (data.Code !== undefined && data.Code !== null) {
5543
- contents.Code = smithy_client_1.expectString(data.Code);
5543
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5544
5544
  }
5545
5545
  if (data.Context !== undefined && data.Context !== null) {
5546
- contents.Context = smithy_client_1.expectString(data.Context);
5546
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5547
5547
  }
5548
5548
  if (data.Message !== undefined && data.Message !== null) {
5549
- contents.Message = smithy_client_1.expectString(data.Message);
5549
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5550
5550
  }
5551
5551
  if (data.Type !== undefined && data.Type !== null) {
5552
- contents.Type = smithy_client_1.expectString(data.Type);
5552
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5553
5553
  }
5554
5554
  const exception = new models_0_1.InvalidParameterValueException({
5555
5555
  $metadata: deserializeMetadata(parsedOutput),
5556
5556
  ...contents,
5557
5557
  });
5558
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5558
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5559
5559
  };
5560
5560
  const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
5561
5561
  const contents = {};
5562
5562
  const data = parsedOutput.body;
5563
5563
  if (data.Code !== undefined && data.Code !== null) {
5564
- contents.Code = smithy_client_1.expectString(data.Code);
5564
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5565
5565
  }
5566
5566
  if (data.Context !== undefined && data.Context !== null) {
5567
- contents.Context = smithy_client_1.expectString(data.Context);
5567
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5568
5568
  }
5569
5569
  if (data.Message !== undefined && data.Message !== null) {
5570
- contents.Message = smithy_client_1.expectString(data.Message);
5570
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5571
5571
  }
5572
5572
  if (data.Type !== undefined && data.Type !== null) {
5573
- contents.Type = smithy_client_1.expectString(data.Type);
5573
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5574
5574
  }
5575
5575
  const exception = new models_0_1.InvalidRequestException({
5576
5576
  $metadata: deserializeMetadata(parsedOutput),
5577
5577
  ...contents,
5578
5578
  });
5579
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5579
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5580
5580
  };
5581
5581
  const deserializeAws_restJson1InvalidResourceStateExceptionResponse = async (parsedOutput, context) => {
5582
5582
  const contents = {};
5583
5583
  const data = parsedOutput.body;
5584
5584
  if (data.Code !== undefined && data.Code !== null) {
5585
- contents.Code = smithy_client_1.expectString(data.Code);
5585
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5586
5586
  }
5587
5587
  if (data.Context !== undefined && data.Context !== null) {
5588
- contents.Context = smithy_client_1.expectString(data.Context);
5588
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5589
5589
  }
5590
5590
  if (data.Message !== undefined && data.Message !== null) {
5591
- contents.Message = smithy_client_1.expectString(data.Message);
5591
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5592
5592
  }
5593
5593
  if (data.Type !== undefined && data.Type !== null) {
5594
- contents.Type = smithy_client_1.expectString(data.Type);
5594
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5595
5595
  }
5596
5596
  const exception = new models_0_1.InvalidResourceStateException({
5597
5597
  $metadata: deserializeMetadata(parsedOutput),
5598
5598
  ...contents,
5599
5599
  });
5600
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5600
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5601
5601
  };
5602
5602
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
5603
5603
  const contents = {};
5604
5604
  const data = parsedOutput.body;
5605
5605
  if (data.Code !== undefined && data.Code !== null) {
5606
- contents.Code = smithy_client_1.expectString(data.Code);
5606
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5607
5607
  }
5608
5608
  if (data.Context !== undefined && data.Context !== null) {
5609
- contents.Context = smithy_client_1.expectString(data.Context);
5609
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5610
5610
  }
5611
5611
  if (data.Message !== undefined && data.Message !== null) {
5612
- contents.Message = smithy_client_1.expectString(data.Message);
5612
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5613
5613
  }
5614
5614
  if (data.Type !== undefined && data.Type !== null) {
5615
- contents.Type = smithy_client_1.expectString(data.Type);
5615
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5616
5616
  }
5617
5617
  const exception = new models_0_1.LimitExceededException({
5618
5618
  $metadata: deserializeMetadata(parsedOutput),
5619
5619
  ...contents,
5620
5620
  });
5621
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5621
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5622
5622
  };
5623
5623
  const deserializeAws_restJson1MissingParameterValueExceptionResponse = async (parsedOutput, context) => {
5624
5624
  const contents = {};
5625
5625
  const data = parsedOutput.body;
5626
5626
  if (data.Code !== undefined && data.Code !== null) {
5627
- contents.Code = smithy_client_1.expectString(data.Code);
5627
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5628
5628
  }
5629
5629
  if (data.Context !== undefined && data.Context !== null) {
5630
- contents.Context = smithy_client_1.expectString(data.Context);
5630
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5631
5631
  }
5632
5632
  if (data.Message !== undefined && data.Message !== null) {
5633
- contents.Message = smithy_client_1.expectString(data.Message);
5633
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5634
5634
  }
5635
5635
  if (data.Type !== undefined && data.Type !== null) {
5636
- contents.Type = smithy_client_1.expectString(data.Type);
5636
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5637
5637
  }
5638
5638
  const exception = new models_0_1.MissingParameterValueException({
5639
5639
  $metadata: deserializeMetadata(parsedOutput),
5640
5640
  ...contents,
5641
5641
  });
5642
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5642
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5643
5643
  };
5644
5644
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
5645
5645
  const contents = {};
5646
5646
  const data = parsedOutput.body;
5647
5647
  if (data.Code !== undefined && data.Code !== null) {
5648
- contents.Code = smithy_client_1.expectString(data.Code);
5648
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5649
5649
  }
5650
5650
  if (data.Context !== undefined && data.Context !== null) {
5651
- contents.Context = smithy_client_1.expectString(data.Context);
5651
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5652
5652
  }
5653
5653
  if (data.Message !== undefined && data.Message !== null) {
5654
- contents.Message = smithy_client_1.expectString(data.Message);
5654
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5655
5655
  }
5656
5656
  if (data.Type !== undefined && data.Type !== null) {
5657
- contents.Type = smithy_client_1.expectString(data.Type);
5657
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5658
5658
  }
5659
5659
  const exception = new models_0_1.ResourceNotFoundException({
5660
5660
  $metadata: deserializeMetadata(parsedOutput),
5661
5661
  ...contents,
5662
5662
  });
5663
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5663
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5664
5664
  };
5665
5665
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
5666
5666
  const contents = {};
5667
5667
  const data = parsedOutput.body;
5668
5668
  if (data.Code !== undefined && data.Code !== null) {
5669
- contents.Code = smithy_client_1.expectString(data.Code);
5669
+ contents.Code = (0, smithy_client_1.expectString)(data.Code);
5670
5670
  }
5671
5671
  if (data.Context !== undefined && data.Context !== null) {
5672
- contents.Context = smithy_client_1.expectString(data.Context);
5672
+ contents.Context = (0, smithy_client_1.expectString)(data.Context);
5673
5673
  }
5674
5674
  if (data.Message !== undefined && data.Message !== null) {
5675
- contents.Message = smithy_client_1.expectString(data.Message);
5675
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
5676
5676
  }
5677
5677
  if (data.Type !== undefined && data.Type !== null) {
5678
- contents.Type = smithy_client_1.expectString(data.Type);
5678
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
5679
5679
  }
5680
5680
  const exception = new models_0_1.ServiceUnavailableException({
5681
5681
  $metadata: deserializeMetadata(parsedOutput),
5682
5682
  ...contents,
5683
5683
  });
5684
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5684
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5685
5685
  };
5686
5686
  const serializeAws_restJson1AdvancedBackupSetting = (input, context) => {
5687
5687
  return {
@@ -6066,7 +6066,7 @@ const deserializeAws_restJson1AdvancedBackupSetting = (output, context) => {
6066
6066
  BackupOptions: output.BackupOptions !== undefined && output.BackupOptions !== null
6067
6067
  ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context)
6068
6068
  : undefined,
6069
- ResourceType: smithy_client_1.expectString(output.ResourceType),
6069
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
6070
6070
  };
6071
6071
  };
6072
6072
  const deserializeAws_restJson1AdvancedBackupSettings = (output, context) => {
@@ -6082,38 +6082,38 @@ const deserializeAws_restJson1AdvancedBackupSettings = (output, context) => {
6082
6082
  };
6083
6083
  const deserializeAws_restJson1BackupJob = (output, context) => {
6084
6084
  return {
6085
- AccountId: smithy_client_1.expectString(output.AccountId),
6086
- BackupJobId: smithy_client_1.expectString(output.BackupJobId),
6085
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
6086
+ BackupJobId: (0, smithy_client_1.expectString)(output.BackupJobId),
6087
6087
  BackupOptions: output.BackupOptions !== undefined && output.BackupOptions !== null
6088
6088
  ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context)
6089
6089
  : undefined,
6090
- BackupSizeInBytes: smithy_client_1.expectLong(output.BackupSizeInBytes),
6091
- BackupType: smithy_client_1.expectString(output.BackupType),
6092
- BackupVaultArn: smithy_client_1.expectString(output.BackupVaultArn),
6093
- BackupVaultName: smithy_client_1.expectString(output.BackupVaultName),
6094
- BytesTransferred: smithy_client_1.expectLong(output.BytesTransferred),
6090
+ BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
6091
+ BackupType: (0, smithy_client_1.expectString)(output.BackupType),
6092
+ BackupVaultArn: (0, smithy_client_1.expectString)(output.BackupVaultArn),
6093
+ BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
6094
+ BytesTransferred: (0, smithy_client_1.expectLong)(output.BytesTransferred),
6095
6095
  CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
6096
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDate)))
6096
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
6097
6097
  : undefined,
6098
6098
  CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
6099
6099
  ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context)
6100
6100
  : undefined,
6101
6101
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6102
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6102
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6103
6103
  : undefined,
6104
6104
  ExpectedCompletionDate: output.ExpectedCompletionDate !== undefined && output.ExpectedCompletionDate !== null
6105
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ExpectedCompletionDate)))
6105
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpectedCompletionDate)))
6106
6106
  : undefined,
6107
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
6108
- PercentDone: smithy_client_1.expectString(output.PercentDone),
6109
- RecoveryPointArn: smithy_client_1.expectString(output.RecoveryPointArn),
6110
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
6111
- ResourceType: smithy_client_1.expectString(output.ResourceType),
6107
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
6108
+ PercentDone: (0, smithy_client_1.expectString)(output.PercentDone),
6109
+ RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
6110
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6111
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
6112
6112
  StartBy: output.StartBy !== undefined && output.StartBy !== null
6113
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartBy)))
6113
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartBy)))
6114
6114
  : undefined,
6115
- State: smithy_client_1.expectString(output.State),
6116
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
6115
+ State: (0, smithy_client_1.expectString)(output.State),
6116
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
6117
6117
  };
6118
6118
  };
6119
6119
  const deserializeAws_restJson1BackupJobsList = (output, context) => {
@@ -6134,7 +6134,7 @@ const deserializeAws_restJson1BackupOptions = (output, context) => {
6134
6134
  }
6135
6135
  return {
6136
6136
  ...acc,
6137
- [key]: smithy_client_1.expectString(value),
6137
+ [key]: (0, smithy_client_1.expectString)(value),
6138
6138
  };
6139
6139
  }, {});
6140
6140
  };
@@ -6143,7 +6143,7 @@ const deserializeAws_restJson1BackupPlan = (output, context) => {
6143
6143
  AdvancedBackupSettings: output.AdvancedBackupSettings !== undefined && output.AdvancedBackupSettings !== null
6144
6144
  ? deserializeAws_restJson1AdvancedBackupSettings(output.AdvancedBackupSettings, context)
6145
6145
  : undefined,
6146
- BackupPlanName: smithy_client_1.expectString(output.BackupPlanName),
6146
+ BackupPlanName: (0, smithy_client_1.expectString)(output.BackupPlanName),
6147
6147
  Rules: output.Rules !== undefined && output.Rules !== null
6148
6148
  ? deserializeAws_restJson1BackupRules(output.Rules, context)
6149
6149
  : undefined,
@@ -6165,20 +6165,20 @@ const deserializeAws_restJson1BackupPlansListMember = (output, context) => {
6165
6165
  AdvancedBackupSettings: output.AdvancedBackupSettings !== undefined && output.AdvancedBackupSettings !== null
6166
6166
  ? deserializeAws_restJson1AdvancedBackupSettings(output.AdvancedBackupSettings, context)
6167
6167
  : undefined,
6168
- BackupPlanArn: smithy_client_1.expectString(output.BackupPlanArn),
6169
- BackupPlanId: smithy_client_1.expectString(output.BackupPlanId),
6170
- BackupPlanName: smithy_client_1.expectString(output.BackupPlanName),
6168
+ BackupPlanArn: (0, smithy_client_1.expectString)(output.BackupPlanArn),
6169
+ BackupPlanId: (0, smithy_client_1.expectString)(output.BackupPlanId),
6170
+ BackupPlanName: (0, smithy_client_1.expectString)(output.BackupPlanName),
6171
6171
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6172
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6172
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6173
6173
  : undefined,
6174
- CreatorRequestId: smithy_client_1.expectString(output.CreatorRequestId),
6174
+ CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
6175
6175
  DeletionDate: output.DeletionDate !== undefined && output.DeletionDate !== null
6176
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeletionDate)))
6176
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionDate)))
6177
6177
  : undefined,
6178
6178
  LastExecutionDate: output.LastExecutionDate !== undefined && output.LastExecutionDate !== null
6179
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastExecutionDate)))
6179
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate)))
6180
6180
  : undefined,
6181
- VersionId: smithy_client_1.expectString(output.VersionId),
6181
+ VersionId: (0, smithy_client_1.expectString)(output.VersionId),
6182
6182
  };
6183
6183
  };
6184
6184
  const deserializeAws_restJson1BackupPlanTemplatesList = (output, context) => {
@@ -6194,8 +6194,8 @@ const deserializeAws_restJson1BackupPlanTemplatesList = (output, context) => {
6194
6194
  };
6195
6195
  const deserializeAws_restJson1BackupPlanTemplatesListMember = (output, context) => {
6196
6196
  return {
6197
- BackupPlanTemplateId: smithy_client_1.expectString(output.BackupPlanTemplateId),
6198
- BackupPlanTemplateName: smithy_client_1.expectString(output.BackupPlanTemplateName),
6197
+ BackupPlanTemplateId: (0, smithy_client_1.expectString)(output.BackupPlanTemplateId),
6198
+ BackupPlanTemplateName: (0, smithy_client_1.expectString)(output.BackupPlanTemplateName),
6199
6199
  };
6200
6200
  };
6201
6201
  const deserializeAws_restJson1BackupPlanVersionsList = (output, context) => {
@@ -6211,22 +6211,22 @@ const deserializeAws_restJson1BackupPlanVersionsList = (output, context) => {
6211
6211
  };
6212
6212
  const deserializeAws_restJson1BackupRule = (output, context) => {
6213
6213
  return {
6214
- CompletionWindowMinutes: smithy_client_1.expectLong(output.CompletionWindowMinutes),
6214
+ CompletionWindowMinutes: (0, smithy_client_1.expectLong)(output.CompletionWindowMinutes),
6215
6215
  CopyActions: output.CopyActions !== undefined && output.CopyActions !== null
6216
6216
  ? deserializeAws_restJson1CopyActions(output.CopyActions, context)
6217
6217
  : undefined,
6218
- EnableContinuousBackup: smithy_client_1.expectBoolean(output.EnableContinuousBackup),
6218
+ EnableContinuousBackup: (0, smithy_client_1.expectBoolean)(output.EnableContinuousBackup),
6219
6219
  Lifecycle: output.Lifecycle !== undefined && output.Lifecycle !== null
6220
6220
  ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
6221
6221
  : undefined,
6222
6222
  RecoveryPointTags: output.RecoveryPointTags !== undefined && output.RecoveryPointTags !== null
6223
6223
  ? deserializeAws_restJson1Tags(output.RecoveryPointTags, context)
6224
6224
  : undefined,
6225
- RuleId: smithy_client_1.expectString(output.RuleId),
6226
- RuleName: smithy_client_1.expectString(output.RuleName),
6227
- ScheduleExpression: smithy_client_1.expectString(output.ScheduleExpression),
6228
- StartWindowMinutes: smithy_client_1.expectLong(output.StartWindowMinutes),
6229
- TargetBackupVaultName: smithy_client_1.expectString(output.TargetBackupVaultName),
6225
+ RuleId: (0, smithy_client_1.expectString)(output.RuleId),
6226
+ RuleName: (0, smithy_client_1.expectString)(output.RuleName),
6227
+ ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
6228
+ StartWindowMinutes: (0, smithy_client_1.expectLong)(output.StartWindowMinutes),
6229
+ TargetBackupVaultName: (0, smithy_client_1.expectString)(output.TargetBackupVaultName),
6230
6230
  };
6231
6231
  };
6232
6232
  const deserializeAws_restJson1BackupRules = (output, context) => {
@@ -6245,7 +6245,7 @@ const deserializeAws_restJson1BackupSelection = (output, context) => {
6245
6245
  Conditions: output.Conditions !== undefined && output.Conditions !== null
6246
6246
  ? deserializeAws_restJson1Conditions(output.Conditions, context)
6247
6247
  : undefined,
6248
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
6248
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
6249
6249
  ListOfTags: output.ListOfTags !== undefined && output.ListOfTags !== null
6250
6250
  ? deserializeAws_restJson1ListOfTags(output.ListOfTags, context)
6251
6251
  : undefined,
@@ -6255,7 +6255,7 @@ const deserializeAws_restJson1BackupSelection = (output, context) => {
6255
6255
  Resources: output.Resources !== undefined && output.Resources !== null
6256
6256
  ? deserializeAws_restJson1ResourceArns(output.Resources, context)
6257
6257
  : undefined,
6258
- SelectionName: smithy_client_1.expectString(output.SelectionName),
6258
+ SelectionName: (0, smithy_client_1.expectString)(output.SelectionName),
6259
6259
  };
6260
6260
  };
6261
6261
  const deserializeAws_restJson1BackupSelectionsList = (output, context) => {
@@ -6271,14 +6271,14 @@ const deserializeAws_restJson1BackupSelectionsList = (output, context) => {
6271
6271
  };
6272
6272
  const deserializeAws_restJson1BackupSelectionsListMember = (output, context) => {
6273
6273
  return {
6274
- BackupPlanId: smithy_client_1.expectString(output.BackupPlanId),
6274
+ BackupPlanId: (0, smithy_client_1.expectString)(output.BackupPlanId),
6275
6275
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6276
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6276
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6277
6277
  : undefined,
6278
- CreatorRequestId: smithy_client_1.expectString(output.CreatorRequestId),
6279
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
6280
- SelectionId: smithy_client_1.expectString(output.SelectionId),
6281
- SelectionName: smithy_client_1.expectString(output.SelectionName),
6278
+ CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
6279
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
6280
+ SelectionId: (0, smithy_client_1.expectString)(output.SelectionId),
6281
+ SelectionName: (0, smithy_client_1.expectString)(output.SelectionName),
6282
6282
  };
6283
6283
  };
6284
6284
  const deserializeAws_restJson1BackupVaultEvents = (output, context) => {
@@ -6288,7 +6288,7 @@ const deserializeAws_restJson1BackupVaultEvents = (output, context) => {
6288
6288
  if (entry === null) {
6289
6289
  return null;
6290
6290
  }
6291
- return smithy_client_1.expectString(entry);
6291
+ return (0, smithy_client_1.expectString)(entry);
6292
6292
  });
6293
6293
  return retVal;
6294
6294
  };
@@ -6305,29 +6305,29 @@ const deserializeAws_restJson1BackupVaultList = (output, context) => {
6305
6305
  };
6306
6306
  const deserializeAws_restJson1BackupVaultListMember = (output, context) => {
6307
6307
  return {
6308
- BackupVaultArn: smithy_client_1.expectString(output.BackupVaultArn),
6309
- BackupVaultName: smithy_client_1.expectString(output.BackupVaultName),
6308
+ BackupVaultArn: (0, smithy_client_1.expectString)(output.BackupVaultArn),
6309
+ BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
6310
6310
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6311
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6311
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6312
6312
  : undefined,
6313
- CreatorRequestId: smithy_client_1.expectString(output.CreatorRequestId),
6314
- EncryptionKeyArn: smithy_client_1.expectString(output.EncryptionKeyArn),
6313
+ CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
6314
+ EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
6315
6315
  LockDate: output.LockDate !== undefined && output.LockDate !== null
6316
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LockDate)))
6316
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LockDate)))
6317
6317
  : undefined,
6318
- Locked: smithy_client_1.expectBoolean(output.Locked),
6319
- MaxRetentionDays: smithy_client_1.expectLong(output.MaxRetentionDays),
6320
- MinRetentionDays: smithy_client_1.expectLong(output.MinRetentionDays),
6321
- NumberOfRecoveryPoints: smithy_client_1.expectLong(output.NumberOfRecoveryPoints),
6318
+ Locked: (0, smithy_client_1.expectBoolean)(output.Locked),
6319
+ MaxRetentionDays: (0, smithy_client_1.expectLong)(output.MaxRetentionDays),
6320
+ MinRetentionDays: (0, smithy_client_1.expectLong)(output.MinRetentionDays),
6321
+ NumberOfRecoveryPoints: (0, smithy_client_1.expectLong)(output.NumberOfRecoveryPoints),
6322
6322
  };
6323
6323
  };
6324
6324
  const deserializeAws_restJson1CalculatedLifecycle = (output, context) => {
6325
6325
  return {
6326
6326
  DeleteAt: output.DeleteAt !== undefined && output.DeleteAt !== null
6327
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeleteAt)))
6327
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeleteAt)))
6328
6328
  : undefined,
6329
6329
  MoveToColdStorageAt: output.MoveToColdStorageAt !== undefined && output.MoveToColdStorageAt !== null
6330
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.MoveToColdStorageAt)))
6330
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MoveToColdStorageAt)))
6331
6331
  : undefined,
6332
6332
  };
6333
6333
  };
@@ -6338,21 +6338,21 @@ const deserializeAws_restJson1ComplianceResourceIdList = (output, context) => {
6338
6338
  if (entry === null) {
6339
6339
  return null;
6340
6340
  }
6341
- return smithy_client_1.expectString(entry);
6341
+ return (0, smithy_client_1.expectString)(entry);
6342
6342
  });
6343
6343
  return retVal;
6344
6344
  };
6345
6345
  const deserializeAws_restJson1Condition = (output, context) => {
6346
6346
  return {
6347
- ConditionKey: smithy_client_1.expectString(output.ConditionKey),
6348
- ConditionType: smithy_client_1.expectString(output.ConditionType),
6349
- ConditionValue: smithy_client_1.expectString(output.ConditionValue),
6347
+ ConditionKey: (0, smithy_client_1.expectString)(output.ConditionKey),
6348
+ ConditionType: (0, smithy_client_1.expectString)(output.ConditionType),
6349
+ ConditionValue: (0, smithy_client_1.expectString)(output.ConditionValue),
6350
6350
  };
6351
6351
  };
6352
6352
  const deserializeAws_restJson1ConditionParameter = (output, context) => {
6353
6353
  return {
6354
- ConditionKey: smithy_client_1.expectString(output.ConditionKey),
6355
- ConditionValue: smithy_client_1.expectString(output.ConditionValue),
6354
+ ConditionKey: (0, smithy_client_1.expectString)(output.ConditionKey),
6355
+ ConditionValue: (0, smithy_client_1.expectString)(output.ConditionValue),
6356
6356
  };
6357
6357
  };
6358
6358
  const deserializeAws_restJson1ConditionParameters = (output, context) => {
@@ -6384,8 +6384,8 @@ const deserializeAws_restJson1Conditions = (output, context) => {
6384
6384
  };
6385
6385
  const deserializeAws_restJson1ControlInputParameter = (output, context) => {
6386
6386
  return {
6387
- ParameterName: smithy_client_1.expectString(output.ParameterName),
6388
- ParameterValue: smithy_client_1.expectString(output.ParameterValue),
6387
+ ParameterName: (0, smithy_client_1.expectString)(output.ParameterName),
6388
+ ParameterValue: (0, smithy_client_1.expectString)(output.ParameterValue),
6389
6389
  };
6390
6390
  };
6391
6391
  const deserializeAws_restJson1ControlInputParameters = (output, context) => {
@@ -6414,7 +6414,7 @@ const deserializeAws_restJson1ControlScope = (output, context) => {
6414
6414
  };
6415
6415
  const deserializeAws_restJson1CopyAction = (output, context) => {
6416
6416
  return {
6417
- DestinationBackupVaultArn: smithy_client_1.expectString(output.DestinationBackupVaultArn),
6417
+ DestinationBackupVaultArn: (0, smithy_client_1.expectString)(output.DestinationBackupVaultArn),
6418
6418
  Lifecycle: output.Lifecycle !== undefined && output.Lifecycle !== null
6419
6419
  ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
6420
6420
  : undefined,
@@ -6433,27 +6433,27 @@ const deserializeAws_restJson1CopyActions = (output, context) => {
6433
6433
  };
6434
6434
  const deserializeAws_restJson1CopyJob = (output, context) => {
6435
6435
  return {
6436
- AccountId: smithy_client_1.expectString(output.AccountId),
6437
- BackupSizeInBytes: smithy_client_1.expectLong(output.BackupSizeInBytes),
6436
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
6437
+ BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
6438
6438
  CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
6439
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDate)))
6439
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
6440
6440
  : undefined,
6441
- CopyJobId: smithy_client_1.expectString(output.CopyJobId),
6441
+ CopyJobId: (0, smithy_client_1.expectString)(output.CopyJobId),
6442
6442
  CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
6443
6443
  ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context)
6444
6444
  : undefined,
6445
6445
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6446
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6446
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6447
6447
  : undefined,
6448
- DestinationBackupVaultArn: smithy_client_1.expectString(output.DestinationBackupVaultArn),
6449
- DestinationRecoveryPointArn: smithy_client_1.expectString(output.DestinationRecoveryPointArn),
6450
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
6451
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
6452
- ResourceType: smithy_client_1.expectString(output.ResourceType),
6453
- SourceBackupVaultArn: smithy_client_1.expectString(output.SourceBackupVaultArn),
6454
- SourceRecoveryPointArn: smithy_client_1.expectString(output.SourceRecoveryPointArn),
6455
- State: smithy_client_1.expectString(output.State),
6456
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
6448
+ DestinationBackupVaultArn: (0, smithy_client_1.expectString)(output.DestinationBackupVaultArn),
6449
+ DestinationRecoveryPointArn: (0, smithy_client_1.expectString)(output.DestinationRecoveryPointArn),
6450
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
6451
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6452
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
6453
+ SourceBackupVaultArn: (0, smithy_client_1.expectString)(output.SourceBackupVaultArn),
6454
+ SourceRecoveryPointArn: (0, smithy_client_1.expectString)(output.SourceRecoveryPointArn),
6455
+ State: (0, smithy_client_1.expectString)(output.State),
6456
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
6457
6457
  };
6458
6458
  };
6459
6459
  const deserializeAws_restJson1CopyJobsList = (output, context) => {
@@ -6474,20 +6474,20 @@ const deserializeAws_restJson1FormatList = (output, context) => {
6474
6474
  if (entry === null) {
6475
6475
  return null;
6476
6476
  }
6477
- return smithy_client_1.expectString(entry);
6477
+ return (0, smithy_client_1.expectString)(entry);
6478
6478
  });
6479
6479
  return retVal;
6480
6480
  };
6481
6481
  const deserializeAws_restJson1Framework = (output, context) => {
6482
6482
  return {
6483
6483
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
6484
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
6484
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
6485
6485
  : undefined,
6486
- DeploymentStatus: smithy_client_1.expectString(output.DeploymentStatus),
6487
- FrameworkArn: smithy_client_1.expectString(output.FrameworkArn),
6488
- FrameworkDescription: smithy_client_1.expectString(output.FrameworkDescription),
6489
- FrameworkName: smithy_client_1.expectString(output.FrameworkName),
6490
- NumberOfControls: smithy_client_1.expectInt32(output.NumberOfControls),
6486
+ DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus),
6487
+ FrameworkArn: (0, smithy_client_1.expectString)(output.FrameworkArn),
6488
+ FrameworkDescription: (0, smithy_client_1.expectString)(output.FrameworkDescription),
6489
+ FrameworkName: (0, smithy_client_1.expectString)(output.FrameworkName),
6490
+ NumberOfControls: (0, smithy_client_1.expectInt32)(output.NumberOfControls),
6491
6491
  };
6492
6492
  };
6493
6493
  const deserializeAws_restJson1FrameworkControl = (output, context) => {
@@ -6495,7 +6495,7 @@ const deserializeAws_restJson1FrameworkControl = (output, context) => {
6495
6495
  ControlInputParameters: output.ControlInputParameters !== undefined && output.ControlInputParameters !== null
6496
6496
  ? deserializeAws_restJson1ControlInputParameters(output.ControlInputParameters, context)
6497
6497
  : undefined,
6498
- ControlName: smithy_client_1.expectString(output.ControlName),
6498
+ ControlName: (0, smithy_client_1.expectString)(output.ControlName),
6499
6499
  ControlScope: output.ControlScope !== undefined && output.ControlScope !== null
6500
6500
  ? deserializeAws_restJson1ControlScope(output.ControlScope, context)
6501
6501
  : undefined,
@@ -6530,14 +6530,14 @@ const deserializeAws_restJson1GlobalSettings = (output, context) => {
6530
6530
  }
6531
6531
  return {
6532
6532
  ...acc,
6533
- [key]: smithy_client_1.expectString(value),
6533
+ [key]: (0, smithy_client_1.expectString)(value),
6534
6534
  };
6535
6535
  }, {});
6536
6536
  };
6537
6537
  const deserializeAws_restJson1Lifecycle = (output, context) => {
6538
6538
  return {
6539
- DeleteAfterDays: smithy_client_1.expectLong(output.DeleteAfterDays),
6540
- MoveToColdStorageAfterDays: smithy_client_1.expectLong(output.MoveToColdStorageAfterDays),
6539
+ DeleteAfterDays: (0, smithy_client_1.expectLong)(output.DeleteAfterDays),
6540
+ MoveToColdStorageAfterDays: (0, smithy_client_1.expectLong)(output.MoveToColdStorageAfterDays),
6541
6541
  };
6542
6542
  };
6543
6543
  const deserializeAws_restJson1ListOfTags = (output, context) => {
@@ -6558,17 +6558,17 @@ const deserializeAws_restJson1Metadata = (output, context) => {
6558
6558
  }
6559
6559
  return {
6560
6560
  ...acc,
6561
- [key]: smithy_client_1.expectString(value),
6561
+ [key]: (0, smithy_client_1.expectString)(value),
6562
6562
  };
6563
6563
  }, {});
6564
6564
  };
6565
6565
  const deserializeAws_restJson1ProtectedResource = (output, context) => {
6566
6566
  return {
6567
6567
  LastBackupTime: output.LastBackupTime !== undefined && output.LastBackupTime !== null
6568
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastBackupTime)))
6568
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastBackupTime)))
6569
6569
  : undefined,
6570
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
6571
- ResourceType: smithy_client_1.expectString(output.ResourceType),
6570
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6571
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
6572
6572
  };
6573
6573
  };
6574
6574
  const deserializeAws_restJson1ProtectedResourcesList = (output, context) => {
@@ -6584,36 +6584,36 @@ const deserializeAws_restJson1ProtectedResourcesList = (output, context) => {
6584
6584
  };
6585
6585
  const deserializeAws_restJson1RecoveryPointByBackupVault = (output, context) => {
6586
6586
  return {
6587
- BackupSizeInBytes: smithy_client_1.expectLong(output.BackupSizeInBytes),
6588
- BackupVaultArn: smithy_client_1.expectString(output.BackupVaultArn),
6589
- BackupVaultName: smithy_client_1.expectString(output.BackupVaultName),
6587
+ BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
6588
+ BackupVaultArn: (0, smithy_client_1.expectString)(output.BackupVaultArn),
6589
+ BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
6590
6590
  CalculatedLifecycle: output.CalculatedLifecycle !== undefined && output.CalculatedLifecycle !== null
6591
6591
  ? deserializeAws_restJson1CalculatedLifecycle(output.CalculatedLifecycle, context)
6592
6592
  : undefined,
6593
6593
  CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
6594
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDate)))
6594
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
6595
6595
  : undefined,
6596
6596
  CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
6597
6597
  ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context)
6598
6598
  : undefined,
6599
6599
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6600
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6600
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6601
6601
  : undefined,
6602
- EncryptionKeyArn: smithy_client_1.expectString(output.EncryptionKeyArn),
6603
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
6604
- IsEncrypted: smithy_client_1.expectBoolean(output.IsEncrypted),
6602
+ EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
6603
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
6604
+ IsEncrypted: (0, smithy_client_1.expectBoolean)(output.IsEncrypted),
6605
6605
  LastRestoreTime: output.LastRestoreTime !== undefined && output.LastRestoreTime !== null
6606
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastRestoreTime)))
6606
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRestoreTime)))
6607
6607
  : undefined,
6608
6608
  Lifecycle: output.Lifecycle !== undefined && output.Lifecycle !== null
6609
6609
  ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
6610
6610
  : undefined,
6611
- RecoveryPointArn: smithy_client_1.expectString(output.RecoveryPointArn),
6612
- ResourceArn: smithy_client_1.expectString(output.ResourceArn),
6613
- ResourceType: smithy_client_1.expectString(output.ResourceType),
6614
- SourceBackupVaultArn: smithy_client_1.expectString(output.SourceBackupVaultArn),
6615
- Status: smithy_client_1.expectString(output.Status),
6616
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
6611
+ RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
6612
+ ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
6613
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
6614
+ SourceBackupVaultArn: (0, smithy_client_1.expectString)(output.SourceBackupVaultArn),
6615
+ Status: (0, smithy_client_1.expectString)(output.Status),
6616
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
6617
6617
  };
6618
6618
  };
6619
6619
  const deserializeAws_restJson1RecoveryPointByBackupVaultList = (output, context) => {
@@ -6629,15 +6629,15 @@ const deserializeAws_restJson1RecoveryPointByBackupVaultList = (output, context)
6629
6629
  };
6630
6630
  const deserializeAws_restJson1RecoveryPointByResource = (output, context) => {
6631
6631
  return {
6632
- BackupSizeBytes: smithy_client_1.expectLong(output.BackupSizeBytes),
6633
- BackupVaultName: smithy_client_1.expectString(output.BackupVaultName),
6632
+ BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes),
6633
+ BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
6634
6634
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6635
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6635
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6636
6636
  : undefined,
6637
- EncryptionKeyArn: smithy_client_1.expectString(output.EncryptionKeyArn),
6638
- RecoveryPointArn: smithy_client_1.expectString(output.RecoveryPointArn),
6639
- Status: smithy_client_1.expectString(output.Status),
6640
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
6637
+ EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
6638
+ RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
6639
+ Status: (0, smithy_client_1.expectString)(output.Status),
6640
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
6641
6641
  };
6642
6642
  };
6643
6643
  const deserializeAws_restJson1RecoveryPointByResourceList = (output, context) => {
@@ -6653,10 +6653,10 @@ const deserializeAws_restJson1RecoveryPointByResourceList = (output, context) =>
6653
6653
  };
6654
6654
  const deserializeAws_restJson1RecoveryPointCreator = (output, context) => {
6655
6655
  return {
6656
- BackupPlanArn: smithy_client_1.expectString(output.BackupPlanArn),
6657
- BackupPlanId: smithy_client_1.expectString(output.BackupPlanId),
6658
- BackupPlanVersion: smithy_client_1.expectString(output.BackupPlanVersion),
6659
- BackupRuleId: smithy_client_1.expectString(output.BackupRuleId),
6656
+ BackupPlanArn: (0, smithy_client_1.expectString)(output.BackupPlanArn),
6657
+ BackupPlanId: (0, smithy_client_1.expectString)(output.BackupPlanId),
6658
+ BackupPlanVersion: (0, smithy_client_1.expectString)(output.BackupPlanVersion),
6659
+ BackupRuleId: (0, smithy_client_1.expectString)(output.BackupRuleId),
6660
6660
  };
6661
6661
  };
6662
6662
  const deserializeAws_restJson1ReportDeliveryChannel = (output, context) => {
@@ -6664,13 +6664,13 @@ const deserializeAws_restJson1ReportDeliveryChannel = (output, context) => {
6664
6664
  Formats: output.Formats !== undefined && output.Formats !== null
6665
6665
  ? deserializeAws_restJson1FormatList(output.Formats, context)
6666
6666
  : undefined,
6667
- S3BucketName: smithy_client_1.expectString(output.S3BucketName),
6668
- S3KeyPrefix: smithy_client_1.expectString(output.S3KeyPrefix),
6667
+ S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
6668
+ S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
6669
6669
  };
6670
6670
  };
6671
6671
  const deserializeAws_restJson1ReportDestination = (output, context) => {
6672
6672
  return {
6673
- S3BucketName: smithy_client_1.expectString(output.S3BucketName),
6673
+ S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
6674
6674
  S3Keys: output.S3Keys !== undefined && output.S3Keys !== null
6675
6675
  ? deserializeAws_restJson1stringList(output.S3Keys, context)
6676
6676
  : undefined,
@@ -6679,19 +6679,19 @@ const deserializeAws_restJson1ReportDestination = (output, context) => {
6679
6679
  const deserializeAws_restJson1ReportJob = (output, context) => {
6680
6680
  return {
6681
6681
  CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
6682
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionTime)))
6682
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
6683
6683
  : undefined,
6684
6684
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
6685
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
6685
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
6686
6686
  : undefined,
6687
6687
  ReportDestination: output.ReportDestination !== undefined && output.ReportDestination !== null
6688
6688
  ? deserializeAws_restJson1ReportDestination(output.ReportDestination, context)
6689
6689
  : undefined,
6690
- ReportJobId: smithy_client_1.expectString(output.ReportJobId),
6691
- ReportPlanArn: smithy_client_1.expectString(output.ReportPlanArn),
6692
- ReportTemplate: smithy_client_1.expectString(output.ReportTemplate),
6693
- Status: smithy_client_1.expectString(output.Status),
6694
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
6690
+ ReportJobId: (0, smithy_client_1.expectString)(output.ReportJobId),
6691
+ ReportPlanArn: (0, smithy_client_1.expectString)(output.ReportPlanArn),
6692
+ ReportTemplate: (0, smithy_client_1.expectString)(output.ReportTemplate),
6693
+ Status: (0, smithy_client_1.expectString)(output.Status),
6694
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
6695
6695
  };
6696
6696
  };
6697
6697
  const deserializeAws_restJson1ReportJobList = (output, context) => {
@@ -6708,21 +6708,21 @@ const deserializeAws_restJson1ReportJobList = (output, context) => {
6708
6708
  const deserializeAws_restJson1ReportPlan = (output, context) => {
6709
6709
  return {
6710
6710
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
6711
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
6711
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
6712
6712
  : undefined,
6713
- DeploymentStatus: smithy_client_1.expectString(output.DeploymentStatus),
6713
+ DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus),
6714
6714
  LastAttemptedExecutionTime: output.LastAttemptedExecutionTime !== undefined && output.LastAttemptedExecutionTime !== null
6715
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastAttemptedExecutionTime)))
6715
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAttemptedExecutionTime)))
6716
6716
  : undefined,
6717
6717
  LastSuccessfulExecutionTime: output.LastSuccessfulExecutionTime !== undefined && output.LastSuccessfulExecutionTime !== null
6718
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastSuccessfulExecutionTime)))
6718
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulExecutionTime)))
6719
6719
  : undefined,
6720
6720
  ReportDeliveryChannel: output.ReportDeliveryChannel !== undefined && output.ReportDeliveryChannel !== null
6721
6721
  ? deserializeAws_restJson1ReportDeliveryChannel(output.ReportDeliveryChannel, context)
6722
6722
  : undefined,
6723
- ReportPlanArn: smithy_client_1.expectString(output.ReportPlanArn),
6724
- ReportPlanDescription: smithy_client_1.expectString(output.ReportPlanDescription),
6725
- ReportPlanName: smithy_client_1.expectString(output.ReportPlanName),
6723
+ ReportPlanArn: (0, smithy_client_1.expectString)(output.ReportPlanArn),
6724
+ ReportPlanDescription: (0, smithy_client_1.expectString)(output.ReportPlanDescription),
6725
+ ReportPlanName: (0, smithy_client_1.expectString)(output.ReportPlanName),
6726
6726
  ReportSetting: output.ReportSetting !== undefined && output.ReportSetting !== null
6727
6727
  ? deserializeAws_restJson1ReportSetting(output.ReportSetting, context)
6728
6728
  : undefined,
@@ -6744,8 +6744,8 @@ const deserializeAws_restJson1ReportSetting = (output, context) => {
6744
6744
  FrameworkArns: output.FrameworkArns !== undefined && output.FrameworkArns !== null
6745
6745
  ? deserializeAws_restJson1stringList(output.FrameworkArns, context)
6746
6746
  : undefined,
6747
- NumberOfFrameworks: smithy_client_1.expectInt32(output.NumberOfFrameworks),
6748
- ReportTemplate: smithy_client_1.expectString(output.ReportTemplate),
6747
+ NumberOfFrameworks: (0, smithy_client_1.expectInt32)(output.NumberOfFrameworks),
6748
+ ReportTemplate: (0, smithy_client_1.expectString)(output.ReportTemplate),
6749
6749
  };
6750
6750
  };
6751
6751
  const deserializeAws_restJson1ResourceArns = (output, context) => {
@@ -6755,7 +6755,7 @@ const deserializeAws_restJson1ResourceArns = (output, context) => {
6755
6755
  if (entry === null) {
6756
6756
  return null;
6757
6757
  }
6758
- return smithy_client_1.expectString(entry);
6758
+ return (0, smithy_client_1.expectString)(entry);
6759
6759
  });
6760
6760
  return retVal;
6761
6761
  };
@@ -6766,7 +6766,7 @@ const deserializeAws_restJson1ResourceTypeList = (output, context) => {
6766
6766
  if (entry === null) {
6767
6767
  return null;
6768
6768
  }
6769
- return smithy_client_1.expectString(entry);
6769
+ return (0, smithy_client_1.expectString)(entry);
6770
6770
  });
6771
6771
  return retVal;
6772
6772
  };
@@ -6777,7 +6777,7 @@ const deserializeAws_restJson1ResourceTypeManagementPreference = (output, contex
6777
6777
  }
6778
6778
  return {
6779
6779
  ...acc,
6780
- [key]: smithy_client_1.expectBoolean(value),
6780
+ [key]: (0, smithy_client_1.expectBoolean)(value),
6781
6781
  };
6782
6782
  }, {});
6783
6783
  };
@@ -6788,7 +6788,7 @@ const deserializeAws_restJson1ResourceTypeOptInPreference = (output, context) =>
6788
6788
  }
6789
6789
  return {
6790
6790
  ...acc,
6791
- [key]: smithy_client_1.expectBoolean(value),
6791
+ [key]: (0, smithy_client_1.expectBoolean)(value),
6792
6792
  };
6793
6793
  }, {});
6794
6794
  };
@@ -6799,7 +6799,7 @@ const deserializeAws_restJson1ResourceTypes = (output, context) => {
6799
6799
  if (entry === null) {
6800
6800
  return null;
6801
6801
  }
6802
- return smithy_client_1.expectString(entry);
6802
+ return (0, smithy_client_1.expectString)(entry);
6803
6803
  });
6804
6804
  return retVal;
6805
6805
  };
@@ -6816,23 +6816,23 @@ const deserializeAws_restJson1RestoreJobsList = (output, context) => {
6816
6816
  };
6817
6817
  const deserializeAws_restJson1RestoreJobsListMember = (output, context) => {
6818
6818
  return {
6819
- AccountId: smithy_client_1.expectString(output.AccountId),
6820
- BackupSizeInBytes: smithy_client_1.expectLong(output.BackupSizeInBytes),
6819
+ AccountId: (0, smithy_client_1.expectString)(output.AccountId),
6820
+ BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
6821
6821
  CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
6822
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDate)))
6822
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
6823
6823
  : undefined,
6824
- CreatedResourceArn: smithy_client_1.expectString(output.CreatedResourceArn),
6824
+ CreatedResourceArn: (0, smithy_client_1.expectString)(output.CreatedResourceArn),
6825
6825
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
6826
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
6826
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
6827
6827
  : undefined,
6828
- ExpectedCompletionTimeMinutes: smithy_client_1.expectLong(output.ExpectedCompletionTimeMinutes),
6829
- IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
6830
- PercentDone: smithy_client_1.expectString(output.PercentDone),
6831
- RecoveryPointArn: smithy_client_1.expectString(output.RecoveryPointArn),
6832
- ResourceType: smithy_client_1.expectString(output.ResourceType),
6833
- RestoreJobId: smithy_client_1.expectString(output.RestoreJobId),
6834
- Status: smithy_client_1.expectString(output.Status),
6835
- StatusMessage: smithy_client_1.expectString(output.StatusMessage),
6828
+ ExpectedCompletionTimeMinutes: (0, smithy_client_1.expectLong)(output.ExpectedCompletionTimeMinutes),
6829
+ IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
6830
+ PercentDone: (0, smithy_client_1.expectString)(output.PercentDone),
6831
+ RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
6832
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
6833
+ RestoreJobId: (0, smithy_client_1.expectString)(output.RestoreJobId),
6834
+ Status: (0, smithy_client_1.expectString)(output.Status),
6835
+ StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
6836
6836
  };
6837
6837
  };
6838
6838
  const deserializeAws_restJson1stringList = (output, context) => {
@@ -6842,7 +6842,7 @@ const deserializeAws_restJson1stringList = (output, context) => {
6842
6842
  if (entry === null) {
6843
6843
  return null;
6844
6844
  }
6845
- return smithy_client_1.expectString(entry);
6845
+ return (0, smithy_client_1.expectString)(entry);
6846
6846
  });
6847
6847
  return retVal;
6848
6848
  };
@@ -6853,7 +6853,7 @@ const deserializeAws_restJson1stringMap = (output, context) => {
6853
6853
  }
6854
6854
  return {
6855
6855
  ...acc,
6856
- [key]: smithy_client_1.expectString(value),
6856
+ [key]: (0, smithy_client_1.expectString)(value),
6857
6857
  };
6858
6858
  }, {});
6859
6859
  };
@@ -6864,7 +6864,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
6864
6864
  }
6865
6865
  return {
6866
6866
  ...acc,
6867
- [key]: smithy_client_1.expectString(value),
6867
+ [key]: (0, smithy_client_1.expectString)(value),
6868
6868
  };
6869
6869
  }, {});
6870
6870
  };