@aws-sdk/client-mediaconnect 3.54.1 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/MediaConnectClient.js +13 -13
  3. package/dist-cjs/commands/AddFlowMediaStreamsCommand.js +3 -3
  4. package/dist-cjs/commands/AddFlowOutputsCommand.js +3 -3
  5. package/dist-cjs/commands/AddFlowSourcesCommand.js +3 -3
  6. package/dist-cjs/commands/AddFlowVpcInterfacesCommand.js +3 -3
  7. package/dist-cjs/commands/CreateFlowCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteFlowCommand.js +3 -3
  9. package/dist-cjs/commands/DescribeFlowCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeOfferingCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeReservationCommand.js +3 -3
  12. package/dist-cjs/commands/GrantFlowEntitlementsCommand.js +3 -3
  13. package/dist-cjs/commands/ListEntitlementsCommand.js +3 -3
  14. package/dist-cjs/commands/ListFlowsCommand.js +3 -3
  15. package/dist-cjs/commands/ListOfferingsCommand.js +3 -3
  16. package/dist-cjs/commands/ListReservationsCommand.js +3 -3
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  18. package/dist-cjs/commands/PurchaseOfferingCommand.js +3 -3
  19. package/dist-cjs/commands/RemoveFlowMediaStreamCommand.js +3 -3
  20. package/dist-cjs/commands/RemoveFlowOutputCommand.js +3 -3
  21. package/dist-cjs/commands/RemoveFlowSourceCommand.js +3 -3
  22. package/dist-cjs/commands/RemoveFlowVpcInterfaceCommand.js +3 -3
  23. package/dist-cjs/commands/RevokeFlowEntitlementCommand.js +3 -3
  24. package/dist-cjs/commands/StartFlowCommand.js +3 -3
  25. package/dist-cjs/commands/StopFlowCommand.js +3 -3
  26. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  27. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  28. package/dist-cjs/commands/UpdateFlowCommand.js +3 -3
  29. package/dist-cjs/commands/UpdateFlowEntitlementCommand.js +3 -3
  30. package/dist-cjs/commands/UpdateFlowMediaStreamCommand.js +3 -3
  31. package/dist-cjs/commands/UpdateFlowOutputCommand.js +3 -3
  32. package/dist-cjs/commands/UpdateFlowSourceCommand.js +3 -3
  33. package/dist-cjs/endpoints.js +1 -1
  34. package/dist-cjs/models/models_0.js +31 -3
  35. package/dist-cjs/protocols/Aws_restJson1.js +296 -258
  36. package/dist-cjs/runtimeConfig.browser.js +4 -4
  37. package/dist-cjs/runtimeConfig.js +9 -9
  38. package/dist-cjs/runtimeConfig.native.js +1 -1
  39. package/dist-cjs/waiters/waitForFlowActive.js +3 -3
  40. package/dist-cjs/waiters/waitForFlowDeleted.js +3 -3
  41. package/dist-cjs/waiters/waitForFlowStandby.js +3 -3
  42. package/dist-es/MediaConnect.js +30 -30
  43. package/dist-es/models/models_0.js +22 -0
  44. package/dist-es/pagination/ListEntitlementsPaginator.js +4 -4
  45. package/dist-es/pagination/ListFlowsPaginator.js +4 -4
  46. package/dist-es/pagination/ListOfferingsPaginator.js +4 -4
  47. package/dist-es/pagination/ListReservationsPaginator.js +4 -4
  48. package/dist-es/protocols/Aws_restJson1.js +62 -33
  49. package/dist-types/models/models_0.d.ts +94 -0
  50. package/dist-types/runtimeConfig.native.d.ts +2 -2
  51. package/dist-types/ts3.4/models/models_0.d.ts +56 -0
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  53. package/package.json +35 -35
@@ -17,7 +17,7 @@ const serializeAws_restJson1AddFlowMediaStreamsCommand = async (input, context)
17
17
  if (labelValue.length <= 0) {
18
18
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
19
19
  }
20
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
20
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
21
21
  }
