@aws-sdk/client-amplifybackend 3.53.0 → 3.55.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 (53) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/AmplifyBackendClient.js +13 -13
  3. package/dist-cjs/commands/CloneBackendCommand.js +3 -3
  4. package/dist-cjs/commands/CreateBackendAPICommand.js +3 -3
  5. package/dist-cjs/commands/CreateBackendAuthCommand.js +3 -3
  6. package/dist-cjs/commands/CreateBackendCommand.js +3 -3
  7. package/dist-cjs/commands/CreateBackendConfigCommand.js +3 -3
  8. package/dist-cjs/commands/CreateBackendStorageCommand.js +3 -3
  9. package/dist-cjs/commands/CreateTokenCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteBackendAPICommand.js +3 -3
  11. package/dist-cjs/commands/DeleteBackendAuthCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteBackendCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteBackendStorageCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteTokenCommand.js +3 -3
  15. package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js +3 -3
  16. package/dist-cjs/commands/GetBackendAPICommand.js +3 -3
  17. package/dist-cjs/commands/GetBackendAPIModelsCommand.js +3 -3
  18. package/dist-cjs/commands/GetBackendAuthCommand.js +3 -3
  19. package/dist-cjs/commands/GetBackendCommand.js +3 -3
  20. package/dist-cjs/commands/GetBackendJobCommand.js +3 -3
  21. package/dist-cjs/commands/GetBackendStorageCommand.js +3 -3
  22. package/dist-cjs/commands/GetTokenCommand.js +3 -3
  23. package/dist-cjs/commands/ImportBackendAuthCommand.js +3 -3
  24. package/dist-cjs/commands/ImportBackendStorageCommand.js +3 -3
  25. package/dist-cjs/commands/ListBackendJobsCommand.js +3 -3
  26. package/dist-cjs/commands/ListS3BucketsCommand.js +3 -3
  27. package/dist-cjs/commands/RemoveAllBackendsCommand.js +3 -3
  28. package/dist-cjs/commands/RemoveBackendConfigCommand.js +3 -3
  29. package/dist-cjs/commands/UpdateBackendAPICommand.js +3 -3
  30. package/dist-cjs/commands/UpdateBackendAuthCommand.js +3 -3
  31. package/dist-cjs/commands/UpdateBackendConfigCommand.js +3 -3
  32. package/dist-cjs/commands/UpdateBackendJobCommand.js +3 -3
  33. package/dist-cjs/commands/UpdateBackendStorageCommand.js +3 -3
  34. package/dist-cjs/endpoints.js +1 -1
  35. package/dist-cjs/models/models_0.js +15 -3
  36. package/dist-cjs/protocols/Aws_restJson1.js +371 -325
  37. package/dist-cjs/runtimeConfig.browser.js +4 -4
  38. package/dist-cjs/runtimeConfig.js +9 -9
  39. package/dist-cjs/runtimeConfig.native.js +1 -1
  40. package/dist-es/AmplifyBackend.js +31 -31
  41. package/dist-es/models/models_0.js +8 -0
  42. package/dist-es/protocols/Aws_restJson1.js +70 -34
  43. package/dist-types/AmplifyBackendClient.d.ts +2 -2
  44. package/dist-types/models/models_0.d.ts +68 -14
  45. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  46. package/dist-types/runtimeConfig.d.ts +1 -1
  47. package/dist-types/runtimeConfig.native.d.ts +3 -3
  48. package/dist-types/ts3.4/AmplifyBackendClient.d.ts +2 -2
  49. package/dist-types/ts3.4/models/models_0.d.ts +30 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  53. package/package.json +34 -34
@@ -18,7 +18,7 @@ const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
18
18
  if (labelValue.length <= 0) {
19
19
  throw new Error("Empty value provided for input HTTP label: AppId.");
20
20
  }
21
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
21
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
22
22
  }
