@aws-sdk/client-mediaconnect 3.313.0 → 3.315.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.
@@ -14,9 +14,9 @@ const se_AddBridgeOutputsCommand = async (input, context) => {
14
14
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/outputs";
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
16
16
  let body;
17
- body = JSON.stringify({
18
- ...(input.Outputs != null && { outputs: se___listOfAddBridgeOutputRequest(input.Outputs, context) }),
19
- });
17
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
18
+ outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
19
+ }));
20
20
  return new protocol_http_1.HttpRequest({
21
21
  protocol,
22
22
  hostname,
@@ -36,9 +36,9 @@ const se_AddBridgeSourcesCommand = async (input, context) => {
36
36
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/sources";
37
37
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
38
38
  let body;
39
- body = JSON.stringify({
40
- ...(input.Sources != null && { sources: se___listOfAddBridgeSourceRequest(input.Sources, context) }),
41
- });
39
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
40
+ sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
41
+ }));
42
42
  return new protocol_http_1.HttpRequest({
43
43
  protocol,
44
44
  hostname,
@@ -58,9 +58,9 @@ const se_AddFlowMediaStreamsCommand = async (input, context) => {
58
58
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/mediaStreams";
59
59
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
60
60
  let body;
61
- body = JSON.stringify({
62
- ...(input.MediaStreams != null && { mediaStreams: se___listOfAddMediaStreamRequest(input.MediaStreams, context) }),
63
- });
61
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
62
+ mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
63
+ }));
64
64
  return new protocol_http_1.HttpRequest({
65
65
  protocol,
66
66
  hostname,
@@ -80,9 +80,9 @@ const se_AddFlowOutputsCommand = async (input, context) => {
80
80
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs";
81
81
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
82
82
  let body;
83
- body = JSON.stringify({
84
- ...(input.Outputs != null && { outputs: se___listOfAddOutputRequest(input.Outputs, context) }),
85
- });
83
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
84
+ outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
85
+ }));
86
86
  return new protocol_http_1.HttpRequest({
87
87
  protocol,
88
88
  hostname,
@@ -102,9 +102,9 @@ const se_AddFlowSourcesCommand = async (input, context) => {
102
102
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source";
103
103
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
104
104
  let body;
105
- body = JSON.stringify({
106
- ...(input.Sources != null && { sources: se___listOfSetSourceRequest(input.Sources, context) }),
107
- });
105
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
106
+ sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
107
+ }));
108
108
  return new protocol_http_1.HttpRequest({
109
109
  protocol,
110
110
  hostname,
@@ -124,9 +124,9 @@ const se_AddFlowVpcInterfacesCommand = async (input, context) => {
124
124
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/vpcInterfaces";
125
125
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
126
126
  let body;
127
- body = JSON.stringify({
128
- ...(input.VpcInterfaces != null && { vpcInterfaces: se___listOfVpcInterfaceRequest(input.VpcInterfaces, context) }),
129
- });
127
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
128
+ vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
129
+ }));
130
130
  return new protocol_http_1.HttpRequest({
131
131
  protocol,
132
132
  hostname,
@@ -145,21 +145,15 @@ const se_CreateBridgeCommand = async (input, context) => {
145
145
  };
146
146
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
147
147
  let body;
148
- body = JSON.stringify({
149
- ...(input.EgressGatewayBridge != null && {
150
- egressGatewayBridge: se_AddEgressGatewayBridgeRequest(input.EgressGatewayBridge, context),
151
- }),
152
- ...(input.IngressGatewayBridge != null && {
153
- ingressGatewayBridge: se_AddIngressGatewayBridgeRequest(input.IngressGatewayBridge, context),
154
- }),
155
- ...(input.Name != null && { name: input.Name }),
156
- ...(input.Outputs != null && { outputs: se___listOfAddBridgeOutputRequest(input.Outputs, context) }),
157
- ...(input.PlacementArn != null && { placementArn: input.PlacementArn }),
158
- ...(input.SourceFailoverConfig != null && {
159
- sourceFailoverConfig: se_FailoverConfig(input.SourceFailoverConfig, context),
160
- }),
161
- ...(input.Sources != null && { sources: se___listOfAddBridgeSourceRequest(input.Sources, context) }),
162
- });
148
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
149
+ egressGatewayBridge: [, (_) => se_AddEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
150
+ ingressGatewayBridge: [, (_) => se_AddIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
151
+ name: [, , `Name`],
152
+ outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
153
+ placementArn: [, , `PlacementArn`],
154
+ sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
155
+ sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
156
+ }));
163
157
  return new protocol_http_1.HttpRequest({
164
158
  protocol,
165
159
  hostname,
@@ -178,22 +172,18 @@ const se_CreateFlowCommand = async (input, context) => {
178
172
  };
179
173
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
180
174
  let body;
181
- body = JSON.stringify({
182
- ...(input.AvailabilityZone != null && { availabilityZone: input.AvailabilityZone }),
183
- ...(input.Entitlements != null && {
184
- entitlements: se___listOfGrantEntitlementRequest(input.Entitlements, context),
185
- }),
186
- ...(input.Maintenance != null && { maintenance: se_AddMaintenance(input.Maintenance, context) }),
187
- ...(input.MediaStreams != null && { mediaStreams: se___listOfAddMediaStreamRequest(input.MediaStreams, context) }),
188
- ...(input.Name != null && { name: input.Name }),
189
- ...(input.Outputs != null && { outputs: se___listOfAddOutputRequest(input.Outputs, context) }),
190
- ...(input.Source != null && { source: se_SetSourceRequest(input.Source, context) }),
191
- ...(input.SourceFailoverConfig != null && {
192
- sourceFailoverConfig: se_FailoverConfig(input.SourceFailoverConfig, context),
193
- }),
194
- ...(input.Sources != null && { sources: se___listOfSetSourceRequest(input.Sources, context) }),
195
- ...(input.VpcInterfaces != null && { vpcInterfaces: se___listOfVpcInterfaceRequest(input.VpcInterfaces, context) }),
196
- });
175
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
176
+ availabilityZone: [, , `AvailabilityZone`],
177
+ entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
178
+ maintenance: [, (_) => se_AddMaintenance(_, context), `Maintenance`],
179
+ mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
180
+ name: [, , `Name`],
181
+ outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
182
+ source: [, (_) => se_SetSourceRequest(_, context), `Source`],
183
+ sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
184
+ sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
185
+ vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
186
+ }));
197
187
  return new protocol_http_1.HttpRequest({
198
188
  protocol,
199
189
  hostname,
@@ -212,11 +202,11 @@ const se_CreateGatewayCommand = async (input, context) => {
212
202
  };
213
203
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
214
204
  let body;
215
- body = JSON.stringify({
216
- ...(input.EgressCidrBlocks != null && { egressCidrBlocks: se___listOf__string(input.EgressCidrBlocks, context) }),
217
- ...(input.Name != null && { name: input.Name }),
218
- ...(input.Networks != null && { networks: se___listOfGatewayNetwork(input.Networks, context) }),
219
- });
205
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
206
+ egressCidrBlocks: [, (_) => (0, smithy_client_1._json)(_), `EgressCidrBlocks`],
207
+ name: [, , `Name`],
208
+ networks: [, (_) => se___listOfGatewayNetwork(_, context), `Networks`],
209
+ }));
220
210
  return new protocol_http_1.HttpRequest({
221
211
  protocol,
222
212
  hostname,
@@ -285,7 +275,7 @@ const se_DeregisterGatewayInstanceCommand = async (input, context) => {
285
275
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
286
276
  "/v1/gateway-instances/{GatewayInstanceArn}";
287
277
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
288
- const query = map({
278
+ const query = (0, smithy_client_1.map)({
289
279
  force: [() => input.Force !== void 0, () => input.Force.toString()],
290
280
  });
291
281
  let body;
@@ -412,11 +402,9 @@ const se_GrantFlowEntitlementsCommand = async (input, context) => {
412
402
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/entitlements";
413
403
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
414
404
  let body;
415
- body = JSON.stringify({
416
- ...(input.Entitlements != null && {
417
- entitlements: se___listOfGrantEntitlementRequest(input.Entitlements, context),
418
- }),
419
- });
405
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
406
+ entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
407
+ }));
420
408
  return new protocol_http_1.HttpRequest({
421
409
  protocol,
422
410
  hostname,
@@ -432,7 +420,7 @@ const se_ListBridgesCommand = async (input, context) => {
432
420
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
433
421
  const headers = {};
434
422
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
435
- const query = map({
423
+ const query = (0, smithy_client_1.map)({
436
424
  filterArn: [, input.FilterArn],
437
425
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
438
426
  nextToken: [, input.NextToken],
@@ -454,7 +442,7 @@ const se_ListEntitlementsCommand = async (input, context) => {
454
442
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
455
443
  const headers = {};
456
444
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/entitlements";
457
- const query = map({
445
+ const query = (0, smithy_client_1.map)({
458
446
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
459
447
  nextToken: [, input.NextToken],
460
448
  });
@@ -475,7 +463,7 @@ const se_ListFlowsCommand = async (input, context) => {
475
463
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
464
  const headers = {};
477
465
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
478
- const query = map({
466
+ const query = (0, smithy_client_1.map)({
479
467
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
480
468
  nextToken: [, input.NextToken],
481
469
  });
@@ -496,7 +484,7 @@ const se_ListGatewayInstancesCommand = async (input, context) => {
496
484
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
497
485
  const headers = {};
498
486
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateway-instances";
499
- const query = map({
487
+ const query = (0, smithy_client_1.map)({
500
488
  filterArn: [, input.FilterArn],
501
489
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
502
490
  nextToken: [, input.NextToken],
@@ -518,7 +506,7 @@ const se_ListGatewaysCommand = async (input, context) => {
518
506
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
519
507
  const headers = {};
520
508
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
521
- const query = map({
509
+ const query = (0, smithy_client_1.map)({
522
510
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
523
511
  nextToken: [, input.NextToken],
524
512
  });
@@ -539,7 +527,7 @@ const se_ListOfferingsCommand = async (input, context) => {
539
527
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
540
528
  const headers = {};
541
529
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings";
542
- const query = map({
530
+ const query = (0, smithy_client_1.map)({
543
531
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
544
532
  nextToken: [, input.NextToken],
545
533
  });
@@ -560,7 +548,7 @@ const se_ListReservationsCommand = async (input, context) => {
560
548
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
561
549
  const headers = {};
562
550
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/reservations";
563
- const query = map({
551
+ const query = (0, smithy_client_1.map)({
564
552
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
565
553
  nextToken: [, input.NextToken],
566
554
  });
@@ -602,10 +590,10 @@ const se_PurchaseOfferingCommand = async (input, context) => {
602
590
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings/{OfferingArn}";
603
591
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
604
592
  let body;
605
- body = JSON.stringify({
606
- ...(input.ReservationName != null && { reservationName: input.ReservationName }),
607
- ...(input.Start != null && { start: input.Start }),
608
- });
593
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
594
+ reservationName: [, , `ReservationName`],
595
+ start: [, , `Start`],
596
+ }));
609
597
  return new protocol_http_1.HttpRequest({
610
598
  protocol,
611
599
  hostname,
@@ -790,9 +778,9 @@ const se_TagResourceCommand = async (input, context) => {
790
778
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
791
779
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
792
780
  let body;
793
- body = JSON.stringify({
794
- ...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
795
- });
781
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
782
+ tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
783
+ }));
796
784
  return new protocol_http_1.HttpRequest({
797
785
  protocol,
798
786
  hostname,
@@ -809,7 +797,7 @@ const se_UntagResourceCommand = async (input, context) => {
809
797
  const headers = {};
810
798
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
811
799
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
812
- const query = map({
800
+ const query = (0, smithy_client_1.map)({
813
801
  tagKeys: [
814
802
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
815
803
  () => (input.TagKeys || []).map((_entry) => _entry),
@@ -836,17 +824,11 @@ const se_UpdateBridgeCommand = async (input, context) => {
836
824
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
837
825
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
838
826
  let body;
839
- body = JSON.stringify({
840
- ...(input.EgressGatewayBridge != null && {
841
- egressGatewayBridge: se_UpdateEgressGatewayBridgeRequest(input.EgressGatewayBridge, context),
842
- }),
843
- ...(input.IngressGatewayBridge != null && {
844
- ingressGatewayBridge: se_UpdateIngressGatewayBridgeRequest(input.IngressGatewayBridge, context),
845
- }),
846
- ...(input.SourceFailoverConfig != null && {
847
- sourceFailoverConfig: se_UpdateFailoverConfig(input.SourceFailoverConfig, context),
848
- }),
849
- });
827
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
828
+ egressGatewayBridge: [, (_) => se_UpdateEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
829
+ ingressGatewayBridge: [, (_) => se_UpdateIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
830
+ sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
831
+ }));
850
832
  return new protocol_http_1.HttpRequest({
851
833
  protocol,
852
834
  hostname,
@@ -868,11 +850,9 @@ const se_UpdateBridgeOutputCommand = async (input, context) => {
868
850
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
869
851
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
870
852
  let body;
871
- body = JSON.stringify({
872
- ...(input.NetworkOutput != null && {
873
- networkOutput: se_UpdateBridgeNetworkOutputRequest(input.NetworkOutput, context),
874
- }),
875
- });
853
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
854
+ networkOutput: [, (_) => se_UpdateBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
855
+ }));
876
856
  return new protocol_http_1.HttpRequest({
877
857
  protocol,
878
858
  hostname,
@@ -894,12 +874,10 @@ const se_UpdateBridgeSourceCommand = async (input, context) => {
894
874
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
895
875
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
896
876
  let body;
897
- body = JSON.stringify({
898
- ...(input.FlowSource != null && { flowSource: se_UpdateBridgeFlowSourceRequest(input.FlowSource, context) }),
899
- ...(input.NetworkSource != null && {
900
- networkSource: se_UpdateBridgeNetworkSourceRequest(input.NetworkSource, context),
901
- }),
902
- });
877
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
878
+ flowSource: [, (_) => se_UpdateBridgeFlowSourceRequest(_, context), `FlowSource`],
879
+ networkSource: [, (_) => se_UpdateBridgeNetworkSourceRequest(_, context), `NetworkSource`],
880
+ }));
903
881
  return new protocol_http_1.HttpRequest({
904
882
  protocol,
905
883
  hostname,
@@ -919,9 +897,9 @@ const se_UpdateBridgeStateCommand = async (input, context) => {
919
897
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/state";
920
898
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
921
899
  let body;
922
- body = JSON.stringify({
923
- ...(input.DesiredState != null && { desiredState: input.DesiredState }),
924
- });
900
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
901
+ desiredState: [, , `DesiredState`],
902
+ }));
925
903
  return new protocol_http_1.HttpRequest({
926
904
  protocol,
927
905
  hostname,
@@ -941,12 +919,10 @@ const se_UpdateFlowCommand = async (input, context) => {
941
919
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
942
920
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
943
921
  let body;
944
- body = JSON.stringify({
945
- ...(input.Maintenance != null && { maintenance: se_UpdateMaintenance(input.Maintenance, context) }),
946
- ...(input.SourceFailoverConfig != null && {
947
- sourceFailoverConfig: se_UpdateFailoverConfig(input.SourceFailoverConfig, context),
948
- }),
949
- });
922
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
923
+ maintenance: [, (_) => se_UpdateMaintenance(_, context), `Maintenance`],
924
+ sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
925
+ }));
950
926
  return new protocol_http_1.HttpRequest({
951
927
  protocol,
952
928
  hostname,
@@ -968,12 +944,12 @@ const se_UpdateFlowEntitlementCommand = async (input, context) => {
968
944
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
969
945
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
970
946
  let body;
971
- body = JSON.stringify({
972
- ...(input.Description != null && { description: input.Description }),
973
- ...(input.Encryption != null && { encryption: se_UpdateEncryption(input.Encryption, context) }),
974
- ...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
975
- ...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
976
- });
947
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
948
+ description: [, , `Description`],
949
+ encryption: [, (_) => se_UpdateEncryption(_, context), `Encryption`],
950
+ entitlementStatus: [, , `EntitlementStatus`],
951
+ subscribers: [, (_) => (0, smithy_client_1._json)(_), `Subscribers`],
952
+ }));
977
953
  return new protocol_http_1.HttpRequest({
978
954
  protocol,
979
955
  hostname,
@@ -995,13 +971,13 @@ const se_UpdateFlowMediaStreamCommand = async (input, context) => {
995
971
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
996
972
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
997
973
  let body;
998
- body = JSON.stringify({
999
- ...(input.Attributes != null && { attributes: se_MediaStreamAttributesRequest(input.Attributes, context) }),
1000
- ...(input.ClockRate != null && { clockRate: input.ClockRate }),
1001
- ...(input.Description != null && { description: input.Description }),
1002
- ...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
1003
- ...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
1004
- });
974
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
975
+ attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
976
+ clockRate: [, , `ClockRate`],
977
+ description: [, , `Description`],
978
+ mediaStreamType: [, , `MediaStreamType`],
979
+ videoFormat: [, , `VideoFormat`],
980
+ }));
1005
981
  return new protocol_http_1.HttpRequest({
1006
982
  protocol,
1007
983
  hostname,
@@ -1022,27 +998,27 @@ const se_UpdateFlowOutputCommand = async (input, context) => {
1022
998
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
1023
999
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputArn", () => input.OutputArn, "{OutputArn}", false);
1024
1000
  let body;
1025
- body = JSON.stringify({
1026
- ...(input.CidrAllowList != null && { cidrAllowList: se___listOf__string(input.CidrAllowList, context) }),
1027
- ...(input.Description != null && { description: input.Description }),
1028
- ...(input.Destination != null && { destination: input.Destination }),
1029
- ...(input.Encryption != null && { encryption: se_UpdateEncryption(input.Encryption, context) }),
1030
- ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
1031
- ...(input.MediaStreamOutputConfigurations != null && {
1032
- mediaStreamOutputConfigurations: se___listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
1033
- }),
1034
- ...(input.MinLatency != null && { minLatency: input.MinLatency }),
1035
- ...(input.Port != null && { port: input.Port }),
1036
- ...(input.Protocol != null && { protocol: input.Protocol }),
1037
- ...(input.RemoteId != null && { remoteId: input.RemoteId }),
1038
- ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
1039
- ...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
1040
- ...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
1041
- ...(input.StreamId != null && { streamId: input.StreamId }),
1042
- ...(input.VpcInterfaceAttachment != null && {
1043
- vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
1044
- }),
1045
- });
1001
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1002
+ cidrAllowList: [, (_) => (0, smithy_client_1._json)(_), `CidrAllowList`],
1003
+ description: [, , `Description`],
1004
+ destination: [, , `Destination`],
1005
+ encryption: [, (_) => se_UpdateEncryption(_, context), `Encryption`],
1006
+ maxLatency: [, , `MaxLatency`],
1007
+ mediaStreamOutputConfigurations: [
1008
+ ,
1009
+ (_) => se___listOfMediaStreamOutputConfigurationRequest(_, context),
1010
+ `MediaStreamOutputConfigurations`,
1011
+ ],
1012
+ minLatency: [, , `MinLatency`],
1013
+ port: [, , `Port`],
1014
+ protocol: [, , `Protocol`],
1015
+ remoteId: [, , `RemoteId`],
1016
+ senderControlPort: [, , `SenderControlPort`],
1017
+ senderIpAddress: [, , `SenderIpAddress`],
1018
+ smoothingLatency: [, , `SmoothingLatency`],
1019
+ streamId: [, , `StreamId`],
1020
+ vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
1021
+ }));
1046
1022
  return new protocol_http_1.HttpRequest({
1047
1023
  protocol,
1048
1024
  hostname,
@@ -1063,30 +1039,30 @@ const se_UpdateFlowSourceCommand = async (input, context) => {
1063
1039
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
1064
1040
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceArn", () => input.SourceArn, "{SourceArn}", false);
1065
1041
  let body;
1066
- body = JSON.stringify({
1067
- ...(input.Decryption != null && { decryption: se_UpdateEncryption(input.Decryption, context) }),
1068
- ...(input.Description != null && { description: input.Description }),
1069
- ...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
1070
- ...(input.GatewayBridgeSource != null && {
1071
- gatewayBridgeSource: se_UpdateGatewayBridgeSourceRequest(input.GatewayBridgeSource, context),
1072
- }),
1073
- ...(input.IngestPort != null && { ingestPort: input.IngestPort }),
1074
- ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
1075
- ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
1076
- ...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
1077
- ...(input.MediaStreamSourceConfigurations != null && {
1078
- mediaStreamSourceConfigurations: se___listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
1079
- }),
1080
- ...(input.MinLatency != null && { minLatency: input.MinLatency }),
1081
- ...(input.Protocol != null && { protocol: input.Protocol }),
1082
- ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
1083
- ...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
1084
- ...(input.SourceListenerAddress != null && { sourceListenerAddress: input.SourceListenerAddress }),
1085
- ...(input.SourceListenerPort != null && { sourceListenerPort: input.SourceListenerPort }),
1086
- ...(input.StreamId != null && { streamId: input.StreamId }),
1087
- ...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
1088
- ...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
1089
- });
1042
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1043
+ decryption: [, (_) => se_UpdateEncryption(_, context), `Decryption`],
1044
+ description: [, , `Description`],
1045
+ entitlementArn: [, , `EntitlementArn`],
1046
+ gatewayBridgeSource: [, (_) => se_UpdateGatewayBridgeSourceRequest(_, context), `GatewayBridgeSource`],
1047
+ ingestPort: [, , `IngestPort`],
1048
+ maxBitrate: [, , `MaxBitrate`],
1049
+ maxLatency: [, , `MaxLatency`],
1050
+ maxSyncBuffer: [, , `MaxSyncBuffer`],
1051
+ mediaStreamSourceConfigurations: [
1052
+ ,
1053
+ (_) => se___listOfMediaStreamSourceConfigurationRequest(_, context),
1054
+ `MediaStreamSourceConfigurations`,
1055
+ ],
1056
+ minLatency: [, , `MinLatency`],
1057
+ protocol: [, , `Protocol`],
1058
+ senderControlPort: [, , `SenderControlPort`],
1059
+ senderIpAddress: [, , `SenderIpAddress`],
1060
+ sourceListenerAddress: [, , `SourceListenerAddress`],
1061
+ sourceListenerPort: [, , `SourceListenerPort`],
1062
+ streamId: [, , `StreamId`],
1063
+ vpcInterfaceName: [, , `VpcInterfaceName`],
1064
+ whitelistCidr: [, , `WhitelistCidr`],
1065
+ }));
1090
1066
  return new protocol_http_1.HttpRequest({
1091
1067
  protocol,
1092
1068
  hostname,
@@ -1107,9 +1083,9 @@ const se_UpdateGatewayInstanceCommand = async (input, context) => {
1107
1083
  "/v1/gateway-instances/{GatewayInstanceArn}";
1108
1084
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
1109
1085
  let body;
1110
- body = JSON.stringify({
1111
- ...(input.BridgePlacement != null && { bridgePlacement: input.BridgePlacement }),
1112
- });
1086
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1087
+ bridgePlacement: [, , `BridgePlacement`],
1088
+ }));
1113
1089
  return new protocol_http_1.HttpRequest({
1114
1090
  protocol,
1115
1091
  hostname,
@@ -1125,16 +1101,15 @@ const de_AddBridgeOutputsCommand = async (output, context) => {
1125
1101
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1126
1102
  return de_AddBridgeOutputsCommandError(output, context);
1127
1103
  }
1128
- const contents = map({
1104
+ const contents = (0, smithy_client_1.map)({
1129
1105
  $metadata: deserializeMetadata(output),
1130
1106
  });
1131
1107
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1132
- if (data.bridgeArn != null) {
1133
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
1134
- }
1135
- if (data.outputs != null) {
1136
- contents.Outputs = de___listOfBridgeOutput(data.outputs, context);
1137
- }
1108
+ const doc = (0, smithy_client_1.take)(data, {
1109
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
1110
+ Outputs: [, (_) => de___listOfBridgeOutput(_, context), `outputs`],
1111
+ });
1112
+ Object.assign(contents, doc);
1138
1113
  return contents;
1139
1114
  };
1140
1115
  exports.de_AddBridgeOutputsCommand = de_AddBridgeOutputsCommand;
@@ -1168,10 +1143,9 @@ const de_AddBridgeOutputsCommandError = async (output, context) => {
1168
1143
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1169
1144
  default:
1170
1145
  const parsedBody = parsedOutput.body;
1171
- (0, smithy_client_1.throwDefaultError)({
1146
+ return throwDefaultError({
1172
1147
  output,
1173
1148
  parsedBody,
1174
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1175
1149
  errorCode,
1176
1150
  });
1177
1151
  }
@@ -1180,16 +1154,15 @@ const de_AddBridgeSourcesCommand = async (output, context) => {
1180
1154
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1181
1155
  return de_AddBridgeSourcesCommandError(output, context);
1182
1156
  }
1183
- const contents = map({
1157
+ const contents = (0, smithy_client_1.map)({
1184
1158
  $metadata: deserializeMetadata(output),
1185
1159
  });
1186
1160
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1187
- if (data.bridgeArn != null) {
1188
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
1189
- }
1190
- if (data.sources != null) {
1191
- contents.Sources = de___listOfBridgeSource(data.sources, context);
1192
- }
1161
+ const doc = (0, smithy_client_1.take)(data, {
1162
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
1163
+ Sources: [, (_) => de___listOfBridgeSource(_, context), `sources`],
1164
+ });
1165
+ Object.assign(contents, doc);
1193
1166
  return contents;
1194
1167
  };
1195
1168
  exports.de_AddBridgeSourcesCommand = de_AddBridgeSourcesCommand;
@@ -1223,10 +1196,9 @@ const de_AddBridgeSourcesCommandError = async (output, context) => {
1223
1196
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1224
1197
  default:
1225
1198
  const parsedBody = parsedOutput.body;
1226
- (0, smithy_client_1.throwDefaultError)({
1199
+ return throwDefaultError({
1227
1200
  output,
1228
1201
  parsedBody,
1229
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1230
1202
  errorCode,
1231
1203
  });
1232
1204
  }
@@ -1235,16 +1207,15 @@ const de_AddFlowMediaStreamsCommand = async (output, context) => {
1235
1207
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1236
1208
  return de_AddFlowMediaStreamsCommandError(output, context);
1237
1209
  }
1238
- const contents = map({
1210
+ const contents = (0, smithy_client_1.map)({
1239
1211
  $metadata: deserializeMetadata(output),
1240
1212
  });
1241
1213
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1242
- if (data.flowArn != null) {
1243
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1244
- }
1245
- if (data.mediaStreams != null) {
1246
- contents.MediaStreams = de___listOfMediaStream(data.mediaStreams, context);
1247
- }
1214
+ const doc = (0, smithy_client_1.take)(data, {
1215
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
1216
+ MediaStreams: [, (_) => de___listOfMediaStream(_, context), `mediaStreams`],
1217
+ });
1218
+ Object.assign(contents, doc);
1248
1219
  return contents;
1249
1220
  };
1250
1221
  exports.de_AddFlowMediaStreamsCommand = de_AddFlowMediaStreamsCommand;
@@ -1275,10 +1246,9 @@ const de_AddFlowMediaStreamsCommandError = async (output, context) => {
1275
1246
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1276
1247
  default:
1277
1248
  const parsedBody = parsedOutput.body;
1278
- (0, smithy_client_1.throwDefaultError)({
1249
+ return throwDefaultError({
1279
1250
  output,
1280
1251
  parsedBody,
1281
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1282
1252
  errorCode,
1283
1253
  });
1284
1254
  }
@@ -1287,16 +1257,15 @@ const de_AddFlowOutputsCommand = async (output, context) => {
1287
1257
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1288
1258
  return de_AddFlowOutputsCommandError(output, context);
1289
1259
  }
1290
- const contents = map({
1260
+ const contents = (0, smithy_client_1.map)({
1291
1261
  $metadata: deserializeMetadata(output),
1292
1262
  });
1293
1263
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1294
- if (data.flowArn != null) {
1295
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1296
- }
1297
- if (data.outputs != null) {
1298
- contents.Outputs = de___listOfOutput(data.outputs, context);
1299
- }
1264
+ const doc = (0, smithy_client_1.take)(data, {
1265
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
1266
+ Outputs: [, (_) => de___listOfOutput(_, context), `outputs`],
1267
+ });
1268
+ Object.assign(contents, doc);
1300
1269
  return contents;
1301
1270
  };
1302
1271
  exports.de_AddFlowOutputsCommand = de_AddFlowOutputsCommand;
@@ -1330,10 +1299,9 @@ const de_AddFlowOutputsCommandError = async (output, context) => {
1330
1299
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1331
1300
  default:
1332
1301
  const parsedBody = parsedOutput.body;
1333
- (0, smithy_client_1.throwDefaultError)({
1302
+ return throwDefaultError({
1334
1303
  output,
1335
1304
  parsedBody,
1336
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1337
1305
  errorCode,
1338
1306
  });
1339
1307
  }
@@ -1342,16 +1310,15 @@ const de_AddFlowSourcesCommand = async (output, context) => {
1342
1310
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1343
1311
  return de_AddFlowSourcesCommandError(output, context);
1344
1312
  }
1345
- const contents = map({
1313
+ const contents = (0, smithy_client_1.map)({
1346
1314
  $metadata: deserializeMetadata(output),
1347
1315
  });
1348
1316
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1349
- if (data.flowArn != null) {
1350
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1351
- }
1352
- if (data.sources != null) {
1353
- contents.Sources = de___listOfSource(data.sources, context);
1354
- }
1317
+ const doc = (0, smithy_client_1.take)(data, {
1318
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
1319
+ Sources: [, (_) => de___listOfSource(_, context), `sources`],
1320
+ });
1321
+ Object.assign(contents, doc);
1355
1322
  return contents;
1356
1323
  };
1357
1324
  exports.de_AddFlowSourcesCommand = de_AddFlowSourcesCommand;
@@ -1382,10 +1349,9 @@ const de_AddFlowSourcesCommandError = async (output, context) => {
1382
1349
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1383
1350
  default:
1384
1351
  const parsedBody = parsedOutput.body;
1385
- (0, smithy_client_1.throwDefaultError)({
1352
+ return throwDefaultError({
1386
1353
  output,
1387
1354
  parsedBody,
1388
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1389
1355
  errorCode,
1390
1356
  });
1391
1357
  }
@@ -1394,16 +1360,15 @@ const de_AddFlowVpcInterfacesCommand = async (output, context) => {
1394
1360
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1395
1361
  return de_AddFlowVpcInterfacesCommandError(output, context);
1396
1362
  }
1397
- const contents = map({
1363
+ const contents = (0, smithy_client_1.map)({
1398
1364
  $metadata: deserializeMetadata(output),
1399
1365
  });
1400
1366
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1401
- if (data.flowArn != null) {
1402
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1403
- }
1404
- if (data.vpcInterfaces != null) {
1405
- contents.VpcInterfaces = de___listOfVpcInterface(data.vpcInterfaces, context);
1406
- }
1367
+ const doc = (0, smithy_client_1.take)(data, {
1368
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
1369
+ VpcInterfaces: [, (_) => de___listOfVpcInterface(_, context), `vpcInterfaces`],
1370
+ });
1371
+ Object.assign(contents, doc);
1407
1372
  return contents;
1408
1373
  };
1409
1374
  exports.de_AddFlowVpcInterfacesCommand = de_AddFlowVpcInterfacesCommand;
@@ -1434,10 +1399,9 @@ const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
1434
1399
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1435
1400
  default:
1436
1401
  const parsedBody = parsedOutput.body;
1437
- (0, smithy_client_1.throwDefaultError)({
1402
+ return throwDefaultError({
1438
1403
  output,
1439
1404
  parsedBody,
1440
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1441
1405
  errorCode,
1442
1406
  });
1443
1407
  }
@@ -1446,13 +1410,14 @@ const de_CreateBridgeCommand = async (output, context) => {
1446
1410
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1447
1411
  return de_CreateBridgeCommandError(output, context);
1448
1412
  }
1449
- const contents = map({
1413
+ const contents = (0, smithy_client_1.map)({
1450
1414
  $metadata: deserializeMetadata(output),
1451
1415
  });
1452
1416
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1453
- if (data.bridge != null) {
1454
- contents.Bridge = de_Bridge(data.bridge, context);
1455
- }
1417
+ const doc = (0, smithy_client_1.take)(data, {
1418
+ Bridge: [, (_) => de_Bridge(_, context), `bridge`],
1419
+ });
1420
+ Object.assign(contents, doc);
1456
1421
  return contents;
1457
1422
  };
1458
1423
  exports.de_CreateBridgeCommand = de_CreateBridgeCommand;
@@ -1486,10 +1451,9 @@ const de_CreateBridgeCommandError = async (output, context) => {
1486
1451
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1487
1452
  default:
1488
1453
  const parsedBody = parsedOutput.body;
1489
- (0, smithy_client_1.throwDefaultError)({
1454
+ return throwDefaultError({
1490
1455
  output,
1491
1456
  parsedBody,
1492
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1493
1457
  errorCode,
1494
1458
  });
1495
1459
  }
@@ -1498,13 +1462,14 @@ const de_CreateFlowCommand = async (output, context) => {
1498
1462
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1499
1463
  return de_CreateFlowCommandError(output, context);
1500
1464
  }
1501
- const contents = map({
1465
+ const contents = (0, smithy_client_1.map)({
1502
1466
  $metadata: deserializeMetadata(output),
1503
1467
  });
1504
1468
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1505
- if (data.flow != null) {
1506
- contents.Flow = de_Flow(data.flow, context);
1507
- }
1469
+ const doc = (0, smithy_client_1.take)(data, {
1470
+ Flow: [, (_) => de_Flow(_, context), `flow`],
1471
+ });
1472
+ Object.assign(contents, doc);
1508
1473
  return contents;
1509
1474
  };
1510
1475
  exports.de_CreateFlowCommand = de_CreateFlowCommand;
@@ -1535,10 +1500,9 @@ const de_CreateFlowCommandError = async (output, context) => {
1535
1500
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1536
1501
  default:
1537
1502
  const parsedBody = parsedOutput.body;
1538
- (0, smithy_client_1.throwDefaultError)({
1503
+ return throwDefaultError({
1539
1504
  output,
1540
1505
  parsedBody,
1541
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1542
1506
  errorCode,
1543
1507
  });
1544
1508
  }
@@ -1547,13 +1511,14 @@ const de_CreateGatewayCommand = async (output, context) => {
1547
1511
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1548
1512
  return de_CreateGatewayCommandError(output, context);
1549
1513
  }
1550
- const contents = map({
1514
+ const contents = (0, smithy_client_1.map)({
1551
1515
  $metadata: deserializeMetadata(output),
1552
1516
  });
1553
1517
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1554
- if (data.gateway != null) {
1555
- contents.Gateway = de_Gateway(data.gateway, context);
1556
- }
1518
+ const doc = (0, smithy_client_1.take)(data, {
1519
+ Gateway: [, (_) => de_Gateway(_, context), `gateway`],
1520
+ });
1521
+ Object.assign(contents, doc);
1557
1522
  return contents;
1558
1523
  };
1559
1524
  exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
@@ -1587,10 +1552,9 @@ const de_CreateGatewayCommandError = async (output, context) => {
1587
1552
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1588
1553
  default:
1589
1554
  const parsedBody = parsedOutput.body;
1590
- (0, smithy_client_1.throwDefaultError)({
1555
+ return throwDefaultError({
1591
1556
  output,
1592
1557
  parsedBody,
1593
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1594
1558
  errorCode,
1595
1559
  });
1596
1560
  }
@@ -1599,13 +1563,14 @@ const de_DeleteBridgeCommand = async (output, context) => {
1599
1563
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1600
1564
  return de_DeleteBridgeCommandError(output, context);
1601
1565
  }
1602
- const contents = map({
1566
+ const contents = (0, smithy_client_1.map)({
1603
1567
  $metadata: deserializeMetadata(output),
1604
1568
  });
1605
1569
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1606
- if (data.bridgeArn != null) {
1607
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
1608
- }
1570
+ const doc = (0, smithy_client_1.take)(data, {
1571
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
1572
+ });
1573
+ Object.assign(contents, doc);
1609
1574
  return contents;
1610
1575
  };
1611
1576
  exports.de_DeleteBridgeCommand = de_DeleteBridgeCommand;
@@ -1639,10 +1604,9 @@ const de_DeleteBridgeCommandError = async (output, context) => {
1639
1604
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1640
1605
  default:
1641
1606
  const parsedBody = parsedOutput.body;
1642
- (0, smithy_client_1.throwDefaultError)({
1607
+ return throwDefaultError({
1643
1608
  output,
1644
1609
  parsedBody,
1645
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1646
1610
  errorCode,
1647
1611
  });
1648
1612
  }
@@ -1651,16 +1615,15 @@ const de_DeleteFlowCommand = async (output, context) => {
1651
1615
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1652
1616
  return de_DeleteFlowCommandError(output, context);
1653
1617
  }
1654
- const contents = map({
1618
+ const contents = (0, smithy_client_1.map)({
1655
1619
  $metadata: deserializeMetadata(output),
1656
1620
  });
1657
1621
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1658
- if (data.flowArn != null) {
1659
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
1660
- }
1661
- if (data.status != null) {
1662
- contents.Status = (0, smithy_client_1.expectString)(data.status);
1663
- }
1622
+ const doc = (0, smithy_client_1.take)(data, {
1623
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
1624
+ Status: [, smithy_client_1.expectString, `status`],
1625
+ });
1626
+ Object.assign(contents, doc);
1664
1627
  return contents;
1665
1628
  };
1666
1629
  exports.de_DeleteFlowCommand = de_DeleteFlowCommand;
@@ -1691,10 +1654,9 @@ const de_DeleteFlowCommandError = async (output, context) => {
1691
1654
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1692
1655
  default:
1693
1656
  const parsedBody = parsedOutput.body;
1694
- (0, smithy_client_1.throwDefaultError)({
1657
+ return throwDefaultError({
1695
1658
  output,
1696
1659
  parsedBody,
1697
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1698
1660
  errorCode,
1699
1661
  });
1700
1662
  }
@@ -1703,13 +1665,14 @@ const de_DeleteGatewayCommand = async (output, context) => {
1703
1665
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1704
1666
  return de_DeleteGatewayCommandError(output, context);
1705
1667
  }
1706
- const contents = map({
1668
+ const contents = (0, smithy_client_1.map)({
1707
1669
  $metadata: deserializeMetadata(output),
1708
1670
  });
1709
1671
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1710
- if (data.gatewayArn != null) {
1711
- contents.GatewayArn = (0, smithy_client_1.expectString)(data.gatewayArn);
1712
- }
1672
+ const doc = (0, smithy_client_1.take)(data, {
1673
+ GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
1674
+ });
1675
+ Object.assign(contents, doc);
1713
1676
  return contents;
1714
1677
  };
1715
1678
  exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
@@ -1743,10 +1706,9 @@ const de_DeleteGatewayCommandError = async (output, context) => {
1743
1706
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1744
1707
  default:
1745
1708
  const parsedBody = parsedOutput.body;
1746
- (0, smithy_client_1.throwDefaultError)({
1709
+ return throwDefaultError({
1747
1710
  output,
1748
1711
  parsedBody,
1749
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1750
1712
  errorCode,
1751
1713
  });
1752
1714
  }
@@ -1755,16 +1717,15 @@ const de_DeregisterGatewayInstanceCommand = async (output, context) => {
1755
1717
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1756
1718
  return de_DeregisterGatewayInstanceCommandError(output, context);
1757
1719
  }
1758
- const contents = map({
1720
+ const contents = (0, smithy_client_1.map)({
1759
1721
  $metadata: deserializeMetadata(output),
1760
1722
  });
1761
1723
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1762
- if (data.gatewayInstanceArn != null) {
1763
- contents.GatewayInstanceArn = (0, smithy_client_1.expectString)(data.gatewayInstanceArn);
1764
- }
1765
- if (data.instanceState != null) {
1766
- contents.InstanceState = (0, smithy_client_1.expectString)(data.instanceState);
1767
- }
1724
+ const doc = (0, smithy_client_1.take)(data, {
1725
+ GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
1726
+ InstanceState: [, smithy_client_1.expectString, `instanceState`],
1727
+ });
1728
+ Object.assign(contents, doc);
1768
1729
  return contents;
1769
1730
  };
1770
1731
  exports.de_DeregisterGatewayInstanceCommand = de_DeregisterGatewayInstanceCommand;
@@ -1798,10 +1759,9 @@ const de_DeregisterGatewayInstanceCommandError = async (output, context) => {
1798
1759
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1799
1760
  default:
1800
1761
  const parsedBody = parsedOutput.body;
1801
- (0, smithy_client_1.throwDefaultError)({
1762
+ return throwDefaultError({
1802
1763
  output,
1803
1764
  parsedBody,
1804
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1805
1765
  errorCode,
1806
1766
  });
1807
1767
  }
@@ -1810,13 +1770,14 @@ const de_DescribeBridgeCommand = async (output, context) => {
1810
1770
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1811
1771
  return de_DescribeBridgeCommandError(output, context);
1812
1772
  }
1813
- const contents = map({
1773
+ const contents = (0, smithy_client_1.map)({
1814
1774
  $metadata: deserializeMetadata(output),
1815
1775
  });
1816
1776
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1817
- if (data.bridge != null) {
1818
- contents.Bridge = de_Bridge(data.bridge, context);
1819
- }
1777
+ const doc = (0, smithy_client_1.take)(data, {
1778
+ Bridge: [, (_) => de_Bridge(_, context), `bridge`],
1779
+ });
1780
+ Object.assign(contents, doc);
1820
1781
  return contents;
1821
1782
  };
1822
1783
  exports.de_DescribeBridgeCommand = de_DescribeBridgeCommand;
@@ -1850,10 +1811,9 @@ const de_DescribeBridgeCommandError = async (output, context) => {
1850
1811
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1851
1812
  default:
1852
1813
  const parsedBody = parsedOutput.body;
1853
- (0, smithy_client_1.throwDefaultError)({
1814
+ return throwDefaultError({
1854
1815
  output,
1855
1816
  parsedBody,
1856
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1857
1817
  errorCode,
1858
1818
  });
1859
1819
  }
@@ -1862,16 +1822,15 @@ const de_DescribeFlowCommand = async (output, context) => {
1862
1822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1863
1823
  return de_DescribeFlowCommandError(output, context);
1864
1824
  }
1865
- const contents = map({
1825
+ const contents = (0, smithy_client_1.map)({
1866
1826
  $metadata: deserializeMetadata(output),
1867
1827
  });
1868
1828
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1869
- if (data.flow != null) {
1870
- contents.Flow = de_Flow(data.flow, context);
1871
- }
1872
- if (data.messages != null) {
1873
- contents.Messages = de_Messages(data.messages, context);
1874
- }
1829
+ const doc = (0, smithy_client_1.take)(data, {
1830
+ Flow: [, (_) => de_Flow(_, context), `flow`],
1831
+ Messages: [, (_) => de_Messages(_, context), `messages`],
1832
+ });
1833
+ Object.assign(contents, doc);
1875
1834
  return contents;
1876
1835
  };
1877
1836
  exports.de_DescribeFlowCommand = de_DescribeFlowCommand;
@@ -1902,10 +1861,9 @@ const de_DescribeFlowCommandError = async (output, context) => {
1902
1861
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1903
1862
  default:
1904
1863
  const parsedBody = parsedOutput.body;
1905
- (0, smithy_client_1.throwDefaultError)({
1864
+ return throwDefaultError({
1906
1865
  output,
1907
1866
  parsedBody,
1908
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1909
1867
  errorCode,
1910
1868
  });
1911
1869
  }
@@ -1914,13 +1872,14 @@ const de_DescribeGatewayCommand = async (output, context) => {
1914
1872
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1915
1873
  return de_DescribeGatewayCommandError(output, context);
1916
1874
  }
1917
- const contents = map({
1875
+ const contents = (0, smithy_client_1.map)({
1918
1876
  $metadata: deserializeMetadata(output),
1919
1877
  });
1920
1878
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1921
- if (data.gateway != null) {
1922
- contents.Gateway = de_Gateway(data.gateway, context);
1923
- }
1879
+ const doc = (0, smithy_client_1.take)(data, {
1880
+ Gateway: [, (_) => de_Gateway(_, context), `gateway`],
1881
+ });
1882
+ Object.assign(contents, doc);
1924
1883
  return contents;
1925
1884
  };
1926
1885
  exports.de_DescribeGatewayCommand = de_DescribeGatewayCommand;
@@ -1954,10 +1913,9 @@ const de_DescribeGatewayCommandError = async (output, context) => {
1954
1913
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1955
1914
  default:
1956
1915
  const parsedBody = parsedOutput.body;
1957
- (0, smithy_client_1.throwDefaultError)({
1916
+ return throwDefaultError({
1958
1917
  output,
1959
1918
  parsedBody,
1960
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
1961
1919
  errorCode,
1962
1920
  });
1963
1921
  }
@@ -1966,13 +1924,14 @@ const de_DescribeGatewayInstanceCommand = async (output, context) => {
1966
1924
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1967
1925
  return de_DescribeGatewayInstanceCommandError(output, context);
1968
1926
  }
1969
- const contents = map({
1927
+ const contents = (0, smithy_client_1.map)({
1970
1928
  $metadata: deserializeMetadata(output),
1971
1929
  });
1972
1930
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1973
- if (data.gatewayInstance != null) {
1974
- contents.GatewayInstance = de_GatewayInstance(data.gatewayInstance, context);
1975
- }
1931
+ const doc = (0, smithy_client_1.take)(data, {
1932
+ GatewayInstance: [, (_) => de_GatewayInstance(_, context), `gatewayInstance`],
1933
+ });
1934
+ Object.assign(contents, doc);
1976
1935
  return contents;
1977
1936
  };
1978
1937
  exports.de_DescribeGatewayInstanceCommand = de_DescribeGatewayInstanceCommand;
@@ -2006,10 +1965,9 @@ const de_DescribeGatewayInstanceCommandError = async (output, context) => {
2006
1965
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2007
1966
  default:
2008
1967
  const parsedBody = parsedOutput.body;
2009
- (0, smithy_client_1.throwDefaultError)({
1968
+ return throwDefaultError({
2010
1969
  output,
2011
1970
  parsedBody,
2012
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2013
1971
  errorCode,
2014
1972
  });
2015
1973
  }
@@ -2018,13 +1976,14 @@ const de_DescribeOfferingCommand = async (output, context) => {
2018
1976
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2019
1977
  return de_DescribeOfferingCommandError(output, context);
2020
1978
  }
2021
- const contents = map({
1979
+ const contents = (0, smithy_client_1.map)({
2022
1980
  $metadata: deserializeMetadata(output),
2023
1981
  });
2024
1982
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2025
- if (data.offering != null) {
2026
- contents.Offering = de_Offering(data.offering, context);
2027
- }
1983
+ const doc = (0, smithy_client_1.take)(data, {
1984
+ Offering: [, (_) => de_Offering(_, context), `offering`],
1985
+ });
1986
+ Object.assign(contents, doc);
2028
1987
  return contents;
2029
1988
  };
2030
1989
  exports.de_DescribeOfferingCommand = de_DescribeOfferingCommand;
@@ -2052,10 +2011,9 @@ const de_DescribeOfferingCommandError = async (output, context) => {
2052
2011
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2053
2012
  default:
2054
2013
  const parsedBody = parsedOutput.body;
2055
- (0, smithy_client_1.throwDefaultError)({
2014
+ return throwDefaultError({
2056
2015
  output,
2057
2016
  parsedBody,
2058
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2059
2017
  errorCode,
2060
2018
  });
2061
2019
  }
@@ -2064,13 +2022,14 @@ const de_DescribeReservationCommand = async (output, context) => {
2064
2022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2065
2023
  return de_DescribeReservationCommandError(output, context);
2066
2024
  }
2067
- const contents = map({
2025
+ const contents = (0, smithy_client_1.map)({
2068
2026
  $metadata: deserializeMetadata(output),
2069
2027
  });
2070
2028
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2071
- if (data.reservation != null) {
2072
- contents.Reservation = de_Reservation(data.reservation, context);
2073
- }
2029
+ const doc = (0, smithy_client_1.take)(data, {
2030
+ Reservation: [, (_) => de_Reservation(_, context), `reservation`],
2031
+ });
2032
+ Object.assign(contents, doc);
2074
2033
  return contents;
2075
2034
  };
2076
2035
  exports.de_DescribeReservationCommand = de_DescribeReservationCommand;
@@ -2098,10 +2057,9 @@ const de_DescribeReservationCommandError = async (output, context) => {
2098
2057
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2099
2058
  default:
2100
2059
  const parsedBody = parsedOutput.body;
2101
- (0, smithy_client_1.throwDefaultError)({
2060
+ return throwDefaultError({
2102
2061
  output,
2103
2062
  parsedBody,
2104
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2105
2063
  errorCode,
2106
2064
  });
2107
2065
  }
@@ -2110,16 +2068,15 @@ const de_GrantFlowEntitlementsCommand = async (output, context) => {
2110
2068
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2111
2069
  return de_GrantFlowEntitlementsCommandError(output, context);
2112
2070
  }
2113
- const contents = map({
2071
+ const contents = (0, smithy_client_1.map)({
2114
2072
  $metadata: deserializeMetadata(output),
2115
2073
  });
2116
2074
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2117
- if (data.entitlements != null) {
2118
- contents.Entitlements = de___listOfEntitlement(data.entitlements, context);
2119
- }
2120
- if (data.flowArn != null) {
2121
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2122
- }
2075
+ const doc = (0, smithy_client_1.take)(data, {
2076
+ Entitlements: [, (_) => de___listOfEntitlement(_, context), `entitlements`],
2077
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2078
+ });
2079
+ Object.assign(contents, doc);
2123
2080
  return contents;
2124
2081
  };
2125
2082
  exports.de_GrantFlowEntitlementsCommand = de_GrantFlowEntitlementsCommand;
@@ -2153,10 +2110,9 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
2153
2110
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2154
2111
  default:
2155
2112
  const parsedBody = parsedOutput.body;
2156
- (0, smithy_client_1.throwDefaultError)({
2113
+ return throwDefaultError({
2157
2114
  output,
2158
2115
  parsedBody,
2159
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2160
2116
  errorCode,
2161
2117
  });
2162
2118
  }
@@ -2165,16 +2121,15 @@ const de_ListBridgesCommand = async (output, context) => {
2165
2121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2166
2122
  return de_ListBridgesCommandError(output, context);
2167
2123
  }
2168
- const contents = map({
2124
+ const contents = (0, smithy_client_1.map)({
2169
2125
  $metadata: deserializeMetadata(output),
2170
2126
  });
2171
2127
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2172
- if (data.bridges != null) {
2173
- contents.Bridges = de___listOfListedBridge(data.bridges, context);
2174
- }
2175
- if (data.nextToken != null) {
2176
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2177
- }
2128
+ const doc = (0, smithy_client_1.take)(data, {
2129
+ Bridges: [, (_) => de___listOfListedBridge(_, context), `bridges`],
2130
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2131
+ });
2132
+ Object.assign(contents, doc);
2178
2133
  return contents;
2179
2134
  };
2180
2135
  exports.de_ListBridgesCommand = de_ListBridgesCommand;
@@ -2202,10 +2157,9 @@ const de_ListBridgesCommandError = async (output, context) => {
2202
2157
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2203
2158
  default:
2204
2159
  const parsedBody = parsedOutput.body;
2205
- (0, smithy_client_1.throwDefaultError)({
2160
+ return throwDefaultError({
2206
2161
  output,
2207
2162
  parsedBody,
2208
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2209
2163
  errorCode,
2210
2164
  });
2211
2165
  }
@@ -2214,16 +2168,15 @@ const de_ListEntitlementsCommand = async (output, context) => {
2214
2168
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2215
2169
  return de_ListEntitlementsCommandError(output, context);
2216
2170
  }
2217
- const contents = map({
2171
+ const contents = (0, smithy_client_1.map)({
2218
2172
  $metadata: deserializeMetadata(output),
2219
2173
  });
2220
2174
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2221
- if (data.entitlements != null) {
2222
- contents.Entitlements = de___listOfListedEntitlement(data.entitlements, context);
2223
- }
2224
- if (data.nextToken != null) {
2225
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2226
- }
2175
+ const doc = (0, smithy_client_1.take)(data, {
2176
+ Entitlements: [, (_) => de___listOfListedEntitlement(_, context), `entitlements`],
2177
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2178
+ });
2179
+ Object.assign(contents, doc);
2227
2180
  return contents;
2228
2181
  };
2229
2182
  exports.de_ListEntitlementsCommand = de_ListEntitlementsCommand;
@@ -2248,10 +2201,9 @@ const de_ListEntitlementsCommandError = async (output, context) => {
2248
2201
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2249
2202
  default:
2250
2203
  const parsedBody = parsedOutput.body;
2251
- (0, smithy_client_1.throwDefaultError)({
2204
+ return throwDefaultError({
2252
2205
  output,
2253
2206
  parsedBody,
2254
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2255
2207
  errorCode,
2256
2208
  });
2257
2209
  }
@@ -2260,16 +2212,15 @@ const de_ListFlowsCommand = async (output, context) => {
2260
2212
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2261
2213
  return de_ListFlowsCommandError(output, context);
2262
2214
  }
2263
- const contents = map({
2215
+ const contents = (0, smithy_client_1.map)({
2264
2216
  $metadata: deserializeMetadata(output),
2265
2217
  });
2266
2218
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2267
- if (data.flows != null) {
2268
- contents.Flows = de___listOfListedFlow(data.flows, context);
2269
- }
2270
- if (data.nextToken != null) {
2271
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2272
- }
2219
+ const doc = (0, smithy_client_1.take)(data, {
2220
+ Flows: [, (_) => de___listOfListedFlow(_, context), `flows`],
2221
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2222
+ });
2223
+ Object.assign(contents, doc);
2273
2224
  return contents;
2274
2225
  };
2275
2226
  exports.de_ListFlowsCommand = de_ListFlowsCommand;
@@ -2294,10 +2245,9 @@ const de_ListFlowsCommandError = async (output, context) => {
2294
2245
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2295
2246
  default:
2296
2247
  const parsedBody = parsedOutput.body;
2297
- (0, smithy_client_1.throwDefaultError)({
2248
+ return throwDefaultError({
2298
2249
  output,
2299
2250
  parsedBody,
2300
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2301
2251
  errorCode,
2302
2252
  });
2303
2253
  }
@@ -2306,16 +2256,15 @@ const de_ListGatewayInstancesCommand = async (output, context) => {
2306
2256
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2307
2257
  return de_ListGatewayInstancesCommandError(output, context);
2308
2258
  }
2309
- const contents = map({
2259
+ const contents = (0, smithy_client_1.map)({
2310
2260
  $metadata: deserializeMetadata(output),
2311
2261
  });
2312
2262
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2313
- if (data.instances != null) {
2314
- contents.Instances = de___listOfListedGatewayInstance(data.instances, context);
2315
- }
2316
- if (data.nextToken != null) {
2317
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2318
- }
2263
+ const doc = (0, smithy_client_1.take)(data, {
2264
+ Instances: [, (_) => de___listOfListedGatewayInstance(_, context), `instances`],
2265
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2266
+ });
2267
+ Object.assign(contents, doc);
2319
2268
  return contents;
2320
2269
  };
2321
2270
  exports.de_ListGatewayInstancesCommand = de_ListGatewayInstancesCommand;
@@ -2343,10 +2292,9 @@ const de_ListGatewayInstancesCommandError = async (output, context) => {
2343
2292
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2344
2293
  default:
2345
2294
  const parsedBody = parsedOutput.body;
2346
- (0, smithy_client_1.throwDefaultError)({
2295
+ return throwDefaultError({
2347
2296
  output,
2348
2297
  parsedBody,
2349
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2350
2298
  errorCode,
2351
2299
  });
2352
2300
  }
@@ -2355,16 +2303,15 @@ const de_ListGatewaysCommand = async (output, context) => {
2355
2303
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2356
2304
  return de_ListGatewaysCommandError(output, context);
2357
2305
  }
2358
- const contents = map({
2306
+ const contents = (0, smithy_client_1.map)({
2359
2307
  $metadata: deserializeMetadata(output),
2360
2308
  });
2361
2309
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2362
- if (data.gateways != null) {
2363
- contents.Gateways = de___listOfListedGateway(data.gateways, context);
2364
- }
2365
- if (data.nextToken != null) {
2366
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2367
- }
2310
+ const doc = (0, smithy_client_1.take)(data, {
2311
+ Gateways: [, (_) => de___listOfListedGateway(_, context), `gateways`],
2312
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2313
+ });
2314
+ Object.assign(contents, doc);
2368
2315
  return contents;
2369
2316
  };
2370
2317
  exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
@@ -2392,10 +2339,9 @@ const de_ListGatewaysCommandError = async (output, context) => {
2392
2339
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2393
2340
  default:
2394
2341
  const parsedBody = parsedOutput.body;
2395
- (0, smithy_client_1.throwDefaultError)({
2342
+ return throwDefaultError({
2396
2343
  output,
2397
2344
  parsedBody,
2398
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2399
2345
  errorCode,
2400
2346
  });
2401
2347
  }
@@ -2404,16 +2350,15 @@ const de_ListOfferingsCommand = async (output, context) => {
2404
2350
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2405
2351
  return de_ListOfferingsCommandError(output, context);
2406
2352
  }
2407
- const contents = map({
2353
+ const contents = (0, smithy_client_1.map)({
2408
2354
  $metadata: deserializeMetadata(output),
2409
2355
  });
2410
2356
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2411
- if (data.nextToken != null) {
2412
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2413
- }
2414
- if (data.offerings != null) {
2415
- contents.Offerings = de___listOfOffering(data.offerings, context);
2416
- }
2357
+ const doc = (0, smithy_client_1.take)(data, {
2358
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2359
+ Offerings: [, (_) => de___listOfOffering(_, context), `offerings`],
2360
+ });
2361
+ Object.assign(contents, doc);
2417
2362
  return contents;
2418
2363
  };
2419
2364
  exports.de_ListOfferingsCommand = de_ListOfferingsCommand;
@@ -2438,10 +2383,9 @@ const de_ListOfferingsCommandError = async (output, context) => {
2438
2383
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2439
2384
  default:
2440
2385
  const parsedBody = parsedOutput.body;
2441
- (0, smithy_client_1.throwDefaultError)({
2386
+ return throwDefaultError({
2442
2387
  output,
2443
2388
  parsedBody,
2444
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2445
2389
  errorCode,
2446
2390
  });
2447
2391
  }
@@ -2450,16 +2394,15 @@ const de_ListReservationsCommand = async (output, context) => {
2450
2394
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2451
2395
  return de_ListReservationsCommandError(output, context);
2452
2396
  }
2453
- const contents = map({
2397
+ const contents = (0, smithy_client_1.map)({
2454
2398
  $metadata: deserializeMetadata(output),
2455
2399
  });
2456
2400
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2457
- if (data.nextToken != null) {
2458
- contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
2459
- }
2460
- if (data.reservations != null) {
2461
- contents.Reservations = de___listOfReservation(data.reservations, context);
2462
- }
2401
+ const doc = (0, smithy_client_1.take)(data, {
2402
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2403
+ Reservations: [, (_) => de___listOfReservation(_, context), `reservations`],
2404
+ });
2405
+ Object.assign(contents, doc);
2463
2406
  return contents;
2464
2407
  };
2465
2408
  exports.de_ListReservationsCommand = de_ListReservationsCommand;
@@ -2484,10 +2427,9 @@ const de_ListReservationsCommandError = async (output, context) => {
2484
2427
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2485
2428
  default:
2486
2429
  const parsedBody = parsedOutput.body;
2487
- (0, smithy_client_1.throwDefaultError)({
2430
+ return throwDefaultError({
2488
2431
  output,
2489
2432
  parsedBody,
2490
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2491
2433
  errorCode,
2492
2434
  });
2493
2435
  }
@@ -2496,13 +2438,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2496
2438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2497
2439
  return de_ListTagsForResourceCommandError(output, context);
2498
2440
  }
2499
- const contents = map({
2441
+ const contents = (0, smithy_client_1.map)({
2500
2442
  $metadata: deserializeMetadata(output),
2501
2443
  });
2502
2444
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2503
- if (data.tags != null) {
2504
- contents.Tags = de___mapOf__string(data.tags, context);
2505
- }
2445
+ const doc = (0, smithy_client_1.take)(data, {
2446
+ Tags: [, smithy_client_1._json, `tags`],
2447
+ });
2448
+ Object.assign(contents, doc);
2506
2449
  return contents;
2507
2450
  };
2508
2451
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -2524,10 +2467,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2524
2467
  throw await de_NotFoundExceptionRes(parsedOutput, context);
2525
2468
  default:
2526
2469
  const parsedBody = parsedOutput.body;
2527
- (0, smithy_client_1.throwDefaultError)({
2470
+ return throwDefaultError({
2528
2471
  output,
2529
2472
  parsedBody,
2530
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2531
2473
  errorCode,
2532
2474
  });
2533
2475
  }
@@ -2536,13 +2478,14 @@ const de_PurchaseOfferingCommand = async (output, context) => {
2536
2478
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2537
2479
  return de_PurchaseOfferingCommandError(output, context);
2538
2480
  }
2539
- const contents = map({
2481
+ const contents = (0, smithy_client_1.map)({
2540
2482
  $metadata: deserializeMetadata(output),
2541
2483
  });
2542
2484
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2543
- if (data.reservation != null) {
2544
- contents.Reservation = de_Reservation(data.reservation, context);
2545
- }
2485
+ const doc = (0, smithy_client_1.take)(data, {
2486
+ Reservation: [, (_) => de_Reservation(_, context), `reservation`],
2487
+ });
2488
+ Object.assign(contents, doc);
2546
2489
  return contents;
2547
2490
  };
2548
2491
  exports.de_PurchaseOfferingCommand = de_PurchaseOfferingCommand;
@@ -2573,10 +2516,9 @@ const de_PurchaseOfferingCommandError = async (output, context) => {
2573
2516
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2574
2517
  default:
2575
2518
  const parsedBody = parsedOutput.body;
2576
- (0, smithy_client_1.throwDefaultError)({
2519
+ return throwDefaultError({
2577
2520
  output,
2578
2521
  parsedBody,
2579
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2580
2522
  errorCode,
2581
2523
  });
2582
2524
  }
@@ -2585,16 +2527,15 @@ const de_RemoveBridgeOutputCommand = async (output, context) => {
2585
2527
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2586
2528
  return de_RemoveBridgeOutputCommandError(output, context);
2587
2529
  }
2588
- const contents = map({
2530
+ const contents = (0, smithy_client_1.map)({
2589
2531
  $metadata: deserializeMetadata(output),
2590
2532
  });
2591
2533
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2592
- if (data.bridgeArn != null) {
2593
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
2594
- }
2595
- if (data.outputName != null) {
2596
- contents.OutputName = (0, smithy_client_1.expectString)(data.outputName);
2597
- }
2534
+ const doc = (0, smithy_client_1.take)(data, {
2535
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2536
+ OutputName: [, smithy_client_1.expectString, `outputName`],
2537
+ });
2538
+ Object.assign(contents, doc);
2598
2539
  return contents;
2599
2540
  };
2600
2541
  exports.de_RemoveBridgeOutputCommand = de_RemoveBridgeOutputCommand;
@@ -2628,10 +2569,9 @@ const de_RemoveBridgeOutputCommandError = async (output, context) => {
2628
2569
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2629
2570
  default:
2630
2571
  const parsedBody = parsedOutput.body;
2631
- (0, smithy_client_1.throwDefaultError)({
2572
+ return throwDefaultError({
2632
2573
  output,
2633
2574
  parsedBody,
2634
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2635
2575
  errorCode,
2636
2576
  });
2637
2577
  }
@@ -2640,16 +2580,15 @@ const de_RemoveBridgeSourceCommand = async (output, context) => {
2640
2580
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2641
2581
  return de_RemoveBridgeSourceCommandError(output, context);
2642
2582
  }
2643
- const contents = map({
2583
+ const contents = (0, smithy_client_1.map)({
2644
2584
  $metadata: deserializeMetadata(output),
2645
2585
  });
2646
2586
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2647
- if (data.bridgeArn != null) {
2648
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
2649
- }
2650
- if (data.sourceName != null) {
2651
- contents.SourceName = (0, smithy_client_1.expectString)(data.sourceName);
2652
- }
2587
+ const doc = (0, smithy_client_1.take)(data, {
2588
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2589
+ SourceName: [, smithy_client_1.expectString, `sourceName`],
2590
+ });
2591
+ Object.assign(contents, doc);
2653
2592
  return contents;
2654
2593
  };
2655
2594
  exports.de_RemoveBridgeSourceCommand = de_RemoveBridgeSourceCommand;
@@ -2683,10 +2622,9 @@ const de_RemoveBridgeSourceCommandError = async (output, context) => {
2683
2622
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2684
2623
  default:
2685
2624
  const parsedBody = parsedOutput.body;
2686
- (0, smithy_client_1.throwDefaultError)({
2625
+ return throwDefaultError({
2687
2626
  output,
2688
2627
  parsedBody,
2689
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2690
2628
  errorCode,
2691
2629
  });
2692
2630
  }
@@ -2695,16 +2633,15 @@ const de_RemoveFlowMediaStreamCommand = async (output, context) => {
2695
2633
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2696
2634
  return de_RemoveFlowMediaStreamCommandError(output, context);
2697
2635
  }
2698
- const contents = map({
2636
+ const contents = (0, smithy_client_1.map)({
2699
2637
  $metadata: deserializeMetadata(output),
2700
2638
  });
2701
2639
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2702
- if (data.flowArn != null) {
2703
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2704
- }
2705
- if (data.mediaStreamName != null) {
2706
- contents.MediaStreamName = (0, smithy_client_1.expectString)(data.mediaStreamName);
2707
- }
2640
+ const doc = (0, smithy_client_1.take)(data, {
2641
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2642
+ MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
2643
+ });
2644
+ Object.assign(contents, doc);
2708
2645
  return contents;
2709
2646
  };
2710
2647
  exports.de_RemoveFlowMediaStreamCommand = de_RemoveFlowMediaStreamCommand;
@@ -2735,10 +2672,9 @@ const de_RemoveFlowMediaStreamCommandError = async (output, context) => {
2735
2672
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2736
2673
  default:
2737
2674
  const parsedBody = parsedOutput.body;
2738
- (0, smithy_client_1.throwDefaultError)({
2675
+ return throwDefaultError({
2739
2676
  output,
2740
2677
  parsedBody,
2741
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2742
2678
  errorCode,
2743
2679
  });
2744
2680
  }
@@ -2747,16 +2683,15 @@ const de_RemoveFlowOutputCommand = async (output, context) => {
2747
2683
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2748
2684
  return de_RemoveFlowOutputCommandError(output, context);
2749
2685
  }
2750
- const contents = map({
2686
+ const contents = (0, smithy_client_1.map)({
2751
2687
  $metadata: deserializeMetadata(output),
2752
2688
  });
2753
2689
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2754
- if (data.flowArn != null) {
2755
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2756
- }
2757
- if (data.outputArn != null) {
2758
- contents.OutputArn = (0, smithy_client_1.expectString)(data.outputArn);
2759
- }
2690
+ const doc = (0, smithy_client_1.take)(data, {
2691
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2692
+ OutputArn: [, smithy_client_1.expectString, `outputArn`],
2693
+ });
2694
+ Object.assign(contents, doc);
2760
2695
  return contents;
2761
2696
  };
2762
2697
  exports.de_RemoveFlowOutputCommand = de_RemoveFlowOutputCommand;
@@ -2787,10 +2722,9 @@ const de_RemoveFlowOutputCommandError = async (output, context) => {
2787
2722
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2788
2723
  default:
2789
2724
  const parsedBody = parsedOutput.body;
2790
- (0, smithy_client_1.throwDefaultError)({
2725
+ return throwDefaultError({
2791
2726
  output,
2792
2727
  parsedBody,
2793
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2794
2728
  errorCode,
2795
2729
  });
2796
2730
  }
@@ -2799,16 +2733,15 @@ const de_RemoveFlowSourceCommand = async (output, context) => {
2799
2733
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2800
2734
  return de_RemoveFlowSourceCommandError(output, context);
2801
2735
  }
2802
- const contents = map({
2736
+ const contents = (0, smithy_client_1.map)({
2803
2737
  $metadata: deserializeMetadata(output),
2804
2738
  });
2805
2739
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2806
- if (data.flowArn != null) {
2807
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2808
- }
2809
- if (data.sourceArn != null) {
2810
- contents.SourceArn = (0, smithy_client_1.expectString)(data.sourceArn);
2811
- }
2740
+ const doc = (0, smithy_client_1.take)(data, {
2741
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2742
+ SourceArn: [, smithy_client_1.expectString, `sourceArn`],
2743
+ });
2744
+ Object.assign(contents, doc);
2812
2745
  return contents;
2813
2746
  };
2814
2747
  exports.de_RemoveFlowSourceCommand = de_RemoveFlowSourceCommand;
@@ -2839,10 +2772,9 @@ const de_RemoveFlowSourceCommandError = async (output, context) => {
2839
2772
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2840
2773
  default:
2841
2774
  const parsedBody = parsedOutput.body;
2842
- (0, smithy_client_1.throwDefaultError)({
2775
+ return throwDefaultError({
2843
2776
  output,
2844
2777
  parsedBody,
2845
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2846
2778
  errorCode,
2847
2779
  });
2848
2780
  }
@@ -2851,19 +2783,16 @@ const de_RemoveFlowVpcInterfaceCommand = async (output, context) => {
2851
2783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2852
2784
  return de_RemoveFlowVpcInterfaceCommandError(output, context);
2853
2785
  }
2854
- const contents = map({
2786
+ const contents = (0, smithy_client_1.map)({
2855
2787
  $metadata: deserializeMetadata(output),
2856
2788
  });
2857
2789
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2858
- if (data.flowArn != null) {
2859
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2860
- }
2861
- if (data.nonDeletedNetworkInterfaceIds != null) {
2862
- contents.NonDeletedNetworkInterfaceIds = de___listOf__string(data.nonDeletedNetworkInterfaceIds, context);
2863
- }
2864
- if (data.vpcInterfaceName != null) {
2865
- contents.VpcInterfaceName = (0, smithy_client_1.expectString)(data.vpcInterfaceName);
2866
- }
2790
+ const doc = (0, smithy_client_1.take)(data, {
2791
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2792
+ NonDeletedNetworkInterfaceIds: [, smithy_client_1._json, `nonDeletedNetworkInterfaceIds`],
2793
+ VpcInterfaceName: [, smithy_client_1.expectString, `vpcInterfaceName`],
2794
+ });
2795
+ Object.assign(contents, doc);
2867
2796
  return contents;
2868
2797
  };
2869
2798
  exports.de_RemoveFlowVpcInterfaceCommand = de_RemoveFlowVpcInterfaceCommand;
@@ -2894,10 +2823,9 @@ const de_RemoveFlowVpcInterfaceCommandError = async (output, context) => {
2894
2823
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2895
2824
  default:
2896
2825
  const parsedBody = parsedOutput.body;
2897
- (0, smithy_client_1.throwDefaultError)({
2826
+ return throwDefaultError({
2898
2827
  output,
2899
2828
  parsedBody,
2900
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2901
2829
  errorCode,
2902
2830
  });
2903
2831
  }
@@ -2906,16 +2834,15 @@ const de_RevokeFlowEntitlementCommand = async (output, context) => {
2906
2834
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2907
2835
  return de_RevokeFlowEntitlementCommandError(output, context);
2908
2836
  }
2909
- const contents = map({
2837
+ const contents = (0, smithy_client_1.map)({
2910
2838
  $metadata: deserializeMetadata(output),
2911
2839
  });
2912
2840
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2913
- if (data.entitlementArn != null) {
2914
- contents.EntitlementArn = (0, smithy_client_1.expectString)(data.entitlementArn);
2915
- }
2916
- if (data.flowArn != null) {
2917
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2918
- }
2841
+ const doc = (0, smithy_client_1.take)(data, {
2842
+ EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
2843
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2844
+ });
2845
+ Object.assign(contents, doc);
2919
2846
  return contents;
2920
2847
  };
2921
2848
  exports.de_RevokeFlowEntitlementCommand = de_RevokeFlowEntitlementCommand;
@@ -2946,10 +2873,9 @@ const de_RevokeFlowEntitlementCommandError = async (output, context) => {
2946
2873
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2947
2874
  default:
2948
2875
  const parsedBody = parsedOutput.body;
2949
- (0, smithy_client_1.throwDefaultError)({
2876
+ return throwDefaultError({
2950
2877
  output,
2951
2878
  parsedBody,
2952
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
2953
2879
  errorCode,
2954
2880
  });
2955
2881
  }
@@ -2958,16 +2884,15 @@ const de_StartFlowCommand = async (output, context) => {
2958
2884
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2959
2885
  return de_StartFlowCommandError(output, context);
2960
2886
  }
2961
- const contents = map({
2887
+ const contents = (0, smithy_client_1.map)({
2962
2888
  $metadata: deserializeMetadata(output),
2963
2889
  });
2964
2890
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2965
- if (data.flowArn != null) {
2966
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
2967
- }
2968
- if (data.status != null) {
2969
- contents.Status = (0, smithy_client_1.expectString)(data.status);
2970
- }
2891
+ const doc = (0, smithy_client_1.take)(data, {
2892
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2893
+ Status: [, smithy_client_1.expectString, `status`],
2894
+ });
2895
+ Object.assign(contents, doc);
2971
2896
  return contents;
2972
2897
  };
2973
2898
  exports.de_StartFlowCommand = de_StartFlowCommand;
@@ -2998,10 +2923,9 @@ const de_StartFlowCommandError = async (output, context) => {
2998
2923
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2999
2924
  default:
3000
2925
  const parsedBody = parsedOutput.body;
3001
- (0, smithy_client_1.throwDefaultError)({
2926
+ return throwDefaultError({
3002
2927
  output,
3003
2928
  parsedBody,
3004
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3005
2929
  errorCode,
3006
2930
  });
3007
2931
  }
@@ -3010,16 +2934,15 @@ const de_StopFlowCommand = async (output, context) => {
3010
2934
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3011
2935
  return de_StopFlowCommandError(output, context);
3012
2936
  }
3013
- const contents = map({
2937
+ const contents = (0, smithy_client_1.map)({
3014
2938
  $metadata: deserializeMetadata(output),
3015
2939
  });
3016
2940
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3017
- if (data.flowArn != null) {
3018
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
3019
- }
3020
- if (data.status != null) {
3021
- contents.Status = (0, smithy_client_1.expectString)(data.status);
3022
- }
2941
+ const doc = (0, smithy_client_1.take)(data, {
2942
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
2943
+ Status: [, smithy_client_1.expectString, `status`],
2944
+ });
2945
+ Object.assign(contents, doc);
3023
2946
  return contents;
3024
2947
  };
3025
2948
  exports.de_StopFlowCommand = de_StopFlowCommand;
@@ -3050,10 +2973,9 @@ const de_StopFlowCommandError = async (output, context) => {
3050
2973
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3051
2974
  default:
3052
2975
  const parsedBody = parsedOutput.body;
3053
- (0, smithy_client_1.throwDefaultError)({
2976
+ return throwDefaultError({
3054
2977
  output,
3055
2978
  parsedBody,
3056
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3057
2979
  errorCode,
3058
2980
  });
3059
2981
  }
@@ -3062,7 +2984,7 @@ const de_TagResourceCommand = async (output, context) => {
3062
2984
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3063
2985
  return de_TagResourceCommandError(output, context);
3064
2986
  }
3065
- const contents = map({
2987
+ const contents = (0, smithy_client_1.map)({
3066
2988
  $metadata: deserializeMetadata(output),
3067
2989
  });
3068
2990
  await collectBody(output.body, context);
@@ -3087,10 +3009,9 @@ const de_TagResourceCommandError = async (output, context) => {
3087
3009
  throw await de_NotFoundExceptionRes(parsedOutput, context);
3088
3010
  default:
3089
3011
  const parsedBody = parsedOutput.body;
3090
- (0, smithy_client_1.throwDefaultError)({
3012
+ return throwDefaultError({
3091
3013
  output,
3092
3014
  parsedBody,
3093
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3094
3015
  errorCode,
3095
3016
  });
3096
3017
  }
@@ -3099,7 +3020,7 @@ const de_UntagResourceCommand = async (output, context) => {
3099
3020
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3100
3021
  return de_UntagResourceCommandError(output, context);
3101
3022
  }
3102
- const contents = map({
3023
+ const contents = (0, smithy_client_1.map)({
3103
3024
  $metadata: deserializeMetadata(output),
3104
3025
  });
3105
3026
  await collectBody(output.body, context);
@@ -3124,10 +3045,9 @@ const de_UntagResourceCommandError = async (output, context) => {
3124
3045
  throw await de_NotFoundExceptionRes(parsedOutput, context);
3125
3046
  default:
3126
3047
  const parsedBody = parsedOutput.body;
3127
- (0, smithy_client_1.throwDefaultError)({
3048
+ return throwDefaultError({
3128
3049
  output,
3129
3050
  parsedBody,
3130
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3131
3051
  errorCode,
3132
3052
  });
3133
3053
  }
@@ -3136,13 +3056,14 @@ const de_UpdateBridgeCommand = async (output, context) => {
3136
3056
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3137
3057
  return de_UpdateBridgeCommandError(output, context);
3138
3058
  }
3139
- const contents = map({
3059
+ const contents = (0, smithy_client_1.map)({
3140
3060
  $metadata: deserializeMetadata(output),
3141
3061
  });
3142
3062
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3143
- if (data.bridge != null) {
3144
- contents.Bridge = de_Bridge(data.bridge, context);
3145
- }
3063
+ const doc = (0, smithy_client_1.take)(data, {
3064
+ Bridge: [, (_) => de_Bridge(_, context), `bridge`],
3065
+ });
3066
+ Object.assign(contents, doc);
3146
3067
  return contents;
3147
3068
  };
3148
3069
  exports.de_UpdateBridgeCommand = de_UpdateBridgeCommand;
@@ -3176,10 +3097,9 @@ const de_UpdateBridgeCommandError = async (output, context) => {
3176
3097
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3177
3098
  default:
3178
3099
  const parsedBody = parsedOutput.body;
3179
- (0, smithy_client_1.throwDefaultError)({
3100
+ return throwDefaultError({
3180
3101
  output,
3181
3102
  parsedBody,
3182
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3183
3103
  errorCode,
3184
3104
  });
3185
3105
  }
@@ -3188,16 +3108,15 @@ const de_UpdateBridgeOutputCommand = async (output, context) => {
3188
3108
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3189
3109
  return de_UpdateBridgeOutputCommandError(output, context);
3190
3110
  }
3191
- const contents = map({
3111
+ const contents = (0, smithy_client_1.map)({
3192
3112
  $metadata: deserializeMetadata(output),
3193
3113
  });
3194
3114
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3195
- if (data.bridgeArn != null) {
3196
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
3197
- }
3198
- if (data.output != null) {
3199
- contents.Output = de_BridgeOutput(data.output, context);
3200
- }
3115
+ const doc = (0, smithy_client_1.take)(data, {
3116
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
3117
+ Output: [, (_) => de_BridgeOutput(_, context), `output`],
3118
+ });
3119
+ Object.assign(contents, doc);
3201
3120
  return contents;
3202
3121
  };
3203
3122
  exports.de_UpdateBridgeOutputCommand = de_UpdateBridgeOutputCommand;
@@ -3231,10 +3150,9 @@ const de_UpdateBridgeOutputCommandError = async (output, context) => {
3231
3150
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3232
3151
  default:
3233
3152
  const parsedBody = parsedOutput.body;
3234
- (0, smithy_client_1.throwDefaultError)({
3153
+ return throwDefaultError({
3235
3154
  output,
3236
3155
  parsedBody,
3237
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3238
3156
  errorCode,
3239
3157
  });
3240
3158
  }
@@ -3243,16 +3161,15 @@ const de_UpdateBridgeSourceCommand = async (output, context) => {
3243
3161
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3244
3162
  return de_UpdateBridgeSourceCommandError(output, context);
3245
3163
  }
3246
- const contents = map({
3164
+ const contents = (0, smithy_client_1.map)({
3247
3165
  $metadata: deserializeMetadata(output),
3248
3166
  });
3249
3167
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3250
- if (data.bridgeArn != null) {
3251
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
3252
- }
3253
- if (data.source != null) {
3254
- contents.Source = de_BridgeSource(data.source, context);
3255
- }
3168
+ const doc = (0, smithy_client_1.take)(data, {
3169
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
3170
+ Source: [, (_) => de_BridgeSource(_, context), `source`],
3171
+ });
3172
+ Object.assign(contents, doc);
3256
3173
  return contents;
3257
3174
  };
3258
3175
  exports.de_UpdateBridgeSourceCommand = de_UpdateBridgeSourceCommand;
@@ -3286,10 +3203,9 @@ const de_UpdateBridgeSourceCommandError = async (output, context) => {
3286
3203
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3287
3204
  default:
3288
3205
  const parsedBody = parsedOutput.body;
3289
- (0, smithy_client_1.throwDefaultError)({
3206
+ return throwDefaultError({
3290
3207
  output,
3291
3208
  parsedBody,
3292
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3293
3209
  errorCode,
3294
3210
  });
3295
3211
  }
@@ -3298,16 +3214,15 @@ const de_UpdateBridgeStateCommand = async (output, context) => {
3298
3214
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3299
3215
  return de_UpdateBridgeStateCommandError(output, context);
3300
3216
  }
3301
- const contents = map({
3217
+ const contents = (0, smithy_client_1.map)({
3302
3218
  $metadata: deserializeMetadata(output),
3303
3219
  });
3304
3220
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3305
- if (data.bridgeArn != null) {
3306
- contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
3307
- }
3308
- if (data.desiredState != null) {
3309
- contents.DesiredState = (0, smithy_client_1.expectString)(data.desiredState);
3310
- }
3221
+ const doc = (0, smithy_client_1.take)(data, {
3222
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
3223
+ DesiredState: [, smithy_client_1.expectString, `desiredState`],
3224
+ });
3225
+ Object.assign(contents, doc);
3311
3226
  return contents;
3312
3227
  };
3313
3228
  exports.de_UpdateBridgeStateCommand = de_UpdateBridgeStateCommand;
@@ -3341,10 +3256,9 @@ const de_UpdateBridgeStateCommandError = async (output, context) => {
3341
3256
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3342
3257
  default:
3343
3258
  const parsedBody = parsedOutput.body;
3344
- (0, smithy_client_1.throwDefaultError)({
3259
+ return throwDefaultError({
3345
3260
  output,
3346
3261
  parsedBody,
3347
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3348
3262
  errorCode,
3349
3263
  });
3350
3264
  }
@@ -3353,13 +3267,14 @@ const de_UpdateFlowCommand = async (output, context) => {
3353
3267
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3354
3268
  return de_UpdateFlowCommandError(output, context);
3355
3269
  }
3356
- const contents = map({
3270
+ const contents = (0, smithy_client_1.map)({
3357
3271
  $metadata: deserializeMetadata(output),
3358
3272
  });
3359
3273
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3360
- if (data.flow != null) {
3361
- contents.Flow = de_Flow(data.flow, context);
3362
- }
3274
+ const doc = (0, smithy_client_1.take)(data, {
3275
+ Flow: [, (_) => de_Flow(_, context), `flow`],
3276
+ });
3277
+ Object.assign(contents, doc);
3363
3278
  return contents;
3364
3279
  };
3365
3280
  exports.de_UpdateFlowCommand = de_UpdateFlowCommand;
@@ -3390,10 +3305,9 @@ const de_UpdateFlowCommandError = async (output, context) => {
3390
3305
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3391
3306
  default:
3392
3307
  const parsedBody = parsedOutput.body;
3393
- (0, smithy_client_1.throwDefaultError)({
3308
+ return throwDefaultError({
3394
3309
  output,
3395
3310
  parsedBody,
3396
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3397
3311
  errorCode,
3398
3312
  });
3399
3313
  }
@@ -3402,16 +3316,15 @@ const de_UpdateFlowEntitlementCommand = async (output, context) => {
3402
3316
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3403
3317
  return de_UpdateFlowEntitlementCommandError(output, context);
3404
3318
  }
3405
- const contents = map({
3319
+ const contents = (0, smithy_client_1.map)({
3406
3320
  $metadata: deserializeMetadata(output),
3407
3321
  });
3408
3322
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3409
- if (data.entitlement != null) {
3410
- contents.Entitlement = de_Entitlement(data.entitlement, context);
3411
- }
3412
- if (data.flowArn != null) {
3413
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
3414
- }
3323
+ const doc = (0, smithy_client_1.take)(data, {
3324
+ Entitlement: [, (_) => de_Entitlement(_, context), `entitlement`],
3325
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
3326
+ });
3327
+ Object.assign(contents, doc);
3415
3328
  return contents;
3416
3329
  };
3417
3330
  exports.de_UpdateFlowEntitlementCommand = de_UpdateFlowEntitlementCommand;
@@ -3442,10 +3355,9 @@ const de_UpdateFlowEntitlementCommandError = async (output, context) => {
3442
3355
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3443
3356
  default:
3444
3357
  const parsedBody = parsedOutput.body;
3445
- (0, smithy_client_1.throwDefaultError)({
3358
+ return throwDefaultError({
3446
3359
  output,
3447
3360
  parsedBody,
3448
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3449
3361
  errorCode,
3450
3362
  });
3451
3363
  }
@@ -3454,16 +3366,15 @@ const de_UpdateFlowMediaStreamCommand = async (output, context) => {
3454
3366
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3455
3367
  return de_UpdateFlowMediaStreamCommandError(output, context);
3456
3368
  }
3457
- const contents = map({
3369
+ const contents = (0, smithy_client_1.map)({
3458
3370
  $metadata: deserializeMetadata(output),
3459
3371
  });
3460
3372
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3461
- if (data.flowArn != null) {
3462
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
3463
- }
3464
- if (data.mediaStream != null) {
3465
- contents.MediaStream = de_MediaStream(data.mediaStream, context);
3466
- }
3373
+ const doc = (0, smithy_client_1.take)(data, {
3374
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
3375
+ MediaStream: [, (_) => de_MediaStream(_, context), `mediaStream`],
3376
+ });
3377
+ Object.assign(contents, doc);
3467
3378
  return contents;
3468
3379
  };
3469
3380
  exports.de_UpdateFlowMediaStreamCommand = de_UpdateFlowMediaStreamCommand;
@@ -3494,10 +3405,9 @@ const de_UpdateFlowMediaStreamCommandError = async (output, context) => {
3494
3405
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3495
3406
  default:
3496
3407
  const parsedBody = parsedOutput.body;
3497
- (0, smithy_client_1.throwDefaultError)({
3408
+ return throwDefaultError({
3498
3409
  output,
3499
3410
  parsedBody,
3500
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3501
3411
  errorCode,
3502
3412
  });
3503
3413
  }
@@ -3506,16 +3416,15 @@ const de_UpdateFlowOutputCommand = async (output, context) => {
3506
3416
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3507
3417
  return de_UpdateFlowOutputCommandError(output, context);
3508
3418
  }
3509
- const contents = map({
3419
+ const contents = (0, smithy_client_1.map)({
3510
3420
  $metadata: deserializeMetadata(output),
3511
3421
  });
3512
3422
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3513
- if (data.flowArn != null) {
3514
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
3515
- }
3516
- if (data.output != null) {
3517
- contents.Output = de_Output(data.output, context);
3518
- }
3423
+ const doc = (0, smithy_client_1.take)(data, {
3424
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
3425
+ Output: [, (_) => de_Output(_, context), `output`],
3426
+ });
3427
+ Object.assign(contents, doc);
3519
3428
  return contents;
3520
3429
  };
3521
3430
  exports.de_UpdateFlowOutputCommand = de_UpdateFlowOutputCommand;
@@ -3546,10 +3455,9 @@ const de_UpdateFlowOutputCommandError = async (output, context) => {
3546
3455
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3547
3456
  default:
3548
3457
  const parsedBody = parsedOutput.body;
3549
- (0, smithy_client_1.throwDefaultError)({
3458
+ return throwDefaultError({
3550
3459
  output,
3551
3460
  parsedBody,
3552
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3553
3461
  errorCode,
3554
3462
  });
3555
3463
  }
@@ -3558,16 +3466,15 @@ const de_UpdateFlowSourceCommand = async (output, context) => {
3558
3466
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3559
3467
  return de_UpdateFlowSourceCommandError(output, context);
3560
3468
  }
3561
- const contents = map({
3469
+ const contents = (0, smithy_client_1.map)({
3562
3470
  $metadata: deserializeMetadata(output),
3563
3471
  });
3564
3472
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3565
- if (data.flowArn != null) {
3566
- contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
3567
- }
3568
- if (data.source != null) {
3569
- contents.Source = de_Source(data.source, context);
3570
- }
3473
+ const doc = (0, smithy_client_1.take)(data, {
3474
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
3475
+ Source: [, (_) => de_Source(_, context), `source`],
3476
+ });
3477
+ Object.assign(contents, doc);
3571
3478
  return contents;
3572
3479
  };
3573
3480
  exports.de_UpdateFlowSourceCommand = de_UpdateFlowSourceCommand;
@@ -3598,10 +3505,9 @@ const de_UpdateFlowSourceCommandError = async (output, context) => {
3598
3505
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3599
3506
  default:
3600
3507
  const parsedBody = parsedOutput.body;
3601
- (0, smithy_client_1.throwDefaultError)({
3508
+ return throwDefaultError({
3602
3509
  output,
3603
3510
  parsedBody,
3604
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3605
3511
  errorCode,
3606
3512
  });
3607
3513
  }
@@ -3610,16 +3516,15 @@ const de_UpdateGatewayInstanceCommand = async (output, context) => {
3610
3516
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3611
3517
  return de_UpdateGatewayInstanceCommandError(output, context);
3612
3518
  }
3613
- const contents = map({
3519
+ const contents = (0, smithy_client_1.map)({
3614
3520
  $metadata: deserializeMetadata(output),
3615
3521
  });
3616
3522
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3617
- if (data.bridgePlacement != null) {
3618
- contents.BridgePlacement = (0, smithy_client_1.expectString)(data.bridgePlacement);
3619
- }
3620
- if (data.gatewayInstanceArn != null) {
3621
- contents.GatewayInstanceArn = (0, smithy_client_1.expectString)(data.gatewayInstanceArn);
3622
- }
3523
+ const doc = (0, smithy_client_1.take)(data, {
3524
+ BridgePlacement: [, smithy_client_1.expectString, `bridgePlacement`],
3525
+ GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
3526
+ });
3527
+ Object.assign(contents, doc);
3623
3528
  return contents;
3624
3529
  };
3625
3530
  exports.de_UpdateGatewayInstanceCommand = de_UpdateGatewayInstanceCommand;
@@ -3653,21 +3558,21 @@ const de_UpdateGatewayInstanceCommandError = async (output, context) => {
3653
3558
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3654
3559
  default:
3655
3560
  const parsedBody = parsedOutput.body;
3656
- (0, smithy_client_1.throwDefaultError)({
3561
+ return throwDefaultError({
3657
3562
  output,
3658
3563
  parsedBody,
3659
- exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
3660
3564
  errorCode,
3661
3565
  });
3662
3566
  }
3663
3567
  };
3664
- const map = smithy_client_1.map;
3568
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(MediaConnectServiceException_1.MediaConnectServiceException);
3665
3569
  const de_AddFlowOutputs420ExceptionRes = async (parsedOutput, context) => {
3666
- const contents = map({});
3570
+ const contents = (0, smithy_client_1.map)({});
3667
3571
  const data = parsedOutput.body;
3668
- if (data.message != null) {
3669
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3670
- }
3572
+ const doc = (0, smithy_client_1.take)(data, {
3573
+ Message: [, smithy_client_1.expectString, `message`],
3574
+ });
3575
+ Object.assign(contents, doc);
3671
3576
  const exception = new models_0_1.AddFlowOutputs420Exception({
3672
3577
  $metadata: deserializeMetadata(parsedOutput),
3673
3578
  ...contents,
@@ -3675,11 +3580,12 @@ const de_AddFlowOutputs420ExceptionRes = async (parsedOutput, context) => {
3675
3580
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3676
3581
  };
3677
3582
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3678
- const contents = map({});
3583
+ const contents = (0, smithy_client_1.map)({});
3679
3584
  const data = parsedOutput.body;
3680
- if (data.message != null) {
3681
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3682
- }
3585
+ const doc = (0, smithy_client_1.take)(data, {
3586
+ Message: [, smithy_client_1.expectString, `message`],
3587
+ });
3588
+ Object.assign(contents, doc);
3683
3589
  const exception = new models_0_1.BadRequestException({
3684
3590
  $metadata: deserializeMetadata(parsedOutput),
3685
3591
  ...contents,
@@ -3687,11 +3593,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3687
3593
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3688
3594
  };
3689
3595
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
3690
- const contents = map({});
3596
+ const contents = (0, smithy_client_1.map)({});
3691
3597
  const data = parsedOutput.body;
3692
- if (data.message != null) {
3693
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3694
- }
3598
+ const doc = (0, smithy_client_1.take)(data, {
3599
+ Message: [, smithy_client_1.expectString, `message`],
3600
+ });
3601
+ Object.assign(contents, doc);
3695
3602
  const exception = new models_0_1.ConflictException({
3696
3603
  $metadata: deserializeMetadata(parsedOutput),
3697
3604
  ...contents,
@@ -3699,11 +3606,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
3699
3606
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3700
3607
  };
3701
3608
  const de_CreateBridge420ExceptionRes = async (parsedOutput, context) => {
3702
- const contents = map({});
3609
+ const contents = (0, smithy_client_1.map)({});
3703
3610
  const data = parsedOutput.body;
3704
- if (data.message != null) {
3705
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3706
- }
3611
+ const doc = (0, smithy_client_1.take)(data, {
3612
+ Message: [, smithy_client_1.expectString, `message`],
3613
+ });
3614
+ Object.assign(contents, doc);
3707
3615
  const exception = new models_0_1.CreateBridge420Exception({
3708
3616
  $metadata: deserializeMetadata(parsedOutput),
3709
3617
  ...contents,
@@ -3711,11 +3619,12 @@ const de_CreateBridge420ExceptionRes = async (parsedOutput, context) => {
3711
3619
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3712
3620
  };
3713
3621
  const de_CreateFlow420ExceptionRes = async (parsedOutput, context) => {
3714
- const contents = map({});
3622
+ const contents = (0, smithy_client_1.map)({});
3715
3623
  const data = parsedOutput.body;
3716
- if (data.message != null) {
3717
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3718
- }
3624
+ const doc = (0, smithy_client_1.take)(data, {
3625
+ Message: [, smithy_client_1.expectString, `message`],
3626
+ });
3627
+ Object.assign(contents, doc);
3719
3628
  const exception = new models_0_1.CreateFlow420Exception({
3720
3629
  $metadata: deserializeMetadata(parsedOutput),
3721
3630
  ...contents,
@@ -3723,11 +3632,12 @@ const de_CreateFlow420ExceptionRes = async (parsedOutput, context) => {
3723
3632
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3724
3633
  };
3725
3634
  const de_CreateGateway420ExceptionRes = async (parsedOutput, context) => {
3726
- const contents = map({});
3635
+ const contents = (0, smithy_client_1.map)({});
3727
3636
  const data = parsedOutput.body;
3728
- if (data.message != null) {
3729
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3730
- }
3637
+ const doc = (0, smithy_client_1.take)(data, {
3638
+ Message: [, smithy_client_1.expectString, `message`],
3639
+ });
3640
+ Object.assign(contents, doc);
3731
3641
  const exception = new models_0_1.CreateGateway420Exception({
3732
3642
  $metadata: deserializeMetadata(parsedOutput),
3733
3643
  ...contents,
@@ -3735,11 +3645,12 @@ const de_CreateGateway420ExceptionRes = async (parsedOutput, context) => {
3735
3645
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3736
3646
  };
3737
3647
  const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
3738
- const contents = map({});
3648
+ const contents = (0, smithy_client_1.map)({});
3739
3649
  const data = parsedOutput.body;
3740
- if (data.message != null) {
3741
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3742
- }
3650
+ const doc = (0, smithy_client_1.take)(data, {
3651
+ Message: [, smithy_client_1.expectString, `message`],
3652
+ });
3653
+ Object.assign(contents, doc);
3743
3654
  const exception = new models_0_1.ForbiddenException({
3744
3655
  $metadata: deserializeMetadata(parsedOutput),
3745
3656
  ...contents,
@@ -3747,11 +3658,12 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
3747
3658
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3748
3659
  };
3749
3660
  const de_GrantFlowEntitlements420ExceptionRes = async (parsedOutput, context) => {
3750
- const contents = map({});
3661
+ const contents = (0, smithy_client_1.map)({});
3751
3662
  const data = parsedOutput.body;
3752
- if (data.message != null) {
3753
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3754
- }
3663
+ const doc = (0, smithy_client_1.take)(data, {
3664
+ Message: [, smithy_client_1.expectString, `message`],
3665
+ });
3666
+ Object.assign(contents, doc);
3755
3667
  const exception = new models_0_1.GrantFlowEntitlements420Exception({
3756
3668
  $metadata: deserializeMetadata(parsedOutput),
3757
3669
  ...contents,
@@ -3759,11 +3671,12 @@ const de_GrantFlowEntitlements420ExceptionRes = async (parsedOutput, context) =>
3759
3671
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3760
3672
  };
3761
3673
  const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
3762
- const contents = map({});
3674
+ const contents = (0, smithy_client_1.map)({});
3763
3675
  const data = parsedOutput.body;
3764
- if (data.message != null) {
3765
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3766
- }
3676
+ const doc = (0, smithy_client_1.take)(data, {
3677
+ Message: [, smithy_client_1.expectString, `message`],
3678
+ });
3679
+ Object.assign(contents, doc);
3767
3680
  const exception = new models_0_1.InternalServerErrorException({
3768
3681
  $metadata: deserializeMetadata(parsedOutput),
3769
3682
  ...contents,
@@ -3771,11 +3684,12 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
3771
3684
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3772
3685
  };
3773
3686
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3774
- const contents = map({});
3687
+ const contents = (0, smithy_client_1.map)({});
3775
3688
  const data = parsedOutput.body;
3776
- if (data.message != null) {
3777
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3778
- }
3689
+ const doc = (0, smithy_client_1.take)(data, {
3690
+ Message: [, smithy_client_1.expectString, `message`],
3691
+ });
3692
+ Object.assign(contents, doc);
3779
3693
  const exception = new models_0_1.NotFoundException({
3780
3694
  $metadata: deserializeMetadata(parsedOutput),
3781
3695
  ...contents,
@@ -3783,11 +3697,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3783
3697
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3784
3698
  };
3785
3699
  const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3786
- const contents = map({});
3700
+ const contents = (0, smithy_client_1.map)({});
3787
3701
  const data = parsedOutput.body;
3788
- if (data.message != null) {
3789
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3790
- }
3702
+ const doc = (0, smithy_client_1.take)(data, {
3703
+ Message: [, smithy_client_1.expectString, `message`],
3704
+ });
3705
+ Object.assign(contents, doc);
3791
3706
  const exception = new models_0_1.ServiceUnavailableException({
3792
3707
  $metadata: deserializeMetadata(parsedOutput),
3793
3708
  ...contents,
@@ -3795,24 +3710,18 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3795
3710
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3796
3711
  };
3797
3712
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
3798
- const contents = map({});
3713
+ const contents = (0, smithy_client_1.map)({});
3799
3714
  const data = parsedOutput.body;
3800
- if (data.message != null) {
3801
- contents.Message = (0, smithy_client_1.expectString)(data.message);
3802
- }
3715
+ const doc = (0, smithy_client_1.take)(data, {
3716
+ Message: [, smithy_client_1.expectString, `message`],
3717
+ });
3718
+ Object.assign(contents, doc);
3803
3719
  const exception = new models_0_1.TooManyRequestsException({
3804
3720
  $metadata: deserializeMetadata(parsedOutput),
3805
3721
  ...contents,
3806
3722
  });
3807
3723
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3808
3724
  };
3809
- const se___listOf__string = (input, context) => {
3810
- return input
3811
- .filter((e) => e != null)
3812
- .map((entry) => {
3813
- return entry;
3814
- });
3815
- };
3816
3725
  const se___listOfAddBridgeOutputRequest = (input, context) => {
3817
3726
  return input
3818
3727
  .filter((e) => e != null)
@@ -3897,369 +3806,315 @@ const se___listOfVpcInterfaceRequest = (input, context) => {
3897
3806
  return se_VpcInterfaceRequest(entry, context);
3898
3807
  });
3899
3808
  };
3900
- const se___mapOf__string = (input, context) => {
3901
- return Object.entries(input).reduce((acc, [key, value]) => {
3902
- if (value === null) {
3903
- return acc;
3904
- }
3905
- acc[key] = value;
3906
- return acc;
3907
- }, {});
3908
- };
3909
3809
  const se_AddBridgeFlowSourceRequest = (input, context) => {
3910
- return {
3911
- ...(input.FlowArn != null && { flowArn: input.FlowArn }),
3912
- ...(input.FlowVpcInterfaceAttachment != null && {
3913
- flowVpcInterfaceAttachment: se_VpcInterfaceAttachment(input.FlowVpcInterfaceAttachment, context),
3914
- }),
3915
- ...(input.Name != null && { name: input.Name }),
3916
- };
3810
+ return (0, smithy_client_1.take)(input, {
3811
+ flowArn: [, , `FlowArn`],
3812
+ flowVpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `FlowVpcInterfaceAttachment`],
3813
+ name: [, , `Name`],
3814
+ });
3917
3815
  };
3918
3816
  const se_AddBridgeNetworkOutputRequest = (input, context) => {
3919
- return {
3920
- ...(input.IpAddress != null && { ipAddress: input.IpAddress }),
3921
- ...(input.Name != null && { name: input.Name }),
3922
- ...(input.NetworkName != null && { networkName: input.NetworkName }),
3923
- ...(input.Port != null && { port: input.Port }),
3924
- ...(input.Protocol != null && { protocol: input.Protocol }),
3925
- ...(input.Ttl != null && { ttl: input.Ttl }),
3926
- };
3817
+ return (0, smithy_client_1.take)(input, {
3818
+ ipAddress: [, , `IpAddress`],
3819
+ name: [, , `Name`],
3820
+ networkName: [, , `NetworkName`],
3821
+ port: [, , `Port`],
3822
+ protocol: [, , `Protocol`],
3823
+ ttl: [, , `Ttl`],
3824
+ });
3927
3825
  };
3928
3826
  const se_AddBridgeNetworkSourceRequest = (input, context) => {
3929
- return {
3930
- ...(input.MulticastIp != null && { multicastIp: input.MulticastIp }),
3931
- ...(input.Name != null && { name: input.Name }),
3932
- ...(input.NetworkName != null && { networkName: input.NetworkName }),
3933
- ...(input.Port != null && { port: input.Port }),
3934
- ...(input.Protocol != null && { protocol: input.Protocol }),
3935
- };
3827
+ return (0, smithy_client_1.take)(input, {
3828
+ multicastIp: [, , `MulticastIp`],
3829
+ name: [, , `Name`],
3830
+ networkName: [, , `NetworkName`],
3831
+ port: [, , `Port`],
3832
+ protocol: [, , `Protocol`],
3833
+ });
3936
3834
  };
3937
3835
  const se_AddBridgeOutputRequest = (input, context) => {
3938
- return {
3939
- ...(input.NetworkOutput != null && {
3940
- networkOutput: se_AddBridgeNetworkOutputRequest(input.NetworkOutput, context),
3941
- }),
3942
- };
3836
+ return (0, smithy_client_1.take)(input, {
3837
+ networkOutput: [, (_) => se_AddBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
3838
+ });
3943
3839
  };
3944
3840
  const se_AddBridgeSourceRequest = (input, context) => {
3945
- return {
3946
- ...(input.FlowSource != null && { flowSource: se_AddBridgeFlowSourceRequest(input.FlowSource, context) }),
3947
- ...(input.NetworkSource != null && {
3948
- networkSource: se_AddBridgeNetworkSourceRequest(input.NetworkSource, context),
3949
- }),
3950
- };
3841
+ return (0, smithy_client_1.take)(input, {
3842
+ flowSource: [, (_) => se_AddBridgeFlowSourceRequest(_, context), `FlowSource`],
3843
+ networkSource: [, (_) => se_AddBridgeNetworkSourceRequest(_, context), `NetworkSource`],
3844
+ });
3951
3845
  };
3952
3846
  const se_AddEgressGatewayBridgeRequest = (input, context) => {
3953
- return {
3954
- ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
3955
- };
3847
+ return (0, smithy_client_1.take)(input, {
3848
+ maxBitrate: [, , `MaxBitrate`],
3849
+ });
3956
3850
  };
3957
3851
  const se_AddIngressGatewayBridgeRequest = (input, context) => {
3958
- return {
3959
- ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
3960
- ...(input.MaxOutputs != null && { maxOutputs: input.MaxOutputs }),
3961
- };
3852
+ return (0, smithy_client_1.take)(input, {
3853
+ maxBitrate: [, , `MaxBitrate`],
3854
+ maxOutputs: [, , `MaxOutputs`],
3855
+ });
3962
3856
  };
3963
3857
  const se_AddMaintenance = (input, context) => {
3964
- return {
3965
- ...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
3966
- ...(input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }),
3967
- };
3858
+ return (0, smithy_client_1.take)(input, {
3859
+ maintenanceDay: [, , `MaintenanceDay`],
3860
+ maintenanceStartHour: [, , `MaintenanceStartHour`],
3861
+ });
3968
3862
  };
3969
3863
  const se_AddMediaStreamRequest = (input, context) => {
3970
- return {
3971
- ...(input.Attributes != null && { attributes: se_MediaStreamAttributesRequest(input.Attributes, context) }),
3972
- ...(input.ClockRate != null && { clockRate: input.ClockRate }),
3973
- ...(input.Description != null && { description: input.Description }),
3974
- ...(input.MediaStreamId != null && { mediaStreamId: input.MediaStreamId }),
3975
- ...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
3976
- ...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
3977
- ...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
3978
- };
3864
+ return (0, smithy_client_1.take)(input, {
3865
+ attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
3866
+ clockRate: [, , `ClockRate`],
3867
+ description: [, , `Description`],
3868
+ mediaStreamId: [, , `MediaStreamId`],
3869
+ mediaStreamName: [, , `MediaStreamName`],
3870
+ mediaStreamType: [, , `MediaStreamType`],
3871
+ videoFormat: [, , `VideoFormat`],
3872
+ });
3979
3873
  };
3980
3874
  const se_AddOutputRequest = (input, context) => {
3981
- return {
3982
- ...(input.CidrAllowList != null && { cidrAllowList: se___listOf__string(input.CidrAllowList, context) }),
3983
- ...(input.Description != null && { description: input.Description }),
3984
- ...(input.Destination != null && { destination: input.Destination }),
3985
- ...(input.Encryption != null && { encryption: se_Encryption(input.Encryption, context) }),
3986
- ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
3987
- ...(input.MediaStreamOutputConfigurations != null && {
3988
- mediaStreamOutputConfigurations: se___listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
3989
- }),
3990
- ...(input.MinLatency != null && { minLatency: input.MinLatency }),
3991
- ...(input.Name != null && { name: input.Name }),
3992
- ...(input.Port != null && { port: input.Port }),
3993
- ...(input.Protocol != null && { protocol: input.Protocol }),
3994
- ...(input.RemoteId != null && { remoteId: input.RemoteId }),
3995
- ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
3996
- ...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
3997
- ...(input.StreamId != null && { streamId: input.StreamId }),
3998
- ...(input.VpcInterfaceAttachment != null && {
3999
- vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
4000
- }),
4001
- };
3875
+ return (0, smithy_client_1.take)(input, {
3876
+ cidrAllowList: [, smithy_client_1._json, `CidrAllowList`],
3877
+ description: [, , `Description`],
3878
+ destination: [, , `Destination`],
3879
+ encryption: [, (_) => se_Encryption(_, context), `Encryption`],
3880
+ maxLatency: [, , `MaxLatency`],
3881
+ mediaStreamOutputConfigurations: [
3882
+ ,
3883
+ (_) => se___listOfMediaStreamOutputConfigurationRequest(_, context),
3884
+ `MediaStreamOutputConfigurations`,
3885
+ ],
3886
+ minLatency: [, , `MinLatency`],
3887
+ name: [, , `Name`],
3888
+ port: [, , `Port`],
3889
+ protocol: [, , `Protocol`],
3890
+ remoteId: [, , `RemoteId`],
3891
+ senderControlPort: [, , `SenderControlPort`],
3892
+ smoothingLatency: [, , `SmoothingLatency`],
3893
+ streamId: [, , `StreamId`],
3894
+ vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
3895
+ });
4002
3896
  };
4003
3897
  const se_DestinationConfigurationRequest = (input, context) => {
4004
- return {
4005
- ...(input.DestinationIp != null && { destinationIp: input.DestinationIp }),
4006
- ...(input.DestinationPort != null && { destinationPort: input.DestinationPort }),
4007
- ...(input.Interface != null && { interface: se_InterfaceRequest(input.Interface, context) }),
4008
- };
3898
+ return (0, smithy_client_1.take)(input, {
3899
+ destinationIp: [, , `DestinationIp`],
3900
+ destinationPort: [, , `DestinationPort`],
3901
+ interface: [, (_) => se_InterfaceRequest(_, context), `Interface`],
3902
+ });
4009
3903
  };
4010
3904
  const se_EncodingParametersRequest = (input, context) => {
4011
- return {
4012
- ...(input.CompressionFactor != null && { compressionFactor: (0, smithy_client_1.serializeFloat)(input.CompressionFactor) }),
4013
- ...(input.EncoderProfile != null && { encoderProfile: input.EncoderProfile }),
4014
- };
3905
+ return (0, smithy_client_1.take)(input, {
3906
+ compressionFactor: [, smithy_client_1.serializeFloat, `CompressionFactor`],
3907
+ encoderProfile: [, , `EncoderProfile`],
3908
+ });
4015
3909
  };
4016
3910
  const se_Encryption = (input, context) => {
4017
- return {
4018
- ...(input.Algorithm != null && { algorithm: input.Algorithm }),
4019
- ...(input.ConstantInitializationVector != null && {
4020
- constantInitializationVector: input.ConstantInitializationVector,
4021
- }),
4022
- ...(input.DeviceId != null && { deviceId: input.DeviceId }),
4023
- ...(input.KeyType != null && { keyType: input.KeyType }),
4024
- ...(input.Region != null && { region: input.Region }),
4025
- ...(input.ResourceId != null && { resourceId: input.ResourceId }),
4026
- ...(input.RoleArn != null && { roleArn: input.RoleArn }),
4027
- ...(input.SecretArn != null && { secretArn: input.SecretArn }),
4028
- ...(input.Url != null && { url: input.Url }),
4029
- };
3911
+ return (0, smithy_client_1.take)(input, {
3912
+ algorithm: [, , `Algorithm`],
3913
+ constantInitializationVector: [, , `ConstantInitializationVector`],
3914
+ deviceId: [, , `DeviceId`],
3915
+ keyType: [, , `KeyType`],
3916
+ region: [, , `Region`],
3917
+ resourceId: [, , `ResourceId`],
3918
+ roleArn: [, , `RoleArn`],
3919
+ secretArn: [, , `SecretArn`],
3920
+ url: [, , `Url`],
3921
+ });
4030
3922
  };
4031
3923
  const se_FailoverConfig = (input, context) => {
4032
- return {
4033
- ...(input.FailoverMode != null && { failoverMode: input.FailoverMode }),
4034
- ...(input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow }),
4035
- ...(input.SourcePriority != null && { sourcePriority: se_SourcePriority(input.SourcePriority, context) }),
4036
- ...(input.State != null && { state: input.State }),
4037
- };
3924
+ return (0, smithy_client_1.take)(input, {
3925
+ failoverMode: [, , `FailoverMode`],
3926
+ recoveryWindow: [, , `RecoveryWindow`],
3927
+ sourcePriority: [, (_) => se_SourcePriority(_, context), `SourcePriority`],
3928
+ state: [, , `State`],
3929
+ });
4038
3930
  };
4039
3931
  const se_FmtpRequest = (input, context) => {
4040
- return {
4041
- ...(input.ChannelOrder != null && { channelOrder: input.ChannelOrder }),
4042
- ...(input.Colorimetry != null && { colorimetry: input.Colorimetry }),
4043
- ...(input.ExactFramerate != null && { exactFramerate: input.ExactFramerate }),
4044
- ...(input.Par != null && { par: input.Par }),
4045
- ...(input.Range != null && { range: input.Range }),
4046
- ...(input.ScanMode != null && { scanMode: input.ScanMode }),
4047
- ...(input.Tcs != null && { tcs: input.Tcs }),
4048
- };
3932
+ return (0, smithy_client_1.take)(input, {
3933
+ channelOrder: [, , `ChannelOrder`],
3934
+ colorimetry: [, , `Colorimetry`],
3935
+ exactFramerate: [, , `ExactFramerate`],
3936
+ par: [, , `Par`],
3937
+ range: [, , `Range`],
3938
+ scanMode: [, , `ScanMode`],
3939
+ tcs: [, , `Tcs`],
3940
+ });
4049
3941
  };
4050
3942
  const se_GatewayNetwork = (input, context) => {
4051
- return {
4052
- ...(input.CidrBlock != null && { cidrBlock: input.CidrBlock }),
4053
- ...(input.Name != null && { name: input.Name }),
4054
- };
3943
+ return (0, smithy_client_1.take)(input, {
3944
+ cidrBlock: [, , `CidrBlock`],
3945
+ name: [, , `Name`],
3946
+ });
4055
3947
  };
4056
3948
  const se_GrantEntitlementRequest = (input, context) => {
4057
- return {
4058
- ...(input.DataTransferSubscriberFeePercent != null && {
4059
- dataTransferSubscriberFeePercent: input.DataTransferSubscriberFeePercent,
4060
- }),
4061
- ...(input.Description != null && { description: input.Description }),
4062
- ...(input.Encryption != null && { encryption: se_Encryption(input.Encryption, context) }),
4063
- ...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
4064
- ...(input.Name != null && { name: input.Name }),
4065
- ...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
4066
- };
3949
+ return (0, smithy_client_1.take)(input, {
3950
+ dataTransferSubscriberFeePercent: [, , `DataTransferSubscriberFeePercent`],
3951
+ description: [, , `Description`],
3952
+ encryption: [, (_) => se_Encryption(_, context), `Encryption`],
3953
+ entitlementStatus: [, , `EntitlementStatus`],
3954
+ name: [, , `Name`],
3955
+ subscribers: [, smithy_client_1._json, `Subscribers`],
3956
+ });
4067
3957
  };
4068
3958
  const se_InputConfigurationRequest = (input, context) => {
4069
- return {
4070
- ...(input.InputPort != null && { inputPort: input.InputPort }),
4071
- ...(input.Interface != null && { interface: se_InterfaceRequest(input.Interface, context) }),
4072
- };
3959
+ return (0, smithy_client_1.take)(input, {
3960
+ inputPort: [, , `InputPort`],
3961
+ interface: [, (_) => se_InterfaceRequest(_, context), `Interface`],
3962
+ });
4073
3963
  };
4074
3964
  const se_InterfaceRequest = (input, context) => {
4075
- return {
4076
- ...(input.Name != null && { name: input.Name }),
4077
- };
3965
+ return (0, smithy_client_1.take)(input, {
3966
+ name: [, , `Name`],
3967
+ });
4078
3968
  };
4079
3969
  const se_MediaStreamAttributesRequest = (input, context) => {
4080
- return {
4081
- ...(input.Fmtp != null && { fmtp: se_FmtpRequest(input.Fmtp, context) }),
4082
- ...(input.Lang != null && { lang: input.Lang }),
4083
- };
3970
+ return (0, smithy_client_1.take)(input, {
3971
+ fmtp: [, (_) => se_FmtpRequest(_, context), `Fmtp`],
3972
+ lang: [, , `Lang`],
3973
+ });
4084
3974
  };
4085
3975
  const se_MediaStreamOutputConfigurationRequest = (input, context) => {
4086
- return {
4087
- ...(input.DestinationConfigurations != null && {
4088
- destinationConfigurations: se___listOfDestinationConfigurationRequest(input.DestinationConfigurations, context),
4089
- }),
4090
- ...(input.EncodingName != null && { encodingName: input.EncodingName }),
4091
- ...(input.EncodingParameters != null && {
4092
- encodingParameters: se_EncodingParametersRequest(input.EncodingParameters, context),
4093
- }),
4094
- ...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
4095
- };
3976
+ return (0, smithy_client_1.take)(input, {
3977
+ destinationConfigurations: [
3978
+ ,
3979
+ (_) => se___listOfDestinationConfigurationRequest(_, context),
3980
+ `DestinationConfigurations`,
3981
+ ],
3982
+ encodingName: [, , `EncodingName`],
3983
+ encodingParameters: [, (_) => se_EncodingParametersRequest(_, context), `EncodingParameters`],
3984
+ mediaStreamName: [, , `MediaStreamName`],
3985
+ });
4096
3986
  };
4097
3987
  const se_MediaStreamSourceConfigurationRequest = (input, context) => {
4098
- return {
4099
- ...(input.EncodingName != null && { encodingName: input.EncodingName }),
4100
- ...(input.InputConfigurations != null && {
4101
- inputConfigurations: se___listOfInputConfigurationRequest(input.InputConfigurations, context),
4102
- }),
4103
- ...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
4104
- };
3988
+ return (0, smithy_client_1.take)(input, {
3989
+ encodingName: [, , `EncodingName`],
3990
+ inputConfigurations: [, (_) => se___listOfInputConfigurationRequest(_, context), `InputConfigurations`],
3991
+ mediaStreamName: [, , `MediaStreamName`],
3992
+ });
4105
3993
  };
4106
3994
  const se_SetGatewayBridgeSourceRequest = (input, context) => {
4107
- return {
4108
- ...(input.BridgeArn != null && { bridgeArn: input.BridgeArn }),
4109
- ...(input.VpcInterfaceAttachment != null && {
4110
- vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
4111
- }),
4112
- };
3995
+ return (0, smithy_client_1.take)(input, {
3996
+ bridgeArn: [, , `BridgeArn`],
3997
+ vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
3998
+ });
4113
3999
  };
4114
4000
  const se_SetSourceRequest = (input, context) => {
4115
- return {
4116
- ...(input.Decryption != null && { decryption: se_Encryption(input.Decryption, context) }),
4117
- ...(input.Description != null && { description: input.Description }),
4118
- ...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
4119
- ...(input.GatewayBridgeSource != null && {
4120
- gatewayBridgeSource: se_SetGatewayBridgeSourceRequest(input.GatewayBridgeSource, context),
4121
- }),
4122
- ...(input.IngestPort != null && { ingestPort: input.IngestPort }),
4123
- ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
4124
- ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
4125
- ...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
4126
- ...(input.MediaStreamSourceConfigurations != null && {
4127
- mediaStreamSourceConfigurations: se___listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
4128
- }),
4129
- ...(input.MinLatency != null && { minLatency: input.MinLatency }),
4130
- ...(input.Name != null && { name: input.Name }),
4131
- ...(input.Protocol != null && { protocol: input.Protocol }),
4132
- ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
4133
- ...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
4134
- ...(input.SourceListenerAddress != null && { sourceListenerAddress: input.SourceListenerAddress }),
4135
- ...(input.SourceListenerPort != null && { sourceListenerPort: input.SourceListenerPort }),
4136
- ...(input.StreamId != null && { streamId: input.StreamId }),
4137
- ...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
4138
- ...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
4139
- };
4001
+ return (0, smithy_client_1.take)(input, {
4002
+ decryption: [, (_) => se_Encryption(_, context), `Decryption`],
4003
+ description: [, , `Description`],
4004
+ entitlementArn: [, , `EntitlementArn`],
4005
+ gatewayBridgeSource: [, (_) => se_SetGatewayBridgeSourceRequest(_, context), `GatewayBridgeSource`],
4006
+ ingestPort: [, , `IngestPort`],
4007
+ maxBitrate: [, , `MaxBitrate`],
4008
+ maxLatency: [, , `MaxLatency`],
4009
+ maxSyncBuffer: [, , `MaxSyncBuffer`],
4010
+ mediaStreamSourceConfigurations: [
4011
+ ,
4012
+ (_) => se___listOfMediaStreamSourceConfigurationRequest(_, context),
4013
+ `MediaStreamSourceConfigurations`,
4014
+ ],
4015
+ minLatency: [, , `MinLatency`],
4016
+ name: [, , `Name`],
4017
+ protocol: [, , `Protocol`],
4018
+ senderControlPort: [, , `SenderControlPort`],
4019
+ senderIpAddress: [, , `SenderIpAddress`],
4020
+ sourceListenerAddress: [, , `SourceListenerAddress`],
4021
+ sourceListenerPort: [, , `SourceListenerPort`],
4022
+ streamId: [, , `StreamId`],
4023
+ vpcInterfaceName: [, , `VpcInterfaceName`],
4024
+ whitelistCidr: [, , `WhitelistCidr`],
4025
+ });
4140
4026
  };
4141
4027
  const se_SourcePriority = (input, context) => {
4142
- return {
4143
- ...(input.PrimarySource != null && { primarySource: input.PrimarySource }),
4144
- };
4028
+ return (0, smithy_client_1.take)(input, {
4029
+ primarySource: [, , `PrimarySource`],
4030
+ });
4145
4031
  };
4146
4032
  const se_UpdateBridgeFlowSourceRequest = (input, context) => {
4147
- return {
4148
- ...(input.FlowArn != null && { flowArn: input.FlowArn }),
4149
- ...(input.FlowVpcInterfaceAttachment != null && {
4150
- flowVpcInterfaceAttachment: se_VpcInterfaceAttachment(input.FlowVpcInterfaceAttachment, context),
4151
- }),
4152
- };
4033
+ return (0, smithy_client_1.take)(input, {
4034
+ flowArn: [, , `FlowArn`],
4035
+ flowVpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `FlowVpcInterfaceAttachment`],
4036
+ });
4153
4037
  };
4154
4038
  const se_UpdateBridgeNetworkOutputRequest = (input, context) => {
4155
- return {
4156
- ...(input.IpAddress != null && { ipAddress: input.IpAddress }),
4157
- ...(input.NetworkName != null && { networkName: input.NetworkName }),
4158
- ...(input.Port != null && { port: input.Port }),
4159
- ...(input.Protocol != null && { protocol: input.Protocol }),
4160
- ...(input.Ttl != null && { ttl: input.Ttl }),
4161
- };
4039
+ return (0, smithy_client_1.take)(input, {
4040
+ ipAddress: [, , `IpAddress`],
4041
+ networkName: [, , `NetworkName`],
4042
+ port: [, , `Port`],
4043
+ protocol: [, , `Protocol`],
4044
+ ttl: [, , `Ttl`],
4045
+ });
4162
4046
  };
4163
4047
  const se_UpdateBridgeNetworkSourceRequest = (input, context) => {
4164
- return {
4165
- ...(input.MulticastIp != null && { multicastIp: input.MulticastIp }),
4166
- ...(input.NetworkName != null && { networkName: input.NetworkName }),
4167
- ...(input.Port != null && { port: input.Port }),
4168
- ...(input.Protocol != null && { protocol: input.Protocol }),
4169
- };
4048
+ return (0, smithy_client_1.take)(input, {
4049
+ multicastIp: [, , `MulticastIp`],
4050
+ networkName: [, , `NetworkName`],
4051
+ port: [, , `Port`],
4052
+ protocol: [, , `Protocol`],
4053
+ });
4170
4054
  };
4171
4055
  const se_UpdateEgressGatewayBridgeRequest = (input, context) => {
4172
- return {
4173
- ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
4174
- };
4056
+ return (0, smithy_client_1.take)(input, {
4057
+ maxBitrate: [, , `MaxBitrate`],
4058
+ });
4175
4059
  };
4176
4060
  const se_UpdateEncryption = (input, context) => {
4177
- return {
4178
- ...(input.Algorithm != null && { algorithm: input.Algorithm }),
4179
- ...(input.ConstantInitializationVector != null && {
4180
- constantInitializationVector: input.ConstantInitializationVector,
4181
- }),
4182
- ...(input.DeviceId != null && { deviceId: input.DeviceId }),
4183
- ...(input.KeyType != null && { keyType: input.KeyType }),
4184
- ...(input.Region != null && { region: input.Region }),
4185
- ...(input.ResourceId != null && { resourceId: input.ResourceId }),
4186
- ...(input.RoleArn != null && { roleArn: input.RoleArn }),
4187
- ...(input.SecretArn != null && { secretArn: input.SecretArn }),
4188
- ...(input.Url != null && { url: input.Url }),
4189
- };
4061
+ return (0, smithy_client_1.take)(input, {
4062
+ algorithm: [, , `Algorithm`],
4063
+ constantInitializationVector: [, , `ConstantInitializationVector`],
4064
+ deviceId: [, , `DeviceId`],
4065
+ keyType: [, , `KeyType`],
4066
+ region: [, , `Region`],
4067
+ resourceId: [, , `ResourceId`],
4068
+ roleArn: [, , `RoleArn`],
4069
+ secretArn: [, , `SecretArn`],
4070
+ url: [, , `Url`],
4071
+ });
4190
4072
  };
4191
4073
  const se_UpdateFailoverConfig = (input, context) => {
4192
- return {
4193
- ...(input.FailoverMode != null && { failoverMode: input.FailoverMode }),
4194
- ...(input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow }),
4195
- ...(input.SourcePriority != null && { sourcePriority: se_SourcePriority(input.SourcePriority, context) }),
4196
- ...(input.State != null && { state: input.State }),
4197
- };
4074
+ return (0, smithy_client_1.take)(input, {
4075
+ failoverMode: [, , `FailoverMode`],
4076
+ recoveryWindow: [, , `RecoveryWindow`],
4077
+ sourcePriority: [, (_) => se_SourcePriority(_, context), `SourcePriority`],
4078
+ state: [, , `State`],
4079
+ });
4198
4080
  };
4199
4081
  const se_UpdateGatewayBridgeSourceRequest = (input, context) => {
4200
- return {
4201
- ...(input.BridgeArn != null && { bridgeArn: input.BridgeArn }),
4202
- ...(input.VpcInterfaceAttachment != null && {
4203
- vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
4204
- }),
4205
- };
4082
+ return (0, smithy_client_1.take)(input, {
4083
+ bridgeArn: [, , `BridgeArn`],
4084
+ vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
4085
+ });
4206
4086
  };
4207
4087
  const se_UpdateIngressGatewayBridgeRequest = (input, context) => {
4208
- return {
4209
- ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
4210
- ...(input.MaxOutputs != null && { maxOutputs: input.MaxOutputs }),
4211
- };
4088
+ return (0, smithy_client_1.take)(input, {
4089
+ maxBitrate: [, , `MaxBitrate`],
4090
+ maxOutputs: [, , `MaxOutputs`],
4091
+ });
4212
4092
  };
4213
4093
  const se_UpdateMaintenance = (input, context) => {
4214
- return {
4215
- ...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
4216
- ...(input.MaintenanceScheduledDate != null && { maintenanceScheduledDate: input.MaintenanceScheduledDate }),
4217
- ...(input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }),
4218
- };
4094
+ return (0, smithy_client_1.take)(input, {
4095
+ maintenanceDay: [, , `MaintenanceDay`],
4096
+ maintenanceScheduledDate: [, , `MaintenanceScheduledDate`],
4097
+ maintenanceStartHour: [, , `MaintenanceStartHour`],
4098
+ });
4219
4099
  };
4220
4100
  const se_VpcInterfaceAttachment = (input, context) => {
4221
- return {
4222
- ...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
4223
- };
4224
- };
4225
- const se_VpcInterfaceRequest = (input, context) => {
4226
- return {
4227
- ...(input.Name != null && { name: input.Name }),
4228
- ...(input.NetworkInterfaceType != null && { networkInterfaceType: input.NetworkInterfaceType }),
4229
- ...(input.RoleArn != null && { roleArn: input.RoleArn }),
4230
- ...(input.SecurityGroupIds != null && { securityGroupIds: se___listOf__string(input.SecurityGroupIds, context) }),
4231
- ...(input.SubnetId != null && { subnetId: input.SubnetId }),
4232
- };
4233
- };
4234
- const de___listOf__integer = (output, context) => {
4235
- const retVal = (output || [])
4236
- .filter((e) => e != null)
4237
- .map((entry) => {
4238
- if (entry === null) {
4239
- return null;
4240
- }
4241
- return (0, smithy_client_1.expectInt32)(entry);
4101
+ return (0, smithy_client_1.take)(input, {
4102
+ vpcInterfaceName: [, , `VpcInterfaceName`],
4242
4103
  });
4243
- return retVal;
4244
4104
  };
4245
- const de___listOf__string = (output, context) => {
4246
- const retVal = (output || [])
4247
- .filter((e) => e != null)
4248
- .map((entry) => {
4249
- if (entry === null) {
4250
- return null;
4251
- }
4252
- return (0, smithy_client_1.expectString)(entry);
4105
+ const se_VpcInterfaceRequest = (input, context) => {
4106
+ return (0, smithy_client_1.take)(input, {
4107
+ name: [, , `Name`],
4108
+ networkInterfaceType: [, , `NetworkInterfaceType`],
4109
+ roleArn: [, , `RoleArn`],
4110
+ securityGroupIds: [, smithy_client_1._json, `SecurityGroupIds`],
4111
+ subnetId: [, , `SubnetId`],
4253
4112
  });
4254
- return retVal;
4255
4113
  };
4256
4114
  const de___listOfBridgeOutput = (output, context) => {
4257
4115
  const retVal = (output || [])
4258
4116
  .filter((e) => e != null)
4259
4117
  .map((entry) => {
4260
- if (entry === null) {
4261
- return null;
4262
- }
4263
4118
  return de_BridgeOutput(entry, context);
4264
4119
  });
4265
4120
  return retVal;
@@ -4268,9 +4123,6 @@ const de___listOfBridgeSource = (output, context) => {
4268
4123
  const retVal = (output || [])
4269
4124
  .filter((e) => e != null)
4270
4125
  .map((entry) => {
4271
- if (entry === null) {
4272
- return null;
4273
- }
4274
4126
  return de_BridgeSource(entry, context);
4275
4127
  });
4276
4128
  return retVal;
@@ -4279,9 +4131,6 @@ const de___listOfDestinationConfiguration = (output, context) => {
4279
4131
  const retVal = (output || [])
4280
4132
  .filter((e) => e != null)
4281
4133
  .map((entry) => {
4282
- if (entry === null) {
4283
- return null;
4284
- }
4285
4134
  return de_DestinationConfiguration(entry, context);
4286
4135
  });
4287
4136
  return retVal;
@@ -4290,9 +4139,6 @@ const de___listOfEntitlement = (output, context) => {
4290
4139
  const retVal = (output || [])
4291
4140
  .filter((e) => e != null)
4292
4141
  .map((entry) => {
4293
- if (entry === null) {
4294
- return null;
4295
- }
4296
4142
  return de_Entitlement(entry, context);
4297
4143
  });
4298
4144
  return retVal;
@@ -4301,9 +4147,6 @@ const de___listOfGatewayNetwork = (output, context) => {
4301
4147
  const retVal = (output || [])
4302
4148
  .filter((e) => e != null)
4303
4149
  .map((entry) => {
4304
- if (entry === null) {
4305
- return null;
4306
- }
4307
4150
  return de_GatewayNetwork(entry, context);
4308
4151
  });
4309
4152
  return retVal;
@@ -4312,9 +4155,6 @@ const de___listOfInputConfiguration = (output, context) => {
4312
4155
  const retVal = (output || [])
4313
4156
  .filter((e) => e != null)
4314
4157
  .map((entry) => {
4315
- if (entry === null) {
4316
- return null;
4317
- }
4318
4158
  return de_InputConfiguration(entry, context);
4319
4159
  });
4320
4160
  return retVal;
@@ -4323,9 +4163,6 @@ const de___listOfListedBridge = (output, context) => {
4323
4163
  const retVal = (output || [])
4324
4164
  .filter((e) => e != null)
4325
4165
  .map((entry) => {
4326
- if (entry === null) {
4327
- return null;
4328
- }
4329
4166
  return de_ListedBridge(entry, context);
4330
4167
  });
4331
4168
  return retVal;
@@ -4334,9 +4171,6 @@ const de___listOfListedEntitlement = (output, context) => {
4334
4171
  const retVal = (output || [])
4335
4172
  .filter((e) => e != null)
4336
4173
  .map((entry) => {
4337
- if (entry === null) {
4338
- return null;
4339
- }
4340
4174
  return de_ListedEntitlement(entry, context);
4341
4175
  });
4342
4176
  return retVal;
@@ -4345,9 +4179,6 @@ const de___listOfListedFlow = (output, context) => {
4345
4179
  const retVal = (output || [])
4346
4180
  .filter((e) => e != null)
4347
4181
  .map((entry) => {
4348
- if (entry === null) {
4349
- return null;
4350
- }
4351
4182
  return de_ListedFlow(entry, context);
4352
4183
  });
4353
4184
  return retVal;
@@ -4356,9 +4187,6 @@ const de___listOfListedGateway = (output, context) => {
4356
4187
  const retVal = (output || [])
4357
4188
  .filter((e) => e != null)
4358
4189
  .map((entry) => {
4359
- if (entry === null) {
4360
- return null;
4361
- }
4362
4190
  return de_ListedGateway(entry, context);
4363
4191
  });
4364
4192
  return retVal;
@@ -4367,9 +4195,6 @@ const de___listOfListedGatewayInstance = (output, context) => {
4367
4195
  const retVal = (output || [])
4368
4196
  .filter((e) => e != null)
4369
4197
  .map((entry) => {
4370
- if (entry === null) {
4371
- return null;
4372
- }
4373
4198
  return de_ListedGatewayInstance(entry, context);
4374
4199
  });
4375
4200
  return retVal;
@@ -4378,9 +4203,6 @@ const de___listOfMediaStream = (output, context) => {
4378
4203
  const retVal = (output || [])
4379
4204
  .filter((e) => e != null)
4380
4205
  .map((entry) => {
4381
- if (entry === null) {
4382
- return null;
4383
- }
4384
4206
  return de_MediaStream(entry, context);
4385
4207
  });
4386
4208
  return retVal;
@@ -4389,9 +4211,6 @@ const de___listOfMediaStreamOutputConfiguration = (output, context) => {
4389
4211
  const retVal = (output || [])
4390
4212
  .filter((e) => e != null)
4391
4213
  .map((entry) => {
4392
- if (entry === null) {
4393
- return null;
4394
- }
4395
4214
  return de_MediaStreamOutputConfiguration(entry, context);
4396
4215
  });
4397
4216
  return retVal;
@@ -4400,9 +4219,6 @@ const de___listOfMediaStreamSourceConfiguration = (output, context) => {
4400
4219
  const retVal = (output || [])
4401
4220
  .filter((e) => e != null)
4402
4221
  .map((entry) => {
4403
- if (entry === null) {
4404
- return null;
4405
- }
4406
4222
  return de_MediaStreamSourceConfiguration(entry, context);
4407
4223
  });
4408
4224
  return retVal;
@@ -4411,9 +4227,6 @@ const de___listOfMessageDetail = (output, context) => {
4411
4227
  const retVal = (output || [])
4412
4228
  .filter((e) => e != null)
4413
4229
  .map((entry) => {
4414
- if (entry === null) {
4415
- return null;
4416
- }
4417
4230
  return de_MessageDetail(entry, context);
4418
4231
  });
4419
4232
  return retVal;
@@ -4422,9 +4235,6 @@ const de___listOfOffering = (output, context) => {
4422
4235
  const retVal = (output || [])
4423
4236
  .filter((e) => e != null)
4424
4237
  .map((entry) => {
4425
- if (entry === null) {
4426
- return null;
4427
- }
4428
4238
  return de_Offering(entry, context);
4429
4239
  });
4430
4240
  return retVal;
@@ -4433,9 +4243,6 @@ const de___listOfOutput = (output, context) => {
4433
4243
  const retVal = (output || [])
4434
4244
  .filter((e) => e != null)
4435
4245
  .map((entry) => {
4436
- if (entry === null) {
4437
- return null;
4438
- }
4439
4246
  return de_Output(entry, context);
4440
4247
  });
4441
4248
  return retVal;
@@ -4444,9 +4251,6 @@ const de___listOfReservation = (output, context) => {
4444
4251
  const retVal = (output || [])
4445
4252
  .filter((e) => e != null)
4446
4253
  .map((entry) => {
4447
- if (entry === null) {
4448
- return null;
4449
- }
4450
4254
  return de_Reservation(entry, context);
4451
4255
  });
4452
4256
  return retVal;
@@ -4455,9 +4259,6 @@ const de___listOfSource = (output, context) => {
4455
4259
  const retVal = (output || [])
4456
4260
  .filter((e) => e != null)
4457
4261
  .map((entry) => {
4458
- if (entry === null) {
4459
- return null;
4460
- }
4461
4262
  return de_Source(entry, context);
4462
4263
  });
4463
4264
  return retVal;
@@ -4466,438 +4267,416 @@ const de___listOfVpcInterface = (output, context) => {
4466
4267
  const retVal = (output || [])
4467
4268
  .filter((e) => e != null)
4468
4269
  .map((entry) => {
4469
- if (entry === null) {
4470
- return null;
4471
- }
4472
4270
  return de_VpcInterface(entry, context);
4473
4271
  });
4474
4272
  return retVal;
4475
4273
  };
4476
- const de___mapOf__string = (output, context) => {
4477
- return Object.entries(output).reduce((acc, [key, value]) => {
4478
- if (value === null) {
4479
- return acc;
4480
- }
4481
- acc[key] = (0, smithy_client_1.expectString)(value);
4482
- return acc;
4483
- }, {});
4484
- };
4485
4274
  const de_Bridge = (output, context) => {
4486
- return {
4487
- BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
4488
- BridgeMessages: output.bridgeMessages != null ? de___listOfMessageDetail(output.bridgeMessages, context) : undefined,
4489
- BridgeState: (0, smithy_client_1.expectString)(output.bridgeState),
4490
- EgressGatewayBridge: output.egressGatewayBridge != null ? de_EgressGatewayBridge(output.egressGatewayBridge, context) : undefined,
4491
- IngressGatewayBridge: output.ingressGatewayBridge != null ? de_IngressGatewayBridge(output.ingressGatewayBridge, context) : undefined,
4492
- Name: (0, smithy_client_1.expectString)(output.name),
4493
- Outputs: output.outputs != null ? de___listOfBridgeOutput(output.outputs, context) : undefined,
4494
- PlacementArn: (0, smithy_client_1.expectString)(output.placementArn),
4495
- SourceFailoverConfig: output.sourceFailoverConfig != null ? de_FailoverConfig(output.sourceFailoverConfig, context) : undefined,
4496
- Sources: output.sources != null ? de___listOfBridgeSource(output.sources, context) : undefined,
4497
- };
4275
+ return (0, smithy_client_1.take)(output, {
4276
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4277
+ BridgeMessages: (_) => [, de___listOfMessageDetail(_, context), `bridgeMessages`],
4278
+ BridgeState: [, smithy_client_1.expectString, `bridgeState`],
4279
+ EgressGatewayBridge: (_) => [, de_EgressGatewayBridge(_, context), `egressGatewayBridge`],
4280
+ IngressGatewayBridge: (_) => [, de_IngressGatewayBridge(_, context), `ingressGatewayBridge`],
4281
+ Name: [, smithy_client_1.expectString, `name`],
4282
+ Outputs: (_) => [, de___listOfBridgeOutput(_, context), `outputs`],
4283
+ PlacementArn: [, smithy_client_1.expectString, `placementArn`],
4284
+ SourceFailoverConfig: (_) => [, de_FailoverConfig(_, context), `sourceFailoverConfig`],
4285
+ Sources: (_) => [, de___listOfBridgeSource(_, context), `sources`],
4286
+ });
4498
4287
  };
4499
4288
  const de_BridgeFlowOutput = (output, context) => {
4500
- return {
4501
- FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
4502
- FlowSourceArn: (0, smithy_client_1.expectString)(output.flowSourceArn),
4503
- Name: (0, smithy_client_1.expectString)(output.name),
4504
- };
4289
+ return (0, smithy_client_1.take)(output, {
4290
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
4291
+ FlowSourceArn: [, smithy_client_1.expectString, `flowSourceArn`],
4292
+ Name: [, smithy_client_1.expectString, `name`],
4293
+ });
4505
4294
  };
4506
4295
  const de_BridgeFlowSource = (output, context) => {
4507
- return {
4508
- FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
4509
- FlowVpcInterfaceAttachment: output.flowVpcInterfaceAttachment != null
4510
- ? de_VpcInterfaceAttachment(output.flowVpcInterfaceAttachment, context)
4511
- : undefined,
4512
- Name: (0, smithy_client_1.expectString)(output.name),
4513
- OutputArn: (0, smithy_client_1.expectString)(output.outputArn),
4514
- };
4296
+ return (0, smithy_client_1.take)(output, {
4297
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
4298
+ FlowVpcInterfaceAttachment: (_) => [, de_VpcInterfaceAttachment(_, context), `flowVpcInterfaceAttachment`],
4299
+ Name: [, smithy_client_1.expectString, `name`],
4300
+ OutputArn: [, smithy_client_1.expectString, `outputArn`],
4301
+ });
4515
4302
  };
4516
4303
  const de_BridgeNetworkOutput = (output, context) => {
4517
- return {
4518
- IpAddress: (0, smithy_client_1.expectString)(output.ipAddress),
4519
- Name: (0, smithy_client_1.expectString)(output.name),
4520
- NetworkName: (0, smithy_client_1.expectString)(output.networkName),
4521
- Port: (0, smithy_client_1.expectInt32)(output.port),
4522
- Protocol: (0, smithy_client_1.expectString)(output.protocol),
4523
- Ttl: (0, smithy_client_1.expectInt32)(output.ttl),
4524
- };
4304
+ return (0, smithy_client_1.take)(output, {
4305
+ IpAddress: [, smithy_client_1.expectString, `ipAddress`],
4306
+ Name: [, smithy_client_1.expectString, `name`],
4307
+ NetworkName: [, smithy_client_1.expectString, `networkName`],
4308
+ Port: [, smithy_client_1.expectInt32, `port`],
4309
+ Protocol: [, smithy_client_1.expectString, `protocol`],
4310
+ Ttl: [, smithy_client_1.expectInt32, `ttl`],
4311
+ });
4525
4312
  };
4526
4313
  const de_BridgeNetworkSource = (output, context) => {
4527
- return {
4528
- MulticastIp: (0, smithy_client_1.expectString)(output.multicastIp),
4529
- Name: (0, smithy_client_1.expectString)(output.name),
4530
- NetworkName: (0, smithy_client_1.expectString)(output.networkName),
4531
- Port: (0, smithy_client_1.expectInt32)(output.port),
4532
- Protocol: (0, smithy_client_1.expectString)(output.protocol),
4533
- };
4314
+ return (0, smithy_client_1.take)(output, {
4315
+ MulticastIp: [, smithy_client_1.expectString, `multicastIp`],
4316
+ Name: [, smithy_client_1.expectString, `name`],
4317
+ NetworkName: [, smithy_client_1.expectString, `networkName`],
4318
+ Port: [, smithy_client_1.expectInt32, `port`],
4319
+ Protocol: [, smithy_client_1.expectString, `protocol`],
4320
+ });
4534
4321
  };
4535
4322
  const de_BridgeOutput = (output, context) => {
4536
- return {
4537
- FlowOutput: output.flowOutput != null ? de_BridgeFlowOutput(output.flowOutput, context) : undefined,
4538
- NetworkOutput: output.networkOutput != null ? de_BridgeNetworkOutput(output.networkOutput, context) : undefined,
4539
- };
4323
+ return (0, smithy_client_1.take)(output, {
4324
+ FlowOutput: (_) => [, de_BridgeFlowOutput(_, context), `flowOutput`],
4325
+ NetworkOutput: (_) => [, de_BridgeNetworkOutput(_, context), `networkOutput`],
4326
+ });
4540
4327
  };
4541
4328
  const de_BridgeSource = (output, context) => {
4542
- return {
4543
- FlowSource: output.flowSource != null ? de_BridgeFlowSource(output.flowSource, context) : undefined,
4544
- NetworkSource: output.networkSource != null ? de_BridgeNetworkSource(output.networkSource, context) : undefined,
4545
- };
4329
+ return (0, smithy_client_1.take)(output, {
4330
+ FlowSource: (_) => [, de_BridgeFlowSource(_, context), `flowSource`],
4331
+ NetworkSource: (_) => [, de_BridgeNetworkSource(_, context), `networkSource`],
4332
+ });
4546
4333
  };
4547
4334
  const de_DestinationConfiguration = (output, context) => {
4548
- return {
4549
- DestinationIp: (0, smithy_client_1.expectString)(output.destinationIp),
4550
- DestinationPort: (0, smithy_client_1.expectInt32)(output.destinationPort),
4551
- Interface: output.interface != null ? de_Interface(output.interface, context) : undefined,
4552
- OutboundIp: (0, smithy_client_1.expectString)(output.outboundIp),
4553
- };
4335
+ return (0, smithy_client_1.take)(output, {
4336
+ DestinationIp: [, smithy_client_1.expectString, `destinationIp`],
4337
+ DestinationPort: [, smithy_client_1.expectInt32, `destinationPort`],
4338
+ Interface: (_) => [, de_Interface(_, context), `interface`],
4339
+ OutboundIp: [, smithy_client_1.expectString, `outboundIp`],
4340
+ });
4554
4341
  };
4555
4342
  const de_EgressGatewayBridge = (output, context) => {
4556
- return {
4557
- InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
4558
- MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
4559
- };
4343
+ return (0, smithy_client_1.take)(output, {
4344
+ InstanceId: [, smithy_client_1.expectString, `instanceId`],
4345
+ MaxBitrate: [, smithy_client_1.expectInt32, `maxBitrate`],
4346
+ });
4560
4347
  };
4561
4348
  const de_EncodingParameters = (output, context) => {
4562
- return {
4563
- CompressionFactor: (0, smithy_client_1.limitedParseDouble)(output.compressionFactor),
4564
- EncoderProfile: (0, smithy_client_1.expectString)(output.encoderProfile),
4565
- };
4349
+ return (0, smithy_client_1.take)(output, {
4350
+ CompressionFactor: [, smithy_client_1.limitedParseDouble, `compressionFactor`],
4351
+ EncoderProfile: [, smithy_client_1.expectString, `encoderProfile`],
4352
+ });
4566
4353
  };
4567
4354
  const de_Encryption = (output, context) => {
4568
- return {
4569
- Algorithm: (0, smithy_client_1.expectString)(output.algorithm),
4570
- ConstantInitializationVector: (0, smithy_client_1.expectString)(output.constantInitializationVector),
4571
- DeviceId: (0, smithy_client_1.expectString)(output.deviceId),
4572
- KeyType: (0, smithy_client_1.expectString)(output.keyType),
4573
- Region: (0, smithy_client_1.expectString)(output.region),
4574
- ResourceId: (0, smithy_client_1.expectString)(output.resourceId),
4575
- RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
4576
- SecretArn: (0, smithy_client_1.expectString)(output.secretArn),
4577
- Url: (0, smithy_client_1.expectString)(output.url),
4578
- };
4355
+ return (0, smithy_client_1.take)(output, {
4356
+ Algorithm: [, smithy_client_1.expectString, `algorithm`],
4357
+ ConstantInitializationVector: [, smithy_client_1.expectString, `constantInitializationVector`],
4358
+ DeviceId: [, smithy_client_1.expectString, `deviceId`],
4359
+ KeyType: [, smithy_client_1.expectString, `keyType`],
4360
+ Region: [, smithy_client_1.expectString, `region`],
4361
+ ResourceId: [, smithy_client_1.expectString, `resourceId`],
4362
+ RoleArn: [, smithy_client_1.expectString, `roleArn`],
4363
+ SecretArn: [, smithy_client_1.expectString, `secretArn`],
4364
+ Url: [, smithy_client_1.expectString, `url`],
4365
+ });
4579
4366
  };
4580
4367
  const de_Entitlement = (output, context) => {
4581
- return {
4582
- DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
4583
- Description: (0, smithy_client_1.expectString)(output.description),
4584
- Encryption: output.encryption != null ? de_Encryption(output.encryption, context) : undefined,
4585
- EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
4586
- EntitlementStatus: (0, smithy_client_1.expectString)(output.entitlementStatus),
4587
- Name: (0, smithy_client_1.expectString)(output.name),
4588
- Subscribers: output.subscribers != null ? de___listOf__string(output.subscribers, context) : undefined,
4589
- };
4368
+ return (0, smithy_client_1.take)(output, {
4369
+ DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4370
+ Description: [, smithy_client_1.expectString, `description`],
4371
+ Encryption: (_) => [, de_Encryption(_, context), `encryption`],
4372
+ EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4373
+ EntitlementStatus: [, smithy_client_1.expectString, `entitlementStatus`],
4374
+ Name: [, smithy_client_1.expectString, `name`],
4375
+ Subscribers: [, smithy_client_1._json, `subscribers`],
4376
+ });
4590
4377
  };
4591
4378
  const de_FailoverConfig = (output, context) => {
4592
- return {
4593
- FailoverMode: (0, smithy_client_1.expectString)(output.failoverMode),
4594
- RecoveryWindow: (0, smithy_client_1.expectInt32)(output.recoveryWindow),
4595
- SourcePriority: output.sourcePriority != null ? de_SourcePriority(output.sourcePriority, context) : undefined,
4596
- State: (0, smithy_client_1.expectString)(output.state),
4597
- };
4379
+ return (0, smithy_client_1.take)(output, {
4380
+ FailoverMode: [, smithy_client_1.expectString, `failoverMode`],
4381
+ RecoveryWindow: [, smithy_client_1.expectInt32, `recoveryWindow`],
4382
+ SourcePriority: (_) => [, de_SourcePriority(_, context), `sourcePriority`],
4383
+ State: [, smithy_client_1.expectString, `state`],
4384
+ });
4598
4385
  };
4599
4386
  const de_Flow = (output, context) => {
4600
- return {
4601
- AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
4602
- Description: (0, smithy_client_1.expectString)(output.description),
4603
- EgressIp: (0, smithy_client_1.expectString)(output.egressIp),
4604
- Entitlements: output.entitlements != null ? de___listOfEntitlement(output.entitlements, context) : undefined,
4605
- FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
4606
- Maintenance: output.maintenance != null ? de_Maintenance(output.maintenance, context) : undefined,
4607
- MediaStreams: output.mediaStreams != null ? de___listOfMediaStream(output.mediaStreams, context) : undefined,
4608
- Name: (0, smithy_client_1.expectString)(output.name),
4609
- Outputs: output.outputs != null ? de___listOfOutput(output.outputs, context) : undefined,
4610
- Source: output.source != null ? de_Source(output.source, context) : undefined,
4611
- SourceFailoverConfig: output.sourceFailoverConfig != null ? de_FailoverConfig(output.sourceFailoverConfig, context) : undefined,
4612
- Sources: output.sources != null ? de___listOfSource(output.sources, context) : undefined,
4613
- Status: (0, smithy_client_1.expectString)(output.status),
4614
- VpcInterfaces: output.vpcInterfaces != null ? de___listOfVpcInterface(output.vpcInterfaces, context) : undefined,
4615
- };
4387
+ return (0, smithy_client_1.take)(output, {
4388
+ AvailabilityZone: [, smithy_client_1.expectString, `availabilityZone`],
4389
+ Description: [, smithy_client_1.expectString, `description`],
4390
+ EgressIp: [, smithy_client_1.expectString, `egressIp`],
4391
+ Entitlements: (_) => [, de___listOfEntitlement(_, context), `entitlements`],
4392
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
4393
+ Maintenance: (_) => [, de_Maintenance(_, context), `maintenance`],
4394
+ MediaStreams: (_) => [, de___listOfMediaStream(_, context), `mediaStreams`],
4395
+ Name: [, smithy_client_1.expectString, `name`],
4396
+ Outputs: (_) => [, de___listOfOutput(_, context), `outputs`],
4397
+ Source: (_) => [, de_Source(_, context), `source`],
4398
+ SourceFailoverConfig: (_) => [, de_FailoverConfig(_, context), `sourceFailoverConfig`],
4399
+ Sources: (_) => [, de___listOfSource(_, context), `sources`],
4400
+ Status: [, smithy_client_1.expectString, `status`],
4401
+ VpcInterfaces: (_) => [, de___listOfVpcInterface(_, context), `vpcInterfaces`],
4402
+ });
4616
4403
  };
4617
4404
  const de_Fmtp = (output, context) => {
4618
- return {
4619
- ChannelOrder: (0, smithy_client_1.expectString)(output.channelOrder),
4620
- Colorimetry: (0, smithy_client_1.expectString)(output.colorimetry),
4621
- ExactFramerate: (0, smithy_client_1.expectString)(output.exactFramerate),
4622
- Par: (0, smithy_client_1.expectString)(output.par),
4623
- Range: (0, smithy_client_1.expectString)(output.range),
4624
- ScanMode: (0, smithy_client_1.expectString)(output.scanMode),
4625
- Tcs: (0, smithy_client_1.expectString)(output.tcs),
4626
- };
4405
+ return (0, smithy_client_1.take)(output, {
4406
+ ChannelOrder: [, smithy_client_1.expectString, `channelOrder`],
4407
+ Colorimetry: [, smithy_client_1.expectString, `colorimetry`],
4408
+ ExactFramerate: [, smithy_client_1.expectString, `exactFramerate`],
4409
+ Par: [, smithy_client_1.expectString, `par`],
4410
+ Range: [, smithy_client_1.expectString, `range`],
4411
+ ScanMode: [, smithy_client_1.expectString, `scanMode`],
4412
+ Tcs: [, smithy_client_1.expectString, `tcs`],
4413
+ });
4627
4414
  };
4628
4415
  const de_Gateway = (output, context) => {
4629
- return {
4630
- EgressCidrBlocks: output.egressCidrBlocks != null ? de___listOf__string(output.egressCidrBlocks, context) : undefined,
4631
- GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
4632
- GatewayMessages: output.gatewayMessages != null ? de___listOfMessageDetail(output.gatewayMessages, context) : undefined,
4633
- GatewayState: (0, smithy_client_1.expectString)(output.gatewayState),
4634
- Name: (0, smithy_client_1.expectString)(output.name),
4635
- Networks: output.networks != null ? de___listOfGatewayNetwork(output.networks, context) : undefined,
4636
- };
4416
+ return (0, smithy_client_1.take)(output, {
4417
+ EgressCidrBlocks: [, smithy_client_1._json, `egressCidrBlocks`],
4418
+ GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4419
+ GatewayMessages: (_) => [, de___listOfMessageDetail(_, context), `gatewayMessages`],
4420
+ GatewayState: [, smithy_client_1.expectString, `gatewayState`],
4421
+ Name: [, smithy_client_1.expectString, `name`],
4422
+ Networks: (_) => [, de___listOfGatewayNetwork(_, context), `networks`],
4423
+ });
4637
4424
  };
4638
4425
  const de_GatewayBridgeSource = (output, context) => {
4639
- return {
4640
- BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
4641
- VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
4642
- ? de_VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
4643
- : undefined,
4644
- };
4426
+ return (0, smithy_client_1.take)(output, {
4427
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4428
+ VpcInterfaceAttachment: (_) => [, de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],
4429
+ });
4645
4430
  };
4646
4431
  const de_GatewayInstance = (output, context) => {
4647
- return {
4648
- BridgePlacement: (0, smithy_client_1.expectString)(output.bridgePlacement),
4649
- ConnectionStatus: (0, smithy_client_1.expectString)(output.connectionStatus),
4650
- GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
4651
- GatewayInstanceArn: (0, smithy_client_1.expectString)(output.gatewayInstanceArn),
4652
- InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
4653
- InstanceMessages: output.instanceMessages != null ? de___listOfMessageDetail(output.instanceMessages, context) : undefined,
4654
- InstanceState: (0, smithy_client_1.expectString)(output.instanceState),
4655
- RunningBridgeCount: (0, smithy_client_1.expectInt32)(output.runningBridgeCount),
4656
- };
4432
+ return (0, smithy_client_1.take)(output, {
4433
+ BridgePlacement: [, smithy_client_1.expectString, `bridgePlacement`],
4434
+ ConnectionStatus: [, smithy_client_1.expectString, `connectionStatus`],
4435
+ GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4436
+ GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
4437
+ InstanceId: [, smithy_client_1.expectString, `instanceId`],
4438
+ InstanceMessages: (_) => [, de___listOfMessageDetail(_, context), `instanceMessages`],
4439
+ InstanceState: [, smithy_client_1.expectString, `instanceState`],
4440
+ RunningBridgeCount: [, smithy_client_1.expectInt32, `runningBridgeCount`],
4441
+ });
4657
4442
  };
4658
4443
  const de_GatewayNetwork = (output, context) => {
4659
- return {
4660
- CidrBlock: (0, smithy_client_1.expectString)(output.cidrBlock),
4661
- Name: (0, smithy_client_1.expectString)(output.name),
4662
- };
4444
+ return (0, smithy_client_1.take)(output, {
4445
+ CidrBlock: [, smithy_client_1.expectString, `cidrBlock`],
4446
+ Name: [, smithy_client_1.expectString, `name`],
4447
+ });
4663
4448
  };
4664
4449
  const de_IngressGatewayBridge = (output, context) => {
4665
- return {
4666
- InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
4667
- MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
4668
- MaxOutputs: (0, smithy_client_1.expectInt32)(output.maxOutputs),
4669
- };
4450
+ return (0, smithy_client_1.take)(output, {
4451
+ InstanceId: [, smithy_client_1.expectString, `instanceId`],
4452
+ MaxBitrate: [, smithy_client_1.expectInt32, `maxBitrate`],
4453
+ MaxOutputs: [, smithy_client_1.expectInt32, `maxOutputs`],
4454
+ });
4670
4455
  };
4671
4456
  const de_InputConfiguration = (output, context) => {
4672
- return {
4673
- InputIp: (0, smithy_client_1.expectString)(output.inputIp),
4674
- InputPort: (0, smithy_client_1.expectInt32)(output.inputPort),
4675
- Interface: output.interface != null ? de_Interface(output.interface, context) : undefined,
4676
- };
4457
+ return (0, smithy_client_1.take)(output, {
4458
+ InputIp: [, smithy_client_1.expectString, `inputIp`],
4459
+ InputPort: [, smithy_client_1.expectInt32, `inputPort`],
4460
+ Interface: (_) => [, de_Interface(_, context), `interface`],
4461
+ });
4677
4462
  };
4678
4463
  const de_Interface = (output, context) => {
4679
- return {
4680
- Name: (0, smithy_client_1.expectString)(output.name),
4681
- };
4464
+ return (0, smithy_client_1.take)(output, {
4465
+ Name: [, smithy_client_1.expectString, `name`],
4466
+ });
4682
4467
  };
4683
4468
  const de_ListedBridge = (output, context) => {
4684
- return {
4685
- BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
4686
- BridgeState: (0, smithy_client_1.expectString)(output.bridgeState),
4687
- BridgeType: (0, smithy_client_1.expectString)(output.bridgeType),
4688
- Name: (0, smithy_client_1.expectString)(output.name),
4689
- PlacementArn: (0, smithy_client_1.expectString)(output.placementArn),
4690
- };
4469
+ return (0, smithy_client_1.take)(output, {
4470
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4471
+ BridgeState: [, smithy_client_1.expectString, `bridgeState`],
4472
+ BridgeType: [, smithy_client_1.expectString, `bridgeType`],
4473
+ Name: [, smithy_client_1.expectString, `name`],
4474
+ PlacementArn: [, smithy_client_1.expectString, `placementArn`],
4475
+ });
4691
4476
  };
4692
4477
  const de_ListedEntitlement = (output, context) => {
4693
- return {
4694
- DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
4695
- EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
4696
- EntitlementName: (0, smithy_client_1.expectString)(output.entitlementName),
4697
- };
4478
+ return (0, smithy_client_1.take)(output, {
4479
+ DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4480
+ EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4481
+ EntitlementName: [, smithy_client_1.expectString, `entitlementName`],
4482
+ });
4698
4483
  };
4699
4484
  const de_ListedFlow = (output, context) => {
4700
- return {
4701
- AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
4702
- Description: (0, smithy_client_1.expectString)(output.description),
4703
- FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
4704
- Maintenance: output.maintenance != null ? de_Maintenance(output.maintenance, context) : undefined,
4705
- Name: (0, smithy_client_1.expectString)(output.name),
4706
- SourceType: (0, smithy_client_1.expectString)(output.sourceType),
4707
- Status: (0, smithy_client_1.expectString)(output.status),
4708
- };
4485
+ return (0, smithy_client_1.take)(output, {
4486
+ AvailabilityZone: [, smithy_client_1.expectString, `availabilityZone`],
4487
+ Description: [, smithy_client_1.expectString, `description`],
4488
+ FlowArn: [, smithy_client_1.expectString, `flowArn`],
4489
+ Maintenance: (_) => [, de_Maintenance(_, context), `maintenance`],
4490
+ Name: [, smithy_client_1.expectString, `name`],
4491
+ SourceType: [, smithy_client_1.expectString, `sourceType`],
4492
+ Status: [, smithy_client_1.expectString, `status`],
4493
+ });
4709
4494
  };
4710
4495
  const de_ListedGateway = (output, context) => {
4711
- return {
4712
- GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
4713
- GatewayState: (0, smithy_client_1.expectString)(output.gatewayState),
4714
- Name: (0, smithy_client_1.expectString)(output.name),
4715
- };
4496
+ return (0, smithy_client_1.take)(output, {
4497
+ GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4498
+ GatewayState: [, smithy_client_1.expectString, `gatewayState`],
4499
+ Name: [, smithy_client_1.expectString, `name`],
4500
+ });
4716
4501
  };
4717
4502
  const de_ListedGatewayInstance = (output, context) => {
4718
- return {
4719
- GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
4720
- GatewayInstanceArn: (0, smithy_client_1.expectString)(output.gatewayInstanceArn),
4721
- InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
4722
- InstanceState: (0, smithy_client_1.expectString)(output.instanceState),
4723
- };
4503
+ return (0, smithy_client_1.take)(output, {
4504
+ GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4505
+ GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
4506
+ InstanceId: [, smithy_client_1.expectString, `instanceId`],
4507
+ InstanceState: [, smithy_client_1.expectString, `instanceState`],
4508
+ });
4724
4509
  };
4725
4510
  const de_Maintenance = (output, context) => {
4726
- return {
4727
- MaintenanceDay: (0, smithy_client_1.expectString)(output.maintenanceDay),
4728
- MaintenanceDeadline: (0, smithy_client_1.expectString)(output.maintenanceDeadline),
4729
- MaintenanceScheduledDate: (0, smithy_client_1.expectString)(output.maintenanceScheduledDate),
4730
- MaintenanceStartHour: (0, smithy_client_1.expectString)(output.maintenanceStartHour),
4731
- };
4511
+ return (0, smithy_client_1.take)(output, {
4512
+ MaintenanceDay: [, smithy_client_1.expectString, `maintenanceDay`],
4513
+ MaintenanceDeadline: [, smithy_client_1.expectString, `maintenanceDeadline`],
4514
+ MaintenanceScheduledDate: [, smithy_client_1.expectString, `maintenanceScheduledDate`],
4515
+ MaintenanceStartHour: [, smithy_client_1.expectString, `maintenanceStartHour`],
4516
+ });
4732
4517
  };
4733
4518
  const de_MediaStream = (output, context) => {
4734
- return {
4735
- Attributes: output.attributes != null ? de_MediaStreamAttributes(output.attributes, context) : undefined,
4736
- ClockRate: (0, smithy_client_1.expectInt32)(output.clockRate),
4737
- Description: (0, smithy_client_1.expectString)(output.description),
4738
- Fmt: (0, smithy_client_1.expectInt32)(output.fmt),
4739
- MediaStreamId: (0, smithy_client_1.expectInt32)(output.mediaStreamId),
4740
- MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
4741
- MediaStreamType: (0, smithy_client_1.expectString)(output.mediaStreamType),
4742
- VideoFormat: (0, smithy_client_1.expectString)(output.videoFormat),
4743
- };
4519
+ return (0, smithy_client_1.take)(output, {
4520
+ Attributes: (_) => [, de_MediaStreamAttributes(_, context), `attributes`],
4521
+ ClockRate: [, smithy_client_1.expectInt32, `clockRate`],
4522
+ Description: [, smithy_client_1.expectString, `description`],
4523
+ Fmt: [, smithy_client_1.expectInt32, `fmt`],
4524
+ MediaStreamId: [, smithy_client_1.expectInt32, `mediaStreamId`],
4525
+ MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
4526
+ MediaStreamType: [, smithy_client_1.expectString, `mediaStreamType`],
4527
+ VideoFormat: [, smithy_client_1.expectString, `videoFormat`],
4528
+ });
4744
4529
  };
4745
4530
  const de_MediaStreamAttributes = (output, context) => {
4746
- return {
4747
- Fmtp: output.fmtp != null ? de_Fmtp(output.fmtp, context) : undefined,
4748
- Lang: (0, smithy_client_1.expectString)(output.lang),
4749
- };
4531
+ return (0, smithy_client_1.take)(output, {
4532
+ Fmtp: (_) => [, de_Fmtp(_, context), `fmtp`],
4533
+ Lang: [, smithy_client_1.expectString, `lang`],
4534
+ });
4750
4535
  };
4751
4536
  const de_MediaStreamOutputConfiguration = (output, context) => {
4752
- return {
4753
- DestinationConfigurations: output.destinationConfigurations != null
4754
- ? de___listOfDestinationConfiguration(output.destinationConfigurations, context)
4755
- : undefined,
4756
- EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
4757
- EncodingParameters: output.encodingParameters != null ? de_EncodingParameters(output.encodingParameters, context) : undefined,
4758
- MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
4759
- };
4537
+ return (0, smithy_client_1.take)(output, {
4538
+ DestinationConfigurations: (_) => [, de___listOfDestinationConfiguration(_, context), `destinationConfigurations`],
4539
+ EncodingName: [, smithy_client_1.expectString, `encodingName`],
4540
+ EncodingParameters: (_) => [, de_EncodingParameters(_, context), `encodingParameters`],
4541
+ MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
4542
+ });
4760
4543
  };
4761
4544
  const de_MediaStreamSourceConfiguration = (output, context) => {
4762
- return {
4763
- EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
4764
- InputConfigurations: output.inputConfigurations != null
4765
- ? de___listOfInputConfiguration(output.inputConfigurations, context)
4766
- : undefined,
4767
- MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
4768
- };
4545
+ return (0, smithy_client_1.take)(output, {
4546
+ EncodingName: [, smithy_client_1.expectString, `encodingName`],
4547
+ InputConfigurations: (_) => [, de___listOfInputConfiguration(_, context), `inputConfigurations`],
4548
+ MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
4549
+ });
4769
4550
  };
4770
4551
  const de_MessageDetail = (output, context) => {
4771
- return {
4772
- Code: (0, smithy_client_1.expectString)(output.code),
4773
- Message: (0, smithy_client_1.expectString)(output.message),
4774
- ResourceName: (0, smithy_client_1.expectString)(output.resourceName),
4775
- };
4552
+ return (0, smithy_client_1.take)(output, {
4553
+ Code: [, smithy_client_1.expectString, `code`],
4554
+ Message: [, smithy_client_1.expectString, `message`],
4555
+ ResourceName: [, smithy_client_1.expectString, `resourceName`],
4556
+ });
4776
4557
  };
4777
4558
  const de_Messages = (output, context) => {
4778
- return {
4779
- Errors: output.errors != null ? de___listOf__string(output.errors, context) : undefined,
4780
- };
4559
+ return (0, smithy_client_1.take)(output, {
4560
+ Errors: [, smithy_client_1._json, `errors`],
4561
+ });
4781
4562
  };
4782
4563
  const de_Offering = (output, context) => {
4783
- return {
4784
- CurrencyCode: (0, smithy_client_1.expectString)(output.currencyCode),
4785
- Duration: (0, smithy_client_1.expectInt32)(output.duration),
4786
- DurationUnits: (0, smithy_client_1.expectString)(output.durationUnits),
4787
- OfferingArn: (0, smithy_client_1.expectString)(output.offeringArn),
4788
- OfferingDescription: (0, smithy_client_1.expectString)(output.offeringDescription),
4789
- PricePerUnit: (0, smithy_client_1.expectString)(output.pricePerUnit),
4790
- PriceUnits: (0, smithy_client_1.expectString)(output.priceUnits),
4791
- ResourceSpecification: output.resourceSpecification != null
4792
- ? de_ResourceSpecification(output.resourceSpecification, context)
4793
- : undefined,
4794
- };
4564
+ return (0, smithy_client_1.take)(output, {
4565
+ CurrencyCode: [, smithy_client_1.expectString, `currencyCode`],
4566
+ Duration: [, smithy_client_1.expectInt32, `duration`],
4567
+ DurationUnits: [, smithy_client_1.expectString, `durationUnits`],
4568
+ OfferingArn: [, smithy_client_1.expectString, `offeringArn`],
4569
+ OfferingDescription: [, smithy_client_1.expectString, `offeringDescription`],
4570
+ PricePerUnit: [, smithy_client_1.expectString, `pricePerUnit`],
4571
+ PriceUnits: [, smithy_client_1.expectString, `priceUnits`],
4572
+ ResourceSpecification: (_) => [, de_ResourceSpecification(_, context), `resourceSpecification`],
4573
+ });
4795
4574
  };
4796
4575
  const de_Output = (output, context) => {
4797
- return {
4798
- BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
4799
- BridgePorts: output.bridgePorts != null ? de___listOf__integer(output.bridgePorts, context) : undefined,
4800
- DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
4801
- Description: (0, smithy_client_1.expectString)(output.description),
4802
- Destination: (0, smithy_client_1.expectString)(output.destination),
4803
- Encryption: output.encryption != null ? de_Encryption(output.encryption, context) : undefined,
4804
- EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
4805
- ListenerAddress: (0, smithy_client_1.expectString)(output.listenerAddress),
4806
- MediaLiveInputArn: (0, smithy_client_1.expectString)(output.mediaLiveInputArn),
4807
- MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations != null
4808
- ? de___listOfMediaStreamOutputConfiguration(output.mediaStreamOutputConfigurations, context)
4809
- : undefined,
4810
- Name: (0, smithy_client_1.expectString)(output.name),
4811
- OutputArn: (0, smithy_client_1.expectString)(output.outputArn),
4812
- Port: (0, smithy_client_1.expectInt32)(output.port),
4813
- Transport: output.transport != null ? de_Transport(output.transport, context) : undefined,
4814
- VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
4815
- ? de_VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
4816
- : undefined,
4817
- };
4576
+ return (0, smithy_client_1.take)(output, {
4577
+ BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4578
+ BridgePorts: [, smithy_client_1._json, `bridgePorts`],
4579
+ DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4580
+ Description: [, smithy_client_1.expectString, `description`],
4581
+ Destination: [, smithy_client_1.expectString, `destination`],
4582
+ Encryption: (_) => [, de_Encryption(_, context), `encryption`],
4583
+ EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4584
+ ListenerAddress: [, smithy_client_1.expectString, `listenerAddress`],
4585
+ MediaLiveInputArn: [, smithy_client_1.expectString, `mediaLiveInputArn`],
4586
+ MediaStreamOutputConfigurations: (_) => [
4587
+ ,
4588
+ de___listOfMediaStreamOutputConfiguration(_, context),
4589
+ `mediaStreamOutputConfigurations`,
4590
+ ],
4591
+ Name: [, smithy_client_1.expectString, `name`],
4592
+ OutputArn: [, smithy_client_1.expectString, `outputArn`],
4593
+ Port: [, smithy_client_1.expectInt32, `port`],
4594
+ Transport: (_) => [, de_Transport(_, context), `transport`],
4595
+ VpcInterfaceAttachment: (_) => [, de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],
4596
+ });
4818
4597
  };
4819
4598
  const de_Reservation = (output, context) => {
4820
- return {
4821
- CurrencyCode: (0, smithy_client_1.expectString)(output.currencyCode),
4822
- Duration: (0, smithy_client_1.expectInt32)(output.duration),
4823
- DurationUnits: (0, smithy_client_1.expectString)(output.durationUnits),
4824
- End: (0, smithy_client_1.expectString)(output.end),
4825
- OfferingArn: (0, smithy_client_1.expectString)(output.offeringArn),
4826
- OfferingDescription: (0, smithy_client_1.expectString)(output.offeringDescription),
4827
- PricePerUnit: (0, smithy_client_1.expectString)(output.pricePerUnit),
4828
- PriceUnits: (0, smithy_client_1.expectString)(output.priceUnits),
4829
- ReservationArn: (0, smithy_client_1.expectString)(output.reservationArn),
4830
- ReservationName: (0, smithy_client_1.expectString)(output.reservationName),
4831
- ReservationState: (0, smithy_client_1.expectString)(output.reservationState),
4832
- ResourceSpecification: output.resourceSpecification != null
4833
- ? de_ResourceSpecification(output.resourceSpecification, context)
4834
- : undefined,
4835
- Start: (0, smithy_client_1.expectString)(output.start),
4836
- };
4599
+ return (0, smithy_client_1.take)(output, {
4600
+ CurrencyCode: [, smithy_client_1.expectString, `currencyCode`],
4601
+ Duration: [, smithy_client_1.expectInt32, `duration`],
4602
+ DurationUnits: [, smithy_client_1.expectString, `durationUnits`],
4603
+ End: [, smithy_client_1.expectString, `end`],
4604
+ OfferingArn: [, smithy_client_1.expectString, `offeringArn`],
4605
+ OfferingDescription: [, smithy_client_1.expectString, `offeringDescription`],
4606
+ PricePerUnit: [, smithy_client_1.expectString, `pricePerUnit`],
4607
+ PriceUnits: [, smithy_client_1.expectString, `priceUnits`],
4608
+ ReservationArn: [, smithy_client_1.expectString, `reservationArn`],
4609
+ ReservationName: [, smithy_client_1.expectString, `reservationName`],
4610
+ ReservationState: [, smithy_client_1.expectString, `reservationState`],
4611
+ ResourceSpecification: (_) => [, de_ResourceSpecification(_, context), `resourceSpecification`],
4612
+ Start: [, smithy_client_1.expectString, `start`],
4613
+ });
4837
4614
  };
4838
4615
  const de_ResourceSpecification = (output, context) => {
4839
- return {
4840
- ReservedBitrate: (0, smithy_client_1.expectInt32)(output.reservedBitrate),
4841
- ResourceType: (0, smithy_client_1.expectString)(output.resourceType),
4842
- };
4616
+ return (0, smithy_client_1.take)(output, {
4617
+ ReservedBitrate: [, smithy_client_1.expectInt32, `reservedBitrate`],
4618
+ ResourceType: [, smithy_client_1.expectString, `resourceType`],
4619
+ });
4843
4620
  };
4844
4621
  const de_Source = (output, context) => {
4845
- return {
4846
- DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
4847
- Decryption: output.decryption != null ? de_Encryption(output.decryption, context) : undefined,
4848
- Description: (0, smithy_client_1.expectString)(output.description),
4849
- EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
4850
- GatewayBridgeSource: output.gatewayBridgeSource != null ? de_GatewayBridgeSource(output.gatewayBridgeSource, context) : undefined,
4851
- IngestIp: (0, smithy_client_1.expectString)(output.ingestIp),
4852
- IngestPort: (0, smithy_client_1.expectInt32)(output.ingestPort),
4853
- MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
4854
- ? de___listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
4855
- : undefined,
4856
- Name: (0, smithy_client_1.expectString)(output.name),
4857
- SenderControlPort: (0, smithy_client_1.expectInt32)(output.senderControlPort),
4858
- SenderIpAddress: (0, smithy_client_1.expectString)(output.senderIpAddress),
4859
- SourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
4860
- Transport: output.transport != null ? de_Transport(output.transport, context) : undefined,
4861
- VpcInterfaceName: (0, smithy_client_1.expectString)(output.vpcInterfaceName),
4862
- WhitelistCidr: (0, smithy_client_1.expectString)(output.whitelistCidr),
4863
- };
4622
+ return (0, smithy_client_1.take)(output, {
4623
+ DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4624
+ Decryption: (_) => [, de_Encryption(_, context), `decryption`],
4625
+ Description: [, smithy_client_1.expectString, `description`],
4626
+ EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4627
+ GatewayBridgeSource: (_) => [, de_GatewayBridgeSource(_, context), `gatewayBridgeSource`],
4628
+ IngestIp: [, smithy_client_1.expectString, `ingestIp`],
4629
+ IngestPort: [, smithy_client_1.expectInt32, `ingestPort`],
4630
+ MediaStreamSourceConfigurations: (_) => [
4631
+ ,
4632
+ de___listOfMediaStreamSourceConfiguration(_, context),
4633
+ `mediaStreamSourceConfigurations`,
4634
+ ],
4635
+ Name: [, smithy_client_1.expectString, `name`],
4636
+ SenderControlPort: [, smithy_client_1.expectInt32, `senderControlPort`],
4637
+ SenderIpAddress: [, smithy_client_1.expectString, `senderIpAddress`],
4638
+ SourceArn: [, smithy_client_1.expectString, `sourceArn`],
4639
+ Transport: (_) => [, de_Transport(_, context), `transport`],
4640
+ VpcInterfaceName: [, smithy_client_1.expectString, `vpcInterfaceName`],
4641
+ WhitelistCidr: [, smithy_client_1.expectString, `whitelistCidr`],
4642
+ });
4864
4643
  };
4865
4644
  const de_SourcePriority = (output, context) => {
4866
- return {
4867
- PrimarySource: (0, smithy_client_1.expectString)(output.primarySource),
4868
- };
4645
+ return (0, smithy_client_1.take)(output, {
4646
+ PrimarySource: [, smithy_client_1.expectString, `primarySource`],
4647
+ });
4869
4648
  };
4870
4649
  const de_Transport = (output, context) => {
4871
- return {
4872
- CidrAllowList: output.cidrAllowList != null ? de___listOf__string(output.cidrAllowList, context) : undefined,
4873
- MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
4874
- MaxLatency: (0, smithy_client_1.expectInt32)(output.maxLatency),
4875
- MaxSyncBuffer: (0, smithy_client_1.expectInt32)(output.maxSyncBuffer),
4876
- MinLatency: (0, smithy_client_1.expectInt32)(output.minLatency),
4877
- Protocol: (0, smithy_client_1.expectString)(output.protocol),
4878
- RemoteId: (0, smithy_client_1.expectString)(output.remoteId),
4879
- SenderControlPort: (0, smithy_client_1.expectInt32)(output.senderControlPort),
4880
- SenderIpAddress: (0, smithy_client_1.expectString)(output.senderIpAddress),
4881
- SmoothingLatency: (0, smithy_client_1.expectInt32)(output.smoothingLatency),
4882
- SourceListenerAddress: (0, smithy_client_1.expectString)(output.sourceListenerAddress),
4883
- SourceListenerPort: (0, smithy_client_1.expectInt32)(output.sourceListenerPort),
4884
- StreamId: (0, smithy_client_1.expectString)(output.streamId),
4885
- };
4650
+ return (0, smithy_client_1.take)(output, {
4651
+ CidrAllowList: [, smithy_client_1._json, `cidrAllowList`],
4652
+ MaxBitrate: [, smithy_client_1.expectInt32, `maxBitrate`],
4653
+ MaxLatency: [, smithy_client_1.expectInt32, `maxLatency`],
4654
+ MaxSyncBuffer: [, smithy_client_1.expectInt32, `maxSyncBuffer`],
4655
+ MinLatency: [, smithy_client_1.expectInt32, `minLatency`],
4656
+ Protocol: [, smithy_client_1.expectString, `protocol`],
4657
+ RemoteId: [, smithy_client_1.expectString, `remoteId`],
4658
+ SenderControlPort: [, smithy_client_1.expectInt32, `senderControlPort`],
4659
+ SenderIpAddress: [, smithy_client_1.expectString, `senderIpAddress`],
4660
+ SmoothingLatency: [, smithy_client_1.expectInt32, `smoothingLatency`],
4661
+ SourceListenerAddress: [, smithy_client_1.expectString, `sourceListenerAddress`],
4662
+ SourceListenerPort: [, smithy_client_1.expectInt32, `sourceListenerPort`],
4663
+ StreamId: [, smithy_client_1.expectString, `streamId`],
4664
+ });
4886
4665
  };
4887
4666
  const de_VpcInterface = (output, context) => {
4888
- return {
4889
- Name: (0, smithy_client_1.expectString)(output.name),
4890
- NetworkInterfaceIds: output.networkInterfaceIds != null ? de___listOf__string(output.networkInterfaceIds, context) : undefined,
4891
- NetworkInterfaceType: (0, smithy_client_1.expectString)(output.networkInterfaceType),
4892
- RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
4893
- SecurityGroupIds: output.securityGroupIds != null ? de___listOf__string(output.securityGroupIds, context) : undefined,
4894
- SubnetId: (0, smithy_client_1.expectString)(output.subnetId),
4895
- };
4667
+ return (0, smithy_client_1.take)(output, {
4668
+ Name: [, smithy_client_1.expectString, `name`],
4669
+ NetworkInterfaceIds: [, smithy_client_1._json, `networkInterfaceIds`],
4670
+ NetworkInterfaceType: [, smithy_client_1.expectString, `networkInterfaceType`],
4671
+ RoleArn: [, smithy_client_1.expectString, `roleArn`],
4672
+ SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
4673
+ SubnetId: [, smithy_client_1.expectString, `subnetId`],
4674
+ });
4896
4675
  };
4897
4676
  const de_VpcInterfaceAttachment = (output, context) => {
4898
- return {
4899
- VpcInterfaceName: (0, smithy_client_1.expectString)(output.vpcInterfaceName),
4900
- };
4677
+ return (0, smithy_client_1.take)(output, {
4678
+ VpcInterfaceName: [, smithy_client_1.expectString, `vpcInterfaceName`],
4679
+ });
4901
4680
  };
4902
4681
  const deserializeMetadata = (output) => ({
4903
4682
  httpStatusCode: output.statusCode,