22
22
  else {
23
23
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -51,7 +51,7 @@ const serializeAws_restJson1AddFlowOutputsCommand = async (input, context) => {
51
51
  if (labelValue.length <= 0) {
52
52
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
53
53
  }
54
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
54
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
55
55
  }
56
56
  else {
57
57
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -83,7 +83,7 @@ const serializeAws_restJson1AddFlowSourcesCommand = async (input, context) => {
83
83
  if (labelValue.length <= 0) {
84
84
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
85
85
  }
86
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
86
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
87
87
  }
88
88
  else {
89
89
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -115,7 +115,7 @@ const serializeAws_restJson1AddFlowVpcInterfacesCommand = async (input, context)
115
115
  if (labelValue.length <= 0) {
116
116
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
117
117
  }
118
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
118
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
119
119
  }
120
120
  else {
121
121
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -152,6 +152,8 @@ const serializeAws_restJson1CreateFlowCommand = async (input, context) => {
152
152
  input.Entitlements !== null && {
153
153
  entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
154
154
  }),
155
+ ...(input.Maintenance !== undefined &&
156
+ input.Maintenance !== null && { maintenance: serializeAws_restJson1AddMaintenance(input.Maintenance, context) }),
155
157
  ...(input.MediaStreams !== undefined &&
156
158
  input.MediaStreams !== null && {
157
159
  mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
@@ -192,7 +194,7 @@ const serializeAws_restJson1DeleteFlowCommand = async (input, context) => {
192
194
  if (labelValue.length <= 0) {
193
195
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
194
196
  }
195
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
197
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
196
198
  }
197
199
  else {
198
200
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -218,7 +220,7 @@ const serializeAws_restJson1DescribeFlowCommand = async (input, context) => {
218
220
  if (labelValue.length <= 0) {
219
221
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
220
222
  }
221
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
223
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
222
224
  }
223
225
  else {
224
226
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -244,7 +246,7 @@ const serializeAws_restJson1DescribeOfferingCommand = async (input, context) =>
244
246
  if (labelValue.length <= 0) {
245
247
  throw new Error("Empty value provided for input HTTP label: OfferingArn.");
246
248
  }
247
- resolvedPath = resolvedPath.replace("{OfferingArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
249
+ resolvedPath = resolvedPath.replace("{OfferingArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
248
250
  }
249
251
  else {
250
252
  throw new Error("No value provided for input HTTP label: OfferingArn.");
@@ -270,7 +272,7 @@ const serializeAws_restJson1DescribeReservationCommand = async (input, context)
270
272
  if (labelValue.length <= 0) {
271
273
  throw new Error("Empty value provided for input HTTP label: ReservationArn.");
272
274
  }
273
- resolvedPath = resolvedPath.replace("{ReservationArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
275
+ resolvedPath = resolvedPath.replace("{ReservationArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
274
276
  }
275
277
  else {
276
278
  throw new Error("No value provided for input HTTP label: ReservationArn.");
@@ -298,7 +300,7 @@ const serializeAws_restJson1GrantFlowEntitlementsCommand = async (input, context
298
300
  if (labelValue.length <= 0) {
299
301
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
300
302
  }
301
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
303
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
302
304
  }
303
305
  else {
304
306
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -414,7 +416,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
414
416
  if (labelValue.length <= 0) {
415
417
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
416
418
  }
417
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
419
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
418
420
  }
419
421
  else {
420
422
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -442,7 +444,7 @@ const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) =>
442
444
  if (labelValue.length <= 0) {
443
445
  throw new Error("Empty value provided for input HTTP label: OfferingArn.");
444
446
  }
445
- resolvedPath = resolvedPath.replace("{OfferingArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
447
+ resolvedPath = resolvedPath.replace("{OfferingArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
446
448
  }
447
449
  else {
448
450
  throw new Error("No value provided for input HTTP label: OfferingArn.");
@@ -474,7 +476,7 @@ const serializeAws_restJson1RemoveFlowMediaStreamCommand = async (input, context
474
476
  if (labelValue.length <= 0) {
475
477
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
476
478
  }
477
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
479
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
478
480
  }
479
481
  else {
480
482
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -484,7 +486,7 @@ const serializeAws_restJson1RemoveFlowMediaStreamCommand = async (input, context
484
486
  if (labelValue.length <= 0) {
485
487
  throw new Error("Empty value provided for input HTTP label: MediaStreamName.");
486
488
  }
487
- resolvedPath = resolvedPath.replace("{MediaStreamName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
489
+ resolvedPath = resolvedPath.replace("{MediaStreamName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
488
490
  }
489
491
  else {
490
492
  throw new Error("No value provided for input HTTP label: MediaStreamName.");
@@ -510,7 +512,7 @@ const serializeAws_restJson1RemoveFlowOutputCommand = async (input, context) =>
510
512
  if (labelValue.length <= 0) {
511
513
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
512
514
  }
513
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
515
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
514
516
  }
515
517
  else {
516
518
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -520,7 +522,7 @@ const serializeAws_restJson1RemoveFlowOutputCommand = async (input, context) =>
520
522
  if (labelValue.length <= 0) {
521
523
  throw new Error("Empty value provided for input HTTP label: OutputArn.");
522
524
  }
523
- resolvedPath = resolvedPath.replace("{OutputArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
525
+ resolvedPath = resolvedPath.replace("{OutputArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
524
526
  }
525
527
  else {
526
528
  throw new Error("No value provided for input HTTP label: OutputArn.");
@@ -546,7 +548,7 @@ const serializeAws_restJson1RemoveFlowSourceCommand = async (input, context) =>
546
548
  if (labelValue.length <= 0) {
547
549
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
548
550
  }
549
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
551
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
550
552
  }
551
553
  else {
552
554
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -556,7 +558,7 @@ const serializeAws_restJson1RemoveFlowSourceCommand = async (input, context) =>
556
558
  if (labelValue.length <= 0) {
557
559
  throw new Error("Empty value provided for input HTTP label: SourceArn.");
558
560
  }
559
- resolvedPath = resolvedPath.replace("{SourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
561
+ resolvedPath = resolvedPath.replace("{SourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
560
562
  }
561
563
  else {
562
564
  throw new Error("No value provided for input HTTP label: SourceArn.");
@@ -583,7 +585,7 @@ const serializeAws_restJson1RemoveFlowVpcInterfaceCommand = async (input, contex
583
585
  if (labelValue.length <= 0) {
584
586
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
585
587
  }
586
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
588
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
587
589
  }
588
590
  else {
589
591
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -593,7 +595,7 @@ const serializeAws_restJson1RemoveFlowVpcInterfaceCommand = async (input, contex
593
595
  if (labelValue.length <= 0) {
594
596
  throw new Error("Empty value provided for input HTTP label: VpcInterfaceName.");
595
597
  }
596
- resolvedPath = resolvedPath.replace("{VpcInterfaceName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
598
+ resolvedPath = resolvedPath.replace("{VpcInterfaceName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
597
599
  }
598
600
  else {
599
601
  throw new Error("No value provided for input HTTP label: VpcInterfaceName.");
@@ -620,7 +622,7 @@ const serializeAws_restJson1RevokeFlowEntitlementCommand = async (input, context
620
622
  if (labelValue.length <= 0) {
621
623
  throw new Error("Empty value provided for input HTTP label: EntitlementArn.");
622
624
  }
623
- resolvedPath = resolvedPath.replace("{EntitlementArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
625
+ resolvedPath = resolvedPath.replace("{EntitlementArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
624
626
  }
625
627
  else {
626
628
  throw new Error("No value provided for input HTTP label: EntitlementArn.");
@@ -630,7 +632,7 @@ const serializeAws_restJson1RevokeFlowEntitlementCommand = async (input, context
630
632
  if (labelValue.length <= 0) {
631
633
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
632
634
  }
633
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
635
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
634
636
  }
635
637
  else {
636
638
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -656,7 +658,7 @@ const serializeAws_restJson1StartFlowCommand = async (input, context) => {
656
658
  if (labelValue.length <= 0) {
657
659
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
658
660
  }
659
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
661
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
660
662
  }
661
663
  else {
662
664
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -682,7 +684,7 @@ const serializeAws_restJson1StopFlowCommand = async (input, context) => {
682
684
  if (labelValue.length <= 0) {
683
685
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
684
686
  }
685
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
687
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
686
688
  }
687
689
  else {
688
690
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -710,7 +712,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
710
712
  if (labelValue.length <= 0) {
711
713
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
712
714
  }
713
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
715
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
714
716
  }
715
717
  else {
716
718
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -740,7 +742,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
740
742
  if (labelValue.length <= 0) {
741
743
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
742
744
  }
743
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
745
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
744
746
  }
745
747
  else {
746
748
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -772,13 +774,17 @@ const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
772
774
  if (labelValue.length <= 0) {
773
775
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
774
776
  }
775
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
777
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
776
778
  }
777
779
  else {
778
780
  throw new Error("No value provided for input HTTP label: FlowArn.");
779
781
  }
780
782
  let body;
781
783
  body = JSON.stringify({
784
+ ...(input.Maintenance !== undefined &&
785
+ input.Maintenance !== null && {
786
+ maintenance: serializeAws_restJson1UpdateMaintenance(input.Maintenance, context),
787
+ }),
782
788
  ...(input.SourceFailoverConfig !== undefined &&
783
789
  input.SourceFailoverConfig !== null && {
784
790
  sourceFailoverConfig: serializeAws_restJson1UpdateFailoverConfig(input.SourceFailoverConfig, context),
@@ -807,7 +813,7 @@ const serializeAws_restJson1UpdateFlowEntitlementCommand = async (input, context
807
813
  if (labelValue.length <= 0) {
808
814
  throw new Error("Empty value provided for input HTTP label: EntitlementArn.");
809
815
  }
810
- resolvedPath = resolvedPath.replace("{EntitlementArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
816
+ resolvedPath = resolvedPath.replace("{EntitlementArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
811
817
  }
812
818
  else {
813
819
  throw new Error("No value provided for input HTTP label: EntitlementArn.");
@@ -817,7 +823,7 @@ const serializeAws_restJson1UpdateFlowEntitlementCommand = async (input, context
817
823
  if (labelValue.length <= 0) {
818
824
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
819
825
  }
820
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
826
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
821
827
  }
822
828
  else {
823
829
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -857,7 +863,7 @@ const serializeAws_restJson1UpdateFlowMediaStreamCommand = async (input, context
857
863
  if (labelValue.length <= 0) {
858
864
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
859
865
  }
860
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
866
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
861
867
  }
862
868
  else {
863
869
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -867,7 +873,7 @@ const serializeAws_restJson1UpdateFlowMediaStreamCommand = async (input, context
867
873
  if (labelValue.length <= 0) {
868
874
  throw new Error("Empty value provided for input HTTP label: MediaStreamName.");
869
875
  }
870
- resolvedPath = resolvedPath.replace("{MediaStreamName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
876
+ resolvedPath = resolvedPath.replace("{MediaStreamName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
871
877
  }
872
878
  else {
873
879
  throw new Error("No value provided for input HTTP label: MediaStreamName.");
@@ -906,7 +912,7 @@ const serializeAws_restJson1UpdateFlowOutputCommand = async (input, context) =>
906
912
  if (labelValue.length <= 0) {
907
913
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
908
914
  }
909
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
915
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
910
916
  }
911
917
  else {
912
918
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -916,7 +922,7 @@ const serializeAws_restJson1UpdateFlowOutputCommand = async (input, context) =>
916
922
  if (labelValue.length <= 0) {
917
923
  throw new Error("Empty value provided for input HTTP label: OutputArn.");
918
924
  }
919
- resolvedPath = resolvedPath.replace("{OutputArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
925
+ resolvedPath = resolvedPath.replace("{OutputArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
920
926
  }
921
927
  else {
922
928
  throw new Error("No value provided for input HTTP label: OutputArn.");
@@ -974,7 +980,7 @@ const serializeAws_restJson1UpdateFlowSourceCommand = async (input, context) =>
974
980
  if (labelValue.length <= 0) {
975
981
  throw new Error("Empty value provided for input HTTP label: FlowArn.");
976
982
  }
977
- resolvedPath = resolvedPath.replace("{FlowArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
983
+ resolvedPath = resolvedPath.replace("{FlowArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
978
984
  }
979
985
  else {
980
986
  throw new Error("No value provided for input HTTP label: FlowArn.");
@@ -984,7 +990,7 @@ const serializeAws_restJson1UpdateFlowSourceCommand = async (input, context) =>
984
990
  if (labelValue.length <= 0) {
985
991
  throw new Error("Empty value provided for input HTTP label: SourceArn.");
986
992
  }
987
- resolvedPath = resolvedPath.replace("{SourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
993
+ resolvedPath = resolvedPath.replace("{SourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
988
994
  }
989
995
  else {
990
996
  throw new Error("No value provided for input HTTP label: SourceArn.");
@@ -1035,9 +1041,9 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommand = async (output, contex
1035
1041
  FlowArn: undefined,
1036
1042
  MediaStreams: undefined,
1037
1043
  };
1038
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1044
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1039
1045
  if (data.flowArn !== undefined && data.flowArn !== null) {
1040
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1046
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1041
1047
  }
1042
1048
  if (data.mediaStreams !== undefined && data.mediaStreams !== null) {
1043
1049
  contents.MediaStreams = deserializeAws_restJson1__listOfMediaStream(data.mediaStreams, context);
@@ -1079,7 +1085,7 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, c
1079
1085
  $fault: "client",
1080
1086
  $metadata: deserializeMetadata(output),
1081
1087
  });
1082
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1088
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1083
1089
  }
1084
1090
  };
1085
1091
  const deserializeAws_restJson1AddFlowOutputsCommand = async (output, context) => {
@@ -1091,9 +1097,9 @@ const deserializeAws_restJson1AddFlowOutputsCommand = async (output, context) =>
1091
1097
  FlowArn: undefined,
1092
1098
  Outputs: undefined,
1093
1099
  };
1094
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1100
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1095
1101
  if (data.flowArn !== undefined && data.flowArn !== null) {
1096
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1102
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1097
1103
  }
1098
1104
  if (data.outputs !== undefined && data.outputs !== null) {
1099
1105
  contents.Outputs = deserializeAws_restJson1__listOfOutput(data.outputs, context);
@@ -1138,7 +1144,7 @@ const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, contex
1138
1144
  $fault: "client",
1139
1145
  $metadata: deserializeMetadata(output),
1140
1146
  });
1141
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1147
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1142
1148
  }
1143
1149
  };
1144
1150
  const deserializeAws_restJson1AddFlowSourcesCommand = async (output, context) => {
@@ -1150,9 +1156,9 @@ const deserializeAws_restJson1AddFlowSourcesCommand = async (output, context) =>
1150
1156
  FlowArn: undefined,
1151
1157
  Sources: undefined,
1152
1158
  };
1153
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1159
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1154
1160
  if (data.flowArn !== undefined && data.flowArn !== null) {
1155
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1161
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1156
1162
  }
1157
1163
  if (data.sources !== undefined && data.sources !== null) {
1158
1164
  contents.Sources = deserializeAws_restJson1__listOfSource(data.sources, context);
@@ -1194,7 +1200,7 @@ const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, contex
1194
1200
  $fault: "client",
1195
1201
  $metadata: deserializeMetadata(output),
1196
1202
  });
1197
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1203
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1198
1204
  }
1199
1205
  };
1200
1206
  const deserializeAws_restJson1AddFlowVpcInterfacesCommand = async (output, context) => {
@@ -1206,9 +1212,9 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommand = async (output, conte
1206
1212
  FlowArn: undefined,
1207
1213
  VpcInterfaces: undefined,
1208
1214
  };
1209
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1215
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1210
1216
  if (data.flowArn !== undefined && data.flowArn !== null) {
1211
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1217
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1212
1218
  }
1213
1219
  if (data.vpcInterfaces !== undefined && data.vpcInterfaces !== null) {
1214
1220
  contents.VpcInterfaces = deserializeAws_restJson1__listOfVpcInterface(data.vpcInterfaces, context);
@@ -1250,7 +1256,7 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output,
1250
1256
  $fault: "client",
1251
1257
  $metadata: deserializeMetadata(output),
1252
1258
  });
1253
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1259
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1254
1260
  }
1255
1261
  };
1256
1262
  const deserializeAws_restJson1CreateFlowCommand = async (output, context) => {
@@ -1261,7 +1267,7 @@ const deserializeAws_restJson1CreateFlowCommand = async (output, context) => {
1261
1267
  $metadata: deserializeMetadata(output),
1262
1268
  Flow: undefined,
1263
1269
  };
1264
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1270
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1265
1271
  if (data.flow !== undefined && data.flow !== null) {
1266
1272
  contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
1267
1273
  }
@@ -1302,7 +1308,7 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
1302
1308
  $fault: "client",
1303
1309
  $metadata: deserializeMetadata(output),
1304
1310
  });
1305
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1311
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1306
1312
  }
1307
1313
  };
1308
1314
  const deserializeAws_restJson1DeleteFlowCommand = async (output, context) => {
@@ -1314,12 +1320,12 @@ const deserializeAws_restJson1DeleteFlowCommand = async (output, context) => {
1314
1320
  FlowArn: undefined,
1315
1321
  Status: undefined,
1316
1322
  };
1317
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1323
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1318
1324
  if (data.flowArn !== undefined && data.flowArn !== null) {
1319
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1325
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1320
1326
  }
1321
1327
  if (data.status !== undefined && data.status !== null) {
1322
- contents.Status = smithy_client_1.expectString(data.status);
1328
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
1323
1329
  }
1324
1330
  return Promise.resolve(contents);
1325
1331
  };
@@ -1358,7 +1364,7 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
1358
1364
  $fault: "client",
1359
1365
  $metadata: deserializeMetadata(output),
1360
1366
  });
1361
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1367
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1362
1368
  }
1363
1369
  };
1364
1370
  const deserializeAws_restJson1DescribeFlowCommand = async (output, context) => {
@@ -1370,7 +1376,7 @@ const deserializeAws_restJson1DescribeFlowCommand = async (output, context) => {
1370
1376
  Flow: undefined,
1371
1377
  Messages: undefined,
1372
1378
  };
1373
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1379
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1374
1380
  if (data.flow !== undefined && data.flow !== null) {
1375
1381
  contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
1376
1382
  }
@@ -1414,7 +1420,7 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
1414
1420
  $fault: "client",
1415
1421
  $metadata: deserializeMetadata(output),
1416
1422
  });
1417
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1423
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1418
1424
  }
1419
1425
  };
1420
1426
  const deserializeAws_restJson1DescribeOfferingCommand = async (output, context) => {
@@ -1425,7 +1431,7 @@ const deserializeAws_restJson1DescribeOfferingCommand = async (output, context)
1425
1431
  $metadata: deserializeMetadata(output),
1426
1432
  Offering: undefined,
1427
1433
  };
1428
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1434
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1429
1435
  if (data.offering !== undefined && data.offering !== null) {
1430
1436
  contents.Offering = deserializeAws_restJson1Offering(data.offering, context);
1431
1437
  }
@@ -1463,7 +1469,7 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
1463
1469
  $fault: "client",
1464
1470
  $metadata: deserializeMetadata(output),
1465
1471
  });
1466
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1472
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1467
1473
  }
1468
1474
  };
1469
1475
  const deserializeAws_restJson1DescribeReservationCommand = async (output, context) => {
@@ -1474,7 +1480,7 @@ const deserializeAws_restJson1DescribeReservationCommand = async (output, contex
1474
1480
  $metadata: deserializeMetadata(output),
1475
1481
  Reservation: undefined,
1476
1482
  };
1477
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1483
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1478
1484
  if (data.reservation !== undefined && data.reservation !== null) {
1479
1485
  contents.Reservation = deserializeAws_restJson1Reservation(data.reservation, context);
1480
1486
  }
@@ -1512,7 +1518,7 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
1512
1518
  $fault: "client",
1513
1519
  $metadata: deserializeMetadata(output),
1514
1520
  });
1515
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1521
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1516
1522
  }
1517
1523
  };
1518
1524
  const deserializeAws_restJson1GrantFlowEntitlementsCommand = async (output, context) => {
@@ -1524,12 +1530,12 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommand = async (output, cont
1524
1530
  Entitlements: undefined,
1525
1531
  FlowArn: undefined,
1526
1532
  };
1527
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1533
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1528
1534
  if (data.entitlements !== undefined && data.entitlements !== null) {
1529
1535
  contents.Entitlements = deserializeAws_restJson1__listOfEntitlement(data.entitlements, context);
1530
1536
  }
1531
1537
  if (data.flowArn !== undefined && data.flowArn !== null) {
1532
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1538
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1533
1539
  }
1534
1540
  return Promise.resolve(contents);
1535
1541
  };
@@ -1571,7 +1577,7 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output,
1571
1577
  $fault: "client",
1572
1578
  $metadata: deserializeMetadata(output),
1573
1579
  });
1574
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1580
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1575
1581
  }
1576
1582
  };
1577
1583
  const deserializeAws_restJson1ListEntitlementsCommand = async (output, context) => {
@@ -1583,12 +1589,12 @@ const deserializeAws_restJson1ListEntitlementsCommand = async (output, context)
1583
1589
  Entitlements: undefined,
1584
1590
  NextToken: undefined,
1585
1591
  };
1586
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1592
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1587
1593
  if (data.entitlements !== undefined && data.entitlements !== null) {
1588
1594
  contents.Entitlements = deserializeAws_restJson1__listOfListedEntitlement(data.entitlements, context);
1589
1595
  }
1590
1596
  if (data.nextToken !== undefined && data.nextToken !== null) {
1591
- contents.NextToken = smithy_client_1.expectString(data.nextToken);
1597
+ contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1592
1598
  }
1593
1599
  return Promise.resolve(contents);
1594
1600
  };
@@ -1621,7 +1627,7 @@ const deserializeAws_restJson1ListEntitlementsCommandError = async (output, cont
1621
1627
  $fault: "client",
1622
1628
  $metadata: deserializeMetadata(output),
1623
1629
  });
1624
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1630
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1625
1631
  }
1626
1632
  };
1627
1633
  const deserializeAws_restJson1ListFlowsCommand = async (output, context) => {
@@ -1633,12 +1639,12 @@ const deserializeAws_restJson1ListFlowsCommand = async (output, context) => {
1633
1639
  Flows: undefined,
1634
1640
  NextToken: undefined,
1635
1641
  };
1636
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1642
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1637
1643
  if (data.flows !== undefined && data.flows !== null) {
1638
1644
  contents.Flows = deserializeAws_restJson1__listOfListedFlow(data.flows, context);
1639
1645
  }
1640
1646
  if (data.nextToken !== undefined && data.nextToken !== null) {
1641
- contents.NextToken = smithy_client_1.expectString(data.nextToken);
1647
+ contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1642
1648
  }
1643
1649
  return Promise.resolve(contents);
1644
1650
  };
@@ -1671,7 +1677,7 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
1671
1677
  $fault: "client",
1672
1678
  $metadata: deserializeMetadata(output),
1673
1679
  });
1674
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1680
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1675
1681
  }
1676
1682
  };
1677
1683
  const deserializeAws_restJson1ListOfferingsCommand = async (output, context) => {
@@ -1683,9 +1689,9 @@ const deserializeAws_restJson1ListOfferingsCommand = async (output, context) =>
1683
1689
  NextToken: undefined,
1684
1690
  Offerings: undefined,
1685
1691
  };
1686
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1692
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1687
1693
  if (data.nextToken !== undefined && data.nextToken !== null) {
1688
- contents.NextToken = smithy_client_1.expectString(data.nextToken);
1694
+ contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1689
1695
  }
1690
1696
  if (data.offerings !== undefined && data.offerings !== null) {
1691
1697
  contents.Offerings = deserializeAws_restJson1__listOfOffering(data.offerings, context);
@@ -1721,7 +1727,7 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
1721
1727
  $fault: "client",
1722
1728
  $metadata: deserializeMetadata(output),
1723
1729
  });
1724
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1730
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1725
1731
  }
1726
1732
  };
1727
1733
  const deserializeAws_restJson1ListReservationsCommand = async (output, context) => {
@@ -1733,9 +1739,9 @@ const deserializeAws_restJson1ListReservationsCommand = async (output, context)
1733
1739
  NextToken: undefined,
1734
1740
  Reservations: undefined,
1735
1741
  };
1736
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1742
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1737
1743
  if (data.nextToken !== undefined && data.nextToken !== null) {
1738
- contents.NextToken = smithy_client_1.expectString(data.nextToken);
1744
+ contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
1739
1745
  }
1740
1746
  if (data.reservations !== undefined && data.reservations !== null) {
1741
1747
  contents.Reservations = deserializeAws_restJson1__listOfReservation(data.reservations, context);
@@ -1771,7 +1777,7 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
1771
1777
  $fault: "client",
1772
1778
  $metadata: deserializeMetadata(output),
1773
1779
  });
1774
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1780
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1775
1781
  }
1776
1782
  };
1777
1783
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -1782,7 +1788,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
1782
1788
  $metadata: deserializeMetadata(output),
1783
1789
  Tags: undefined,
1784
1790
  };
1785
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1791
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1786
1792
  if (data.tags !== undefined && data.tags !== null) {
1787
1793
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1788
1794
  }
@@ -1814,7 +1820,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1814
1820
  $fault: "client",
1815
1821
  $metadata: deserializeMetadata(output),
1816
1822
  });