23
23
  else {
24
24
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -28,7 +28,7 @@ const serializeAws_restJson1CloneBackendCommand = async (input, context) => {
28
28
  if (labelValue.length <= 0) {
29
29
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
30
30
  }
31
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
31
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
32
32
  }
33
33
  else {
34
34
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -89,7 +89,7 @@ const serializeAws_restJson1CreateBackendAPICommand = async (input, context) =>
89
89
  if (labelValue.length <= 0) {
90
90
  throw new Error("Empty value provided for input HTTP label: AppId.");
91
91
  }
92
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
92
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
93
93
  }
94
94
  else {
95
95
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateBackendAuthCommand = async (input, context) =>
126
126
  if (labelValue.length <= 0) {
127
127
  throw new Error("Empty value provided for input HTTP label: AppId.");
128
128
  }
129
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
129
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
130
130
  }
131
131
  else {
132
132
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -163,7 +163,7 @@ const serializeAws_restJson1CreateBackendConfigCommand = async (input, context)
163
163
  if (labelValue.length <= 0) {
164
164
  throw new Error("Empty value provided for input HTTP label: AppId.");
165
165
  }
166
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
166
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
167
167
  }
168
168
  else {
169
169
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -195,7 +195,7 @@ const serializeAws_restJson1CreateBackendStorageCommand = async (input, context)
195
195
  if (labelValue.length <= 0) {
196
196
  throw new Error("Empty value provided for input HTTP label: AppId.");
197
197
  }
198
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
198
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
199
199
  }
200
200
  else {
201
201
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -230,7 +230,7 @@ const serializeAws_restJson1CreateTokenCommand = async (input, context) => {
230
230
  if (labelValue.length <= 0) {
231
231
  throw new Error("Empty value provided for input HTTP label: AppId.");
232
232
  }
233
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
233
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
234
234
  }
235
235
  else {
236
236
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -257,7 +257,7 @@ const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
257
257
  if (labelValue.length <= 0) {
258
258
  throw new Error("Empty value provided for input HTTP label: AppId.");
259
259
  }
260
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
260
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
261
261
  }
262
262
  else {
263
263
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -267,7 +267,7 @@ const serializeAws_restJson1DeleteBackendCommand = async (input, context) => {
267
267
  if (labelValue.length <= 0) {
268
268
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
269
269
  }
270
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
270
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
271
271
  }
272
272
  else {
273
273
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -296,7 +296,7 @@ const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) =>
296
296
  if (labelValue.length <= 0) {
297
297
  throw new Error("Empty value provided for input HTTP label: AppId.");
298
298
  }
299
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
299
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
300
300
  }
301
301
  else {
302
302
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -306,7 +306,7 @@ const serializeAws_restJson1DeleteBackendAPICommand = async (input, context) =>
306
306
  if (labelValue.length <= 0) {
307
307
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
308
308
  }
309
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
309
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
310
310
  }
311
311
  else {
312
312
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -342,7 +342,7 @@ const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) =>
342
342
  if (labelValue.length <= 0) {
343
343
  throw new Error("Empty value provided for input HTTP label: AppId.");
344
344
  }
345
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
345
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
346
346
  }
347
347
  else {
348
348
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -352,7 +352,7 @@ const serializeAws_restJson1DeleteBackendAuthCommand = async (input, context) =>
352
352
  if (labelValue.length <= 0) {
353
353
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
354
354
  }
355
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
355
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
356
356
  }
357
357
  else {
358
358
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -384,7 +384,7 @@ const serializeAws_restJson1DeleteBackendStorageCommand = async (input, context)
384
384
  if (labelValue.length <= 0) {
385
385
  throw new Error("Empty value provided for input HTTP label: AppId.");
386
386
  }
387
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
387
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
388
388
  }
389
389
  else {
390
390
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -394,7 +394,7 @@ const serializeAws_restJson1DeleteBackendStorageCommand = async (input, context)
394
394
  if (labelValue.length <= 0) {
395
395
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
396
396
  }
397
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
397
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
398
398
  }
399
399
  else {
400
400
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -425,7 +425,7 @@ const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
425
425
  if (labelValue.length <= 0) {
426
426
  throw new Error("Empty value provided for input HTTP label: AppId.");
427
427
  }
428
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
428
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
429
429
  }
430
430
  else {
431
431
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -435,7 +435,7 @@ const serializeAws_restJson1DeleteTokenCommand = async (input, context) => {
435
435
  if (labelValue.length <= 0) {
436
436
  throw new Error("Empty value provided for input HTTP label: SessionId.");
437
437
  }
438
- resolvedPath = resolvedPath.replace("{SessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
438
+ resolvedPath = resolvedPath.replace("{SessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
439
439
  }
440
440
  else {
441
441
  throw new Error("No value provided for input HTTP label: SessionId.");
@@ -464,7 +464,7 @@ const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, cont
464
464
  if (labelValue.length <= 0) {
465
465
  throw new Error("Empty value provided for input HTTP label: AppId.");
466
466
  }
467
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
467
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
468
468
  }
469
469
  else {
470
470
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -474,7 +474,7 @@ const serializeAws_restJson1GenerateBackendAPIModelsCommand = async (input, cont
474
474
  if (labelValue.length <= 0) {
475
475
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
476
476
  }
477
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
477
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
478
478
  }
479
479
  else {
480
480
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -505,7 +505,7 @@ const serializeAws_restJson1GetBackendCommand = async (input, context) => {
505
505
  if (labelValue.length <= 0) {
506
506
  throw new Error("Empty value provided for input HTTP label: AppId.");
507
507
  }
508
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
508
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
509
509
  }
510
510
  else {
511
511
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -538,7 +538,7 @@ const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
538
538
  if (labelValue.length <= 0) {
539
539
  throw new Error("Empty value provided for input HTTP label: AppId.");
540
540
  }
541
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
541
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
542
542
  }
543
543
  else {
544
544
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -548,7 +548,7 @@ const serializeAws_restJson1GetBackendAPICommand = async (input, context) => {
548
548
  if (labelValue.length <= 0) {
549
549
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
550
550
  }
551
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
551
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
552
552
  }
553
553
  else {
554
554
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -584,7 +584,7 @@ const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context)
584
584
  if (labelValue.length <= 0) {
585
585
  throw new Error("Empty value provided for input HTTP label: AppId.");
586
586
  }
587
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
587
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
588
588
  }
589
589
  else {
590
590
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -594,7 +594,7 @@ const serializeAws_restJson1GetBackendAPIModelsCommand = async (input, context)
594
594
  if (labelValue.length <= 0) {
595
595
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
596
596
  }
597
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
597
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
598
598
  }
599
599
  else {
600
600
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -626,7 +626,7 @@ const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
626
626
  if (labelValue.length <= 0) {
627
627
  throw new Error("Empty value provided for input HTTP label: AppId.");
628
628
  }
629
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
629
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
630
630
  }
631
631
  else {
632
632
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -636,7 +636,7 @@ const serializeAws_restJson1GetBackendAuthCommand = async (input, context) => {
636
636
  if (labelValue.length <= 0) {
637
637
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
638
638
  }
639
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
639
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
640
640
  }
641
641
  else {
642
642
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -666,7 +666,7 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
666
666
  if (labelValue.length <= 0) {
667
667
  throw new Error("Empty value provided for input HTTP label: AppId.");
668
668
  }
669
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
669
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
670
670
  }
671
671
  else {
672
672
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -676,7 +676,7 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
676
676
  if (labelValue.length <= 0) {
677
677
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
678
678
  }
679
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
679
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
680
680
  }
681
681
  else {
682
682
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -686,7 +686,7 @@ const serializeAws_restJson1GetBackendJobCommand = async (input, context) => {
686
686
  if (labelValue.length <= 0) {
687
687
  throw new Error("Empty value provided for input HTTP label: JobId.");
688
688
  }
689
- resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
689
+ resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
690
690
  }
691
691
  else {
692
692
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -715,7 +715,7 @@ const serializeAws_restJson1GetBackendStorageCommand = async (input, context) =>
715
715
  if (labelValue.length <= 0) {
716
716
  throw new Error("Empty value provided for input HTTP label: AppId.");
717
717
  }
718
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
718
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
719
719
  }
720
720
  else {
721
721
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -725,7 +725,7 @@ const serializeAws_restJson1GetBackendStorageCommand = async (input, context) =>
725
725
  if (labelValue.length <= 0) {
726
726
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
727
727
  }
728
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
728
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
729
729
  }
730
730
  else {
731
731
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -754,7 +754,7 @@ const serializeAws_restJson1GetTokenCommand = async (input, context) => {
754
754
  if (labelValue.length <= 0) {
755
755
  throw new Error("Empty value provided for input HTTP label: AppId.");
756
756
  }
757
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
757
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
758
758
  }
759
759
  else {
760
760
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -764,7 +764,7 @@ const serializeAws_restJson1GetTokenCommand = async (input, context) => {
764
764
  if (labelValue.length <= 0) {
765
765
  throw new Error("Empty value provided for input HTTP label: SessionId.");
766
766
  }
767
- resolvedPath = resolvedPath.replace("{SessionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
767
+ resolvedPath = resolvedPath.replace("{SessionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
768
768
  }
769
769
  else {
770
770
  throw new Error("No value provided for input HTTP label: SessionId.");
@@ -793,7 +793,7 @@ const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) =>
793
793
  if (labelValue.length <= 0) {
794
794
  throw new Error("Empty value provided for input HTTP label: AppId.");
795
795
  }
796
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
796
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
797
797
  }
798
798
  else {
799
799
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -803,7 +803,7 @@ const serializeAws_restJson1ImportBackendAuthCommand = async (input, context) =>
803
803
  if (labelValue.length <= 0) {
804
804
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
805
805
  }
806
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
806
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
807
807
  }
808
808
  else {
809
809
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -840,7 +840,7 @@ const serializeAws_restJson1ImportBackendStorageCommand = async (input, context)
840
840
  if (labelValue.length <= 0) {
841
841
  throw new Error("Empty value provided for input HTTP label: AppId.");
842
842
  }
843
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
843
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
844
844
  }
845
845
  else {
846
846
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -850,7 +850,7 @@ const serializeAws_restJson1ImportBackendStorageCommand = async (input, context)
850
850
  if (labelValue.length <= 0) {
851
851
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
852
852
  }
853
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
853
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
854
854
  }
855
855
  else {
856
856
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -883,7 +883,7 @@ const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
883
883
  if (labelValue.length <= 0) {
884
884
  throw new Error("Empty value provided for input HTTP label: AppId.");
885
885
  }
886
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
886
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
887
887
  }
888
888
  else {
889
889
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -893,7 +893,7 @@ const serializeAws_restJson1ListBackendJobsCommand = async (input, context) => {
893
893
  if (labelValue.length <= 0) {
894
894
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
895
895
  }
896
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
896
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
897
897
  }
898
898
  else {
899
899
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -949,7 +949,7 @@ const serializeAws_restJson1RemoveAllBackendsCommand = async (input, context) =>
949
949
  if (labelValue.length <= 0) {
950
950
  throw new Error("Empty value provided for input HTTP label: AppId.");
951
951
  }
952
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
952
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
953
953
  }
954
954
  else {
955
955
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -979,7 +979,7 @@ const serializeAws_restJson1RemoveBackendConfigCommand = async (input, context)
979
979
  if (labelValue.length <= 0) {
980
980
  throw new Error("Empty value provided for input HTTP label: AppId.");
981
981
  }
982
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
982
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
983
983
  }
984
984
  else {
985
985
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -1008,7 +1008,7 @@ const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) =>
1008
1008
  if (labelValue.length <= 0) {
1009
1009
  throw new Error("Empty value provided for input HTTP label: AppId.");
1010
1010
  }
1011
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1011
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1012
1012
  }
1013
1013
  else {
1014
1014
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -1018,7 +1018,7 @@ const serializeAws_restJson1UpdateBackendAPICommand = async (input, context) =>
1018
1018
  if (labelValue.length <= 0) {
1019
1019
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
1020
1020
  }
1021
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1021
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1022
1022
  }
1023
1023
  else {
1024
1024
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -1054,7 +1054,7 @@ const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) =>
1054
1054
  if (labelValue.length <= 0) {
1055
1055
  throw new Error("Empty value provided for input HTTP label: AppId.");
1056
1056
  }
1057
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1057
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1058
1058
  }
1059
1059
  else {
1060
1060
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -1064,7 +1064,7 @@ const serializeAws_restJson1UpdateBackendAuthCommand = async (input, context) =>
1064
1064
  if (labelValue.length <= 0) {
1065
1065
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
1066
1066
  }
1067
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1067
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1068
1068
  }
1069
1069
  else {
1070
1070
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -1099,7 +1099,7 @@ const serializeAws_restJson1UpdateBackendConfigCommand = async (input, context)
1099
1099
  if (labelValue.length <= 0) {
1100
1100
  throw new Error("Empty value provided for input HTTP label: AppId.");
1101
1101
  }
1102
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1102
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1103
1103
  }
1104
1104
  else {
1105
1105
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -1134,7 +1134,7 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
1134
1134
  if (labelValue.length <= 0) {
1135
1135
  throw new Error("Empty value provided for input HTTP label: AppId.");
1136
1136
  }
1137
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1137
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1138
1138
  }
1139
1139
  else {
1140
1140
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -1144,7 +1144,7 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
1144
1144
  if (labelValue.length <= 0) {
1145
1145
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
1146
1146
  }
1147
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1147
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1148
1148
  }
1149
1149
  else {
1150
1150
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -1154,7 +1154,7 @@ const serializeAws_restJson1UpdateBackendJobCommand = async (input, context) =>
1154
1154
  if (labelValue.length <= 0) {
1155
1155
  throw new Error("Empty value provided for input HTTP label: JobId.");
1156
1156
  }
1157
- resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1157
+ resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1158
1158
  }
1159
1159
  else {
1160
1160
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -1187,7 +1187,7 @@ const serializeAws_restJson1UpdateBackendStorageCommand = async (input, context)
1187
1187
  if (labelValue.length <= 0) {
1188
1188
  throw new Error("Empty value provided for input HTTP label: AppId.");
1189
1189
  }
1190
- resolvedPath = resolvedPath.replace("{AppId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1190
+ resolvedPath = resolvedPath.replace("{AppId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1191
1191
  }
1192
1192
  else {
1193
1193
  throw new Error("No value provided for input HTTP label: AppId.");
@@ -1197,7 +1197,7 @@ const serializeAws_restJson1UpdateBackendStorageCommand = async (input, context)
1197
1197
  if (labelValue.length <= 0) {
1198
1198
  throw new Error("Empty value provided for input HTTP label: BackendEnvironmentName.");
1199
1199
  }
1200
- resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1200
+ resolvedPath = resolvedPath.replace("{BackendEnvironmentName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1201
1201
  }
1202
1202
  else {
1203
1203
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
@@ -1234,24 +1234,24 @@ const deserializeAws_restJson1CloneBackendCommand = async (output, context) => {
1234
1234
  Operation: undefined,
1235
1235
  Status: undefined,
1236
1236
  };
1237
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1237
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1238
1238
  if (data.appId !== undefined && data.appId !== null) {
1239
- contents.AppId = smithy_client_1.expectString(data.appId);
1239
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1240
1240
  }
1241
1241
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1242
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1242
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1243
1243
  }
1244
1244
  if (data.error !== undefined && data.error !== null) {
1245
- contents.Error = smithy_client_1.expectString(data.error);
1245
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1246
1246
  }
1247
1247
  if (data.jobId !== undefined && data.jobId !== null) {
1248
- contents.JobId = smithy_client_1.expectString(data.jobId);
1248
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1249
1249
  }
1250
1250
  if (data.operation !== undefined && data.operation !== null) {
1251
- contents.Operation = smithy_client_1.expectString(data.operation);
1251
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1252
1252
  }
1253
1253
  if (data.status !== undefined && data.status !== null) {
1254
- contents.Status = smithy_client_1.expectString(data.status);
1254
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1255
1255
  }
1256
1256
  return Promise.resolve(contents);
1257
1257
  };
@@ -1284,7 +1284,7 @@ const deserializeAws_restJson1CloneBackendCommandError = async (output, context)
1284
1284
  $fault: "client",
1285
1285
  $metadata: deserializeMetadata(output),
1286
1286
  });
1287
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1287
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1288
1288
  }
1289
1289
  };
1290
1290
  const deserializeAws_restJson1CreateBackendCommand = async (output, context) => {
@@ -1300,24 +1300,24 @@ const deserializeAws_restJson1CreateBackendCommand = async (output, context) =>
1300
1300
  Operation: undefined,
1301
1301
  Status: undefined,
1302
1302
  };
1303
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1303
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1304
1304
  if (data.appId !== undefined && data.appId !== null) {
1305
- contents.AppId = smithy_client_1.expectString(data.appId);
1305
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1306
1306
  }
1307
1307
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1308
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1308
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1309
1309
  }
1310
1310
  if (data.error !== undefined && data.error !== null) {
1311
- contents.Error = smithy_client_1.expectString(data.error);
1311
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1312
1312
  }
1313
1313
  if (data.jobId !== undefined && data.jobId !== null) {
1314
- contents.JobId = smithy_client_1.expectString(data.jobId);
1314
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1315
1315
  }
1316
1316
  if (data.operation !== undefined && data.operation !== null) {
1317
- contents.Operation = smithy_client_1.expectString(data.operation);
1317
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1318
1318
  }
1319
1319
  if (data.status !== undefined && data.status !== null) {
1320
- contents.Status = smithy_client_1.expectString(data.status);
1320
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1321
1321
  }
1322
1322
  return Promise.resolve(contents);
1323
1323
  };
@@ -1350,7 +1350,7 @@ const deserializeAws_restJson1CreateBackendCommandError = async (output, context
1350
1350
  $fault: "client",
1351
1351
  $metadata: deserializeMetadata(output),
1352
1352
  });
1353
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1353
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1354
1354
  }
1355
1355
  };
1356
1356
  const deserializeAws_restJson1CreateBackendAPICommand = async (output, context) => {
@@ -1366,24 +1366,24 @@ const deserializeAws_restJson1CreateBackendAPICommand = async (output, context)
1366
1366
  Operation: undefined,
1367
1367
  Status: undefined,
1368
1368
  };
1369
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1369
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1370
1370
  if (data.appId !== undefined && data.appId !== null) {
1371
- contents.AppId = smithy_client_1.expectString(data.appId);
1371
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1372
1372
  }
1373
1373
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1374
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1374
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1375
1375
  }
1376
1376
  if (data.error !== undefined && data.error !== null) {
1377
- contents.Error = smithy_client_1.expectString(data.error);
1377
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1378
1378
  }
1379
1379
  if (data.jobId !== undefined && data.jobId !== null) {
1380
- contents.JobId = smithy_client_1.expectString(data.jobId);
1380
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1381
1381
  }
1382
1382
  if (data.operation !== undefined && data.operation !== null) {
1383
- contents.Operation = smithy_client_1.expectString(data.operation);
1383
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1384
1384
  }
1385
1385
  if (data.status !== undefined && data.status !== null) {
1386
- contents.Status = smithy_client_1.expectString(data.status);
1386
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1387
1387
  }
1388
1388
  return Promise.resolve(contents);
1389
1389
  };
@@ -1416,7 +1416,7 @@ const deserializeAws_restJson1CreateBackendAPICommandError = async (output, cont
1416
1416
  $fault: "client",
1417
1417
  $metadata: deserializeMetadata(output),
1418
1418
  });
