@aws-sdk/client-lambda 3.54.0 → 3.56.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 (91) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/LambdaClient.js +13 -13
  3. package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +3 -3
  4. package/dist-cjs/commands/AddPermissionCommand.js +3 -3
  5. package/dist-cjs/commands/CreateAliasCommand.js +3 -3
  6. package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +3 -3
  7. package/dist-cjs/commands/CreateEventSourceMappingCommand.js +3 -3
  8. package/dist-cjs/commands/CreateFunctionCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteAliasCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteFunctionCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteLayerVersionCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +3 -3
  18. package/dist-cjs/commands/GetAccountSettingsCommand.js +3 -3
  19. package/dist-cjs/commands/GetAliasCommand.js +3 -3
  20. package/dist-cjs/commands/GetCodeSigningConfigCommand.js +3 -3
  21. package/dist-cjs/commands/GetEventSourceMappingCommand.js +3 -3
  22. package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +3 -3
  23. package/dist-cjs/commands/GetFunctionCommand.js +3 -3
  24. package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +3 -3
  25. package/dist-cjs/commands/GetFunctionConfigurationCommand.js +3 -3
  26. package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +3 -3
  27. package/dist-cjs/commands/GetLayerVersionByArnCommand.js +3 -3
  28. package/dist-cjs/commands/GetLayerVersionCommand.js +3 -3
  29. package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +3 -3
  30. package/dist-cjs/commands/GetPolicyCommand.js +3 -3
  31. package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +3 -3
  32. package/dist-cjs/commands/InvokeAsyncCommand.js +3 -3
  33. package/dist-cjs/commands/InvokeCommand.js +3 -3
  34. package/dist-cjs/commands/ListAliasesCommand.js +3 -3
  35. package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +3 -3
  36. package/dist-cjs/commands/ListEventSourceMappingsCommand.js +3 -3
  37. package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +3 -3
  38. package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +3 -3
  39. package/dist-cjs/commands/ListFunctionsCommand.js +3 -3
  40. package/dist-cjs/commands/ListLayerVersionsCommand.js +3 -3
  41. package/dist-cjs/commands/ListLayersCommand.js +3 -3
  42. package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +3 -3
  43. package/dist-cjs/commands/ListTagsCommand.js +3 -3
  44. package/dist-cjs/commands/ListVersionsByFunctionCommand.js +3 -3
  45. package/dist-cjs/commands/PublishLayerVersionCommand.js +3 -3
  46. package/dist-cjs/commands/PublishVersionCommand.js +3 -3
  47. package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +3 -3
  48. package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +3 -3
  49. package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +3 -3
  50. package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +3 -3
  51. package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +3 -3
  52. package/dist-cjs/commands/RemovePermissionCommand.js +3 -3
  53. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  54. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  55. package/dist-cjs/commands/UpdateAliasCommand.js +3 -3
  56. package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +3 -3
  57. package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +3 -3
  58. package/dist-cjs/commands/UpdateFunctionCodeCommand.js +3 -3
  59. package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +3 -3
  60. package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +3 -3
  61. package/dist-cjs/endpoints.js +1 -1
  62. package/dist-cjs/models/models_0.js +10 -4
  63. package/dist-cjs/protocols/Aws_restJson1.js +692 -649
  64. package/dist-cjs/runtimeConfig.browser.js +4 -4
  65. package/dist-cjs/runtimeConfig.js +9 -9
  66. package/dist-cjs/runtimeConfig.native.js +1 -1
  67. package/dist-cjs/waiters/waitForFunctionActive.js +3 -3
  68. package/dist-cjs/waiters/waitForFunctionActiveV2.js +3 -3
  69. package/dist-cjs/waiters/waitForFunctionExists.js +3 -3
  70. package/dist-cjs/waiters/waitForFunctionUpdated.js +3 -3
  71. package/dist-cjs/waiters/waitForFunctionUpdatedV2.js +3 -3
  72. package/dist-es/Lambda.js +58 -58
  73. package/dist-es/models/models_0.js +4 -0
  74. package/dist-es/pagination/ListAliasesPaginator.js +4 -4
  75. package/dist-es/pagination/ListCodeSigningConfigsPaginator.js +4 -4
  76. package/dist-es/pagination/ListEventSourceMappingsPaginator.js +4 -4
  77. package/dist-es/pagination/ListFunctionEventInvokeConfigsPaginator.js +4 -4
  78. package/dist-es/pagination/ListFunctionsByCodeSigningConfigPaginator.js +4 -4
  79. package/dist-es/pagination/ListFunctionsPaginator.js +4 -4
  80. package/dist-es/pagination/ListLayerVersionsPaginator.js +4 -4
  81. package/dist-es/pagination/ListLayersPaginator.js +4 -4
  82. package/dist-es/pagination/ListProvisionedConcurrencyConfigsPaginator.js +4 -4
  83. package/dist-es/pagination/ListVersionsByFunctionPaginator.js +4 -4
  84. package/dist-es/protocols/Aws_restJson1.js +102 -64
  85. package/dist-types/Lambda.d.ts +9 -7
  86. package/dist-types/commands/AddPermissionCommand.d.ts +9 -7
  87. package/dist-types/models/models_0.d.ts +32 -0
  88. package/dist-types/runtimeConfig.native.d.ts +2 -2
  89. package/dist-types/ts3.4/models/models_0.d.ts +17 -0
  90. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  91. package/package.json +35 -35