1817
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1823
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1818
1824
  }
1819
1825
  };
1820
1826
  const deserializeAws_restJson1PurchaseOfferingCommand = async (output, context) => {
@@ -1825,7 +1831,7 @@ const deserializeAws_restJson1PurchaseOfferingCommand = async (output, context)
1825
1831
  $metadata: deserializeMetadata(output),
1826
1832
  Reservation: undefined,
1827
1833
  };
1828
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1834
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1829
1835
  if (data.reservation !== undefined && data.reservation !== null) {
1830
1836
  contents.Reservation = deserializeAws_restJson1Reservation(data.reservation, context);
1831
1837
  }
@@ -1866,7 +1872,7 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
1866
1872
  $fault: "client",
1867
1873
  $metadata: deserializeMetadata(output),
1868
1874
  });
1869
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1875
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1870
1876
  }
1871
1877
  };
1872
1878
  const deserializeAws_restJson1RemoveFlowMediaStreamCommand = async (output, context) => {
@@ -1878,12 +1884,12 @@ const deserializeAws_restJson1RemoveFlowMediaStreamCommand = async (output, cont
1878
1884
  FlowArn: undefined,
1879
1885
  MediaStreamName: undefined,
1880
1886
  };
1881
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1887
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1882
1888
  if (data.flowArn !== undefined && data.flowArn !== null) {
1883
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1889
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1884
1890
  }
1885
1891
  if (data.mediaStreamName !== undefined && data.mediaStreamName !== null) {
1886
- contents.MediaStreamName = smithy_client_1.expectString(data.mediaStreamName);
1892
+ contents.MediaStreamName = (0, smithy_client_1.expectString)(data.mediaStreamName);
1887
1893
  }
1888
1894
  return Promise.resolve(contents);
1889
1895
  };