1419
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1419
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1420
1420
  }
1421
1421
  };
1422
1422
  const deserializeAws_restJson1CreateBackendAuthCommand = async (output, context) => {
@@ -1432,24 +1432,24 @@ const deserializeAws_restJson1CreateBackendAuthCommand = async (output, context)
1432
1432
  Operation: undefined,
1433
1433
  Status: undefined,
1434
1434
  };
1435
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1435
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1436
1436
  if (data.appId !== undefined && data.appId !== null) {
1437
- contents.AppId = smithy_client_1.expectString(data.appId);
1437
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1438
1438
  }
1439
1439
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1440
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1440
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1441
1441
  }
1442
1442
  if (data.error !== undefined && data.error !== null) {
1443
- contents.Error = smithy_client_1.expectString(data.error);
1443
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1444
1444
  }
1445
1445
  if (data.jobId !== undefined && data.jobId !== null) {
1446
- contents.JobId = smithy_client_1.expectString(data.jobId);
1446
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1447
1447
  }
1448
1448
  if (data.operation !== undefined && data.operation !== null) {
1449
- contents.Operation = smithy_client_1.expectString(data.operation);
1449
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1450
1450
  }
1451
1451
  if (data.status !== undefined && data.status !== null) {
1452
- contents.Status = smithy_client_1.expectString(data.status);
1452
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1453
1453
  }
1454
1454
  return Promise.resolve(contents);
1455
1455
  };
@@ -1482,7 +1482,7 @@ const deserializeAws_restJson1CreateBackendAuthCommandError = async (output, con
1482
1482
  $fault: "client",
1483
1483
  $metadata: deserializeMetadata(output),
1484
1484
  });
1485
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1485
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1486
1486
  }
1487
1487
  };
1488
1488
  const deserializeAws_restJson1CreateBackendConfigCommand = async (output, context) => {
@@ -1496,18 +1496,18 @@ const deserializeAws_restJson1CreateBackendConfigCommand = async (output, contex
1496
1496
  JobId: undefined,
1497
1497
  Status: undefined,
1498
1498
  };
1499
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1499
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1500
1500
  if (data.appId !== undefined && data.appId !== null) {
1501
- contents.AppId = smithy_client_1.expectString(data.appId);
1501
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1502
1502
  }
1503
1503
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1504
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1504
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1505
1505
  }
1506
1506
  if (data.jobId !== undefined && data.jobId !== null) {
1507
- contents.JobId = smithy_client_1.expectString(data.jobId);
1507
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1508
1508
  }
1509
1509
  if (data.status !== undefined && data.status !== null) {
1510
- contents.Status = smithy_client_1.expectString(data.status);
1510
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1511
1511
  }
1512
1512
  return Promise.resolve(contents);
1513
1513
  };
@@ -1540,7 +1540,7 @@ const deserializeAws_restJson1CreateBackendConfigCommandError = async (output, c
1540
1540
  $fault: "client",
1541
1541
  $metadata: deserializeMetadata(output),
1542
1542
  });
1543
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1543
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1544
1544
  }
1545
1545
  };
1546
1546
  const deserializeAws_restJson1CreateBackendStorageCommand = async (output, context) => {
@@ -1554,18 +1554,18 @@ const deserializeAws_restJson1CreateBackendStorageCommand = async (output, conte
1554
1554
  JobId: undefined,
1555
1555
  Status: undefined,
1556
1556
  };
1557
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1557
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1558
1558
  if (data.appId !== undefined && data.appId !== null) {
1559
- contents.AppId = smithy_client_1.expectString(data.appId);
1559
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1560
1560
  }
1561
1561
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1562
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1562
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1563
1563
  }
1564
1564
  if (data.jobId !== undefined && data.jobId !== null) {
1565
- contents.JobId = smithy_client_1.expectString(data.jobId);
1565
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1566
1566
  }
1567
1567
  if (data.status !== undefined && data.status !== null) {
1568
- contents.Status = smithy_client_1.expectString(data.status);
1568
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1569
1569
  }
1570
1570
  return Promise.resolve(contents);
1571
1571
  };
@@ -1598,7 +1598,7 @@ const deserializeAws_restJson1CreateBackendStorageCommandError = async (output,
1598
1598
  $fault: "client",
1599
1599
  $metadata: deserializeMetadata(output),
1600
1600
  });
1601
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1601
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1602
1602
  }
1603
1603
  };
1604
1604
  const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
@@ -1612,18 +1612,18 @@ const deserializeAws_restJson1CreateTokenCommand = async (output, context) => {
1612
1612
  SessionId: undefined,
1613
1613
  Ttl: undefined,
1614
1614
  };
1615
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1615
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1616
1616
  if (data.appId !== undefined && data.appId !== null) {
1617
- contents.AppId = smithy_client_1.expectString(data.appId);
1617
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1618
1618
  }
1619
1619
  if (data.challengeCode !== undefined && data.challengeCode !== null) {
1620
- contents.ChallengeCode = smithy_client_1.expectString(data.challengeCode);
1620
+ contents.ChallengeCode = (0, smithy_client_1.expectString)(data.challengeCode);
1621
1621
  }
1622
1622
  if (data.sessionId !== undefined && data.sessionId !== null) {
1623
- contents.SessionId = smithy_client_1.expectString(data.sessionId);
1623
+ contents.SessionId = (0, smithy_client_1.expectString)(data.sessionId);
1624
1624
  }
1625
1625
  if (data.ttl !== undefined && data.ttl !== null) {
1626
- contents.Ttl = smithy_client_1.expectString(data.ttl);
1626
+ contents.Ttl = (0, smithy_client_1.expectString)(data.ttl);
1627
1627
  }
1628
1628
  return Promise.resolve(contents);
1629
1629
  };
@@ -1656,7 +1656,7 @@ const deserializeAws_restJson1CreateTokenCommandError = async (output, context)
1656
1656
  $fault: "client",
1657
1657
  $metadata: deserializeMetadata(output),
1658
1658
  });
1659
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1659
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1660
1660
  }
1661
1661
  };
1662
1662
  const deserializeAws_restJson1DeleteBackendCommand = async (output, context) => {
@@ -1672,24 +1672,24 @@ const deserializeAws_restJson1DeleteBackendCommand = async (output, context) =>
1672
1672
  Operation: undefined,
1673
1673
  Status: undefined,
1674
1674
  };
1675
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1675
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1676
1676
  if (data.appId !== undefined && data.appId !== null) {
1677
- contents.AppId = smithy_client_1.expectString(data.appId);
1677
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1678
1678
  }
1679
1679
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1680
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1680
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1681
1681
  }
1682
1682
  if (data.error !== undefined && data.error !== null) {
1683
- contents.Error = smithy_client_1.expectString(data.error);
1683
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1684
1684
  }
1685
1685
  if (data.jobId !== undefined && data.jobId !== null) {
1686
- contents.JobId = smithy_client_1.expectString(data.jobId);
1686
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1687
1687
  }
1688
1688
  if (data.operation !== undefined && data.operation !== null) {
1689
- contents.Operation = smithy_client_1.expectString(data.operation);
1689
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1690
1690
  }
1691
1691
  if (data.status !== undefined && data.status !== null) {
1692
- contents.Status = smithy_client_1.expectString(data.status);
1692
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1693
1693
  }
1694
1694
  return Promise.resolve(contents);
1695
1695
  };
@@ -1722,7 +1722,7 @@ const deserializeAws_restJson1DeleteBackendCommandError = async (output, context
1722
1722
  $fault: "client",
1723
1723
  $metadata: deserializeMetadata(output),
1724
1724
  });
1725
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1725
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1726
1726
  }
1727
1727
  };
1728
1728
  const deserializeAws_restJson1DeleteBackendAPICommand = async (output, context) => {
@@ -1738,24 +1738,24 @@ const deserializeAws_restJson1DeleteBackendAPICommand = async (output, context)
1738
1738
  Operation: undefined,
1739
1739
  Status: undefined,
1740
1740
  };
1741
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1741
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1742
1742
  if (data.appId !== undefined && data.appId !== null) {
1743
- contents.AppId = smithy_client_1.expectString(data.appId);
1743
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1744
1744
  }
1745
1745
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1746
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1746
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1747
1747
  }
1748
1748
  if (data.error !== undefined && data.error !== null) {
1749
- contents.Error = smithy_client_1.expectString(data.error);
1749
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1750
1750
  }
1751
1751
  if (data.jobId !== undefined && data.jobId !== null) {
1752
- contents.JobId = smithy_client_1.expectString(data.jobId);
1752
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1753
1753
  }
1754
1754
  if (data.operation !== undefined && data.operation !== null) {
1755
- contents.Operation = smithy_client_1.expectString(data.operation);
1755
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1756
1756
  }
1757
1757
  if (data.status !== undefined && data.status !== null) {
1758
- contents.Status = smithy_client_1.expectString(data.status);
1758
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1759
1759
  }
1760
1760
  return Promise.resolve(contents);
1761
1761
  };
@@ -1788,7 +1788,7 @@ const deserializeAws_restJson1DeleteBackendAPICommandError = async (output, cont
1788
1788
  $fault: "client",
1789
1789
  $metadata: deserializeMetadata(output),
1790
1790
  });
1791
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1791
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1792
1792
  }
1793
1793
  };
1794
1794
  const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, context) => {
@@ -1804,24 +1804,24 @@ const deserializeAws_restJson1DeleteBackendAuthCommand = async (output, context)
1804
1804
  Operation: undefined,
1805
1805
  Status: undefined,
1806
1806
  };
1807
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1807
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1808
1808
  if (data.appId !== undefined && data.appId !== null) {
1809
- contents.AppId = smithy_client_1.expectString(data.appId);
1809
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1810
1810
  }
1811
1811
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1812
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1812
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1813
1813
  }
1814
1814
  if (data.error !== undefined && data.error !== null) {
1815
- contents.Error = smithy_client_1.expectString(data.error);
1815
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1816
1816
  }
1817
1817
  if (data.jobId !== undefined && data.jobId !== null) {
1818
- contents.JobId = smithy_client_1.expectString(data.jobId);
1818
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1819
1819
  }
1820
1820
  if (data.operation !== undefined && data.operation !== null) {
1821
- contents.Operation = smithy_client_1.expectString(data.operation);
1821
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1822
1822
  }
1823
1823
  if (data.status !== undefined && data.status !== null) {
1824
- contents.Status = smithy_client_1.expectString(data.status);
1824
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1825
1825
  }
1826
1826
  return Promise.resolve(contents);
1827
1827
  };
@@ -1854,7 +1854,7 @@ const deserializeAws_restJson1DeleteBackendAuthCommandError = async (output, con
1854
1854
  $fault: "client",
1855
1855
  $metadata: deserializeMetadata(output),
1856
1856
  });
1857
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1857
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1858
1858
  }
1859
1859
  };
1860
1860
  const deserializeAws_restJson1DeleteBackendStorageCommand = async (output, context) => {
@@ -1868,18 +1868,18 @@ const deserializeAws_restJson1DeleteBackendStorageCommand = async (output, conte
1868
1868
  JobId: undefined,
1869
1869
  Status: undefined,
1870
1870
  };
1871
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1871
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1872
1872
  if (data.appId !== undefined && data.appId !== null) {
1873
- contents.AppId = smithy_client_1.expectString(data.appId);
1873
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1874
1874
  }
1875
1875
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1876
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1876
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1877
1877
  }
