@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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +200 -310
- package/dist-es/protocols/Aws_restJson1.js +90 -200
- package/package.json +27 -27
|
@@ -24,8 +24,7 @@ export var serializeAws_restJson1AddFlowMediaStreamsCommand = function (input, c
|
|
|
24
24
|
else {
|
|
25
25
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
26
26
|
}
|
|
27
|
-
body = JSON.stringify(__assign({}, (input.MediaStreams
|
|
28
|
-
input.MediaStreams !== null && {
|
|
27
|
+
body = JSON.stringify(__assign({}, (input.MediaStreams != null && {
|
|
29
28
|
mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
|
|
30
29
|
})));
|
|
31
30
|
return [2, new __HttpRequest({
|
|
@@ -61,8 +60,7 @@ export var serializeAws_restJson1AddFlowOutputsCommand = function (input, contex
|
|
|
61
60
|
else {
|
|
62
61
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
63
62
|
}
|
|
64
|
-
body = JSON.stringify(__assign({}, (input.Outputs
|
|
65
|
-
input.Outputs !== null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) })));
|
|
63
|
+
body = JSON.stringify(__assign({}, (input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) })));
|
|
66
64
|
return [2, new __HttpRequest({
|
|
67
65
|
protocol: protocol,
|
|
68
66
|
hostname: hostname,
|
|
@@ -96,8 +94,7 @@ export var serializeAws_restJson1AddFlowSourcesCommand = function (input, contex
|
|
|
96
94
|
else {
|
|
97
95
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
98
96
|
}
|
|
99
|
-
body = JSON.stringify(__assign({}, (input.Sources
|
|
100
|
-
input.Sources !== null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) })));
|
|
97
|
+
body = JSON.stringify(__assign({}, (input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) })));
|
|
101
98
|
return [2, new __HttpRequest({
|
|
102
99
|
protocol: protocol,
|
|
103
100
|
hostname: hostname,
|
|
@@ -131,8 +128,7 @@ export var serializeAws_restJson1AddFlowVpcInterfacesCommand = function (input,
|
|
|
131
128
|
else {
|
|
132
129
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
133
130
|
}
|
|
134
|
-
body = JSON.stringify(__assign({}, (input.VpcInterfaces
|
|
135
|
-
input.VpcInterfaces !== null && {
|
|
131
|
+
body = JSON.stringify(__assign({}, (input.VpcInterfaces != null && {
|
|
136
132
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
137
133
|
})));
|
|
138
134
|
return [2, new __HttpRequest({
|
|
@@ -158,22 +154,13 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
|
|
|
158
154
|
"content-type": "application/json",
|
|
159
155
|
};
|
|
160
156
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows";
|
|
161
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZone
|
|
162
|
-
input.AvailabilityZone !== null && { availabilityZone: input.AvailabilityZone })), (input.Entitlements !== undefined &&
|
|
163
|
-
input.Entitlements !== null && {
|
|
157
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZone != null && { availabilityZone: input.AvailabilityZone })), (input.Entitlements != null && {
|
|
164
158
|
entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
|
|
165
|
-
})), (input.Maintenance
|
|
166
|
-
input.Maintenance !== null && { maintenance: serializeAws_restJson1AddMaintenance(input.Maintenance, context) })), (input.MediaStreams !== undefined &&
|
|
167
|
-
input.MediaStreams !== null && {
|
|
159
|
+
})), (input.Maintenance != null && { maintenance: serializeAws_restJson1AddMaintenance(input.Maintenance, context) })), (input.MediaStreams != null && {
|
|
168
160
|
mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
|
|
169
|
-
})), (input.Name
|
|
170
|
-
input.Outputs !== null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) })), (input.Source !== undefined &&
|
|
171
|
-
input.Source !== null && { source: serializeAws_restJson1SetSourceRequest(input.Source, context) })), (input.SourceFailoverConfig !== undefined &&
|
|
172
|
-
input.SourceFailoverConfig !== null && {
|
|
161
|
+
})), (input.Name != null && { name: input.Name })), (input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) })), (input.Source != null && { source: serializeAws_restJson1SetSourceRequest(input.Source, context) })), (input.SourceFailoverConfig != null && {
|
|
173
162
|
sourceFailoverConfig: serializeAws_restJson1FailoverConfig(input.SourceFailoverConfig, context),
|
|
174
|
-
})), (input.Sources
|
|
175
|
-
input.Sources !== null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) })), (input.VpcInterfaces !== undefined &&
|
|
176
|
-
input.VpcInterfaces !== null && {
|
|
163
|
+
})), (input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) })), (input.VpcInterfaces != null && {
|
|
177
164
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
178
165
|
})));
|
|
179
166
|
return [2, new __HttpRequest({
|
|
@@ -333,8 +320,7 @@ export var serializeAws_restJson1GrantFlowEntitlementsCommand = function (input,
|
|
|
333
320
|
else {
|
|
334
321
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
335
322
|
}
|
|
336
|
-
body = JSON.stringify(__assign({}, (input.Entitlements
|
|
337
|
-
input.Entitlements !== null && {
|
|
323
|
+
body = JSON.stringify(__assign({}, (input.Entitlements != null && {
|
|
338
324
|
entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
|
|
339
325
|
})));
|
|
340
326
|
return [2, new __HttpRequest({
|
|
@@ -493,8 +479,7 @@ export var serializeAws_restJson1PurchaseOfferingCommand = function (input, cont
|
|
|
493
479
|
else {
|
|
494
480
|
throw new Error("No value provided for input HTTP label: OfferingArn.");
|
|
495
481
|
}
|
|
496
|
-
body = JSON.stringify(__assign(__assign({}, (input.ReservationName
|
|
497
|
-
input.ReservationName !== null && { reservationName: input.ReservationName })), (input.Start !== undefined && input.Start !== null && { start: input.Start })));
|
|
482
|
+
body = JSON.stringify(__assign(__assign({}, (input.ReservationName != null && { reservationName: input.ReservationName })), (input.Start != null && { start: input.Start })));
|
|
498
483
|
return [2, new __HttpRequest({
|
|
499
484
|
protocol: protocol,
|
|
500
485
|
hostname: hostname,
|
|
@@ -798,8 +783,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
798
783
|
else {
|
|
799
784
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
800
785
|
}
|
|
801
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
802
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
786
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
803
787
|
return [2, new __HttpRequest({
|
|
804
788
|
protocol: protocol,
|
|
805
789
|
hostname: hostname,
|
|
@@ -866,11 +850,9 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
866
850
|
else {
|
|
867
851
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
868
852
|
}
|
|
869
|
-
body = JSON.stringify(__assign(__assign({}, (input.Maintenance
|
|
870
|
-
input.Maintenance !== null && {
|
|
853
|
+
body = JSON.stringify(__assign(__assign({}, (input.Maintenance != null && {
|
|
871
854
|
maintenance: serializeAws_restJson1UpdateMaintenance(input.Maintenance, context),
|
|
872
|
-
})), (input.SourceFailoverConfig
|
|
873
|
-
input.SourceFailoverConfig !== null && {
|
|
855
|
+
})), (input.SourceFailoverConfig != null && {
|
|
874
856
|
sourceFailoverConfig: serializeAws_restJson1UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
875
857
|
})));
|
|
876
858
|
return [2, new __HttpRequest({
|
|
@@ -917,10 +899,7 @@ export var serializeAws_restJson1UpdateFlowEntitlementCommand = function (input,
|
|
|
917
899
|
else {
|
|
918
900
|
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
919
901
|
}
|
|
920
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
921
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.EntitlementStatus !== undefined &&
|
|
922
|
-
input.EntitlementStatus !== null && { entitlementStatus: input.EntitlementStatus })), (input.Subscribers !== undefined &&
|
|
923
|
-
input.Subscribers !== null && {
|
|
902
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus })), (input.Subscribers != null && {
|
|
924
903
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
925
904
|
})));
|
|
926
905
|
return [2, new __HttpRequest({
|
|
@@ -967,11 +946,9 @@ export var serializeAws_restJson1UpdateFlowMediaStreamCommand = function (input,
|
|
|
967
946
|
else {
|
|
968
947
|
throw new Error("No value provided for input HTTP label: MediaStreamName.");
|
|
969
948
|
}
|
|
970
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes
|
|
971
|
-
input.Attributes !== null && {
|
|
949
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
972
950
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
973
|
-
})), (input.ClockRate
|
|
974
|
-
input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat })));
|
|
951
|
+
})), (input.ClockRate != null && { clockRate: input.ClockRate })), (input.Description != null && { description: input.Description })), (input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat != null && { videoFormat: input.VideoFormat })));
|
|
975
952
|
return [2, new __HttpRequest({
|
|
976
953
|
protocol: protocol,
|
|
977
954
|
hostname: hostname,
|
|
@@ -1015,18 +992,11 @@ export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, cont
|
|
|
1015
992
|
else {
|
|
1016
993
|
throw new Error("No value provided for input HTTP label: OutputArn.");
|
|
1017
994
|
}
|
|
1018
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList
|
|
1019
|
-
input.CidrAllowList !== null && {
|
|
995
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList != null && {
|
|
1020
996
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
1021
|
-
})), (input.Description
|
|
1022
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations !== undefined &&
|
|
1023
|
-
input.MediaStreamOutputConfigurations !== null && {
|
|
997
|
+
})), (input.Description != null && { description: input.Description })), (input.Destination != null && { destination: input.Destination })), (input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.MaxLatency != null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations != null && {
|
|
1024
998
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
1025
|
-
})), (input.MinLatency
|
|
1026
|
-
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
1027
|
-
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.SmoothingLatency !== undefined &&
|
|
1028
|
-
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment !== undefined &&
|
|
1029
|
-
input.VpcInterfaceAttachment !== null && {
|
|
999
|
+
})), (input.MinLatency != null && { minLatency: input.MinLatency })), (input.Port != null && { port: input.Port })), (input.Protocol != null && { protocol: input.Protocol })), (input.RemoteId != null && { remoteId: input.RemoteId })), (input.SenderControlPort != null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress })), (input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId != null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment != null && {
|
|
1030
1000
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
1031
1001
|
})));
|
|
1032
1002
|
return [2, new __HttpRequest({
|
|
@@ -1072,15 +1042,9 @@ export var serializeAws_restJson1UpdateFlowSourceCommand = function (input, cont
|
|
|
1072
1042
|
else {
|
|
1073
1043
|
throw new Error("No value provided for input HTTP label: SourceArn.");
|
|
1074
1044
|
}
|
|
1075
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption
|
|
1076
|
-
input.Decryption !== null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.EntitlementArn !== undefined &&
|
|
1077
|
-
input.EntitlementArn !== null && { entitlementArn: input.EntitlementArn })), (input.IngestPort !== undefined && input.IngestPort !== null && { ingestPort: input.IngestPort })), (input.MaxBitrate !== undefined && input.MaxBitrate !== null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations !== undefined &&
|
|
1078
|
-
input.MediaStreamSourceConfigurations !== null && {
|
|
1045
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption != null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) })), (input.Description != null && { description: input.Description })), (input.EntitlementArn != null && { entitlementArn: input.EntitlementArn })), (input.IngestPort != null && { ingestPort: input.IngestPort })), (input.MaxBitrate != null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency != null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations != null && {
|
|
1079
1046
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
1080
|
-
})), (input.MinLatency
|
|
1081
|
-
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
1082
|
-
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceName !== undefined &&
|
|
1083
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr })));
|
|
1047
|
+
})), (input.MinLatency != null && { minLatency: input.MinLatency })), (input.Protocol != null && { protocol: input.Protocol })), (input.SenderControlPort != null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId != null && { streamId: input.StreamId })), (input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr })));
|
|
1084
1048
|
return [2, new __HttpRequest({
|
|
1085
1049
|
protocol: protocol,
|
|
1086
1050
|
hostname: hostname,
|
|
@@ -3634,142 +3598,97 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
|
3634
3598
|
}, {});
|
|
3635
3599
|
};
|
|
3636
3600
|
var serializeAws_restJson1AddMaintenance = function (input, context) {
|
|
3637
|
-
return __assign(__assign({}, (input.MaintenanceDay
|
|
3638
|
-
input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceStartHour !== undefined &&
|
|
3639
|
-
input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }));
|
|
3601
|
+
return __assign(__assign({}, (input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }));
|
|
3640
3602
|
};
|
|
3641
3603
|
var serializeAws_restJson1AddMediaStreamRequest = function (input, context) {
|
|
3642
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes
|
|
3643
|
-
input.Attributes !== null && {
|
|
3604
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
3644
3605
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
3645
|
-
})), (input.ClockRate
|
|
3646
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName })), (input.MediaStreamType !== undefined &&
|
|
3647
|
-
input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat }));
|
|
3606
|
+
})), (input.ClockRate != null && { clockRate: input.ClockRate })), (input.Description != null && { description: input.Description })), (input.MediaStreamId != null && { mediaStreamId: input.MediaStreamId })), (input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName })), (input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat != null && { videoFormat: input.VideoFormat }));
|
|
3648
3607
|
};
|
|
3649
3608
|
var serializeAws_restJson1AddOutputRequest = function (input, context) {
|
|
3650
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList
|
|
3651
|
-
input.CidrAllowList !== null && {
|
|
3609
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList != null && {
|
|
3652
3610
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
3653
|
-
})), (input.Description
|
|
3654
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations !== undefined &&
|
|
3655
|
-
input.MediaStreamOutputConfigurations !== null && {
|
|
3611
|
+
})), (input.Description != null && { description: input.Description })), (input.Destination != null && { destination: input.Destination })), (input.Encryption != null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.MaxLatency != null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations != null && {
|
|
3656
3612
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
3657
|
-
})), (input.MinLatency
|
|
3658
|
-
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SmoothingLatency !== undefined &&
|
|
3659
|
-
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment !== undefined &&
|
|
3660
|
-
input.VpcInterfaceAttachment !== null && {
|
|
3613
|
+
})), (input.MinLatency != null && { minLatency: input.MinLatency })), (input.Name != null && { name: input.Name })), (input.Port != null && { port: input.Port })), (input.Protocol != null && { protocol: input.Protocol })), (input.RemoteId != null && { remoteId: input.RemoteId })), (input.SenderControlPort != null && { senderControlPort: input.SenderControlPort })), (input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId != null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment != null && {
|
|
3661
3614
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
3662
3615
|
}));
|
|
3663
3616
|
};
|
|
3664
3617
|
var serializeAws_restJson1DestinationConfigurationRequest = function (input, context) {
|
|
3665
|
-
return __assign(__assign(__assign({}, (input.DestinationIp
|
|
3666
|
-
input.DestinationPort !== null && { destinationPort: input.DestinationPort })), (input.Interface !== undefined &&
|
|
3667
|
-
input.Interface !== null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }));
|
|
3618
|
+
return __assign(__assign(__assign({}, (input.DestinationIp != null && { destinationIp: input.DestinationIp })), (input.DestinationPort != null && { destinationPort: input.DestinationPort })), (input.Interface != null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }));
|
|
3668
3619
|
};
|
|
3669
3620
|
var serializeAws_restJson1EncodingParametersRequest = function (input, context) {
|
|
3670
|
-
return __assign(__assign({}, (input.CompressionFactor
|
|
3671
|
-
input.CompressionFactor !== null && { compressionFactor: __serializeFloat(input.CompressionFactor) })), (input.EncoderProfile !== undefined &&
|
|
3672
|
-
input.EncoderProfile !== null && { encoderProfile: input.EncoderProfile }));
|
|
3621
|
+
return __assign(__assign({}, (input.CompressionFactor != null && { compressionFactor: __serializeFloat(input.CompressionFactor) })), (input.EncoderProfile != null && { encoderProfile: input.EncoderProfile }));
|
|
3673
3622
|
};
|
|
3674
3623
|
var serializeAws_restJson1Encryption = function (input, context) {
|
|
3675
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm
|
|
3676
|
-
input.ConstantInitializationVector !== null && {
|
|
3624
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm != null && { algorithm: input.Algorithm })), (input.ConstantInitializationVector != null && {
|
|
3677
3625
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
3678
|
-
})), (input.DeviceId
|
|
3626
|
+
})), (input.DeviceId != null && { deviceId: input.DeviceId })), (input.KeyType != null && { keyType: input.KeyType })), (input.Region != null && { region: input.Region })), (input.ResourceId != null && { resourceId: input.ResourceId })), (input.RoleArn != null && { roleArn: input.RoleArn })), (input.SecretArn != null && { secretArn: input.SecretArn })), (input.Url != null && { url: input.Url }));
|
|
3679
3627
|
};
|
|
3680
3628
|
var serializeAws_restJson1FailoverConfig = function (input, context) {
|
|
3681
|
-
return __assign(__assign(__assign(__assign({}, (input.FailoverMode
|
|
3682
|
-
input.RecoveryWindow !== null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority !== undefined &&
|
|
3683
|
-
input.SourcePriority !== null && {
|
|
3629
|
+
return __assign(__assign(__assign(__assign({}, (input.FailoverMode != null && { failoverMode: input.FailoverMode })), (input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority != null && {
|
|
3684
3630
|
sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
|
|
3685
|
-
})), (input.State
|
|
3631
|
+
})), (input.State != null && { state: input.State }));
|
|
3686
3632
|
};
|
|
3687
3633
|
var serializeAws_restJson1FmtpRequest = function (input, context) {
|
|
3688
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChannelOrder
|
|
3689
|
-
input.ExactFramerate !== null && { exactFramerate: input.ExactFramerate })), (input.Par !== undefined && input.Par !== null && { par: input.Par })), (input.Range !== undefined && input.Range !== null && { range: input.Range })), (input.ScanMode !== undefined && input.ScanMode !== null && { scanMode: input.ScanMode })), (input.Tcs !== undefined && input.Tcs !== null && { tcs: input.Tcs }));
|
|
3634
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChannelOrder != null && { channelOrder: input.ChannelOrder })), (input.Colorimetry != null && { colorimetry: input.Colorimetry })), (input.ExactFramerate != null && { exactFramerate: input.ExactFramerate })), (input.Par != null && { par: input.Par })), (input.Range != null && { range: input.Range })), (input.ScanMode != null && { scanMode: input.ScanMode })), (input.Tcs != null && { tcs: input.Tcs }));
|
|
3690
3635
|
};
|
|
3691
3636
|
var serializeAws_restJson1GrantEntitlementRequest = function (input, context) {
|
|
3692
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataTransferSubscriberFeePercent
|
|
3693
|
-
input.DataTransferSubscriberFeePercent !== null && {
|
|
3637
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataTransferSubscriberFeePercent != null && {
|
|
3694
3638
|
dataTransferSubscriberFeePercent: input.DataTransferSubscriberFeePercent,
|
|
3695
|
-
})), (input.Description
|
|
3696
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.EntitlementStatus !== undefined &&
|
|
3697
|
-
input.EntitlementStatus !== null && { entitlementStatus: input.EntitlementStatus })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Subscribers !== undefined &&
|
|
3698
|
-
input.Subscribers !== null && {
|
|
3639
|
+
})), (input.Description != null && { description: input.Description })), (input.Encryption != null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus })), (input.Name != null && { name: input.Name })), (input.Subscribers != null && {
|
|
3699
3640
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
3700
3641
|
}));
|
|
3701
3642
|
};
|
|
3702
3643
|
var serializeAws_restJson1InputConfigurationRequest = function (input, context) {
|
|
3703
|
-
return __assign(__assign({}, (input.InputPort
|
|
3704
|
-
input.Interface !== null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }));
|
|
3644
|
+
return __assign(__assign({}, (input.InputPort != null && { inputPort: input.InputPort })), (input.Interface != null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }));
|
|
3705
3645
|
};
|
|
3706
3646
|
var serializeAws_restJson1InterfaceRequest = function (input, context) {
|
|
3707
|
-
return __assign({}, (input.Name
|
|
3647
|
+
return __assign({}, (input.Name != null && { name: input.Name }));
|
|
3708
3648
|
};
|
|
3709
3649
|
var serializeAws_restJson1MediaStreamAttributesRequest = function (input, context) {
|
|
3710
|
-
return __assign(__assign({}, (input.Fmtp
|
|
3711
|
-
input.Fmtp !== null && { fmtp: serializeAws_restJson1FmtpRequest(input.Fmtp, context) })), (input.Lang !== undefined && input.Lang !== null && { lang: input.Lang }));
|
|
3650
|
+
return __assign(__assign({}, (input.Fmtp != null && { fmtp: serializeAws_restJson1FmtpRequest(input.Fmtp, context) })), (input.Lang != null && { lang: input.Lang }));
|
|
3712
3651
|
};
|
|
3713
3652
|
var serializeAws_restJson1MediaStreamOutputConfigurationRequest = function (input, context) {
|
|
3714
|
-
return __assign(__assign(__assign(__assign({}, (input.DestinationConfigurations
|
|
3715
|
-
input.DestinationConfigurations !== null && {
|
|
3653
|
+
return __assign(__assign(__assign(__assign({}, (input.DestinationConfigurations != null && {
|
|
3716
3654
|
destinationConfigurations: serializeAws_restJson1__listOfDestinationConfigurationRequest(input.DestinationConfigurations, context),
|
|
3717
|
-
})), (input.EncodingName
|
|
3718
|
-
input.EncodingParameters !== null && {
|
|
3655
|
+
})), (input.EncodingName != null && { encodingName: input.EncodingName })), (input.EncodingParameters != null && {
|
|
3719
3656
|
encodingParameters: serializeAws_restJson1EncodingParametersRequest(input.EncodingParameters, context),
|
|
3720
|
-
})), (input.MediaStreamName
|
|
3721
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }));
|
|
3657
|
+
})), (input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }));
|
|
3722
3658
|
};
|
|
3723
3659
|
var serializeAws_restJson1MediaStreamSourceConfigurationRequest = function (input, context) {
|
|
3724
|
-
return __assign(__assign(__assign({}, (input.EncodingName
|
|
3725
|
-
input.InputConfigurations !== null && {
|
|
3660
|
+
return __assign(__assign(__assign({}, (input.EncodingName != null && { encodingName: input.EncodingName })), (input.InputConfigurations != null && {
|
|
3726
3661
|
inputConfigurations: serializeAws_restJson1__listOfInputConfigurationRequest(input.InputConfigurations, context),
|
|
3727
|
-
})), (input.MediaStreamName
|
|
3728
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }));
|
|
3662
|
+
})), (input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }));
|
|
3729
3663
|
};
|
|
3730
3664
|
var serializeAws_restJson1SetSourceRequest = function (input, context) {
|
|
3731
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption
|
|
3732
|
-
input.Decryption !== null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.EntitlementArn !== undefined &&
|
|
3733
|
-
input.EntitlementArn !== null && { entitlementArn: input.EntitlementArn })), (input.IngestPort !== undefined && input.IngestPort !== null && { ingestPort: input.IngestPort })), (input.MaxBitrate !== undefined && input.MaxBitrate !== null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations !== undefined &&
|
|
3734
|
-
input.MediaStreamSourceConfigurations !== null && {
|
|
3665
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption != null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) })), (input.Description != null && { description: input.Description })), (input.EntitlementArn != null && { entitlementArn: input.EntitlementArn })), (input.IngestPort != null && { ingestPort: input.IngestPort })), (input.MaxBitrate != null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency != null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations != null && {
|
|
3735
3666
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
3736
|
-
})), (input.MinLatency
|
|
3737
|
-
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
3738
|
-
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceName !== undefined &&
|
|
3739
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr }));
|
|
3667
|
+
})), (input.MinLatency != null && { minLatency: input.MinLatency })), (input.Name != null && { name: input.Name })), (input.Protocol != null && { protocol: input.Protocol })), (input.SenderControlPort != null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId != null && { streamId: input.StreamId })), (input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }));
|
|
3740
3668
|
};
|
|
3741
3669
|
var serializeAws_restJson1SourcePriority = function (input, context) {
|
|
3742
|
-
return __assign({}, (input.PrimarySource
|
|
3670
|
+
return __assign({}, (input.PrimarySource != null && { primarySource: input.PrimarySource }));
|
|
3743
3671
|
};
|
|
3744
3672
|
var serializeAws_restJson1UpdateEncryption = function (input, context) {
|
|
3745
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm
|
|
3746
|
-
input.ConstantInitializationVector !== null && {
|
|
3673
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm != null && { algorithm: input.Algorithm })), (input.ConstantInitializationVector != null && {
|
|
3747
3674
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
3748
|
-
})), (input.DeviceId
|
|
3675
|
+
})), (input.DeviceId != null && { deviceId: input.DeviceId })), (input.KeyType != null && { keyType: input.KeyType })), (input.Region != null && { region: input.Region })), (input.ResourceId != null && { resourceId: input.ResourceId })), (input.RoleArn != null && { roleArn: input.RoleArn })), (input.SecretArn != null && { secretArn: input.SecretArn })), (input.Url != null && { url: input.Url }));
|
|
3749
3676
|
};
|
|
3750
3677
|
var serializeAws_restJson1UpdateFailoverConfig = function (input, context) {
|
|
3751
|
-
return __assign(__assign(__assign(__assign({}, (input.FailoverMode
|
|
3752
|
-
input.RecoveryWindow !== null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority !== undefined &&
|
|
3753
|
-
input.SourcePriority !== null && {
|
|
3678
|
+
return __assign(__assign(__assign(__assign({}, (input.FailoverMode != null && { failoverMode: input.FailoverMode })), (input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority != null && {
|
|
3754
3679
|
sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
|
|
3755
|
-
})), (input.State
|
|
3680
|
+
})), (input.State != null && { state: input.State }));
|
|
3756
3681
|
};
|
|
3757
3682
|
var serializeAws_restJson1UpdateMaintenance = function (input, context) {
|
|
3758
|
-
return __assign(__assign(__assign({}, (input.MaintenanceDay
|
|
3759
|
-
input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceScheduledDate !== undefined &&
|
|
3760
|
-
input.MaintenanceScheduledDate !== null && { maintenanceScheduledDate: input.MaintenanceScheduledDate })), (input.MaintenanceStartHour !== undefined &&
|
|
3761
|
-
input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }));
|
|
3683
|
+
return __assign(__assign(__assign({}, (input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceScheduledDate != null && { maintenanceScheduledDate: input.MaintenanceScheduledDate })), (input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }));
|
|
3762
3684
|
};
|
|
3763
3685
|
var serializeAws_restJson1VpcInterfaceAttachment = function (input, context) {
|
|
3764
|
-
return __assign({}, (input.VpcInterfaceName
|
|
3765
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }));
|
|
3686
|
+
return __assign({}, (input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }));
|
|
3766
3687
|
};
|
|
3767
3688
|
var serializeAws_restJson1VpcInterfaceRequest = function (input, context) {
|
|
3768
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Name
|
|
3769
|
-
input.NetworkInterfaceType !== null && { networkInterfaceType: input.NetworkInterfaceType })), (input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn })), (input.SecurityGroupIds !== undefined &&
|
|
3770
|
-
input.SecurityGroupIds !== null && {
|
|
3689
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Name != null && { name: input.Name })), (input.NetworkInterfaceType != null && { networkInterfaceType: input.NetworkInterfaceType })), (input.RoleArn != null && { roleArn: input.RoleArn })), (input.SecurityGroupIds != null && {
|
|
3771
3690
|
securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
|
|
3772
|
-
})), (input.SubnetId
|
|
3691
|
+
})), (input.SubnetId != null && { subnetId: input.SubnetId }));
|
|
3773
3692
|
};
|
|
3774
3693
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
3775
3694
|
var retVal = (output || [])
|
|
@@ -3939,9 +3858,7 @@ var deserializeAws_restJson1DestinationConfiguration = function (output, context
|
|
|
3939
3858
|
return {
|
|
3940
3859
|
DestinationIp: __expectString(output.destinationIp),
|
|
3941
3860
|
DestinationPort: __expectInt32(output.destinationPort),
|
|
3942
|
-
Interface: output.interface
|
|
3943
|
-
? deserializeAws_restJson1Interface(output.interface, context)
|
|
3944
|
-
: undefined,
|
|
3861
|
+
Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
|
|
3945
3862
|
OutboundIp: __expectString(output.outboundIp),
|
|
3946
3863
|
};
|
|
3947
3864
|
};
|
|
@@ -3968,22 +3885,18 @@ var deserializeAws_restJson1Entitlement = function (output, context) {
|
|
|
3968
3885
|
return {
|
|
3969
3886
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
3970
3887
|
Description: __expectString(output.description),
|
|
3971
|
-
Encryption: output.encryption
|
|
3972
|
-
? deserializeAws_restJson1Encryption(output.encryption, context)
|
|
3973
|
-
: undefined,
|
|
3888
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
|
|
3974
3889
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
3975
3890
|
EntitlementStatus: __expectString(output.entitlementStatus),
|
|
3976
3891
|
Name: __expectString(output.name),
|
|
3977
|
-
Subscribers: output.subscribers
|
|
3978
|
-
? deserializeAws_restJson1__listOf__string(output.subscribers, context)
|
|
3979
|
-
: undefined,
|
|
3892
|
+
Subscribers: output.subscribers != null ? deserializeAws_restJson1__listOf__string(output.subscribers, context) : undefined,
|
|
3980
3893
|
};
|
|
3981
3894
|
};
|
|
3982
3895
|
var deserializeAws_restJson1FailoverConfig = function (output, context) {
|
|
3983
3896
|
return {
|
|
3984
3897
|
FailoverMode: __expectString(output.failoverMode),
|
|
3985
3898
|
RecoveryWindow: __expectInt32(output.recoveryWindow),
|
|
3986
|
-
SourcePriority: output.sourcePriority
|
|
3899
|
+
SourcePriority: output.sourcePriority != null
|
|
3987
3900
|
? deserializeAws_restJson1SourcePriority(output.sourcePriority, context)
|
|
3988
3901
|
: undefined,
|
|
3989
3902
|
State: __expectString(output.state),
|
|
@@ -3994,31 +3907,23 @@ var deserializeAws_restJson1Flow = function (output, context) {
|
|
|
3994
3907
|
AvailabilityZone: __expectString(output.availabilityZone),
|
|
3995
3908
|
Description: __expectString(output.description),
|
|
3996
3909
|
EgressIp: __expectString(output.egressIp),
|
|
3997
|
-
Entitlements: output.entitlements
|
|
3910
|
+
Entitlements: output.entitlements != null
|
|
3998
3911
|
? deserializeAws_restJson1__listOfEntitlement(output.entitlements, context)
|
|
3999
3912
|
: undefined,
|
|
4000
3913
|
FlowArn: __expectString(output.flowArn),
|
|
4001
|
-
Maintenance: output.maintenance
|
|
4002
|
-
|
|
4003
|
-
: undefined,
|
|
4004
|
-
MediaStreams: output.mediaStreams !== undefined && output.mediaStreams !== null
|
|
3914
|
+
Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
|
|
3915
|
+
MediaStreams: output.mediaStreams != null
|
|
4005
3916
|
? deserializeAws_restJson1__listOfMediaStream(output.mediaStreams, context)
|
|
4006
3917
|
: undefined,
|
|
4007
3918
|
Name: __expectString(output.name),
|
|
4008
|
-
Outputs: output.outputs
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
Source: output.source !== undefined && output.source !== null
|
|
4012
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
4013
|
-
: undefined,
|
|
4014
|
-
SourceFailoverConfig: output.sourceFailoverConfig !== undefined && output.sourceFailoverConfig !== null
|
|
3919
|
+
Outputs: output.outputs != null ? deserializeAws_restJson1__listOfOutput(output.outputs, context) : undefined,
|
|
3920
|
+
Source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
3921
|
+
SourceFailoverConfig: output.sourceFailoverConfig != null
|
|
4015
3922
|
? deserializeAws_restJson1FailoverConfig(output.sourceFailoverConfig, context)
|
|
4016
3923
|
: undefined,
|
|
4017
|
-
Sources: output.sources
|
|
4018
|
-
? deserializeAws_restJson1__listOfSource(output.sources, context)
|
|
4019
|
-
: undefined,
|
|
3924
|
+
Sources: output.sources != null ? deserializeAws_restJson1__listOfSource(output.sources, context) : undefined,
|
|
4020
3925
|
Status: __expectString(output.status),
|
|
4021
|
-
VpcInterfaces: output.vpcInterfaces
|
|
3926
|
+
VpcInterfaces: output.vpcInterfaces != null
|
|
4022
3927
|
? deserializeAws_restJson1__listOfVpcInterface(output.vpcInterfaces, context)
|
|
4023
3928
|
: undefined,
|
|
4024
3929
|
};
|
|
@@ -4038,9 +3943,7 @@ var deserializeAws_restJson1InputConfiguration = function (output, context) {
|
|
|
4038
3943
|
return {
|
|
4039
3944
|
InputIp: __expectString(output.inputIp),
|
|
4040
3945
|
InputPort: __expectInt32(output.inputPort),
|
|
4041
|
-
Interface: output.interface
|
|
4042
|
-
? deserializeAws_restJson1Interface(output.interface, context)
|
|
4043
|
-
: undefined,
|
|
3946
|
+
Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
|
|
4044
3947
|
};
|
|
4045
3948
|
};
|
|
4046
3949
|
var deserializeAws_restJson1Interface = function (output, context) {
|
|
@@ -4060,9 +3963,7 @@ var deserializeAws_restJson1ListedFlow = function (output, context) {
|
|
|
4060
3963
|
AvailabilityZone: __expectString(output.availabilityZone),
|
|
4061
3964
|
Description: __expectString(output.description),
|
|
4062
3965
|
FlowArn: __expectString(output.flowArn),
|
|
4063
|
-
Maintenance: output.maintenance
|
|
4064
|
-
? deserializeAws_restJson1Maintenance(output.maintenance, context)
|
|
4065
|
-
: undefined,
|
|
3966
|
+
Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
|
|
4066
3967
|
Name: __expectString(output.name),
|
|
4067
3968
|
SourceType: __expectString(output.sourceType),
|
|
4068
3969
|
Status: __expectString(output.status),
|
|
@@ -4078,9 +3979,7 @@ var deserializeAws_restJson1Maintenance = function (output, context) {
|
|
|
4078
3979
|
};
|
|
4079
3980
|
var deserializeAws_restJson1MediaStream = function (output, context) {
|
|
4080
3981
|
return {
|
|
4081
|
-
Attributes: output.attributes
|
|
4082
|
-
? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context)
|
|
4083
|
-
: undefined,
|
|
3982
|
+
Attributes: output.attributes != null ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context) : undefined,
|
|
4084
3983
|
ClockRate: __expectInt32(output.clockRate),
|
|
4085
3984
|
Description: __expectString(output.description),
|
|
4086
3985
|
Fmt: __expectInt32(output.fmt),
|
|
@@ -4092,19 +3991,17 @@ var deserializeAws_restJson1MediaStream = function (output, context) {
|
|
|
4092
3991
|
};
|
|
4093
3992
|
var deserializeAws_restJson1MediaStreamAttributes = function (output, context) {
|
|
4094
3993
|
return {
|
|
4095
|
-
Fmtp: output.fmtp
|
|
4096
|
-
? deserializeAws_restJson1Fmtp(output.fmtp, context)
|
|
4097
|
-
: undefined,
|
|
3994
|
+
Fmtp: output.fmtp != null ? deserializeAws_restJson1Fmtp(output.fmtp, context) : undefined,
|
|
4098
3995
|
Lang: __expectString(output.lang),
|
|
4099
3996
|
};
|
|
4100
3997
|
};
|
|
4101
3998
|
var deserializeAws_restJson1MediaStreamOutputConfiguration = function (output, context) {
|
|
4102
3999
|
return {
|
|
4103
|
-
DestinationConfigurations: output.destinationConfigurations
|
|
4000
|
+
DestinationConfigurations: output.destinationConfigurations != null
|
|
4104
4001
|
? deserializeAws_restJson1__listOfDestinationConfiguration(output.destinationConfigurations, context)
|
|
4105
4002
|
: undefined,
|
|
4106
4003
|
EncodingName: __expectString(output.encodingName),
|
|
4107
|
-
EncodingParameters: output.encodingParameters
|
|
4004
|
+
EncodingParameters: output.encodingParameters != null
|
|
4108
4005
|
? deserializeAws_restJson1EncodingParameters(output.encodingParameters, context)
|
|
4109
4006
|
: undefined,
|
|
4110
4007
|
MediaStreamName: __expectString(output.mediaStreamName),
|
|
@@ -4113,7 +4010,7 @@ var deserializeAws_restJson1MediaStreamOutputConfiguration = function (output, c
|
|
|
4113
4010
|
var deserializeAws_restJson1MediaStreamSourceConfiguration = function (output, context) {
|
|
4114
4011
|
return {
|
|
4115
4012
|
EncodingName: __expectString(output.encodingName),
|
|
4116
|
-
InputConfigurations: output.inputConfigurations
|
|
4013
|
+
InputConfigurations: output.inputConfigurations != null
|
|
4117
4014
|
? deserializeAws_restJson1__listOfInputConfiguration(output.inputConfigurations, context)
|
|
4118
4015
|
: undefined,
|
|
4119
4016
|
MediaStreamName: __expectString(output.mediaStreamName),
|
|
@@ -4121,9 +4018,7 @@ var deserializeAws_restJson1MediaStreamSourceConfiguration = function (output, c
|
|
|
4121
4018
|
};
|
|
4122
4019
|
var deserializeAws_restJson1Messages = function (output, context) {
|
|
4123
4020
|
return {
|
|
4124
|
-
Errors: output.errors
|
|
4125
|
-
? deserializeAws_restJson1__listOf__string(output.errors, context)
|
|
4126
|
-
: undefined,
|
|
4021
|
+
Errors: output.errors != null ? deserializeAws_restJson1__listOf__string(output.errors, context) : undefined,
|
|
4127
4022
|
};
|
|
4128
4023
|
};
|
|
4129
4024
|
var deserializeAws_restJson1Offering = function (output, context) {
|
|
@@ -4135,7 +4030,7 @@ var deserializeAws_restJson1Offering = function (output, context) {
|
|
|
4135
4030
|
OfferingDescription: __expectString(output.offeringDescription),
|
|
4136
4031
|
PricePerUnit: __expectString(output.pricePerUnit),
|
|
4137
4032
|
PriceUnits: __expectString(output.priceUnits),
|
|
4138
|
-
ResourceSpecification: output.resourceSpecification
|
|
4033
|
+
ResourceSpecification: output.resourceSpecification != null
|
|
4139
4034
|
? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
|
|
4140
4035
|
: undefined,
|
|
4141
4036
|
};
|
|
@@ -4145,22 +4040,18 @@ var deserializeAws_restJson1Output = function (output, context) {
|
|
|
4145
4040
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
4146
4041
|
Description: __expectString(output.description),
|
|
4147
4042
|
Destination: __expectString(output.destination),
|
|
4148
|
-
Encryption: output.encryption
|
|
4149
|
-
? deserializeAws_restJson1Encryption(output.encryption, context)
|
|
4150
|
-
: undefined,
|
|
4043
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
|
|
4151
4044
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
4152
4045
|
ListenerAddress: __expectString(output.listenerAddress),
|
|
4153
4046
|
MediaLiveInputArn: __expectString(output.mediaLiveInputArn),
|
|
4154
|
-
MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations
|
|
4047
|
+
MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations != null
|
|
4155
4048
|
? deserializeAws_restJson1__listOfMediaStreamOutputConfiguration(output.mediaStreamOutputConfigurations, context)
|
|
4156
4049
|
: undefined,
|
|
4157
4050
|
Name: __expectString(output.name),
|
|
4158
4051
|
OutputArn: __expectString(output.outputArn),
|
|
4159
4052
|
Port: __expectInt32(output.port),
|
|
4160
|
-
Transport: output.transport
|
|
4161
|
-
|
|
4162
|
-
: undefined,
|
|
4163
|
-
VpcInterfaceAttachment: output.vpcInterfaceAttachment !== undefined && output.vpcInterfaceAttachment !== null
|
|
4053
|
+
Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
|
|
4054
|
+
VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
|
|
4164
4055
|
? deserializeAws_restJson1VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
|
|
4165
4056
|
: undefined,
|
|
4166
4057
|
};
|
|
@@ -4178,7 +4069,7 @@ var deserializeAws_restJson1Reservation = function (output, context) {
|
|
|
4178
4069
|
ReservationArn: __expectString(output.reservationArn),
|
|
4179
4070
|
ReservationName: __expectString(output.reservationName),
|
|
4180
4071
|
ReservationState: __expectString(output.reservationState),
|
|
4181
|
-
ResourceSpecification: output.resourceSpecification
|
|
4072
|
+
ResourceSpecification: output.resourceSpecification != null
|
|
4182
4073
|
? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
|
|
4183
4074
|
: undefined,
|
|
4184
4075
|
Start: __expectString(output.start),
|
|
@@ -4193,23 +4084,19 @@ var deserializeAws_restJson1ResourceSpecification = function (output, context) {
|
|
|
4193
4084
|
var deserializeAws_restJson1Source = function (output, context) {
|
|
4194
4085
|
return {
|
|
4195
4086
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
4196
|
-
Decryption: output.decryption
|
|
4197
|
-
? deserializeAws_restJson1Encryption(output.decryption, context)
|
|
4198
|
-
: undefined,
|
|
4087
|
+
Decryption: output.decryption != null ? deserializeAws_restJson1Encryption(output.decryption, context) : undefined,
|
|
4199
4088
|
Description: __expectString(output.description),
|
|
4200
4089
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
4201
4090
|
IngestIp: __expectString(output.ingestIp),
|
|
4202
4091
|
IngestPort: __expectInt32(output.ingestPort),
|
|
4203
|
-
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations
|
|
4092
|
+
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
|
|
4204
4093
|
? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
|
|
4205
4094
|
: undefined,
|
|
4206
4095
|
Name: __expectString(output.name),
|
|
4207
4096
|
SenderControlPort: __expectInt32(output.senderControlPort),
|
|
4208
4097
|
SenderIpAddress: __expectString(output.senderIpAddress),
|
|
4209
4098
|
SourceArn: __expectString(output.sourceArn),
|
|
4210
|
-
Transport: output.transport
|
|
4211
|
-
? deserializeAws_restJson1Transport(output.transport, context)
|
|
4212
|
-
: undefined,
|
|
4099
|
+
Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
|
|
4213
4100
|
VpcInterfaceName: __expectString(output.vpcInterfaceName),
|
|
4214
4101
|
WhitelistCidr: __expectString(output.whitelistCidr),
|
|
4215
4102
|
};
|
|
@@ -4221,7 +4108,7 @@ var deserializeAws_restJson1SourcePriority = function (output, context) {
|
|
|
4221
4108
|
};
|
|
4222
4109
|
var deserializeAws_restJson1Transport = function (output, context) {
|
|
4223
4110
|
return {
|
|
4224
|
-
CidrAllowList: output.cidrAllowList
|
|
4111
|
+
CidrAllowList: output.cidrAllowList != null
|
|
4225
4112
|
? deserializeAws_restJson1__listOf__string(output.cidrAllowList, context)
|
|
4226
4113
|
: undefined,
|
|
4227
4114
|
MaxBitrate: __expectInt32(output.maxBitrate),
|
|
@@ -4239,12 +4126,12 @@ var deserializeAws_restJson1Transport = function (output, context) {
|
|
|
4239
4126
|
var deserializeAws_restJson1VpcInterface = function (output, context) {
|
|
4240
4127
|
return {
|
|
4241
4128
|
Name: __expectString(output.name),
|
|
4242
|
-
NetworkInterfaceIds: output.networkInterfaceIds
|
|
4129
|
+
NetworkInterfaceIds: output.networkInterfaceIds != null
|
|
4243
4130
|
? deserializeAws_restJson1__listOf__string(output.networkInterfaceIds, context)
|
|
4244
4131
|
: undefined,
|
|
4245
4132
|
NetworkInterfaceType: __expectString(output.networkInterfaceType),
|
|
4246
4133
|
RoleArn: __expectString(output.roleArn),
|
|
4247
|
-
SecurityGroupIds: output.securityGroupIds
|
|
4134
|
+
SecurityGroupIds: output.securityGroupIds != null
|
|
4248
4135
|
? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
|
|
4249
4136
|
: undefined,
|
|
4250
4137
|
SubnetId: __expectString(output.subnetId),
|
|
@@ -4293,6 +4180,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4293
4180
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4294
4181
|
var sanitizeErrorCode = function (rawValue) {
|
|
4295
4182
|
var cleanValue = rawValue;
|
|
4183
|
+
if (typeof cleanValue === "number") {
|
|
4184
|
+
cleanValue = cleanValue.toString();
|
|
4185
|
+
}
|
|
4296
4186
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4297
4187
|
cleanValue = cleanValue.split(":")[0];
|
|
4298
4188
|
}
|