@@ -1922,7 +1928,7 @@ const deserializeAws_restJson1RemoveFlowMediaStreamCommandError = async (output,
1922
1928
  $fault: "client",
1923
1929
  $metadata: deserializeMetadata(output),
1924
1930
  });
1925
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1931
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1926
1932
  }
1927
1933
  };
1928
1934
  const deserializeAws_restJson1RemoveFlowOutputCommand = async (output, context) => {
@@ -1934,12 +1940,12 @@ const deserializeAws_restJson1RemoveFlowOutputCommand = async (output, context)
1934
1940
  FlowArn: undefined,
1935
1941
  OutputArn: undefined,
1936
1942
  };
1937
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1943
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1938
1944
  if (data.flowArn !== undefined && data.flowArn !== null) {
1939
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
1945
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1940
1946
  }
1941
1947
  if (data.outputArn !== undefined && data.outputArn !== null) {
1942
- contents.OutputArn = smithy_client_1.expectString(data.outputArn);
1948
+ contents.OutputArn = (0, smithy_client_1.expectString)(data.outputArn);
1943
1949
  }
1944
1950
  return Promise.resolve(contents);
1945
1951
  };
@@ -1978,7 +1984,7 @@ const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, cont
1978
1984
  $fault: "client",
1979
1985
  $metadata: deserializeMetadata(output),
1980
1986
  });
1981
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1987
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1982
1988
  }
1983
1989
  };
1984
1990
  const deserializeAws_restJson1RemoveFlowSourceCommand = async (output, context) => {
@@ -1990,12 +1996,12 @@ const deserializeAws_restJson1RemoveFlowSourceCommand = async (output, context)
1990
1996
  FlowArn: undefined,
1991
1997
  SourceArn: undefined,
1992
1998
  };
1993
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1999
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1994
2000
  if (data.flowArn !== undefined && data.flowArn !== null) {
1995
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2001
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1996
2002
  }
1997
2003
  if (data.sourceArn !== undefined && data.sourceArn !== null) {
1998
- contents.SourceArn = smithy_client_1.expectString(data.sourceArn);
2004
+ contents.SourceArn = (0, smithy_client_1.expectString)(data.sourceArn);
1999
2005
  }
2000
2006
  return Promise.resolve(contents);
2001
2007
  };
@@ -2034,7 +2040,7 @@ const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, cont
2034
2040
  $fault: "client",
2035
2041
  $metadata: deserializeMetadata(output),
2036
2042
  });
2037
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2043
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2038
2044
  }
2039
2045
  };
2040
2046
  const deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = async (output, context) => {
@@ -2047,15 +2053,15 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = async (output, con
2047
2053
  NonDeletedNetworkInterfaceIds: undefined,
2048
2054
  VpcInterfaceName: undefined,
2049
2055
  };
2050
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2056
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2051
2057
  if (data.flowArn !== undefined && data.flowArn !== null) {
2052
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2058
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2053
2059
  }
2054
2060
  if (data.nonDeletedNetworkInterfaceIds !== undefined && data.nonDeletedNetworkInterfaceIds !== null) {
2055
2061
  contents.NonDeletedNetworkInterfaceIds = deserializeAws_restJson1__listOf__string(data.nonDeletedNetworkInterfaceIds, context);
2056
2062
  }
2057
2063
  if (data.vpcInterfaceName !== undefined && data.vpcInterfaceName !== null) {
2058
- contents.VpcInterfaceName = smithy_client_1.expectString(data.vpcInterfaceName);
2064
+ contents.VpcInterfaceName = (0, smithy_client_1.expectString)(data.vpcInterfaceName);
2059
2065
  }
2060
2066
  return Promise.resolve(contents);
2061
2067
  };
@@ -2094,7 +2100,7 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output
2094
2100
  $fault: "client",
2095
2101
  $metadata: deserializeMetadata(output),
2096
2102
  });
2097
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2103
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2098
2104
  }
2099
2105
  };
2100
2106
  const deserializeAws_restJson1RevokeFlowEntitlementCommand = async (output, context) => {
@@ -2106,12 +2112,12 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommand = async (output, cont
2106
2112
  EntitlementArn: undefined,
2107
2113
  FlowArn: undefined,
2108
2114
  };
2109
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2115
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2110
2116
  if (data.entitlementArn !== undefined && data.entitlementArn !== null) {
2111
- contents.EntitlementArn = smithy_client_1.expectString(data.entitlementArn);
2117
+ contents.EntitlementArn = (0, smithy_client_1.expectString)(data.entitlementArn);
2112
2118
  }
2113
2119
  if (data.flowArn !== undefined && data.flowArn !== null) {
2114
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2120
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2115
2121
  }
2116
2122
  return Promise.resolve(contents);
2117
2123
  };
@@ -2150,7 +2156,7 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output,
2150
2156
  $fault: "client",
2151
2157
  $metadata: deserializeMetadata(output),
2152
2158
  });
2153
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2159
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2154
2160
  }
2155
2161
  };
2156
2162
  const deserializeAws_restJson1StartFlowCommand = async (output, context) => {
@@ -2162,12 +2168,12 @@ const deserializeAws_restJson1StartFlowCommand = async (output, context) => {
2162
2168
  FlowArn: undefined,
2163
2169
  Status: undefined,
2164
2170
  };
2165
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2171
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2166
2172
  if (data.flowArn !== undefined && data.flowArn !== null) {
2167
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2173
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2168
2174
  }
2169
2175
  if (data.status !== undefined && data.status !== null) {
2170
- contents.Status = smithy_client_1.expectString(data.status);
2176
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2171
2177
  }
2172
2178
  return Promise.resolve(contents);
2173
2179
  };
@@ -2206,7 +2212,7 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
2206
2212
  $fault: "client",
2207
2213
  $metadata: deserializeMetadata(output),
2208
2214
  });
2209
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2215
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2210
2216
  }
2211
2217
  };
2212
2218
  const deserializeAws_restJson1StopFlowCommand = async (output, context) => {
@@ -2218,12 +2224,12 @@ const deserializeAws_restJson1StopFlowCommand = async (output, context) => {
2218
2224
  FlowArn: undefined,
2219
2225
  Status: undefined,
2220
2226
  };
2221
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2227
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2222
2228
  if (data.flowArn !== undefined && data.flowArn !== null) {
2223
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2229
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2224
2230
  }
2225
2231
  if (data.status !== undefined && data.status !== null) {
2226
- contents.Status = smithy_client_1.expectString(data.status);
2232
+ contents.Status = (0, smithy_client_1.expectString)(data.status);
2227
2233
  }
2228
2234
  return Promise.resolve(contents);
2229
2235
  };
@@ -2262,7 +2268,7 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
2262
2268
  $fault: "client",
2263
2269
  $metadata: deserializeMetadata(output),
2264
2270
  });
2265
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2271
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2266
2272
  }
2267
2273
  };
2268
2274
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -2301,7 +2307,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2301
2307
  $fault: "client",
2302
2308
  $metadata: deserializeMetadata(output),
2303
2309
  });
2304
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2310
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2305
2311
  }
2306
2312
  };
2307
2313
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -2340,7 +2346,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2340
2346
  $fault: "client",
2341
2347
  $metadata: deserializeMetadata(output),
2342
2348
  });
2343
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2349
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2344
2350
  }
2345
2351
  };
2346
2352
  const deserializeAws_restJson1UpdateFlowCommand = async (output, context) => {
@@ -2351,7 +2357,7 @@ const deserializeAws_restJson1UpdateFlowCommand = async (output, context) => {
2351
2357
  $metadata: deserializeMetadata(output),
2352
2358
  Flow: undefined,
2353
2359
  };
2354
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2360
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2355
2361
  if (data.flow !== undefined && data.flow !== null) {
2356
2362
  contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
2357
2363
  }
@@ -2392,7 +2398,7 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
2392
2398
  $fault: "client",
2393
2399
  $metadata: deserializeMetadata(output),
2394
2400
  });
2395
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2401
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2396
2402
  }
2397
2403
  };