1878
1878
  if (data.jobId !== undefined && data.jobId !== null) {
1879
- contents.JobId = smithy_client_1.expectString(data.jobId);
1879
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1880
1880
  }
1881
1881
  if (data.status !== undefined && data.status !== null) {
1882
- contents.Status = smithy_client_1.expectString(data.status);
1882
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1883
1883
  }
1884
1884
  return Promise.resolve(contents);
1885
1885
  };
@@ -1912,7 +1912,7 @@ const deserializeAws_restJson1DeleteBackendStorageCommandError = async (output,
1912
1912
  $fault: "client",
1913
1913
  $metadata: deserializeMetadata(output),
1914
1914
  });
1915
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1915
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1916
1916
  }
1917
1917
  };
1918
1918
  const deserializeAws_restJson1DeleteTokenCommand = async (output, context) => {
@@ -1923,9 +1923,9 @@ const deserializeAws_restJson1DeleteTokenCommand = async (output, context) => {
1923
1923
  $metadata: deserializeMetadata(output),
1924
1924
  IsSuccess: undefined,
1925
1925
  };
1926
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1926
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1927
1927
  if (data.isSuccess !== undefined && data.isSuccess !== null) {
1928
- contents.IsSuccess = smithy_client_1.expectBoolean(data.isSuccess);
1928
+ contents.IsSuccess = (0, smithy_client_1.expectBoolean)(data.isSuccess);
1929
1929
  }
1930
1930
  return Promise.resolve(contents);
1931
1931
  };
@@ -1958,7 +1958,7 @@ const deserializeAws_restJson1DeleteTokenCommandError = async (output, context)
1958
1958
  $fault: "client",
1959
1959
  $metadata: deserializeMetadata(output),
1960
1960
  });
1961
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1961
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1962
1962
  }
1963
1963
  };
1964
1964
  const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (output, context) => {
@@ -1974,24 +1974,24 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommand = async (output, c
1974
1974
  Operation: undefined,
1975
1975
  Status: undefined,
1976
1976
  };
1977
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1977
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1978
1978
  if (data.appId !== undefined && data.appId !== null) {
1979
- contents.AppId = smithy_client_1.expectString(data.appId);
1979
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
1980
1980
  }
1981
1981
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
1982
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
1982
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
1983
1983
  }
1984
1984
  if (data.error !== undefined && data.error !== null) {
1985
- contents.Error = smithy_client_1.expectString(data.error);
1985
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
1986
1986
  }
1987
1987
  if (data.jobId !== undefined && data.jobId !== null) {
1988
- contents.JobId = smithy_client_1.expectString(data.jobId);
1988
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
1989
1989
  }
1990
1990
  if (data.operation !== undefined && data.operation !== null) {
1991
- contents.Operation = smithy_client_1.expectString(data.operation);
1991
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
1992
1992
  }
1993
1993
  if (data.status !== undefined && data.status !== null) {
1994
- contents.Status = smithy_client_1.expectString(data.status);
1994
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1995
1995
  }
1996
1996
  return Promise.resolve(contents);
1997
1997
  };
@@ -2024,7 +2024,7 @@ const deserializeAws_restJson1GenerateBackendAPIModelsCommandError = async (outp
2024
2024
  $fault: "client",
2025
2025
  $metadata: deserializeMetadata(output),
2026
2026
  });
2027
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2027
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2028
2028
  }
2029
2029
  };
2030
2030
  const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
@@ -2041,27 +2041,27 @@ const deserializeAws_restJson1GetBackendCommand = async (output, context) => {
2041
2041
  BackendEnvironmentName: undefined,
2042
2042
  Error: undefined,
2043
2043
  };
2044
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2044
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2045
2045
  if (data.amplifyFeatureFlags !== undefined && data.amplifyFeatureFlags !== null) {
2046
- contents.AmplifyFeatureFlags = smithy_client_1.expectString(data.amplifyFeatureFlags);
2046
+ contents.AmplifyFeatureFlags = (0, smithy_client_1.expectString)(data.amplifyFeatureFlags);
2047
2047
  }
2048
2048
  if (data.amplifyMetaConfig !== undefined && data.amplifyMetaConfig !== null) {
2049
- contents.AmplifyMetaConfig = smithy_client_1.expectString(data.amplifyMetaConfig);
2049
+ contents.AmplifyMetaConfig = (0, smithy_client_1.expectString)(data.amplifyMetaConfig);
2050
2050
  }
2051
2051
  if (data.appId !== undefined && data.appId !== null) {
2052
- contents.AppId = smithy_client_1.expectString(data.appId);
2052
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2053
2053
  }
2054
2054
  if (data.appName !== undefined && data.appName !== null) {
2055
- contents.AppName = smithy_client_1.expectString(data.appName);
2055
+ contents.AppName = (0, smithy_client_1.expectString)(data.appName);
2056
2056
  }
2057
2057
  if (data.backendEnvironmentList !== undefined && data.backendEnvironmentList !== null) {
2058
2058
  contents.BackendEnvironmentList = deserializeAws_restJson1ListOf__string(data.backendEnvironmentList, context);
2059
2059
  }
2060
2060
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2061
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2061
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2062
2062
  }
2063
2063
  if (data.error !== undefined && data.error !== null) {
2064
- contents.Error = smithy_client_1.expectString(data.error);
2064
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2065
2065
  }
2066
2066
  return Promise.resolve(contents);
2067
2067
  };
@@ -2094,7 +2094,7 @@ const deserializeAws_restJson1GetBackendCommandError = async (output, context) =
2094
2094
  $fault: "client",
2095
2095
  $metadata: deserializeMetadata(output),
2096
2096
  });
2097
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2097
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2098
2098
  }
2099
2099
  };
2100
2100
  const deserializeAws_restJson1GetBackendAPICommand = async (output, context) => {
@@ -2109,21 +2109,21 @@ const deserializeAws_restJson1GetBackendAPICommand = async (output, context) =>
2109
2109
  ResourceConfig: undefined,
2110
2110
  ResourceName: undefined,
2111
2111
  };
2112
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2112
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2113
2113
  if (data.appId !== undefined && data.appId !== null) {
2114
- contents.AppId = smithy_client_1.expectString(data.appId);
2114
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2115
2115
  }
2116
2116
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2117
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2117
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2118
2118
  }
2119
2119
  if (data.error !== undefined && data.error !== null) {
2120
- contents.Error = smithy_client_1.expectString(data.error);
2120
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2121
2121
  }
2122
2122
  if (data.resourceConfig !== undefined && data.resourceConfig !== null) {
2123
2123
  contents.ResourceConfig = deserializeAws_restJson1BackendAPIResourceConfig(data.resourceConfig, context);
2124
2124
  }
2125
2125
  if (data.resourceName !== undefined && data.resourceName !== null) {
2126
- contents.ResourceName = smithy_client_1.expectString(data.resourceName);
2126
+ contents.ResourceName = (0, smithy_client_1.expectString)(data.resourceName);
2127
2127
  }
2128
2128
  return Promise.resolve(contents);
2129
2129
  };
@@ -2156,7 +2156,7 @@ const deserializeAws_restJson1GetBackendAPICommandError = async (output, context
2156
2156
  $fault: "client",
2157
2157
  $metadata: deserializeMetadata(output),
2158
2158
  });
2159
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2159
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2160
2160
  }
2161
2161
  };
2162
2162
  const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output, context) => {
@@ -2168,12 +2168,12 @@ const deserializeAws_restJson1GetBackendAPIModelsCommand = async (output, contex
2168
2168
  Models: undefined,
2169
2169
  Status: undefined,
2170
2170
  };
2171
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2171
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2172
2172
  if (data.models !== undefined && data.models !== null) {
2173
- contents.Models = smithy_client_1.expectString(data.models);
2173
+ contents.Models = (0, smithy_client_1.expectString)(data.models);
2174
2174
  }
2175
2175
  if (data.status !== undefined && data.status !== null) {
2176
- contents.Status = smithy_client_1.expectString(data.status);
2176
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2177
2177
  }
2178
2178
  return Promise.resolve(contents);
2179
2179
  };
@@ -2206,7 +2206,7 @@ const deserializeAws_restJson1GetBackendAPIModelsCommandError = async (output, c
2206
2206
  $fault: "client",
2207
2207
  $metadata: deserializeMetadata(output),
2208
2208
  });
2209
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2209
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2210
2210
  }
2211
2211
  };
2212
2212
  const deserializeAws_restJson1GetBackendAuthCommand = async (output, context) => {
@@ -2221,21 +2221,21 @@ const deserializeAws_restJson1GetBackendAuthCommand = async (output, context) =>
2221
2221
  ResourceConfig: undefined,
2222
2222
  ResourceName: undefined,
2223
2223
  };
2224
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2224
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2225
2225
  if (data.appId !== undefined && data.appId !== null) {
2226
- contents.AppId = smithy_client_1.expectString(data.appId);
2226
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2227
2227
  }
2228
2228
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2229
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2229
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2230
2230
  }
2231
2231
  if (data.error !== undefined && data.error !== null) {
2232
- contents.Error = smithy_client_1.expectString(data.error);
2232
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2233
2233
  }
2234
2234
  if (data.resourceConfig !== undefined && data.resourceConfig !== null) {
2235
2235
  contents.ResourceConfig = deserializeAws_restJson1CreateBackendAuthResourceConfig(data.resourceConfig, context);
2236
2236
  }
2237
2237
  if (data.resourceName !== undefined && data.resourceName !== null) {
2238
- contents.ResourceName = smithy_client_1.expectString(data.resourceName);
2238
+ contents.ResourceName = (0, smithy_client_1.expectString)(data.resourceName);
2239
2239
  }
2240
2240
  return Promise.resolve(contents);
2241
2241
  };
@@ -2268,7 +2268,7 @@ const deserializeAws_restJson1GetBackendAuthCommandError = async (output, contex
2268
2268
  $fault: "client",
2269
2269
  $metadata: deserializeMetadata(output),
2270
2270
  });
2271
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2271
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2272
2272
  }
2273
2273
  };
2274
2274
  const deserializeAws_restJson1GetBackendJobCommand = async (output, context) => {
@@ -2286,30 +2286,30 @@ const deserializeAws_restJson1GetBackendJobCommand = async (output, context) =>
2286
2286
  Status: undefined,
2287
2287
  UpdateTime: undefined,
2288
2288
  };
2289
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2289
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2290
2290
  if (data.appId !== undefined && data.appId !== null) {
2291
- contents.AppId = smithy_client_1.expectString(data.appId);
2291
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2292
2292
  }
2293
2293
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2294
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2294
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2295
2295
  }
2296
2296
  if (data.createTime !== undefined && data.createTime !== null) {
2297
- contents.CreateTime = smithy_client_1.expectString(data.createTime);
2297
+ contents.CreateTime = (0, smithy_client_1.expectString)(data.createTime);
2298
2298
  }
2299
2299
  if (data.error !== undefined && data.error !== null) {
2300
- contents.Error = smithy_client_1.expectString(data.error);
2300
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2301
2301
  }
2302
2302
  if (data.jobId !== undefined && data.jobId !== null) {
2303
- contents.JobId = smithy_client_1.expectString(data.jobId);
2303
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
2304
2304
  }
2305
2305
  if (data.operation !== undefined && data.operation !== null) {
2306
- contents.Operation = smithy_client_1.expectString(data.operation);
2306
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
2307
2307
  }
