@aws-sdk/client-mediaconnect 3.118.1 → 3.128.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 +347 -431
- package/dist-es/protocols/Aws_restJson1.js +237 -321
- 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,
|
|
@@ -1122,7 +1086,7 @@ export var deserializeAws_restJson1AddFlowMediaStreamsCommand = function (output
|
|
|
1122
1086
|
});
|
|
1123
1087
|
}); };
|
|
1124
1088
|
var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1125
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1089
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1126
1090
|
var _c;
|
|
1127
1091
|
return __generator(this, function (_d) {
|
|
1128
1092
|
switch (_d.label) {
|
|
@@ -1132,7 +1096,6 @@ var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output,
|
|
|
1132
1096
|
return [4, parseBody(output.body, context)];
|
|
1133
1097
|
case 1:
|
|
1134
1098
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1135
|
-
errorCode = "UnknownError";
|
|
1136
1099
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
1100
|
_b = errorCode;
|
|
1138
1101
|
switch (_b) {
|
|
@@ -1164,10 +1127,12 @@ var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output,
|
|
|
1164
1127
|
case 13: throw _d.sent();
|
|
1165
1128
|
case 14:
|
|
1166
1129
|
parsedBody = parsedOutput.body;
|
|
1130
|
+
$metadata = deserializeMetadata(output);
|
|
1131
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1167
1132
|
response = new __BaseException({
|
|
1168
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1169
1134
|
$fault: "client",
|
|
1170
|
-
$metadata:
|
|
1135
|
+
$metadata: $metadata,
|
|
1171
1136
|
});
|
|
1172
1137
|
throw __decorateServiceException(response, parsedBody);
|
|
1173
1138
|
}
|
|
@@ -1202,7 +1167,7 @@ export var deserializeAws_restJson1AddFlowOutputsCommand = function (output, con
|
|
|
1202
1167
|
});
|
|
1203
1168
|
}); };
|
|
1204
1169
|
var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1205
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1170
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1206
1171
|
var _c;
|
|
1207
1172
|
return __generator(this, function (_d) {
|
|
1208
1173
|
switch (_d.label) {
|
|
@@ -1212,7 +1177,6 @@ var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, conte
|
|
|
1212
1177
|
return [4, parseBody(output.body, context)];
|
|
1213
1178
|
case 1:
|
|
1214
1179
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1215
|
-
errorCode = "UnknownError";
|
|
1216
1180
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1181
|
_b = errorCode;
|
|
1218
1182
|
switch (_b) {
|
|
@@ -1248,10 +1212,12 @@ var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, conte
|
|
|
1248
1212
|
case 15: throw _d.sent();
|
|
1249
1213
|
case 16:
|
|
1250
1214
|
parsedBody = parsedOutput.body;
|
|
1215
|
+
$metadata = deserializeMetadata(output);
|
|
1216
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1251
1217
|
response = new __BaseException({
|
|
1252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1253
1219
|
$fault: "client",
|
|
1254
|
-
$metadata:
|
|
1220
|
+
$metadata: $metadata,
|
|
1255
1221
|
});
|
|
1256
1222
|
throw __decorateServiceException(response, parsedBody);
|
|
1257
1223
|
}
|
|
@@ -1286,7 +1252,7 @@ export var deserializeAws_restJson1AddFlowSourcesCommand = function (output, con
|
|
|
1286
1252
|
});
|
|
1287
1253
|
}); };
|
|
1288
1254
|
var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1289
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1255
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1290
1256
|
var _c;
|
|
1291
1257
|
return __generator(this, function (_d) {
|
|
1292
1258
|
switch (_d.label) {
|
|
@@ -1296,7 +1262,6 @@ var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, conte
|
|
|
1296
1262
|
return [4, parseBody(output.body, context)];
|
|
1297
1263
|
case 1:
|
|
1298
1264
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1299
|
-
errorCode = "UnknownError";
|
|
1300
1265
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
1266
|
_b = errorCode;
|
|
1302
1267
|
switch (_b) {
|
|
@@ -1328,10 +1293,12 @@ var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, conte
|
|
|
1328
1293
|
case 13: throw _d.sent();
|
|
1329
1294
|
case 14:
|
|
1330
1295
|
parsedBody = parsedOutput.body;
|
|
1296
|
+
$metadata = deserializeMetadata(output);
|
|
1297
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1331
1298
|
response = new __BaseException({
|
|
1332
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1333
1300
|
$fault: "client",
|
|
1334
|
-
$metadata:
|
|
1301
|
+
$metadata: $metadata,
|
|
1335
1302
|
});
|
|
1336
1303
|
throw __decorateServiceException(response, parsedBody);
|
|
1337
1304
|
}
|
|
@@ -1366,7 +1333,7 @@ export var deserializeAws_restJson1AddFlowVpcInterfacesCommand = function (outpu
|
|
|
1366
1333
|
});
|
|
1367
1334
|
}); };
|
|
1368
1335
|
var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1369
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1336
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1370
1337
|
var _c;
|
|
1371
1338
|
return __generator(this, function (_d) {
|
|
1372
1339
|
switch (_d.label) {
|
|
@@ -1376,7 +1343,6 @@ var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output,
|
|
|
1376
1343
|
return [4, parseBody(output.body, context)];
|
|
1377
1344
|
case 1:
|
|
1378
1345
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1379
|
-
errorCode = "UnknownError";
|
|
1380
1346
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1347
|
_b = errorCode;
|
|
1382
1348
|
switch (_b) {
|
|
@@ -1408,10 +1374,12 @@ var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output,
|
|
|
1408
1374
|
case 13: throw _d.sent();
|
|
1409
1375
|
case 14:
|
|
1410
1376
|
parsedBody = parsedOutput.body;
|
|
1377
|
+
$metadata = deserializeMetadata(output);
|
|
1378
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1411
1379
|
response = new __BaseException({
|
|
1412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1413
1381
|
$fault: "client",
|
|
1414
|
-
$metadata:
|
|
1382
|
+
$metadata: $metadata,
|
|
1415
1383
|
});
|
|
1416
1384
|
throw __decorateServiceException(response, parsedBody);
|
|
1417
1385
|
}
|
|
@@ -1442,7 +1410,7 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
1442
1410
|
});
|
|
1443
1411
|
}); };
|
|
1444
1412
|
var deserializeAws_restJson1CreateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1445
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1413
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1446
1414
|
var _c;
|
|
1447
1415
|
return __generator(this, function (_d) {
|
|
1448
1416
|
switch (_d.label) {
|
|
@@ -1452,7 +1420,6 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
1452
1420
|
return [4, parseBody(output.body, context)];
|
|
1453
1421
|
case 1:
|
|
1454
1422
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1455
|
-
errorCode = "UnknownError";
|
|
1456
1423
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
1424
|
_b = errorCode;
|
|
1458
1425
|
switch (_b) {
|
|
@@ -1484,10 +1451,12 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
1484
1451
|
case 13: throw _d.sent();
|
|
1485
1452
|
case 14:
|
|
1486
1453
|
parsedBody = parsedOutput.body;
|
|
1454
|
+
$metadata = deserializeMetadata(output);
|
|
1455
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1487
1456
|
response = new __BaseException({
|
|
1488
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1457
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1489
1458
|
$fault: "client",
|
|
1490
|
-
$metadata:
|
|
1459
|
+
$metadata: $metadata,
|
|
1491
1460
|
});
|
|
1492
1461
|
throw __decorateServiceException(response, parsedBody);
|
|
1493
1462
|
}
|
|
@@ -1522,7 +1491,7 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
1522
1491
|
});
|
|
1523
1492
|
}); };
|
|
1524
1493
|
var deserializeAws_restJson1DeleteFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1525
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1494
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1526
1495
|
var _c;
|
|
1527
1496
|
return __generator(this, function (_d) {
|
|
1528
1497
|
switch (_d.label) {
|
|
@@ -1532,7 +1501,6 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
1532
1501
|
return [4, parseBody(output.body, context)];
|
|
1533
1502
|
case 1:
|
|
1534
1503
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1535
|
-
errorCode = "UnknownError";
|
|
1536
1504
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
1505
|
_b = errorCode;
|
|
1538
1506
|
switch (_b) {
|
|
@@ -1564,10 +1532,12 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
1564
1532
|
case 13: throw _d.sent();
|
|
1565
1533
|
case 14:
|
|
1566
1534
|
parsedBody = parsedOutput.body;
|
|
1535
|
+
$metadata = deserializeMetadata(output);
|
|
1536
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1567
1537
|
response = new __BaseException({
|
|
1568
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1538
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1569
1539
|
$fault: "client",
|
|
1570
|
-
$metadata:
|
|
1540
|
+
$metadata: $metadata,
|
|
1571
1541
|
});
|
|
1572
1542
|
throw __decorateServiceException(response, parsedBody);
|
|
1573
1543
|
}
|
|
@@ -1602,7 +1572,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1602
1572
|
});
|
|
1603
1573
|
}); };
|
|
1604
1574
|
var deserializeAws_restJson1DescribeFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1605
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1575
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1606
1576
|
var _c;
|
|
1607
1577
|
return __generator(this, function (_d) {
|
|
1608
1578
|
switch (_d.label) {
|
|
@@ -1612,7 +1582,6 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1612
1582
|
return [4, parseBody(output.body, context)];
|
|
1613
1583
|
case 1:
|
|
1614
1584
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1615
|
-
errorCode = "UnknownError";
|
|
1616
1585
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
1586
|
_b = errorCode;
|
|
1618
1587
|
switch (_b) {
|
|
@@ -1644,10 +1613,12 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1644
1613
|
case 13: throw _d.sent();
|
|
1645
1614
|
case 14:
|
|
1646
1615
|
parsedBody = parsedOutput.body;
|
|
1616
|
+
$metadata = deserializeMetadata(output);
|
|
1617
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1647
1618
|
response = new __BaseException({
|
|
1648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1649
1620
|
$fault: "client",
|
|
1650
|
-
$metadata:
|
|
1621
|
+
$metadata: $metadata,
|
|
1651
1622
|
});
|
|
1652
1623
|
throw __decorateServiceException(response, parsedBody);
|
|
1653
1624
|
}
|
|
@@ -1678,7 +1649,7 @@ export var deserializeAws_restJson1DescribeOfferingCommand = function (output, c
|
|
|
1678
1649
|
});
|
|
1679
1650
|
}); };
|
|
1680
1651
|
var deserializeAws_restJson1DescribeOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1681
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1652
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1682
1653
|
var _c;
|
|
1683
1654
|
return __generator(this, function (_d) {
|
|
1684
1655
|
switch (_d.label) {
|
|
@@ -1688,7 +1659,6 @@ var deserializeAws_restJson1DescribeOfferingCommandError = function (output, con
|
|
|
1688
1659
|
return [4, parseBody(output.body, context)];
|
|
1689
1660
|
case 1:
|
|
1690
1661
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1691
|
-
errorCode = "UnknownError";
|
|
1692
1662
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
1663
|
_b = errorCode;
|
|
1694
1664
|
switch (_b) {
|
|
@@ -1716,10 +1686,12 @@ var deserializeAws_restJson1DescribeOfferingCommandError = function (output, con
|
|
|
1716
1686
|
case 11: throw _d.sent();
|
|
1717
1687
|
case 12:
|
|
1718
1688
|
parsedBody = parsedOutput.body;
|
|
1689
|
+
$metadata = deserializeMetadata(output);
|
|
1690
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1719
1691
|
response = new __BaseException({
|
|
1720
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1692
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1721
1693
|
$fault: "client",
|
|
1722
|
-
$metadata:
|
|
1694
|
+
$metadata: $metadata,
|
|
1723
1695
|
});
|
|
1724
1696
|
throw __decorateServiceException(response, parsedBody);
|
|
1725
1697
|
}
|
|
@@ -1750,7 +1722,7 @@ export var deserializeAws_restJson1DescribeReservationCommand = function (output
|
|
|
1750
1722
|
});
|
|
1751
1723
|
}); };
|
|
1752
1724
|
var deserializeAws_restJson1DescribeReservationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1753
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1725
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1754
1726
|
var _c;
|
|
1755
1727
|
return __generator(this, function (_d) {
|
|
1756
1728
|
switch (_d.label) {
|
|
@@ -1760,7 +1732,6 @@ var deserializeAws_restJson1DescribeReservationCommandError = function (output,
|
|
|
1760
1732
|
return [4, parseBody(output.body, context)];
|
|
1761
1733
|
case 1:
|
|
1762
1734
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1763
|
-
errorCode = "UnknownError";
|
|
1764
1735
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1736
|
_b = errorCode;
|
|
1766
1737
|
switch (_b) {
|
|
@@ -1788,10 +1759,12 @@ var deserializeAws_restJson1DescribeReservationCommandError = function (output,
|
|
|
1788
1759
|
case 11: throw _d.sent();
|
|
1789
1760
|
case 12:
|
|
1790
1761
|
parsedBody = parsedOutput.body;
|
|
1762
|
+
$metadata = deserializeMetadata(output);
|
|
1763
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1791
1764
|
response = new __BaseException({
|
|
1792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1765
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1793
1766
|
$fault: "client",
|
|
1794
|
-
$metadata:
|
|
1767
|
+
$metadata: $metadata,
|
|
1795
1768
|
});
|
|
1796
1769
|
throw __decorateServiceException(response, parsedBody);
|
|
1797
1770
|
}
|
|
@@ -1826,7 +1799,7 @@ export var deserializeAws_restJson1GrantFlowEntitlementsCommand = function (outp
|
|
|
1826
1799
|
});
|
|
1827
1800
|
}); };
|
|
1828
1801
|
var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1829
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1802
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1830
1803
|
var _c;
|
|
1831
1804
|
return __generator(this, function (_d) {
|
|
1832
1805
|
switch (_d.label) {
|
|
@@ -1836,7 +1809,6 @@ var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output
|
|
|
1836
1809
|
return [4, parseBody(output.body, context)];
|
|
1837
1810
|
case 1:
|
|
1838
1811
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1839
|
-
errorCode = "UnknownError";
|
|
1840
1812
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1813
|
_b = errorCode;
|
|
1842
1814
|
switch (_b) {
|
|
@@ -1872,10 +1844,12 @@ var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output
|
|
|
1872
1844
|
case 15: throw _d.sent();
|
|
1873
1845
|
case 16:
|
|
1874
1846
|
parsedBody = parsedOutput.body;
|
|
1847
|
+
$metadata = deserializeMetadata(output);
|
|
1848
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1875
1849
|
response = new __BaseException({
|
|
1876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1877
1851
|
$fault: "client",
|
|
1878
|
-
$metadata:
|
|
1852
|
+
$metadata: $metadata,
|
|
1879
1853
|
});
|
|
1880
1854
|
throw __decorateServiceException(response, parsedBody);
|
|
1881
1855
|
}
|
|
@@ -1910,7 +1884,7 @@ export var deserializeAws_restJson1ListEntitlementsCommand = function (output, c
|
|
|
1910
1884
|
});
|
|
1911
1885
|
}); };
|
|
1912
1886
|
var deserializeAws_restJson1ListEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1913
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1887
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1914
1888
|
var _c;
|
|
1915
1889
|
return __generator(this, function (_d) {
|
|
1916
1890
|
switch (_d.label) {
|
|
@@ -1920,7 +1894,6 @@ var deserializeAws_restJson1ListEntitlementsCommandError = function (output, con
|
|
|
1920
1894
|
return [4, parseBody(output.body, context)];
|
|
1921
1895
|
case 1:
|
|
1922
1896
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1923
|
-
errorCode = "UnknownError";
|
|
1924
1897
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1898
|
_b = errorCode;
|
|
1926
1899
|
switch (_b) {
|
|
@@ -1944,10 +1917,12 @@ var deserializeAws_restJson1ListEntitlementsCommandError = function (output, con
|
|
|
1944
1917
|
case 9: throw _d.sent();
|
|
1945
1918
|
case 10:
|
|
1946
1919
|
parsedBody = parsedOutput.body;
|
|
1920
|
+
$metadata = deserializeMetadata(output);
|
|
1921
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1947
1922
|
response = new __BaseException({
|
|
1948
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1949
1924
|
$fault: "client",
|
|
1950
|
-
$metadata:
|
|
1925
|
+
$metadata: $metadata,
|
|
1951
1926
|
});
|
|
1952
1927
|
throw __decorateServiceException(response, parsedBody);
|
|
1953
1928
|
}
|
|
@@ -1982,7 +1957,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
1982
1957
|
});
|
|
1983
1958
|
}); };
|
|
1984
1959
|
var deserializeAws_restJson1ListFlowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1985
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1960
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1986
1961
|
var _c;
|
|
1987
1962
|
return __generator(this, function (_d) {
|
|
1988
1963
|
switch (_d.label) {
|
|
@@ -1992,7 +1967,6 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
1992
1967
|
return [4, parseBody(output.body, context)];
|
|
1993
1968
|
case 1:
|
|
1994
1969
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1995
|
-
errorCode = "UnknownError";
|
|
1996
1970
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
1971
|
_b = errorCode;
|
|
1998
1972
|
switch (_b) {
|
|
@@ -2016,10 +1990,12 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
2016
1990
|
case 9: throw _d.sent();
|
|
2017
1991
|
case 10:
|
|
2018
1992
|
parsedBody = parsedOutput.body;
|
|
1993
|
+
$metadata = deserializeMetadata(output);
|
|
1994
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2019
1995
|
response = new __BaseException({
|
|
2020
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1996
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2021
1997
|
$fault: "client",
|
|
2022
|
-
$metadata:
|
|
1998
|
+
$metadata: $metadata,
|
|
2023
1999
|
});
|
|
2024
2000
|
throw __decorateServiceException(response, parsedBody);
|
|
2025
2001
|
}
|
|
@@ -2054,7 +2030,7 @@ export var deserializeAws_restJson1ListOfferingsCommand = function (output, cont
|
|
|
2054
2030
|
});
|
|
2055
2031
|
}); };
|
|
2056
2032
|
var deserializeAws_restJson1ListOfferingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2057
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2033
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2058
2034
|
var _c;
|
|
2059
2035
|
return __generator(this, function (_d) {
|
|
2060
2036
|
switch (_d.label) {
|
|
@@ -2064,7 +2040,6 @@ var deserializeAws_restJson1ListOfferingsCommandError = function (output, contex
|
|
|
2064
2040
|
return [4, parseBody(output.body, context)];
|
|
2065
2041
|
case 1:
|
|
2066
2042
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2067
|
-
errorCode = "UnknownError";
|
|
2068
2043
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
2044
|
_b = errorCode;
|
|
2070
2045
|
switch (_b) {
|
|
@@ -2088,10 +2063,12 @@ var deserializeAws_restJson1ListOfferingsCommandError = function (output, contex
|
|
|
2088
2063
|
case 9: throw _d.sent();
|
|
2089
2064
|
case 10:
|
|
2090
2065
|
parsedBody = parsedOutput.body;
|
|
2066
|
+
$metadata = deserializeMetadata(output);
|
|
2067
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2091
2068
|
response = new __BaseException({
|
|
2092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2069
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2093
2070
|
$fault: "client",
|
|
2094
|
-
$metadata:
|
|
2071
|
+
$metadata: $metadata,
|
|
2095
2072
|
});
|
|
2096
2073
|
throw __decorateServiceException(response, parsedBody);
|
|
2097
2074
|
}
|
|
@@ -2126,7 +2103,7 @@ export var deserializeAws_restJson1ListReservationsCommand = function (output, c
|
|
|
2126
2103
|
});
|
|
2127
2104
|
}); };
|
|
2128
2105
|
var deserializeAws_restJson1ListReservationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2129
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2106
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2130
2107
|
var _c;
|
|
2131
2108
|
return __generator(this, function (_d) {
|
|
2132
2109
|
switch (_d.label) {
|
|
@@ -2136,7 +2113,6 @@ var deserializeAws_restJson1ListReservationsCommandError = function (output, con
|
|
|
2136
2113
|
return [4, parseBody(output.body, context)];
|
|
2137
2114
|
case 1:
|
|
2138
2115
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2139
|
-
errorCode = "UnknownError";
|
|
2140
2116
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
2117
|
_b = errorCode;
|
|
2142
2118
|
switch (_b) {
|
|
@@ -2160,10 +2136,12 @@ var deserializeAws_restJson1ListReservationsCommandError = function (output, con
|
|
|
2160
2136
|
case 9: throw _d.sent();
|
|
2161
2137
|
case 10:
|
|
2162
2138
|
parsedBody = parsedOutput.body;
|
|
2139
|
+
$metadata = deserializeMetadata(output);
|
|
2140
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2163
2141
|
response = new __BaseException({
|
|
2164
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2165
2143
|
$fault: "client",
|
|
2166
|
-
$metadata:
|
|
2144
|
+
$metadata: $metadata,
|
|
2167
2145
|
});
|
|
2168
2146
|
throw __decorateServiceException(response, parsedBody);
|
|
2169
2147
|
}
|
|
@@ -2194,7 +2172,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2194
2172
|
});
|
|
2195
2173
|
}); };
|
|
2196
2174
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2197
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2175
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2198
2176
|
var _c;
|
|
2199
2177
|
return __generator(this, function (_d) {
|
|
2200
2178
|
switch (_d.label) {
|
|
@@ -2204,7 +2182,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2204
2182
|
return [4, parseBody(output.body, context)];
|
|
2205
2183
|
case 1:
|
|
2206
2184
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2207
|
-
errorCode = "UnknownError";
|
|
2208
2185
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
2186
|
_b = errorCode;
|
|
2210
2187
|
switch (_b) {
|
|
@@ -2224,10 +2201,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2224
2201
|
case 7: throw _d.sent();
|
|
2225
2202
|
case 8:
|
|
2226
2203
|
parsedBody = parsedOutput.body;
|
|
2204
|
+
$metadata = deserializeMetadata(output);
|
|
2205
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2227
2206
|
response = new __BaseException({
|
|
2228
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2207
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2229
2208
|
$fault: "client",
|
|
2230
|
-
$metadata:
|
|
2209
|
+
$metadata: $metadata,
|
|
2231
2210
|
});
|
|
2232
2211
|
throw __decorateServiceException(response, parsedBody);
|
|
2233
2212
|
}
|
|
@@ -2258,7 +2237,7 @@ export var deserializeAws_restJson1PurchaseOfferingCommand = function (output, c
|
|
|
2258
2237
|
});
|
|
2259
2238
|
}); };
|
|
2260
2239
|
var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2261
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2240
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2262
2241
|
var _c;
|
|
2263
2242
|
return __generator(this, function (_d) {
|
|
2264
2243
|
switch (_d.label) {
|
|
@@ -2268,7 +2247,6 @@ var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, con
|
|
|
2268
2247
|
return [4, parseBody(output.body, context)];
|
|
2269
2248
|
case 1:
|
|
2270
2249
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2271
|
-
errorCode = "UnknownError";
|
|
2272
2250
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
2251
|
_b = errorCode;
|
|
2274
2252
|
switch (_b) {
|
|
@@ -2300,10 +2278,12 @@ var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, con
|
|
|
2300
2278
|
case 13: throw _d.sent();
|
|
2301
2279
|
case 14:
|
|
2302
2280
|
parsedBody = parsedOutput.body;
|
|
2281
|
+
$metadata = deserializeMetadata(output);
|
|
2282
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2303
2283
|
response = new __BaseException({
|
|
2304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2284
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2305
2285
|
$fault: "client",
|
|
2306
|
-
$metadata:
|
|
2286
|
+
$metadata: $metadata,
|
|
2307
2287
|
});
|
|
2308
2288
|
throw __decorateServiceException(response, parsedBody);
|
|
2309
2289
|
}
|
|
@@ -2338,7 +2318,7 @@ export var deserializeAws_restJson1RemoveFlowMediaStreamCommand = function (outp
|
|
|
2338
2318
|
});
|
|
2339
2319
|
}); };
|
|
2340
2320
|
var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2341
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2321
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2342
2322
|
var _c;
|
|
2343
2323
|
return __generator(this, function (_d) {
|
|
2344
2324
|
switch (_d.label) {
|
|
@@ -2348,7 +2328,6 @@ var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output
|
|
|
2348
2328
|
return [4, parseBody(output.body, context)];
|
|
2349
2329
|
case 1:
|
|
2350
2330
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2351
|
-
errorCode = "UnknownError";
|
|
2352
2331
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2353
2332
|
_b = errorCode;
|
|
2354
2333
|
switch (_b) {
|
|
@@ -2380,10 +2359,12 @@ var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output
|
|
|
2380
2359
|
case 13: throw _d.sent();
|
|
2381
2360
|
case 14:
|
|
2382
2361
|
parsedBody = parsedOutput.body;
|
|
2362
|
+
$metadata = deserializeMetadata(output);
|
|
2363
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2383
2364
|
response = new __BaseException({
|
|
2384
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2365
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2385
2366
|
$fault: "client",
|
|
2386
|
-
$metadata:
|
|
2367
|
+
$metadata: $metadata,
|
|
2387
2368
|
});
|
|
2388
2369
|
throw __decorateServiceException(response, parsedBody);
|
|
2389
2370
|
}
|
|
@@ -2418,7 +2399,7 @@ export var deserializeAws_restJson1RemoveFlowOutputCommand = function (output, c
|
|
|
2418
2399
|
});
|
|
2419
2400
|
}); };
|
|
2420
2401
|
var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2421
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2402
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2422
2403
|
var _c;
|
|
2423
2404
|
return __generator(this, function (_d) {
|
|
2424
2405
|
switch (_d.label) {
|
|
@@ -2428,7 +2409,6 @@ var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, con
|
|
|
2428
2409
|
return [4, parseBody(output.body, context)];
|
|
2429
2410
|
case 1:
|
|
2430
2411
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2431
|
-
errorCode = "UnknownError";
|
|
2432
2412
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
2413
|
_b = errorCode;
|
|
2434
2414
|
switch (_b) {
|
|
@@ -2460,10 +2440,12 @@ var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, con
|
|
|
2460
2440
|
case 13: throw _d.sent();
|
|
2461
2441
|
case 14:
|
|
2462
2442
|
parsedBody = parsedOutput.body;
|
|
2443
|
+
$metadata = deserializeMetadata(output);
|
|
2444
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2463
2445
|
response = new __BaseException({
|
|
2464
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2446
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2465
2447
|
$fault: "client",
|
|
2466
|
-
$metadata:
|
|
2448
|
+
$metadata: $metadata,
|
|
2467
2449
|
});
|
|
2468
2450
|
throw __decorateServiceException(response, parsedBody);
|
|
2469
2451
|
}
|
|
@@ -2498,7 +2480,7 @@ export var deserializeAws_restJson1RemoveFlowSourceCommand = function (output, c
|
|
|
2498
2480
|
});
|
|
2499
2481
|
}); };
|
|
2500
2482
|
var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2501
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2483
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2502
2484
|
var _c;
|
|
2503
2485
|
return __generator(this, function (_d) {
|
|
2504
2486
|
switch (_d.label) {
|
|
@@ -2508,7 +2490,6 @@ var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, con
|
|
|
2508
2490
|
return [4, parseBody(output.body, context)];
|
|
2509
2491
|
case 1:
|
|
2510
2492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2511
|
-
errorCode = "UnknownError";
|
|
2512
2493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
2494
|
_b = errorCode;
|
|
2514
2495
|
switch (_b) {
|
|
@@ -2540,10 +2521,12 @@ var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, con
|
|
|
2540
2521
|
case 13: throw _d.sent();
|
|
2541
2522
|
case 14:
|
|
2542
2523
|
parsedBody = parsedOutput.body;
|
|
2524
|
+
$metadata = deserializeMetadata(output);
|
|
2525
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2543
2526
|
response = new __BaseException({
|
|
2544
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2545
2528
|
$fault: "client",
|
|
2546
|
-
$metadata:
|
|
2529
|
+
$metadata: $metadata,
|
|
2547
2530
|
});
|
|
2548
2531
|
throw __decorateServiceException(response, parsedBody);
|
|
2549
2532
|
}
|
|
@@ -2582,7 +2565,7 @@ export var deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (out
|
|
|
2582
2565
|
});
|
|
2583
2566
|
}); };
|
|
2584
2567
|
var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2585
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2568
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2586
2569
|
var _c;
|
|
2587
2570
|
return __generator(this, function (_d) {
|
|
2588
2571
|
switch (_d.label) {
|
|
@@ -2592,7 +2575,6 @@ var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (outpu
|
|
|
2592
2575
|
return [4, parseBody(output.body, context)];
|
|
2593
2576
|
case 1:
|
|
2594
2577
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2595
|
-
errorCode = "UnknownError";
|
|
2596
2578
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
2579
|
_b = errorCode;
|
|
2598
2580
|
switch (_b) {
|
|
@@ -2624,10 +2606,12 @@ var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (outpu
|
|
|
2624
2606
|
case 13: throw _d.sent();
|
|
2625
2607
|
case 14:
|
|
2626
2608
|
parsedBody = parsedOutput.body;
|
|
2609
|
+
$metadata = deserializeMetadata(output);
|
|
2610
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2627
2611
|
response = new __BaseException({
|
|
2628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2629
2613
|
$fault: "client",
|
|
2630
|
-
$metadata:
|
|
2614
|
+
$metadata: $metadata,
|
|
2631
2615
|
});
|
|
2632
2616
|
throw __decorateServiceException(response, parsedBody);
|
|
2633
2617
|
}
|
|
@@ -2662,7 +2646,7 @@ export var deserializeAws_restJson1RevokeFlowEntitlementCommand = function (outp
|
|
|
2662
2646
|
});
|
|
2663
2647
|
}); };
|
|
2664
2648
|
var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2665
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2649
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2666
2650
|
var _c;
|
|
2667
2651
|
return __generator(this, function (_d) {
|
|
2668
2652
|
switch (_d.label) {
|
|
@@ -2672,7 +2656,6 @@ var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output
|
|
|
2672
2656
|
return [4, parseBody(output.body, context)];
|
|
2673
2657
|
case 1:
|
|
2674
2658
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2675
|
-
errorCode = "UnknownError";
|
|
2676
2659
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
2660
|
_b = errorCode;
|
|
2678
2661
|
switch (_b) {
|
|
@@ -2704,10 +2687,12 @@ var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output
|
|
|
2704
2687
|
case 13: throw _d.sent();
|
|
2705
2688
|
case 14:
|
|
2706
2689
|
parsedBody = parsedOutput.body;
|
|
2690
|
+
$metadata = deserializeMetadata(output);
|
|
2691
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2707
2692
|
response = new __BaseException({
|
|
2708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2693
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2709
2694
|
$fault: "client",
|
|
2710
|
-
$metadata:
|
|
2695
|
+
$metadata: $metadata,
|
|
2711
2696
|
});
|
|
2712
2697
|
throw __decorateServiceException(response, parsedBody);
|
|
2713
2698
|
}
|
|
@@ -2742,7 +2727,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
2742
2727
|
});
|
|
2743
2728
|
}); };
|
|
2744
2729
|
var deserializeAws_restJson1StartFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2745
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2730
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2746
2731
|
var _c;
|
|
2747
2732
|
return __generator(this, function (_d) {
|
|
2748
2733
|
switch (_d.label) {
|
|
@@ -2752,7 +2737,6 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
2752
2737
|
return [4, parseBody(output.body, context)];
|
|
2753
2738
|
case 1:
|
|
2754
2739
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2755
|
-
errorCode = "UnknownError";
|
|
2756
2740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2757
2741
|
_b = errorCode;
|
|
2758
2742
|
switch (_b) {
|
|
@@ -2784,10 +2768,12 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
2784
2768
|
case 13: throw _d.sent();
|
|
2785
2769
|
case 14:
|
|
2786
2770
|
parsedBody = parsedOutput.body;
|
|
2771
|
+
$metadata = deserializeMetadata(output);
|
|
2772
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2787
2773
|
response = new __BaseException({
|
|
2788
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2774
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2789
2775
|
$fault: "client",
|
|
2790
|
-
$metadata:
|
|
2776
|
+
$metadata: $metadata,
|
|
2791
2777
|
});
|
|
2792
2778
|
throw __decorateServiceException(response, parsedBody);
|
|
2793
2779
|
}
|
|
@@ -2822,7 +2808,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
2822
2808
|
});
|
|
2823
2809
|
}); };
|
|
2824
2810
|
var deserializeAws_restJson1StopFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2825
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2811
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2826
2812
|
var _c;
|
|
2827
2813
|
return __generator(this, function (_d) {
|
|
2828
2814
|
switch (_d.label) {
|
|
@@ -2832,7 +2818,6 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
2832
2818
|
return [4, parseBody(output.body, context)];
|
|
2833
2819
|
case 1:
|
|
2834
2820
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2835
|
-
errorCode = "UnknownError";
|
|
2836
2821
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
2822
|
_b = errorCode;
|
|
2838
2823
|
switch (_b) {
|
|
@@ -2864,10 +2849,12 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
2864
2849
|
case 13: throw _d.sent();
|
|
2865
2850
|
case 14:
|
|
2866
2851
|
parsedBody = parsedOutput.body;
|
|
2852
|
+
$metadata = deserializeMetadata(output);
|
|
2853
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2867
2854
|
response = new __BaseException({
|
|
2868
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2855
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2869
2856
|
$fault: "client",
|
|
2870
|
-
$metadata:
|
|
2857
|
+
$metadata: $metadata,
|
|
2871
2858
|
});
|
|
2872
2859
|
throw __decorateServiceException(response, parsedBody);
|
|
2873
2860
|
}
|
|
@@ -2892,7 +2879,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2892
2879
|
});
|
|
2893
2880
|
}); };
|
|
2894
2881
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2895
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2882
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2896
2883
|
var _c;
|
|
2897
2884
|
return __generator(this, function (_d) {
|
|
2898
2885
|
switch (_d.label) {
|
|
@@ -2902,7 +2889,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2902
2889
|
return [4, parseBody(output.body, context)];
|
|
2903
2890
|
case 1:
|
|
2904
2891
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2905
|
-
errorCode = "UnknownError";
|
|
2906
2892
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
2893
|
_b = errorCode;
|
|
2908
2894
|
switch (_b) {
|
|
@@ -2922,10 +2908,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2922
2908
|
case 7: throw _d.sent();
|
|
2923
2909
|
case 8:
|
|
2924
2910
|
parsedBody = parsedOutput.body;
|
|
2911
|
+
$metadata = deserializeMetadata(output);
|
|
2912
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2925
2913
|
response = new __BaseException({
|
|
2926
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2927
2915
|
$fault: "client",
|
|
2928
|
-
$metadata:
|
|
2916
|
+
$metadata: $metadata,
|
|
2929
2917
|
});
|
|
2930
2918
|
throw __decorateServiceException(response, parsedBody);
|
|
2931
2919
|
}
|
|
@@ -2950,7 +2938,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2950
2938
|
});
|
|
2951
2939
|
}); };
|
|
2952
2940
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2953
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2941
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2954
2942
|
var _c;
|
|
2955
2943
|
return __generator(this, function (_d) {
|
|
2956
2944
|
switch (_d.label) {
|
|
@@ -2960,7 +2948,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2960
2948
|
return [4, parseBody(output.body, context)];
|
|
2961
2949
|
case 1:
|
|
2962
2950
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2963
|
-
errorCode = "UnknownError";
|
|
2964
2951
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2965
2952
|
_b = errorCode;
|
|
2966
2953
|
switch (_b) {
|
|
@@ -2980,10 +2967,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2980
2967
|
case 7: throw _d.sent();
|
|
2981
2968
|
case 8:
|
|
2982
2969
|
parsedBody = parsedOutput.body;
|
|
2970
|
+
$metadata = deserializeMetadata(output);
|
|
2971
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2983
2972
|
response = new __BaseException({
|
|
2984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2985
2974
|
$fault: "client",
|
|
2986
|
-
$metadata:
|
|
2975
|
+
$metadata: $metadata,
|
|
2987
2976
|
});
|
|
2988
2977
|
throw __decorateServiceException(response, parsedBody);
|
|
2989
2978
|
}
|
|
@@ -3014,7 +3003,7 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
3014
3003
|
});
|
|
3015
3004
|
}); };
|
|
3016
3005
|
var deserializeAws_restJson1UpdateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3017
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3006
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3018
3007
|
var _c;
|
|
3019
3008
|
return __generator(this, function (_d) {
|
|
3020
3009
|
switch (_d.label) {
|
|
@@ -3024,7 +3013,6 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
3024
3013
|
return [4, parseBody(output.body, context)];
|
|
3025
3014
|
case 1:
|
|
3026
3015
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3027
|
-
errorCode = "UnknownError";
|
|
3028
3016
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3029
3017
|
_b = errorCode;
|
|
3030
3018
|
switch (_b) {
|
|
@@ -3056,10 +3044,12 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
3056
3044
|
case 13: throw _d.sent();
|
|
3057
3045
|
case 14:
|
|
3058
3046
|
parsedBody = parsedOutput.body;
|
|
3047
|
+
$metadata = deserializeMetadata(output);
|
|
3048
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3059
3049
|
response = new __BaseException({
|
|
3060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3061
3051
|
$fault: "client",
|
|
3062
|
-
$metadata:
|
|
3052
|
+
$metadata: $metadata,
|
|
3063
3053
|
});
|
|
3064
3054
|
throw __decorateServiceException(response, parsedBody);
|
|
3065
3055
|
}
|
|
@@ -3094,7 +3084,7 @@ export var deserializeAws_restJson1UpdateFlowEntitlementCommand = function (outp
|
|
|
3094
3084
|
});
|
|
3095
3085
|
}); };
|
|
3096
3086
|
var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3097
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3087
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3098
3088
|
var _c;
|
|
3099
3089
|
return __generator(this, function (_d) {
|
|
3100
3090
|
switch (_d.label) {
|
|
@@ -3104,7 +3094,6 @@ var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output
|
|
|
3104
3094
|
return [4, parseBody(output.body, context)];
|
|
3105
3095
|
case 1:
|
|
3106
3096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3107
|
-
errorCode = "UnknownError";
|
|
3108
3097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3109
3098
|
_b = errorCode;
|
|
3110
3099
|
switch (_b) {
|
|
@@ -3136,10 +3125,12 @@ var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output
|
|
|
3136
3125
|
case 13: throw _d.sent();
|
|
3137
3126
|
case 14:
|
|
3138
3127
|
parsedBody = parsedOutput.body;
|
|
3128
|
+
$metadata = deserializeMetadata(output);
|
|
3129
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3139
3130
|
response = new __BaseException({
|
|
3140
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3131
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3141
3132
|
$fault: "client",
|
|
3142
|
-
$metadata:
|
|
3133
|
+
$metadata: $metadata,
|
|
3143
3134
|
});
|
|
3144
3135
|
throw __decorateServiceException(response, parsedBody);
|
|
3145
3136
|
}
|
|
@@ -3174,7 +3165,7 @@ export var deserializeAws_restJson1UpdateFlowMediaStreamCommand = function (outp
|
|
|
3174
3165
|
});
|
|
3175
3166
|
}); };
|
|
3176
3167
|
var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3177
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3168
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3178
3169
|
var _c;
|
|
3179
3170
|
return __generator(this, function (_d) {
|
|
3180
3171
|
switch (_d.label) {
|
|
@@ -3184,7 +3175,6 @@ var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output
|
|
|
3184
3175
|
return [4, parseBody(output.body, context)];
|
|
3185
3176
|
case 1:
|
|
3186
3177
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3187
|
-
errorCode = "UnknownError";
|
|
3188
3178
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3189
3179
|
_b = errorCode;
|
|
3190
3180
|
switch (_b) {
|
|
@@ -3216,10 +3206,12 @@ var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output
|
|
|
3216
3206
|
case 13: throw _d.sent();
|
|
3217
3207
|
case 14:
|
|
3218
3208
|
parsedBody = parsedOutput.body;
|
|
3209
|
+
$metadata = deserializeMetadata(output);
|
|
3210
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3219
3211
|
response = new __BaseException({
|
|
3220
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3212
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3221
3213
|
$fault: "client",
|
|
3222
|
-
$metadata:
|
|
3214
|
+
$metadata: $metadata,
|
|
3223
3215
|
});
|
|
3224
3216
|
throw __decorateServiceException(response, parsedBody);
|
|
3225
3217
|
}
|
|
@@ -3254,7 +3246,7 @@ export var deserializeAws_restJson1UpdateFlowOutputCommand = function (output, c
|
|
|
3254
3246
|
});
|
|
3255
3247
|
}); };
|
|
3256
3248
|
var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3257
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3249
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3258
3250
|
var _c;
|
|
3259
3251
|
return __generator(this, function (_d) {
|
|
3260
3252
|
switch (_d.label) {
|
|
@@ -3264,7 +3256,6 @@ var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, con
|
|
|
3264
3256
|
return [4, parseBody(output.body, context)];
|
|
3265
3257
|
case 1:
|
|
3266
3258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3267
|
-
errorCode = "UnknownError";
|
|
3268
3259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3269
3260
|
_b = errorCode;
|
|
3270
3261
|
switch (_b) {
|
|
@@ -3296,10 +3287,12 @@ var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, con
|
|
|
3296
3287
|
case 13: throw _d.sent();
|
|
3297
3288
|
case 14:
|
|
3298
3289
|
parsedBody = parsedOutput.body;
|
|
3290
|
+
$metadata = deserializeMetadata(output);
|
|
3291
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3299
3292
|
response = new __BaseException({
|
|
3300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3293
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3301
3294
|
$fault: "client",
|
|
3302
|
-
$metadata:
|
|
3295
|
+
$metadata: $metadata,
|
|
3303
3296
|
});
|
|
3304
3297
|
throw __decorateServiceException(response, parsedBody);
|
|
3305
3298
|
}
|
|
@@ -3334,7 +3327,7 @@ export var deserializeAws_restJson1UpdateFlowSourceCommand = function (output, c
|
|
|
3334
3327
|
});
|
|
3335
3328
|
}); };
|
|
3336
3329
|
var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3337
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3330
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3338
3331
|
var _c;
|
|
3339
3332
|
return __generator(this, function (_d) {
|
|
3340
3333
|
switch (_d.label) {
|
|
@@ -3344,7 +3337,6 @@ var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, con
|
|
|
3344
3337
|
return [4, parseBody(output.body, context)];
|
|
3345
3338
|
case 1:
|
|
3346
3339
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3347
|
-
errorCode = "UnknownError";
|
|
3348
3340
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3349
3341
|
_b = errorCode;
|
|
3350
3342
|
switch (_b) {
|
|
@@ -3376,10 +3368,12 @@ var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, con
|
|
|
3376
3368
|
case 13: throw _d.sent();
|
|
3377
3369
|
case 14:
|
|
3378
3370
|
parsedBody = parsedOutput.body;
|
|
3371
|
+
$metadata = deserializeMetadata(output);
|
|
3372
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3379
3373
|
response = new __BaseException({
|
|
3380
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3381
3375
|
$fault: "client",
|
|
3382
|
-
$metadata:
|
|
3376
|
+
$metadata: $metadata,
|
|
3383
3377
|
});
|
|
3384
3378
|
throw __decorateServiceException(response, parsedBody);
|
|
3385
3379
|
}
|
|
@@ -3604,142 +3598,97 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
|
3604
3598
|
}, {});
|
|
3605
3599
|
};
|
|
3606
3600
|
var serializeAws_restJson1AddMaintenance = function (input, context) {
|
|
3607
|
-
return __assign(__assign({}, (input.MaintenanceDay
|
|
3608
|
-
input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceStartHour !== undefined &&
|
|
3609
|
-
input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }));
|
|
3601
|
+
return __assign(__assign({}, (input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }));
|
|
3610
3602
|
};
|
|
3611
3603
|
var serializeAws_restJson1AddMediaStreamRequest = function (input, context) {
|
|
3612
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes
|
|
3613
|
-
input.Attributes !== null && {
|
|
3604
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
3614
3605
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
3615
|
-
})), (input.ClockRate
|
|
3616
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName })), (input.MediaStreamType !== undefined &&
|
|
3617
|
-
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 }));
|
|
3618
3607
|
};
|
|
3619
3608
|
var serializeAws_restJson1AddOutputRequest = function (input, context) {
|
|
3620
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList
|
|
3621
|
-
input.CidrAllowList !== null && {
|
|
3609
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList != null && {
|
|
3622
3610
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
3623
|
-
})), (input.Description
|
|
3624
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations !== undefined &&
|
|
3625
|
-
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 && {
|
|
3626
3612
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
3627
|
-
})), (input.MinLatency
|
|
3628
|
-
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SmoothingLatency !== undefined &&
|
|
3629
|
-
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment !== undefined &&
|
|
3630
|
-
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 && {
|
|
3631
3614
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
3632
3615
|
}));
|
|
3633
3616
|
};
|
|
3634
3617
|
var serializeAws_restJson1DestinationConfigurationRequest = function (input, context) {
|
|
3635
|
-
return __assign(__assign(__assign({}, (input.DestinationIp
|
|
3636
|
-
input.DestinationPort !== null && { destinationPort: input.DestinationPort })), (input.Interface !== undefined &&
|
|
3637
|
-
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) }));
|
|
3638
3619
|
};
|
|
3639
3620
|
var serializeAws_restJson1EncodingParametersRequest = function (input, context) {
|
|
3640
|
-
return __assign(__assign({}, (input.CompressionFactor
|
|
3641
|
-
input.CompressionFactor !== null && { compressionFactor: __serializeFloat(input.CompressionFactor) })), (input.EncoderProfile !== undefined &&
|
|
3642
|
-
input.EncoderProfile !== null && { encoderProfile: input.EncoderProfile }));
|
|
3621
|
+
return __assign(__assign({}, (input.CompressionFactor != null && { compressionFactor: __serializeFloat(input.CompressionFactor) })), (input.EncoderProfile != null && { encoderProfile: input.EncoderProfile }));
|
|
3643
3622
|
};
|
|
3644
3623
|
var serializeAws_restJson1Encryption = function (input, context) {
|
|
3645
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm
|
|
3646
|
-
input.ConstantInitializationVector !== null && {
|
|
3624
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm != null && { algorithm: input.Algorithm })), (input.ConstantInitializationVector != null && {
|
|
3647
3625
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
3648
|
-
})), (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 }));
|
|
3649
3627
|
};
|
|
3650
3628
|
var serializeAws_restJson1FailoverConfig = function (input, context) {
|
|
3651
|
-
return __assign(__assign(__assign(__assign({}, (input.FailoverMode
|
|
3652
|
-
input.RecoveryWindow !== null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority !== undefined &&
|
|
3653
|
-
input.SourcePriority !== null && {
|
|
3629
|
+
return __assign(__assign(__assign(__assign({}, (input.FailoverMode != null && { failoverMode: input.FailoverMode })), (input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority != null && {
|
|
3654
3630
|
sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
|
|
3655
|
-
})), (input.State
|
|
3631
|
+
})), (input.State != null && { state: input.State }));
|
|
3656
3632
|
};
|
|
3657
3633
|
var serializeAws_restJson1FmtpRequest = function (input, context) {
|
|
3658
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ChannelOrder
|
|
3659
|
-
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 }));
|
|
3660
3635
|
};
|
|
3661
3636
|
var serializeAws_restJson1GrantEntitlementRequest = function (input, context) {
|
|
3662
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataTransferSubscriberFeePercent
|
|
3663
|
-
input.DataTransferSubscriberFeePercent !== null && {
|
|
3637
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataTransferSubscriberFeePercent != null && {
|
|
3664
3638
|
dataTransferSubscriberFeePercent: input.DataTransferSubscriberFeePercent,
|
|
3665
|
-
})), (input.Description
|
|
3666
|
-
input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.EntitlementStatus !== undefined &&
|
|
3667
|
-
input.EntitlementStatus !== null && { entitlementStatus: input.EntitlementStatus })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Subscribers !== undefined &&
|
|
3668
|
-
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 && {
|
|
3669
3640
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
3670
3641
|
}));
|
|
3671
3642
|
};
|
|
3672
3643
|
var serializeAws_restJson1InputConfigurationRequest = function (input, context) {
|
|
3673
|
-
return __assign(__assign({}, (input.InputPort
|
|
3674
|
-
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) }));
|
|
3675
3645
|
};
|
|
3676
3646
|
var serializeAws_restJson1InterfaceRequest = function (input, context) {
|
|
3677
|
-
return __assign({}, (input.Name
|
|
3647
|
+
return __assign({}, (input.Name != null && { name: input.Name }));
|
|
3678
3648
|
};
|
|
3679
3649
|
var serializeAws_restJson1MediaStreamAttributesRequest = function (input, context) {
|
|
3680
|
-
return __assign(__assign({}, (input.Fmtp
|
|
3681
|
-
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 }));
|
|
3682
3651
|
};
|
|
3683
3652
|
var serializeAws_restJson1MediaStreamOutputConfigurationRequest = function (input, context) {
|
|
3684
|
-
return __assign(__assign(__assign(__assign({}, (input.DestinationConfigurations
|
|
3685
|
-
input.DestinationConfigurations !== null && {
|
|
3653
|
+
return __assign(__assign(__assign(__assign({}, (input.DestinationConfigurations != null && {
|
|
3686
3654
|
destinationConfigurations: serializeAws_restJson1__listOfDestinationConfigurationRequest(input.DestinationConfigurations, context),
|
|
3687
|
-
})), (input.EncodingName
|
|
3688
|
-
input.EncodingParameters !== null && {
|
|
3655
|
+
})), (input.EncodingName != null && { encodingName: input.EncodingName })), (input.EncodingParameters != null && {
|
|
3689
3656
|
encodingParameters: serializeAws_restJson1EncodingParametersRequest(input.EncodingParameters, context),
|
|
3690
|
-
})), (input.MediaStreamName
|
|
3691
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }));
|
|
3657
|
+
})), (input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }));
|
|
3692
3658
|
};
|
|
3693
3659
|
var serializeAws_restJson1MediaStreamSourceConfigurationRequest = function (input, context) {
|
|
3694
|
-
return __assign(__assign(__assign({}, (input.EncodingName
|
|
3695
|
-
input.InputConfigurations !== null && {
|
|
3660
|
+
return __assign(__assign(__assign({}, (input.EncodingName != null && { encodingName: input.EncodingName })), (input.InputConfigurations != null && {
|
|
3696
3661
|
inputConfigurations: serializeAws_restJson1__listOfInputConfigurationRequest(input.InputConfigurations, context),
|
|
3697
|
-
})), (input.MediaStreamName
|
|
3698
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }));
|
|
3662
|
+
})), (input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }));
|
|
3699
3663
|
};
|
|
3700
3664
|
var serializeAws_restJson1SetSourceRequest = function (input, context) {
|
|
3701
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption
|
|
3702
|
-
input.Decryption !== null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.EntitlementArn !== undefined &&
|
|
3703
|
-
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 &&
|
|
3704
|
-
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 && {
|
|
3705
3666
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
3706
|
-
})), (input.MinLatency
|
|
3707
|
-
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
3708
|
-
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceName !== undefined &&
|
|
3709
|
-
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 }));
|
|
3710
3668
|
};
|
|
3711
3669
|
var serializeAws_restJson1SourcePriority = function (input, context) {
|
|
3712
|
-
return __assign({}, (input.PrimarySource
|
|
3670
|
+
return __assign({}, (input.PrimarySource != null && { primarySource: input.PrimarySource }));
|
|
3713
3671
|
};
|
|
3714
3672
|
var serializeAws_restJson1UpdateEncryption = function (input, context) {
|
|
3715
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm
|
|
3716
|
-
input.ConstantInitializationVector !== null && {
|
|
3673
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Algorithm != null && { algorithm: input.Algorithm })), (input.ConstantInitializationVector != null && {
|
|
3717
3674
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
3718
|
-
})), (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 }));
|
|
3719
3676
|
};
|
|
3720
3677
|
var serializeAws_restJson1UpdateFailoverConfig = function (input, context) {
|
|
3721
|
-
return __assign(__assign(__assign(__assign({}, (input.FailoverMode
|
|
3722
|
-
input.RecoveryWindow !== null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority !== undefined &&
|
|
3723
|
-
input.SourcePriority !== null && {
|
|
3678
|
+
return __assign(__assign(__assign(__assign({}, (input.FailoverMode != null && { failoverMode: input.FailoverMode })), (input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow })), (input.SourcePriority != null && {
|
|
3724
3679
|
sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
|
|
3725
|
-
})), (input.State
|
|
3680
|
+
})), (input.State != null && { state: input.State }));
|
|
3726
3681
|
};
|
|
3727
3682
|
var serializeAws_restJson1UpdateMaintenance = function (input, context) {
|
|
3728
|
-
return __assign(__assign(__assign({}, (input.MaintenanceDay
|
|
3729
|
-
input.MaintenanceDay !== null && { maintenanceDay: input.MaintenanceDay })), (input.MaintenanceScheduledDate !== undefined &&
|
|
3730
|
-
input.MaintenanceScheduledDate !== null && { maintenanceScheduledDate: input.MaintenanceScheduledDate })), (input.MaintenanceStartHour !== undefined &&
|
|
3731
|
-
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 }));
|
|
3732
3684
|
};
|
|
3733
3685
|
var serializeAws_restJson1VpcInterfaceAttachment = function (input, context) {
|
|
3734
|
-
return __assign({}, (input.VpcInterfaceName
|
|
3735
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }));
|
|
3686
|
+
return __assign({}, (input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }));
|
|
3736
3687
|
};
|
|
3737
3688
|
var serializeAws_restJson1VpcInterfaceRequest = function (input, context) {
|
|
3738
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Name
|
|
3739
|
-
input.NetworkInterfaceType !== null && { networkInterfaceType: input.NetworkInterfaceType })), (input.RoleArn !== undefined && input.RoleArn !== null && { roleArn: input.RoleArn })), (input.SecurityGroupIds !== undefined &&
|
|
3740
|
-
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 && {
|
|
3741
3690
|
securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
|
|
3742
|
-
})), (input.SubnetId
|
|
3691
|
+
})), (input.SubnetId != null && { subnetId: input.SubnetId }));
|
|
3743
3692
|
};
|
|
3744
3693
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
3745
3694
|
var retVal = (output || [])
|
|
@@ -3909,9 +3858,7 @@ var deserializeAws_restJson1DestinationConfiguration = function (output, context
|
|
|
3909
3858
|
return {
|
|
3910
3859
|
DestinationIp: __expectString(output.destinationIp),
|
|
3911
3860
|
DestinationPort: __expectInt32(output.destinationPort),
|
|
3912
|
-
Interface: output.interface
|
|
3913
|
-
? deserializeAws_restJson1Interface(output.interface, context)
|
|
3914
|
-
: undefined,
|
|
3861
|
+
Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
|
|
3915
3862
|
OutboundIp: __expectString(output.outboundIp),
|
|
3916
3863
|
};
|
|
3917
3864
|
};
|
|
@@ -3938,22 +3885,18 @@ var deserializeAws_restJson1Entitlement = function (output, context) {
|
|
|
3938
3885
|
return {
|
|
3939
3886
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
3940
3887
|
Description: __expectString(output.description),
|
|
3941
|
-
Encryption: output.encryption
|
|
3942
|
-
? deserializeAws_restJson1Encryption(output.encryption, context)
|
|
3943
|
-
: undefined,
|
|
3888
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
|
|
3944
3889
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
3945
3890
|
EntitlementStatus: __expectString(output.entitlementStatus),
|
|
3946
3891
|
Name: __expectString(output.name),
|
|
3947
|
-
Subscribers: output.subscribers
|
|
3948
|
-
? deserializeAws_restJson1__listOf__string(output.subscribers, context)
|
|
3949
|
-
: undefined,
|
|
3892
|
+
Subscribers: output.subscribers != null ? deserializeAws_restJson1__listOf__string(output.subscribers, context) : undefined,
|
|
3950
3893
|
};
|
|
3951
3894
|
};
|
|
3952
3895
|
var deserializeAws_restJson1FailoverConfig = function (output, context) {
|
|
3953
3896
|
return {
|
|
3954
3897
|
FailoverMode: __expectString(output.failoverMode),
|
|
3955
3898
|
RecoveryWindow: __expectInt32(output.recoveryWindow),
|
|
3956
|
-
SourcePriority: output.sourcePriority
|
|
3899
|
+
SourcePriority: output.sourcePriority != null
|
|
3957
3900
|
? deserializeAws_restJson1SourcePriority(output.sourcePriority, context)
|
|
3958
3901
|
: undefined,
|
|
3959
3902
|
State: __expectString(output.state),
|
|
@@ -3964,31 +3907,23 @@ var deserializeAws_restJson1Flow = function (output, context) {
|
|
|
3964
3907
|
AvailabilityZone: __expectString(output.availabilityZone),
|
|
3965
3908
|
Description: __expectString(output.description),
|
|
3966
3909
|
EgressIp: __expectString(output.egressIp),
|
|
3967
|
-
Entitlements: output.entitlements
|
|
3910
|
+
Entitlements: output.entitlements != null
|
|
3968
3911
|
? deserializeAws_restJson1__listOfEntitlement(output.entitlements, context)
|
|
3969
3912
|
: undefined,
|
|
3970
3913
|
FlowArn: __expectString(output.flowArn),
|
|
3971
|
-
Maintenance: output.maintenance
|
|
3972
|
-
|
|
3973
|
-
: undefined,
|
|
3974
|
-
MediaStreams: output.mediaStreams !== undefined && output.mediaStreams !== null
|
|
3914
|
+
Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
|
|
3915
|
+
MediaStreams: output.mediaStreams != null
|
|
3975
3916
|
? deserializeAws_restJson1__listOfMediaStream(output.mediaStreams, context)
|
|
3976
3917
|
: undefined,
|
|
3977
3918
|
Name: __expectString(output.name),
|
|
3978
|
-
Outputs: output.outputs
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
Source: output.source !== undefined && output.source !== null
|
|
3982
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
3983
|
-
: undefined,
|
|
3984
|
-
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
|
|
3985
3922
|
? deserializeAws_restJson1FailoverConfig(output.sourceFailoverConfig, context)
|
|
3986
3923
|
: undefined,
|
|
3987
|
-
Sources: output.sources
|
|
3988
|
-
? deserializeAws_restJson1__listOfSource(output.sources, context)
|
|
3989
|
-
: undefined,
|
|
3924
|
+
Sources: output.sources != null ? deserializeAws_restJson1__listOfSource(output.sources, context) : undefined,
|
|
3990
3925
|
Status: __expectString(output.status),
|
|
3991
|
-
VpcInterfaces: output.vpcInterfaces
|
|
3926
|
+
VpcInterfaces: output.vpcInterfaces != null
|
|
3992
3927
|
? deserializeAws_restJson1__listOfVpcInterface(output.vpcInterfaces, context)
|
|
3993
3928
|
: undefined,
|
|
3994
3929
|
};
|
|
@@ -4008,9 +3943,7 @@ var deserializeAws_restJson1InputConfiguration = function (output, context) {
|
|
|
4008
3943
|
return {
|
|
4009
3944
|
InputIp: __expectString(output.inputIp),
|
|
4010
3945
|
InputPort: __expectInt32(output.inputPort),
|
|
4011
|
-
Interface: output.interface
|
|
4012
|
-
? deserializeAws_restJson1Interface(output.interface, context)
|
|
4013
|
-
: undefined,
|
|
3946
|
+
Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
|
|
4014
3947
|
};
|
|
4015
3948
|
};
|
|
4016
3949
|
var deserializeAws_restJson1Interface = function (output, context) {
|
|
@@ -4030,9 +3963,7 @@ var deserializeAws_restJson1ListedFlow = function (output, context) {
|
|
|
4030
3963
|
AvailabilityZone: __expectString(output.availabilityZone),
|
|
4031
3964
|
Description: __expectString(output.description),
|
|
4032
3965
|
FlowArn: __expectString(output.flowArn),
|
|
4033
|
-
Maintenance: output.maintenance
|
|
4034
|
-
? deserializeAws_restJson1Maintenance(output.maintenance, context)
|
|
4035
|
-
: undefined,
|
|
3966
|
+
Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
|
|
4036
3967
|
Name: __expectString(output.name),
|
|
4037
3968
|
SourceType: __expectString(output.sourceType),
|
|
4038
3969
|
Status: __expectString(output.status),
|
|
@@ -4048,9 +3979,7 @@ var deserializeAws_restJson1Maintenance = function (output, context) {
|
|
|
4048
3979
|
};
|
|
4049
3980
|
var deserializeAws_restJson1MediaStream = function (output, context) {
|
|
4050
3981
|
return {
|
|
4051
|
-
Attributes: output.attributes
|
|
4052
|
-
? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context)
|
|
4053
|
-
: undefined,
|
|
3982
|
+
Attributes: output.attributes != null ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context) : undefined,
|
|
4054
3983
|
ClockRate: __expectInt32(output.clockRate),
|
|
4055
3984
|
Description: __expectString(output.description),
|
|
4056
3985
|
Fmt: __expectInt32(output.fmt),
|
|
@@ -4062,19 +3991,17 @@ var deserializeAws_restJson1MediaStream = function (output, context) {
|
|
|
4062
3991
|
};
|
|
4063
3992
|
var deserializeAws_restJson1MediaStreamAttributes = function (output, context) {
|
|
4064
3993
|
return {
|
|
4065
|
-
Fmtp: output.fmtp
|
|
4066
|
-
? deserializeAws_restJson1Fmtp(output.fmtp, context)
|
|
4067
|
-
: undefined,
|
|
3994
|
+
Fmtp: output.fmtp != null ? deserializeAws_restJson1Fmtp(output.fmtp, context) : undefined,
|
|
4068
3995
|
Lang: __expectString(output.lang),
|
|
4069
3996
|
};
|
|
4070
3997
|
};
|
|
4071
3998
|
var deserializeAws_restJson1MediaStreamOutputConfiguration = function (output, context) {
|
|
4072
3999
|
return {
|
|
4073
|
-
DestinationConfigurations: output.destinationConfigurations
|
|
4000
|
+
DestinationConfigurations: output.destinationConfigurations != null
|
|
4074
4001
|
? deserializeAws_restJson1__listOfDestinationConfiguration(output.destinationConfigurations, context)
|
|
4075
4002
|
: undefined,
|
|
4076
4003
|
EncodingName: __expectString(output.encodingName),
|
|
4077
|
-
EncodingParameters: output.encodingParameters
|
|
4004
|
+
EncodingParameters: output.encodingParameters != null
|
|
4078
4005
|
? deserializeAws_restJson1EncodingParameters(output.encodingParameters, context)
|
|
4079
4006
|
: undefined,
|
|
4080
4007
|
MediaStreamName: __expectString(output.mediaStreamName),
|
|
@@ -4083,7 +4010,7 @@ var deserializeAws_restJson1MediaStreamOutputConfiguration = function (output, c
|
|
|
4083
4010
|
var deserializeAws_restJson1MediaStreamSourceConfiguration = function (output, context) {
|
|
4084
4011
|
return {
|
|
4085
4012
|
EncodingName: __expectString(output.encodingName),
|
|
4086
|
-
InputConfigurations: output.inputConfigurations
|
|
4013
|
+
InputConfigurations: output.inputConfigurations != null
|
|
4087
4014
|
? deserializeAws_restJson1__listOfInputConfiguration(output.inputConfigurations, context)
|
|
4088
4015
|
: undefined,
|
|
4089
4016
|
MediaStreamName: __expectString(output.mediaStreamName),
|
|
@@ -4091,9 +4018,7 @@ var deserializeAws_restJson1MediaStreamSourceConfiguration = function (output, c
|
|
|
4091
4018
|
};
|
|
4092
4019
|
var deserializeAws_restJson1Messages = function (output, context) {
|
|
4093
4020
|
return {
|
|
4094
|
-
Errors: output.errors
|
|
4095
|
-
? deserializeAws_restJson1__listOf__string(output.errors, context)
|
|
4096
|
-
: undefined,
|
|
4021
|
+
Errors: output.errors != null ? deserializeAws_restJson1__listOf__string(output.errors, context) : undefined,
|
|
4097
4022
|
};
|
|
4098
4023
|
};
|
|
4099
4024
|
var deserializeAws_restJson1Offering = function (output, context) {
|
|
@@ -4105,7 +4030,7 @@ var deserializeAws_restJson1Offering = function (output, context) {
|
|
|
4105
4030
|
OfferingDescription: __expectString(output.offeringDescription),
|
|
4106
4031
|
PricePerUnit: __expectString(output.pricePerUnit),
|
|
4107
4032
|
PriceUnits: __expectString(output.priceUnits),
|
|
4108
|
-
ResourceSpecification: output.resourceSpecification
|
|
4033
|
+
ResourceSpecification: output.resourceSpecification != null
|
|
4109
4034
|
? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
|
|
4110
4035
|
: undefined,
|
|
4111
4036
|
};
|
|
@@ -4115,22 +4040,18 @@ var deserializeAws_restJson1Output = function (output, context) {
|
|
|
4115
4040
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
4116
4041
|
Description: __expectString(output.description),
|
|
4117
4042
|
Destination: __expectString(output.destination),
|
|
4118
|
-
Encryption: output.encryption
|
|
4119
|
-
? deserializeAws_restJson1Encryption(output.encryption, context)
|
|
4120
|
-
: undefined,
|
|
4043
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
|
|
4121
4044
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
4122
4045
|
ListenerAddress: __expectString(output.listenerAddress),
|
|
4123
4046
|
MediaLiveInputArn: __expectString(output.mediaLiveInputArn),
|
|
4124
|
-
MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations
|
|
4047
|
+
MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations != null
|
|
4125
4048
|
? deserializeAws_restJson1__listOfMediaStreamOutputConfiguration(output.mediaStreamOutputConfigurations, context)
|
|
4126
4049
|
: undefined,
|
|
4127
4050
|
Name: __expectString(output.name),
|
|
4128
4051
|
OutputArn: __expectString(output.outputArn),
|
|
4129
4052
|
Port: __expectInt32(output.port),
|
|
4130
|
-
Transport: output.transport
|
|
4131
|
-
|
|
4132
|
-
: undefined,
|
|
4133
|
-
VpcInterfaceAttachment: output.vpcInterfaceAttachment !== undefined && output.vpcInterfaceAttachment !== null
|
|
4053
|
+
Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
|
|
4054
|
+
VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
|
|
4134
4055
|
? deserializeAws_restJson1VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
|
|
4135
4056
|
: undefined,
|
|
4136
4057
|
};
|
|
@@ -4148,7 +4069,7 @@ var deserializeAws_restJson1Reservation = function (output, context) {
|
|
|
4148
4069
|
ReservationArn: __expectString(output.reservationArn),
|
|
4149
4070
|
ReservationName: __expectString(output.reservationName),
|
|
4150
4071
|
ReservationState: __expectString(output.reservationState),
|
|
4151
|
-
ResourceSpecification: output.resourceSpecification
|
|
4072
|
+
ResourceSpecification: output.resourceSpecification != null
|
|
4152
4073
|
? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
|
|
4153
4074
|
: undefined,
|
|
4154
4075
|
Start: __expectString(output.start),
|
|
@@ -4163,23 +4084,19 @@ var deserializeAws_restJson1ResourceSpecification = function (output, context) {
|
|
|
4163
4084
|
var deserializeAws_restJson1Source = function (output, context) {
|
|
4164
4085
|
return {
|
|
4165
4086
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
4166
|
-
Decryption: output.decryption
|
|
4167
|
-
? deserializeAws_restJson1Encryption(output.decryption, context)
|
|
4168
|
-
: undefined,
|
|
4087
|
+
Decryption: output.decryption != null ? deserializeAws_restJson1Encryption(output.decryption, context) : undefined,
|
|
4169
4088
|
Description: __expectString(output.description),
|
|
4170
4089
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
4171
4090
|
IngestIp: __expectString(output.ingestIp),
|
|
4172
4091
|
IngestPort: __expectInt32(output.ingestPort),
|
|
4173
|
-
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations
|
|
4092
|
+
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
|
|
4174
4093
|
? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
|
|
4175
4094
|
: undefined,
|
|
4176
4095
|
Name: __expectString(output.name),
|
|
4177
4096
|
SenderControlPort: __expectInt32(output.senderControlPort),
|
|
4178
4097
|
SenderIpAddress: __expectString(output.senderIpAddress),
|
|
4179
4098
|
SourceArn: __expectString(output.sourceArn),
|
|
4180
|
-
Transport: output.transport
|
|
4181
|
-
? deserializeAws_restJson1Transport(output.transport, context)
|
|
4182
|
-
: undefined,
|
|
4099
|
+
Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
|
|
4183
4100
|
VpcInterfaceName: __expectString(output.vpcInterfaceName),
|
|
4184
4101
|
WhitelistCidr: __expectString(output.whitelistCidr),
|
|
4185
4102
|
};
|
|
@@ -4191,7 +4108,7 @@ var deserializeAws_restJson1SourcePriority = function (output, context) {
|
|
|
4191
4108
|
};
|
|
4192
4109
|
var deserializeAws_restJson1Transport = function (output, context) {
|
|
4193
4110
|
return {
|
|
4194
|
-
CidrAllowList: output.cidrAllowList
|
|
4111
|
+
CidrAllowList: output.cidrAllowList != null
|
|
4195
4112
|
? deserializeAws_restJson1__listOf__string(output.cidrAllowList, context)
|
|
4196
4113
|
: undefined,
|
|
4197
4114
|
MaxBitrate: __expectInt32(output.maxBitrate),
|
|
@@ -4209,12 +4126,12 @@ var deserializeAws_restJson1Transport = function (output, context) {
|
|
|
4209
4126
|
var deserializeAws_restJson1VpcInterface = function (output, context) {
|
|
4210
4127
|
return {
|
|
4211
4128
|
Name: __expectString(output.name),
|
|
4212
|
-
NetworkInterfaceIds: output.networkInterfaceIds
|
|
4129
|
+
NetworkInterfaceIds: output.networkInterfaceIds != null
|
|
4213
4130
|
? deserializeAws_restJson1__listOf__string(output.networkInterfaceIds, context)
|
|
4214
4131
|
: undefined,
|
|
4215
4132
|
NetworkInterfaceType: __expectString(output.networkInterfaceType),
|
|
4216
4133
|
RoleArn: __expectString(output.roleArn),
|
|
4217
|
-
SecurityGroupIds: output.securityGroupIds
|
|
4134
|
+
SecurityGroupIds: output.securityGroupIds != null
|
|
4218
4135
|
? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
|
|
4219
4136
|
: undefined,
|
|
4220
4137
|
SubnetId: __expectString(output.subnetId),
|
|
@@ -4281,5 +4198,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4281
4198
|
if (data["__type"] !== undefined) {
|
|
4282
4199
|
return sanitizeErrorCode(data["__type"]);
|
|
4283
4200
|
}
|
|
4284
|
-
return "";
|
|
4285
4201
|
};
|