2398
2404
  const deserializeAws_restJson1UpdateFlowEntitlementCommand = async (output, context) => {
@@ -2404,12 +2410,12 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommand = async (output, cont
2404
2410
  Entitlement: undefined,
2405
2411
  FlowArn: undefined,
2406
2412
  };
2407
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2413
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2408
2414
  if (data.entitlement !== undefined && data.entitlement !== null) {
2409
2415
  contents.Entitlement = deserializeAws_restJson1Entitlement(data.entitlement, context);
2410
2416
  }
2411
2417
  if (data.flowArn !== undefined && data.flowArn !== null) {
2412
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2418
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2413
2419
  }
2414
2420
  return Promise.resolve(contents);
2415
2421
  };
@@ -2448,7 +2454,7 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output,
2448
2454
  $fault: "client",
2449
2455
  $metadata: deserializeMetadata(output),
2450
2456
  });
2451
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2457
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2452
2458
  }
2453
2459
  };
2454
2460
  const deserializeAws_restJson1UpdateFlowMediaStreamCommand = async (output, context) => {
@@ -2460,9 +2466,9 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommand = async (output, cont
2460
2466
  FlowArn: undefined,
2461
2467
  MediaStream: undefined,
2462
2468
  };
2463
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2469
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2464
2470
  if (data.flowArn !== undefined && data.flowArn !== null) {
2465
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2471
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2466
2472
  }
2467
2473
  if (data.mediaStream !== undefined && data.mediaStream !== null) {
2468
2474
  contents.MediaStream = deserializeAws_restJson1MediaStream(data.mediaStream, context);
@@ -2504,7 +2510,7 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output,
2504
2510
  $fault: "client",
2505
2511
  $metadata: deserializeMetadata(output),
2506
2512
  });
2507
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2513
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2508
2514
  }
2509
2515
  };
2510
2516
  const deserializeAws_restJson1UpdateFlowOutputCommand = async (output, context) => {
@@ -2516,9 +2522,9 @@ const deserializeAws_restJson1UpdateFlowOutputCommand = async (output, context)
2516
2522
  FlowArn: undefined,
2517
2523
  Output: undefined,
2518
2524
  };
2519
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2525
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2520
2526
  if (data.flowArn !== undefined && data.flowArn !== null) {
2521
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2527
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2522
2528
  }
2523
2529
  if (data.output !== undefined && data.output !== null) {
2524
2530
  contents.Output = deserializeAws_restJson1Output(data.output, context);
@@ -2560,7 +2566,7 @@ const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, cont
2560
2566
  $fault: "client",
2561
2567
  $metadata: deserializeMetadata(output),
2562
2568
  });
2563
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2569
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2564
2570
  }
2565
2571
  };
2566
2572
  const deserializeAws_restJson1UpdateFlowSourceCommand = async (output, context) => {
@@ -2572,9 +2578,9 @@ const deserializeAws_restJson1UpdateFlowSourceCommand = async (output, context)
2572
2578
  FlowArn: undefined,
2573
2579
  Source: undefined,
2574
2580
  };
2575
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2581
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2576
2582
  if (data.flowArn !== undefined && data.flowArn !== null) {
2577
- contents.FlowArn = smithy_client_1.expectString(data.flowArn);
2583
+ contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2578
2584
  }
2579
2585
  if (data.source !== undefined && data.source !== null) {
2580
2586
  contents.Source = deserializeAws_restJson1Source(data.source, context);
@@ -2616,116 +2622,116 @@ const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, cont
2616
2622
  $fault: "client",
2617
2623
  $metadata: deserializeMetadata(output),
2618
2624
  });
2619
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2625
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2620
2626
  }
2621
2627
  };
2622
2628
  const deserializeAws_restJson1AddFlowOutputs420ExceptionResponse = async (parsedOutput, context) => {
2623
2629
  const contents = {};
2624
2630
  const data = parsedOutput.body;
2625
2631
  if (data.message !== undefined && data.message !== null) {
2626
- contents.Message = smithy_client_1.expectString(data.message);
2632
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2627
2633
  }
2628
2634
  const exception = new models_0_1.AddFlowOutputs420Exception({
2629
2635
  $metadata: deserializeMetadata(parsedOutput),
2630
2636
  ...contents,
2631
2637
  });
2632
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2638
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2633
2639
  };
2634
2640
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
2635
2641
  const contents = {};
2636
2642
  const data = parsedOutput.body;
2637
2643
  if (data.message !== undefined && data.message !== null) {
2638
- contents.Message = smithy_client_1.expectString(data.message);
2644
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2639
2645
  }
2640
2646
  const exception = new models_0_1.BadRequestException({
2641
2647
  $metadata: deserializeMetadata(parsedOutput),
2642
2648
  ...contents,
2643
2649
  });
2644
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2650
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2645
2651
  };
2646
2652
  const deserializeAws_restJson1CreateFlow420ExceptionResponse = async (parsedOutput, context) => {
2647
2653
  const contents = {};
2648
2654
  const data = parsedOutput.body;
2649
2655
  if (data.message !== undefined && data.message !== null) {
2650
- contents.Message = smithy_client_1.expectString(data.message);
2656
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2651
2657
  }
2652
2658
  const exception = new models_0_1.CreateFlow420Exception({
2653
2659
  $metadata: deserializeMetadata(parsedOutput),
2654
2660
  ...contents,
2655
2661
  });
2656
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2662
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2657
2663
  };
2658
2664
  const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
2659
2665
  const contents = {};
2660
2666
  const data = parsedOutput.body;
2661
2667
  if (data.message !== undefined && data.message !== null) {
2662
- contents.Message = smithy_client_1.expectString(data.message);
2668
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2663
2669
  }
2664
2670
  const exception = new models_0_1.ForbiddenException({
2665
2671
  $metadata: deserializeMetadata(parsedOutput),
2666
2672
  ...contents,
2667
2673
  });
2668
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2674
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2669
2675
  };
2670
2676
  const deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse = async (parsedOutput, context) => {
2671
2677
  const contents = {};
2672
2678
  const data = parsedOutput.body;
2673
2679
  if (data.message !== undefined && data.message !== null) {
2674
- contents.Message = smithy_client_1.expectString(data.message);
2680
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2675
2681
  }
2676
2682
  const exception = new models_0_1.GrantFlowEntitlements420Exception({
2677
2683
  $metadata: deserializeMetadata(parsedOutput),
2678
2684
  ...contents,
2679
2685
  });
2680
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2686
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2681
2687
  };
2682
2688
  const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
2683
2689
  const contents = {};
2684
2690
  const data = parsedOutput.body;
2685
2691
  if (data.message !== undefined && data.message !== null) {
2686
- contents.Message = smithy_client_1.expectString(data.message);
2692
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2687
2693
  }
2688
2694
  const exception = new models_0_1.InternalServerErrorException({
2689
2695
  $metadata: deserializeMetadata(parsedOutput),
2690
2696
  ...contents,
2691
2697
  });
2692
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2698
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2693
2699
  };
2694
2700
  const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
2695
2701
  const contents = {};
2696
2702
  const data = parsedOutput.body;
2697
2703
  if (data.message !== undefined && data.message !== null) {
2698
- contents.Message = smithy_client_1.expectString(data.message);
2704
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2699
2705
  }
2700
2706
  const exception = new models_0_1.NotFoundException({
2701
2707
  $metadata: deserializeMetadata(parsedOutput),
2702
2708
  ...contents,
2703
2709
  });
2704
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2710
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2705
2711
  };
2706
2712
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
2707
2713
  const contents = {};
2708
2714
  const data = parsedOutput.body;
2709
2715
  if (data.message !== undefined && data.message !== null) {
2710
- contents.Message = smithy_client_1.expectString(data.message);
2716
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2711
2717
  }
2712
2718
  const exception = new models_0_1.ServiceUnavailableException({
2713
2719
  $metadata: deserializeMetadata(parsedOutput),
2714
2720
  ...contents,
2715
2721
  });
2716
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2722
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2717
2723
  };
2718
2724
  const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
2719
2725
  const contents = {};
2720
2726
  const data = parsedOutput.body;
2721
2727
  if (data.message !== undefined && data.message !== null) {
2722
- contents.Message = smithy_client_1.expectString(data.message);
2728
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
2723
2729
  }
2724
2730
  const exception = new models_0_1.TooManyRequestsException({
2725
2731
  $metadata: deserializeMetadata(parsedOutput),
2726
2732
  ...contents,
2727
2733
  });
2728
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2734
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2729
2735
  };
2730
2736
  const serializeAws_restJson1__listOf__string = (input, context) => {
2731
2737
  return input
@@ -2838,6 +2844,14 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
2838
2844
  };
2839
2845
  }, {});
2840
2846
  };
2847
+ const serializeAws_restJson1AddMaintenance = (input, context) => {
2848
+ return {
2849
+ ...(input.MaintenanceDay !== undefined &&
2850
+ input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay }),
2851
+ ...(input.MaintenanceStartHour !== undefined &&
2852
+ input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }),
2853
+ };
2854
+ };
2841
2855
  const serializeAws_restJson1AddMediaStreamRequest = (input, context) => {
2842
2856
  return {
2843
2857
  ...(input.Attributes !== undefined &&
@@ -2897,7 +2911,7 @@ const serializeAws_restJson1DestinationConfigurationRequest = (input, context) =
2897
2911
  const serializeAws_restJson1EncodingParametersRequest = (input, context) => {
2898
2912
  return {
2899
2913
  ...(input.CompressionFactor !== undefined &&
2900
- input.CompressionFactor !== null && { compressionFactor: smithy_client_1.serializeFloat(input.CompressionFactor) }),
2914
+ input.CompressionFactor !== null && { compressionFactor: (0, smithy_client_1.serializeFloat)(input.CompressionFactor) }),
2901
2915
  ...(input.EncoderProfile !== undefined &&
2902
2916
  input.EncoderProfile !== null && { encoderProfile: input.EncoderProfile }),
2903
2917
  };
@@ -3066,6 +3080,16 @@ const serializeAws_restJson1UpdateFailoverConfig = (input, context) => {
3066
3080
  ...(input.State !== undefined && input.State !== null && { state: input.State }),
3067
3081
  };
3068
3082
  };
3083
+ const serializeAws_restJson1UpdateMaintenance = (input, context) => {
3084
+ return {
3085
+ ...(input.MaintenanceDay !== undefined &&
3086
+ input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay }),
3087
+ ...(input.MaintenanceScheduledDate !== undefined &&
3088
+ input.MaintenanceScheduledDate !== null && { maintenanceScheduledDate: input.MaintenanceScheduledDate }),
3089
+ ...(input.MaintenanceStartHour !== undefined &&
3090
+ input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }),
3091
+ };
3092
+ };
3069
3093
  const serializeAws_restJson1VpcInterfaceAttachment = (input, context) => {
3070
3094
  return {
3071
3095
  ...(input.VpcInterfaceName !== undefined &&
@@ -3092,7 +3116,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
3092
3116
  if (entry === null) {
3093
3117
  return null;
3094
3118
  }
3095
- return smithy_client_1.expectString(entry);
3119
+ return (0, smithy_client_1.expectString)(entry);
3096
3120
  });
3097
3121
  return retVal;
3098
3122
  };