2308
2308
  if (data.status !== undefined && data.status !== null) {
2309
- contents.Status = smithy_client_1.expectString(data.status);
2309
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2310
2310
  }
2311
2311
  if (data.updateTime !== undefined && data.updateTime !== null) {
2312
- contents.UpdateTime = smithy_client_1.expectString(data.updateTime);
2312
+ contents.UpdateTime = (0, smithy_client_1.expectString)(data.updateTime);
2313
2313
  }
2314
2314
  return Promise.resolve(contents);
2315
2315
  };
@@ -2342,7 +2342,7 @@ const deserializeAws_restJson1GetBackendJobCommandError = async (output, context
2342
2342
  $fault: "client",
2343
2343
  $metadata: deserializeMetadata(output),
2344
2344
  });
2345
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2345
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2346
2346
  }
2347
2347
  };
2348
2348
  const deserializeAws_restJson1GetBackendStorageCommand = async (output, context) => {
@@ -2356,18 +2356,18 @@ const deserializeAws_restJson1GetBackendStorageCommand = async (output, context)
2356
2356
  ResourceConfig: undefined,
2357
2357
  ResourceName: undefined,
2358
2358
  };
2359
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2359
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2360
2360
  if (data.appId !== undefined && data.appId !== null) {
2361
- contents.AppId = smithy_client_1.expectString(data.appId);
2361
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2362
2362
  }
2363
2363
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2364
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2364
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2365
2365
  }
2366
2366
  if (data.resourceConfig !== undefined && data.resourceConfig !== null) {
2367
2367
  contents.ResourceConfig = deserializeAws_restJson1GetBackendStorageResourceConfig(data.resourceConfig, context);
2368
2368
  }
2369
2369
  if (data.resourceName !== undefined && data.resourceName !== null) {
2370
- contents.ResourceName = smithy_client_1.expectString(data.resourceName);
2370
+ contents.ResourceName = (0, smithy_client_1.expectString)(data.resourceName);
2371
2371
  }
2372
2372
  return Promise.resolve(contents);
2373
2373
  };
@@ -2400,7 +2400,7 @@ const deserializeAws_restJson1GetBackendStorageCommandError = async (output, con
2400
2400
  $fault: "client",
2401
2401
  $metadata: deserializeMetadata(output),
2402
2402
  });
2403
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2403
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2404
2404
  }
2405
2405
  };
2406
2406
  const deserializeAws_restJson1GetTokenCommand = async (output, context) => {
@@ -2414,18 +2414,18 @@ const deserializeAws_restJson1GetTokenCommand = async (output, context) => {
2414
2414
  SessionId: undefined,
2415
2415
  Ttl: undefined,
2416
2416
  };
2417
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2417
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2418
2418
  if (data.appId !== undefined && data.appId !== null) {
2419
- contents.AppId = smithy_client_1.expectString(data.appId);
2419
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2420
2420
  }
2421
2421
  if (data.challengeCode !== undefined && data.challengeCode !== null) {
2422
- contents.ChallengeCode = smithy_client_1.expectString(data.challengeCode);
2422
+ contents.ChallengeCode = (0, smithy_client_1.expectString)(data.challengeCode);
2423
2423
  }
2424
2424
  if (data.sessionId !== undefined && data.sessionId !== null) {
2425
- contents.SessionId = smithy_client_1.expectString(data.sessionId);
2425
+ contents.SessionId = (0, smithy_client_1.expectString)(data.sessionId);
2426
2426
  }
2427
2427
  if (data.ttl !== undefined && data.ttl !== null) {
2428
- contents.Ttl = smithy_client_1.expectString(data.ttl);
2428
+ contents.Ttl = (0, smithy_client_1.expectString)(data.ttl);
2429
2429
  }
2430
2430
  return Promise.resolve(contents);
2431
2431
  };
@@ -2458,7 +2458,7 @@ const deserializeAws_restJson1GetTokenCommandError = async (output, context) =>
2458
2458
  $fault: "client",
2459
2459
  $metadata: deserializeMetadata(output),
2460
2460
  });
2461
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2461
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2462
2462
  }
2463
2463
  };
2464
2464
  const deserializeAws_restJson1ImportBackendAuthCommand = async (output, context) => {
@@ -2474,24 +2474,24 @@ const deserializeAws_restJson1ImportBackendAuthCommand = async (output, context)
2474
2474
  Operation: undefined,
2475
2475
  Status: undefined,
2476
2476
  };
2477
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2477
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2478
2478
  if (data.appId !== undefined && data.appId !== null) {
2479
- contents.AppId = smithy_client_1.expectString(data.appId);
2479
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2480
2480
  }
2481
2481
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2482
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2482
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2483
2483
  }
2484
2484
  if (data.error !== undefined && data.error !== null) {
2485
- contents.Error = smithy_client_1.expectString(data.error);
2485
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2486
2486
  }
2487
2487
  if (data.jobId !== undefined && data.jobId !== null) {
2488
- contents.JobId = smithy_client_1.expectString(data.jobId);
2488
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
2489
2489
  }
2490
2490
  if (data.operation !== undefined && data.operation !== null) {
2491
- contents.Operation = smithy_client_1.expectString(data.operation);
2491
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
2492
2492
  }
2493
2493
  if (data.status !== undefined && data.status !== null) {
2494
- contents.Status = smithy_client_1.expectString(data.status);
2494
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2495
2495
  }
2496
2496
  return Promise.resolve(contents);
2497
2497
  };
@@ -2524,7 +2524,7 @@ const deserializeAws_restJson1ImportBackendAuthCommandError = async (output, con
2524
2524
  $fault: "client",
2525
2525
  $metadata: deserializeMetadata(output),
2526
2526
  });
2527
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2527
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2528
2528
  }
2529
2529
  };
2530
2530
  const deserializeAws_restJson1ImportBackendStorageCommand = async (output, context) => {
@@ -2538,18 +2538,18 @@ const deserializeAws_restJson1ImportBackendStorageCommand = async (output, conte
2538
2538
  JobId: undefined,
2539
2539
  Status: undefined,
2540
2540
  };
2541
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2541
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2542
2542
  if (data.appId !== undefined && data.appId !== null) {
2543
- contents.AppId = smithy_client_1.expectString(data.appId);
2543
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2544
2544
  }
2545
2545
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2546
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2546
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2547
2547
  }
2548
2548
  if (data.jobId !== undefined && data.jobId !== null) {
2549
- contents.JobId = smithy_client_1.expectString(data.jobId);
2549
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
2550
2550
  }
2551
2551
  if (data.status !== undefined && data.status !== null) {
2552
- contents.Status = smithy_client_1.expectString(data.status);
2552
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2553
2553
  }
2554
2554
  return Promise.resolve(contents);
2555
2555
  };
@@ -2582,7 +2582,7 @@ const deserializeAws_restJson1ImportBackendStorageCommandError = async (output,
2582
2582
  $fault: "client",
2583
2583
  $metadata: deserializeMetadata(output),
2584
2584
  });
2585
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2585
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2586
2586
  }
2587
2587
  };
2588
2588
  const deserializeAws_restJson1ListBackendJobsCommand = async (output, context) => {
@@ -2594,12 +2594,12 @@ const deserializeAws_restJson1ListBackendJobsCommand = async (output, context) =
2594
2594
  Jobs: undefined,
2595
2595
  NextToken: undefined,
2596
2596
  };
2597
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2597
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2598
2598
  if (data.jobs !== undefined && data.jobs !== null) {
2599
2599
  contents.Jobs = deserializeAws_restJson1ListOfBackendJobRespObj(data.jobs, context);
2600
2600
  }
2601
2601
  if (data.nextToken !== undefined && data.nextToken !== null) {
2602
- contents.NextToken = smithy_client_1.expectString(data.nextToken);
2602
+ contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2603
2603
  }
2604
2604
  return Promise.resolve(contents);
2605
2605
  };
@@ -2632,7 +2632,7 @@ const deserializeAws_restJson1ListBackendJobsCommandError = async (output, conte
2632
2632
  $fault: "client",
2633
2633
  $metadata: deserializeMetadata(output),
2634
2634
  });
2635
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2635
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2636
2636
  }
2637
2637
  };
2638
2638
  const deserializeAws_restJson1ListS3BucketsCommand = async (output, context) => {
@@ -2644,12 +2644,12 @@ const deserializeAws_restJson1ListS3BucketsCommand = async (output, context) =>
2644
2644
  Buckets: undefined,
2645
2645
  NextToken: undefined,
2646
2646
  };
2647
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2647
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2648
2648
  if (data.buckets !== undefined && data.buckets !== null) {
2649
2649
  contents.Buckets = deserializeAws_restJson1ListOfS3BucketInfo(data.buckets, context);
2650
2650
  }
2651
2651
  if (data.nextToken !== undefined && data.nextToken !== null) {
2652
- contents.NextToken = smithy_client_1.expectString(data.nextToken);
2652
+ contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2653
2653
  }
2654
2654
  return Promise.resolve(contents);
2655
2655
  };
@@ -2682,7 +2682,7 @@ const deserializeAws_restJson1ListS3BucketsCommandError = async (output, context
2682
2682
  $fault: "client",
2683
2683
  $metadata: deserializeMetadata(output),
2684
2684
  });
2685
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2685
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2686
2686
  }
2687
2687
  };
2688
2688
  const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, context) => {
@@ -2697,21 +2697,21 @@ const deserializeAws_restJson1RemoveAllBackendsCommand = async (output, context)
2697
2697
  Operation: undefined,
2698
2698
  Status: undefined,
2699
2699
  };
2700
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2700
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2701
2701
  if (data.appId !== undefined && data.appId !== null) {
2702
- contents.AppId = smithy_client_1.expectString(data.appId);
2702
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2703
2703
  }
2704
2704
  if (data.error !== undefined && data.error !== null) {
2705
- contents.Error = smithy_client_1.expectString(data.error);
2705
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2706
2706
  }
2707
2707
  if (data.jobId !== undefined && data.jobId !== null) {
2708
- contents.JobId = smithy_client_1.expectString(data.jobId);
2708
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
2709
2709
  }
2710
2710
  if (data.operation !== undefined && data.operation !== null) {
2711
- contents.Operation = smithy_client_1.expectString(data.operation);
2711
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
2712
2712
  }
2713
2713
  if (data.status !== undefined && data.status !== null) {
2714
- contents.Status = smithy_client_1.expectString(data.status);
2714
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2715
2715
  }
2716
2716
  return Promise.resolve(contents);
2717
2717
  };
@@ -2744,7 +2744,7 @@ const deserializeAws_restJson1RemoveAllBackendsCommandError = async (output, con
2744
2744
  $fault: "client",
2745
2745
  $metadata: deserializeMetadata(output),
2746
2746
  });
2747
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2747
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2748
2748
  }
2749
2749
  };
2750
2750
  const deserializeAws_restJson1RemoveBackendConfigCommand = async (output, context) => {
@@ -2755,9 +2755,9 @@ const deserializeAws_restJson1RemoveBackendConfigCommand = async (output, contex
2755
2755
  $metadata: deserializeMetadata(output),
2756
2756
  Error: undefined,
2757
2757
  };
2758
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2758
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2759
2759
  if (data.error !== undefined && data.error !== null) {
2760
- contents.Error = smithy_client_1.expectString(data.error);
2760
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2761
2761
  }
2762
2762
  return Promise.resolve(contents);
2763
2763
  };
@@ -2790,7 +2790,7 @@ const deserializeAws_restJson1RemoveBackendConfigCommandError = async (output, c
2790
2790
  $fault: "client",
2791
2791
  $metadata: deserializeMetadata(output),
2792
2792
  });
