@aws-sdk/client-mediaconnect 3.121.0 → 3.130.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.
@@ -24,8 +24,7 @@ const serializeAws_restJson1AddFlowMediaStreamsCommand = async (input, context)
24
24
  }
25
25
  let body;
26
26
  body = JSON.stringify({
27
- ...(input.MediaStreams !== undefined &&
28
- input.MediaStreams !== null && {
27
+ ...(input.MediaStreams != null && {
29
28
  mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
30
29
  }),
31
30
  });
@@ -58,8 +57,7 @@ const serializeAws_restJson1AddFlowOutputsCommand = async (input, context) => {
58
57
  }
59
58
  let body;
60
59
  body = JSON.stringify({
61
- ...(input.Outputs !== undefined &&
62
- input.Outputs !== null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
60
+ ...(input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
63
61
  });
64
62
  return new protocol_http_1.HttpRequest({
65
63
  protocol,
@@ -90,8 +88,7 @@ const serializeAws_restJson1AddFlowSourcesCommand = async (input, context) => {
90
88
  }
91
89
  let body;
92
90
  body = JSON.stringify({
93
- ...(input.Sources !== undefined &&
94
- input.Sources !== null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
91
+ ...(input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
95
92
  });
96
93
  return new protocol_http_1.HttpRequest({
97
94
  protocol,
@@ -122,8 +119,7 @@ const serializeAws_restJson1AddFlowVpcInterfacesCommand = async (input, context)
122
119
  }
123
120
  let body;
124
121
  body = JSON.stringify({
125
- ...(input.VpcInterfaces !== undefined &&
126
- input.VpcInterfaces !== null && {
122
+ ...(input.VpcInterfaces != null && {
127
123
  vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
128
124
  }),
129
125
  });
@@ -146,31 +142,22 @@ const serializeAws_restJson1CreateFlowCommand = async (input, context) => {
146
142
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
147
143
  let body;
148
144
  body = JSON.stringify({
149
- ...(input.AvailabilityZone !== undefined &&
150
- input.AvailabilityZone !== null && { availabilityZone: input.AvailabilityZone }),
151
- ...(input.Entitlements !== undefined &&
152
- input.Entitlements !== null && {
145
+ ...(input.AvailabilityZone != null && { availabilityZone: input.AvailabilityZone }),
146
+ ...(input.Entitlements != null && {
153
147
  entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
154
148
  }),
155
- ...(input.Maintenance !== undefined &&
156
- input.Maintenance !== null && { maintenance: serializeAws_restJson1AddMaintenance(input.Maintenance, context) }),
157
- ...(input.MediaStreams !== undefined &&
158
- input.MediaStreams !== null && {
149
+ ...(input.Maintenance != null && { maintenance: serializeAws_restJson1AddMaintenance(input.Maintenance, context) }),
150
+ ...(input.MediaStreams != null && {
159
151
  mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
160
152
  }),
161
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
162
- ...(input.Outputs !== undefined &&
163
- input.Outputs !== null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
164
- ...(input.Source !== undefined &&
165
- input.Source !== null && { source: serializeAws_restJson1SetSourceRequest(input.Source, context) }),
166
- ...(input.SourceFailoverConfig !== undefined &&
167
- input.SourceFailoverConfig !== null && {
153
+ ...(input.Name != null && { name: input.Name }),
154
+ ...(input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
155
+ ...(input.Source != null && { source: serializeAws_restJson1SetSourceRequest(input.Source, context) }),
156
+ ...(input.SourceFailoverConfig != null && {
168
157
  sourceFailoverConfig: serializeAws_restJson1FailoverConfig(input.SourceFailoverConfig, context),
169
158
  }),
170
- ...(input.Sources !== undefined &&
171
- input.Sources !== null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
172
- ...(input.VpcInterfaces !== undefined &&
173
- input.VpcInterfaces !== null && {
159
+ ...(input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
160
+ ...(input.VpcInterfaces != null && {
174
161
  vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
175
162
  }),
176
163
  });
@@ -307,8 +294,7 @@ const serializeAws_restJson1GrantFlowEntitlementsCommand = async (input, context
307
294
  }
308
295
  let body;
309
296
  body = JSON.stringify({
310
- ...(input.Entitlements !== undefined &&
311
- input.Entitlements !== null && {
297
+ ...(input.Entitlements != null && {
312
298
  entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
313
299
  }),
314
300
  });
@@ -451,9 +437,8 @@ const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) =>
451
437
  }
452
438
  let body;
453
439
  body = JSON.stringify({
454
- ...(input.ReservationName !== undefined &&
455
- input.ReservationName !== null && { reservationName: input.ReservationName }),
456
- ...(input.Start !== undefined && input.Start !== null && { start: input.Start }),
440
+ ...(input.ReservationName != null && { reservationName: input.ReservationName }),
441
+ ...(input.Start != null && { start: input.Start }),
457
442
  });
458
443
  return new protocol_http_1.HttpRequest({
459
444
  protocol,
@@ -719,8 +704,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
719
704
  }
720
705
  let body;
721
706
  body = JSON.stringify({
722
- ...(input.Tags !== undefined &&
723
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
707
+ ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
724
708
  });
725
709
  return new protocol_http_1.HttpRequest({
726
710
  protocol,
@@ -781,12 +765,10 @@ const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
781
765
  }
782
766
  let body;
783
767
  body = JSON.stringify({
784
- ...(input.Maintenance !== undefined &&
785
- input.Maintenance !== null && {
768
+ ...(input.Maintenance != null && {
786
769
  maintenance: serializeAws_restJson1UpdateMaintenance(input.Maintenance, context),
787
770
  }),
788
- ...(input.SourceFailoverConfig !== undefined &&
789
- input.SourceFailoverConfig !== null && {
771
+ ...(input.SourceFailoverConfig != null && {
790
772
  sourceFailoverConfig: serializeAws_restJson1UpdateFailoverConfig(input.SourceFailoverConfig, context),
791
773
  }),
792
774
  });
@@ -830,13 +812,10 @@ const serializeAws_restJson1UpdateFlowEntitlementCommand = async (input, context
830
812
  }
831
813
  let body;
832
814
  body = JSON.stringify({
833
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
834
- ...(input.Encryption !== undefined &&
835
- input.Encryption !== null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) }),
836
- ...(input.EntitlementStatus !== undefined &&
837
- input.EntitlementStatus !== null && { entitlementStatus: input.EntitlementStatus }),
838
- ...(input.Subscribers !== undefined &&
839
- input.Subscribers !== null && {
815
+ ...(input.Description != null && { description: input.Description }),
816
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) }),
817
+ ...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
818
+ ...(input.Subscribers != null && {
840
819
  subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
841
820
  }),
842
821
  });
@@ -880,15 +859,13 @@ const serializeAws_restJson1UpdateFlowMediaStreamCommand = async (input, context
880
859
  }
881
860
  let body;
882
861
  body = JSON.stringify({
883
- ...(input.Attributes !== undefined &&
884
- input.Attributes !== null && {
862
+ ...(input.Attributes != null && {
885
863
  attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
886
864
  }),
887
- ...(input.ClockRate !== undefined && input.ClockRate !== null && { clockRate: input.ClockRate }),
888
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
889
- ...(input.MediaStreamType !== undefined &&
890
- input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType }),
891
- ...(input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat }),
865
+ ...(input.ClockRate != null && { clockRate: input.ClockRate }),
866
+ ...(input.Description != null && { description: input.Description }),
867
+ ...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
868
+ ...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
892
869
  });
893
870
  return new protocol_http_1.HttpRequest({
894
871
  protocol,
@@ -929,32 +906,25 @@ const serializeAws_restJson1UpdateFlowOutputCommand = async (input, context) =>
929
906
  }
930
907
  let body;
931
908
  body = JSON.stringify({
932
- ...(input.CidrAllowList !== undefined &&
933
- input.CidrAllowList !== null && {
909
+ ...(input.CidrAllowList != null && {
934
910
  cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
935
911
  }),
936
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
937
- ...(input.Destination !== undefined && input.Destination !== null && { destination: input.Destination }),
938
- ...(input.Encryption !== undefined &&
939
- input.Encryption !== null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) }),
940
- ...(input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency }),
941
- ...(input.MediaStreamOutputConfigurations !== undefined &&
942
- input.MediaStreamOutputConfigurations !== null && {
912
+ ...(input.Description != null && { description: input.Description }),
913
+ ...(input.Destination != null && { destination: input.Destination }),
914
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) }),
915
+ ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
916
+ ...(input.MediaStreamOutputConfigurations != null && {
943
917
  mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
944
918
  }),
945
- ...(input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency }),
946
- ...(input.Port !== undefined && input.Port !== null && { port: input.Port }),
947
- ...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
948
- ...(input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId }),
949
- ...(input.SenderControlPort !== undefined &&
950
- input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
951
- ...(input.SenderIpAddress !== undefined &&
952
- input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress }),
953
- ...(input.SmoothingLatency !== undefined &&
954
- input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency }),
955
- ...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
956
- ...(input.VpcInterfaceAttachment !== undefined &&
957
- input.VpcInterfaceAttachment !== null && {
919
+ ...(input.MinLatency != null && { minLatency: input.MinLatency }),
920
+ ...(input.Port != null && { port: input.Port }),
921
+ ...(input.Protocol != null && { protocol: input.Protocol }),
922
+ ...(input.RemoteId != null && { remoteId: input.RemoteId }),
923
+ ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
924
+ ...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
925
+ ...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
926
+ ...(input.StreamId != null && { streamId: input.StreamId }),
927
+ ...(input.VpcInterfaceAttachment != null && {
958
928
  vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
959
929
  }),
960
930
  });
@@ -997,29 +967,23 @@ const serializeAws_restJson1UpdateFlowSourceCommand = async (input, context) =>
997
967
  }
998
968
  let body;
999
969
  body = JSON.stringify({
1000
- ...(input.Decryption !== undefined &&
1001
- input.Decryption !== null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) }),
1002
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
1003
- ...(input.EntitlementArn !== undefined &&
1004
- input.EntitlementArn !== null && { entitlementArn: input.EntitlementArn }),
1005
- ...(input.IngestPort !== undefined && input.IngestPort !== null && { ingestPort: input.IngestPort }),
1006
- ...(input.MaxBitrate !== undefined && input.MaxBitrate !== null && { maxBitrate: input.MaxBitrate }),
1007
- ...(input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency }),
1008
- ...(input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer }),
1009
- ...(input.MediaStreamSourceConfigurations !== undefined &&
1010
- input.MediaStreamSourceConfigurations !== null && {
970
+ ...(input.Decryption != null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) }),
971
+ ...(input.Description != null && { description: input.Description }),
972
+ ...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
973
+ ...(input.IngestPort != null && { ingestPort: input.IngestPort }),
974
+ ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
975
+ ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
976
+ ...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
977
+ ...(input.MediaStreamSourceConfigurations != null && {
1011
978
  mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
1012
979
  }),
1013
- ...(input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency }),
1014
- ...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
1015
- ...(input.SenderControlPort !== undefined &&
1016
- input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
1017
- ...(input.SenderIpAddress !== undefined &&
1018
- input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress }),
1019
- ...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
1020
- ...(input.VpcInterfaceName !== undefined &&
1021
- input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
1022
- ...(input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr }),
980
+ ...(input.MinLatency != null && { minLatency: input.MinLatency }),
981
+ ...(input.Protocol != null && { protocol: input.Protocol }),
982
+ ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
983
+ ...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
984
+ ...(input.StreamId != null && { streamId: input.StreamId }),
985
+ ...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
986
+ ...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
1023
987
  });
1024
988
  return new protocol_http_1.HttpRequest({
1025
989
  protocol,
@@ -2876,267 +2840,222 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
2876
2840
  };
2877
2841
  const serializeAws_restJson1AddMaintenance = (input, context) => {
2878
2842
  return {
2879
- ...(input.MaintenanceDay !== undefined &&
2880
- input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay }),
2881
- ...(input.MaintenanceStartHour !== undefined &&
2882
- input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }),
2843
+ ...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
2844
+ ...(input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }),
2883
2845
  };
2884
2846
  };
2885
2847
  const serializeAws_restJson1AddMediaStreamRequest = (input, context) => {
2886
2848
  return {
2887
- ...(input.Attributes !== undefined &&
2888
- input.Attributes !== null && {
2849
+ ...(input.Attributes != null && {
2889
2850
  attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
2890
2851
  }),
2891
- ...(input.ClockRate !== undefined && input.ClockRate !== null && { clockRate: input.ClockRate }),
2892
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2893
- ...(input.MediaStreamId !== undefined && input.MediaStreamId !== null && { mediaStreamId: input.MediaStreamId }),
2894
- ...(input.MediaStreamName !== undefined &&
2895
- input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }),
2896
- ...(input.MediaStreamType !== undefined &&
2897
- input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType }),
2898
- ...(input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat }),
2852
+ ...(input.ClockRate != null && { clockRate: input.ClockRate }),
2853
+ ...(input.Description != null && { description: input.Description }),
2854
+ ...(input.MediaStreamId != null && { mediaStreamId: input.MediaStreamId }),
2855
+ ...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
2856
+ ...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
2857
+ ...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
2899
2858
  };
2900
2859
  };
2901
2860
  const serializeAws_restJson1AddOutputRequest = (input, context) => {
2902
2861
  return {
2903
- ...(input.CidrAllowList !== undefined &&
2904
- input.CidrAllowList !== null && {
2862
+ ...(input.CidrAllowList != null && {
2905
2863
  cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
2906
2864
  }),
2907
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2908
- ...(input.Destination !== undefined && input.Destination !== null && { destination: input.Destination }),
2909
- ...(input.Encryption !== undefined &&
2910
- input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) }),
2911
- ...(input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency }),
2912
- ...(input.MediaStreamOutputConfigurations !== undefined &&
2913
- input.MediaStreamOutputConfigurations !== null && {
2865
+ ...(input.Description != null && { description: input.Description }),
2866
+ ...(input.Destination != null && { destination: input.Destination }),
2867
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) }),
2868
+ ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
2869
+ ...(input.MediaStreamOutputConfigurations != null && {
2914
2870
  mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
2915
2871
  }),
2916
- ...(input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency }),
2917
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
2918
- ...(input.Port !== undefined && input.Port !== null && { port: input.Port }),
2919
- ...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
2920
- ...(input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId }),
2921
- ...(input.SenderControlPort !== undefined &&
2922
- input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
2923
- ...(input.SmoothingLatency !== undefined &&
2924
- input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency }),
2925
- ...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
2926
- ...(input.VpcInterfaceAttachment !== undefined &&
2927
- input.VpcInterfaceAttachment !== null && {
2872
+ ...(input.MinLatency != null && { minLatency: input.MinLatency }),
2873
+ ...(input.Name != null && { name: input.Name }),
2874
+ ...(input.Port != null && { port: input.Port }),
2875
+ ...(input.Protocol != null && { protocol: input.Protocol }),
2876
+ ...(input.RemoteId != null && { remoteId: input.RemoteId }),
2877
+ ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
2878
+ ...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
2879
+ ...(input.StreamId != null && { streamId: input.StreamId }),
2880
+ ...(input.VpcInterfaceAttachment != null && {
2928
2881
  vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
2929
2882
  }),
2930
2883
  };
2931
2884
  };
2932
2885
  const serializeAws_restJson1DestinationConfigurationRequest = (input, context) => {
2933
2886
  return {
2934
- ...(input.DestinationIp !== undefined && input.DestinationIp !== null && { destinationIp: input.DestinationIp }),
2935
- ...(input.DestinationPort !== undefined &&
2936
- input.DestinationPort !== null && { destinationPort: input.DestinationPort }),
2937
- ...(input.Interface !== undefined &&
2938
- input.Interface !== null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
2887
+ ...(input.DestinationIp != null && { destinationIp: input.DestinationIp }),
2888
+ ...(input.DestinationPort != null && { destinationPort: input.DestinationPort }),
2889
+ ...(input.Interface != null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
2939
2890
  };
2940
2891
  };
2941
2892
  const serializeAws_restJson1EncodingParametersRequest = (input, context) => {
2942
2893
  return {
2943
- ...(input.CompressionFactor !== undefined &&
2944
- input.CompressionFactor !== null && { compressionFactor: (0, smithy_client_1.serializeFloat)(input.CompressionFactor) }),
2945
- ...(input.EncoderProfile !== undefined &&
2946
- input.EncoderProfile !== null && { encoderProfile: input.EncoderProfile }),
2894
+ ...(input.CompressionFactor != null && { compressionFactor: (0, smithy_client_1.serializeFloat)(input.CompressionFactor) }),
2895
+ ...(input.EncoderProfile != null && { encoderProfile: input.EncoderProfile }),
2947
2896
  };
2948
2897
  };
2949
2898
  const serializeAws_restJson1Encryption = (input, context) => {
2950
2899
  return {
2951
- ...(input.Algorithm !== undefined && input.Algorithm !== null && { algorithm: input.Algorithm }),
2952
- ...(input.ConstantInitializationVector !== undefined &&
2953
- input.ConstantInitializationVector !== null && {
2900
+ ...(input.Algorithm != null && { algorithm: input.Algorithm }),
2901
+ ...(input.ConstantInitializationVector != null && {
2954
2902
  constantInitializationVector: input.ConstantInitializationVector,
2955
2903
  }),
2956
- ...(input.DeviceId !== undefined && input.DeviceId !== null && { deviceId: input.DeviceId }),
2957
- ...(input.KeyType !== undefined && input.KeyType !== null && { keyType: input.KeyType }),
2958
- ...(input.Region !== undefined && input.Region !== null && { region: input.Region }),
2959
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { resourceId: input.ResourceId }),
2960
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn }),
2961
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { secretArn: input.SecretArn }),
2962
- ...(input.Url !== undefined && input.Url !== null && { url: input.Url }),
2904
+ ...(input.DeviceId != null && { deviceId: input.DeviceId }),
2905
+ ...(input.KeyType != null && { keyType: input.KeyType }),
2906
+ ...(input.Region != null && { region: input.Region }),
2907
+ ...(input.ResourceId != null && { resourceId: input.ResourceId }),
2908
+ ...(input.RoleArn != null && { roleArn: input.RoleArn }),
2909
+ ...(input.SecretArn != null && { secretArn: input.SecretArn }),
2910
+ ...(input.Url != null && { url: input.Url }),
2963
2911
  };
2964
2912
  };
2965
2913
  const serializeAws_restJson1FailoverConfig = (input, context) => {
2966
2914
  return {
2967
- ...(input.FailoverMode !== undefined && input.FailoverMode !== null && { failoverMode: input.FailoverMode }),
2968
- ...(input.RecoveryWindow !== undefined &&
2969
- input.RecoveryWindow !== null && { recoveryWindow: input.RecoveryWindow }),
2970
- ...(input.SourcePriority !== undefined &&
2971
- input.SourcePriority !== null && {
2915
+ ...(input.FailoverMode != null && { failoverMode: input.FailoverMode }),
2916
+ ...(input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow }),
2917
+ ...(input.SourcePriority != null && {
2972
2918
  sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
2973
2919
  }),
2974
- ...(input.State !== undefined && input.State !== null && { state: input.State }),
2920
+ ...(input.State != null && { state: input.State }),
2975
2921
  };
2976
2922
  };
2977
2923
  const serializeAws_restJson1FmtpRequest = (input, context) => {
2978
2924
  return {
2979
- ...(input.ChannelOrder !== undefined && input.ChannelOrder !== null && { channelOrder: input.ChannelOrder }),
2980
- ...(input.Colorimetry !== undefined && input.Colorimetry !== null && { colorimetry: input.Colorimetry }),
2981
- ...(input.ExactFramerate !== undefined &&
2982
- input.ExactFramerate !== null && { exactFramerate: input.ExactFramerate }),
2983
- ...(input.Par !== undefined && input.Par !== null && { par: input.Par }),
2984
- ...(input.Range !== undefined && input.Range !== null && { range: input.Range }),
2985
- ...(input.ScanMode !== undefined && input.ScanMode !== null && { scanMode: input.ScanMode }),
2986
- ...(input.Tcs !== undefined && input.Tcs !== null && { tcs: input.Tcs }),
2925
+ ...(input.ChannelOrder != null && { channelOrder: input.ChannelOrder }),
2926
+ ...(input.Colorimetry != null && { colorimetry: input.Colorimetry }),
2927
+ ...(input.ExactFramerate != null && { exactFramerate: input.ExactFramerate }),
2928
+ ...(input.Par != null && { par: input.Par }),
2929
+ ...(input.Range != null && { range: input.Range }),
2930
+ ...(input.ScanMode != null && { scanMode: input.ScanMode }),
2931
+ ...(input.Tcs != null && { tcs: input.Tcs }),
2987
2932
  };
2988
2933
  };
2989
2934
  const serializeAws_restJson1GrantEntitlementRequest = (input, context) => {
2990
2935
  return {
2991
- ...(input.DataTransferSubscriberFeePercent !== undefined &&
2992
- input.DataTransferSubscriberFeePercent !== null && {
2936
+ ...(input.DataTransferSubscriberFeePercent != null && {
2993
2937
  dataTransferSubscriberFeePercent: input.DataTransferSubscriberFeePercent,
2994
2938
  }),
2995
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
2996
- ...(input.Encryption !== undefined &&
2997
- input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) }),
2998
- ...(input.EntitlementStatus !== undefined &&
2999
- input.EntitlementStatus !== null && { entitlementStatus: input.EntitlementStatus }),
3000
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
3001
- ...(input.Subscribers !== undefined &&
3002
- input.Subscribers !== null && {
2939
+ ...(input.Description != null && { description: input.Description }),
2940
+ ...(input.Encryption != null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) }),
2941
+ ...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
2942
+ ...(input.Name != null && { name: input.Name }),
2943
+ ...(input.Subscribers != null && {
3003
2944
  subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
3004
2945
  }),
3005
2946
  };
3006
2947
  };
3007
2948
  const serializeAws_restJson1InputConfigurationRequest = (input, context) => {
3008
2949
  return {
3009
- ...(input.InputPort !== undefined && input.InputPort !== null && { inputPort: input.InputPort }),
3010
- ...(input.Interface !== undefined &&
3011
- input.Interface !== null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
2950
+ ...(input.InputPort != null && { inputPort: input.InputPort }),
2951
+ ...(input.Interface != null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
3012
2952
  };
3013
2953
  };
3014
2954
  const serializeAws_restJson1InterfaceRequest = (input, context) => {
3015
2955
  return {
3016
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
2956
+ ...(input.Name != null && { name: input.Name }),
3017
2957
  };
3018
2958
  };
3019
2959
  const serializeAws_restJson1MediaStreamAttributesRequest = (input, context) => {
3020
2960
  return {
3021
- ...(input.Fmtp !== undefined &&
3022
- input.Fmtp !== null && { fmtp: serializeAws_restJson1FmtpRequest(input.Fmtp, context) }),
3023
- ...(input.Lang !== undefined && input.Lang !== null && { lang: input.Lang }),
2961
+ ...(input.Fmtp != null && { fmtp: serializeAws_restJson1FmtpRequest(input.Fmtp, context) }),
2962
+ ...(input.Lang != null && { lang: input.Lang }),
3024
2963
  };
3025
2964
  };
3026
2965
  const serializeAws_restJson1MediaStreamOutputConfigurationRequest = (input, context) => {
3027
2966
  return {
3028
- ...(input.DestinationConfigurations !== undefined &&
3029
- input.DestinationConfigurations !== null && {
2967
+ ...(input.DestinationConfigurations != null && {
3030
2968
  destinationConfigurations: serializeAws_restJson1__listOfDestinationConfigurationRequest(input.DestinationConfigurations, context),
3031
2969
  }),
3032
- ...(input.EncodingName !== undefined && input.EncodingName !== null && { encodingName: input.EncodingName }),
3033
- ...(input.EncodingParameters !== undefined &&
3034
- input.EncodingParameters !== null && {
2970
+ ...(input.EncodingName != null && { encodingName: input.EncodingName }),
2971
+ ...(input.EncodingParameters != null && {
3035
2972
  encodingParameters: serializeAws_restJson1EncodingParametersRequest(input.EncodingParameters, context),
3036
2973
  }),
3037
- ...(input.MediaStreamName !== undefined &&
3038
- input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }),
2974
+ ...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
3039
2975
  };
3040
2976
  };
3041
2977
  const serializeAws_restJson1MediaStreamSourceConfigurationRequest = (input, context) => {
3042
2978
  return {
3043
- ...(input.EncodingName !== undefined && input.EncodingName !== null && { encodingName: input.EncodingName }),
3044
- ...(input.InputConfigurations !== undefined &&
3045
- input.InputConfigurations !== null && {
2979
+ ...(input.EncodingName != null && { encodingName: input.EncodingName }),
2980
+ ...(input.InputConfigurations != null && {
3046
2981
  inputConfigurations: serializeAws_restJson1__listOfInputConfigurationRequest(input.InputConfigurations, context),
3047
2982
  }),
3048
- ...(input.MediaStreamName !== undefined &&
3049
- input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }),
2983
+ ...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
3050
2984
  };
3051
2985
  };
3052
2986
  const serializeAws_restJson1SetSourceRequest = (input, context) => {
3053
2987
  return {
3054
- ...(input.Decryption !== undefined &&
3055
- input.Decryption !== null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) }),
3056
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
3057
- ...(input.EntitlementArn !== undefined &&
3058
- input.EntitlementArn !== null && { entitlementArn: input.EntitlementArn }),
3059
- ...(input.IngestPort !== undefined && input.IngestPort !== null && { ingestPort: input.IngestPort }),
3060
- ...(input.MaxBitrate !== undefined && input.MaxBitrate !== null && { maxBitrate: input.MaxBitrate }),
3061
- ...(input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency }),
3062
- ...(input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer }),
3063
- ...(input.MediaStreamSourceConfigurations !== undefined &&
3064
- input.MediaStreamSourceConfigurations !== null && {
2988
+ ...(input.Decryption != null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) }),
2989
+ ...(input.Description != null && { description: input.Description }),
2990
+ ...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
2991
+ ...(input.IngestPort != null && { ingestPort: input.IngestPort }),
2992
+ ...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
2993
+ ...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
2994
+ ...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
2995
+ ...(input.MediaStreamSourceConfigurations != null && {
3065
2996
  mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
3066
2997
  }),
3067
- ...(input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency }),
3068
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
3069
- ...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
3070
- ...(input.SenderControlPort !== undefined &&
3071
- input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
3072
- ...(input.SenderIpAddress !== undefined &&
3073
- input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress }),
3074
- ...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
3075
- ...(input.VpcInterfaceName !== undefined &&
3076
- input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
3077
- ...(input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr }),
2998
+ ...(input.MinLatency != null && { minLatency: input.MinLatency }),
2999
+ ...(input.Name != null && { name: input.Name }),
3000
+ ...(input.Protocol != null && { protocol: input.Protocol }),
3001
+ ...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
3002
+ ...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
3003
+ ...(input.StreamId != null && { streamId: input.StreamId }),
3004
+ ...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
3005
+ ...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
3078
3006
  };
3079
3007
  };
3080
3008
  const serializeAws_restJson1SourcePriority = (input, context) => {
3081
3009
  return {
3082
- ...(input.PrimarySource !== undefined && input.PrimarySource !== null && { primarySource: input.PrimarySource }),
3010
+ ...(input.PrimarySource != null && { primarySource: input.PrimarySource }),
3083
3011
  };
3084
3012
  };
3085
3013
  const serializeAws_restJson1UpdateEncryption = (input, context) => {
3086
3014
  return {
3087
- ...(input.Algorithm !== undefined && input.Algorithm !== null && { algorithm: input.Algorithm }),
3088
- ...(input.ConstantInitializationVector !== undefined &&
3089
- input.ConstantInitializationVector !== null && {
3015
+ ...(input.Algorithm != null && { algorithm: input.Algorithm }),
3016
+ ...(input.ConstantInitializationVector != null && {
3090
3017
  constantInitializationVector: input.ConstantInitializationVector,
3091
3018
  }),
3092
- ...(input.DeviceId !== undefined && input.DeviceId !== null && { deviceId: input.DeviceId }),
3093
- ...(input.KeyType !== undefined && input.KeyType !== null && { keyType: input.KeyType }),
3094
- ...(input.Region !== undefined && input.Region !== null && { region: input.Region }),
3095
- ...(input.ResourceId !== undefined && input.ResourceId !== null && { resourceId: input.ResourceId }),
3096
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn }),
3097
- ...(input.SecretArn !== undefined && input.SecretArn !== null && { secretArn: input.SecretArn }),
3098
- ...(input.Url !== undefined && input.Url !== null && { url: input.Url }),
3019
+ ...(input.DeviceId != null && { deviceId: input.DeviceId }),
3020
+ ...(input.KeyType != null && { keyType: input.KeyType }),
3021
+ ...(input.Region != null && { region: input.Region }),
3022
+ ...(input.ResourceId != null && { resourceId: input.ResourceId }),
3023
+ ...(input.RoleArn != null && { roleArn: input.RoleArn }),
3024
+ ...(input.SecretArn != null && { secretArn: input.SecretArn }),
3025
+ ...(input.Url != null && { url: input.Url }),
3099
3026
  };
3100
3027
  };
3101
3028
  const serializeAws_restJson1UpdateFailoverConfig = (input, context) => {
3102
3029
  return {
3103
- ...(input.FailoverMode !== undefined && input.FailoverMode !== null && { failoverMode: input.FailoverMode }),
3104
- ...(input.RecoveryWindow !== undefined &&
3105
- input.RecoveryWindow !== null && { recoveryWindow: input.RecoveryWindow }),
3106
- ...(input.SourcePriority !== undefined &&
3107
- input.SourcePriority !== null && {
3030
+ ...(input.FailoverMode != null && { failoverMode: input.FailoverMode }),
3031
+ ...(input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow }),
3032
+ ...(input.SourcePriority != null && {
3108
3033
  sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
3109
3034
  }),
3110
- ...(input.State !== undefined && input.State !== null && { state: input.State }),
3035
+ ...(input.State != null && { state: input.State }),
3111
3036
  };
3112
3037
  };
3113
3038
  const serializeAws_restJson1UpdateMaintenance = (input, context) => {
3114
3039
  return {
3115
- ...(input.MaintenanceDay !== undefined &&
3116
- input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay }),
3117
- ...(input.MaintenanceScheduledDate !== undefined &&
3118
- input.MaintenanceScheduledDate !== null && { maintenanceScheduledDate: input.MaintenanceScheduledDate }),
3119
- ...(input.MaintenanceStartHour !== undefined &&
3120
- input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }),
3040
+ ...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
3041
+ ...(input.MaintenanceScheduledDate != null && { maintenanceScheduledDate: input.MaintenanceScheduledDate }),
3042
+ ...(input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }),
3121
3043
  };
3122
3044
  };
3123
3045
  const serializeAws_restJson1VpcInterfaceAttachment = (input, context) => {
3124
3046
  return {
3125
- ...(input.VpcInterfaceName !== undefined &&
3126
- input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
3047
+ ...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
3127
3048
  };
3128
3049
  };
3129
3050
  const serializeAws_restJson1VpcInterfaceRequest = (input, context) => {
3130
3051
  return {
3131
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
3132
- ...(input.NetworkInterfaceType !== undefined &&
3133
- input.NetworkInterfaceType !== null && { networkInterfaceType: input.NetworkInterfaceType }),
3134
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn }),
3135
- ...(input.SecurityGroupIds !== undefined &&
3136
- input.SecurityGroupIds !== null && {
3052
+ ...(input.Name != null && { name: input.Name }),
3053
+ ...(input.NetworkInterfaceType != null && { networkInterfaceType: input.NetworkInterfaceType }),
3054
+ ...(input.RoleArn != null && { roleArn: input.RoleArn }),
3055
+ ...(input.SecurityGroupIds != null && {
3137
3056
  securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
3138
3057
  }),
3139
- ...(input.SubnetId !== undefined && input.SubnetId !== null && { subnetId: input.SubnetId }),
3058
+ ...(input.SubnetId != null && { subnetId: input.SubnetId }),
3140
3059
  };
3141
3060
  };
3142
3061
  const deserializeAws_restJson1__listOf__string = (output, context) => {
@@ -3308,9 +3227,7 @@ const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
3308
3227
  return {
3309
3228
  DestinationIp: (0, smithy_client_1.expectString)(output.destinationIp),
3310
3229
  DestinationPort: (0, smithy_client_1.expectInt32)(output.destinationPort),
3311
- Interface: output.interface !== undefined && output.interface !== null
3312
- ? deserializeAws_restJson1Interface(output.interface, context)
3313
- : undefined,
3230
+ Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
3314
3231
  OutboundIp: (0, smithy_client_1.expectString)(output.outboundIp),
3315
3232
  };
3316
3233
  };
@@ -3337,22 +3254,18 @@ const deserializeAws_restJson1Entitlement = (output, context) => {
3337
3254
  return {
3338
3255
  DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3339
3256
  Description: (0, smithy_client_1.expectString)(output.description),
3340
- Encryption: output.encryption !== undefined && output.encryption !== null
3341
- ? deserializeAws_restJson1Encryption(output.encryption, context)
3342
- : undefined,
3257
+ Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
3343
3258
  EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3344
3259
  EntitlementStatus: (0, smithy_client_1.expectString)(output.entitlementStatus),
3345
3260
  Name: (0, smithy_client_1.expectString)(output.name),
3346
- Subscribers: output.subscribers !== undefined && output.subscribers !== null
3347
- ? deserializeAws_restJson1__listOf__string(output.subscribers, context)
3348
- : undefined,
3261
+ Subscribers: output.subscribers != null ? deserializeAws_restJson1__listOf__string(output.subscribers, context) : undefined,
3349
3262
  };
3350
3263
  };
3351
3264
  const deserializeAws_restJson1FailoverConfig = (output, context) => {
3352
3265
  return {
3353
3266
  FailoverMode: (0, smithy_client_1.expectString)(output.failoverMode),
3354
3267
  RecoveryWindow: (0, smithy_client_1.expectInt32)(output.recoveryWindow),
3355
- SourcePriority: output.sourcePriority !== undefined && output.sourcePriority !== null
3268
+ SourcePriority: output.sourcePriority != null
3356
3269
  ? deserializeAws_restJson1SourcePriority(output.sourcePriority, context)
3357
3270
  : undefined,
3358
3271
  State: (0, smithy_client_1.expectString)(output.state),
@@ -3363,31 +3276,23 @@ const deserializeAws_restJson1Flow = (output, context) => {
3363
3276
  AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
3364
3277
  Description: (0, smithy_client_1.expectString)(output.description),
3365
3278
  EgressIp: (0, smithy_client_1.expectString)(output.egressIp),
3366
- Entitlements: output.entitlements !== undefined && output.entitlements !== null
3279
+ Entitlements: output.entitlements != null
3367
3280
  ? deserializeAws_restJson1__listOfEntitlement(output.entitlements, context)
3368
3281
  : undefined,
3369
3282
  FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
3370
- Maintenance: output.maintenance !== undefined && output.maintenance !== null
3371
- ? deserializeAws_restJson1Maintenance(output.maintenance, context)
3372
- : undefined,
3373
- MediaStreams: output.mediaStreams !== undefined && output.mediaStreams !== null
3283
+ Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
3284
+ MediaStreams: output.mediaStreams != null
3374
3285
  ? deserializeAws_restJson1__listOfMediaStream(output.mediaStreams, context)
3375
3286
  : undefined,
3376
3287
  Name: (0, smithy_client_1.expectString)(output.name),
3377
- Outputs: output.outputs !== undefined && output.outputs !== null
3378
- ? deserializeAws_restJson1__listOfOutput(output.outputs, context)
3379
- : undefined,
3380
- Source: output.source !== undefined && output.source !== null
3381
- ? deserializeAws_restJson1Source(output.source, context)
3382
- : undefined,
3383
- SourceFailoverConfig: output.sourceFailoverConfig !== undefined && output.sourceFailoverConfig !== null
3288
+ Outputs: output.outputs != null ? deserializeAws_restJson1__listOfOutput(output.outputs, context) : undefined,
3289
+ Source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
3290
+ SourceFailoverConfig: output.sourceFailoverConfig != null
3384
3291
  ? deserializeAws_restJson1FailoverConfig(output.sourceFailoverConfig, context)
3385
3292
  : undefined,
3386
- Sources: output.sources !== undefined && output.sources !== null
3387
- ? deserializeAws_restJson1__listOfSource(output.sources, context)
3388
- : undefined,
3293
+ Sources: output.sources != null ? deserializeAws_restJson1__listOfSource(output.sources, context) : undefined,
3389
3294
  Status: (0, smithy_client_1.expectString)(output.status),
3390
- VpcInterfaces: output.vpcInterfaces !== undefined && output.vpcInterfaces !== null
3295
+ VpcInterfaces: output.vpcInterfaces != null
3391
3296
  ? deserializeAws_restJson1__listOfVpcInterface(output.vpcInterfaces, context)
3392
3297
  : undefined,
3393
3298
  };
@@ -3407,9 +3312,7 @@ const deserializeAws_restJson1InputConfiguration = (output, context) => {
3407
3312
  return {
3408
3313
  InputIp: (0, smithy_client_1.expectString)(output.inputIp),
3409
3314
  InputPort: (0, smithy_client_1.expectInt32)(output.inputPort),
3410
- Interface: output.interface !== undefined && output.interface !== null
3411
- ? deserializeAws_restJson1Interface(output.interface, context)
3412
- : undefined,
3315
+ Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
3413
3316
  };
3414
3317
  };
3415
3318
  const deserializeAws_restJson1Interface = (output, context) => {
@@ -3429,9 +3332,7 @@ const deserializeAws_restJson1ListedFlow = (output, context) => {
3429
3332
  AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
3430
3333
  Description: (0, smithy_client_1.expectString)(output.description),
3431
3334
  FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
3432
- Maintenance: output.maintenance !== undefined && output.maintenance !== null
3433
- ? deserializeAws_restJson1Maintenance(output.maintenance, context)
3434
- : undefined,
3335
+ Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
3435
3336
  Name: (0, smithy_client_1.expectString)(output.name),
3436
3337
  SourceType: (0, smithy_client_1.expectString)(output.sourceType),
3437
3338
  Status: (0, smithy_client_1.expectString)(output.status),
@@ -3447,9 +3348,7 @@ const deserializeAws_restJson1Maintenance = (output, context) => {
3447
3348
  };
3448
3349
  const deserializeAws_restJson1MediaStream = (output, context) => {
3449
3350
  return {
3450
- Attributes: output.attributes !== undefined && output.attributes !== null
3451
- ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context)
3452
- : undefined,
3351
+ Attributes: output.attributes != null ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context) : undefined,
3453
3352
  ClockRate: (0, smithy_client_1.expectInt32)(output.clockRate),
3454
3353
  Description: (0, smithy_client_1.expectString)(output.description),
3455
3354
  Fmt: (0, smithy_client_1.expectInt32)(output.fmt),
@@ -3461,19 +3360,17 @@ const deserializeAws_restJson1MediaStream = (output, context) => {
3461
3360
  };
3462
3361
  const deserializeAws_restJson1MediaStreamAttributes = (output, context) => {
3463
3362
  return {
3464
- Fmtp: output.fmtp !== undefined && output.fmtp !== null
3465
- ? deserializeAws_restJson1Fmtp(output.fmtp, context)
3466
- : undefined,
3363
+ Fmtp: output.fmtp != null ? deserializeAws_restJson1Fmtp(output.fmtp, context) : undefined,
3467
3364
  Lang: (0, smithy_client_1.expectString)(output.lang),
3468
3365
  };
3469
3366
  };
3470
3367
  const deserializeAws_restJson1MediaStreamOutputConfiguration = (output, context) => {
3471
3368
  return {
3472
- DestinationConfigurations: output.destinationConfigurations !== undefined && output.destinationConfigurations !== null
3369
+ DestinationConfigurations: output.destinationConfigurations != null
3473
3370
  ? deserializeAws_restJson1__listOfDestinationConfiguration(output.destinationConfigurations, context)
3474
3371
  : undefined,
3475
3372
  EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
3476
- EncodingParameters: output.encodingParameters !== undefined && output.encodingParameters !== null
3373
+ EncodingParameters: output.encodingParameters != null
3477
3374
  ? deserializeAws_restJson1EncodingParameters(output.encodingParameters, context)
3478
3375
  : undefined,
3479
3376
  MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
@@ -3482,7 +3379,7 @@ const deserializeAws_restJson1MediaStreamOutputConfiguration = (output, context)
3482
3379
  const deserializeAws_restJson1MediaStreamSourceConfiguration = (output, context) => {
3483
3380
  return {
3484
3381
  EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
3485
- InputConfigurations: output.inputConfigurations !== undefined && output.inputConfigurations !== null
3382
+ InputConfigurations: output.inputConfigurations != null
3486
3383
  ? deserializeAws_restJson1__listOfInputConfiguration(output.inputConfigurations, context)
3487
3384
  : undefined,
3488
3385
  MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
@@ -3490,9 +3387,7 @@ const deserializeAws_restJson1MediaStreamSourceConfiguration = (output, context)
3490
3387
  };
3491
3388
  const deserializeAws_restJson1Messages = (output, context) => {
3492
3389
  return {
3493
- Errors: output.errors !== undefined && output.errors !== null
3494
- ? deserializeAws_restJson1__listOf__string(output.errors, context)
3495
- : undefined,
3390
+ Errors: output.errors != null ? deserializeAws_restJson1__listOf__string(output.errors, context) : undefined,
3496
3391
  };
3497
3392
  };
3498
3393
  const deserializeAws_restJson1Offering = (output, context) => {
@@ -3504,7 +3399,7 @@ const deserializeAws_restJson1Offering = (output, context) => {
3504
3399
  OfferingDescription: (0, smithy_client_1.expectString)(output.offeringDescription),
3505
3400
  PricePerUnit: (0, smithy_client_1.expectString)(output.pricePerUnit),
3506
3401
  PriceUnits: (0, smithy_client_1.expectString)(output.priceUnits),
3507
- ResourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
3402
+ ResourceSpecification: output.resourceSpecification != null
3508
3403
  ? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
3509
3404
  : undefined,
3510
3405
  };
@@ -3514,22 +3409,18 @@ const deserializeAws_restJson1Output = (output, context) => {
3514
3409
  DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3515
3410
  Description: (0, smithy_client_1.expectString)(output.description),
3516
3411
  Destination: (0, smithy_client_1.expectString)(output.destination),
3517
- Encryption: output.encryption !== undefined && output.encryption !== null
3518
- ? deserializeAws_restJson1Encryption(output.encryption, context)
3519
- : undefined,
3412
+ Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
3520
3413
  EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3521
3414
  ListenerAddress: (0, smithy_client_1.expectString)(output.listenerAddress),
3522
3415
  MediaLiveInputArn: (0, smithy_client_1.expectString)(output.mediaLiveInputArn),
3523
- MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations !== undefined && output.mediaStreamOutputConfigurations !== null
3416
+ MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations != null
3524
3417
  ? deserializeAws_restJson1__listOfMediaStreamOutputConfiguration(output.mediaStreamOutputConfigurations, context)
3525
3418
  : undefined,
3526
3419
  Name: (0, smithy_client_1.expectString)(output.name),
3527
3420
  OutputArn: (0, smithy_client_1.expectString)(output.outputArn),
3528
3421
  Port: (0, smithy_client_1.expectInt32)(output.port),
3529
- Transport: output.transport !== undefined && output.transport !== null
3530
- ? deserializeAws_restJson1Transport(output.transport, context)
3531
- : undefined,
3532
- VpcInterfaceAttachment: output.vpcInterfaceAttachment !== undefined && output.vpcInterfaceAttachment !== null
3422
+ Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
3423
+ VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
3533
3424
  ? deserializeAws_restJson1VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
3534
3425
  : undefined,
3535
3426
  };
@@ -3547,7 +3438,7 @@ const deserializeAws_restJson1Reservation = (output, context) => {
3547
3438
  ReservationArn: (0, smithy_client_1.expectString)(output.reservationArn),
3548
3439
  ReservationName: (0, smithy_client_1.expectString)(output.reservationName),
3549
3440
  ReservationState: (0, smithy_client_1.expectString)(output.reservationState),
3550
- ResourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
3441
+ ResourceSpecification: output.resourceSpecification != null
3551
3442
  ? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
3552
3443
  : undefined,
3553
3444
  Start: (0, smithy_client_1.expectString)(output.start),
@@ -3562,23 +3453,19 @@ const deserializeAws_restJson1ResourceSpecification = (output, context) => {
3562
3453
  const deserializeAws_restJson1Source = (output, context) => {
3563
3454
  return {
3564
3455
  DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
3565
- Decryption: output.decryption !== undefined && output.decryption !== null
3566
- ? deserializeAws_restJson1Encryption(output.decryption, context)
3567
- : undefined,
3456
+ Decryption: output.decryption != null ? deserializeAws_restJson1Encryption(output.decryption, context) : undefined,
3568
3457
  Description: (0, smithy_client_1.expectString)(output.description),
3569
3458
  EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
3570
3459
  IngestIp: (0, smithy_client_1.expectString)(output.ingestIp),
3571
3460
  IngestPort: (0, smithy_client_1.expectInt32)(output.ingestPort),
3572
- MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations !== undefined && output.mediaStreamSourceConfigurations !== null
3461
+ MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
3573
3462
  ? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
3574
3463
  : undefined,
3575
3464
  Name: (0, smithy_client_1.expectString)(output.name),
3576
3465
  SenderControlPort: (0, smithy_client_1.expectInt32)(output.senderControlPort),
3577
3466
  SenderIpAddress: (0, smithy_client_1.expectString)(output.senderIpAddress),
3578
3467
  SourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
3579
- Transport: output.transport !== undefined && output.transport !== null
3580
- ? deserializeAws_restJson1Transport(output.transport, context)
3581
- : undefined,
3468
+ Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
3582
3469
  VpcInterfaceName: (0, smithy_client_1.expectString)(output.vpcInterfaceName),
3583
3470
  WhitelistCidr: (0, smithy_client_1.expectString)(output.whitelistCidr),
3584
3471
  };
@@ -3590,7 +3477,7 @@ const deserializeAws_restJson1SourcePriority = (output, context) => {
3590
3477
  };
3591
3478
  const deserializeAws_restJson1Transport = (output, context) => {
3592
3479
  return {
3593
- CidrAllowList: output.cidrAllowList !== undefined && output.cidrAllowList !== null
3480
+ CidrAllowList: output.cidrAllowList != null
3594
3481
  ? deserializeAws_restJson1__listOf__string(output.cidrAllowList, context)
3595
3482
  : undefined,
3596
3483
  MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
@@ -3608,12 +3495,12 @@ const deserializeAws_restJson1Transport = (output, context) => {
3608
3495
  const deserializeAws_restJson1VpcInterface = (output, context) => {
3609
3496
  return {
3610
3497
  Name: (0, smithy_client_1.expectString)(output.name),
3611
- NetworkInterfaceIds: output.networkInterfaceIds !== undefined && output.networkInterfaceIds !== null
3498
+ NetworkInterfaceIds: output.networkInterfaceIds != null
3612
3499
  ? deserializeAws_restJson1__listOf__string(output.networkInterfaceIds, context)
3613
3500
  : undefined,
3614
3501
  NetworkInterfaceType: (0, smithy_client_1.expectString)(output.networkInterfaceType),
3615
3502
  RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
3616
- SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
3503
+ SecurityGroupIds: output.securityGroupIds != null
3617
3504
  ? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
3618
3505
  : undefined,
3619
3506
  SubnetId: (0, smithy_client_1.expectString)(output.subnetId),
@@ -3655,6 +3542,9 @@ const loadRestJsonErrorCode = (output, data) => {
3655
3542
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3656
3543
  const sanitizeErrorCode = (rawValue) => {
3657
3544
  let cleanValue = rawValue;
3545
+ if (typeof cleanValue === "number") {
3546
+ cleanValue = cleanValue.toString();
3547
+ }
3658
3548
  if (cleanValue.indexOf(":") >= 0) {
3659
3549
  cleanValue = cleanValue.split(":")[0];
3660
3550
  }