@@ -3246,49 +3270,49 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
3246
3270
  }
3247
3271
  return {
3248
3272
  ...acc,
3249
- [key]: smithy_client_1.expectString(value),
3273
+ [key]: (0, smithy_client_1.expectString)(value),
3250
3274
  };
3251
3275
  }, {});
3252
3276
  };
3253
3277
  const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
3254
3278
  return {
3255
- DestinationIp: smithy_client_1.expectString(output.destinationIp),
3256
- DestinationPort: smithy_client_1.expectInt32(output.destinationPort),
3279
+ DestinationIp: (0, smithy_client_1.expectString)(output.destinationIp),
3280
+ DestinationPort: (0, smithy_client_1.expectInt32)(output.destinationPort),
3257
3281
  Interface: output.interface !== undefined && output.interface !== null
3258
3282
  ? deserializeAws_restJson1Interface(output.interface, context)
3259
3283
  : undefined,
3260
- OutboundIp: smithy_client_1.expectString(output.outboundIp),
3284
+ OutboundIp: (0, smithy_client_1.expectString)(output.outboundIp),
3261
3285
  };
3262
3286
  };
3263
3287
  const deserializeAws_restJson1EncodingParameters = (output, context) => {
3264
3288
  return {
3265
- CompressionFactor: smithy_client_1.limitedParseDouble(output.compressionFactor),
3266
- EncoderProfile: smithy_client_1.expectString(output.encoderProfile),
3289
+ CompressionFactor: (0, smithy_client_1.limitedParseDouble)(output.compressionFactor),
3290
+ EncoderProfile: (0, smithy_client_1.expectString)(output.encoderProfile),
3267
3291
  };
3268
3292
  };
3269
3293
  const deserializeAws_restJson1Encryption = (output, context) => {
3270
3294
  return {
3271
- Algorithm: smithy_client_1.expectString(output.algorithm),
3272
- ConstantInitializationVector: smithy_client_1.expectString(output.constantInitializationVector),
3273
- DeviceId: smithy_client_1.expectString(output.deviceId),
3274
- KeyType: smithy_client_1.expectString(output.keyType),
3275
- Region: smithy_client_1.expectString(output.region),
3276
- ResourceId: smithy_client_1.expectString(output.resourceId),
3277
- RoleArn: smithy_client_1.expectString(output.roleArn),
3278
- SecretArn: smithy_client_1.expectString(output.secretArn),
3279
- Url: smithy_client_1.expectString(output.url),
3295
+ Algorithm: (0, smithy_client_1.expectString)(output.algorithm),
3296
+ ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
3297
+ DeviceId: (0, smithy_client_1.expectString)(output.deviceId),
3298
+ KeyType: (0, smithy_client_1.expectString)(output.keyType),
3299
+ Region: (0, smithy_client_1.expectString)(output.region),
3300
+ ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
3301
+ RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
3302
+ SecretArn: (0, smithy_client_1.expectString)(output.secretArn),
3303
+ Url: (0, smithy_client_1.expectString)(output.url),
3280
3304
  };
3281
3305
  };