2793
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2793
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2794
2794
  }
2795
2795
  };
2796
2796
  const deserializeAws_restJson1UpdateBackendAPICommand = async (output, context) => {
@@ -2806,24 +2806,24 @@ const deserializeAws_restJson1UpdateBackendAPICommand = async (output, context)
2806
2806
  Operation: undefined,
2807
2807
  Status: undefined,
2808
2808
  };
2809
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2809
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2810
2810
  if (data.appId !== undefined && data.appId !== null) {
2811
- contents.AppId = smithy_client_1.expectString(data.appId);
2811
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2812
2812
  }
2813
2813
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2814
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2814
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2815
2815
  }
2816
2816
  if (data.error !== undefined && data.error !== null) {
2817
- contents.Error = smithy_client_1.expectString(data.error);
2817
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2818
2818
  }
2819
2819
  if (data.jobId !== undefined && data.jobId !== null) {
2820
- contents.JobId = smithy_client_1.expectString(data.jobId);
2820
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
2821
2821
  }
2822
2822
  if (data.operation !== undefined && data.operation !== null) {
2823
- contents.Operation = smithy_client_1.expectString(data.operation);
2823
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
2824
2824
  }
2825
2825
  if (data.status !== undefined && data.status !== null) {
2826
- contents.Status = smithy_client_1.expectString(data.status);
2826
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2827
2827
  }
2828
2828
  return Promise.resolve(contents);
2829
2829
  };
@@ -2856,7 +2856,7 @@ const deserializeAws_restJson1UpdateBackendAPICommandError = async (output, cont
2856
2856
  $fault: "client",
2857
2857
  $metadata: deserializeMetadata(output),
2858
2858
  });
2859
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2859
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2860
2860
  }
2861
2861
  };
2862
2862
  const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, context) => {
@@ -2872,24 +2872,24 @@ const deserializeAws_restJson1UpdateBackendAuthCommand = async (output, context)
2872
2872
  Operation: undefined,
2873
2873
  Status: undefined,
2874
2874
  };
2875
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2875
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2876
2876
  if (data.appId !== undefined && data.appId !== null) {
2877
- contents.AppId = smithy_client_1.expectString(data.appId);
2877
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2878
2878
  }
2879
2879
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
2880
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
2880
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
2881
2881
  }
2882
2882
  if (data.error !== undefined && data.error !== null) {
2883
- contents.Error = smithy_client_1.expectString(data.error);
2883
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2884
2884
  }
2885
2885
  if (data.jobId !== undefined && data.jobId !== null) {
2886
- contents.JobId = smithy_client_1.expectString(data.jobId);
2886
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
2887
2887
  }
2888
2888
  if (data.operation !== undefined && data.operation !== null) {
2889
- contents.Operation = smithy_client_1.expectString(data.operation);
2889
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
2890
2890
  }
2891
2891
  if (data.status !== undefined && data.status !== null) {
2892
- contents.Status = smithy_client_1.expectString(data.status);
2892
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2893
2893
  }
2894
2894
  return Promise.resolve(contents);
2895
2895
  };
@@ -2922,7 +2922,7 @@ const deserializeAws_restJson1UpdateBackendAuthCommandError = async (output, con
2922
2922
  $fault: "client",
2923
2923
  $metadata: deserializeMetadata(output),
2924
2924
  });
2925
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2925
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2926
2926
  }
2927
2927
  };
2928
2928
  const deserializeAws_restJson1UpdateBackendConfigCommand = async (output, context) => {
@@ -2936,15 +2936,15 @@ const deserializeAws_restJson1UpdateBackendConfigCommand = async (output, contex
2936
2936
  Error: undefined,
2937
2937
  LoginAuthConfig: undefined,
2938
2938
  };
2939
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2939
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2940
2940
  if (data.appId !== undefined && data.appId !== null) {
2941
- contents.AppId = smithy_client_1.expectString(data.appId);
2941
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
2942
2942
  }
2943
2943
  if (data.backendManagerAppId !== undefined && data.backendManagerAppId !== null) {
2944
- contents.BackendManagerAppId = smithy_client_1.expectString(data.backendManagerAppId);
2944
+ contents.BackendManagerAppId = (0, smithy_client_1.expectString)(data.backendManagerAppId);
2945
2945
  }
2946
2946
  if (data.error !== undefined && data.error !== null) {
2947
- contents.Error = smithy_client_1.expectString(data.error);
2947
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
2948
2948
  }
2949
2949
  if (data.loginAuthConfig !== undefined && data.loginAuthConfig !== null) {
2950
2950
  contents.LoginAuthConfig = deserializeAws_restJson1LoginAuthConfigReqObj(data.loginAuthConfig, context);
@@ -2980,7 +2980,7 @@ const deserializeAws_restJson1UpdateBackendConfigCommandError = async (output, c
2980
2980
  $fault: "client",
2981
2981
  $metadata: deserializeMetadata(output),
2982
2982
  });
2983
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2983
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2984
2984
  }
2985
2985
  };
2986
2986
  const deserializeAws_restJson1UpdateBackendJobCommand = async (output, context) => {
@@ -2998,30 +2998,30 @@ const deserializeAws_restJson1UpdateBackendJobCommand = async (output, context)
2998
2998
  Status: undefined,
2999
2999
  UpdateTime: undefined,
3000
3000
  };
3001
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3001
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3002
3002
  if (data.appId !== undefined && data.appId !== null) {
3003
- contents.AppId = smithy_client_1.expectString(data.appId);
3003
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
3004
3004
  }
3005
3005
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
3006
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
3006
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
3007
3007
  }
3008
3008
  if (data.createTime !== undefined && data.createTime !== null) {
3009
- contents.CreateTime = smithy_client_1.expectString(data.createTime);
3009
+ contents.CreateTime = (0, smithy_client_1.expectString)(data.createTime);
3010
3010
  }
3011
3011
  if (data.error !== undefined && data.error !== null) {
3012
- contents.Error = smithy_client_1.expectString(data.error);
3012
+ contents.Error = (0, smithy_client_1.expectString)(data.error);
3013
3013
  }
3014
3014
  if (data.jobId !== undefined && data.jobId !== null) {
3015
- contents.JobId = smithy_client_1.expectString(data.jobId);
3015
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
3016
3016
  }
3017
3017
  if (data.operation !== undefined && data.operation !== null) {
3018
- contents.Operation = smithy_client_1.expectString(data.operation);
3018
+ contents.Operation = (0, smithy_client_1.expectString)(data.operation);
3019
3019
  }
3020
3020
  if (data.status !== undefined && data.status !== null) {
3021
- contents.Status = smithy_client_1.expectString(data.status);
3021
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
3022
3022
  }
3023
3023
  if (data.updateTime !== undefined && data.updateTime !== null) {
3024
- contents.UpdateTime = smithy_client_1.expectString(data.updateTime);
3024
+ contents.UpdateTime = (0, smithy_client_1.expectString)(data.updateTime);
3025
3025
  }
3026
3026
  return Promise.resolve(contents);
3027
3027
  };
@@ -3054,7 +3054,7 @@ const deserializeAws_restJson1UpdateBackendJobCommandError = async (output, cont
3054
3054
  $fault: "client",
3055
3055
  $metadata: deserializeMetadata(output),
3056
3056
  });
3057
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3057
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3058
3058
  }
3059
3059
  };
3060
3060
  const deserializeAws_restJson1UpdateBackendStorageCommand = async (output, context) => {
@@ -3068,18 +3068,18 @@ const deserializeAws_restJson1UpdateBackendStorageCommand = async (output, conte
3068
3068
  JobId: undefined,
3069
3069
  Status: undefined,
3070
3070
  };
3071
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3071
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3072
3072
  if (data.appId !== undefined && data.appId !== null) {
3073
- contents.AppId = smithy_client_1.expectString(data.appId);
3073
+ contents.AppId = (0, smithy_client_1.expectString)(data.appId);
3074
3074
  }
3075
3075
  if (data.backendEnvironmentName !== undefined && data.backendEnvironmentName !== null) {
3076
- contents.BackendEnvironmentName = smithy_client_1.expectString(data.backendEnvironmentName);
3076
+ contents.BackendEnvironmentName = (0, smithy_client_1.expectString)(data.backendEnvironmentName);
3077
3077
  }
3078
3078
  if (data.jobId !== undefined && data.jobId !== null) {
3079
- contents.JobId = smithy_client_1.expectString(data.jobId);
3079
+ contents.JobId = (0, smithy_client_1.expectString)(data.jobId);
3080
3080
  }
3081
3081
  if (data.status !== undefined && data.status !== null) {
3082
- contents.Status = smithy_client_1.expectString(data.status);
3082
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
3083
3083
  }
3084
3084
  return Promise.resolve(contents);
3085
3085
  };
@@ -3112,62 +3112,62 @@ const deserializeAws_restJson1UpdateBackendStorageCommandError = async (output,
3112
3112
  $fault: "client",
3113
3113
  $metadata: deserializeMetadata(output),
3114
3114
  });
3115
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3115
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3116
3116
  }
3117
3117
  };
3118
3118
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
3119
3119
  const contents = {};
3120
3120
  const data = parsedOutput.body;
3121
3121
  if (data.message !== undefined && data.message !== null) {
3122
- contents.Message = smithy_client_1.expectString(data.message);
3122
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
3123
3123
  }
3124
3124
  const exception = new models_0_1.BadRequestException({
3125
3125
  $metadata: deserializeMetadata(parsedOutput),
3126
3126
  ...contents,
3127
3127
  });
3128
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3128
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3129
3129
  };
3130
3130
  const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOutput, context) => {
3131
3131
  const contents = {};
3132
3132
  const data = parsedOutput.body;
3133
3133
  if (data.message !== undefined && data.message !== null) {
3134
- contents.Message = smithy_client_1.expectString(data.message);
3134
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
3135
3135
  }
3136
3136
  const exception = new models_0_1.GatewayTimeoutException({
3137
3137
  $metadata: deserializeMetadata(parsedOutput),
3138
3138
  ...contents,
3139
3139
  });
3140
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3140
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3141
3141
  };
3142
3142
  const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
3143
3143
  const contents = {};
3144
3144
  const data = parsedOutput.body;
3145
3145
  if (data.message !== undefined && data.message !== null) {
3146
- contents.Message = smithy_client_1.expectString(data.message);
3146
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
3147
3147
  }
3148
3148
  if (data.resourceType !== undefined && data.resourceType !== null) {
3149
- contents.ResourceType = smithy_client_1.expectString(data.resourceType);
3149
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.resourceType);
3150
3150
  }
3151
3151
  const exception = new models_0_1.NotFoundException({
3152
3152
  $metadata: deserializeMetadata(parsedOutput),
3153
3153
  ...contents,
3154
3154
  });
3155
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3155
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3156
3156
  };
3157
3157
  const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
3158
3158
  const contents = {};
3159
3159
  const data = parsedOutput.body;
3160
3160
  if (data.limitType !== undefined && data.limitType !== null) {
3161
- contents.LimitType = smithy_client_1.expectString(data.limitType);
3161
+ contents.LimitType = (0, smithy_client_1.expectString)(data.limitType);
3162
3162
  }
3163
3163
  if (data.message !== undefined && data.message !== null) {
3164
- contents.Message = smithy_client_1.expectString(data.message);
3164
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
3165
3165
  }
3166
3166
  const exception = new models_0_1.TooManyRequestsException({
3167
3167
  $metadata: deserializeMetadata(parsedOutput),
3168
3168
  ...contents,
3169
3169
  });