@@ -19,7 +19,7 @@ const serializeAws_restJson1AddLayerVersionPermissionCommand = async (input, con
19
19
  if (labelValue.length <= 0) {
20
20
  throw new Error("Empty value provided for input HTTP label: LayerName.");
21
21
  }
22
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
22
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
23
23
  }
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -29,7 +29,7 @@ const serializeAws_restJson1AddLayerVersionPermissionCommand = async (input, con
29
29
  if (labelValue.length <= 0) {
30
30
  throw new Error("Empty value provided for input HTTP label: VersionNumber.");
31
31
  }
32
- resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
32
+ resolvedPath = resolvedPath.replace("{VersionNumber}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
33
33
  }
34
34
  else {
35
35
  throw new Error("No value provided for input HTTP label: VersionNumber.");
@@ -69,7 +69,7 @@ const serializeAws_restJson1AddPermissionCommand = async (input, context) => {
69
69
  if (labelValue.length <= 0) {
70
70
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
71
71
  }
72
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
72
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
73
73
  }
74
74
  else {
75
75
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -83,6 +83,8 @@ const serializeAws_restJson1AddPermissionCommand = async (input, context) => {
83
83
  ...(input.EventSourceToken !== undefined &&
84
84
  input.EventSourceToken !== null && { EventSourceToken: input.EventSourceToken }),
85
85
  ...(input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal }),
86
+ ...(input.PrincipalOrgID !== undefined &&
87
+ input.PrincipalOrgID !== null && { PrincipalOrgID: input.PrincipalOrgID }),
86
88
  ...(input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId }),
87
89
  ...(input.SourceAccount !== undefined && input.SourceAccount !== null && { SourceAccount: input.SourceAccount }),
88
90
  ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
@@ -112,7 +114,7 @@ const serializeAws_restJson1CreateAliasCommand = async (input, context) => {
112
114
  if (labelValue.length <= 0) {
113
115
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
114
116
  }
115
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
117
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
116
118
  }
117
119
  else {
118
120
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -260,6 +262,10 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
260
262
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
261
263
  ...(input.Environment !== undefined &&
262
264
  input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) }),
265
+ ...(input.EphemeralStorage !== undefined &&
266
+ input.EphemeralStorage !== null && {
267
+ EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
268
+ }),
263
269
  ...(input.FileSystemConfigs !== undefined &&
264
270
  input.FileSystemConfigs !== null && {
265
271
  FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
@@ -306,7 +312,7 @@ const serializeAws_restJson1DeleteAliasCommand = async (input, context) => {
306
312
  if (labelValue.length <= 0) {
307
313
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
308
314
  }
309
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
315
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
310
316
  }
311
317
  else {
312
318
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -316,7 +322,7 @@ const serializeAws_restJson1DeleteAliasCommand = async (input, context) => {
316
322
  if (labelValue.length <= 0) {
317
323
  throw new Error("Empty value provided for input HTTP label: Name.");
318
324
  }
319
- resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
325
+ resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
320
326
  }
321
327
  else {
322
328
  throw new Error("No value provided for input HTTP label: Name.");
@@ -343,7 +349,7 @@ const serializeAws_restJson1DeleteCodeSigningConfigCommand = async (input, conte
343
349
  if (labelValue.length <= 0) {
344
350
  throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
345
351
  }
346
- resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
352
+ resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
347
353
  }
348
354
  else {
349
355
  throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
@@ -369,7 +375,7 @@ const serializeAws_restJson1DeleteEventSourceMappingCommand = async (input, cont
369
375
  if (labelValue.length <= 0) {
370
376
  throw new Error("Empty value provided for input HTTP label: UUID.");
371
377
  }
372
- resolvedPath = resolvedPath.replace("{UUID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
378
+ resolvedPath = resolvedPath.replace("{UUID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
373
379
  }
374
380
  else {
375
381
  throw new Error("No value provided for input HTTP label: UUID.");
@@ -395,7 +401,7 @@ const serializeAws_restJson1DeleteFunctionCommand = async (input, context) => {
395
401
  if (labelValue.length <= 0) {
396
402
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
397
403
  }
398
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
404
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
399
405
  }
400
406
  else {
401
407
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -426,7 +432,7 @@ const serializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = async (inpu
426
432
  if (labelValue.length <= 0) {
427
433
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
428
434
  }
429
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
435
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
430
436
  }
431
437
  else {
432
438
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -453,7 +459,7 @@ const serializeAws_restJson1DeleteFunctionConcurrencyCommand = async (input, con
453
459
  if (labelValue.length <= 0) {
454
460
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
455
461
  }
456
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
462
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
457
463
  }
458
464
  else {
459
465
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -480,7 +486,7 @@ const serializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = async (inpu
480
486
  if (labelValue.length <= 0) {
481
487
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
482
488
  }
483
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
489
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
484
490
  }
485
491
  else {
486
492
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -511,7 +517,7 @@ const serializeAws_restJson1DeleteLayerVersionCommand = async (input, context) =
511
517
  if (labelValue.length <= 0) {
512
518
  throw new Error("Empty value provided for input HTTP label: LayerName.");
513
519
  }
514
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
520
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
515
521
  }
516
522
  else {
517
523
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -521,7 +527,7 @@ const serializeAws_restJson1DeleteLayerVersionCommand = async (input, context) =
521
527
  if (labelValue.length <= 0) {
522
528
  throw new Error("Empty value provided for input HTTP label: VersionNumber.");
523
529
  }
524
- resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
530
+ resolvedPath = resolvedPath.replace("{VersionNumber}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
525
531
  }
526
532
  else {
527
533
  throw new Error("No value provided for input HTTP label: VersionNumber.");
@@ -548,7 +554,7 @@ const serializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = async (i
548
554
  if (labelValue.length <= 0) {
549
555
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
550
556
  }
551
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
557
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
552
558
  }
553
559
  else {
554
560
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -598,7 +604,7 @@ const serializeAws_restJson1GetAliasCommand = async (input, context) => {
598
604
  if (labelValue.length <= 0) {
599
605
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
600
606
  }
601
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
607
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
602
608
  }
603
609
  else {
604
610
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -608,7 +614,7 @@ const serializeAws_restJson1GetAliasCommand = async (input, context) => {
608
614
  if (labelValue.length <= 0) {
609
615
  throw new Error("Empty value provided for input HTTP label: Name.");
610
616
  }
611
- resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
617
+ resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
612
618
  }
613
619
  else {
614
620
  throw new Error("No value provided for input HTTP label: Name.");
@@ -635,7 +641,7 @@ const serializeAws_restJson1GetCodeSigningConfigCommand = async (input, context)
635
641
  if (labelValue.length <= 0) {
636
642
  throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
637
643
  }
638
- resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
644
+ resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
639
645
  }
640
646
  else {
641
647
  throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
@@ -661,7 +667,7 @@ const serializeAws_restJson1GetEventSourceMappingCommand = async (input, context
661
667
  if (labelValue.length <= 0) {
662
668
  throw new Error("Empty value provided for input HTTP label: UUID.");
663
669
  }
664
- resolvedPath = resolvedPath.replace("{UUID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
670
+ resolvedPath = resolvedPath.replace("{UUID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
665
671
  }
666
672
  else {
667
673
  throw new Error("No value provided for input HTTP label: UUID.");
@@ -687,7 +693,7 @@ const serializeAws_restJson1GetFunctionCommand = async (input, context) => {
687
693
  if (labelValue.length <= 0) {
688
694
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
689
695
  }
690
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
696
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
691
697
  }
692
698
  else {
693
699
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -718,7 +724,7 @@ const serializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (input,
718
724
  if (labelValue.length <= 0) {
719
725
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
720
726
  }
721
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
727
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
722
728
  }
723
729
  else {
724
730
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -745,7 +751,7 @@ const serializeAws_restJson1GetFunctionConcurrencyCommand = async (input, contex
745
751
  if (labelValue.length <= 0) {
746
752
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
747
753
  }
748
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
754
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
749
755
  }
750
756
  else {
751
757
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -772,7 +778,7 @@ const serializeAws_restJson1GetFunctionConfigurationCommand = async (input, cont
772
778
  if (labelValue.length <= 0) {
773
779
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
774
780
  }
775
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
781
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
776
782
  }
777
783
  else {
778
784
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -803,7 +809,7 @@ const serializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (input,
803
809
  if (labelValue.length <= 0) {
804
810
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
805
811
  }
806
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
812
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
807
813
  }
808
814
  else {
809
815
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -834,7 +840,7 @@ const serializeAws_restJson1GetLayerVersionCommand = async (input, context) => {
834
840
  if (labelValue.length <= 0) {
835
841
  throw new Error("Empty value provided for input HTTP label: LayerName.");
836
842
  }
837
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
843
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
838
844
  }
839
845
  else {
840
846
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -844,7 +850,7 @@ const serializeAws_restJson1GetLayerVersionCommand = async (input, context) => {
844
850
  if (labelValue.length <= 0) {
845
851
  throw new Error("Empty value provided for input HTTP label: VersionNumber.");
846
852
  }
847
- resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
853
+ resolvedPath = resolvedPath.replace("{VersionNumber}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
848
854
  }
849
855
  else {
850
856
  throw new Error("No value provided for input HTTP label: VersionNumber.");
@@ -892,7 +898,7 @@ const serializeAws_restJson1GetLayerVersionPolicyCommand = async (input, context
892
898
  if (labelValue.length <= 0) {
893
899
  throw new Error("Empty value provided for input HTTP label: LayerName.");
894
900
  }
895
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
901
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
896
902
  }
897
903
  else {
898
904
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -902,7 +908,7 @@ const serializeAws_restJson1GetLayerVersionPolicyCommand = async (input, context
902
908
  if (labelValue.length <= 0) {
903
909
  throw new Error("Empty value provided for input HTTP label: VersionNumber.");
904
910
  }
905
- resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
911
+ resolvedPath = resolvedPath.replace("{VersionNumber}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
906
912
  }
907
913
  else {
908
914
  throw new Error("No value provided for input HTTP label: VersionNumber.");
@@ -929,7 +935,7 @@ const serializeAws_restJson1GetPolicyCommand = async (input, context) => {
929
935
  if (labelValue.length <= 0) {
930
936
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
931
937
  }
932
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
938
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
933
939
  }
934
940
  else {
935
941
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -960,7 +966,7 @@ const serializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (inpu
960
966
  if (labelValue.length <= 0) {
961
967
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
962
968
  }
963
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
969
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
964
970
  }
965
971
  else {
966
972
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -996,7 +1002,7 @@ const serializeAws_restJson1InvokeCommand = async (input, context) => {
996
1002
  if (labelValue.length <= 0) {
997
1003
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
998
1004
  }
999
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1005
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1000
1006
  }
1001
1007
  else {
1002
1008
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1032,7 +1038,7 @@ const serializeAws_restJson1InvokeAsyncCommand = async (input, context) => {
1032
1038
  if (labelValue.length <= 0) {
1033
1039
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1034
1040
  }
1035
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1041
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1036
1042
  }
1037
1043
  else {
1038
1044
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1062,7 +1068,7 @@ const serializeAws_restJson1ListAliasesCommand = async (input, context) => {
1062
1068
  if (labelValue.length <= 0) {
1063
1069
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1064
1070
  }
1065
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1071
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1066
1072
  }
1067
1073
  else {
1068
1074
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1139,7 +1145,7 @@ const serializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (input
1139
1145
  if (labelValue.length <= 0) {
1140
1146
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1141
1147
  }
1142
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1148
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1143
1149
  }
1144
1150
  else {
1145
1151
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1194,7 +1200,7 @@ const serializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (inp
1194
1200
  if (labelValue.length <= 0) {
1195
1201
  throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
1196
1202
  }
1197
- resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1203
+ resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1198
1204
  }
1199
1205
  else {
1200
1206
  throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
@@ -1248,7 +1254,7 @@ const serializeAws_restJson1ListLayerVersionsCommand = async (input, context) =>
1248
1254
  if (labelValue.length <= 0) {
1249
1255
  throw new Error("Empty value provided for input HTTP label: LayerName.");
1250
1256
  }
1251
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1257
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1252
1258
  }
1253
1259
  else {
1254
1260
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -1282,7 +1288,7 @@ const serializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (in
1282
1288
  if (labelValue.length <= 0) {
1283
1289
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1284
1290
  }
1285
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1291
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1286
1292
  }
1287
1293
  else {
1288
1294
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1314,7 +1320,7 @@ const serializeAws_restJson1ListTagsCommand = async (input, context) => {
1314
1320
  if (labelValue.length <= 0) {
1315
1321
  throw new Error("Empty value provided for input HTTP label: Resource.");
1316
1322
  }
1317
- resolvedPath = resolvedPath.replace("{Resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1323
+ resolvedPath = resolvedPath.replace("{Resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1318
1324
  }
1319
1325
  else {
1320
1326
  throw new Error("No value provided for input HTTP label: Resource.");
@@ -1341,7 +1347,7 @@ const serializeAws_restJson1ListVersionsByFunctionCommand = async (input, contex
1341
1347
  if (labelValue.length <= 0) {
1342
1348
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1343
1349
  }
1344
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1350
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1345
1351
  }
1346
1352
  else {
1347
1353
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1374,7 +1380,7 @@ const serializeAws_restJson1PublishLayerVersionCommand = async (input, context)
1374
1380
  if (labelValue.length <= 0) {
1375
1381
  throw new Error("Empty value provided for input HTTP label: LayerName.");
1376
1382
  }
1377
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1383
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1378
1384
  }
1379
1385
  else {
1380
1386
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -1417,7 +1423,7 @@ const serializeAws_restJson1PublishVersionCommand = async (input, context) => {
1417
1423
  if (labelValue.length <= 0) {
1418
1424
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1419
1425
  }
1420
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1426
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1421
1427
  }
1422
1428
  else {
1423
1429
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1451,7 +1457,7 @@ const serializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (input,
1451
1457
  if (labelValue.length <= 0) {
1452
1458
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1453
1459
  }
1454
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1460
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1455
1461
  }
1456
1462
  else {
1457
1463
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1484,7 +1490,7 @@ const serializeAws_restJson1PutFunctionConcurrencyCommand = async (input, contex
1484
1490
  if (labelValue.length <= 0) {
1485
1491
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1486
1492
  }
1487
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1493
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1488
1494
  }
1489
1495
  else {
1490
1496
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1519,7 +1525,7 @@ const serializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (input,
1519
1525
  if (labelValue.length <= 0) {
1520
1526
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1521
1527
  }
1522
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1528
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1523
1529
  }
1524
1530
  else {
1525
1531
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1562,7 +1568,7 @@ const serializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (inpu
1562
1568
  if (labelValue.length <= 0) {
1563
1569
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1564
1570
  }
1565
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1571
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1566
1572
  }
1567
1573
  else {
1568
1574
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1599,7 +1605,7 @@ const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input,
1599
1605
  if (labelValue.length <= 0) {
1600
1606
  throw new Error("Empty value provided for input HTTP label: LayerName.");
1601
1607
  }
1602
- resolvedPath = resolvedPath.replace("{LayerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1608
+ resolvedPath = resolvedPath.replace("{LayerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1603
1609
  }
1604
1610
  else {
1605
1611
  throw new Error("No value provided for input HTTP label: LayerName.");
@@ -1609,7 +1615,7 @@ const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input,
1609
1615
  if (labelValue.length <= 0) {
1610
1616
  throw new Error("Empty value provided for input HTTP label: VersionNumber.");
1611
1617
  }
1612
- resolvedPath = resolvedPath.replace("{VersionNumber}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1618
+ resolvedPath = resolvedPath.replace("{VersionNumber}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1613
1619
  }
1614
1620
  else {
1615
1621
  throw new Error("No value provided for input HTTP label: VersionNumber.");
@@ -1619,7 +1625,7 @@ const serializeAws_restJson1RemoveLayerVersionPermissionCommand = async (input,
1619
1625
  if (labelValue.length <= 0) {
1620
1626
  throw new Error("Empty value provided for input HTTP label: StatementId.");
1621
1627
  }
1622
- resolvedPath = resolvedPath.replace("{StatementId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1628
+ resolvedPath = resolvedPath.replace("{StatementId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1623
1629
  }
1624
1630
  else {
1625
1631
  throw new Error("No value provided for input HTTP label: StatementId.");
@@ -1650,7 +1656,7 @@ const serializeAws_restJson1RemovePermissionCommand = async (input, context) =>
1650
1656
  if (labelValue.length <= 0) {
1651
1657
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1652
1658
  }
1653
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1659
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1654
1660
  }
1655
1661
  else {
1656
1662
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1660,7 +1666,7 @@ const serializeAws_restJson1RemovePermissionCommand = async (input, context) =>
1660
1666
  if (labelValue.length <= 0) {
1661
1667
  throw new Error("Empty value provided for input HTTP label: StatementId.");
1662
1668
  }
1663
- resolvedPath = resolvedPath.replace("{StatementId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1669
+ resolvedPath = resolvedPath.replace("{StatementId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1664
1670
  }
1665
1671
  else {
1666
1672
  throw new Error("No value provided for input HTTP label: StatementId.");
@@ -1693,7 +1699,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1693
1699
  if (labelValue.length <= 0) {
1694
1700
  throw new Error("Empty value provided for input HTTP label: Resource.");
1695
1701
  }
1696
- resolvedPath = resolvedPath.replace("{Resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1702
+ resolvedPath = resolvedPath.replace("{Resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1697
1703
  }
1698
1704
  else {
1699
1705
  throw new Error("No value provided for input HTTP label: Resource.");
@@ -1722,7 +1728,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1722
1728
  if (labelValue.length <= 0) {
1723
1729
  throw new Error("Empty value provided for input HTTP label: Resource.");
1724
1730
  }
1725
- resolvedPath = resolvedPath.replace("{Resource}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1731
+ resolvedPath = resolvedPath.replace("{Resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1726
1732
  }
1727
1733
  else {
1728
1734
  throw new Error("No value provided for input HTTP label: Resource.");
@@ -1755,7 +1761,7 @@ const serializeAws_restJson1UpdateAliasCommand = async (input, context) => {
1755
1761
  if (labelValue.length <= 0) {
1756
1762
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1757
1763
  }
1758
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1764
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1759
1765
  }
1760
1766
  else {
1761
1767
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1765,7 +1771,7 @@ const serializeAws_restJson1UpdateAliasCommand = async (input, context) => {
1765
1771
  if (labelValue.length <= 0) {
1766
1772
  throw new Error("Empty value provided for input HTTP label: Name.");
1767
1773
  }
1768
- resolvedPath = resolvedPath.replace("{Name}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1774
+ resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1769
1775
  }
1770
1776
  else {
1771
1777
  throw new Error("No value provided for input HTTP label: Name.");
@@ -1804,7 +1810,7 @@ const serializeAws_restJson1UpdateCodeSigningConfigCommand = async (input, conte
1804
1810
  if (labelValue.length <= 0) {
1805
1811
  throw new Error("Empty value provided for input HTTP label: CodeSigningConfigArn.");
1806
1812
  }
1807
- resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1813
+ resolvedPath = resolvedPath.replace("{CodeSigningConfigArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1808
1814
  }
1809
1815
  else {
1810
1816
  throw new Error("No value provided for input HTTP label: CodeSigningConfigArn.");
@@ -1843,7 +1849,7 @@ const serializeAws_restJson1UpdateEventSourceMappingCommand = async (input, cont
1843
1849
  if (labelValue.length <= 0) {
1844
1850
  throw new Error("Empty value provided for input HTTP label: UUID.");
1845
1851
  }
1846
- resolvedPath = resolvedPath.replace("{UUID}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1852
+ resolvedPath = resolvedPath.replace("{UUID}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1847
1853
  }
1848
1854
  else {
1849
1855
  throw new Error("No value provided for input HTTP label: UUID.");
@@ -1906,7 +1912,7 @@ const serializeAws_restJson1UpdateFunctionCodeCommand = async (input, context) =
1906
1912
  if (labelValue.length <= 0) {
1907
1913
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1908
1914
  }
1909
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1915
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1910
1916
  }
1911
1917
  else {
1912
1918
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1950,7 +1956,7 @@ const serializeAws_restJson1UpdateFunctionConfigurationCommand = async (input, c
1950
1956
  if (labelValue.length <= 0) {
1951
1957
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
1952
1958
  }
1953
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1959
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1954
1960
  }
1955
1961
  else {
1956
1962
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -1964,6 +1970,10 @@ const serializeAws_restJson1UpdateFunctionConfigurationCommand = async (input, c
1964
1970
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1965
1971
  ...(input.Environment !== undefined &&
1966
1972
  input.Environment !== null && { Environment: serializeAws_restJson1Environment(input.Environment, context) }),
1973
+ ...(input.EphemeralStorage !== undefined &&
1974
+ input.EphemeralStorage !== null && {
1975
+ EphemeralStorage: serializeAws_restJson1EphemeralStorage(input.EphemeralStorage, context),
1976
+ }),
1967
1977
  ...(input.FileSystemConfigs !== undefined &&
1968
1978
  input.FileSystemConfigs !== null && {
1969
1979
  FileSystemConfigs: serializeAws_restJson1FileSystemConfigList(input.FileSystemConfigs, context),
@@ -2009,7 +2019,7 @@ const serializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (inpu
2009
2019
  if (labelValue.length <= 0) {
2010
2020
  throw new Error("Empty value provided for input HTTP label: FunctionName.");
2011
2021
  }
2012
- resolvedPath = resolvedPath.replace("{FunctionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2022
+ resolvedPath = resolvedPath.replace("{FunctionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2013
2023
  }
2014
2024
  else {
2015
2025
  throw new Error("No value provided for input HTTP label: FunctionName.");
@@ -2049,12 +2059,12 @@ const deserializeAws_restJson1AddLayerVersionPermissionCommand = async (output,
2049
2059
  RevisionId: undefined,
2050
2060
  Statement: undefined,
2051
2061
  };
2052
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2062
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2053
2063
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2054
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
2064
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
2055
2065
  }
2056
2066
  if (data.Statement !== undefined && data.Statement !== null) {
2057
- contents.Statement = smithy_client_1.expectString(data.Statement);
2067
+ contents.Statement = (0, smithy_client_1.expectString)(data.Statement);
2058
2068
  }
2059
2069
  return Promise.resolve(contents);
2060
2070
  };
@@ -2096,7 +2106,7 @@ const deserializeAws_restJson1AddLayerVersionPermissionCommandError = async (out
2096
2106
  $fault: "client",
2097
2107
  $metadata: deserializeMetadata(output),
2098
2108
  });
2099
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2109
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2100
2110
  }
2101
2111
  };
2102
2112
  const deserializeAws_restJson1AddPermissionCommand = async (output, context) => {
@@ -2107,9 +2117,9 @@ const deserializeAws_restJson1AddPermissionCommand = async (output, context) =>
2107
2117
  $metadata: deserializeMetadata(output),
2108
2118
  Statement: undefined,
2109
2119
  };
2110
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2120
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2111
2121
  if (data.Statement !== undefined && data.Statement !== null) {
2112
- contents.Statement = smithy_client_1.expectString(data.Statement);
2122
+ contents.Statement = (0, smithy_client_1.expectString)(data.Statement);
2113
2123
  }
2114
2124
  return Promise.resolve(contents);
2115
2125
  };
@@ -2151,7 +2161,7 @@ const deserializeAws_restJson1AddPermissionCommandError = async (output, context
2151
2161
  $fault: "client",
2152
2162
  $metadata: deserializeMetadata(output),
2153
2163
  });
2154
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2164
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2155
2165
  }
2156
2166
  };
2157
2167
  const deserializeAws_restJson1CreateAliasCommand = async (output, context) => {
@@ -2167,21 +2177,21 @@ const deserializeAws_restJson1CreateAliasCommand = async (output, context) => {
2167
2177
  RevisionId: undefined,
2168
2178
  RoutingConfig: undefined,
2169
2179
  };
2170
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2180
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2171
2181
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
2172
- contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
2182
+ contents.AliasArn = (0, smithy_client_1.expectString)(data.AliasArn);
2173
2183
  }
2174
2184
  if (data.Description !== undefined && data.Description !== null) {
2175
- contents.Description = smithy_client_1.expectString(data.Description);
2185
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
2176
2186
  }
2177
2187
  if (data.FunctionVersion !== undefined && data.FunctionVersion !== null) {
2178
- contents.FunctionVersion = smithy_client_1.expectString(data.FunctionVersion);
2188
+ contents.FunctionVersion = (0, smithy_client_1.expectString)(data.FunctionVersion);
2179
2189
  }
2180
2190
  if (data.Name !== undefined && data.Name !== null) {
2181
- contents.Name = smithy_client_1.expectString(data.Name);
2191
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
2182
2192
  }
2183
2193
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2184
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
2194
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
2185
2195
  }
2186
2196
  if (data.RoutingConfig !== undefined && data.RoutingConfig !== null) {
2187
2197
  contents.RoutingConfig = deserializeAws_restJson1AliasRoutingConfiguration(data.RoutingConfig, context);
@@ -2220,7 +2230,7 @@ const deserializeAws_restJson1CreateAliasCommandError = async (output, context)
2220
2230
  $fault: "client",
2221
2231
  $metadata: deserializeMetadata(output),
2222
2232
  });
2223
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2233
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2224
2234
  }
2225
2235
  };
2226
2236
  const deserializeAws_restJson1CreateCodeSigningConfigCommand = async (output, context) => {
@@ -2231,7 +2241,7 @@ const deserializeAws_restJson1CreateCodeSigningConfigCommand = async (output, co
2231
2241
  $metadata: deserializeMetadata(output),
2232
2242
  CodeSigningConfig: undefined,
2233
2243
  };
2234
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2244
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2235
2245
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
2236
2246
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
2237
2247
  }
@@ -2260,7 +2270,7 @@ const deserializeAws_restJson1CreateCodeSigningConfigCommandError = async (outpu
2260
2270
  $fault: "client",
2261
2271
  $metadata: deserializeMetadata(output),
2262
2272
  });
2263
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2273
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2264
2274
  }
2265
2275
  };
2266
2276
  const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, context) => {
@@ -2293,45 +2303,45 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
2293
2303
  TumblingWindowInSeconds: undefined,
2294
2304
  UUID: undefined,
2295
2305
  };
2296
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2306
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2297
2307
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
2298
- contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
2308
+ contents.BatchSize = (0, smithy_client_1.expectInt32)(data.BatchSize);
2299
2309
  }
2300
2310
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
2301
- contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
2311
+ contents.BisectBatchOnFunctionError = (0, smithy_client_1.expectBoolean)(data.BisectBatchOnFunctionError);
2302
2312
  }
2303
2313
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
2304
2314
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
2305
2315
  }
2306
2316
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
2307
- contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
2317
+ contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
2308
2318
  }
2309
2319
  if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
2310
2320
  contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
2311
2321
  }
2312
2322
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
2313
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
2323
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
2314
2324
  }
2315
2325
  if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
2316
2326
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
2317
2327
  }
2318
2328
  if (data.LastModified !== undefined && data.LastModified !== null) {
2319
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
2329
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
2320
2330
  }
2321
2331
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
2322
- contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
2332
+ contents.LastProcessingResult = (0, smithy_client_1.expectString)(data.LastProcessingResult);
2323
2333
  }
2324
2334
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
2325
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
2335
+ contents.MaximumBatchingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumBatchingWindowInSeconds);
2326
2336
  }
2327
2337
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
2328
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
2338
+ contents.MaximumRecordAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumRecordAgeInSeconds);
2329
2339
  }
2330
2340
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
2331
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
2341
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
2332
2342
  }
2333
2343
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
2334
- contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
2344
+ contents.ParallelizationFactor = (0, smithy_client_1.expectInt32)(data.ParallelizationFactor);
2335
2345
  }
2336
2346
  if (data.Queues !== undefined && data.Queues !== null) {
2337
2347
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -2343,25 +2353,25 @@ const deserializeAws_restJson1CreateEventSourceMappingCommand = async (output, c
2343
2353
  contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
2344
2354
  }
2345
2355
  if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
2346
- contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
2356
+ contents.StartingPosition = (0, smithy_client_1.expectString)(data.StartingPosition);
2347
2357
  }
2348
2358
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
2349
- contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
2359
+ contents.StartingPositionTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartingPositionTimestamp)));
2350
2360
  }
2351
2361
  if (data.State !== undefined && data.State !== null) {
2352
- contents.State = smithy_client_1.expectString(data.State);
2362
+ contents.State = (0, smithy_client_1.expectString)(data.State);
2353
2363
  }
2354
2364
  if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
2355
- contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
2365
+ contents.StateTransitionReason = (0, smithy_client_1.expectString)(data.StateTransitionReason);
2356
2366
  }
2357
2367
  if (data.Topics !== undefined && data.Topics !== null) {
2358
2368
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
2359
2369
  }
2360
2370
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
2361
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
2371
+ contents.TumblingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.TumblingWindowInSeconds);
2362
2372
  }
2363
2373
  if (data.UUID !== undefined && data.UUID !== null) {
2364
- contents.UUID = smithy_client_1.expectString(data.UUID);
2374
+ contents.UUID = (0, smithy_client_1.expectString)(data.UUID);
2365
2375
  }
2366
2376
  return Promise.resolve(contents);
2367
2377
  };
@@ -2397,7 +2407,7 @@ const deserializeAws_restJson1CreateEventSourceMappingCommandError = async (outp
2397
2407
  $fault: "client",
2398
2408
  $metadata: deserializeMetadata(output),
2399
2409
  });
2400
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2410
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2401
2411
  }
2402
2412
  };
2403
2413
  const deserializeAws_restJson1CreateFunctionCommand = async (output, context) => {
@@ -2412,6 +2422,7 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2412
2422
  DeadLetterConfig: undefined,
2413
2423
  Description: undefined,
2414
2424
  Environment: undefined,
2425
+ EphemeralStorage: undefined,
2415
2426
  FileSystemConfigs: undefined,
2416
2427
  FunctionArn: undefined,
2417
2428
  FunctionName: undefined,
@@ -2439,99 +2450,102 @@ const deserializeAws_restJson1CreateFunctionCommand = async (output, context) =>
2439
2450
  Version: undefined,
2440
2451
  VpcConfig: undefined,
2441
2452
  };
2442
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2453
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2443
2454
  if (data.Architectures !== undefined && data.Architectures !== null) {
2444
2455
  contents.Architectures = deserializeAws_restJson1ArchitecturesList(data.Architectures, context);
2445
2456
  }
2446
2457
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
2447
- contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
2458
+ contents.CodeSha256 = (0, smithy_client_1.expectString)(data.CodeSha256);
2448
2459
  }
2449
2460
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
2450
- contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
2461
+ contents.CodeSize = (0, smithy_client_1.expectLong)(data.CodeSize);
2451
2462
  }
2452
2463
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
2453
2464
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
2454
2465
  }
2455
2466
  if (data.Description !== undefined && data.Description !== null) {
2456
- contents.Description = smithy_client_1.expectString(data.Description);
2467
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
2457
2468
  }
2458
2469
  if (data.Environment !== undefined && data.Environment !== null) {
2459
2470
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
2460
2471
  }
2472
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
2473
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
2474
+ }
2461
2475
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
2462
2476
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
2463
2477
  }
2464
2478
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
2465
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
2479
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
2466
2480
  }
2467
2481
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
2468
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
2482
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
2469
2483
  }
2470
2484
  if (data.Handler !== undefined && data.Handler !== null) {
2471
- contents.Handler = smithy_client_1.expectString(data.Handler);
2485
+ contents.Handler = (0, smithy_client_1.expectString)(data.Handler);
2472
2486
  }
2473
2487
  if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
2474
2488
  contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
2475
2489
  }
2476
2490
  if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
2477
- contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
2491
+ contents.KMSKeyArn = (0, smithy_client_1.expectString)(data.KMSKeyArn);
2478
2492
  }
2479
2493
  if (data.LastModified !== undefined && data.LastModified !== null) {
2480
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
2494
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
2481
2495
  }
2482
2496
  if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
2483
- contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
2497
+ contents.LastUpdateStatus = (0, smithy_client_1.expectString)(data.LastUpdateStatus);
2484
2498
  }
2485
2499
  if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
2486
- contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
2500
+ contents.LastUpdateStatusReason = (0, smithy_client_1.expectString)(data.LastUpdateStatusReason);
2487
2501
  }
2488
2502
  if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
2489
- contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
2503
+ contents.LastUpdateStatusReasonCode = (0, smithy_client_1.expectString)(data.LastUpdateStatusReasonCode);
2490
2504
  }
2491
2505
  if (data.Layers !== undefined && data.Layers !== null) {
2492
2506
  contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
2493
2507
  }
2494
2508
  if (data.MasterArn !== undefined && data.MasterArn !== null) {
2495
- contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
2509
+ contents.MasterArn = (0, smithy_client_1.expectString)(data.MasterArn);
2496
2510
  }
2497
2511
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
2498
- contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
2512
+ contents.MemorySize = (0, smithy_client_1.expectInt32)(data.MemorySize);
2499
2513
  }
2500
2514
  if (data.PackageType !== undefined && data.PackageType !== null) {
2501
- contents.PackageType = smithy_client_1.expectString(data.PackageType);
2515
+ contents.PackageType = (0, smithy_client_1.expectString)(data.PackageType);
2502
2516
  }
2503
2517
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2504
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
2518
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
2505
2519
  }
2506
2520
  if (data.Role !== undefined && data.Role !== null) {
2507
- contents.Role = smithy_client_1.expectString(data.Role);
2521
+ contents.Role = (0, smithy_client_1.expectString)(data.Role);
2508
2522
  }
2509
2523
  if (data.Runtime !== undefined && data.Runtime !== null) {
2510
- contents.Runtime = smithy_client_1.expectString(data.Runtime);
2524
+ contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
2511
2525
  }
2512
2526
  if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
2513
- contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
2527
+ contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
2514
2528
  }
2515
2529
  if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
2516
- contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
2530
+ contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
2517
2531
  }
2518
2532
  if (data.State !== undefined && data.State !== null) {
2519
- contents.State = smithy_client_1.expectString(data.State);
2533
+ contents.State = (0, smithy_client_1.expectString)(data.State);
2520
2534
  }
2521
2535
  if (data.StateReason !== undefined && data.StateReason !== null) {
2522
- contents.StateReason = smithy_client_1.expectString(data.StateReason);
2536
+ contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
2523
2537
  }
2524
2538
  if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
2525
- contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
2539
+ contents.StateReasonCode = (0, smithy_client_1.expectString)(data.StateReasonCode);
2526
2540
  }
2527
2541
  if (data.Timeout !== undefined && data.Timeout !== null) {
2528
- contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
2542
+ contents.Timeout = (0, smithy_client_1.expectInt32)(data.Timeout);
2529
2543
  }
2530
2544
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
2531
2545
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
2532
2546
  }
2533
2547
  if (data.Version !== undefined && data.Version !== null) {
2534
- contents.Version = smithy_client_1.expectString(data.Version);
2548
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
2535
2549
  }
2536
2550
  if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
2537
2551
  contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
@@ -2582,7 +2596,7 @@ const deserializeAws_restJson1CreateFunctionCommandError = async (output, contex
2582
2596
  $fault: "client",
2583
2597
  $metadata: deserializeMetadata(output),
2584
2598
  });
2585
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2599
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2586
2600
  }
2587
2601
  };
2588
2602
  const deserializeAws_restJson1DeleteAliasCommand = async (output, context) => {
@@ -2624,7 +2638,7 @@ const deserializeAws_restJson1DeleteAliasCommandError = async (output, context)
2624
2638
  $fault: "client",
2625
2639
  $metadata: deserializeMetadata(output),
2626
2640
  });
2627
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2641
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2628
2642
  }
2629
2643
  };
2630
2644
  const deserializeAws_restJson1DeleteCodeSigningConfigCommand = async (output, context) => {
@@ -2666,7 +2680,7 @@ const deserializeAws_restJson1DeleteCodeSigningConfigCommandError = async (outpu
2666
2680
  $fault: "client",
2667
2681
  $metadata: deserializeMetadata(output),
2668
2682
  });
2669
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2683
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2670
2684
  }
2671
2685
  };
2672
2686
  const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, context) => {
@@ -2699,45 +2713,45 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2699
2713
  TumblingWindowInSeconds: undefined,
2700
2714
  UUID: undefined,
2701
2715
  };
2702
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2716
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2703
2717
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
2704
- contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
2718
+ contents.BatchSize = (0, smithy_client_1.expectInt32)(data.BatchSize);
2705
2719
  }
2706
2720
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
2707
- contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
2721
+ contents.BisectBatchOnFunctionError = (0, smithy_client_1.expectBoolean)(data.BisectBatchOnFunctionError);
2708
2722
  }
2709
2723
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
2710
2724
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
2711
2725
  }
2712
2726
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
2713
- contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
2727
+ contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
2714
2728
  }
2715
2729
  if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
2716
2730
  contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
2717
2731
  }
2718
2732
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
2719
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
2733
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
2720
2734
  }
2721
2735
  if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
2722
2736
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
2723
2737
  }
2724
2738
  if (data.LastModified !== undefined && data.LastModified !== null) {
2725
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
2739
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
2726
2740
  }
2727
2741
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
2728
- contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
2742
+ contents.LastProcessingResult = (0, smithy_client_1.expectString)(data.LastProcessingResult);
2729
2743
  }
2730
2744
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
2731
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
2745
+ contents.MaximumBatchingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumBatchingWindowInSeconds);
2732
2746
  }
2733
2747
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
2734
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
2748
+ contents.MaximumRecordAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumRecordAgeInSeconds);
2735
2749
  }
2736
2750
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
2737
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
2751
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
2738
2752
  }
2739
2753
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
2740
- contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
2754
+ contents.ParallelizationFactor = (0, smithy_client_1.expectInt32)(data.ParallelizationFactor);
2741
2755
  }
2742
2756
  if (data.Queues !== undefined && data.Queues !== null) {
2743
2757
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -2749,25 +2763,25 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommand = async (output, c
2749
2763
  contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
2750
2764
  }
2751
2765
  if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
2752
- contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
2766
+ contents.StartingPosition = (0, smithy_client_1.expectString)(data.StartingPosition);
2753
2767
  }
2754
2768
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
2755
- contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
2769
+ contents.StartingPositionTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartingPositionTimestamp)));
2756
2770
  }
2757
2771
  if (data.State !== undefined && data.State !== null) {
2758
- contents.State = smithy_client_1.expectString(data.State);
2772
+ contents.State = (0, smithy_client_1.expectString)(data.State);
2759
2773
  }
2760
2774
  if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
2761
- contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
2775
+ contents.StateTransitionReason = (0, smithy_client_1.expectString)(data.StateTransitionReason);
2762
2776
  }
2763
2777
  if (data.Topics !== undefined && data.Topics !== null) {
2764
2778
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
2765
2779
  }
2766
2780
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
2767
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
2781
+ contents.TumblingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.TumblingWindowInSeconds);
2768
2782
  }
2769
2783
  if (data.UUID !== undefined && data.UUID !== null) {
2770
- contents.UUID = smithy_client_1.expectString(data.UUID);
2784
+ contents.UUID = (0, smithy_client_1.expectString)(data.UUID);
2771
2785
  }
2772
2786
  return Promise.resolve(contents);
2773
2787
  };
@@ -2803,7 +2817,7 @@ const deserializeAws_restJson1DeleteEventSourceMappingCommandError = async (outp
2803
2817
  $fault: "client",
2804
2818
  $metadata: deserializeMetadata(output),
2805
2819
  });
2806
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2820
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2807
2821
  }
2808
2822
  };
2809
2823
  const deserializeAws_restJson1DeleteFunctionCommand = async (output, context) => {
@@ -2848,7 +2862,7 @@ const deserializeAws_restJson1DeleteFunctionCommandError = async (output, contex
2848
2862
  $fault: "client",
2849
2863
  $metadata: deserializeMetadata(output),
2850
2864
  });
2851
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2865
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2852
2866
  }
2853
2867
  };
2854
2868
  const deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommand = async (output, context) => {
@@ -2896,7 +2910,7 @@ const deserializeAws_restJson1DeleteFunctionCodeSigningConfigCommandError = asyn
2896
2910
  $fault: "client",
2897
2911
  $metadata: deserializeMetadata(output),
2898
2912
  });
2899
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2913
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2900
2914
  }
2901
2915
  };
2902
2916
  const deserializeAws_restJson1DeleteFunctionConcurrencyCommand = async (output, context) => {
@@ -2941,7 +2955,7 @@ const deserializeAws_restJson1DeleteFunctionConcurrencyCommandError = async (out
2941
2955
  $fault: "client",
2942
2956
  $metadata: deserializeMetadata(output),
2943
2957
  });
2944
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2958
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2945
2959
  }
2946
2960
  };
2947
2961
  const deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommand = async (output, context) => {
@@ -2986,7 +3000,7 @@ const deserializeAws_restJson1DeleteFunctionEventInvokeConfigCommandError = asyn
2986
3000
  $fault: "client",
2987
3001
  $metadata: deserializeMetadata(output),
2988
3002
  });
2989
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3003
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2990
3004
  }
2991
3005
  };
2992
3006
  const deserializeAws_restJson1DeleteLayerVersionCommand = async (output, context) => {
@@ -3022,7 +3036,7 @@ const deserializeAws_restJson1DeleteLayerVersionCommandError = async (output, co
3022
3036
  $fault: "client",
3023
3037
  $metadata: deserializeMetadata(output),
3024
3038
  });
3025
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3039
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3026
3040
  }
3027
3041
  };
3028
3042
  const deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommand = async (output, context) => {
@@ -3067,7 +3081,7 @@ const deserializeAws_restJson1DeleteProvisionedConcurrencyConfigCommandError = a
3067
3081
  $fault: "client",
3068
3082
  $metadata: deserializeMetadata(output),
3069
3083
  });