3282
3306
  const deserializeAws_restJson1Entitlement = (output, context) => {
3283
3307
  return {
3284
- DataTransferSubscriberFeePercent: smithy_client_1.expectInt32(output.dataTransferSubscriberFeePercent),
3285
- Description: smithy_client_1.expectString(output.description),
3308
+ DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3309
+ Description: (0, smithy_client_1.expectString)(output.description),
3286
3310
  Encryption: output.encryption !== undefined && output.encryption !== null
3287
3311
  ? deserializeAws_restJson1Encryption(output.encryption, context)
3288
3312
  : undefined,
3289
- EntitlementArn: smithy_client_1.expectString(output.entitlementArn),
3290
- EntitlementStatus: smithy_client_1.expectString(output.entitlementStatus),
3291
- Name: smithy_client_1.expectString(output.name),
3313
+ EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3314
+ EntitlementStatus: (0, smithy_client_1.expectString)(output.entitlementStatus),
3315
+ Name: (0, smithy_client_1.expectString)(output.name),
3292
3316
  Subscribers: output.subscribers !== undefined && output.subscribers !== null
3293
3317
  ? deserializeAws_restJson1__listOf__string(output.subscribers, context)
3294
3318
  : undefined,
@@ -3296,27 +3320,30 @@ const deserializeAws_restJson1Entitlement = (output, context) => {
3296
3320
  };
3297
3321
  const deserializeAws_restJson1FailoverConfig = (output, context) => {
3298
3322
  return {
3299
- FailoverMode: smithy_client_1.expectString(output.failoverMode),
3300
- RecoveryWindow: smithy_client_1.expectInt32(output.recoveryWindow),
3323
+ FailoverMode: (0, smithy_client_1.expectString)(output.failoverMode),
3324
+ RecoveryWindow: (0, smithy_client_1.expectInt32)(output.recoveryWindow),
3301
3325
  SourcePriority: output.sourcePriority !== undefined && output.sourcePriority !== null
3302
3326
  ? deserializeAws_restJson1SourcePriority(output.sourcePriority, context)
3303
3327
  : undefined,
3304
- State: smithy_client_1.expectString(output.state),
3328
+ State: (0, smithy_client_1.expectString)(output.state),
3305
3329
  };
3306
3330
  };
3307
3331
  const deserializeAws_restJson1Flow = (output, context) => {
3308
3332
  return {
3309
- AvailabilityZone: smithy_client_1.expectString(output.availabilityZone),
3310
- Description: smithy_client_1.expectString(output.description),
3311
- EgressIp: smithy_client_1.expectString(output.egressIp),
3333
+ AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
3334
+ Description: (0, smithy_client_1.expectString)(output.description),
3335
+ EgressIp: (0, smithy_client_1.expectString)(output.egressIp),
3312
3336
  Entitlements: output.entitlements !== undefined && output.entitlements !== null
3313
3337
  ? deserializeAws_restJson1__listOfEntitlement(output.entitlements, context)
3314
3338
  : undefined,
3315
- FlowArn: smithy_client_1.expectString(output.flowArn),
3339
+ FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
3340
+ Maintenance: output.maintenance !== undefined && output.maintenance !== null
3341
+ ? deserializeAws_restJson1Maintenance(output.maintenance, context)
3342
+ : undefined,
3316
3343
  MediaStreams: output.mediaStreams !== undefined && output.mediaStreams !== null
3317
3344
  ? deserializeAws_restJson1__listOfMediaStream(output.mediaStreams, context)
3318
3345
  : undefined,
3319
- Name: smithy_client_1.expectString(output.name),
3346
+ Name: (0, smithy_client_1.expectString)(output.name),
3320
3347
  Outputs: output.outputs !== undefined && output.outputs !== null
3321
3348
  ? deserializeAws_restJson1__listOfOutput(output.outputs, context)
3322
3349
  : undefined,
@@ -3329,7 +3356,7 @@ const deserializeAws_restJson1Flow = (output, context) => {
3329
3356
  Sources: output.sources !== undefined && output.sources !== null
3330
3357
  ? deserializeAws_restJson1__listOfSource(output.sources, context)
3331
3358
  : undefined,
3332
- Status: smithy_client_1.expectString(output.status),
3359
+ Status: (0, smithy_client_1.expectString)(output.status),
3333
3360
  VpcInterfaces: output.vpcInterfaces !== undefined && output.vpcInterfaces !== null
3334
3361
  ? deserializeAws_restJson1__listOfVpcInterface(output.vpcInterfaces, context)
3335
3362
  : undefined,
@@ -3337,19 +3364,19 @@ const deserializeAws_restJson1Flow = (output, context) => {
3337
3364
  };
3338
3365
  const deserializeAws_restJson1Fmtp = (output, context) => {
3339
3366
  return {
3340
- ChannelOrder: smithy_client_1.expectString(output.channelOrder),
3341
- Colorimetry: smithy_client_1.expectString(output.colorimetry),
3342
- ExactFramerate: smithy_client_1.expectString(output.exactFramerate),
3343
- Par: smithy_client_1.expectString(output.par),
3344
- Range: smithy_client_1.expectString(output.range),
3345
- ScanMode: smithy_client_1.expectString(output.scanMode),
3346
- Tcs: smithy_client_1.expectString(output.tcs),
3367
+ ChannelOrder: (0, smithy_client_1.expectString)(output.channelOrder),
3368
+ Colorimetry: (0, smithy_client_1.expectString)(output.colorimetry),
3369
+ ExactFramerate: (0, smithy_client_1.expectString)(output.exactFramerate),
3370
+ Par: (0, smithy_client_1.expectString)(output.par),
3371
+ Range: (0, smithy_client_1.expectString)(output.range),
3372
+ ScanMode: (0, smithy_client_1.expectString)(output.scanMode),
3373
+ Tcs: (0, smithy_client_1.expectString)(output.tcs),
3347
3374
  };
3348
3375
  };
3349
3376
  const deserializeAws_restJson1InputConfiguration = (output, context) => {
3350
3377
  return {
3351
- InputIp: smithy_client_1.expectString(output.inputIp),
3352
- InputPort: smithy_client_1.expectInt32(output.inputPort),
3378
+ InputIp: (0, smithy_client_1.expectString)(output.inputIp),
3379
+ InputPort: (0, smithy_client_1.expectInt32)(output.inputPort),
3353
3380
  Interface: output.interface !== undefined && output.interface !== null
3354
3381
  ? deserializeAws_restJson1Interface(output.interface, context)
3355
3382
  : undefined,
@@ -3357,24 +3384,35 @@ const deserializeAws_restJson1InputConfiguration = (output, context) => {
3357
3384
  };
3358
3385
  const deserializeAws_restJson1Interface = (output, context) => {
3359
3386
  return {
3360
- Name: smithy_client_1.expectString(output.name),
3387
+ Name: (0, smithy_client_1.expectString)(output.name),
3361
3388
  };
3362
3389
  };
3363
3390
  const deserializeAws_restJson1ListedEntitlement = (output, context) => {
3364
3391
  return {
3365
- DataTransferSubscriberFeePercent: smithy_client_1.expectInt32(output.dataTransferSubscriberFeePercent),
3366
- EntitlementArn: smithy_client_1.expectString(output.entitlementArn),
3367
- EntitlementName: smithy_client_1.expectString(output.entitlementName),
3392
+ DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3393
+ EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3394
+ EntitlementName: (0, smithy_client_1.expectString)(output.entitlementName),
3368
3395
  };
3369
3396
  };
3370
3397
  const deserializeAws_restJson1ListedFlow = (output, context) => {
3371
3398
  return {
3372
- AvailabilityZone: smithy_client_1.expectString(output.availabilityZone),
3373
- Description: smithy_client_1.expectString(output.description),
3374
- FlowArn: smithy_client_1.expectString(output.flowArn),
3375
- Name: smithy_client_1.expectString(output.name),
3376
- SourceType: smithy_client_1.expectString(output.sourceType),
3377
- Status: smithy_client_1.expectString(output.status),
3399
+ AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
3400
+ Description: (0, smithy_client_1.expectString)(output.description),
3401
+ FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
3402
+ Maintenance: output.maintenance !== undefined && output.maintenance !== null
3403
+ ? deserializeAws_restJson1Maintenance(output.maintenance, context)
3404
+ : undefined,
3405
+ Name: (0, smithy_client_1.expectString)(output.name),
3406
+ SourceType: (0, smithy_client_1.expectString)(output.sourceType),
3407
+ Status: (0, smithy_client_1.expectString)(output.status),
3408
+ };
3409
+ };
3410
+ const deserializeAws_restJson1Maintenance = (output, context) => {
3411
+ return {
3412
+ MaintenanceDay: (0, smithy_client_1.expectString)(output.maintenanceDay),
3413
+ MaintenanceDeadline: (0, smithy_client_1.expectString)(output.maintenanceDeadline),
3414
+ MaintenanceScheduledDate: (0, smithy_client_1.expectString)(output.maintenanceScheduledDate),
3415
+ MaintenanceStartHour: (0, smithy_client_1.expectString)(output.maintenanceStartHour),
3378
3416
  };
3379
3417
  };
3380
3418
  const deserializeAws_restJson1MediaStream = (output, context) => {
@@ -3382,13 +3420,13 @@ const deserializeAws_restJson1MediaStream = (output, context) => {
3382
3420
  Attributes: output.attributes !== undefined && output.attributes !== null
3383
3421
  ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context)
3384
3422
  : undefined,
3385
- ClockRate: smithy_client_1.expectInt32(output.clockRate),
3386
- Description: smithy_client_1.expectString(output.description),
3387
- Fmt: smithy_client_1.expectInt32(output.fmt),
3388
- MediaStreamId: smithy_client_1.expectInt32(output.mediaStreamId),
3389
- MediaStreamName: smithy_client_1.expectString(output.mediaStreamName),
3390
- MediaStreamType: smithy_client_1.expectString(output.mediaStreamType),
3391
- VideoFormat: smithy_client_1.expectString(output.videoFormat),
3423
+ ClockRate: (0, smithy_client_1.expectInt32)(output.clockRate),
3424
+ Description: (0, smithy_client_1.expectString)(output.description),
3425
+ Fmt: (0, smithy_client_1.expectInt32)(output.fmt),
3426
+ MediaStreamId: (0, smithy_client_1.expectInt32)(output.mediaStreamId),
3427
+ MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
3428
+ MediaStreamType: (0, smithy_client_1.expectString)(output.mediaStreamType),
3429
+ VideoFormat: (0, smithy_client_1.expectString)(output.videoFormat),
3392
3430
  };
3393
3431
  };
3394
3432
  const deserializeAws_restJson1MediaStreamAttributes = (output, context) => {
@@ -3396,7 +3434,7 @@ const deserializeAws_restJson1MediaStreamAttributes = (output, context) => {
3396
3434
  Fmtp: output.fmtp !== undefined && output.fmtp !== null
3397
3435
  ? deserializeAws_restJson1Fmtp(output.fmtp, context)
3398
3436
  : undefined,
3399
- Lang: smithy_client_1.expectString(output.lang),
3437
+ Lang: (0, smithy_client_1.expectString)(output.lang),
3400
3438
  };
3401
3439
  };
3402
3440
  const deserializeAws_restJson1MediaStreamOutputConfiguration = (output, context) => {
@@ -3404,20 +3442,20 @@ const deserializeAws_restJson1MediaStreamOutputConfiguration = (output, context)
3404
3442
  DestinationConfigurations: output.destinationConfigurations !== undefined && output.destinationConfigurations !== null
3405
3443
  ? deserializeAws_restJson1__listOfDestinationConfiguration(output.destinationConfigurations, context)
3406
3444
  : undefined,
3407
- EncodingName: smithy_client_1.expectString(output.encodingName),
3445
+ EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
3408
3446
  EncodingParameters: output.encodingParameters !== undefined && output.encodingParameters !== null
3409
3447
  ? deserializeAws_restJson1EncodingParameters(output.encodingParameters, context)
3410
3448
  : undefined,
3411
- MediaStreamName: smithy_client_1.expectString(output.mediaStreamName),
3449
+ MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
3412
3450
  };
3413
3451
  };
3414
3452
  const deserializeAws_restJson1MediaStreamSourceConfiguration = (output, context) => {
3415
3453
  return {
3416
- EncodingName: smithy_client_1.expectString(output.encodingName),
3454
+ EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
3417
3455
  InputConfigurations: output.inputConfigurations !== undefined && output.inputConfigurations !== null
3418
3456
  ? deserializeAws_restJson1__listOfInputConfiguration(output.inputConfigurations, context)
3419
3457
  : undefined,
3420
- MediaStreamName: smithy_client_1.expectString(output.mediaStreamName),
3458
+ MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
3421
3459
  };
3422
3460
  };
3423
3461
  const deserializeAws_restJson1Messages = (output, context) => {
@@ -3429,13 +3467,13 @@ const deserializeAws_restJson1Messages = (output, context) => {
3429
3467
  };
3430
3468
  const deserializeAws_restJson1Offering = (output, context) => {
3431
3469
  return {
3432
- CurrencyCode: smithy_client_1.expectString(output.currencyCode),
3433
- Duration: smithy_client_1.expectInt32(output.duration),
3434
- DurationUnits: smithy_client_1.expectString(output.durationUnits),
3435
- OfferingArn: smithy_client_1.expectString(output.offeringArn),
3436
- OfferingDescription: smithy_client_1.expectString(output.offeringDescription),
3437
- PricePerUnit: smithy_client_1.expectString(output.pricePerUnit),
3438
- PriceUnits: smithy_client_1.expectString(output.priceUnits),
3470
+ CurrencyCode: (0, smithy_client_1.expectString)(output.currencyCode),
3471
+ Duration: (0, smithy_client_1.expectInt32)(output.duration),
3472
+ DurationUnits: (0, smithy_client_1.expectString)(output.durationUnits),
3473
+ OfferingArn: (0, smithy_client_1.expectString)(output.offeringArn),
3474
+ OfferingDescription: (0, smithy_client_1.expectString)(output.offeringDescription),
3475
+ PricePerUnit: (0, smithy_client_1.expectString)(output.pricePerUnit),
3476
+ PriceUnits: (0, smithy_client_1.expectString)(output.priceUnits),
3439
3477
  ResourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
3440
3478
  ? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
3441
3479
  : undefined,
@@ -3443,21 +3481,21 @@ const deserializeAws_restJson1Offering = (output, context) => {
3443
3481
  };
3444
3482
  const deserializeAws_restJson1Output = (output, context) => {
3445
3483
  return {
3446
- DataTransferSubscriberFeePercent: smithy_client_1.expectInt32(output.dataTransferSubscriberFeePercent),
3447
- Description: smithy_client_1.expectString(output.description),
3448
- Destination: smithy_client_1.expectString(output.destination),
3484
+ DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3485
+ Description: (0, smithy_client_1.expectString)(output.description),
3486
+ Destination: (0, smithy_client_1.expectString)(output.destination),
3449
3487
  Encryption: output.encryption !== undefined && output.encryption !== null
3450
3488
  ? deserializeAws_restJson1Encryption(output.encryption, context)
3451
3489
  : undefined,
3452
- EntitlementArn: smithy_client_1.expectString(output.entitlementArn),
3453
- ListenerAddress: smithy_client_1.expectString(output.listenerAddress),
3454
- MediaLiveInputArn: smithy_client_1.expectString(output.mediaLiveInputArn),
3490
+ EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3491
+ ListenerAddress: (0, smithy_client_1.expectString)(output.listenerAddress),
3492
+ MediaLiveInputArn: (0, smithy_client_1.expectString)(output.mediaLiveInputArn),
3455
3493
  MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations !== undefined && output.mediaStreamOutputConfigurations !== null
3456
3494
  ? deserializeAws_restJson1__listOfMediaStreamOutputConfiguration(output.mediaStreamOutputConfigurations, context)
3457
3495
  : undefined,
3458
- Name: smithy_client_1.expectString(output.name),
3459
- OutputArn: smithy_client_1.expectString(output.outputArn),
3460
- Port: smithy_client_1.expectInt32(output.port),
3496
+ Name: (0, smithy_client_1.expectString)(output.name),
3497
+ OutputArn: (0, smithy_client_1.expectString)(output.outputArn),
3498
+ Port: (0, smithy_client_1.expectInt32)(output.port),
3461
3499
  Transport: output.transport !== undefined && output.transport !== null
3462
3500
  ? deserializeAws_restJson1Transport(output.transport, context)
3463
3501
  : undefined,
@@ -3468,56 +3506,56 @@ const deserializeAws_restJson1Output = (output, context) => {
3468
3506
  };
3469
3507
  const deserializeAws_restJson1Reservation = (output, context) => {
3470
3508
  return {
3471
- CurrencyCode: smithy_client_1.expectString(output.currencyCode),
3472
- Duration: smithy_client_1.expectInt32(output.duration),
3473
- DurationUnits: smithy_client_1.expectString(output.durationUnits),
3474
- End: smithy_client_1.expectString(output.end),
3475
- OfferingArn: smithy_client_1.expectString(output.offeringArn),
3476
- OfferingDescription: smithy_client_1.expectString(output.offeringDescription),
3477
- PricePerUnit: smithy_client_1.expectString(output.pricePerUnit),
3478
- PriceUnits: smithy_client_1.expectString(output.priceUnits),
3479
- ReservationArn: smithy_client_1.expectString(output.reservationArn),
3480
- ReservationName: smithy_client_1.expectString(output.reservationName),
3481
- ReservationState: smithy_client_1.expectString(output.reservationState),
3509
+ CurrencyCode: (0, smithy_client_1.expectString)(output.currencyCode),
3510
+ Duration: (0, smithy_client_1.expectInt32)(output.duration),
3511
+ DurationUnits: (0, smithy_client_1.expectString)(output.durationUnits),
3512
+ End: (0, smithy_client_1.expectString)(output.end),
3513
+ OfferingArn: (0, smithy_client_1.expectString)(output.offeringArn),
3514
+ OfferingDescription: (0, smithy_client_1.expectString)(output.offeringDescription),
3515
+ PricePerUnit: (0, smithy_client_1.expectString)(output.pricePerUnit),
3516
+ PriceUnits: (0, smithy_client_1.expectString)(output.priceUnits),
3517
+ ReservationArn: (0, smithy_client_1.expectString)(output.reservationArn),
3518
+ ReservationName: (0, smithy_client_1.expectString)(output.reservationName),
3519
+ ReservationState: (0, smithy_client_1.expectString)(output.reservationState),
3482
3520
  ResourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
3483
3521
  ? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
3484
3522
  : undefined,
3485
- Start: smithy_client_1.expectString(output.start),
3523
+ Start: (0, smithy_client_1.expectString)(output.start),
3486
3524
  };
3487
3525
  };
3488
3526
  const deserializeAws_restJson1ResourceSpecification = (output, context) => {
3489
3527
  return {
3490
- ReservedBitrate: smithy_client_1.expectInt32(output.reservedBitrate),
3491
- ResourceType: smithy_client_1.expectString(output.resourceType),
3528
+ ReservedBitrate: (0, smithy_client_1.expectInt32)(output.reservedBitrate),
3529
+ ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
3492
3530
  };
3493
3531
  };
3494
3532
  const deserializeAws_restJson1Source = (output, context) => {
3495
3533
  return {
3496
- DataTransferSubscriberFeePercent: smithy_client_1.expectInt32(output.dataTransferSubscriberFeePercent),
3534
+ DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3497
3535
  Decryption: output.decryption !== undefined && output.decryption !== null
3498
3536
  ? deserializeAws_restJson1Encryption(output.decryption, context)
3499
3537
  : undefined,
3500
- Description: smithy_client_1.expectString(output.description),
3501
- EntitlementArn: smithy_client_1.expectString(output.entitlementArn),
3502
- IngestIp: smithy_client_1.expectString(output.ingestIp),
3503
- IngestPort: smithy_client_1.expectInt32(output.ingestPort),
3538
+ Description: (0, smithy_client_1.expectString)(output.description),
3539
+ EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3540
+ IngestIp: (0, smithy_client_1.expectString)(output.ingestIp),
3541
+ IngestPort: (0, smithy_client_1.expectInt32)(output.ingestPort),
3504
3542
  MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations !== undefined && output.mediaStreamSourceConfigurations !== null
3505
3543
  ? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
3506
3544
  : undefined,
3507
- Name: smithy_client_1.expectString(output.name),
3508
- SenderControlPort: smithy_client_1.expectInt32(output.senderControlPort),
3509
- SenderIpAddress: smithy_client_1.expectString(output.senderIpAddress),
3510
- SourceArn: smithy_client_1.expectString(output.sourceArn),
3545
+ Name: (0, smithy_client_1.expectString)(output.name),
3546
+ SenderControlPort: (0, smithy_client_1.expectInt32)(output.senderControlPort),
3547
+ SenderIpAddress: (0, smithy_client_1.expectString)(output.senderIpAddress),
3548
+ SourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
3511
3549
  Transport: output.transport !== undefined && output.transport !== null
3512
3550
  ? deserializeAws_restJson1Transport(output.transport, context)
3513
3551
  : undefined,
3514
- VpcInterfaceName: smithy_client_1.expectString(output.vpcInterfaceName),
3515
- WhitelistCidr: smithy_client_1.expectString(output.whitelistCidr),
3552
+ VpcInterfaceName: (0, smithy_client_1.expectString)(output.vpcInterfaceName),
3553
+ WhitelistCidr: (0, smithy_client_1.expectString)(output.whitelistCidr),
3516
3554
  };
3517
3555
  };
3518
3556
  const deserializeAws_restJson1SourcePriority = (output, context) => {
3519
3557
  return {
3520
- PrimarySource: smithy_client_1.expectString(output.primarySource),
3558
+ PrimarySource: (0, smithy_client_1.expectString)(output.primarySource),
3521
3559
  };
3522
3560
  };
3523
3561
  const deserializeAws_restJson1Transport = (output, context) => {
@@ -3525,35 +3563,35 @@ const deserializeAws_restJson1Transport = (output, context) => {
3525
3563
  CidrAllowList: output.cidrAllowList !== undefined && output.cidrAllowList !== null
3526
3564
  ? deserializeAws_restJson1__listOf__string(output.cidrAllowList, context)
3527
3565
  : undefined,
3528
- MaxBitrate: smithy_client_1.expectInt32(output.maxBitrate),
3529
- MaxLatency: smithy_client_1.expectInt32(output.maxLatency),
3530
- MaxSyncBuffer: smithy_client_1.expectInt32(output.maxSyncBuffer),
3531
- MinLatency: smithy_client_1.expectInt32(output.minLatency),
3532
- Protocol: smithy_client_1.expectString(output.protocol),
3533
- RemoteId: smithy_client_1.expectString(output.remoteId),
3534
- SenderControlPort: smithy_client_1.expectInt32(output.senderControlPort),
3535
- SenderIpAddress: smithy_client_1.expectString(output.senderIpAddress),
3536
- SmoothingLatency: smithy_client_1.expectInt32(output.smoothingLatency),
3537
- StreamId: smithy_client_1.expectString(output.streamId),
3566
+ MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
3567
+ MaxLatency: (0, smithy_client_1.expectInt32)(output.maxLatency),
3568
+ MaxSyncBuffer: (0, smithy_client_1.expectInt32)(output.maxSyncBuffer),
3569
+ MinLatency: (0, smithy_client_1.expectInt32)(output.minLatency),
3570
+ Protocol: (0, smithy_client_1.expectString)(output.protocol),
3571
+ RemoteId: (0, smithy_client_1.expectString)(output.remoteId),
3572
+ SenderControlPort: (0, smithy_client_1.expectInt32)(output.senderControlPort),
3573
+ SenderIpAddress: (0, smithy_client_1.expectString)(output.senderIpAddress),
3574
+ SmoothingLatency: (0, smithy_client_1.expectInt32)(output.smoothingLatency),
3575
+ StreamId: (0, smithy_client_1.expectString)(output.streamId),
3538
3576
  };
3539
3577
  };
3540
3578
  const deserializeAws_restJson1VpcInterface = (output, context) => {
3541
3579
  return {
3542
- Name: smithy_client_1.expectString(output.name),
3580
+ Name: (0, smithy_client_1.expectString)(output.name),
3543
3581
  NetworkInterfaceIds: output.networkInterfaceIds !== undefined && output.networkInterfaceIds !== null
3544
3582
  ? deserializeAws_restJson1__listOf__string(output.networkInterfaceIds, context)
3545
3583
  : undefined,
3546
- NetworkInterfaceType: smithy_client_1.expectString(output.networkInterfaceType),
3547
- RoleArn: smithy_client_1.expectString(output.roleArn),
3584
+ NetworkInterfaceType: (0, smithy_client_1.expectString)(output.networkInterfaceType),
3585
+ RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
3548
3586
  SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
3549
3587
  ? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
3550
3588
  : undefined,
3551
- SubnetId: smithy_client_1.expectString(output.subnetId),
3589
+ SubnetId: (0, smithy_client_1.expectString)(output.subnetId),
3552
3590
  };
3553
3591
  };
3554
3592
  const deserializeAws_restJson1VpcInterfaceAttachment = (output, context) => {
3555
3593
  return {
3556
- VpcInterfaceName: smithy_client_1.expectString(output.vpcInterfaceName),
3594
+ VpcInterfaceName: (0, smithy_client_1.expectString)(output.vpcInterfaceName),
3557
3595
  };
3558
3596
  };
3559
3597
  const deserializeMetadata = (output) => {