3170
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
3170
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3171
3171
  };
3172
3172
  const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) => {
3173
3173
  return {
@@ -3175,7 +3175,7 @@ const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (input, context) =>
3175
3175
  input.CognitoUserPoolId !== null && { cognitoUserPoolId: input.CognitoUserPoolId }),
3176
3176
  ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
3177
3177
  ...(input.ExpirationTime !== undefined &&
3178
- input.ExpirationTime !== null && { expirationTime: smithy_client_1.serializeFloat(input.ExpirationTime) }),
3178
+ input.ExpirationTime !== null && { expirationTime: (0, smithy_client_1.serializeFloat)(input.ExpirationTime) }),
3179
3179
  ...(input.OpenIDAuthTTL !== undefined && input.OpenIDAuthTTL !== null && { openIDAuthTTL: input.OpenIDAuthTTL }),
3180
3180
  ...(input.OpenIDClientId !== undefined &&
3181
3181
  input.OpenIDClientId !== null && { openIDClientId: input.OpenIDClientId }),
@@ -3304,7 +3304,7 @@ const serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (input, cont
3304
3304
  additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
3305
3305
  }),
3306
3306
  ...(input.MinimumLength !== undefined &&
3307
- input.MinimumLength !== null && { minimumLength: smithy_client_1.serializeFloat(input.MinimumLength) }),
3307
+ input.MinimumLength !== null && { minimumLength: (0, smithy_client_1.serializeFloat)(input.MinimumLength) }),
3308
3308
  };
3309
3309
  };
3310
3310
  const serializeAws_restJson1CreateBackendAuthResourceConfig = (input, context) => {
@@ -3341,6 +3341,22 @@ const serializeAws_restJson1CreateBackendAuthUserPoolConfig = (input, context) =
3341
3341
  }),
3342
3342
  ...(input.SignInMethod !== undefined && input.SignInMethod !== null && { signInMethod: input.SignInMethod }),
3343
3343
  ...(input.UserPoolName !== undefined && input.UserPoolName !== null && { userPoolName: input.UserPoolName }),
3344
+ ...(input.VerificationMessage !== undefined &&
3345
+ input.VerificationMessage !== null && {
3346
+ verificationMessage: serializeAws_restJson1CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
3347
+ }),
3348
+ };
3349
+ };
3350
+ const serializeAws_restJson1CreateBackendAuthVerificationMessageConfig = (input, context) => {
3351
+ return {
3352
+ ...(input.DeliveryMethod !== undefined &&
3353
+ input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod }),
3354
+ ...(input.EmailSettings !== undefined &&
3355
+ input.EmailSettings !== null && {
3356
+ emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
3357
+ }),
3358
+ ...(input.SmsSettings !== undefined &&
3359
+ input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
3344
3360
  };
3345
3361
  };
3346
3362
  const serializeAws_restJson1CreateBackendStorageResourceConfig = (input, context) => {
@@ -3541,7 +3557,7 @@ const serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = (input, cont
3541
3557
  additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
3542
3558
  }),
3543
3559
  ...(input.MinimumLength !== undefined &&
3544
- input.MinimumLength !== null && { minimumLength: smithy_client_1.serializeFloat(input.MinimumLength) }),
3560
+ input.MinimumLength !== null && { minimumLength: (0, smithy_client_1.serializeFloat)(input.MinimumLength) }),
3545
3561
  };
3546
3562
  };
3547
3563
  const serializeAws_restJson1UpdateBackendAuthResourceConfig = (input, context) => {
@@ -3572,6 +3588,22 @@ const serializeAws_restJson1UpdateBackendAuthUserPoolConfig = (input, context) =
3572
3588
  input.PasswordPolicy !== null && {
3573
3589
  passwordPolicy: serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
3574
3590
  }),
3591
+ ...(input.VerificationMessage !== undefined &&
3592
+ input.VerificationMessage !== null && {
3593
+ verificationMessage: serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
3594
+ }),
3595
+ };
3596
+ };
3597
+ const serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig = (input, context) => {
3598
+ return {
3599
+ ...(input.DeliveryMethod !== undefined &&
3600
+ input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod }),
3601
+ ...(input.EmailSettings !== undefined &&
3602
+ input.EmailSettings !== null && {
3603
+ emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
3604
+ }),
3605
+ ...(input.SmsSettings !== undefined &&
3606
+ input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }),
3575
3607
  };
3576
3608
  };