3070
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3084
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3071
3085
  }
3072
3086
  };
3073
3087
  const deserializeAws_restJson1GetAccountSettingsCommand = async (output, context) => {
@@ -3079,7 +3093,7 @@ const deserializeAws_restJson1GetAccountSettingsCommand = async (output, context
3079
3093
  AccountLimit: undefined,
3080
3094
  AccountUsage: undefined,
3081
3095
  };
3082
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3096
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3083
3097
  if (data.AccountLimit !== undefined && data.AccountLimit !== null) {
3084
3098
  contents.AccountLimit = deserializeAws_restJson1AccountLimit(data.AccountLimit, context);
3085
3099
  }
@@ -3111,7 +3125,7 @@ const deserializeAws_restJson1GetAccountSettingsCommandError = async (output, co
3111
3125
  $fault: "client",
3112
3126
  $metadata: deserializeMetadata(output),
3113
3127
  });
3114
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3128
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3115
3129
  }
3116
3130
  };
3117
3131
  const deserializeAws_restJson1GetAliasCommand = async (output, context) => {
@@ -3127,21 +3141,21 @@ const deserializeAws_restJson1GetAliasCommand = async (output, context) => {
3127
3141
  RevisionId: undefined,
3128
3142
  RoutingConfig: undefined,
3129
3143
  };
3130
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3144
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3131
3145
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
3132
- contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
3146
+ contents.AliasArn = (0, smithy_client_1.expectString)(data.AliasArn);
3133
3147
  }
3134
3148
  if (data.Description !== undefined && data.Description !== null) {
3135
- contents.Description = smithy_client_1.expectString(data.Description);
3149
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3136
3150
  }
3137
3151
  if (data.FunctionVersion !== undefined && data.FunctionVersion !== null) {
3138
- contents.FunctionVersion = smithy_client_1.expectString(data.FunctionVersion);
3152
+ contents.FunctionVersion = (0, smithy_client_1.expectString)(data.FunctionVersion);
3139
3153
  }
3140
3154
  if (data.Name !== undefined && data.Name !== null) {
3141
- contents.Name = smithy_client_1.expectString(data.Name);
3155
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
3142
3156
  }
3143
3157
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
3144
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
3158
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
3145
3159
  }
3146
3160
  if (data.RoutingConfig !== undefined && data.RoutingConfig !== null) {
3147
3161
  contents.RoutingConfig = deserializeAws_restJson1AliasRoutingConfiguration(data.RoutingConfig, context);
@@ -3177,7 +3191,7 @@ const deserializeAws_restJson1GetAliasCommandError = async (output, context) =>
3177
3191
  $fault: "client",
3178
3192
  $metadata: deserializeMetadata(output),
3179
3193
  });
3180
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3194
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3181
3195
  }
3182
3196
  };
3183
3197
  const deserializeAws_restJson1GetCodeSigningConfigCommand = async (output, context) => {
@@ -3188,7 +3202,7 @@ const deserializeAws_restJson1GetCodeSigningConfigCommand = async (output, conte
3188
3202
  $metadata: deserializeMetadata(output),
3189
3203
  CodeSigningConfig: undefined,
3190
3204
  };
3191
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3205
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3192
3206
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
3193
3207
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
3194
3208
  }
@@ -3220,7 +3234,7 @@ const deserializeAws_restJson1GetCodeSigningConfigCommandError = async (output,
3220
3234
  $fault: "client",
3221
3235
  $metadata: deserializeMetadata(output),
3222
3236
  });
3223
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3237
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3224
3238
  }
3225
3239
  };
3226
3240
  const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, context) => {
@@ -3253,45 +3267,45 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
3253
3267
  TumblingWindowInSeconds: undefined,
3254
3268
  UUID: undefined,
3255
3269
  };
3256
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3270
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3257
3271
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
3258
- contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
3272
+ contents.BatchSize = (0, smithy_client_1.expectInt32)(data.BatchSize);
3259
3273
  }
3260
3274
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
3261
- contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
3275
+ contents.BisectBatchOnFunctionError = (0, smithy_client_1.expectBoolean)(data.BisectBatchOnFunctionError);
3262
3276
  }
3263
3277
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
3264
3278
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
3265
3279
  }
3266
3280
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
3267
- contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
3281
+ contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
3268
3282
  }
3269
3283
  if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
3270
3284
  contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
3271
3285
  }
3272
3286
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
3273
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
3287
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
3274
3288
  }
3275
3289
  if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
3276
3290
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
3277
3291
  }
3278
3292
  if (data.LastModified !== undefined && data.LastModified !== null) {
3279
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
3293
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
3280
3294
  }
3281
3295
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
3282
- contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
3296
+ contents.LastProcessingResult = (0, smithy_client_1.expectString)(data.LastProcessingResult);
3283
3297
  }
3284
3298
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
3285
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
3299
+ contents.MaximumBatchingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumBatchingWindowInSeconds);
3286
3300
  }
3287
3301
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
3288
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
3302
+ contents.MaximumRecordAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumRecordAgeInSeconds);
3289
3303
  }
3290
3304
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
3291
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
3305
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
3292
3306
  }
3293
3307
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
3294
- contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
3308
+ contents.ParallelizationFactor = (0, smithy_client_1.expectInt32)(data.ParallelizationFactor);
3295
3309
  }
3296
3310
  if (data.Queues !== undefined && data.Queues !== null) {
3297
3311
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -3303,25 +3317,25 @@ const deserializeAws_restJson1GetEventSourceMappingCommand = async (output, cont
3303
3317
  contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
3304
3318
  }
3305
3319
  if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
3306
- contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
3320
+ contents.StartingPosition = (0, smithy_client_1.expectString)(data.StartingPosition);
3307
3321
  }
3308
3322
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
3309
- contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
3323
+ contents.StartingPositionTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartingPositionTimestamp)));
3310
3324
  }
3311
3325
  if (data.State !== undefined && data.State !== null) {
3312
- contents.State = smithy_client_1.expectString(data.State);
3326
+ contents.State = (0, smithy_client_1.expectString)(data.State);
3313
3327
  }
3314
3328
  if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
3315
- contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
3329
+ contents.StateTransitionReason = (0, smithy_client_1.expectString)(data.StateTransitionReason);
3316
3330
  }
3317
3331
  if (data.Topics !== undefined && data.Topics !== null) {
3318
3332
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
3319
3333
  }
3320
3334
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
3321
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
3335
+ contents.TumblingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.TumblingWindowInSeconds);
3322
3336
  }
3323
3337
  if (data.UUID !== undefined && data.UUID !== null) {
3324
- contents.UUID = smithy_client_1.expectString(data.UUID);
3338
+ contents.UUID = (0, smithy_client_1.expectString)(data.UUID);
3325
3339
  }
3326
3340
  return Promise.resolve(contents);
3327
3341
  };
@@ -3354,7 +3368,7 @@ const deserializeAws_restJson1GetEventSourceMappingCommandError = async (output,
3354
3368
  $fault: "client",
3355
3369
  $metadata: deserializeMetadata(output),
3356
3370
  });
3357
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3371
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3358
3372
  }
3359
3373
  };
3360
3374
  const deserializeAws_restJson1GetFunctionCommand = async (output, context) => {
@@ -3368,7 +3382,7 @@ const deserializeAws_restJson1GetFunctionCommand = async (output, context) => {
3368
3382
  Configuration: undefined,
3369
3383
  Tags: undefined,
3370
3384
  };
3371
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3385
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3372
3386
  if (data.Code !== undefined && data.Code !== null) {
3373
3387
  contents.Code = deserializeAws_restJson1FunctionCodeLocation(data.Code, context);
3374
3388
  }
@@ -3412,7 +3426,7 @@ const deserializeAws_restJson1GetFunctionCommandError = async (output, context)
3412
3426
  $fault: "client",
3413
3427
  $metadata: deserializeMetadata(output),
3414
3428
  });
3415
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3429
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3416
3430
  }
3417
3431
  };
3418
3432
  const deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (output, context) => {
@@ -3424,12 +3438,12 @@ const deserializeAws_restJson1GetFunctionCodeSigningConfigCommand = async (outpu
3424
3438
  CodeSigningConfigArn: undefined,
3425
3439
  FunctionName: undefined,
3426
3440
  };
3427
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3441
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3428
3442
  if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
3429
- contents.CodeSigningConfigArn = smithy_client_1.expectString(data.CodeSigningConfigArn);
3443
+ contents.CodeSigningConfigArn = (0, smithy_client_1.expectString)(data.CodeSigningConfigArn);
3430
3444
  }
3431
3445
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
3432
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
3446
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
3433
3447
  }
3434
3448
  return Promise.resolve(contents);
3435
3449
  };
@@ -3462,7 +3476,7 @@ const deserializeAws_restJson1GetFunctionCodeSigningConfigCommandError = async (
3462
3476
  $fault: "client",
3463
3477
  $metadata: deserializeMetadata(output),
3464
3478
  });
3465
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3479
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3466
3480
  }
3467
3481
  };
3468
3482
  const deserializeAws_restJson1GetFunctionConcurrencyCommand = async (output, context) => {
@@ -3473,9 +3487,9 @@ const deserializeAws_restJson1GetFunctionConcurrencyCommand = async (output, con
3473
3487
  $metadata: deserializeMetadata(output),
3474
3488
  ReservedConcurrentExecutions: undefined,
3475
3489
  };
3476
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3490
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3477
3491
  if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
3478
- contents.ReservedConcurrentExecutions = smithy_client_1.expectInt32(data.ReservedConcurrentExecutions);
3492
+ contents.ReservedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.ReservedConcurrentExecutions);
3479
3493
  }
3480
3494
  return Promise.resolve(contents);
3481
3495
  };
@@ -3508,7 +3522,7 @@ const deserializeAws_restJson1GetFunctionConcurrencyCommandError = async (output
3508
3522
  $fault: "client",
3509
3523
  $metadata: deserializeMetadata(output),
3510
3524
  });
3511
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3525
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3512
3526
  }
3513
3527
  };
3514
3528
  const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, context) => {
@@ -3523,6 +3537,7 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
3523
3537
  DeadLetterConfig: undefined,
3524
3538
  Description: undefined,
3525
3539
  Environment: undefined,
3540
+ EphemeralStorage: undefined,
3526
3541
  FileSystemConfigs: undefined,
3527
3542
  FunctionArn: undefined,
3528
3543
  FunctionName: undefined,
@@ -3550,99 +3565,102 @@ const deserializeAws_restJson1GetFunctionConfigurationCommand = async (output, c
3550
3565
  Version: undefined,
3551
3566
  VpcConfig: undefined,
3552
3567
  };
3553
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3568
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3554
3569
  if (data.Architectures !== undefined && data.Architectures !== null) {
3555
3570
  contents.Architectures = deserializeAws_restJson1ArchitecturesList(data.Architectures, context);
3556
3571
  }
3557
3572
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
3558
- contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
3573
+ contents.CodeSha256 = (0, smithy_client_1.expectString)(data.CodeSha256);
3559
3574
  }
3560
3575
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
3561
- contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
3576
+ contents.CodeSize = (0, smithy_client_1.expectLong)(data.CodeSize);
3562
3577
  }
3563
3578
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
3564
3579
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
3565
3580
  }
3566
3581
  if (data.Description !== undefined && data.Description !== null) {
3567
- contents.Description = smithy_client_1.expectString(data.Description);
3582
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3568
3583
  }
3569
3584
  if (data.Environment !== undefined && data.Environment !== null) {
3570
3585
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
3571
3586
  }
3587
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
3588
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
3589
+ }
3572
3590
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
3573
3591
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
3574
3592
  }
3575
3593
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
3576
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
3594
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
3577
3595
  }
3578
3596
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
3579
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
3597
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
3580
3598
  }
3581
3599
  if (data.Handler !== undefined && data.Handler !== null) {
3582
- contents.Handler = smithy_client_1.expectString(data.Handler);
3600
+ contents.Handler = (0, smithy_client_1.expectString)(data.Handler);
3583
3601
  }
3584
3602
  if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
3585
3603
  contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
3586
3604
  }
3587
3605
  if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
3588
- contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
3606
+ contents.KMSKeyArn = (0, smithy_client_1.expectString)(data.KMSKeyArn);
3589
3607
  }
3590
3608
  if (data.LastModified !== undefined && data.LastModified !== null) {
3591
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
3609
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
3592
3610
  }
3593
3611
  if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
3594
- contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
3612
+ contents.LastUpdateStatus = (0, smithy_client_1.expectString)(data.LastUpdateStatus);
3595
3613
  }
3596
3614
  if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
3597
- contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
3615
+ contents.LastUpdateStatusReason = (0, smithy_client_1.expectString)(data.LastUpdateStatusReason);
3598
3616
  }
3599
3617
  if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
3600
- contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
3618
+ contents.LastUpdateStatusReasonCode = (0, smithy_client_1.expectString)(data.LastUpdateStatusReasonCode);
3601
3619
  }
3602
3620
  if (data.Layers !== undefined && data.Layers !== null) {
3603
3621
  contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
3604
3622
  }
3605
3623
  if (data.MasterArn !== undefined && data.MasterArn !== null) {
3606
- contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
3624
+ contents.MasterArn = (0, smithy_client_1.expectString)(data.MasterArn);
3607
3625
  }
3608
3626
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
3609
- contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
3627
+ contents.MemorySize = (0, smithy_client_1.expectInt32)(data.MemorySize);
3610
3628
  }
3611
3629
  if (data.PackageType !== undefined && data.PackageType !== null) {
3612
- contents.PackageType = smithy_client_1.expectString(data.PackageType);
3630
+ contents.PackageType = (0, smithy_client_1.expectString)(data.PackageType);
3613
3631
  }
3614
3632
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
3615
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
3633
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
3616
3634
  }
3617
3635
  if (data.Role !== undefined && data.Role !== null) {
3618
- contents.Role = smithy_client_1.expectString(data.Role);
3636
+ contents.Role = (0, smithy_client_1.expectString)(data.Role);
3619
3637
  }
3620
3638
  if (data.Runtime !== undefined && data.Runtime !== null) {
3621
- contents.Runtime = smithy_client_1.expectString(data.Runtime);
3639
+ contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
3622
3640
  }
3623
3641
  if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
3624
- contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
3642
+ contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
3625
3643
  }
3626
3644
  if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
3627
- contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
3645
+ contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
3628
3646
  }
3629
3647
  if (data.State !== undefined && data.State !== null) {
3630
- contents.State = smithy_client_1.expectString(data.State);
3648
+ contents.State = (0, smithy_client_1.expectString)(data.State);
3631
3649
  }
3632
3650
  if (data.StateReason !== undefined && data.StateReason !== null) {
3633
- contents.StateReason = smithy_client_1.expectString(data.StateReason);
3651
+ contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
3634
3652
  }
3635
3653
  if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
3636
- contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
3654
+ contents.StateReasonCode = (0, smithy_client_1.expectString)(data.StateReasonCode);
3637
3655
  }
3638
3656
  if (data.Timeout !== undefined && data.Timeout !== null) {
3639
- contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
3657
+ contents.Timeout = (0, smithy_client_1.expectInt32)(data.Timeout);
3640
3658
  }
3641
3659
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
3642
3660
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
3643
3661
  }
3644
3662
  if (data.Version !== undefined && data.Version !== null) {
3645
- contents.Version = smithy_client_1.expectString(data.Version);
3663
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
3646
3664
  }
3647
3665
  if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
3648
3666
  contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
@@ -3678,7 +3696,7 @@ const deserializeAws_restJson1GetFunctionConfigurationCommandError = async (outp
3678
3696
  $fault: "client",
3679
3697
  $metadata: deserializeMetadata(output),
3680
3698
  });
3681
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3699
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3682
3700
  }
3683
3701
  };
3684
3702
  const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (output, context) => {
@@ -3693,21 +3711,21 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommand = async (outpu
3693
3711
  MaximumEventAgeInSeconds: undefined,
3694
3712
  MaximumRetryAttempts: undefined,
3695
3713
  };
3696
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3714
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3697
3715
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
3698
3716
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
3699
3717
  }
3700
3718
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
3701
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
3719
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
3702
3720
  }
3703
3721
  if (data.LastModified !== undefined && data.LastModified !== null) {
3704
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
3722
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
3705
3723
  }
3706
3724
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
3707
- contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
3725
+ contents.MaximumEventAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumEventAgeInSeconds);
3708
3726
  }
3709
3727
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
3710
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
3728
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
3711
3729
  }
3712
3730
  return Promise.resolve(contents);
3713
3731
  };
@@ -3740,7 +3758,7 @@ const deserializeAws_restJson1GetFunctionEventInvokeConfigCommandError = async (
3740
3758
  $fault: "client",
3741
3759
  $metadata: deserializeMetadata(output),
3742
3760
  });
3743
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3761
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3744
3762
  }
3745
3763
  };
3746
3764
  const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) => {
@@ -3759,7 +3777,7 @@ const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) =
3759
3777
  LicenseInfo: undefined,
3760
3778
  Version: undefined,
3761
3779
  };
3762
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3780
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3763
3781
  if (data.CompatibleArchitectures !== undefined && data.CompatibleArchitectures !== null) {
3764
3782
  contents.CompatibleArchitectures = deserializeAws_restJson1CompatibleArchitectures(data.CompatibleArchitectures, context);
3765
3783
  }
@@ -3770,22 +3788,22 @@ const deserializeAws_restJson1GetLayerVersionCommand = async (output, context) =
3770
3788
  contents.Content = deserializeAws_restJson1LayerVersionContentOutput(data.Content, context);
3771
3789
  }
3772
3790
  if (data.CreatedDate !== undefined && data.CreatedDate !== null) {
3773
- contents.CreatedDate = smithy_client_1.expectString(data.CreatedDate);
3791
+ contents.CreatedDate = (0, smithy_client_1.expectString)(data.CreatedDate);
3774
3792
  }
3775
3793
  if (data.Description !== undefined && data.Description !== null) {
3776
- contents.Description = smithy_client_1.expectString(data.Description);
3794
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3777
3795
  }
3778
3796
  if (data.LayerArn !== undefined && data.LayerArn !== null) {
3779
- contents.LayerArn = smithy_client_1.expectString(data.LayerArn);
3797
+ contents.LayerArn = (0, smithy_client_1.expectString)(data.LayerArn);
3780
3798
  }
3781
3799
  if (data.LayerVersionArn !== undefined && data.LayerVersionArn !== null) {
3782
- contents.LayerVersionArn = smithy_client_1.expectString(data.LayerVersionArn);
3800
+ contents.LayerVersionArn = (0, smithy_client_1.expectString)(data.LayerVersionArn);
3783
3801
  }
3784
3802
  if (data.LicenseInfo !== undefined && data.LicenseInfo !== null) {
3785
- contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
3803
+ contents.LicenseInfo = (0, smithy_client_1.expectString)(data.LicenseInfo);
3786
3804
  }
3787
3805
  if (data.Version !== undefined && data.Version !== null) {
3788
- contents.Version = smithy_client_1.expectLong(data.Version);
3806
+ contents.Version = (0, smithy_client_1.expectLong)(data.Version);
3789
3807
  }
3790
3808
  return Promise.resolve(contents);
3791
3809
  };
@@ -3818,7 +3836,7 @@ const deserializeAws_restJson1GetLayerVersionCommandError = async (output, conte
3818
3836
  $fault: "client",
3819
3837
  $metadata: deserializeMetadata(output),
3820
3838
  });
3821
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3839
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3822
3840
  }
3823
3841
  };
3824
3842
  const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, context) => {
@@ -3837,7 +3855,7 @@ const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, conte
3837
3855
  LicenseInfo: undefined,
3838
3856
  Version: undefined,
3839
3857
  };
3840
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3858
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3841
3859
  if (data.CompatibleArchitectures !== undefined && data.CompatibleArchitectures !== null) {
3842
3860
  contents.CompatibleArchitectures = deserializeAws_restJson1CompatibleArchitectures(data.CompatibleArchitectures, context);
3843
3861
  }
@@ -3848,22 +3866,22 @@ const deserializeAws_restJson1GetLayerVersionByArnCommand = async (output, conte
3848
3866
  contents.Content = deserializeAws_restJson1LayerVersionContentOutput(data.Content, context);
3849
3867
  }
3850
3868
  if (data.CreatedDate !== undefined && data.CreatedDate !== null) {
3851
- contents.CreatedDate = smithy_client_1.expectString(data.CreatedDate);
3869
+ contents.CreatedDate = (0, smithy_client_1.expectString)(data.CreatedDate);
3852
3870
  }
3853
3871
  if (data.Description !== undefined && data.Description !== null) {
3854
- contents.Description = smithy_client_1.expectString(data.Description);
3872
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3855
3873
  }
3856
3874
  if (data.LayerArn !== undefined && data.LayerArn !== null) {
3857
- contents.LayerArn = smithy_client_1.expectString(data.LayerArn);
3875
+ contents.LayerArn = (0, smithy_client_1.expectString)(data.LayerArn);
3858
3876
  }
3859
3877
  if (data.LayerVersionArn !== undefined && data.LayerVersionArn !== null) {
3860
- contents.LayerVersionArn = smithy_client_1.expectString(data.LayerVersionArn);
3878
+ contents.LayerVersionArn = (0, smithy_client_1.expectString)(data.LayerVersionArn);
3861
3879
  }
3862
3880
  if (data.LicenseInfo !== undefined && data.LicenseInfo !== null) {
3863
- contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
3881
+ contents.LicenseInfo = (0, smithy_client_1.expectString)(data.LicenseInfo);
3864
3882
  }
3865
3883
  if (data.Version !== undefined && data.Version !== null) {
3866
- contents.Version = smithy_client_1.expectLong(data.Version);
3884
+ contents.Version = (0, smithy_client_1.expectLong)(data.Version);
3867
3885
  }
3868
3886
  return Promise.resolve(contents);
3869
3887
  };
@@ -3896,7 +3914,7 @@ const deserializeAws_restJson1GetLayerVersionByArnCommandError = async (output,
3896
3914
  $fault: "client",
3897
3915
  $metadata: deserializeMetadata(output),
3898
3916
  });
3899
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3917
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3900
3918
  }
3901
3919
  };
3902
3920
  const deserializeAws_restJson1GetLayerVersionPolicyCommand = async (output, context) => {
@@ -3908,12 +3926,12 @@ const deserializeAws_restJson1GetLayerVersionPolicyCommand = async (output, cont
3908
3926
  Policy: undefined,
3909
3927
  RevisionId: undefined,
3910
3928
  };
3911
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3929
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3912
3930
  if (data.Policy !== undefined && data.Policy !== null) {
3913
- contents.Policy = smithy_client_1.expectString(data.Policy);
3931
+ contents.Policy = (0, smithy_client_1.expectString)(data.Policy);
3914
3932
  }
3915
3933
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
3916
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
3934
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
3917
3935
  }
3918
3936
  return Promise.resolve(contents);
3919
3937
  };
@@ -3946,7 +3964,7 @@ const deserializeAws_restJson1GetLayerVersionPolicyCommandError = async (output,
3946
3964
  $fault: "client",
3947
3965
  $metadata: deserializeMetadata(output),
3948
3966
  });
3949
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3967
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3950
3968
  }
3951
3969
  };
3952
3970
  const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
@@ -3958,12 +3976,12 @@ const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
3958
3976
  Policy: undefined,
3959
3977
  RevisionId: undefined,
3960
3978
  };