3577
3609
  const serializeAws_restJson1UpdateBackendStorageResourceConfig = (input, context) => {
@@ -3585,19 +3617,19 @@ const serializeAws_restJson1UpdateBackendStorageResourceConfig = (input, context
3585
3617
  };
3586
3618
  const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (output, context) => {
3587
3619
  return {
3588
- CognitoUserPoolId: smithy_client_1.expectString(output.cognitoUserPoolId),
3589
- Description: smithy_client_1.expectString(output.description),
3590
- ExpirationTime: smithy_client_1.limitedParseDouble(output.expirationTime),
3591
- OpenIDAuthTTL: smithy_client_1.expectString(output.openIDAuthTTL),
3592
- OpenIDClientId: smithy_client_1.expectString(output.openIDClientId),
3593
- OpenIDIatTTL: smithy_client_1.expectString(output.openIDIatTTL),
3594
- OpenIDIssueURL: smithy_client_1.expectString(output.openIDIssueURL),
3595
- OpenIDProviderName: smithy_client_1.expectString(output.openIDProviderName),
3620
+ CognitoUserPoolId: (0, smithy_client_1.expectString)(output.cognitoUserPoolId),
3621
+ Description: (0, smithy_client_1.expectString)(output.description),
3622
+ ExpirationTime: (0, smithy_client_1.limitedParseDouble)(output.expirationTime),
3623
+ OpenIDAuthTTL: (0, smithy_client_1.expectString)(output.openIDAuthTTL),
3624
+ OpenIDClientId: (0, smithy_client_1.expectString)(output.openIDClientId),
3625
+ OpenIDIatTTL: (0, smithy_client_1.expectString)(output.openIDIatTTL),
3626
+ OpenIDIssueURL: (0, smithy_client_1.expectString)(output.openIDIssueURL),
3627
+ OpenIDProviderName: (0, smithy_client_1.expectString)(output.openIDProviderName),
3596
3628
  };
3597
3629
  };
3598
3630
  const deserializeAws_restJson1BackendAPIAuthType = (output, context) => {
3599
3631
  return {
3600
- Mode: smithy_client_1.expectString(output.mode),
3632
+ Mode: (0, smithy_client_1.expectString)(output.mode),
3601
3633
  Settings: output.settings !== undefined && output.settings !== null
3602
3634
  ? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
3603
3635
  : undefined,
@@ -3605,7 +3637,7 @@ const deserializeAws_restJson1BackendAPIAuthType = (output, context) => {
3605
3637
  };
3606
3638
  const deserializeAws_restJson1BackendAPIConflictResolution = (output, context) => {
3607
3639
  return {
3608
- ResolutionStrategy: smithy_client_1.expectString(output.resolutionStrategy),
3640
+ ResolutionStrategy: (0, smithy_client_1.expectString)(output.resolutionStrategy),
3609
3641
  };
3610
3642
  };
3611
3643
  const deserializeAws_restJson1BackendAPIResourceConfig = (output, context) => {
@@ -3613,41 +3645,41 @@ const deserializeAws_restJson1BackendAPIResourceConfig = (output, context) => {
3613
3645
  AdditionalAuthTypes: output.additionalAuthTypes !== undefined && output.additionalAuthTypes !== null
3614
3646
  ? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
3615
3647
  : undefined,
3616
- ApiName: smithy_client_1.expectString(output.apiName),
3648
+ ApiName: (0, smithy_client_1.expectString)(output.apiName),
3617
3649
  ConflictResolution: output.conflictResolution !== undefined && output.conflictResolution !== null
3618
3650
  ? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
3619
3651
  : undefined,
3620
3652
  DefaultAuthType: output.defaultAuthType !== undefined && output.defaultAuthType !== null
3621
3653
  ? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
3622
3654
  : undefined,
3623
- Service: smithy_client_1.expectString(output.service),
3624
- TransformSchema: smithy_client_1.expectString(output.transformSchema),
3655
+ Service: (0, smithy_client_1.expectString)(output.service),
3656
+ TransformSchema: (0, smithy_client_1.expectString)(output.transformSchema),
3625
3657
  };
3626
3658
  };
3627
3659
  const deserializeAws_restJson1BackendAuthAppleProviderConfig = (output, context) => {
3628
3660
  return {
3629
- ClientId: smithy_client_1.expectString(output.client_id),
3630
- KeyId: smithy_client_1.expectString(output.key_id),
3631
- PrivateKey: smithy_client_1.expectString(output.private_key),
3632
- TeamId: smithy_client_1.expectString(output.team_id),
3661
+ ClientId: (0, smithy_client_1.expectString)(output.client_id),
3662
+ KeyId: (0, smithy_client_1.expectString)(output.key_id),
3663
+ PrivateKey: (0, smithy_client_1.expectString)(output.private_key),
3664
+ TeamId: (0, smithy_client_1.expectString)(output.team_id),
3633
3665
  };
3634
3666
  };
3635
3667
  const deserializeAws_restJson1BackendAuthSocialProviderConfig = (output, context) => {
3636
3668
  return {
3637
- ClientId: smithy_client_1.expectString(output.client_id),
3638
- ClientSecret: smithy_client_1.expectString(output.client_secret),
3669
+ ClientId: (0, smithy_client_1.expectString)(output.client_id),
3670
+ ClientSecret: (0, smithy_client_1.expectString)(output.client_secret),
3639
3671
  };
3640
3672
  };
3641
3673
  const deserializeAws_restJson1BackendJobRespObj = (output, context) => {
3642
3674
  return {
3643
- AppId: smithy_client_1.expectString(output.appId),
3644
- BackendEnvironmentName: smithy_client_1.expectString(output.backendEnvironmentName),
3645
- CreateTime: smithy_client_1.expectString(output.createTime),
3646
- Error: smithy_client_1.expectString(output.error),
3647
- JobId: smithy_client_1.expectString(output.jobId),
3648
- Operation: smithy_client_1.expectString(output.operation),
3649
- Status: smithy_client_1.expectString(output.status),
3650
- UpdateTime: smithy_client_1.expectString(output.updateTime),
3675
+ AppId: (0, smithy_client_1.expectString)(output.appId),
3676
+ BackendEnvironmentName: (0, smithy_client_1.expectString)(output.backendEnvironmentName),
3677
+ CreateTime: (0, smithy_client_1.expectString)(output.createTime),
3678
+ Error: (0, smithy_client_1.expectString)(output.error),
3679
+ JobId: (0, smithy_client_1.expectString)(output.jobId),
3680
+ Operation: (0, smithy_client_1.expectString)(output.operation),
3681
+ Status: (0, smithy_client_1.expectString)(output.status),
3682
+ UpdateTime: (0, smithy_client_1.expectString)(output.updateTime),
3651
3683
  };
3652
3684
  };
3653
3685
  const deserializeAws_restJson1BackendStoragePermissions = (output, context) => {
@@ -3662,7 +3694,7 @@ const deserializeAws_restJson1BackendStoragePermissions = (output, context) => {
3662
3694
  };
3663
3695
  const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (output, context) => {
3664
3696
  return {
3665
- DeliveryMethod: smithy_client_1.expectString(output.deliveryMethod),
3697
+ DeliveryMethod: (0, smithy_client_1.expectString)(output.deliveryMethod),
3666
3698
  EmailSettings: output.emailSettings !== undefined && output.emailSettings !== null
3667
3699
  ? deserializeAws_restJson1EmailSettings(output.emailSettings, context)
3668
3700
  : undefined,
@@ -3673,13 +3705,13 @@ const deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = (output, c
3673
3705
  };
3674
3706
  const deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = (output, context) => {
3675
3707
  return {
3676
- IdentityPoolName: smithy_client_1.expectString(output.identityPoolName),
3677
- UnauthenticatedLogin: smithy_client_1.expectBoolean(output.unauthenticatedLogin),
3708
+ IdentityPoolName: (0, smithy_client_1.expectString)(output.identityPoolName),
3709
+ UnauthenticatedLogin: (0, smithy_client_1.expectBoolean)(output.unauthenticatedLogin),
3678
3710
  };
3679
3711
  };
3680
3712
  const deserializeAws_restJson1CreateBackendAuthMFAConfig = (output, context) => {
3681
3713
  return {
3682
- MFAMode: smithy_client_1.expectString(output.MFAMode),
3714
+ MFAMode: (0, smithy_client_1.expectString)(output.MFAMode),
3683
3715
  Settings: output.settings !== undefined && output.settings !== null
3684
3716
  ? deserializeAws_restJson1Settings(output.settings, context)
3685
3717
  : undefined,
@@ -3687,8 +3719,8 @@ const deserializeAws_restJson1CreateBackendAuthMFAConfig = (output, context) =>
3687
3719
  };
3688
3720
  const deserializeAws_restJson1CreateBackendAuthOAuthConfig = (output, context) => {
3689
3721
  return {
3690
- DomainPrefix: smithy_client_1.expectString(output.domainPrefix),
3691
- OAuthGrantType: smithy_client_1.expectString(output.oAuthGrantType),
3722
+ DomainPrefix: (0, smithy_client_1.expectString)(output.domainPrefix),
3723
+ OAuthGrantType: (0, smithy_client_1.expectString)(output.oAuthGrantType),
3692
3724
  OAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
3693
3725
  ? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
3694
3726
  : undefined,
@@ -3708,16 +3740,16 @@ const deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (output, c
3708
3740
  AdditionalConstraints: output.additionalConstraints !== undefined && output.additionalConstraints !== null
3709
3741
  ? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
3710
3742
  : undefined,
3711
- MinimumLength: smithy_client_1.limitedParseDouble(output.minimumLength),
3743
+ MinimumLength: (0, smithy_client_1.limitedParseDouble)(output.minimumLength),
3712
3744
  };
3713
3745
  };
3714
3746
  const deserializeAws_restJson1CreateBackendAuthResourceConfig = (output, context) => {
3715
3747
  return {
3716
- AuthResources: smithy_client_1.expectString(output.authResources),
3748
+ AuthResources: (0, smithy_client_1.expectString)(output.authResources),
3717
3749
  IdentityPoolConfigs: output.identityPoolConfigs !== undefined && output.identityPoolConfigs !== null
3718
3750
  ? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
3719
3751
  : undefined,
3720
- Service: smithy_client_1.expectString(output.service),
3752
+ Service: (0, smithy_client_1.expectString)(output.service),
3721
3753
  UserPoolConfigs: output.userPoolConfigs !== undefined && output.userPoolConfigs !== null
3722
3754
  ? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
3723
3755
  : undefined,
@@ -3740,24 +3772,38 @@ const deserializeAws_restJson1CreateBackendAuthUserPoolConfig = (output, context
3740
3772
  RequiredSignUpAttributes: output.requiredSignUpAttributes !== undefined && output.requiredSignUpAttributes !== null
3741
3773
  ? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
3742
3774
  : undefined,
3743
- SignInMethod: smithy_client_1.expectString(output.signInMethod),
3744
- UserPoolName: smithy_client_1.expectString(output.userPoolName),
3775
+ SignInMethod: (0, smithy_client_1.expectString)(output.signInMethod),
3776
+ UserPoolName: (0, smithy_client_1.expectString)(output.userPoolName),
3777
+ VerificationMessage: output.verificationMessage !== undefined && output.verificationMessage !== null
3778
+ ? deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
3779
+ : undefined,
3780
+ };
3781
+ };
3782
+ const deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig = (output, context) => {
3783
+ return {
3784
+ DeliveryMethod: (0, smithy_client_1.expectString)(output.deliveryMethod),
3785
+ EmailSettings: output.emailSettings !== undefined && output.emailSettings !== null
3786
+ ? deserializeAws_restJson1EmailSettings(output.emailSettings, context)
3787
+ : undefined,
3788
+ SmsSettings: output.smsSettings !== undefined && output.smsSettings !== null
3789
+ ? deserializeAws_restJson1SmsSettings(output.smsSettings, context)
3790
+ : undefined,
3745
3791
  };
3746
3792
  };
3747
3793
  const deserializeAws_restJson1EmailSettings = (output, context) => {
3748
3794
  return {
3749
- EmailMessage: smithy_client_1.expectString(output.emailMessage),
3750
- EmailSubject: smithy_client_1.expectString(output.emailSubject),
3795
+ EmailMessage: (0, smithy_client_1.expectString)(output.emailMessage),
3796
+ EmailSubject: (0, smithy_client_1.expectString)(output.emailSubject),
3751
3797
  };
3752
3798
  };
3753
3799
  const deserializeAws_restJson1GetBackendStorageResourceConfig = (output, context) => {
3754
3800
  return {
3755
- BucketName: smithy_client_1.expectString(output.bucketName),
3756
- Imported: smithy_client_1.expectBoolean(output.imported),
3801
+ BucketName: (0, smithy_client_1.expectString)(output.bucketName),
3802
+ Imported: (0, smithy_client_1.expectBoolean)(output.imported),
3757
3803
  Permissions: output.permissions !== undefined && output.permissions !== null
3758
3804
  ? deserializeAws_restJson1BackendStoragePermissions(output.permissions, context)
3759
3805
  : undefined,
3760
- ServiceName: smithy_client_1.expectString(output.serviceName),
3806
+ ServiceName: (0, smithy_client_1.expectString)(output.serviceName),
3761
3807
  };
3762
3808
  };
3763
3809
  const deserializeAws_restJson1ListOf__string = (output, context) => {
@@ -3767,7 +3813,7 @@ const deserializeAws_restJson1ListOf__string = (output, context) => {
3767
3813
  if (entry === null) {
3768
3814
  return null;
3769
3815
  }
3770
- return smithy_client_1.expectString(entry);
3816
+ return (0, smithy_client_1.expectString)(entry);
3771
3817
  });
3772
3818
  return retVal;
3773
3819
  };
@@ -3778,7 +3824,7 @@ const deserializeAws_restJson1ListOfAdditionalConstraintsElement = (output, cont
3778
3824
  if (entry === null) {
3779
3825
  return null;
3780
3826
  }
3781
- return smithy_client_1.expectString(entry);
3827
+ return (0, smithy_client_1.expectString)(entry);
3782
3828
  });
3783
3829
  return retVal;
3784
3830
  };
@@ -3789,7 +3835,7 @@ const deserializeAws_restJson1ListOfAuthenticatedElement = (output, context) =>
3789
3835
  if (entry === null) {
3790
3836
  return null;
3791
3837
  }
3792
- return smithy_client_1.expectString(entry);
3838
+ return (0, smithy_client_1.expectString)(entry);
3793
3839
  });
3794
3840
  return retVal;
3795
3841
  };
@@ -3822,7 +3868,7 @@ const deserializeAws_restJson1ListOfMfaTypesElement = (output, context) => {
3822
3868
  if (entry === null) {
3823
3869
  return null;
3824
3870
  }
3825
- return smithy_client_1.expectString(entry);
3871
+ return (0, smithy_client_1.expectString)(entry);
3826
3872
  });
3827
3873
  return retVal;
3828
3874
  };
@@ -3833,7 +3879,7 @@ const deserializeAws_restJson1ListOfOAuthScopesElement = (output, context) => {
3833
3879
  if (entry === null) {
3834
3880
  return null;
3835
3881
  }
3836
- return smithy_client_1.expectString(entry);
3882
+ return (0, smithy_client_1.expectString)(entry);
3837
3883
  });
3838
3884
  return retVal;
3839
3885
  };
@@ -3844,7 +3890,7 @@ const deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = (output, c
3844
3890
  if (entry === null) {
3845
3891
  return null;
3846
3892
  }
3847
- return smithy_client_1.expectString(entry);
3893
+ return (0, smithy_client_1.expectString)(entry);
3848
3894
  });
3849
3895
  return retVal;
3850
3896
  };
@@ -3866,22 +3912,22 @@ const deserializeAws_restJson1ListOfUnAuthenticatedElement = (output, context) =
3866
3912
  if (entry === null) {
3867
3913
  return null;
3868
3914
  }
3869
- return smithy_client_1.expectString(entry);
3915
+ return (0, smithy_client_1.expectString)(entry);
3870
3916
  });
3871
3917
  return retVal;
3872
3918
  };
3873
3919
  const deserializeAws_restJson1LoginAuthConfigReqObj = (output, context) => {
3874
3920
  return {
3875
- AwsCognitoIdentityPoolId: smithy_client_1.expectString(output.aws_cognito_identity_pool_id),
3876
- AwsCognitoRegion: smithy_client_1.expectString(output.aws_cognito_region),
3877
- AwsUserPoolsId: smithy_client_1.expectString(output.aws_user_pools_id),
3878
- AwsUserPoolsWebClientId: smithy_client_1.expectString(output.aws_user_pools_web_client_id),
3921
+ AwsCognitoIdentityPoolId: (0, smithy_client_1.expectString)(output.aws_cognito_identity_pool_id),
3922
+ AwsCognitoRegion: (0, smithy_client_1.expectString)(output.aws_cognito_region),
3923
+ AwsUserPoolsId: (0, smithy_client_1.expectString)(output.aws_user_pools_id),
3924
+ AwsUserPoolsWebClientId: (0, smithy_client_1.expectString)(output.aws_user_pools_web_client_id),
3879
3925
  };
3880
3926
  };
3881
3927
  const deserializeAws_restJson1S3BucketInfo = (output, context) => {
3882
3928
  return {
3883
- CreationDate: smithy_client_1.expectString(output.creationDate),
3884
- Name: smithy_client_1.expectString(output.name),
3929
+ CreationDate: (0, smithy_client_1.expectString)(output.creationDate),
3930
+ Name: (0, smithy_client_1.expectString)(output.name),
3885
3931
  };
3886
3932
  };
3887
3933
  const deserializeAws_restJson1Settings = (output, context) => {
@@ -3889,12 +3935,12 @@ const deserializeAws_restJson1Settings = (output, context) => {
3889
3935
  MfaTypes: output.mfaTypes !== undefined && output.mfaTypes !== null
3890
3936
  ? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context)
3891
3937
  : undefined,
3892
- SmsMessage: smithy_client_1.expectString(output.smsMessage),
3938
+ SmsMessage: (0, smithy_client_1.expectString)(output.smsMessage),
3893
3939
  };
3894
3940
  };
3895
3941
  const deserializeAws_restJson1SmsSettings = (output, context) => {
3896
3942
  return {
3897
- SmsMessage: smithy_client_1.expectString(output.smsMessage),
3943
+ SmsMessage: (0, smithy_client_1.expectString)(output.smsMessage),
3898
3944
  };
3899
3945
  };
3900
3946
  const deserializeAws_restJson1SocialProviderSettings = (output, context) => {