3961
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3979
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3962
3980
  if (data.Policy !== undefined && data.Policy !== null) {
3963
- contents.Policy = smithy_client_1.expectString(data.Policy);
3981
+ contents.Policy = (0, smithy_client_1.expectString)(data.Policy);
3964
3982
  }
3965
3983
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
3966
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
3984
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
3967
3985
  }
3968
3986
  return Promise.resolve(contents);
3969
3987
  };
@@ -3996,7 +4014,7 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
3996
4014
  $fault: "client",
3997
4015
  $metadata: deserializeMetadata(output),
3998
4016
  });
3999
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4017
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4000
4018
  }
4001
4019
  };
4002
4020
  const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (output, context) => {
@@ -4012,27 +4030,27 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommand = async (ou
4012
4030
  Status: undefined,
4013
4031
  StatusReason: undefined,
4014
4032
  };
4015
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4033
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4016
4034
  if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
4017
4035
  data.AllocatedProvisionedConcurrentExecutions !== null) {
4018
- contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AllocatedProvisionedConcurrentExecutions);
4036
+ contents.AllocatedProvisionedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.AllocatedProvisionedConcurrentExecutions);
4019
4037
  }
4020
4038
  if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
4021
4039
  data.AvailableProvisionedConcurrentExecutions !== null) {
4022
- contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AvailableProvisionedConcurrentExecutions);
4040
+ contents.AvailableProvisionedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.AvailableProvisionedConcurrentExecutions);
4023
4041
  }
4024
4042
  if (data.LastModified !== undefined && data.LastModified !== null) {
4025
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
4043
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
4026
4044
  }
4027
4045
  if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
4028
4046
  data.RequestedProvisionedConcurrentExecutions !== null) {
4029
- contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.RequestedProvisionedConcurrentExecutions);
4047
+ contents.RequestedProvisionedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.RequestedProvisionedConcurrentExecutions);
4030
4048
  }
4031
4049
  if (data.Status !== undefined && data.Status !== null) {
4032
- contents.Status = smithy_client_1.expectString(data.Status);
4050
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
4033
4051
  }
4034
4052
  if (data.StatusReason !== undefined && data.StatusReason !== null) {
4035
- contents.StatusReason = smithy_client_1.expectString(data.StatusReason);
4053
+ contents.StatusReason = (0, smithy_client_1.expectString)(data.StatusReason);
4036
4054
  }
4037
4055
  return Promise.resolve(contents);
4038
4056
  };
@@ -4068,7 +4086,7 @@ const deserializeAws_restJson1GetProvisionedConcurrencyConfigCommandError = asyn
4068
4086
  $fault: "client",
4069
4087
  $metadata: deserializeMetadata(output),
4070
4088
  });
4071
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4089
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4072
4090
  }
4073
4091
  };
4074
4092
  const deserializeAws_restJson1InvokeCommand = async (output, context) => {
@@ -4194,7 +4212,7 @@ const deserializeAws_restJson1InvokeCommandError = async (output, context) => {
4194
4212
  $fault: "client",
4195
4213
  $metadata: deserializeMetadata(output),
4196
4214
  });
4197
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4215
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4198
4216
  }
4199
4217
  };
4200
4218
  const deserializeAws_restJson1InvokeAsyncCommand = async (output, context) => {
@@ -4243,7 +4261,7 @@ const deserializeAws_restJson1InvokeAsyncCommandError = async (output, context)
4243
4261
  $fault: "client",
4244
4262
  $metadata: deserializeMetadata(output),
4245
4263
  });
4246
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4264
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4247
4265
  }
4248
4266
  };
4249
4267
  const deserializeAws_restJson1ListAliasesCommand = async (output, context) => {
@@ -4255,12 +4273,12 @@ const deserializeAws_restJson1ListAliasesCommand = async (output, context) => {
4255
4273
  Aliases: undefined,
4256
4274
  NextMarker: undefined,
4257
4275
  };
4258
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4276
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4259
4277
  if (data.Aliases !== undefined && data.Aliases !== null) {
4260
4278
  contents.Aliases = deserializeAws_restJson1AliasList(data.Aliases, context);
4261
4279
  }
4262
4280
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4263
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4281
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4264
4282
  }
4265
4283
  return Promise.resolve(contents);
4266
4284
  };
@@ -4293,7 +4311,7 @@ const deserializeAws_restJson1ListAliasesCommandError = async (output, context)
4293
4311
  $fault: "client",
4294
4312
  $metadata: deserializeMetadata(output),
4295
4313
  });
4296
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4314
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4297
4315
  }
4298
4316
  };
4299
4317
  const deserializeAws_restJson1ListCodeSigningConfigsCommand = async (output, context) => {
@@ -4305,12 +4323,12 @@ const deserializeAws_restJson1ListCodeSigningConfigsCommand = async (output, con
4305
4323
  CodeSigningConfigs: undefined,
4306
4324
  NextMarker: undefined,
4307
4325
  };
4308
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4326
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4309
4327
  if (data.CodeSigningConfigs !== undefined && data.CodeSigningConfigs !== null) {
4310
4328
  contents.CodeSigningConfigs = deserializeAws_restJson1CodeSigningConfigList(data.CodeSigningConfigs, context);
4311
4329
  }
4312
4330
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4313
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4331
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4314
4332
  }
4315
4333
  return Promise.resolve(contents);
4316
4334
  };
@@ -4337,7 +4355,7 @@ const deserializeAws_restJson1ListCodeSigningConfigsCommandError = async (output
4337
4355
  $fault: "client",
4338
4356
  $metadata: deserializeMetadata(output),
4339
4357
  });
4340
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4358
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4341
4359
  }
4342
4360
  };
4343
4361
  const deserializeAws_restJson1ListEventSourceMappingsCommand = async (output, context) => {
@@ -4349,12 +4367,12 @@ const deserializeAws_restJson1ListEventSourceMappingsCommand = async (output, co
4349
4367
  EventSourceMappings: undefined,
4350
4368
  NextMarker: undefined,
4351
4369
  };
4352
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4370
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4353
4371
  if (data.EventSourceMappings !== undefined && data.EventSourceMappings !== null) {
4354
4372
  contents.EventSourceMappings = deserializeAws_restJson1EventSourceMappingsList(data.EventSourceMappings, context);
4355
4373
  }
4356
4374
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4357
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4375
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4358
4376
  }
4359
4377
  return Promise.resolve(contents);
4360
4378
  };
@@ -4387,7 +4405,7 @@ const deserializeAws_restJson1ListEventSourceMappingsCommandError = async (outpu
4387
4405
  $fault: "client",
4388
4406
  $metadata: deserializeMetadata(output),
4389
4407
  });
4390
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4408
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4391
4409
  }
4392
4410
  };
4393
4411
  const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (output, context) => {
@@ -4399,12 +4417,12 @@ const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommand = async (out
4399
4417
  FunctionEventInvokeConfigs: undefined,
4400
4418
  NextMarker: undefined,
4401
4419
  };
4402
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4420
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4403
4421
  if (data.FunctionEventInvokeConfigs !== undefined && data.FunctionEventInvokeConfigs !== null) {
4404
4422
  contents.FunctionEventInvokeConfigs = deserializeAws_restJson1FunctionEventInvokeConfigList(data.FunctionEventInvokeConfigs, context);
4405
4423
  }
4406
4424
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4407
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4425
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4408
4426
  }
4409
4427
  return Promise.resolve(contents);
4410
4428
  };
@@ -4437,7 +4455,7 @@ const deserializeAws_restJson1ListFunctionEventInvokeConfigsCommandError = async
4437
4455
  $fault: "client",
4438
4456
  $metadata: deserializeMetadata(output),
4439
4457
  });
4440
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4458
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4441
4459
  }
4442
4460
  };
4443
4461
  const deserializeAws_restJson1ListFunctionsCommand = async (output, context) => {
@@ -4449,12 +4467,12 @@ const deserializeAws_restJson1ListFunctionsCommand = async (output, context) =>
4449
4467
  Functions: undefined,
4450
4468
  NextMarker: undefined,
4451
4469
  };
4452
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4470
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4453
4471
  if (data.Functions !== undefined && data.Functions !== null) {
4454
4472
  contents.Functions = deserializeAws_restJson1FunctionList(data.Functions, context);
4455
4473
  }
4456
4474
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4457
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4475
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4458
4476
  }
4459
4477
  return Promise.resolve(contents);
4460
4478
  };
@@ -4484,7 +4502,7 @@ const deserializeAws_restJson1ListFunctionsCommandError = async (output, context
4484
4502
  $fault: "client",
4485
4503
  $metadata: deserializeMetadata(output),
4486
4504
  });
4487
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4505
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4488
4506
  }
4489
4507
  };
4490
4508
  const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (output, context) => {
@@ -4496,12 +4514,12 @@ const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommand = async (o
4496
4514
  FunctionArns: undefined,
4497
4515
  NextMarker: undefined,
4498
4516
  };
4499
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4517
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4500
4518
  if (data.FunctionArns !== undefined && data.FunctionArns !== null) {
4501
4519
  contents.FunctionArns = deserializeAws_restJson1FunctionArnList(data.FunctionArns, context);
4502
4520
  }
4503
4521
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4504
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4522
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4505
4523
  }
4506
4524
  return Promise.resolve(contents);
4507
4525
  };
@@ -4531,7 +4549,7 @@ const deserializeAws_restJson1ListFunctionsByCodeSigningConfigCommandError = asy
4531
4549
  $fault: "client",
4532
4550
  $metadata: deserializeMetadata(output),
4533
4551
  });
4534
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4552
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4535
4553
  }
4536
4554
  };
4537
4555
  const deserializeAws_restJson1ListLayersCommand = async (output, context) => {
@@ -4543,12 +4561,12 @@ const deserializeAws_restJson1ListLayersCommand = async (output, context) => {
4543
4561
  Layers: undefined,
4544
4562
  NextMarker: undefined,
4545
4563
  };
4546
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4564
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4547
4565
  if (data.Layers !== undefined && data.Layers !== null) {
4548
4566
  contents.Layers = deserializeAws_restJson1LayersList(data.Layers, context);
4549
4567
  }
4550
4568
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4551
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4569
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4552
4570
  }
4553
4571
  return Promise.resolve(contents);
4554
4572
  };
@@ -4578,7 +4596,7 @@ const deserializeAws_restJson1ListLayersCommandError = async (output, context) =
4578
4596
  $fault: "client",
4579
4597
  $metadata: deserializeMetadata(output),
4580
4598
  });
4581
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4599
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4582
4600
  }
4583
4601
  };
4584
4602
  const deserializeAws_restJson1ListLayerVersionsCommand = async (output, context) => {
@@ -4590,12 +4608,12 @@ const deserializeAws_restJson1ListLayerVersionsCommand = async (output, context)
4590
4608
  LayerVersions: undefined,
4591
4609
  NextMarker: undefined,
4592
4610
  };
4593
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4611
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4594
4612
  if (data.LayerVersions !== undefined && data.LayerVersions !== null) {
4595
4613
  contents.LayerVersions = deserializeAws_restJson1LayerVersionsList(data.LayerVersions, context);
4596
4614
  }
4597
4615
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4598
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4616
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4599
4617
  }
4600
4618
  return Promise.resolve(contents);
4601
4619
  };
@@ -4628,7 +4646,7 @@ const deserializeAws_restJson1ListLayerVersionsCommandError = async (output, con
4628
4646
  $fault: "client",
4629
4647
  $metadata: deserializeMetadata(output),
4630
4648
  });
4631
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4649
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4632
4650
  }
4633
4651
  };
4634
4652
  const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (output, context) => {
@@ -4640,9 +4658,9 @@ const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommand = async (
4640
4658
  NextMarker: undefined,
4641
4659
  ProvisionedConcurrencyConfigs: undefined,
4642
4660
  };
4643
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4661
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4644
4662
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4645
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4663
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4646
4664
  }
4647
4665
  if (data.ProvisionedConcurrencyConfigs !== undefined && data.ProvisionedConcurrencyConfigs !== null) {
4648
4666
  contents.ProvisionedConcurrencyConfigs = deserializeAws_restJson1ProvisionedConcurrencyConfigList(data.ProvisionedConcurrencyConfigs, context);
@@ -4678,7 +4696,7 @@ const deserializeAws_restJson1ListProvisionedConcurrencyConfigsCommandError = as
4678
4696
  $fault: "client",
4679
4697
  $metadata: deserializeMetadata(output),
4680
4698
  });
4681
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4699
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4682
4700
  }
4683
4701
  };
4684
4702
  const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
@@ -4689,7 +4707,7 @@ const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
4689
4707
  $metadata: deserializeMetadata(output),
4690
4708
  Tags: undefined,
4691
4709
  };
4692
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4710
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4693
4711
  if (data.Tags !== undefined && data.Tags !== null) {
4694
4712
  contents.Tags = deserializeAws_restJson1Tags(data.Tags, context);
4695
4713
  }
@@ -4724,7 +4742,7 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
4724
4742
  $fault: "client",
4725
4743
  $metadata: deserializeMetadata(output),
4726
4744
  });
4727
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4745
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4728
4746
  }
4729
4747
  };
4730
4748
  const deserializeAws_restJson1ListVersionsByFunctionCommand = async (output, context) => {
@@ -4736,9 +4754,9 @@ const deserializeAws_restJson1ListVersionsByFunctionCommand = async (output, con
4736
4754
  NextMarker: undefined,
4737
4755
  Versions: undefined,
4738
4756
  };
4739
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4757
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4740
4758
  if (data.NextMarker !== undefined && data.NextMarker !== null) {
4741
- contents.NextMarker = smithy_client_1.expectString(data.NextMarker);
4759
+ contents.NextMarker = (0, smithy_client_1.expectString)(data.NextMarker);
4742
4760
  }
4743
4761
  if (data.Versions !== undefined && data.Versions !== null) {
4744
4762
  contents.Versions = deserializeAws_restJson1FunctionList(data.Versions, context);
@@ -4774,7 +4792,7 @@ const deserializeAws_restJson1ListVersionsByFunctionCommandError = async (output
4774
4792
  $fault: "client",
4775
4793
  $metadata: deserializeMetadata(output),
4776
4794
  });
4777
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4795
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4778
4796
  }
4779
4797
  };
4780
4798
  const deserializeAws_restJson1PublishLayerVersionCommand = async (output, context) => {
@@ -4793,7 +4811,7 @@ const deserializeAws_restJson1PublishLayerVersionCommand = async (output, contex
4793
4811
  LicenseInfo: undefined,
4794
4812
  Version: undefined,
4795
4813
  };
4796
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4814
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4797
4815
  if (data.CompatibleArchitectures !== undefined && data.CompatibleArchitectures !== null) {
4798
4816
  contents.CompatibleArchitectures = deserializeAws_restJson1CompatibleArchitectures(data.CompatibleArchitectures, context);
4799
4817
  }
@@ -4804,22 +4822,22 @@ const deserializeAws_restJson1PublishLayerVersionCommand = async (output, contex
4804
4822
  contents.Content = deserializeAws_restJson1LayerVersionContentOutput(data.Content, context);
4805
4823
  }
4806
4824
  if (data.CreatedDate !== undefined && data.CreatedDate !== null) {
4807
- contents.CreatedDate = smithy_client_1.expectString(data.CreatedDate);
4825
+ contents.CreatedDate = (0, smithy_client_1.expectString)(data.CreatedDate);
4808
4826
  }
4809
4827
  if (data.Description !== undefined && data.Description !== null) {
4810
- contents.Description = smithy_client_1.expectString(data.Description);
4828
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
4811
4829
  }
4812
4830
  if (data.LayerArn !== undefined && data.LayerArn !== null) {
4813
- contents.LayerArn = smithy_client_1.expectString(data.LayerArn);
4831
+ contents.LayerArn = (0, smithy_client_1.expectString)(data.LayerArn);
4814
4832
  }
4815
4833
  if (data.LayerVersionArn !== undefined && data.LayerVersionArn !== null) {
4816
- contents.LayerVersionArn = smithy_client_1.expectString(data.LayerVersionArn);
4834
+ contents.LayerVersionArn = (0, smithy_client_1.expectString)(data.LayerVersionArn);
4817
4835
  }
4818
4836
  if (data.LicenseInfo !== undefined && data.LicenseInfo !== null) {
4819
- contents.LicenseInfo = smithy_client_1.expectString(data.LicenseInfo);
4837
+ contents.LicenseInfo = (0, smithy_client_1.expectString)(data.LicenseInfo);
4820
4838
  }
4821
4839
  if (data.Version !== undefined && data.Version !== null) {
4822
- contents.Version = smithy_client_1.expectLong(data.Version);
4840
+ contents.Version = (0, smithy_client_1.expectLong)(data.Version);
4823
4841
  }
4824
4842
  return Promise.resolve(contents);
4825
4843
  };
@@ -4855,7 +4873,7 @@ const deserializeAws_restJson1PublishLayerVersionCommandError = async (output, c
4855
4873
  $fault: "client",
4856
4874
  $metadata: deserializeMetadata(output),
4857
4875
  });
4858
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4876
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4859
4877
  }
4860
4878
  };
4861
4879
  const deserializeAws_restJson1PublishVersionCommand = async (output, context) => {
@@ -4870,6 +4888,7 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
4870
4888
  DeadLetterConfig: undefined,
4871
4889
  Description: undefined,
4872
4890
  Environment: undefined,
4891
+ EphemeralStorage: undefined,
4873
4892
  FileSystemConfigs: undefined,
4874
4893
  FunctionArn: undefined,
4875
4894
  FunctionName: undefined,
@@ -4897,99 +4916,102 @@ const deserializeAws_restJson1PublishVersionCommand = async (output, context) =>
4897
4916
  Version: undefined,
4898
4917
  VpcConfig: undefined,
4899
4918
  };
4900
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4919
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4901
4920
  if (data.Architectures !== undefined && data.Architectures !== null) {
4902
4921
  contents.Architectures = deserializeAws_restJson1ArchitecturesList(data.Architectures, context);
4903
4922
  }
4904
4923
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
4905
- contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
4924
+ contents.CodeSha256 = (0, smithy_client_1.expectString)(data.CodeSha256);
4906
4925
  }
4907
4926
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
4908
- contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
4927
+ contents.CodeSize = (0, smithy_client_1.expectLong)(data.CodeSize);
4909
4928
  }
4910
4929
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
4911
4930
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
4912
4931
  }
4913
4932
  if (data.Description !== undefined && data.Description !== null) {
4914
- contents.Description = smithy_client_1.expectString(data.Description);
4933
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
4915
4934
  }
4916
4935
  if (data.Environment !== undefined && data.Environment !== null) {
4917
4936
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
4918
4937
  }
4938
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
4939
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
4940
+ }
4919
4941
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
4920
4942
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
4921
4943
  }
4922
4944
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
4923
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
4945
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
4924
4946
  }
4925
4947
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
4926
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
4948
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
4927
4949
  }
4928
4950
  if (data.Handler !== undefined && data.Handler !== null) {
4929
- contents.Handler = smithy_client_1.expectString(data.Handler);
4951
+ contents.Handler = (0, smithy_client_1.expectString)(data.Handler);
4930
4952
  }
4931
4953
  if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
4932
4954
  contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
4933
4955
  }
4934
4956
  if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
4935
- contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
4957
+ contents.KMSKeyArn = (0, smithy_client_1.expectString)(data.KMSKeyArn);
4936
4958
  }
4937
4959
  if (data.LastModified !== undefined && data.LastModified !== null) {
4938
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
4960
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
4939
4961
  }
4940
4962
  if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
4941
- contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
4963
+ contents.LastUpdateStatus = (0, smithy_client_1.expectString)(data.LastUpdateStatus);
4942
4964
  }
4943
4965
  if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
4944
- contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
4966
+ contents.LastUpdateStatusReason = (0, smithy_client_1.expectString)(data.LastUpdateStatusReason);
4945
4967
  }
4946
4968
  if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
4947
- contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
4969
+ contents.LastUpdateStatusReasonCode = (0, smithy_client_1.expectString)(data.LastUpdateStatusReasonCode);
4948
4970
  }
4949
4971
  if (data.Layers !== undefined && data.Layers !== null) {
4950
4972
  contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
4951
4973
  }
4952
4974
  if (data.MasterArn !== undefined && data.MasterArn !== null) {
4953
- contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
4975
+ contents.MasterArn = (0, smithy_client_1.expectString)(data.MasterArn);
4954
4976
  }
4955
4977
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
4956
- contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
4978
+ contents.MemorySize = (0, smithy_client_1.expectInt32)(data.MemorySize);
4957
4979
  }
4958
4980
  if (data.PackageType !== undefined && data.PackageType !== null) {
4959
- contents.PackageType = smithy_client_1.expectString(data.PackageType);
4981
+ contents.PackageType = (0, smithy_client_1.expectString)(data.PackageType);
4960
4982
  }
4961
4983
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
4962
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
4984
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
4963
4985
  }
4964
4986
  if (data.Role !== undefined && data.Role !== null) {
4965
- contents.Role = smithy_client_1.expectString(data.Role);
4987
+ contents.Role = (0, smithy_client_1.expectString)(data.Role);
4966
4988
  }
4967
4989
  if (data.Runtime !== undefined && data.Runtime !== null) {
4968
- contents.Runtime = smithy_client_1.expectString(data.Runtime);
4990
+ contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
4969
4991
  }
4970
4992
  if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
4971
- contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
4993
+ contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
4972
4994
  }
4973
4995
  if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
4974
- contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
4996
+ contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
4975
4997
  }
4976
4998
  if (data.State !== undefined && data.State !== null) {
4977
- contents.State = smithy_client_1.expectString(data.State);
4999
+ contents.State = (0, smithy_client_1.expectString)(data.State);
4978
5000
  }
4979
5001
  if (data.StateReason !== undefined && data.StateReason !== null) {
4980
- contents.StateReason = smithy_client_1.expectString(data.StateReason);
5002
+ contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
4981
5003
  }
4982
5004
  if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
4983
- contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
5005
+ contents.StateReasonCode = (0, smithy_client_1.expectString)(data.StateReasonCode);
4984
5006
  }
4985
5007
  if (data.Timeout !== undefined && data.Timeout !== null) {
4986
- contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
5008
+ contents.Timeout = (0, smithy_client_1.expectInt32)(data.Timeout);
4987
5009
  }
4988
5010
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
4989
5011
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
4990
5012
  }
4991
5013
  if (data.Version !== undefined && data.Version !== null) {
4992
- contents.Version = smithy_client_1.expectString(data.Version);
5014
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
4993
5015
  }
4994
5016
  if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
4995
5017
  contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
@@ -5034,7 +5056,7 @@ const deserializeAws_restJson1PublishVersionCommandError = async (output, contex
5034
5056
  $fault: "client",
5035
5057
  $metadata: deserializeMetadata(output),
5036
5058
  });
5037
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5059
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5038
5060
  }
5039
5061
  };
5040
5062
  const deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (output, context) => {
@@ -5046,12 +5068,12 @@ const deserializeAws_restJson1PutFunctionCodeSigningConfigCommand = async (outpu
5046
5068
  CodeSigningConfigArn: undefined,
5047
5069
  FunctionName: undefined,
5048
5070
  };
5049
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5071
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5050
5072
  if (data.CodeSigningConfigArn !== undefined && data.CodeSigningConfigArn !== null) {
5051
- contents.CodeSigningConfigArn = smithy_client_1.expectString(data.CodeSigningConfigArn);
5073
+ contents.CodeSigningConfigArn = (0, smithy_client_1.expectString)(data.CodeSigningConfigArn);
5052
5074
  }
5053
5075
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
5054
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
5076
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
5055
5077
  }
5056
5078
  return Promise.resolve(contents);
5057
5079
  };
@@ -5090,7 +5112,7 @@ const deserializeAws_restJson1PutFunctionCodeSigningConfigCommandError = async (
5090
5112
  $fault: "client",
5091
5113
  $metadata: deserializeMetadata(output),
5092
5114
  });
5093
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5115
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5094
5116
  }
5095
5117
  };
5096
5118
  const deserializeAws_restJson1PutFunctionConcurrencyCommand = async (output, context) => {
@@ -5101,9 +5123,9 @@ const deserializeAws_restJson1PutFunctionConcurrencyCommand = async (output, con
5101
5123
  $metadata: deserializeMetadata(output),
5102
5124
  ReservedConcurrentExecutions: undefined,
5103
5125
  };
5104
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5126
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5105
5127
  if (data.ReservedConcurrentExecutions !== undefined && data.ReservedConcurrentExecutions !== null) {
5106
- contents.ReservedConcurrentExecutions = smithy_client_1.expectInt32(data.ReservedConcurrentExecutions);
5128
+ contents.ReservedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.ReservedConcurrentExecutions);
5107
5129
  }
5108
5130
  return Promise.resolve(contents);
5109
5131
  };
@@ -5139,7 +5161,7 @@ const deserializeAws_restJson1PutFunctionConcurrencyCommandError = async (output
5139
5161
  $fault: "client",
5140
5162
  $metadata: deserializeMetadata(output),
5141
5163
  });
5142
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5164
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5143
5165
  }
5144
5166
  };
5145
5167
  const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (output, context) => {
@@ -5154,21 +5176,21 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommand = async (outpu
5154
5176
  MaximumEventAgeInSeconds: undefined,
5155
5177
  MaximumRetryAttempts: undefined,
5156
5178
  };
5157
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5179
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5158
5180
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
5159
5181
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
5160
5182
  }
5161
5183
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
5162
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
5184
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
5163
5185
  }
5164
5186
  if (data.LastModified !== undefined && data.LastModified !== null) {
5165
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
5187
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
5166
5188
  }
5167
5189
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
5168
- contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
5190
+ contents.MaximumEventAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumEventAgeInSeconds);
5169
5191
  }
5170
5192
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
5171
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
5193
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
5172
5194
  }
5173
5195
  return Promise.resolve(contents);
5174
5196
  };
@@ -5204,7 +5226,7 @@ const deserializeAws_restJson1PutFunctionEventInvokeConfigCommandError = async (
5204
5226
  $fault: "client",
5205
5227
  $metadata: deserializeMetadata(output),
5206
5228
  });
5207
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5229
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5208
5230
  }
5209
5231
  };
5210
5232
  const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (output, context) => {
@@ -5220,27 +5242,27 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommand = async (ou
5220
5242
  Status: undefined,
5221
5243
  StatusReason: undefined,
5222
5244
  };
5223
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5245
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5224
5246
  if (data.AllocatedProvisionedConcurrentExecutions !== undefined &&
5225
5247
  data.AllocatedProvisionedConcurrentExecutions !== null) {
5226
- contents.AllocatedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AllocatedProvisionedConcurrentExecutions);
5248
+ contents.AllocatedProvisionedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.AllocatedProvisionedConcurrentExecutions);
5227
5249
  }
5228
5250
  if (data.AvailableProvisionedConcurrentExecutions !== undefined &&
5229
5251
  data.AvailableProvisionedConcurrentExecutions !== null) {
5230
- contents.AvailableProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.AvailableProvisionedConcurrentExecutions);
5252
+ contents.AvailableProvisionedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.AvailableProvisionedConcurrentExecutions);
5231
5253
  }
5232
5254
  if (data.LastModified !== undefined && data.LastModified !== null) {
5233
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
5255
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
5234
5256
  }
5235
5257
  if (data.RequestedProvisionedConcurrentExecutions !== undefined &&
5236
5258
  data.RequestedProvisionedConcurrentExecutions !== null) {
5237
- contents.RequestedProvisionedConcurrentExecutions = smithy_client_1.expectInt32(data.RequestedProvisionedConcurrentExecutions);
5259
+ contents.RequestedProvisionedConcurrentExecutions = (0, smithy_client_1.expectInt32)(data.RequestedProvisionedConcurrentExecutions);
5238
5260
  }
5239
5261
  if (data.Status !== undefined && data.Status !== null) {
5240
- contents.Status = smithy_client_1.expectString(data.Status);
5262
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
5241
5263
  }
5242
5264
  if (data.StatusReason !== undefined && data.StatusReason !== null) {
5243
- contents.StatusReason = smithy_client_1.expectString(data.StatusReason);
5265
+ contents.StatusReason = (0, smithy_client_1.expectString)(data.StatusReason);
5244
5266
  }
5245
5267
  return Promise.resolve(contents);
5246
5268
  };
@@ -5276,7 +5298,7 @@ const deserializeAws_restJson1PutProvisionedConcurrencyConfigCommandError = asyn
5276
5298
  $fault: "client",
5277
5299
  $metadata: deserializeMetadata(output),
5278
5300
  });
5279
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5301
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5280
5302
  }
5281
5303
  };
5282
5304
  const deserializeAws_restJson1RemoveLayerVersionPermissionCommand = async (output, context) => {
@@ -5321,7 +5343,7 @@ const deserializeAws_restJson1RemoveLayerVersionPermissionCommandError = async (
5321
5343
  $fault: "client",
5322
5344
  $metadata: deserializeMetadata(output),
5323
5345
  });
5324
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5346
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5325
5347
  }
5326
5348
  };
5327
5349
  const deserializeAws_restJson1RemovePermissionCommand = async (output, context) => {
@@ -5366,7 +5388,7 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
5366
5388
  $fault: "client",
5367
5389
  $metadata: deserializeMetadata(output),
5368
5390
  });
5369
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5391
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5370
5392
  }
5371
5393
  };
5372
5394
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -5411,7 +5433,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
5411
5433
  $fault: "client",
5412
5434
  $metadata: deserializeMetadata(output),
5413
5435
  });
5414
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5436
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5415
5437
  }
5416
5438
  };
5417
5439
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -5456,7 +5478,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
5456
5478
  $fault: "client",
5457
5479
  $metadata: deserializeMetadata(output),
5458
5480
  });
5459
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5481
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5460
5482
  }
5461
5483
  };
5462
5484
  const deserializeAws_restJson1UpdateAliasCommand = async (output, context) => {
@@ -5472,21 +5494,21 @@ const deserializeAws_restJson1UpdateAliasCommand = async (output, context) => {
5472
5494
  RevisionId: undefined,
5473
5495
  RoutingConfig: undefined,
5474
5496
  };
5475
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5497
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5476
5498
  if (data.AliasArn !== undefined && data.AliasArn !== null) {
5477
- contents.AliasArn = smithy_client_1.expectString(data.AliasArn);
5499
+ contents.AliasArn = (0, smithy_client_1.expectString)(data.AliasArn);
5478
5500
  }
5479
5501
  if (data.Description !== undefined && data.Description !== null) {
5480
- contents.Description = smithy_client_1.expectString(data.Description);
5502
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
5481
5503
  }
5482
5504
  if (data.FunctionVersion !== undefined && data.FunctionVersion !== null) {
5483
- contents.FunctionVersion = smithy_client_1.expectString(data.FunctionVersion);
5505
+ contents.FunctionVersion = (0, smithy_client_1.expectString)(data.FunctionVersion);
5484
5506
  }
5485
5507
  if (data.Name !== undefined && data.Name !== null) {
5486
- contents.Name = smithy_client_1.expectString(data.Name);
5508
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
5487
5509
  }
5488
5510
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
5489
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
5511
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
5490
5512
  }
5491
5513
  if (data.RoutingConfig !== undefined && data.RoutingConfig !== null) {
5492
5514
  contents.RoutingConfig = deserializeAws_restJson1AliasRoutingConfiguration(data.RoutingConfig, context);
@@ -5528,7 +5550,7 @@ const deserializeAws_restJson1UpdateAliasCommandError = async (output, context)
5528
5550
  $fault: "client",
5529
5551
  $metadata: deserializeMetadata(output),
5530
5552
  });
5531
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5553
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5532
5554
  }
5533
5555
  };
5534
5556
  const deserializeAws_restJson1UpdateCodeSigningConfigCommand = async (output, context) => {
@@ -5539,7 +5561,7 @@ const deserializeAws_restJson1UpdateCodeSigningConfigCommand = async (output, co
5539
5561
  $metadata: deserializeMetadata(output),
5540
5562
  CodeSigningConfig: undefined,
5541
5563
  };
5542
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5564
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5543
5565
  if (data.CodeSigningConfig !== undefined && data.CodeSigningConfig !== null) {
5544
5566
  contents.CodeSigningConfig = deserializeAws_restJson1CodeSigningConfig(data.CodeSigningConfig, context);
5545
5567
  }
@@ -5571,7 +5593,7 @@ const deserializeAws_restJson1UpdateCodeSigningConfigCommandError = async (outpu
5571
5593
  $fault: "client",
5572
5594
  $metadata: deserializeMetadata(output),
5573
5595
  });
5574
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5596
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5575
5597
  }
5576
5598
  };
5577
5599
  const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, context) => {
@@ -5604,45 +5626,45 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
5604
5626
  TumblingWindowInSeconds: undefined,
5605
5627
  UUID: undefined,
5606
5628
  };
5607
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5629
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5608
5630
  if (data.BatchSize !== undefined && data.BatchSize !== null) {
5609
- contents.BatchSize = smithy_client_1.expectInt32(data.BatchSize);
5631
+ contents.BatchSize = (0, smithy_client_1.expectInt32)(data.BatchSize);
5610
5632
  }
5611
5633
  if (data.BisectBatchOnFunctionError !== undefined && data.BisectBatchOnFunctionError !== null) {
5612
- contents.BisectBatchOnFunctionError = smithy_client_1.expectBoolean(data.BisectBatchOnFunctionError);
5634
+ contents.BisectBatchOnFunctionError = (0, smithy_client_1.expectBoolean)(data.BisectBatchOnFunctionError);
5613
5635
  }
5614
5636
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
5615
5637
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
5616
5638
  }
5617
5639
  if (data.EventSourceArn !== undefined && data.EventSourceArn !== null) {
5618
- contents.EventSourceArn = smithy_client_1.expectString(data.EventSourceArn);
5640
+ contents.EventSourceArn = (0, smithy_client_1.expectString)(data.EventSourceArn);
5619
5641
  }
5620
5642
  if (data.FilterCriteria !== undefined && data.FilterCriteria !== null) {
5621
5643
  contents.FilterCriteria = deserializeAws_restJson1FilterCriteria(data.FilterCriteria, context);
5622
5644
  }
5623
5645
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
5624
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
5646
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
5625
5647
  }
5626
5648
  if (data.FunctionResponseTypes !== undefined && data.FunctionResponseTypes !== null) {
5627
5649
  contents.FunctionResponseTypes = deserializeAws_restJson1FunctionResponseTypeList(data.FunctionResponseTypes, context);
5628
5650
  }
5629
5651
  if (data.LastModified !== undefined && data.LastModified !== null) {
5630
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
5652
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
5631
5653
  }
5632
5654
  if (data.LastProcessingResult !== undefined && data.LastProcessingResult !== null) {
5633
- contents.LastProcessingResult = smithy_client_1.expectString(data.LastProcessingResult);
5655
+ contents.LastProcessingResult = (0, smithy_client_1.expectString)(data.LastProcessingResult);
5634
5656
  }
5635
5657
  if (data.MaximumBatchingWindowInSeconds !== undefined && data.MaximumBatchingWindowInSeconds !== null) {
5636
- contents.MaximumBatchingWindowInSeconds = smithy_client_1.expectInt32(data.MaximumBatchingWindowInSeconds);
5658
+ contents.MaximumBatchingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumBatchingWindowInSeconds);
5637
5659
  }
5638
5660
  if (data.MaximumRecordAgeInSeconds !== undefined && data.MaximumRecordAgeInSeconds !== null) {
5639
- contents.MaximumRecordAgeInSeconds = smithy_client_1.expectInt32(data.MaximumRecordAgeInSeconds);
5661
+ contents.MaximumRecordAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumRecordAgeInSeconds);
5640
5662
  }
5641
5663
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
5642
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
5664
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
5643
5665
  }
5644
5666
  if (data.ParallelizationFactor !== undefined && data.ParallelizationFactor !== null) {
5645
- contents.ParallelizationFactor = smithy_client_1.expectInt32(data.ParallelizationFactor);
5667
+ contents.ParallelizationFactor = (0, smithy_client_1.expectInt32)(data.ParallelizationFactor);
5646
5668
  }
5647
5669
  if (data.Queues !== undefined && data.Queues !== null) {
5648
5670
  contents.Queues = deserializeAws_restJson1Queues(data.Queues, context);
@@ -5654,25 +5676,25 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommand = async (output, c
5654
5676
  contents.SourceAccessConfigurations = deserializeAws_restJson1SourceAccessConfigurations(data.SourceAccessConfigurations, context);
5655
5677
  }
5656
5678
  if (data.StartingPosition !== undefined && data.StartingPosition !== null) {
5657
- contents.StartingPosition = smithy_client_1.expectString(data.StartingPosition);
5679
+ contents.StartingPosition = (0, smithy_client_1.expectString)(data.StartingPosition);
5658
5680
  }
5659
5681
  if (data.StartingPositionTimestamp !== undefined && data.StartingPositionTimestamp !== null) {
5660
- contents.StartingPositionTimestamp = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.StartingPositionTimestamp)));
5682
+ contents.StartingPositionTimestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartingPositionTimestamp)));
5661
5683
  }
5662
5684
  if (data.State !== undefined && data.State !== null) {
5663
- contents.State = smithy_client_1.expectString(data.State);
5685
+ contents.State = (0, smithy_client_1.expectString)(data.State);
5664
5686
  }
5665
5687
  if (data.StateTransitionReason !== undefined && data.StateTransitionReason !== null) {
5666
- contents.StateTransitionReason = smithy_client_1.expectString(data.StateTransitionReason);
5688
+ contents.StateTransitionReason = (0, smithy_client_1.expectString)(data.StateTransitionReason);
5667
5689
  }
5668
5690
  if (data.Topics !== undefined && data.Topics !== null) {
5669
5691
  contents.Topics = deserializeAws_restJson1Topics(data.Topics, context);
5670
5692
  }
5671
5693
  if (data.TumblingWindowInSeconds !== undefined && data.TumblingWindowInSeconds !== null) {
5672
- contents.TumblingWindowInSeconds = smithy_client_1.expectInt32(data.TumblingWindowInSeconds);
5694
+ contents.TumblingWindowInSeconds = (0, smithy_client_1.expectInt32)(data.TumblingWindowInSeconds);
5673
5695
  }
5674
5696
  if (data.UUID !== undefined && data.UUID !== null) {
5675
- contents.UUID = smithy_client_1.expectString(data.UUID);
5697
+ contents.UUID = (0, smithy_client_1.expectString)(data.UUID);
5676
5698
  }
5677
5699
  return Promise.resolve(contents);
5678
5700
  };
@@ -5711,7 +5733,7 @@ const deserializeAws_restJson1UpdateEventSourceMappingCommandError = async (outp
5711
5733
  $fault: "client",
5712
5734
  $metadata: deserializeMetadata(output),
5713
5735
  });
5714
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5736
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5715
5737
  }
5716
5738
  };
5717
5739
  const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context) => {
@@ -5726,6 +5748,7 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
5726
5748
  DeadLetterConfig: undefined,
5727
5749
  Description: undefined,
5728
5750
  Environment: undefined,
5751
+ EphemeralStorage: undefined,
5729
5752
  FileSystemConfigs: undefined,
5730
5753
  FunctionArn: undefined,
5731
5754
  FunctionName: undefined,
@@ -5753,99 +5776,102 @@ const deserializeAws_restJson1UpdateFunctionCodeCommand = async (output, context
5753
5776
  Version: undefined,
5754
5777
  VpcConfig: undefined,
5755
5778
  };
5756
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5779
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5757
5780
  if (data.Architectures !== undefined && data.Architectures !== null) {
5758
5781
  contents.Architectures = deserializeAws_restJson1ArchitecturesList(data.Architectures, context);
5759
5782
  }
5760
5783
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
5761
- contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
5784
+ contents.CodeSha256 = (0, smithy_client_1.expectString)(data.CodeSha256);
5762
5785
  }
5763
5786
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
5764
- contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
5787
+ contents.CodeSize = (0, smithy_client_1.expectLong)(data.CodeSize);
5765
5788
  }
5766
5789
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
5767
5790
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
5768
5791
  }
5769
5792
  if (data.Description !== undefined && data.Description !== null) {
5770
- contents.Description = smithy_client_1.expectString(data.Description);
5793
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
5771
5794
  }
5772
5795
  if (data.Environment !== undefined && data.Environment !== null) {
5773
5796
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
5774
5797
  }
5798
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
5799
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
5800
+ }
5775
5801
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
5776
5802
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
5777
5803
  }
5778
5804
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
5779
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
5805
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
5780
5806
  }
5781
5807
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
5782
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
5808
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
5783
5809
  }
5784
5810
  if (data.Handler !== undefined && data.Handler !== null) {
5785
- contents.Handler = smithy_client_1.expectString(data.Handler);
5811
+ contents.Handler = (0, smithy_client_1.expectString)(data.Handler);
5786
5812
  }
5787
5813
  if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
5788
5814
  contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
5789
5815
  }
5790
5816
  if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
5791
- contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
5817
+ contents.KMSKeyArn = (0, smithy_client_1.expectString)(data.KMSKeyArn);
5792
5818
  }
5793
5819
  if (data.LastModified !== undefined && data.LastModified !== null) {
5794
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
5820
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
5795
5821
  }
5796
5822
  if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
5797
- contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
5823
+ contents.LastUpdateStatus = (0, smithy_client_1.expectString)(data.LastUpdateStatus);
5798
5824
  }
5799
5825
  if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
5800
- contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
5826
+ contents.LastUpdateStatusReason = (0, smithy_client_1.expectString)(data.LastUpdateStatusReason);
5801
5827
  }
5802
5828
  if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
5803
- contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
5829
+ contents.LastUpdateStatusReasonCode = (0, smithy_client_1.expectString)(data.LastUpdateStatusReasonCode);
5804
5830
  }
5805
5831
  if (data.Layers !== undefined && data.Layers !== null) {
5806
5832
  contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
5807
5833
  }
5808
5834
  if (data.MasterArn !== undefined && data.MasterArn !== null) {
5809
- contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
5835
+ contents.MasterArn = (0, smithy_client_1.expectString)(data.MasterArn);
5810
5836
  }
5811
5837
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
5812
- contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
5838
+ contents.MemorySize = (0, smithy_client_1.expectInt32)(data.MemorySize);
5813
5839
  }
5814
5840
  if (data.PackageType !== undefined && data.PackageType !== null) {
5815
- contents.PackageType = smithy_client_1.expectString(data.PackageType);
5841
+ contents.PackageType = (0, smithy_client_1.expectString)(data.PackageType);
5816
5842
  }
5817
5843
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
5818
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
5844
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
5819
5845
  }
5820
5846
  if (data.Role !== undefined && data.Role !== null) {
5821
- contents.Role = smithy_client_1.expectString(data.Role);
5847
+ contents.Role = (0, smithy_client_1.expectString)(data.Role);
5822
5848
  }
5823
5849
  if (data.Runtime !== undefined && data.Runtime !== null) {
5824
- contents.Runtime = smithy_client_1.expectString(data.Runtime);
5850
+ contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
5825
5851
  }
5826
5852
  if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
5827
- contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
5853
+ contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
5828
5854
  }
5829
5855
  if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
5830
- contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
5856
+ contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
5831
5857
  }
5832
5858
  if (data.State !== undefined && data.State !== null) {
5833
- contents.State = smithy_client_1.expectString(data.State);
5859
+ contents.State = (0, smithy_client_1.expectString)(data.State);
5834
5860
  }
5835
5861
  if (data.StateReason !== undefined && data.StateReason !== null) {
5836
- contents.StateReason = smithy_client_1.expectString(data.StateReason);
5862
+ contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
5837
5863
  }
5838
5864
  if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
5839
- contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
5865
+ contents.StateReasonCode = (0, smithy_client_1.expectString)(data.StateReasonCode);
5840
5866
  }
5841
5867
  if (data.Timeout !== undefined && data.Timeout !== null) {
5842
- contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
5868
+ contents.Timeout = (0, smithy_client_1.expectInt32)(data.Timeout);
5843
5869
  }
5844
5870
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
5845
5871
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
5846
5872
  }
5847
5873
  if (data.Version !== undefined && data.Version !== null) {
5848
- contents.Version = smithy_client_1.expectString(data.Version);
5874
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
5849
5875
  }
5850
5876
  if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
5851
5877
  contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
@@ -5899,7 +5925,7 @@ const deserializeAws_restJson1UpdateFunctionCodeCommandError = async (output, co
5899
5925
  $fault: "client",
5900
5926
  $metadata: deserializeMetadata(output),
5901
5927
  });
5902
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5928
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5903
5929
  }
5904
5930
  };
5905
5931
  const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output, context) => {
@@ -5914,6 +5940,7 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
5914
5940
  DeadLetterConfig: undefined,
5915
5941
  Description: undefined,
5916
5942
  Environment: undefined,
5943
+ EphemeralStorage: undefined,
5917
5944
  FileSystemConfigs: undefined,
5918
5945
  FunctionArn: undefined,
5919
5946
  FunctionName: undefined,
@@ -5941,99 +5968,102 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommand = async (output
5941
5968
  Version: undefined,
5942
5969
  VpcConfig: undefined,
5943
5970
  };
5944
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5971
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5945
5972
  if (data.Architectures !== undefined && data.Architectures !== null) {
5946
5973
  contents.Architectures = deserializeAws_restJson1ArchitecturesList(data.Architectures, context);
5947
5974
  }
5948
5975
  if (data.CodeSha256 !== undefined && data.CodeSha256 !== null) {
5949
- contents.CodeSha256 = smithy_client_1.expectString(data.CodeSha256);
5976
+ contents.CodeSha256 = (0, smithy_client_1.expectString)(data.CodeSha256);
5950
5977
  }
5951
5978
  if (data.CodeSize !== undefined && data.CodeSize !== null) {
5952
- contents.CodeSize = smithy_client_1.expectLong(data.CodeSize);
5979
+ contents.CodeSize = (0, smithy_client_1.expectLong)(data.CodeSize);
5953
5980
  }
5954
5981
  if (data.DeadLetterConfig !== undefined && data.DeadLetterConfig !== null) {
5955
5982
  contents.DeadLetterConfig = deserializeAws_restJson1DeadLetterConfig(data.DeadLetterConfig, context);
5956
5983
  }
5957
5984
  if (data.Description !== undefined && data.Description !== null) {
5958
- contents.Description = smithy_client_1.expectString(data.Description);
5985
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
5959
5986
  }
5960
5987
  if (data.Environment !== undefined && data.Environment !== null) {
5961
5988
  contents.Environment = deserializeAws_restJson1EnvironmentResponse(data.Environment, context);
5962
5989
  }
5990
+ if (data.EphemeralStorage !== undefined && data.EphemeralStorage !== null) {
5991
+ contents.EphemeralStorage = deserializeAws_restJson1EphemeralStorage(data.EphemeralStorage, context);
5992
+ }
5963
5993
  if (data.FileSystemConfigs !== undefined && data.FileSystemConfigs !== null) {
5964
5994
  contents.FileSystemConfigs = deserializeAws_restJson1FileSystemConfigList(data.FileSystemConfigs, context);
5965
5995
  }
5966
5996
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
5967
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
5997
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
5968
5998
  }
5969
5999
  if (data.FunctionName !== undefined && data.FunctionName !== null) {
5970
- contents.FunctionName = smithy_client_1.expectString(data.FunctionName);
6000
+ contents.FunctionName = (0, smithy_client_1.expectString)(data.FunctionName);
5971
6001
  }
5972
6002
  if (data.Handler !== undefined && data.Handler !== null) {
5973
- contents.Handler = smithy_client_1.expectString(data.Handler);
6003
+ contents.Handler = (0, smithy_client_1.expectString)(data.Handler);
5974
6004
  }
5975
6005
  if (data.ImageConfigResponse !== undefined && data.ImageConfigResponse !== null) {
5976
6006
  contents.ImageConfigResponse = deserializeAws_restJson1ImageConfigResponse(data.ImageConfigResponse, context);
5977
6007
  }
5978
6008
  if (data.KMSKeyArn !== undefined && data.KMSKeyArn !== null) {
5979
- contents.KMSKeyArn = smithy_client_1.expectString(data.KMSKeyArn);
6009
+ contents.KMSKeyArn = (0, smithy_client_1.expectString)(data.KMSKeyArn);
5980
6010
  }
5981
6011
  if (data.LastModified !== undefined && data.LastModified !== null) {
5982
- contents.LastModified = smithy_client_1.expectString(data.LastModified);
6012
+ contents.LastModified = (0, smithy_client_1.expectString)(data.LastModified);
5983
6013
  }
5984
6014
  if (data.LastUpdateStatus !== undefined && data.LastUpdateStatus !== null) {
5985
- contents.LastUpdateStatus = smithy_client_1.expectString(data.LastUpdateStatus);
6015
+ contents.LastUpdateStatus = (0, smithy_client_1.expectString)(data.LastUpdateStatus);
5986
6016
  }
5987
6017
  if (data.LastUpdateStatusReason !== undefined && data.LastUpdateStatusReason !== null) {
5988
- contents.LastUpdateStatusReason = smithy_client_1.expectString(data.LastUpdateStatusReason);
6018
+ contents.LastUpdateStatusReason = (0, smithy_client_1.expectString)(data.LastUpdateStatusReason);
5989
6019
  }
5990
6020
  if (data.LastUpdateStatusReasonCode !== undefined && data.LastUpdateStatusReasonCode !== null) {
5991
- contents.LastUpdateStatusReasonCode = smithy_client_1.expectString(data.LastUpdateStatusReasonCode);
6021
+ contents.LastUpdateStatusReasonCode = (0, smithy_client_1.expectString)(data.LastUpdateStatusReasonCode);
5992
6022
  }
5993
6023
  if (data.Layers !== undefined && data.Layers !== null) {
5994
6024
  contents.Layers = deserializeAws_restJson1LayersReferenceList(data.Layers, context);
5995
6025
  }
5996
6026
  if (data.MasterArn !== undefined && data.MasterArn !== null) {
5997
- contents.MasterArn = smithy_client_1.expectString(data.MasterArn);
6027
+ contents.MasterArn = (0, smithy_client_1.expectString)(data.MasterArn);
5998
6028
  }
5999
6029
  if (data.MemorySize !== undefined && data.MemorySize !== null) {
6000
- contents.MemorySize = smithy_client_1.expectInt32(data.MemorySize);
6030
+ contents.MemorySize = (0, smithy_client_1.expectInt32)(data.MemorySize);
6001
6031
  }
6002
6032
  if (data.PackageType !== undefined && data.PackageType !== null) {
6003
- contents.PackageType = smithy_client_1.expectString(data.PackageType);
6033
+ contents.PackageType = (0, smithy_client_1.expectString)(data.PackageType);
6004
6034
  }
6005
6035
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
6006
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
6036
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
6007
6037
  }
6008
6038
  if (data.Role !== undefined && data.Role !== null) {
6009
- contents.Role = smithy_client_1.expectString(data.Role);
6039
+ contents.Role = (0, smithy_client_1.expectString)(data.Role);
6010
6040
  }
6011
6041
  if (data.Runtime !== undefined && data.Runtime !== null) {
6012
- contents.Runtime = smithy_client_1.expectString(data.Runtime);
6042
+ contents.Runtime = (0, smithy_client_1.expectString)(data.Runtime);
6013
6043
  }
6014
6044
  if (data.SigningJobArn !== undefined && data.SigningJobArn !== null) {
6015
- contents.SigningJobArn = smithy_client_1.expectString(data.SigningJobArn);
6045
+ contents.SigningJobArn = (0, smithy_client_1.expectString)(data.SigningJobArn);
6016
6046
  }
6017
6047
  if (data.SigningProfileVersionArn !== undefined && data.SigningProfileVersionArn !== null) {
6018
- contents.SigningProfileVersionArn = smithy_client_1.expectString(data.SigningProfileVersionArn);
6048
+ contents.SigningProfileVersionArn = (0, smithy_client_1.expectString)(data.SigningProfileVersionArn);
6019
6049
  }
6020
6050
  if (data.State !== undefined && data.State !== null) {
6021
- contents.State = smithy_client_1.expectString(data.State);
6051
+ contents.State = (0, smithy_client_1.expectString)(data.State);
6022
6052
  }
6023
6053
  if (data.StateReason !== undefined && data.StateReason !== null) {
6024
- contents.StateReason = smithy_client_1.expectString(data.StateReason);
6054
+ contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
6025
6055
  }
6026
6056
  if (data.StateReasonCode !== undefined && data.StateReasonCode !== null) {
6027
- contents.StateReasonCode = smithy_client_1.expectString(data.StateReasonCode);
6057
+ contents.StateReasonCode = (0, smithy_client_1.expectString)(data.StateReasonCode);
6028
6058
  }
6029
6059
  if (data.Timeout !== undefined && data.Timeout !== null) {
6030
- contents.Timeout = smithy_client_1.expectInt32(data.Timeout);
6060
+ contents.Timeout = (0, smithy_client_1.expectInt32)(data.Timeout);
6031
6061
  }
6032
6062
  if (data.TracingConfig !== undefined && data.TracingConfig !== null) {
6033
6063
  contents.TracingConfig = deserializeAws_restJson1TracingConfigResponse(data.TracingConfig, context);
6034
6064
  }
6035
6065
  if (data.Version !== undefined && data.Version !== null) {
6036
- contents.Version = smithy_client_1.expectString(data.Version);
6066
+ contents.Version = (0, smithy_client_1.expectString)(data.Version);
6037
6067
  }
6038
6068
  if (data.VpcConfig !== undefined && data.VpcConfig !== null) {
6039
6069
  contents.VpcConfig = deserializeAws_restJson1VpcConfigResponse(data.VpcConfig, context);
@@ -6084,7 +6114,7 @@ const deserializeAws_restJson1UpdateFunctionConfigurationCommandError = async (o
6084
6114
  $fault: "client",
6085
6115
  $metadata: deserializeMetadata(output),
6086
6116
  });
6087
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6117
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6088
6118
  }
6089
6119
  };
6090
6120
  const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (output, context) => {
@@ -6099,21 +6129,21 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommand = async (ou
6099
6129
  MaximumEventAgeInSeconds: undefined,
6100
6130
  MaximumRetryAttempts: undefined,
6101
6131
  };
6102
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6132
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6103
6133
  if (data.DestinationConfig !== undefined && data.DestinationConfig !== null) {
6104
6134
  contents.DestinationConfig = deserializeAws_restJson1DestinationConfig(data.DestinationConfig, context);
6105
6135
  }
6106
6136
  if (data.FunctionArn !== undefined && data.FunctionArn !== null) {
6107
- contents.FunctionArn = smithy_client_1.expectString(data.FunctionArn);
6137
+ contents.FunctionArn = (0, smithy_client_1.expectString)(data.FunctionArn);
6108
6138
  }
6109
6139
  if (data.LastModified !== undefined && data.LastModified !== null) {
6110
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModified)));
6140
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModified)));
6111
6141
  }
6112
6142
  if (data.MaximumEventAgeInSeconds !== undefined && data.MaximumEventAgeInSeconds !== null) {
6113
- contents.MaximumEventAgeInSeconds = smithy_client_1.expectInt32(data.MaximumEventAgeInSeconds);
6143
+ contents.MaximumEventAgeInSeconds = (0, smithy_client_1.expectInt32)(data.MaximumEventAgeInSeconds);
6114
6144
  }
6115
6145
  if (data.MaximumRetryAttempts !== undefined && data.MaximumRetryAttempts !== null) {
6116
- contents.MaximumRetryAttempts = smithy_client_1.expectInt32(data.MaximumRetryAttempts);
6146
+ contents.MaximumRetryAttempts = (0, smithy_client_1.expectInt32)(data.MaximumRetryAttempts);
6117
6147
  }
6118
6148
  return Promise.resolve(contents);
6119
6149
  };
@@ -6149,491 +6179,491 @@ const deserializeAws_restJson1UpdateFunctionEventInvokeConfigCommandError = asyn
6149
6179
  $fault: "client",
6150
6180
  $metadata: deserializeMetadata(output),
6151
6181
  });
6152
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6182
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6153
6183
  }
6154
6184
  };
6155
6185
  const deserializeAws_restJson1CodeSigningConfigNotFoundExceptionResponse = async (parsedOutput, context) => {
6156
6186
  const contents = {};
6157
6187
  const data = parsedOutput.body;
6158
6188
  if (data.Message !== undefined && data.Message !== null) {
6159
- contents.Message = smithy_client_1.expectString(data.Message);
6189
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6160
6190
  }
6161
6191
  if (data.Type !== undefined && data.Type !== null) {
6162
- contents.Type = smithy_client_1.expectString(data.Type);
6192
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6163
6193
  }
6164
6194
  const exception = new models_0_1.CodeSigningConfigNotFoundException({
6165
6195
  $metadata: deserializeMetadata(parsedOutput),
6166
6196
  ...contents,
6167
6197
  });
6168
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6198
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6169
6199
  };
6170
6200
  const deserializeAws_restJson1CodeStorageExceededExceptionResponse = async (parsedOutput, context) => {
6171
6201
  const contents = {};
6172
6202
  const data = parsedOutput.body;
6173
6203
  if (data.Type !== undefined && data.Type !== null) {
6174
- contents.Type = smithy_client_1.expectString(data.Type);
6204
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6175
6205
  }
6176
6206
  if (data.message !== undefined && data.message !== null) {
6177
- contents.message = smithy_client_1.expectString(data.message);
6207
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6178
6208
  }
6179
6209
  const exception = new models_0_1.CodeStorageExceededException({
6180
6210
  $metadata: deserializeMetadata(parsedOutput),
6181
6211
  ...contents,
6182
6212
  });
6183
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6213
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6184
6214
  };
6185
6215
  const deserializeAws_restJson1CodeVerificationFailedExceptionResponse = async (parsedOutput, context) => {
6186
6216
  const contents = {};
6187
6217
  const data = parsedOutput.body;
6188
6218
  if (data.Message !== undefined && data.Message !== null) {
6189
- contents.Message = smithy_client_1.expectString(data.Message);
6219
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6190
6220
  }
6191
6221
  if (data.Type !== undefined && data.Type !== null) {
6192
- contents.Type = smithy_client_1.expectString(data.Type);
6222
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6193
6223
  }
6194
6224
  const exception = new models_0_1.CodeVerificationFailedException({
6195
6225
  $metadata: deserializeMetadata(parsedOutput),
6196
6226
  ...contents,
6197
6227
  });
6198
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6228
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6199
6229
  };
6200
6230
  const deserializeAws_restJson1EC2AccessDeniedExceptionResponse = async (parsedOutput, context) => {
6201
6231
  const contents = {};
6202
6232
  const data = parsedOutput.body;
6203
6233
  if (data.Message !== undefined && data.Message !== null) {
6204
- contents.Message = smithy_client_1.expectString(data.Message);
6234
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6205
6235
  }
6206
6236
  if (data.Type !== undefined && data.Type !== null) {
6207
- contents.Type = smithy_client_1.expectString(data.Type);
6237
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6208
6238
  }
6209
6239
  const exception = new models_0_1.EC2AccessDeniedException({
6210
6240
  $metadata: deserializeMetadata(parsedOutput),
6211
6241
  ...contents,
6212
6242
  });
6213
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6243
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6214
6244
  };
6215
6245
  const deserializeAws_restJson1EC2ThrottledExceptionResponse = async (parsedOutput, context) => {
6216
6246
  const contents = {};
6217
6247
  const data = parsedOutput.body;
6218
6248
  if (data.Message !== undefined && data.Message !== null) {
6219
- contents.Message = smithy_client_1.expectString(data.Message);
6249
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6220
6250
  }
6221
6251
  if (data.Type !== undefined && data.Type !== null) {
6222
- contents.Type = smithy_client_1.expectString(data.Type);
6252
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6223
6253
  }
6224
6254
  const exception = new models_0_1.EC2ThrottledException({
6225
6255
  $metadata: deserializeMetadata(parsedOutput),
6226
6256
  ...contents,
6227
6257
  });
6228
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6258
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6229
6259
  };
6230
6260
  const deserializeAws_restJson1EC2UnexpectedExceptionResponse = async (parsedOutput, context) => {
6231
6261
  const contents = {};
6232
6262
  const data = parsedOutput.body;
6233
6263
  if (data.EC2ErrorCode !== undefined && data.EC2ErrorCode !== null) {
6234
- contents.EC2ErrorCode = smithy_client_1.expectString(data.EC2ErrorCode);
6264
+ contents.EC2ErrorCode = (0, smithy_client_1.expectString)(data.EC2ErrorCode);
6235
6265
  }
6236
6266
  if (data.Message !== undefined && data.Message !== null) {
6237
- contents.Message = smithy_client_1.expectString(data.Message);
6267
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6238
6268
  }
6239
6269
  if (data.Type !== undefined && data.Type !== null) {
6240
- contents.Type = smithy_client_1.expectString(data.Type);
6270
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6241
6271
  }
6242
6272
  const exception = new models_0_1.EC2UnexpectedException({
6243
6273
  $metadata: deserializeMetadata(parsedOutput),
6244
6274
  ...contents,
6245
6275
  });
6246
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6276
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6247
6277
  };
6248
6278
  const deserializeAws_restJson1EFSIOExceptionResponse = async (parsedOutput, context) => {
6249
6279
  const contents = {};
6250
6280
  const data = parsedOutput.body;
6251
6281
  if (data.Message !== undefined && data.Message !== null) {
6252
- contents.Message = smithy_client_1.expectString(data.Message);
6282
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6253
6283
  }
6254
6284
  if (data.Type !== undefined && data.Type !== null) {
6255
- contents.Type = smithy_client_1.expectString(data.Type);
6285
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6256
6286
  }
6257
6287
  const exception = new models_0_1.EFSIOException({
6258
6288
  $metadata: deserializeMetadata(parsedOutput),
6259
6289
  ...contents,
6260
6290
  });
6261
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6291
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6262
6292
  };
6263
6293
  const deserializeAws_restJson1EFSMountConnectivityExceptionResponse = async (parsedOutput, context) => {
6264
6294
  const contents = {};
6265
6295
  const data = parsedOutput.body;
6266
6296
  if (data.Message !== undefined && data.Message !== null) {
6267
- contents.Message = smithy_client_1.expectString(data.Message);
6297
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6268
6298
  }
6269
6299
  if (data.Type !== undefined && data.Type !== null) {
6270
- contents.Type = smithy_client_1.expectString(data.Type);
6300
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6271
6301
  }
6272
6302
  const exception = new models_0_1.EFSMountConnectivityException({
6273
6303
  $metadata: deserializeMetadata(parsedOutput),
6274
6304
  ...contents,
6275
6305
  });
6276
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6306
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6277
6307
  };
6278
6308
  const deserializeAws_restJson1EFSMountFailureExceptionResponse = async (parsedOutput, context) => {
6279
6309
  const contents = {};
6280
6310
  const data = parsedOutput.body;
6281
6311
  if (data.Message !== undefined && data.Message !== null) {
6282
- contents.Message = smithy_client_1.expectString(data.Message);
6312
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6283
6313
  }
6284
6314
  if (data.Type !== undefined && data.Type !== null) {
6285
- contents.Type = smithy_client_1.expectString(data.Type);
6315
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6286
6316
  }
6287
6317
  const exception = new models_0_1.EFSMountFailureException({
6288
6318
  $metadata: deserializeMetadata(parsedOutput),
6289
6319
  ...contents,
6290
6320
  });
6291
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6321
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6292
6322
  };
6293
6323
  const deserializeAws_restJson1EFSMountTimeoutExceptionResponse = async (parsedOutput, context) => {
6294
6324
  const contents = {};
6295
6325
  const data = parsedOutput.body;
6296
6326
  if (data.Message !== undefined && data.Message !== null) {
6297
- contents.Message = smithy_client_1.expectString(data.Message);
6327
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6298
6328
  }
6299
6329
  if (data.Type !== undefined && data.Type !== null) {
6300
- contents.Type = smithy_client_1.expectString(data.Type);
6330
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6301
6331
  }
6302
6332
  const exception = new models_0_1.EFSMountTimeoutException({
6303
6333
  $metadata: deserializeMetadata(parsedOutput),
6304
6334
  ...contents,
6305
6335
  });
6306
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6336
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6307
6337
  };
6308
6338
  const deserializeAws_restJson1ENILimitReachedExceptionResponse = async (parsedOutput, context) => {
6309
6339
  const contents = {};
6310
6340
  const data = parsedOutput.body;
6311
6341
  if (data.Message !== undefined && data.Message !== null) {
6312
- contents.Message = smithy_client_1.expectString(data.Message);
6342
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6313
6343
  }
6314
6344
  if (data.Type !== undefined && data.Type !== null) {
6315
- contents.Type = smithy_client_1.expectString(data.Type);
6345
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6316
6346
  }
6317
6347
  const exception = new models_0_1.ENILimitReachedException({
6318
6348
  $metadata: deserializeMetadata(parsedOutput),
6319
6349
  ...contents,
6320
6350
  });
6321
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6351
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6322
6352
  };
6323
6353
  const deserializeAws_restJson1InvalidCodeSignatureExceptionResponse = async (parsedOutput, context) => {
6324
6354
  const contents = {};
6325
6355
  const data = parsedOutput.body;
6326
6356
  if (data.Message !== undefined && data.Message !== null) {
6327
- contents.Message = smithy_client_1.expectString(data.Message);
6357
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6328
6358
  }
6329
6359
  if (data.Type !== undefined && data.Type !== null) {
6330
- contents.Type = smithy_client_1.expectString(data.Type);
6360
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6331
6361
  }
6332
6362
  const exception = new models_0_1.InvalidCodeSignatureException({
6333
6363
  $metadata: deserializeMetadata(parsedOutput),
6334
6364
  ...contents,
6335
6365
  });
6336
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6366
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6337
6367
  };
6338
6368
  const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
6339
6369
  const contents = {};
6340
6370
  const data = parsedOutput.body;
6341
6371
  if (data.Type !== undefined && data.Type !== null) {
6342
- contents.Type = smithy_client_1.expectString(data.Type);
6372
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6343
6373
  }
6344
6374
  if (data.message !== undefined && data.message !== null) {
6345
- contents.message = smithy_client_1.expectString(data.message);
6375
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6346
6376
  }
6347
6377
  const exception = new models_0_1.InvalidParameterValueException({
6348
6378
  $metadata: deserializeMetadata(parsedOutput),
6349
6379
  ...contents,
6350
6380
  });
6351
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6381
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6352
6382
  };
6353
6383
  const deserializeAws_restJson1InvalidRequestContentExceptionResponse = async (parsedOutput, context) => {
6354
6384
  const contents = {};
6355
6385
  const data = parsedOutput.body;
6356
6386
  if (data.Type !== undefined && data.Type !== null) {
6357
- contents.Type = smithy_client_1.expectString(data.Type);
6387
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6358
6388
  }
6359
6389
  if (data.message !== undefined && data.message !== null) {
6360
- contents.message = smithy_client_1.expectString(data.message);
6390
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6361
6391
  }
6362
6392
  const exception = new models_0_1.InvalidRequestContentException({
6363
6393
  $metadata: deserializeMetadata(parsedOutput),
6364
6394
  ...contents,
6365
6395
  });
6366
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6396
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6367
6397
  };
6368
6398
  const deserializeAws_restJson1InvalidRuntimeExceptionResponse = async (parsedOutput, context) => {
6369
6399
  const contents = {};
6370
6400
  const data = parsedOutput.body;
6371
6401
  if (data.Message !== undefined && data.Message !== null) {
6372
- contents.Message = smithy_client_1.expectString(data.Message);
6402
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6373
6403
  }
6374
6404
  if (data.Type !== undefined && data.Type !== null) {
6375
- contents.Type = smithy_client_1.expectString(data.Type);
6405
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6376
6406
  }
6377
6407
  const exception = new models_0_1.InvalidRuntimeException({
6378
6408
  $metadata: deserializeMetadata(parsedOutput),
6379
6409
  ...contents,
6380
6410
  });
6381
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6411
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6382
6412
  };
6383
6413
  const deserializeAws_restJson1InvalidSecurityGroupIDExceptionResponse = async (parsedOutput, context) => {
6384
6414
  const contents = {};
6385
6415
  const data = parsedOutput.body;
6386
6416
  if (data.Message !== undefined && data.Message !== null) {
6387
- contents.Message = smithy_client_1.expectString(data.Message);
6417
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6388
6418
  }
6389
6419
  if (data.Type !== undefined && data.Type !== null) {
6390
- contents.Type = smithy_client_1.expectString(data.Type);
6420
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6391
6421
  }
6392
6422
  const exception = new models_0_1.InvalidSecurityGroupIDException({
6393
6423
  $metadata: deserializeMetadata(parsedOutput),
6394
6424
  ...contents,
6395
6425
  });
6396
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6426
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6397
6427
  };
6398
6428
  const deserializeAws_restJson1InvalidSubnetIDExceptionResponse = async (parsedOutput, context) => {
6399
6429
  const contents = {};
6400
6430
  const data = parsedOutput.body;
6401
6431
  if (data.Message !== undefined && data.Message !== null) {
6402
- contents.Message = smithy_client_1.expectString(data.Message);
6432
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6403
6433
  }
6404
6434
  if (data.Type !== undefined && data.Type !== null) {
6405
- contents.Type = smithy_client_1.expectString(data.Type);
6435
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6406
6436
  }
6407
6437
  const exception = new models_0_1.InvalidSubnetIDException({
6408
6438
  $metadata: deserializeMetadata(parsedOutput),
6409
6439
  ...contents,
6410
6440
  });
6411
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6441
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6412
6442
  };
6413
6443
  const deserializeAws_restJson1InvalidZipFileExceptionResponse = async (parsedOutput, context) => {
6414
6444
  const contents = {};
6415
6445
  const data = parsedOutput.body;
6416
6446
  if (data.Message !== undefined && data.Message !== null) {
6417
- contents.Message = smithy_client_1.expectString(data.Message);
6447
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6418
6448
  }
6419
6449
  if (data.Type !== undefined && data.Type !== null) {
6420
- contents.Type = smithy_client_1.expectString(data.Type);
6450
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6421
6451
  }
6422
6452
  const exception = new models_0_1.InvalidZipFileException({
6423
6453
  $metadata: deserializeMetadata(parsedOutput),
6424
6454
  ...contents,
6425
6455
  });
6426
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6456
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6427
6457
  };
6428
6458
  const deserializeAws_restJson1KMSAccessDeniedExceptionResponse = async (parsedOutput, context) => {
6429
6459
  const contents = {};
6430
6460
  const data = parsedOutput.body;
6431
6461
  if (data.Message !== undefined && data.Message !== null) {
6432
- contents.Message = smithy_client_1.expectString(data.Message);
6462
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6433
6463
  }
6434
6464
  if (data.Type !== undefined && data.Type !== null) {
6435
- contents.Type = smithy_client_1.expectString(data.Type);
6465
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6436
6466
  }
6437
6467
  const exception = new models_0_1.KMSAccessDeniedException({
6438
6468
  $metadata: deserializeMetadata(parsedOutput),
6439
6469
  ...contents,
6440
6470
  });
6441
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6471
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6442
6472
  };
6443
6473
  const deserializeAws_restJson1KMSDisabledExceptionResponse = async (parsedOutput, context) => {
6444
6474
  const contents = {};
6445
6475
  const data = parsedOutput.body;
6446
6476
  if (data.Message !== undefined && data.Message !== null) {
6447
- contents.Message = smithy_client_1.expectString(data.Message);
6477
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6448
6478
  }
6449
6479
  if (data.Type !== undefined && data.Type !== null) {
6450
- contents.Type = smithy_client_1.expectString(data.Type);
6480
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6451
6481
  }
6452
6482
  const exception = new models_0_1.KMSDisabledException({
6453
6483
  $metadata: deserializeMetadata(parsedOutput),
6454
6484
  ...contents,
6455
6485
  });
6456
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6486
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6457
6487
  };
6458
6488
  const deserializeAws_restJson1KMSInvalidStateExceptionResponse = async (parsedOutput, context) => {
6459
6489
  const contents = {};
6460
6490
  const data = parsedOutput.body;
6461
6491
  if (data.Message !== undefined && data.Message !== null) {
6462
- contents.Message = smithy_client_1.expectString(data.Message);
6492
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6463
6493
  }
6464
6494
  if (data.Type !== undefined && data.Type !== null) {
6465
- contents.Type = smithy_client_1.expectString(data.Type);
6495
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6466
6496
  }
6467
6497
  const exception = new models_0_1.KMSInvalidStateException({
6468
6498
  $metadata: deserializeMetadata(parsedOutput),
6469
6499
  ...contents,
6470
6500
  });
6471
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6501
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6472
6502
  };
6473
6503
  const deserializeAws_restJson1KMSNotFoundExceptionResponse = async (parsedOutput, context) => {
6474
6504
  const contents = {};
6475
6505
  const data = parsedOutput.body;
6476
6506
  if (data.Message !== undefined && data.Message !== null) {
6477
- contents.Message = smithy_client_1.expectString(data.Message);
6507
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6478
6508
  }
6479
6509
  if (data.Type !== undefined && data.Type !== null) {
6480
- contents.Type = smithy_client_1.expectString(data.Type);
6510
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6481
6511
  }
6482
6512
  const exception = new models_0_1.KMSNotFoundException({
6483
6513
  $metadata: deserializeMetadata(parsedOutput),
6484
6514
  ...contents,
6485
6515
  });
6486
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6516
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6487
6517
  };
6488
6518
  const deserializeAws_restJson1PolicyLengthExceededExceptionResponse = async (parsedOutput, context) => {
6489
6519
  const contents = {};
6490
6520
  const data = parsedOutput.body;
6491
6521
  if (data.Type !== undefined && data.Type !== null) {
6492
- contents.Type = smithy_client_1.expectString(data.Type);
6522
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6493
6523
  }
6494
6524
  if (data.message !== undefined && data.message !== null) {
6495
- contents.message = smithy_client_1.expectString(data.message);
6525
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6496
6526
  }
6497
6527
  const exception = new models_0_1.PolicyLengthExceededException({
6498
6528
  $metadata: deserializeMetadata(parsedOutput),
6499
6529
  ...contents,
6500
6530
  });
6501
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6531
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6502
6532
  };
6503
6533
  const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parsedOutput, context) => {
6504
6534
  const contents = {};
6505
6535
  const data = parsedOutput.body;
6506
6536
  if (data.Type !== undefined && data.Type !== null) {
6507
- contents.Type = smithy_client_1.expectString(data.Type);
6537
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6508
6538
  }
6509
6539
  if (data.message !== undefined && data.message !== null) {
6510
- contents.message = smithy_client_1.expectString(data.message);
6540
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6511
6541
  }
6512
6542
  const exception = new models_0_1.PreconditionFailedException({
6513
6543
  $metadata: deserializeMetadata(parsedOutput),
6514
6544
  ...contents,
6515
6545
  });
6516
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6546
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6517
6547
  };
6518
6548
  const deserializeAws_restJson1ProvisionedConcurrencyConfigNotFoundExceptionResponse = async (parsedOutput, context) => {
6519
6549
  const contents = {};
6520
6550
  const data = parsedOutput.body;
6521
6551
  if (data.Type !== undefined && data.Type !== null) {
6522
- contents.Type = smithy_client_1.expectString(data.Type);
6552
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6523
6553
  }
6524
6554
  if (data.message !== undefined && data.message !== null) {
6525
- contents.message = smithy_client_1.expectString(data.message);
6555
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6526
6556
  }
6527
6557
  const exception = new models_0_1.ProvisionedConcurrencyConfigNotFoundException({
6528
6558
  $metadata: deserializeMetadata(parsedOutput),
6529
6559
  ...contents,
6530
6560
  });
6531
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6561
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6532
6562
  };
6533
6563
  const deserializeAws_restJson1RequestTooLargeExceptionResponse = async (parsedOutput, context) => {
6534
6564
  const contents = {};
6535
6565
  const data = parsedOutput.body;
6536
6566
  if (data.Type !== undefined && data.Type !== null) {
6537
- contents.Type = smithy_client_1.expectString(data.Type);
6567
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6538
6568
  }
6539
6569
  if (data.message !== undefined && data.message !== null) {
6540
- contents.message = smithy_client_1.expectString(data.message);
6570
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6541
6571
  }
6542
6572
  const exception = new models_0_1.RequestTooLargeException({
6543
6573
  $metadata: deserializeMetadata(parsedOutput),
6544
6574
  ...contents,
6545
6575
  });
6546
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6576
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6547
6577
  };
6548
6578
  const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
6549
6579
  const contents = {};
6550
6580
  const data = parsedOutput.body;
6551
6581
  if (data.Type !== undefined && data.Type !== null) {
6552
- contents.Type = smithy_client_1.expectString(data.Type);
6582
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6553
6583
  }
6554
6584
  if (data.message !== undefined && data.message !== null) {
6555
- contents.message = smithy_client_1.expectString(data.message);
6585
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6556
6586
  }
6557
6587
  const exception = new models_0_1.ResourceConflictException({
6558
6588
  $metadata: deserializeMetadata(parsedOutput),
6559
6589
  ...contents,
6560
6590
  });
6561
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6591
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6562
6592
  };
6563
6593
  const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
6564
6594
  const contents = {};
6565
6595
  const data = parsedOutput.body;
6566
6596
  if (data.Message !== undefined && data.Message !== null) {
6567
- contents.Message = smithy_client_1.expectString(data.Message);
6597
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6568
6598
  }
6569
6599
  if (data.Type !== undefined && data.Type !== null) {
6570
- contents.Type = smithy_client_1.expectString(data.Type);
6600
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6571
6601
  }
6572
6602
  const exception = new models_0_1.ResourceInUseException({
6573
6603
  $metadata: deserializeMetadata(parsedOutput),
6574
6604
  ...contents,
6575
6605
  });
6576
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6606
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6577
6607
  };
6578
6608
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
6579
6609
  const contents = {};
6580
6610
  const data = parsedOutput.body;
6581
6611
  if (data.Message !== undefined && data.Message !== null) {
6582
- contents.Message = smithy_client_1.expectString(data.Message);
6612
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6583
6613
  }
6584
6614
  if (data.Type !== undefined && data.Type !== null) {
6585
- contents.Type = smithy_client_1.expectString(data.Type);
6615
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6586
6616
  }
6587
6617
  const exception = new models_0_1.ResourceNotFoundException({
6588
6618
  $metadata: deserializeMetadata(parsedOutput),
6589
6619
  ...contents,
6590
6620
  });
6591
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6621
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6592
6622
  };
6593
6623
  const deserializeAws_restJson1ResourceNotReadyExceptionResponse = async (parsedOutput, context) => {
6594
6624
  const contents = {};
6595
6625
  const data = parsedOutput.body;
6596
6626
  if (data.Type !== undefined && data.Type !== null) {
6597
- contents.Type = smithy_client_1.expectString(data.Type);
6627
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6598
6628
  }
6599
6629
  if (data.message !== undefined && data.message !== null) {
6600
- contents.message = smithy_client_1.expectString(data.message);
6630
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6601
6631
  }
6602
6632
  const exception = new models_0_1.ResourceNotReadyException({
6603
6633
  $metadata: deserializeMetadata(parsedOutput),
6604
6634
  ...contents,
6605
6635
  });
6606
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6636
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6607
6637
  };
6608
6638
  const deserializeAws_restJson1ServiceExceptionResponse = async (parsedOutput, context) => {
6609
6639
  const contents = {};
6610
6640
  const data = parsedOutput.body;
6611
6641
  if (data.Message !== undefined && data.Message !== null) {
6612
- contents.Message = smithy_client_1.expectString(data.Message);
6642
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6613
6643
  }
6614
6644
  if (data.Type !== undefined && data.Type !== null) {
6615
- contents.Type = smithy_client_1.expectString(data.Type);
6645
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6616
6646
  }
6617
6647
  const exception = new models_0_1.ServiceException({
6618
6648
  $metadata: deserializeMetadata(parsedOutput),
6619
6649
  ...contents,
6620
6650
  });
6621
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6651
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6622
6652
  };
6623
6653
  const deserializeAws_restJson1SubnetIPAddressLimitReachedExceptionResponse = async (parsedOutput, context) => {
6624
6654
  const contents = {};
6625
6655
  const data = parsedOutput.body;
6626
6656
  if (data.Message !== undefined && data.Message !== null) {
6627
- contents.Message = smithy_client_1.expectString(data.Message);
6657
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
6628
6658
  }
6629
6659
  if (data.Type !== undefined && data.Type !== null) {
6630
- contents.Type = smithy_client_1.expectString(data.Type);
6660
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6631
6661
  }
6632
6662
  const exception = new models_0_1.SubnetIPAddressLimitReachedException({
6633
6663
  $metadata: deserializeMetadata(parsedOutput),
6634
6664
  ...contents,
6635
6665
  });
6636
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6666
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6637
6667
  };
6638
6668
  const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
6639
6669
  const contents = {};
@@ -6642,34 +6672,34 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
6642
6672
  }
6643
6673
  const data = parsedOutput.body;
6644
6674
  if (data.Reason !== undefined && data.Reason !== null) {
6645
- contents.Reason = smithy_client_1.expectString(data.Reason);
6675
+ contents.Reason = (0, smithy_client_1.expectString)(data.Reason);
6646
6676
  }
6647
6677
  if (data.Type !== undefined && data.Type !== null) {
6648
- contents.Type = smithy_client_1.expectString(data.Type);
6678
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6649
6679
  }
6650
6680
  if (data.message !== undefined && data.message !== null) {
6651
- contents.message = smithy_client_1.expectString(data.message);
6681
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6652
6682
  }
6653
6683
  const exception = new models_0_1.TooManyRequestsException({
6654
6684
  $metadata: deserializeMetadata(parsedOutput),
6655
6685
  ...contents,
6656
6686
  });
6657
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6687
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6658
6688
  };
6659
6689
  const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async (parsedOutput, context) => {
6660
6690
  const contents = {};
6661
6691
  const data = parsedOutput.body;
6662
6692
  if (data.Type !== undefined && data.Type !== null) {
6663
- contents.Type = smithy_client_1.expectString(data.Type);
6693
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
6664
6694
  }
6665
6695
  if (data.message !== undefined && data.message !== null) {
6666
- contents.message = smithy_client_1.expectString(data.message);
6696
+ contents.message = (0, smithy_client_1.expectString)(data.message);
6667
6697
  }
6668
6698
  const exception = new models_0_1.UnsupportedMediaTypeException({
6669
6699
  $metadata: deserializeMetadata(parsedOutput),
6670
6700
  ...contents,
6671
6701
  });
6672
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
6702
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6673
6703
  };
6674
6704
  const serializeAws_restJson1AdditionalVersionWeights = (input, context) => {
6675
6705
  return Object.entries(input).reduce((acc, [key, value]) => {
@@ -6678,7 +6708,7 @@ const serializeAws_restJson1AdditionalVersionWeights = (input, context) => {
6678
6708
  }
6679
6709
  return {
6680
6710
  ...acc,
6681
- [key]: smithy_client_1.serializeFloat(value),
6711
+ [key]: (0, smithy_client_1.serializeFloat)(value),
6682
6712
  };
6683
6713
  }, {});
6684
6714
  };
@@ -6787,6 +6817,11 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
6787
6817
  };
6788
6818
  }, {});
6789
6819
  };
6820
+ const serializeAws_restJson1EphemeralStorage = (input, context) => {
6821
+ return {
6822
+ ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
6823
+ };
6824
+ };
6790
6825
  const serializeAws_restJson1FileSystemConfig = (input, context) => {
6791
6826
  return {
6792
6827
  ...(input.Arn !== undefined && input.Arn !== null && { Arn: input.Arn }),
@@ -6994,17 +7029,17 @@ const serializeAws_restJson1VpcConfig = (input, context) => {
6994
7029
  };
6995
7030
  const deserializeAws_restJson1AccountLimit = (output, context) => {
6996
7031
  return {
6997
- CodeSizeUnzipped: smithy_client_1.expectLong(output.CodeSizeUnzipped),
6998
- CodeSizeZipped: smithy_client_1.expectLong(output.CodeSizeZipped),
6999
- ConcurrentExecutions: smithy_client_1.expectInt32(output.ConcurrentExecutions),
7000
- TotalCodeSize: smithy_client_1.expectLong(output.TotalCodeSize),
7001
- UnreservedConcurrentExecutions: smithy_client_1.expectInt32(output.UnreservedConcurrentExecutions),
7032
+ CodeSizeUnzipped: (0, smithy_client_1.expectLong)(output.CodeSizeUnzipped),
7033
+ CodeSizeZipped: (0, smithy_client_1.expectLong)(output.CodeSizeZipped),
7034
+ ConcurrentExecutions: (0, smithy_client_1.expectInt32)(output.ConcurrentExecutions),
7035
+ TotalCodeSize: (0, smithy_client_1.expectLong)(output.TotalCodeSize),
7036
+ UnreservedConcurrentExecutions: (0, smithy_client_1.expectInt32)(output.UnreservedConcurrentExecutions),
7002
7037
  };
7003
7038
  };
7004
7039
  const deserializeAws_restJson1AccountUsage = (output, context) => {
7005
7040
  return {
7006
- FunctionCount: smithy_client_1.expectLong(output.FunctionCount),
7007
- TotalCodeSize: smithy_client_1.expectLong(output.TotalCodeSize),
7041
+ FunctionCount: (0, smithy_client_1.expectLong)(output.FunctionCount),
7042
+ TotalCodeSize: (0, smithy_client_1.expectLong)(output.TotalCodeSize),
7008
7043
  };
7009
7044
  };
7010
7045
  const deserializeAws_restJson1AdditionalVersionWeights = (output, context) => {
@@ -7014,17 +7049,17 @@ const deserializeAws_restJson1AdditionalVersionWeights = (output, context) => {
7014
7049
  }
7015
7050
  return {
7016
7051
  ...acc,
7017
- [key]: smithy_client_1.limitedParseDouble(value),
7052
+ [key]: (0, smithy_client_1.limitedParseDouble)(value),
7018
7053
  };
7019
7054
  }, {});
7020
7055
  };
7021
7056
  const deserializeAws_restJson1AliasConfiguration = (output, context) => {
7022
7057
  return {
7023
- AliasArn: smithy_client_1.expectString(output.AliasArn),
7024
- Description: smithy_client_1.expectString(output.Description),
7025
- FunctionVersion: smithy_client_1.expectString(output.FunctionVersion),
7026
- Name: smithy_client_1.expectString(output.Name),
7027
- RevisionId: smithy_client_1.expectString(output.RevisionId),
7058
+ AliasArn: (0, smithy_client_1.expectString)(output.AliasArn),
7059
+ Description: (0, smithy_client_1.expectString)(output.Description),
7060
+ FunctionVersion: (0, smithy_client_1.expectString)(output.FunctionVersion),
7061
+ Name: (0, smithy_client_1.expectString)(output.Name),
7062
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
7028
7063
  RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
7029
7064
  ? deserializeAws_restJson1AliasRoutingConfiguration(output.RoutingConfig, context)
7030
7065
  : undefined,
@@ -7062,7 +7097,7 @@ const deserializeAws_restJson1ArchitecturesList = (output, context) => {
7062
7097
  if (entry === null) {
7063
7098
  return null;
7064
7099
  }
7065
- return smithy_client_1.expectString(entry);
7100
+ return (0, smithy_client_1.expectString)(entry);
7066
7101
  });
7067
7102
  return retVal;
7068
7103
  };
@@ -7071,13 +7106,13 @@ const deserializeAws_restJson1CodeSigningConfig = (output, context) => {
7071
7106
  AllowedPublishers: output.AllowedPublishers !== undefined && output.AllowedPublishers !== null
7072
7107
  ? deserializeAws_restJson1AllowedPublishers(output.AllowedPublishers, context)
7073
7108
  : undefined,
7074
- CodeSigningConfigArn: smithy_client_1.expectString(output.CodeSigningConfigArn),
7075
- CodeSigningConfigId: smithy_client_1.expectString(output.CodeSigningConfigId),
7109
+ CodeSigningConfigArn: (0, smithy_client_1.expectString)(output.CodeSigningConfigArn),
7110
+ CodeSigningConfigId: (0, smithy_client_1.expectString)(output.CodeSigningConfigId),
7076
7111
  CodeSigningPolicies: output.CodeSigningPolicies !== undefined && output.CodeSigningPolicies !== null
7077
7112
  ? deserializeAws_restJson1CodeSigningPolicies(output.CodeSigningPolicies, context)
7078
7113
  : undefined,
7079
- Description: smithy_client_1.expectString(output.Description),
7080
- LastModified: smithy_client_1.expectString(output.LastModified),
7114
+ Description: (0, smithy_client_1.expectString)(output.Description),
7115
+ LastModified: (0, smithy_client_1.expectString)(output.LastModified),
7081
7116
  };
7082
7117
  };
7083
7118
  const deserializeAws_restJson1CodeSigningConfigList = (output, context) => {
@@ -7093,7 +7128,7 @@ const deserializeAws_restJson1CodeSigningConfigList = (output, context) => {
7093
7128
  };
7094
7129
  const deserializeAws_restJson1CodeSigningPolicies = (output, context) => {
7095
7130
  return {
7096
- UntrustedArtifactOnDeployment: smithy_client_1.expectString(output.UntrustedArtifactOnDeployment),
7131
+ UntrustedArtifactOnDeployment: (0, smithy_client_1.expectString)(output.UntrustedArtifactOnDeployment),
7097
7132
  };
7098
7133
  };
7099
7134
  const deserializeAws_restJson1CompatibleArchitectures = (output, context) => {
@@ -7103,7 +7138,7 @@ const deserializeAws_restJson1CompatibleArchitectures = (output, context) => {
7103
7138
  if (entry === null) {
7104
7139
  return null;
7105
7140
  }
7106
- return smithy_client_1.expectString(entry);
7141
+ return (0, smithy_client_1.expectString)(entry);
7107
7142
  });
7108
7143
  return retVal;
7109
7144
  };
@@ -7114,18 +7149,18 @@ const deserializeAws_restJson1CompatibleRuntimes = (output, context) => {
7114
7149
  if (entry === null) {
7115
7150
  return null;
7116
7151
  }
7117
- return smithy_client_1.expectString(entry);
7152
+ return (0, smithy_client_1.expectString)(entry);
7118
7153
  });
7119
7154
  return retVal;
7120
7155
  };
7121
7156
  const deserializeAws_restJson1Concurrency = (output, context) => {
7122
7157
  return {
7123
- ReservedConcurrentExecutions: smithy_client_1.expectInt32(output.ReservedConcurrentExecutions),
7158
+ ReservedConcurrentExecutions: (0, smithy_client_1.expectInt32)(output.ReservedConcurrentExecutions),
7124
7159
  };
7125
7160
  };
7126
7161
  const deserializeAws_restJson1DeadLetterConfig = (output, context) => {
7127
7162
  return {
7128
- TargetArn: smithy_client_1.expectString(output.TargetArn),
7163
+ TargetArn: (0, smithy_client_1.expectString)(output.TargetArn),
7129
7164
  };
7130
7165
  };
7131
7166
  const deserializeAws_restJson1DestinationConfig = (output, context) => {
@@ -7145,7 +7180,7 @@ const deserializeAws_restJson1EndpointLists = (output, context) => {
7145
7180
  if (entry === null) {
7146
7181
  return null;
7147
7182
  }
7148
- return smithy_client_1.expectString(entry);
7183
+ return (0, smithy_client_1.expectString)(entry);
7149
7184
  });
7150
7185
  return retVal;
7151
7186
  };
@@ -7162,8 +7197,8 @@ const deserializeAws_restJson1Endpoints = (output, context) => {
7162
7197
  };
7163
7198
  const deserializeAws_restJson1EnvironmentError = (output, context) => {
7164
7199
  return {
7165
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
7166
- Message: smithy_client_1.expectString(output.Message),
7200
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
7201
+ Message: (0, smithy_client_1.expectString)(output.Message),
7167
7202
  };
7168
7203
  };
7169
7204
  const deserializeAws_restJson1EnvironmentResponse = (output, context) => {
@@ -7183,33 +7218,38 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
7183
7218
  }
7184
7219
  return {
7185
7220
  ...acc,
7186
- [key]: smithy_client_1.expectString(value),
7221
+ [key]: (0, smithy_client_1.expectString)(value),
7187
7222
  };
7188
7223
  }, {});
7189
7224
  };
7225
+ const deserializeAws_restJson1EphemeralStorage = (output, context) => {
7226
+ return {
7227
+ Size: (0, smithy_client_1.expectInt32)(output.Size),
7228
+ };
7229
+ };
7190
7230
  const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context) => {
7191
7231
  return {
7192
- BatchSize: smithy_client_1.expectInt32(output.BatchSize),
7193
- BisectBatchOnFunctionError: smithy_client_1.expectBoolean(output.BisectBatchOnFunctionError),
7232
+ BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
7233
+ BisectBatchOnFunctionError: (0, smithy_client_1.expectBoolean)(output.BisectBatchOnFunctionError),
7194
7234
  DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
7195
7235
  ? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
7196
7236
  : undefined,
7197
- EventSourceArn: smithy_client_1.expectString(output.EventSourceArn),
7237
+ EventSourceArn: (0, smithy_client_1.expectString)(output.EventSourceArn),
7198
7238
  FilterCriteria: output.FilterCriteria !== undefined && output.FilterCriteria !== null
7199
7239
  ? deserializeAws_restJson1FilterCriteria(output.FilterCriteria, context)
7200
7240
  : undefined,
7201
- FunctionArn: smithy_client_1.expectString(output.FunctionArn),
7241
+ FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
7202
7242
  FunctionResponseTypes: output.FunctionResponseTypes !== undefined && output.FunctionResponseTypes !== null
7203
7243
  ? deserializeAws_restJson1FunctionResponseTypeList(output.FunctionResponseTypes, context)
7204
7244
  : undefined,
7205
7245
  LastModified: output.LastModified !== undefined && output.LastModified !== null
7206
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
7246
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
7207
7247
  : undefined,
7208
- LastProcessingResult: smithy_client_1.expectString(output.LastProcessingResult),
7209
- MaximumBatchingWindowInSeconds: smithy_client_1.expectInt32(output.MaximumBatchingWindowInSeconds),
7210
- MaximumRecordAgeInSeconds: smithy_client_1.expectInt32(output.MaximumRecordAgeInSeconds),
7211
- MaximumRetryAttempts: smithy_client_1.expectInt32(output.MaximumRetryAttempts),
7212
- ParallelizationFactor: smithy_client_1.expectInt32(output.ParallelizationFactor),
7248
+ LastProcessingResult: (0, smithy_client_1.expectString)(output.LastProcessingResult),
7249
+ MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
7250
+ MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
7251
+ MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
7252
+ ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
7213
7253
  Queues: output.Queues !== undefined && output.Queues !== null
7214
7254
  ? deserializeAws_restJson1Queues(output.Queues, context)
7215
7255
  : undefined,
@@ -7219,17 +7259,17 @@ const deserializeAws_restJson1EventSourceMappingConfiguration = (output, context
7219
7259
  SourceAccessConfigurations: output.SourceAccessConfigurations !== undefined && output.SourceAccessConfigurations !== null
7220
7260
  ? deserializeAws_restJson1SourceAccessConfigurations(output.SourceAccessConfigurations, context)
7221
7261
  : undefined,
7222
- StartingPosition: smithy_client_1.expectString(output.StartingPosition),
7262
+ StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
7223
7263
  StartingPositionTimestamp: output.StartingPositionTimestamp !== undefined && output.StartingPositionTimestamp !== null
7224
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StartingPositionTimestamp)))
7264
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartingPositionTimestamp)))
7225
7265
  : undefined,
7226
- State: smithy_client_1.expectString(output.State),
7227
- StateTransitionReason: smithy_client_1.expectString(output.StateTransitionReason),
7266
+ State: (0, smithy_client_1.expectString)(output.State),
7267
+ StateTransitionReason: (0, smithy_client_1.expectString)(output.StateTransitionReason),
7228
7268
  Topics: output.Topics !== undefined && output.Topics !== null
7229
7269
  ? deserializeAws_restJson1Topics(output.Topics, context)
7230
7270
  : undefined,
7231
- TumblingWindowInSeconds: smithy_client_1.expectInt32(output.TumblingWindowInSeconds),
7232
- UUID: smithy_client_1.expectString(output.UUID),
7271
+ TumblingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.TumblingWindowInSeconds),
7272
+ UUID: (0, smithy_client_1.expectString)(output.UUID),
7233
7273
  };
7234
7274
  };
7235
7275
  const deserializeAws_restJson1EventSourceMappingsList = (output, context) => {
@@ -7245,8 +7285,8 @@ const deserializeAws_restJson1EventSourceMappingsList = (output, context) => {
7245
7285
  };
7246
7286
  const deserializeAws_restJson1FileSystemConfig = (output, context) => {
7247
7287
  return {
7248
- Arn: smithy_client_1.expectString(output.Arn),
7249
- LocalMountPath: smithy_client_1.expectString(output.LocalMountPath),
7288
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
7289
+ LocalMountPath: (0, smithy_client_1.expectString)(output.LocalMountPath),
7250
7290
  };
7251
7291
  };
7252
7292
  const deserializeAws_restJson1FileSystemConfigList = (output, context) => {
@@ -7262,7 +7302,7 @@ const deserializeAws_restJson1FileSystemConfigList = (output, context) => {
7262
7302
  };
7263
7303
  const deserializeAws_restJson1Filter = (output, context) => {
7264
7304
  return {
7265
- Pattern: smithy_client_1.expectString(output.Pattern),
7305
+ Pattern: (0, smithy_client_1.expectString)(output.Pattern),
7266
7306
  };
7267
7307
  };
7268
7308
  const deserializeAws_restJson1FilterCriteria = (output, context) => {
@@ -7290,16 +7330,16 @@ const deserializeAws_restJson1FunctionArnList = (output, context) => {
7290
7330
  if (entry === null) {
7291
7331
  return null;
7292
7332
  }
7293
- return smithy_client_1.expectString(entry);
7333
+ return (0, smithy_client_1.expectString)(entry);
7294
7334
  });
7295
7335
  return retVal;
7296
7336
  };
7297
7337
  const deserializeAws_restJson1FunctionCodeLocation = (output, context) => {
7298
7338
  return {
7299
- ImageUri: smithy_client_1.expectString(output.ImageUri),
7300
- Location: smithy_client_1.expectString(output.Location),
7301
- RepositoryType: smithy_client_1.expectString(output.RepositoryType),
7302
- ResolvedImageUri: smithy_client_1.expectString(output.ResolvedImageUri),
7339
+ ImageUri: (0, smithy_client_1.expectString)(output.ImageUri),
7340
+ Location: (0, smithy_client_1.expectString)(output.Location),
7341
+ RepositoryType: (0, smithy_client_1.expectString)(output.RepositoryType),
7342
+ ResolvedImageUri: (0, smithy_client_1.expectString)(output.ResolvedImageUri),
7303
7343
  };
7304
7344
  };
7305
7345
  const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
@@ -7307,48 +7347,51 @@ const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
7307
7347
  Architectures: output.Architectures !== undefined && output.Architectures !== null
7308
7348
  ? deserializeAws_restJson1ArchitecturesList(output.Architectures, context)
7309
7349
  : undefined,
7310
- CodeSha256: smithy_client_1.expectString(output.CodeSha256),
7311
- CodeSize: smithy_client_1.expectLong(output.CodeSize),
7350
+ CodeSha256: (0, smithy_client_1.expectString)(output.CodeSha256),
7351
+ CodeSize: (0, smithy_client_1.expectLong)(output.CodeSize),
7312
7352
  DeadLetterConfig: output.DeadLetterConfig !== undefined && output.DeadLetterConfig !== null
7313
7353
  ? deserializeAws_restJson1DeadLetterConfig(output.DeadLetterConfig, context)
7314
7354
  : undefined,
7315
- Description: smithy_client_1.expectString(output.Description),
7355
+ Description: (0, smithy_client_1.expectString)(output.Description),
7316
7356
  Environment: output.Environment !== undefined && output.Environment !== null
7317
7357
  ? deserializeAws_restJson1EnvironmentResponse(output.Environment, context)
7318
7358
  : undefined,
7359
+ EphemeralStorage: output.EphemeralStorage !== undefined && output.EphemeralStorage !== null
7360
+ ? deserializeAws_restJson1EphemeralStorage(output.EphemeralStorage, context)
7361
+ : undefined,
7319
7362
  FileSystemConfigs: output.FileSystemConfigs !== undefined && output.FileSystemConfigs !== null
7320
7363
  ? deserializeAws_restJson1FileSystemConfigList(output.FileSystemConfigs, context)
7321
7364
  : undefined,
7322
- FunctionArn: smithy_client_1.expectString(output.FunctionArn),
7323
- FunctionName: smithy_client_1.expectString(output.FunctionName),
7324
- Handler: smithy_client_1.expectString(output.Handler),
7365
+ FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
7366
+ FunctionName: (0, smithy_client_1.expectString)(output.FunctionName),
7367
+ Handler: (0, smithy_client_1.expectString)(output.Handler),
7325
7368
  ImageConfigResponse: output.ImageConfigResponse !== undefined && output.ImageConfigResponse !== null
7326
7369
  ? deserializeAws_restJson1ImageConfigResponse(output.ImageConfigResponse, context)
7327
7370
  : undefined,
7328
- KMSKeyArn: smithy_client_1.expectString(output.KMSKeyArn),
7329
- LastModified: smithy_client_1.expectString(output.LastModified),
7330
- LastUpdateStatus: smithy_client_1.expectString(output.LastUpdateStatus),
7331
- LastUpdateStatusReason: smithy_client_1.expectString(output.LastUpdateStatusReason),
7332
- LastUpdateStatusReasonCode: smithy_client_1.expectString(output.LastUpdateStatusReasonCode),
7371
+ KMSKeyArn: (0, smithy_client_1.expectString)(output.KMSKeyArn),
7372
+ LastModified: (0, smithy_client_1.expectString)(output.LastModified),
7373
+ LastUpdateStatus: (0, smithy_client_1.expectString)(output.LastUpdateStatus),
7374
+ LastUpdateStatusReason: (0, smithy_client_1.expectString)(output.LastUpdateStatusReason),
7375
+ LastUpdateStatusReasonCode: (0, smithy_client_1.expectString)(output.LastUpdateStatusReasonCode),
7333
7376
  Layers: output.Layers !== undefined && output.Layers !== null
7334
7377
  ? deserializeAws_restJson1LayersReferenceList(output.Layers, context)
7335
7378
  : undefined,
7336
- MasterArn: smithy_client_1.expectString(output.MasterArn),
7337
- MemorySize: smithy_client_1.expectInt32(output.MemorySize),
7338
- PackageType: smithy_client_1.expectString(output.PackageType),
7339
- RevisionId: smithy_client_1.expectString(output.RevisionId),
7340
- Role: smithy_client_1.expectString(output.Role),
7341
- Runtime: smithy_client_1.expectString(output.Runtime),
7342
- SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
7343
- SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
7344
- State: smithy_client_1.expectString(output.State),
7345
- StateReason: smithy_client_1.expectString(output.StateReason),
7346
- StateReasonCode: smithy_client_1.expectString(output.StateReasonCode),
7347
- Timeout: smithy_client_1.expectInt32(output.Timeout),
7379
+ MasterArn: (0, smithy_client_1.expectString)(output.MasterArn),
7380
+ MemorySize: (0, smithy_client_1.expectInt32)(output.MemorySize),
7381
+ PackageType: (0, smithy_client_1.expectString)(output.PackageType),
7382
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
7383
+ Role: (0, smithy_client_1.expectString)(output.Role),
7384
+ Runtime: (0, smithy_client_1.expectString)(output.Runtime),
7385
+ SigningJobArn: (0, smithy_client_1.expectString)(output.SigningJobArn),
7386
+ SigningProfileVersionArn: (0, smithy_client_1.expectString)(output.SigningProfileVersionArn),
7387
+ State: (0, smithy_client_1.expectString)(output.State),
7388
+ StateReason: (0, smithy_client_1.expectString)(output.StateReason),
7389
+ StateReasonCode: (0, smithy_client_1.expectString)(output.StateReasonCode),
7390
+ Timeout: (0, smithy_client_1.expectInt32)(output.Timeout),
7348
7391
  TracingConfig: output.TracingConfig !== undefined && output.TracingConfig !== null
7349
7392
  ? deserializeAws_restJson1TracingConfigResponse(output.TracingConfig, context)
7350
7393
  : undefined,
7351
- Version: smithy_client_1.expectString(output.Version),
7394
+ Version: (0, smithy_client_1.expectString)(output.Version),
7352
7395
  VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
7353
7396
  ? deserializeAws_restJson1VpcConfigResponse(output.VpcConfig, context)
7354
7397
  : undefined,
@@ -7359,12 +7402,12 @@ const deserializeAws_restJson1FunctionEventInvokeConfig = (output, context) => {
7359
7402
  DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
7360
7403
  ? deserializeAws_restJson1DestinationConfig(output.DestinationConfig, context)
7361
7404
  : undefined,
7362
- FunctionArn: smithy_client_1.expectString(output.FunctionArn),
7405
+ FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
7363
7406
  LastModified: output.LastModified !== undefined && output.LastModified !== null
7364
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModified)))
7407
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
7365
7408
  : undefined,
7366
- MaximumEventAgeInSeconds: smithy_client_1.expectInt32(output.MaximumEventAgeInSeconds),
7367
- MaximumRetryAttempts: smithy_client_1.expectInt32(output.MaximumRetryAttempts),
7409
+ MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
7410
+ MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
7368
7411
  };
7369
7412
  };
7370
7413
  const deserializeAws_restJson1FunctionEventInvokeConfigList = (output, context) => {
@@ -7396,7 +7439,7 @@ const deserializeAws_restJson1FunctionResponseTypeList = (output, context) => {
7396
7439
  if (entry === null) {
7397
7440
  return null;
7398
7441
  }
7399
- return smithy_client_1.expectString(entry);
7442
+ return (0, smithy_client_1.expectString)(entry);
7400
7443
  });
7401
7444
  return retVal;
7402
7445
  };
@@ -7408,13 +7451,13 @@ const deserializeAws_restJson1ImageConfig = (output, context) => {
7408
7451
  EntryPoint: output.EntryPoint !== undefined && output.EntryPoint !== null
7409
7452
  ? deserializeAws_restJson1StringList(output.EntryPoint, context)
7410
7453
  : undefined,
7411
- WorkingDirectory: smithy_client_1.expectString(output.WorkingDirectory),
7454
+ WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
7412
7455
  };
7413
7456
  };
7414
7457
  const deserializeAws_restJson1ImageConfigError = (output, context) => {
7415
7458
  return {
7416
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
7417
- Message: smithy_client_1.expectString(output.Message),
7459
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
7460
+ Message: (0, smithy_client_1.expectString)(output.Message),
7418
7461
  };
7419
7462
  };
7420
7463
  const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
@@ -7429,10 +7472,10 @@ const deserializeAws_restJson1ImageConfigResponse = (output, context) => {
7429
7472
  };
7430
7473
  const deserializeAws_restJson1Layer = (output, context) => {
7431
7474
  return {
7432
- Arn: smithy_client_1.expectString(output.Arn),
7433
- CodeSize: smithy_client_1.expectLong(output.CodeSize),
7434
- SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
7435
- SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
7475
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
7476
+ CodeSize: (0, smithy_client_1.expectLong)(output.CodeSize),
7477
+ SigningJobArn: (0, smithy_client_1.expectString)(output.SigningJobArn),
7478
+ SigningProfileVersionArn: (0, smithy_client_1.expectString)(output.SigningProfileVersionArn),
7436
7479
  };
7437
7480
  };
7438
7481
  const deserializeAws_restJson1LayersList = (output, context) => {
@@ -7451,8 +7494,8 @@ const deserializeAws_restJson1LayersListItem = (output, context) => {
7451
7494
  LatestMatchingVersion: output.LatestMatchingVersion !== undefined && output.LatestMatchingVersion !== null
7452
7495
  ? deserializeAws_restJson1LayerVersionsListItem(output.LatestMatchingVersion, context)
7453
7496
  : undefined,
7454
- LayerArn: smithy_client_1.expectString(output.LayerArn),
7455
- LayerName: smithy_client_1.expectString(output.LayerName),
7497
+ LayerArn: (0, smithy_client_1.expectString)(output.LayerArn),
7498
+ LayerName: (0, smithy_client_1.expectString)(output.LayerName),
7456
7499
  };
7457
7500
  };
7458
7501
  const deserializeAws_restJson1LayersReferenceList = (output, context) => {
@@ -7468,11 +7511,11 @@ const deserializeAws_restJson1LayersReferenceList = (output, context) => {
7468
7511
  };
7469
7512
  const deserializeAws_restJson1LayerVersionContentOutput = (output, context) => {
7470
7513
  return {
7471
- CodeSha256: smithy_client_1.expectString(output.CodeSha256),
7472
- CodeSize: smithy_client_1.expectLong(output.CodeSize),
7473
- Location: smithy_client_1.expectString(output.Location),
7474
- SigningJobArn: smithy_client_1.expectString(output.SigningJobArn),
7475
- SigningProfileVersionArn: smithy_client_1.expectString(output.SigningProfileVersionArn),
7514
+ CodeSha256: (0, smithy_client_1.expectString)(output.CodeSha256),
7515
+ CodeSize: (0, smithy_client_1.expectLong)(output.CodeSize),
7516
+ Location: (0, smithy_client_1.expectString)(output.Location),
7517
+ SigningJobArn: (0, smithy_client_1.expectString)(output.SigningJobArn),
7518
+ SigningProfileVersionArn: (0, smithy_client_1.expectString)(output.SigningProfileVersionArn),
7476
7519
  };
7477
7520
  };
7478
7521
  const deserializeAws_restJson1LayerVersionsList = (output, context) => {
@@ -7494,21 +7537,21 @@ const deserializeAws_restJson1LayerVersionsListItem = (output, context) => {
7494
7537
  CompatibleRuntimes: output.CompatibleRuntimes !== undefined && output.CompatibleRuntimes !== null
7495
7538
  ? deserializeAws_restJson1CompatibleRuntimes(output.CompatibleRuntimes, context)
7496
7539
  : undefined,
7497
- CreatedDate: smithy_client_1.expectString(output.CreatedDate),
7498
- Description: smithy_client_1.expectString(output.Description),
7499
- LayerVersionArn: smithy_client_1.expectString(output.LayerVersionArn),
7500
- LicenseInfo: smithy_client_1.expectString(output.LicenseInfo),
7501
- Version: smithy_client_1.expectLong(output.Version),
7540
+ CreatedDate: (0, smithy_client_1.expectString)(output.CreatedDate),
7541
+ Description: (0, smithy_client_1.expectString)(output.Description),
7542
+ LayerVersionArn: (0, smithy_client_1.expectString)(output.LayerVersionArn),
7543
+ LicenseInfo: (0, smithy_client_1.expectString)(output.LicenseInfo),
7544
+ Version: (0, smithy_client_1.expectLong)(output.Version),
7502
7545
  };
7503
7546
  };
7504
7547
  const deserializeAws_restJson1OnFailure = (output, context) => {
7505
7548
  return {
7506
- Destination: smithy_client_1.expectString(output.Destination),
7549
+ Destination: (0, smithy_client_1.expectString)(output.Destination),
7507
7550
  };
7508
7551
  };
7509
7552
  const deserializeAws_restJson1OnSuccess = (output, context) => {
7510
7553
  return {
7511
- Destination: smithy_client_1.expectString(output.Destination),
7554
+ Destination: (0, smithy_client_1.expectString)(output.Destination),
7512
7555
  };
7513
7556
  };
7514
7557
  const deserializeAws_restJson1ProvisionedConcurrencyConfigList = (output, context) => {
@@ -7524,13 +7567,13 @@ const deserializeAws_restJson1ProvisionedConcurrencyConfigList = (output, contex
7524
7567
  };
7525
7568
  const deserializeAws_restJson1ProvisionedConcurrencyConfigListItem = (output, context) => {
7526
7569
  return {
7527
- AllocatedProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.AllocatedProvisionedConcurrentExecutions),
7528
- AvailableProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.AvailableProvisionedConcurrentExecutions),
7529
- FunctionArn: smithy_client_1.expectString(output.FunctionArn),
7530
- LastModified: smithy_client_1.expectString(output.LastModified),
7531
- RequestedProvisionedConcurrentExecutions: smithy_client_1.expectInt32(output.RequestedProvisionedConcurrentExecutions),
7532
- Status: smithy_client_1.expectString(output.Status),
7533
- StatusReason: smithy_client_1.expectString(output.StatusReason),
7570
+ AllocatedProvisionedConcurrentExecutions: (0, smithy_client_1.expectInt32)(output.AllocatedProvisionedConcurrentExecutions),
7571
+ AvailableProvisionedConcurrentExecutions: (0, smithy_client_1.expectInt32)(output.AvailableProvisionedConcurrentExecutions),
7572
+ FunctionArn: (0, smithy_client_1.expectString)(output.FunctionArn),
7573
+ LastModified: (0, smithy_client_1.expectString)(output.LastModified),
7574
+ RequestedProvisionedConcurrentExecutions: (0, smithy_client_1.expectInt32)(output.RequestedProvisionedConcurrentExecutions),
7575
+ Status: (0, smithy_client_1.expectString)(output.Status),
7576
+ StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
7534
7577
  };
7535
7578
  };
7536
7579
  const deserializeAws_restJson1Queues = (output, context) => {
@@ -7540,7 +7583,7 @@ const deserializeAws_restJson1Queues = (output, context) => {
7540
7583
  if (entry === null) {
7541
7584
  return null;
7542
7585
  }
7543
- return smithy_client_1.expectString(entry);
7586
+ return (0, smithy_client_1.expectString)(entry);
7544
7587
  });
7545
7588
  return retVal;
7546
7589
  };
@@ -7551,7 +7594,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
7551
7594
  if (entry === null) {
7552
7595
  return null;
7553
7596
  }
7554
- return smithy_client_1.expectString(entry);
7597
+ return (0, smithy_client_1.expectString)(entry);
7555
7598
  });
7556
7599
  return retVal;
7557
7600
  };
@@ -7569,14 +7612,14 @@ const deserializeAws_restJson1SigningProfileVersionArns = (output, context) => {
7569
7612
  if (entry === null) {
7570
7613
  return null;
7571
7614
  }
7572
- return smithy_client_1.expectString(entry);
7615
+ return (0, smithy_client_1.expectString)(entry);
7573
7616
  });
7574
7617
  return retVal;
7575
7618
  };
7576
7619
  const deserializeAws_restJson1SourceAccessConfiguration = (output, context) => {
7577
7620
  return {
7578
- Type: smithy_client_1.expectString(output.Type),
7579
- URI: smithy_client_1.expectString(output.URI),
7621
+ Type: (0, smithy_client_1.expectString)(output.Type),
7622
+ URI: (0, smithy_client_1.expectString)(output.URI),
7580
7623
  };
7581
7624
  };
7582
7625
  const deserializeAws_restJson1SourceAccessConfigurations = (output, context) => {
@@ -7597,7 +7640,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
7597
7640
  if (entry === null) {
7598
7641
  return null;
7599
7642
  }
7600
- return smithy_client_1.expectString(entry);
7643
+ return (0, smithy_client_1.expectString)(entry);
7601
7644
  });
7602
7645
  return retVal;
7603
7646
  };
@@ -7608,7 +7651,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
7608
7651
  if (entry === null) {
7609
7652
  return null;
7610
7653
  }
7611
- return smithy_client_1.expectString(entry);
7654
+ return (0, smithy_client_1.expectString)(entry);
7612
7655
  });
7613
7656
  return retVal;
7614
7657
  };
@@ -7619,7 +7662,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
7619
7662
  }
7620
7663
  return {
7621
7664
  ...acc,
7622
- [key]: smithy_client_1.expectString(value),
7665
+ [key]: (0, smithy_client_1.expectString)(value),
7623
7666
  };
7624
7667
  }, {});
7625
7668
  };
@@ -7630,13 +7673,13 @@ const deserializeAws_restJson1Topics = (output, context) => {
7630
7673
  if (entry === null) {
7631
7674
  return null;
7632
7675
  }
7633
- return smithy_client_1.expectString(entry);
7676
+ return (0, smithy_client_1.expectString)(entry);
7634
7677
  });
7635
7678
  return retVal;
7636
7679
  };
7637
7680
  const deserializeAws_restJson1TracingConfigResponse = (output, context) => {
7638
7681
  return {
7639
- Mode: smithy_client_1.expectString(output.Mode),
7682
+ Mode: (0, smithy_client_1.expectString)(output.Mode),
7640
7683
  };
7641
7684
  };
7642
7685
  const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
@@ -7647,7 +7690,7 @@ const deserializeAws_restJson1VpcConfigResponse = (output, context) => {
7647
7690
  SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
7648
7691
  ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
7649
7692
  : undefined,
7650
- VpcId: smithy_client_1.expectString(output.VpcId),
7693
+ VpcId: (0, smithy_client_1.expectString)(output.VpcId),
7651
7694
  };
7652
7695
  };
7653
7696
  const deserializeMetadata = (output) => {