@aws-sdk/client-mediatailor 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 +367 -430
- package/dist-es/protocols/Aws_restJson1.js +320 -383
- package/package.json +26 -26
|
@@ -14,9 +14,7 @@ export var serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand =
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configureLogs/playbackConfiguration";
|
|
17
|
-
body = JSON.stringify(__assign(__assign({}, (input.PercentEnabled
|
|
18
|
-
input.PercentEnabled !== null && { PercentEnabled: input.PercentEnabled })), (input.PlaybackConfigurationName !== undefined &&
|
|
19
|
-
input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign({}, (input.PercentEnabled != null && { PercentEnabled: input.PercentEnabled })), (input.PlaybackConfigurationName != null && { PlaybackConfigurationName: input.PlaybackConfigurationName })));
|
|
20
18
|
return [2, new __HttpRequest({
|
|
21
19
|
protocol: protocol,
|
|
22
20
|
hostname: hostname,
|
|
@@ -50,10 +48,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
50
48
|
else {
|
|
51
49
|
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
52
50
|
}
|
|
53
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FillerSlate
|
|
54
|
-
input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
|
|
55
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })), (input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode })), (input.Tags !== undefined &&
|
|
56
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier })));
|
|
51
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })), (input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Tier != null && { Tier: input.Tier })));
|
|
57
52
|
return [2, new __HttpRequest({
|
|
58
53
|
protocol: protocol,
|
|
59
54
|
hostname: hostname,
|
|
@@ -98,11 +93,9 @@ export var serializeAws_restJson1CreateLiveSourceCommand = function (input, cont
|
|
|
98
93
|
else {
|
|
99
94
|
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
100
95
|
}
|
|
101
|
-
body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations
|
|
102
|
-
input.HttpPackageConfigurations !== null && {
|
|
96
|
+
body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations != null && {
|
|
103
97
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
104
|
-
})), (input.Tags
|
|
105
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
98
|
+
})), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
106
99
|
return [2, new __HttpRequest({
|
|
107
100
|
protocol: protocol,
|
|
108
101
|
hostname: hostname,
|
|
@@ -147,11 +140,9 @@ export var serializeAws_restJson1CreatePrefetchScheduleCommand = function (input
|
|
|
147
140
|
else {
|
|
148
141
|
throw new Error("No value provided for input HTTP label: PlaybackConfigurationName.");
|
|
149
142
|
}
|
|
150
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Consumption
|
|
151
|
-
input.Consumption !== null && {
|
|
143
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Consumption != null && {
|
|
152
144
|
Consumption: serializeAws_restJson1PrefetchConsumption(input.Consumption, context),
|
|
153
|
-
})), (input.Retrieval
|
|
154
|
-
input.Retrieval !== null && { Retrieval: serializeAws_restJson1PrefetchRetrieval(input.Retrieval, context) })), (input.StreamId !== undefined && input.StreamId !== null && { StreamId: input.StreamId })));
|
|
145
|
+
})), (input.Retrieval != null && { Retrieval: serializeAws_restJson1PrefetchRetrieval(input.Retrieval, context) })), (input.StreamId != null && { StreamId: input.StreamId })));
|
|
155
146
|
return [2, new __HttpRequest({
|
|
156
147
|
protocol: protocol,
|
|
157
148
|
hostname: hostname,
|
|
@@ -196,13 +187,9 @@ export var serializeAws_restJson1CreateProgramCommand = function (input, context
|
|
|
196
187
|
else {
|
|
197
188
|
throw new Error("No value provided for input HTTP label: ProgramName.");
|
|
198
189
|
}
|
|
199
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AdBreaks
|
|
200
|
-
input.AdBreaks !== null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) })), (input.LiveSourceName !== undefined &&
|
|
201
|
-
input.LiveSourceName !== null && { LiveSourceName: input.LiveSourceName })), (input.ScheduleConfiguration !== undefined &&
|
|
202
|
-
input.ScheduleConfiguration !== null && {
|
|
190
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AdBreaks != null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) })), (input.LiveSourceName != null && { LiveSourceName: input.LiveSourceName })), (input.ScheduleConfiguration != null && {
|
|
203
191
|
ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
204
|
-
})), (input.SourceLocationName
|
|
205
|
-
input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName })));
|
|
192
|
+
})), (input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName != null && { VodSourceName: input.VodSourceName })));
|
|
206
193
|
return [2, new __HttpRequest({
|
|
207
194
|
protocol: protocol,
|
|
208
195
|
hostname: hostname,
|
|
@@ -236,20 +223,15 @@ export var serializeAws_restJson1CreateSourceLocationCommand = function (input,
|
|
|
236
223
|
else {
|
|
237
224
|
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
238
225
|
}
|
|
239
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration
|
|
240
|
-
input.AccessConfiguration !== null && {
|
|
226
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration != null && {
|
|
241
227
|
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
242
|
-
})), (input.DefaultSegmentDeliveryConfiguration
|
|
243
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
228
|
+
})), (input.DefaultSegmentDeliveryConfiguration != null && {
|
|
244
229
|
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
|
|
245
|
-
})), (input.HttpConfiguration
|
|
246
|
-
input.HttpConfiguration !== null && {
|
|
230
|
+
})), (input.HttpConfiguration != null && {
|
|
247
231
|
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
248
|
-
})), (input.SegmentDeliveryConfigurations
|
|
249
|
-
input.SegmentDeliveryConfigurations !== null && {
|
|
232
|
+
})), (input.SegmentDeliveryConfigurations != null && {
|
|
250
233
|
SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
251
|
-
})), (input.Tags
|
|
252
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
234
|
+
})), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
253
235
|
return [2, new __HttpRequest({
|
|
254
236
|
protocol: protocol,
|
|
255
237
|
hostname: hostname,
|
|
@@ -294,11 +276,9 @@ export var serializeAws_restJson1CreateVodSourceCommand = function (input, conte
|
|
|
294
276
|
else {
|
|
295
277
|
throw new Error("No value provided for input HTTP label: VodSourceName.");
|
|
296
278
|
}
|
|
297
|
-
body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations
|
|
298
|
-
input.HttpPackageConfigurations !== null && {
|
|
279
|
+
body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations != null && {
|
|
299
280
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
300
|
-
})), (input.Tags
|
|
301
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
281
|
+
})), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
302
282
|
return [2, new __HttpRequest({
|
|
303
283
|
protocol: protocol,
|
|
304
284
|
hostname: hostname,
|
|
@@ -1053,7 +1033,7 @@ export var serializeAws_restJson1ListPrefetchSchedulesCommand = function (input,
|
|
|
1053
1033
|
else {
|
|
1054
1034
|
throw new Error("No value provided for input HTTP label: PlaybackConfigurationName.");
|
|
1055
1035
|
}
|
|
1056
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1036
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StreamId != null && { StreamId: input.StreamId })));
|
|
1057
1037
|
return [2, new __HttpRequest({
|
|
1058
1038
|
protocol: protocol,
|
|
1059
1039
|
hostname: hostname,
|
|
@@ -1175,7 +1155,7 @@ export var serializeAws_restJson1PutChannelPolicyCommand = function (input, cont
|
|
|
1175
1155
|
else {
|
|
1176
1156
|
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
1177
1157
|
}
|
|
1178
|
-
body = JSON.stringify(__assign({}, (input.Policy
|
|
1158
|
+
body = JSON.stringify(__assign({}, (input.Policy != null && { Policy: input.Policy })));
|
|
1179
1159
|
return [2, new __HttpRequest({
|
|
1180
1160
|
protocol: protocol,
|
|
1181
1161
|
hostname: hostname,
|
|
@@ -1199,33 +1179,21 @@ export var serializeAws_restJson1PutPlaybackConfigurationCommand = function (inp
|
|
|
1199
1179
|
"content-type": "application/json",
|
|
1200
1180
|
};
|
|
1201
1181
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/playbackConfiguration";
|
|
1202
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdDecisionServerUrl
|
|
1203
|
-
input.AdDecisionServerUrl !== null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.AvailSuppression !== undefined &&
|
|
1204
|
-
input.AvailSuppression !== null && {
|
|
1182
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.AvailSuppression != null && {
|
|
1205
1183
|
AvailSuppression: serializeAws_restJson1AvailSuppression(input.AvailSuppression, context),
|
|
1206
|
-
})), (input.Bumper
|
|
1207
|
-
input.Bumper !== null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) })), (input.CdnConfiguration !== undefined &&
|
|
1208
|
-
input.CdnConfiguration !== null && {
|
|
1184
|
+
})), (input.Bumper != null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) })), (input.CdnConfiguration != null && {
|
|
1209
1185
|
CdnConfiguration: serializeAws_restJson1CdnConfiguration(input.CdnConfiguration, context),
|
|
1210
|
-
})), (input.ConfigurationAliases
|
|
1211
|
-
input.ConfigurationAliases !== null && {
|
|
1186
|
+
})), (input.ConfigurationAliases != null && {
|
|
1212
1187
|
ConfigurationAliases: serializeAws_restJson1ConfigurationAliasesRequest(input.ConfigurationAliases, context),
|
|
1213
|
-
})), (input.DashConfiguration
|
|
1214
|
-
input.DashConfiguration !== null && {
|
|
1188
|
+
})), (input.DashConfiguration != null && {
|
|
1215
1189
|
DashConfiguration: serializeAws_restJson1DashConfigurationForPut(input.DashConfiguration, context),
|
|
1216
|
-
})), (input.LivePreRollConfiguration
|
|
1217
|
-
input.LivePreRollConfiguration !== null && {
|
|
1190
|
+
})), (input.LivePreRollConfiguration != null && {
|
|
1218
1191
|
LivePreRollConfiguration: serializeAws_restJson1LivePreRollConfiguration(input.LivePreRollConfiguration, context),
|
|
1219
|
-
})), (input.ManifestProcessingRules
|
|
1220
|
-
input.ManifestProcessingRules !== null && {
|
|
1192
|
+
})), (input.ManifestProcessingRules != null && {
|
|
1221
1193
|
ManifestProcessingRules: serializeAws_restJson1ManifestProcessingRules(input.ManifestProcessingRules, context),
|
|
1222
|
-
})), (input.Name
|
|
1223
|
-
input.PersonalizationThresholdSeconds !== null && {
|
|
1194
|
+
})), (input.Name != null && { Name: input.Name })), (input.PersonalizationThresholdSeconds != null && {
|
|
1224
1195
|
PersonalizationThresholdSeconds: input.PersonalizationThresholdSeconds,
|
|
1225
|
-
})), (input.SlateAdUrl
|
|
1226
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.TranscodeProfileName !== undefined &&
|
|
1227
|
-
input.TranscodeProfileName !== null && { TranscodeProfileName: input.TranscodeProfileName })), (input.VideoContentSourceUrl !== undefined &&
|
|
1228
|
-
input.VideoContentSourceUrl !== null && { VideoContentSourceUrl: input.VideoContentSourceUrl })));
|
|
1196
|
+
})), (input.SlateAdUrl != null && { SlateAdUrl: input.SlateAdUrl })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.TranscodeProfileName != null && { TranscodeProfileName: input.TranscodeProfileName })), (input.VideoContentSourceUrl != null && { VideoContentSourceUrl: input.VideoContentSourceUrl })));
|
|
1229
1197
|
return [2, new __HttpRequest({
|
|
1230
1198
|
protocol: protocol,
|
|
1231
1199
|
hostname: hostname,
|
|
@@ -1321,8 +1289,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1321
1289
|
else {
|
|
1322
1290
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1323
1291
|
}
|
|
1324
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
1325
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
1292
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
1326
1293
|
return [2, new __HttpRequest({
|
|
1327
1294
|
protocol: protocol,
|
|
1328
1295
|
hostname: hostname,
|
|
@@ -1389,9 +1356,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
1389
1356
|
else {
|
|
1390
1357
|
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
1391
1358
|
}
|
|
1392
|
-
body = JSON.stringify(__assign(__assign({}, (input.FillerSlate
|
|
1393
|
-
input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
|
|
1394
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })));
|
|
1359
|
+
body = JSON.stringify(__assign(__assign({}, (input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })));
|
|
1395
1360
|
return [2, new __HttpRequest({
|
|
1396
1361
|
protocol: protocol,
|
|
1397
1362
|
hostname: hostname,
|
|
@@ -1436,8 +1401,7 @@ export var serializeAws_restJson1UpdateLiveSourceCommand = function (input, cont
|
|
|
1436
1401
|
else {
|
|
1437
1402
|
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
1438
1403
|
}
|
|
1439
|
-
body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations
|
|
1440
|
-
input.HttpPackageConfigurations !== null && {
|
|
1404
|
+
body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations != null && {
|
|
1441
1405
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1442
1406
|
})));
|
|
1443
1407
|
return [2, new __HttpRequest({
|
|
@@ -1473,17 +1437,13 @@ export var serializeAws_restJson1UpdateSourceLocationCommand = function (input,
|
|
|
1473
1437
|
else {
|
|
1474
1438
|
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
1475
1439
|
}
|
|
1476
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration
|
|
1477
|
-
input.AccessConfiguration !== null && {
|
|
1440
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration != null && {
|
|
1478
1441
|
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
1479
|
-
})), (input.DefaultSegmentDeliveryConfiguration
|
|
1480
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
1442
|
+
})), (input.DefaultSegmentDeliveryConfiguration != null && {
|
|
1481
1443
|
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
|
|
1482
|
-
})), (input.HttpConfiguration
|
|
1483
|
-
input.HttpConfiguration !== null && {
|
|
1444
|
+
})), (input.HttpConfiguration != null && {
|
|
1484
1445
|
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
1485
|
-
})), (input.SegmentDeliveryConfigurations
|
|
1486
|
-
input.SegmentDeliveryConfigurations !== null && {
|
|
1446
|
+
})), (input.SegmentDeliveryConfigurations != null && {
|
|
1487
1447
|
SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
1488
1448
|
})));
|
|
1489
1449
|
return [2, new __HttpRequest({
|
|
@@ -1530,8 +1490,7 @@ export var serializeAws_restJson1UpdateVodSourceCommand = function (input, conte
|
|
|
1530
1490
|
else {
|
|
1531
1491
|
throw new Error("No value provided for input HTTP label: VodSourceName.");
|
|
1532
1492
|
}
|
|
1533
|
-
body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations
|
|
1534
|
-
input.HttpPackageConfigurations !== null && {
|
|
1493
|
+
body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations != null && {
|
|
1535
1494
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1536
1495
|
})));
|
|
1537
1496
|
return [2, new __HttpRequest({
|
|
@@ -1575,7 +1534,7 @@ export var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand
|
|
|
1575
1534
|
});
|
|
1576
1535
|
}); };
|
|
1577
1536
|
var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1578
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1537
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
1579
1538
|
var _b;
|
|
1580
1539
|
return __generator(this, function (_c) {
|
|
1581
1540
|
switch (_c.label) {
|
|
@@ -1585,15 +1544,16 @@ var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError =
|
|
|
1585
1544
|
return [4, parseBody(output.body, context)];
|
|
1586
1545
|
case 1:
|
|
1587
1546
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1588
|
-
errorCode = "UnknownError";
|
|
1589
1547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1548
|
switch (errorCode) {
|
|
1591
1549
|
default:
|
|
1592
1550
|
parsedBody = parsedOutput.body;
|
|
1551
|
+
$metadata = deserializeMetadata(output);
|
|
1552
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1593
1553
|
response = new __BaseException({
|
|
1594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1595
1555
|
$fault: "client",
|
|
1596
|
-
$metadata:
|
|
1556
|
+
$metadata: $metadata,
|
|
1597
1557
|
});
|
|
1598
1558
|
throw __decorateServiceException(response, parsedBody);
|
|
1599
1559
|
}
|
|
@@ -1662,7 +1622,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1662
1622
|
});
|
|
1663
1623
|
}); };
|
|
1664
1624
|
var deserializeAws_restJson1CreateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1665
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1625
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
1666
1626
|
var _b;
|
|
1667
1627
|
return __generator(this, function (_c) {
|
|
1668
1628
|
switch (_c.label) {
|
|
@@ -1672,15 +1632,16 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1672
1632
|
return [4, parseBody(output.body, context)];
|
|
1673
1633
|
case 1:
|
|
1674
1634
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1675
|
-
errorCode = "UnknownError";
|
|
1676
1635
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
1636
|
switch (errorCode) {
|
|
1678
1637
|
default:
|
|
1679
1638
|
parsedBody = parsedOutput.body;
|
|
1639
|
+
$metadata = deserializeMetadata(output);
|
|
1640
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1680
1641
|
response = new __BaseException({
|
|
1681
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1682
1643
|
$fault: "client",
|
|
1683
|
-
$metadata:
|
|
1644
|
+
$metadata: $metadata,
|
|
1684
1645
|
});
|
|
1685
1646
|
throw __decorateServiceException(response, parsedBody);
|
|
1686
1647
|
}
|
|
@@ -1737,7 +1698,7 @@ export var deserializeAws_restJson1CreateLiveSourceCommand = function (output, c
|
|
|
1737
1698
|
});
|
|
1738
1699
|
}); };
|
|
1739
1700
|
var deserializeAws_restJson1CreateLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1740
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1701
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
1741
1702
|
var _b;
|
|
1742
1703
|
return __generator(this, function (_c) {
|
|
1743
1704
|
switch (_c.label) {
|
|
@@ -1747,15 +1708,16 @@ var deserializeAws_restJson1CreateLiveSourceCommandError = function (output, con
|
|
|
1747
1708
|
return [4, parseBody(output.body, context)];
|
|
1748
1709
|
case 1:
|
|
1749
1710
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1750
|
-
errorCode = "UnknownError";
|
|
1751
1711
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
1712
|
switch (errorCode) {
|
|
1753
1713
|
default:
|
|
1754
1714
|
parsedBody = parsedOutput.body;
|
|
1715
|
+
$metadata = deserializeMetadata(output);
|
|
1716
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1755
1717
|
response = new __BaseException({
|
|
1756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1757
1719
|
$fault: "client",
|
|
1758
|
-
$metadata:
|
|
1720
|
+
$metadata: $metadata,
|
|
1759
1721
|
});
|
|
1760
1722
|
throw __decorateServiceException(response, parsedBody);
|
|
1761
1723
|
}
|
|
@@ -1808,7 +1770,7 @@ export var deserializeAws_restJson1CreatePrefetchScheduleCommand = function (out
|
|
|
1808
1770
|
});
|
|
1809
1771
|
}); };
|
|
1810
1772
|
var deserializeAws_restJson1CreatePrefetchScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1811
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1773
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
1812
1774
|
var _b;
|
|
1813
1775
|
return __generator(this, function (_c) {
|
|
1814
1776
|
switch (_c.label) {
|
|
@@ -1818,15 +1780,16 @@ var deserializeAws_restJson1CreatePrefetchScheduleCommandError = function (outpu
|
|
|
1818
1780
|
return [4, parseBody(output.body, context)];
|
|
1819
1781
|
case 1:
|
|
1820
1782
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1821
|
-
errorCode = "UnknownError";
|
|
1822
1783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
1784
|
switch (errorCode) {
|
|
1824
1785
|
default:
|
|
1825
1786
|
parsedBody = parsedOutput.body;
|
|
1787
|
+
$metadata = deserializeMetadata(output);
|
|
1788
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1826
1789
|
response = new __BaseException({
|
|
1827
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1790
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1828
1791
|
$fault: "client",
|
|
1829
|
-
$metadata:
|
|
1792
|
+
$metadata: $metadata,
|
|
1830
1793
|
});
|
|
1831
1794
|
throw __decorateServiceException(response, parsedBody);
|
|
1832
1795
|
}
|
|
@@ -1891,7 +1854,7 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
|
|
|
1891
1854
|
});
|
|
1892
1855
|
}); };
|
|
1893
1856
|
var deserializeAws_restJson1CreateProgramCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1894
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1857
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
1895
1858
|
var _b;
|
|
1896
1859
|
return __generator(this, function (_c) {
|
|
1897
1860
|
switch (_c.label) {
|
|
@@ -1901,15 +1864,16 @@ var deserializeAws_restJson1CreateProgramCommandError = function (output, contex
|
|
|
1901
1864
|
return [4, parseBody(output.body, context)];
|
|
1902
1865
|
case 1:
|
|
1903
1866
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1904
|
-
errorCode = "UnknownError";
|
|
1905
1867
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
1868
|
switch (errorCode) {
|
|
1907
1869
|
default:
|
|
1908
1870
|
parsedBody = parsedOutput.body;
|
|
1871
|
+
$metadata = deserializeMetadata(output);
|
|
1872
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1909
1873
|
response = new __BaseException({
|
|
1910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1911
1875
|
$fault: "client",
|
|
1912
|
-
$metadata:
|
|
1876
|
+
$metadata: $metadata,
|
|
1913
1877
|
});
|
|
1914
1878
|
throw __decorateServiceException(response, parsedBody);
|
|
1915
1879
|
}
|
|
@@ -1974,7 +1938,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
|
|
|
1974
1938
|
});
|
|
1975
1939
|
}); };
|
|
1976
1940
|
var deserializeAws_restJson1CreateSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1977
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1941
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
1978
1942
|
var _b;
|
|
1979
1943
|
return __generator(this, function (_c) {
|
|
1980
1944
|
switch (_c.label) {
|
|
@@ -1984,15 +1948,16 @@ var deserializeAws_restJson1CreateSourceLocationCommandError = function (output,
|
|
|
1984
1948
|
return [4, parseBody(output.body, context)];
|
|
1985
1949
|
case 1:
|
|
1986
1950
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1987
|
-
errorCode = "UnknownError";
|
|
1988
1951
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
1952
|
switch (errorCode) {
|
|
1990
1953
|
default:
|
|
1991
1954
|
parsedBody = parsedOutput.body;
|
|
1955
|
+
$metadata = deserializeMetadata(output);
|
|
1956
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1992
1957
|
response = new __BaseException({
|
|
1993
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1958
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1994
1959
|
$fault: "client",
|
|
1995
|
-
$metadata:
|
|
1960
|
+
$metadata: $metadata,
|
|
1996
1961
|
});
|
|
1997
1962
|
throw __decorateServiceException(response, parsedBody);
|
|
1998
1963
|
}
|
|
@@ -2049,7 +2014,7 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
|
|
|
2049
2014
|
});
|
|
2050
2015
|
}); };
|
|
2051
2016
|
var deserializeAws_restJson1CreateVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2052
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2017
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2053
2018
|
var _b;
|
|
2054
2019
|
return __generator(this, function (_c) {
|
|
2055
2020
|
switch (_c.label) {
|
|
@@ -2059,15 +2024,16 @@ var deserializeAws_restJson1CreateVodSourceCommandError = function (output, cont
|
|
|
2059
2024
|
return [4, parseBody(output.body, context)];
|
|
2060
2025
|
case 1:
|
|
2061
2026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2062
|
-
errorCode = "UnknownError";
|
|
2063
2027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
2028
|
switch (errorCode) {
|
|
2065
2029
|
default:
|
|
2066
2030
|
parsedBody = parsedOutput.body;
|
|
2031
|
+
$metadata = deserializeMetadata(output);
|
|
2032
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2067
2033
|
response = new __BaseException({
|
|
2068
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2069
2035
|
$fault: "client",
|
|
2070
|
-
$metadata:
|
|
2036
|
+
$metadata: $metadata,
|
|
2071
2037
|
});
|
|
2072
2038
|
throw __decorateServiceException(response, parsedBody);
|
|
2073
2039
|
}
|
|
@@ -2094,7 +2060,7 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
2094
2060
|
});
|
|
2095
2061
|
}); };
|
|
2096
2062
|
var deserializeAws_restJson1DeleteChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2097
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2063
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2098
2064
|
var _b;
|
|
2099
2065
|
return __generator(this, function (_c) {
|
|
2100
2066
|
switch (_c.label) {
|
|
@@ -2104,15 +2070,16 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
2104
2070
|
return [4, parseBody(output.body, context)];
|
|
2105
2071
|
case 1:
|
|
2106
2072
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2107
|
-
errorCode = "UnknownError";
|
|
2108
2073
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
2074
|
switch (errorCode) {
|
|
2110
2075
|
default:
|
|
2111
2076
|
parsedBody = parsedOutput.body;
|
|
2077
|
+
$metadata = deserializeMetadata(output);
|
|
2078
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2112
2079
|
response = new __BaseException({
|
|
2113
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2114
2081
|
$fault: "client",
|
|
2115
|
-
$metadata:
|
|
2082
|
+
$metadata: $metadata,
|
|
2116
2083
|
});
|
|
2117
2084
|
throw __decorateServiceException(response, parsedBody);
|
|
2118
2085
|
}
|
|
@@ -2139,7 +2106,7 @@ export var deserializeAws_restJson1DeleteChannelPolicyCommand = function (output
|
|
|
2139
2106
|
});
|
|
2140
2107
|
}); };
|
|
2141
2108
|
var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2142
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2109
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2143
2110
|
var _b;
|
|
2144
2111
|
return __generator(this, function (_c) {
|
|
2145
2112
|
switch (_c.label) {
|
|
@@ -2149,15 +2116,16 @@ var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output,
|
|
|
2149
2116
|
return [4, parseBody(output.body, context)];
|
|
2150
2117
|
case 1:
|
|
2151
2118
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2152
|
-
errorCode = "UnknownError";
|
|
2153
2119
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
2120
|
switch (errorCode) {
|
|
2155
2121
|
default:
|
|
2156
2122
|
parsedBody = parsedOutput.body;
|
|
2123
|
+
$metadata = deserializeMetadata(output);
|
|
2124
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2157
2125
|
response = new __BaseException({
|
|
2158
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2126
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2159
2127
|
$fault: "client",
|
|
2160
|
-
$metadata:
|
|
2128
|
+
$metadata: $metadata,
|
|
2161
2129
|
});
|
|
2162
2130
|
throw __decorateServiceException(response, parsedBody);
|
|
2163
2131
|
}
|
|
@@ -2184,7 +2152,7 @@ export var deserializeAws_restJson1DeleteLiveSourceCommand = function (output, c
|
|
|
2184
2152
|
});
|
|
2185
2153
|
}); };
|
|
2186
2154
|
var deserializeAws_restJson1DeleteLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2187
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2155
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2188
2156
|
var _b;
|
|
2189
2157
|
return __generator(this, function (_c) {
|
|
2190
2158
|
switch (_c.label) {
|
|
@@ -2194,15 +2162,16 @@ var deserializeAws_restJson1DeleteLiveSourceCommandError = function (output, con
|
|
|
2194
2162
|
return [4, parseBody(output.body, context)];
|
|
2195
2163
|
case 1:
|
|
2196
2164
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2197
|
-
errorCode = "UnknownError";
|
|
2198
2165
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
2166
|
switch (errorCode) {
|
|
2200
2167
|
default:
|
|
2201
2168
|
parsedBody = parsedOutput.body;
|
|
2169
|
+
$metadata = deserializeMetadata(output);
|
|
2170
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2202
2171
|
response = new __BaseException({
|
|
2203
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2204
2173
|
$fault: "client",
|
|
2205
|
-
$metadata:
|
|
2174
|
+
$metadata: $metadata,
|
|
2206
2175
|
});
|
|
2207
2176
|
throw __decorateServiceException(response, parsedBody);
|
|
2208
2177
|
}
|
|
@@ -2229,7 +2198,7 @@ export var deserializeAws_restJson1DeletePlaybackConfigurationCommand = function
|
|
|
2229
2198
|
});
|
|
2230
2199
|
}); };
|
|
2231
2200
|
var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2232
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2201
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2233
2202
|
var _b;
|
|
2234
2203
|
return __generator(this, function (_c) {
|
|
2235
2204
|
switch (_c.label) {
|
|
@@ -2239,15 +2208,16 @@ var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (
|
|
|
2239
2208
|
return [4, parseBody(output.body, context)];
|
|
2240
2209
|
case 1:
|
|
2241
2210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2242
|
-
errorCode = "UnknownError";
|
|
2243
2211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
2212
|
switch (errorCode) {
|
|
2245
2213
|
default:
|
|
2246
2214
|
parsedBody = parsedOutput.body;
|
|
2215
|
+
$metadata = deserializeMetadata(output);
|
|
2216
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2247
2217
|
response = new __BaseException({
|
|
2248
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2218
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2249
2219
|
$fault: "client",
|
|
2250
|
-
$metadata:
|
|
2220
|
+
$metadata: $metadata,
|
|
2251
2221
|
});
|
|
2252
2222
|
throw __decorateServiceException(response, parsedBody);
|
|
2253
2223
|
}
|
|
@@ -2274,7 +2244,7 @@ export var deserializeAws_restJson1DeletePrefetchScheduleCommand = function (out
|
|
|
2274
2244
|
});
|
|
2275
2245
|
}); };
|
|
2276
2246
|
var deserializeAws_restJson1DeletePrefetchScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2277
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2247
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2278
2248
|
var _b;
|
|
2279
2249
|
return __generator(this, function (_c) {
|
|
2280
2250
|
switch (_c.label) {
|
|
@@ -2284,15 +2254,16 @@ var deserializeAws_restJson1DeletePrefetchScheduleCommandError = function (outpu
|
|
|
2284
2254
|
return [4, parseBody(output.body, context)];
|
|
2285
2255
|
case 1:
|
|
2286
2256
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2287
|
-
errorCode = "UnknownError";
|
|
2288
2257
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2289
2258
|
switch (errorCode) {
|
|
2290
2259
|
default:
|
|
2291
2260
|
parsedBody = parsedOutput.body;
|
|
2261
|
+
$metadata = deserializeMetadata(output);
|
|
2262
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2292
2263
|
response = new __BaseException({
|
|
2293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2264
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2294
2265
|
$fault: "client",
|
|
2295
|
-
$metadata:
|
|
2266
|
+
$metadata: $metadata,
|
|
2296
2267
|
});
|
|
2297
2268
|
throw __decorateServiceException(response, parsedBody);
|
|
2298
2269
|
}
|
|
@@ -2319,7 +2290,7 @@ export var deserializeAws_restJson1DeleteProgramCommand = function (output, cont
|
|
|
2319
2290
|
});
|
|
2320
2291
|
}); };
|
|
2321
2292
|
var deserializeAws_restJson1DeleteProgramCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2322
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2293
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2323
2294
|
var _b;
|
|
2324
2295
|
return __generator(this, function (_c) {
|
|
2325
2296
|
switch (_c.label) {
|
|
@@ -2329,15 +2300,16 @@ var deserializeAws_restJson1DeleteProgramCommandError = function (output, contex
|
|
|
2329
2300
|
return [4, parseBody(output.body, context)];
|
|
2330
2301
|
case 1:
|
|
2331
2302
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2332
|
-
errorCode = "UnknownError";
|
|
2333
2303
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
2304
|
switch (errorCode) {
|
|
2335
2305
|
default:
|
|
2336
2306
|
parsedBody = parsedOutput.body;
|
|
2307
|
+
$metadata = deserializeMetadata(output);
|
|
2308
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2337
2309
|
response = new __BaseException({
|
|
2338
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2310
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2339
2311
|
$fault: "client",
|
|
2340
|
-
$metadata:
|
|
2312
|
+
$metadata: $metadata,
|
|
2341
2313
|
});
|
|
2342
2314
|
throw __decorateServiceException(response, parsedBody);
|
|
2343
2315
|
}
|
|
@@ -2364,7 +2336,7 @@ export var deserializeAws_restJson1DeleteSourceLocationCommand = function (outpu
|
|
|
2364
2336
|
});
|
|
2365
2337
|
}); };
|
|
2366
2338
|
var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2367
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2339
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2368
2340
|
var _b;
|
|
2369
2341
|
return __generator(this, function (_c) {
|
|
2370
2342
|
switch (_c.label) {
|
|
@@ -2374,15 +2346,16 @@ var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output,
|
|
|
2374
2346
|
return [4, parseBody(output.body, context)];
|
|
2375
2347
|
case 1:
|
|
2376
2348
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2377
|
-
errorCode = "UnknownError";
|
|
2378
2349
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
2350
|
switch (errorCode) {
|
|
2380
2351
|
default:
|
|
2381
2352
|
parsedBody = parsedOutput.body;
|
|
2353
|
+
$metadata = deserializeMetadata(output);
|
|
2354
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2382
2355
|
response = new __BaseException({
|
|
2383
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2384
2357
|
$fault: "client",
|
|
2385
|
-
$metadata:
|
|
2358
|
+
$metadata: $metadata,
|
|
2386
2359
|
});
|
|
2387
2360
|
throw __decorateServiceException(response, parsedBody);
|
|
2388
2361
|
}
|
|
@@ -2409,7 +2382,7 @@ export var deserializeAws_restJson1DeleteVodSourceCommand = function (output, co
|
|
|
2409
2382
|
});
|
|
2410
2383
|
}); };
|
|
2411
2384
|
var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2412
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2385
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2413
2386
|
var _b;
|
|
2414
2387
|
return __generator(this, function (_c) {
|
|
2415
2388
|
switch (_c.label) {
|
|
@@ -2419,15 +2392,16 @@ var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, cont
|
|
|
2419
2392
|
return [4, parseBody(output.body, context)];
|
|
2420
2393
|
case 1:
|
|
2421
2394
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2422
|
-
errorCode = "UnknownError";
|
|
2423
2395
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2396
|
switch (errorCode) {
|
|
2425
2397
|
default:
|
|
2426
2398
|
parsedBody = parsedOutput.body;
|
|
2399
|
+
$metadata = deserializeMetadata(output);
|
|
2400
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2427
2401
|
response = new __BaseException({
|
|
2428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2402
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2429
2403
|
$fault: "client",
|
|
2430
|
-
$metadata:
|
|
2404
|
+
$metadata: $metadata,
|
|
2431
2405
|
});
|
|
2432
2406
|
throw __decorateServiceException(response, parsedBody);
|
|
2433
2407
|
}
|
|
@@ -2496,7 +2470,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2496
2470
|
});
|
|
2497
2471
|
}); };
|
|
2498
2472
|
var deserializeAws_restJson1DescribeChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2499
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2473
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2500
2474
|
var _b;
|
|
2501
2475
|
return __generator(this, function (_c) {
|
|
2502
2476
|
switch (_c.label) {
|
|
@@ -2506,15 +2480,16 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2506
2480
|
return [4, parseBody(output.body, context)];
|
|
2507
2481
|
case 1:
|
|
2508
2482
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2509
|
-
errorCode = "UnknownError";
|
|
2510
2483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
2484
|
switch (errorCode) {
|
|
2512
2485
|
default:
|
|
2513
2486
|
parsedBody = parsedOutput.body;
|
|
2487
|
+
$metadata = deserializeMetadata(output);
|
|
2488
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2514
2489
|
response = new __BaseException({
|
|
2515
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2516
2491
|
$fault: "client",
|
|
2517
|
-
$metadata:
|
|
2492
|
+
$metadata: $metadata,
|
|
2518
2493
|
});
|
|
2519
2494
|
throw __decorateServiceException(response, parsedBody);
|
|
2520
2495
|
}
|
|
@@ -2571,7 +2546,7 @@ export var deserializeAws_restJson1DescribeLiveSourceCommand = function (output,
|
|
|
2571
2546
|
});
|
|
2572
2547
|
}); };
|
|
2573
2548
|
var deserializeAws_restJson1DescribeLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2574
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2549
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2575
2550
|
var _b;
|
|
2576
2551
|
return __generator(this, function (_c) {
|
|
2577
2552
|
switch (_c.label) {
|
|
@@ -2581,15 +2556,16 @@ var deserializeAws_restJson1DescribeLiveSourceCommandError = function (output, c
|
|
|
2581
2556
|
return [4, parseBody(output.body, context)];
|
|
2582
2557
|
case 1:
|
|
2583
2558
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2584
|
-
errorCode = "UnknownError";
|
|
2585
2559
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
2560
|
switch (errorCode) {
|
|
2587
2561
|
default:
|
|
2588
2562
|
parsedBody = parsedOutput.body;
|
|
2563
|
+
$metadata = deserializeMetadata(output);
|
|
2564
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2589
2565
|
response = new __BaseException({
|
|
2590
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2566
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2591
2567
|
$fault: "client",
|
|
2592
|
-
$metadata:
|
|
2568
|
+
$metadata: $metadata,
|
|
2593
2569
|
});
|
|
2594
2570
|
throw __decorateServiceException(response, parsedBody);
|
|
2595
2571
|
}
|
|
@@ -2654,7 +2630,7 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
|
|
|
2654
2630
|
});
|
|
2655
2631
|
}); };
|
|
2656
2632
|
var deserializeAws_restJson1DescribeProgramCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2657
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2633
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2658
2634
|
var _b;
|
|
2659
2635
|
return __generator(this, function (_c) {
|
|
2660
2636
|
switch (_c.label) {
|
|
@@ -2664,15 +2640,16 @@ var deserializeAws_restJson1DescribeProgramCommandError = function (output, cont
|
|
|
2664
2640
|
return [4, parseBody(output.body, context)];
|
|
2665
2641
|
case 1:
|
|
2666
2642
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2667
|
-
errorCode = "UnknownError";
|
|
2668
2643
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2644
|
switch (errorCode) {
|
|
2670
2645
|
default:
|
|
2671
2646
|
parsedBody = parsedOutput.body;
|
|
2647
|
+
$metadata = deserializeMetadata(output);
|
|
2648
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2672
2649
|
response = new __BaseException({
|
|
2673
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2674
2651
|
$fault: "client",
|
|
2675
|
-
$metadata:
|
|
2652
|
+
$metadata: $metadata,
|
|
2676
2653
|
});
|
|
2677
2654
|
throw __decorateServiceException(response, parsedBody);
|
|
2678
2655
|
}
|
|
@@ -2737,7 +2714,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
|
|
|
2737
2714
|
});
|
|
2738
2715
|
}); };
|
|
2739
2716
|
var deserializeAws_restJson1DescribeSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2740
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2717
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2741
2718
|
var _b;
|
|
2742
2719
|
return __generator(this, function (_c) {
|
|
2743
2720
|
switch (_c.label) {
|
|
@@ -2747,15 +2724,16 @@ var deserializeAws_restJson1DescribeSourceLocationCommandError = function (outpu
|
|
|
2747
2724
|
return [4, parseBody(output.body, context)];
|
|
2748
2725
|
case 1:
|
|
2749
2726
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2750
|
-
errorCode = "UnknownError";
|
|
2751
2727
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
2728
|
switch (errorCode) {
|
|
2753
2729
|
default:
|
|
2754
2730
|
parsedBody = parsedOutput.body;
|
|
2731
|
+
$metadata = deserializeMetadata(output);
|
|
2732
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2755
2733
|
response = new __BaseException({
|
|
2756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2757
2735
|
$fault: "client",
|
|
2758
|
-
$metadata:
|
|
2736
|
+
$metadata: $metadata,
|
|
2759
2737
|
});
|
|
2760
2738
|
throw __decorateServiceException(response, parsedBody);
|
|
2761
2739
|
}
|
|
@@ -2812,7 +2790,7 @@ export var deserializeAws_restJson1DescribeVodSourceCommand = function (output,
|
|
|
2812
2790
|
});
|
|
2813
2791
|
}); };
|
|
2814
2792
|
var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2815
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2793
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2816
2794
|
var _b;
|
|
2817
2795
|
return __generator(this, function (_c) {
|
|
2818
2796
|
switch (_c.label) {
|
|
@@ -2822,15 +2800,16 @@ var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, co
|
|
|
2822
2800
|
return [4, parseBody(output.body, context)];
|
|
2823
2801
|
case 1:
|
|
2824
2802
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2825
|
-
errorCode = "UnknownError";
|
|
2826
2803
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
2804
|
switch (errorCode) {
|
|
2828
2805
|
default:
|
|
2829
2806
|
parsedBody = parsedOutput.body;
|
|
2807
|
+
$metadata = deserializeMetadata(output);
|
|
2808
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2830
2809
|
response = new __BaseException({
|
|
2831
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2832
2811
|
$fault: "client",
|
|
2833
|
-
$metadata:
|
|
2812
|
+
$metadata: $metadata,
|
|
2834
2813
|
});
|
|
2835
2814
|
throw __decorateServiceException(response, parsedBody);
|
|
2836
2815
|
}
|
|
@@ -2863,7 +2842,7 @@ export var deserializeAws_restJson1GetChannelPolicyCommand = function (output, c
|
|
|
2863
2842
|
});
|
|
2864
2843
|
}); };
|
|
2865
2844
|
var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2866
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2845
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2867
2846
|
var _b;
|
|
2868
2847
|
return __generator(this, function (_c) {
|
|
2869
2848
|
switch (_c.label) {
|
|
@@ -2873,15 +2852,16 @@ var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, con
|
|
|
2873
2852
|
return [4, parseBody(output.body, context)];
|
|
2874
2853
|
case 1:
|
|
2875
2854
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2876
|
-
errorCode = "UnknownError";
|
|
2877
2855
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
2856
|
switch (errorCode) {
|
|
2879
2857
|
default:
|
|
2880
2858
|
parsedBody = parsedOutput.body;
|
|
2859
|
+
$metadata = deserializeMetadata(output);
|
|
2860
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2881
2861
|
response = new __BaseException({
|
|
2882
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2862
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2883
2863
|
$fault: "client",
|
|
2884
|
-
$metadata:
|
|
2864
|
+
$metadata: $metadata,
|
|
2885
2865
|
});
|
|
2886
2866
|
throw __decorateServiceException(response, parsedBody);
|
|
2887
2867
|
}
|
|
@@ -2918,7 +2898,7 @@ export var deserializeAws_restJson1GetChannelScheduleCommand = function (output,
|
|
|
2918
2898
|
});
|
|
2919
2899
|
}); };
|
|
2920
2900
|
var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2921
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2901
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
2922
2902
|
var _b;
|
|
2923
2903
|
return __generator(this, function (_c) {
|
|
2924
2904
|
switch (_c.label) {
|
|
@@ -2928,15 +2908,16 @@ var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, c
|
|
|
2928
2908
|
return [4, parseBody(output.body, context)];
|
|
2929
2909
|
case 1:
|
|
2930
2910
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2931
|
-
errorCode = "UnknownError";
|
|
2932
2911
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
2912
|
switch (errorCode) {
|
|
2934
2913
|
default:
|
|
2935
2914
|
parsedBody = parsedOutput.body;
|
|
2915
|
+
$metadata = deserializeMetadata(output);
|
|
2916
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2936
2917
|
response = new __BaseException({
|
|
2937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2918
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2938
2919
|
$fault: "client",
|
|
2939
|
-
$metadata:
|
|
2920
|
+
$metadata: $metadata,
|
|
2940
2921
|
});
|
|
2941
2922
|
throw __decorateServiceException(response, parsedBody);
|
|
2942
2923
|
}
|
|
@@ -3041,7 +3022,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
|
|
|
3041
3022
|
});
|
|
3042
3023
|
}); };
|
|
3043
3024
|
var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3044
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3025
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3045
3026
|
var _b;
|
|
3046
3027
|
return __generator(this, function (_c) {
|
|
3047
3028
|
switch (_c.label) {
|
|
@@ -3051,15 +3032,16 @@ var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (out
|
|
|
3051
3032
|
return [4, parseBody(output.body, context)];
|
|
3052
3033
|
case 1:
|
|
3053
3034
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3054
|
-
errorCode = "UnknownError";
|
|
3055
3035
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
3036
|
switch (errorCode) {
|
|
3057
3037
|
default:
|
|
3058
3038
|
parsedBody = parsedOutput.body;
|
|
3039
|
+
$metadata = deserializeMetadata(output);
|
|
3040
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3059
3041
|
response = new __BaseException({
|
|
3060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3042
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3061
3043
|
$fault: "client",
|
|
3062
|
-
$metadata:
|
|
3044
|
+
$metadata: $metadata,
|
|
3063
3045
|
});
|
|
3064
3046
|
throw __decorateServiceException(response, parsedBody);
|
|
3065
3047
|
}
|
|
@@ -3112,7 +3094,7 @@ export var deserializeAws_restJson1GetPrefetchScheduleCommand = function (output
|
|
|
3112
3094
|
});
|
|
3113
3095
|
}); };
|
|
3114
3096
|
var deserializeAws_restJson1GetPrefetchScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3115
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3097
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3116
3098
|
var _b;
|
|
3117
3099
|
return __generator(this, function (_c) {
|
|
3118
3100
|
switch (_c.label) {
|
|
@@ -3122,15 +3104,16 @@ var deserializeAws_restJson1GetPrefetchScheduleCommandError = function (output,
|
|
|
3122
3104
|
return [4, parseBody(output.body, context)];
|
|
3123
3105
|
case 1:
|
|
3124
3106
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3125
|
-
errorCode = "UnknownError";
|
|
3126
3107
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
3108
|
switch (errorCode) {
|
|
3128
3109
|
default:
|
|
3129
3110
|
parsedBody = parsedOutput.body;
|
|
3111
|
+
$metadata = deserializeMetadata(output);
|
|
3112
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3130
3113
|
response = new __BaseException({
|
|
3131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3114
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3132
3115
|
$fault: "client",
|
|
3133
|
-
$metadata:
|
|
3116
|
+
$metadata: $metadata,
|
|
3134
3117
|
});
|
|
3135
3118
|
throw __decorateServiceException(response, parsedBody);
|
|
3136
3119
|
}
|
|
@@ -3167,7 +3150,7 @@ export var deserializeAws_restJson1ListAlertsCommand = function (output, context
|
|
|
3167
3150
|
});
|
|
3168
3151
|
}); };
|
|
3169
3152
|
var deserializeAws_restJson1ListAlertsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3170
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3153
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3171
3154
|
var _b;
|
|
3172
3155
|
return __generator(this, function (_c) {
|
|
3173
3156
|
switch (_c.label) {
|
|
@@ -3177,15 +3160,16 @@ var deserializeAws_restJson1ListAlertsCommandError = function (output, context)
|
|
|
3177
3160
|
return [4, parseBody(output.body, context)];
|
|
3178
3161
|
case 1:
|
|
3179
3162
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3180
|
-
errorCode = "UnknownError";
|
|
3181
3163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3182
3164
|
switch (errorCode) {
|
|
3183
3165
|
default:
|
|
3184
3166
|
parsedBody = parsedOutput.body;
|
|
3167
|
+
$metadata = deserializeMetadata(output);
|
|
3168
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3185
3169
|
response = new __BaseException({
|
|
3186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3187
3171
|
$fault: "client",
|
|
3188
|
-
$metadata:
|
|
3172
|
+
$metadata: $metadata,
|
|
3189
3173
|
});
|
|
3190
3174
|
throw __decorateServiceException(response, parsedBody);
|
|
3191
3175
|
}
|
|
@@ -3222,7 +3206,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
3222
3206
|
});
|
|
3223
3207
|
}); };
|
|
3224
3208
|
var deserializeAws_restJson1ListChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3225
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3209
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3226
3210
|
var _b;
|
|
3227
3211
|
return __generator(this, function (_c) {
|
|
3228
3212
|
switch (_c.label) {
|
|
@@ -3232,15 +3216,16 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
3232
3216
|
return [4, parseBody(output.body, context)];
|
|
3233
3217
|
case 1:
|
|
3234
3218
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3235
|
-
errorCode = "UnknownError";
|
|
3236
3219
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3237
3220
|
switch (errorCode) {
|
|
3238
3221
|
default:
|
|
3239
3222
|
parsedBody = parsedOutput.body;
|
|
3223
|
+
$metadata = deserializeMetadata(output);
|
|
3224
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3240
3225
|
response = new __BaseException({
|
|
3241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3242
3227
|
$fault: "client",
|
|
3243
|
-
$metadata:
|
|
3228
|
+
$metadata: $metadata,
|
|
3244
3229
|
});
|
|
3245
3230
|
throw __decorateServiceException(response, parsedBody);
|
|
3246
3231
|
}
|
|
@@ -3277,7 +3262,7 @@ export var deserializeAws_restJson1ListLiveSourcesCommand = function (output, co
|
|
|
3277
3262
|
});
|
|
3278
3263
|
}); };
|
|
3279
3264
|
var deserializeAws_restJson1ListLiveSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3280
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3265
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3281
3266
|
var _b;
|
|
3282
3267
|
return __generator(this, function (_c) {
|
|
3283
3268
|
switch (_c.label) {
|
|
@@ -3287,15 +3272,16 @@ var deserializeAws_restJson1ListLiveSourcesCommandError = function (output, cont
|
|
|
3287
3272
|
return [4, parseBody(output.body, context)];
|
|
3288
3273
|
case 1:
|
|
3289
3274
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3290
|
-
errorCode = "UnknownError";
|
|
3291
3275
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3292
3276
|
switch (errorCode) {
|
|
3293
3277
|
default:
|
|
3294
3278
|
parsedBody = parsedOutput.body;
|
|
3279
|
+
$metadata = deserializeMetadata(output);
|
|
3280
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3295
3281
|
response = new __BaseException({
|
|
3296
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3297
3283
|
$fault: "client",
|
|
3298
|
-
$metadata:
|
|
3284
|
+
$metadata: $metadata,
|
|
3299
3285
|
});
|
|
3300
3286
|
throw __decorateServiceException(response, parsedBody);
|
|
3301
3287
|
}
|
|
@@ -3332,7 +3318,7 @@ export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function
|
|
|
3332
3318
|
});
|
|
3333
3319
|
}); };
|
|
3334
3320
|
var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3335
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3321
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3336
3322
|
var _b;
|
|
3337
3323
|
return __generator(this, function (_c) {
|
|
3338
3324
|
switch (_c.label) {
|
|
@@ -3342,15 +3328,16 @@ var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (o
|
|
|
3342
3328
|
return [4, parseBody(output.body, context)];
|
|
3343
3329
|
case 1:
|
|
3344
3330
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3345
|
-
errorCode = "UnknownError";
|
|
3346
3331
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3347
3332
|
switch (errorCode) {
|
|
3348
3333
|
default:
|
|
3349
3334
|
parsedBody = parsedOutput.body;
|
|
3335
|
+
$metadata = deserializeMetadata(output);
|
|
3336
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3350
3337
|
response = new __BaseException({
|
|
3351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3338
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3352
3339
|
$fault: "client",
|
|
3353
|
-
$metadata:
|
|
3340
|
+
$metadata: $metadata,
|
|
3354
3341
|
});
|
|
3355
3342
|
throw __decorateServiceException(response, parsedBody);
|
|
3356
3343
|
}
|
|
@@ -3387,7 +3374,7 @@ export var deserializeAws_restJson1ListPrefetchSchedulesCommand = function (outp
|
|
|
3387
3374
|
});
|
|
3388
3375
|
}); };
|
|
3389
3376
|
var deserializeAws_restJson1ListPrefetchSchedulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3390
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3377
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3391
3378
|
var _b;
|
|
3392
3379
|
return __generator(this, function (_c) {
|
|
3393
3380
|
switch (_c.label) {
|
|
@@ -3397,15 +3384,16 @@ var deserializeAws_restJson1ListPrefetchSchedulesCommandError = function (output
|
|
|
3397
3384
|
return [4, parseBody(output.body, context)];
|
|
3398
3385
|
case 1:
|
|
3399
3386
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3400
|
-
errorCode = "UnknownError";
|
|
3401
3387
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
3388
|
switch (errorCode) {
|
|
3403
3389
|
default:
|
|
3404
3390
|
parsedBody = parsedOutput.body;
|
|
3391
|
+
$metadata = deserializeMetadata(output);
|
|
3392
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3405
3393
|
response = new __BaseException({
|
|
3406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3407
3395
|
$fault: "client",
|
|
3408
|
-
$metadata:
|
|
3396
|
+
$metadata: $metadata,
|
|
3409
3397
|
});
|
|
3410
3398
|
throw __decorateServiceException(response, parsedBody);
|
|
3411
3399
|
}
|
|
@@ -3442,7 +3430,7 @@ export var deserializeAws_restJson1ListSourceLocationsCommand = function (output
|
|
|
3442
3430
|
});
|
|
3443
3431
|
}); };
|
|
3444
3432
|
var deserializeAws_restJson1ListSourceLocationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3445
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3433
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3446
3434
|
var _b;
|
|
3447
3435
|
return __generator(this, function (_c) {
|
|
3448
3436
|
switch (_c.label) {
|
|
@@ -3452,15 +3440,16 @@ var deserializeAws_restJson1ListSourceLocationsCommandError = function (output,
|
|
|
3452
3440
|
return [4, parseBody(output.body, context)];
|
|
3453
3441
|
case 1:
|
|
3454
3442
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3455
|
-
errorCode = "UnknownError";
|
|
3456
3443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3457
3444
|
switch (errorCode) {
|
|
3458
3445
|
default:
|
|
3459
3446
|
parsedBody = parsedOutput.body;
|
|
3447
|
+
$metadata = deserializeMetadata(output);
|
|
3448
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3460
3449
|
response = new __BaseException({
|
|
3461
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3462
3451
|
$fault: "client",
|
|
3463
|
-
$metadata:
|
|
3452
|
+
$metadata: $metadata,
|
|
3464
3453
|
});
|
|
3465
3454
|
throw __decorateServiceException(response, parsedBody);
|
|
3466
3455
|
}
|
|
@@ -3493,7 +3482,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3493
3482
|
});
|
|
3494
3483
|
}); };
|
|
3495
3484
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3496
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3485
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3497
3486
|
var _c;
|
|
3498
3487
|
return __generator(this, function (_d) {
|
|
3499
3488
|
switch (_d.label) {
|
|
@@ -3503,7 +3492,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3503
3492
|
return [4, parseBody(output.body, context)];
|
|
3504
3493
|
case 1:
|
|
3505
3494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3506
|
-
errorCode = "UnknownError";
|
|
3507
3495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3508
3496
|
_b = errorCode;
|
|
3509
3497
|
switch (_b) {
|
|
@@ -3515,10 +3503,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3515
3503
|
case 3: throw _d.sent();
|
|
3516
3504
|
case 4:
|
|
3517
3505
|
parsedBody = parsedOutput.body;
|
|
3506
|
+
$metadata = deserializeMetadata(output);
|
|
3507
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3518
3508
|
response = new __BaseException({
|
|
3519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3509
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3520
3510
|
$fault: "client",
|
|
3521
|
-
$metadata:
|
|
3511
|
+
$metadata: $metadata,
|
|
3522
3512
|
});
|
|
3523
3513
|
throw __decorateServiceException(response, parsedBody);
|
|
3524
3514
|
}
|
|
@@ -3553,7 +3543,7 @@ export var deserializeAws_restJson1ListVodSourcesCommand = function (output, con
|
|
|
3553
3543
|
});
|
|
3554
3544
|
}); };
|
|
3555
3545
|
var deserializeAws_restJson1ListVodSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3556
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3546
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3557
3547
|
var _b;
|
|
3558
3548
|
return __generator(this, function (_c) {
|
|
3559
3549
|
switch (_c.label) {
|
|
@@ -3563,15 +3553,16 @@ var deserializeAws_restJson1ListVodSourcesCommandError = function (output, conte
|
|
|
3563
3553
|
return [4, parseBody(output.body, context)];
|
|
3564
3554
|
case 1:
|
|
3565
3555
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3566
|
-
errorCode = "UnknownError";
|
|
3567
3556
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3568
3557
|
switch (errorCode) {
|
|
3569
3558
|
default:
|
|
3570
3559
|
parsedBody = parsedOutput.body;
|
|
3560
|
+
$metadata = deserializeMetadata(output);
|
|
3561
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3571
3562
|
response = new __BaseException({
|
|
3572
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3573
3564
|
$fault: "client",
|
|
3574
|
-
$metadata:
|
|
3565
|
+
$metadata: $metadata,
|
|
3575
3566
|
});
|
|
3576
3567
|
throw __decorateServiceException(response, parsedBody);
|
|
3577
3568
|
}
|
|
@@ -3598,7 +3589,7 @@ export var deserializeAws_restJson1PutChannelPolicyCommand = function (output, c
|
|
|
3598
3589
|
});
|
|
3599
3590
|
}); };
|
|
3600
3591
|
var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3601
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3592
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3602
3593
|
var _b;
|
|
3603
3594
|
return __generator(this, function (_c) {
|
|
3604
3595
|
switch (_c.label) {
|
|
@@ -3608,15 +3599,16 @@ var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, con
|
|
|
3608
3599
|
return [4, parseBody(output.body, context)];
|
|
3609
3600
|
case 1:
|
|
3610
3601
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3611
|
-
errorCode = "UnknownError";
|
|
3612
3602
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3613
3603
|
switch (errorCode) {
|
|
3614
3604
|
default:
|
|
3615
3605
|
parsedBody = parsedOutput.body;
|
|
3606
|
+
$metadata = deserializeMetadata(output);
|
|
3607
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3616
3608
|
response = new __BaseException({
|
|
3617
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3609
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3618
3610
|
$fault: "client",
|
|
3619
|
-
$metadata:
|
|
3611
|
+
$metadata: $metadata,
|
|
3620
3612
|
});
|
|
3621
3613
|
throw __decorateServiceException(response, parsedBody);
|
|
3622
3614
|
}
|
|
@@ -3721,7 +3713,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
|
|
|
3721
3713
|
});
|
|
3722
3714
|
}); };
|
|
3723
3715
|
var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3724
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3716
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3725
3717
|
var _b;
|
|
3726
3718
|
return __generator(this, function (_c) {
|
|
3727
3719
|
switch (_c.label) {
|
|
@@ -3731,15 +3723,16 @@ var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (out
|
|
|
3731
3723
|
return [4, parseBody(output.body, context)];
|
|
3732
3724
|
case 1:
|
|
3733
3725
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3734
|
-
errorCode = "UnknownError";
|
|
3735
3726
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3736
3727
|
switch (errorCode) {
|
|
3737
3728
|
default:
|
|
3738
3729
|
parsedBody = parsedOutput.body;
|
|
3730
|
+
$metadata = deserializeMetadata(output);
|
|
3731
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3739
3732
|
response = new __BaseException({
|
|
3740
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3733
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3741
3734
|
$fault: "client",
|
|
3742
|
-
$metadata:
|
|
3735
|
+
$metadata: $metadata,
|
|
3743
3736
|
});
|
|
3744
3737
|
throw __decorateServiceException(response, parsedBody);
|
|
3745
3738
|
}
|
|
@@ -3766,7 +3759,7 @@ export var deserializeAws_restJson1StartChannelCommand = function (output, conte
|
|
|
3766
3759
|
});
|
|
3767
3760
|
}); };
|
|
3768
3761
|
var deserializeAws_restJson1StartChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3769
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3762
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3770
3763
|
var _b;
|
|
3771
3764
|
return __generator(this, function (_c) {
|
|
3772
3765
|
switch (_c.label) {
|
|
@@ -3776,15 +3769,16 @@ var deserializeAws_restJson1StartChannelCommandError = function (output, context
|
|
|
3776
3769
|
return [4, parseBody(output.body, context)];
|
|
3777
3770
|
case 1:
|
|
3778
3771
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3779
|
-
errorCode = "UnknownError";
|
|
3780
3772
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3781
3773
|
switch (errorCode) {
|
|
3782
3774
|
default:
|
|
3783
3775
|
parsedBody = parsedOutput.body;
|
|
3776
|
+
$metadata = deserializeMetadata(output);
|
|
3777
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3784
3778
|
response = new __BaseException({
|
|
3785
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3786
3780
|
$fault: "client",
|
|
3787
|
-
$metadata:
|
|
3781
|
+
$metadata: $metadata,
|
|
3788
3782
|
});
|
|
3789
3783
|
throw __decorateServiceException(response, parsedBody);
|
|
3790
3784
|
}
|
|
@@ -3811,7 +3805,7 @@ export var deserializeAws_restJson1StopChannelCommand = function (output, contex
|
|
|
3811
3805
|
});
|
|
3812
3806
|
}); };
|
|
3813
3807
|
var deserializeAws_restJson1StopChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3814
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3808
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
3815
3809
|
var _b;
|
|
3816
3810
|
return __generator(this, function (_c) {
|
|
3817
3811
|
switch (_c.label) {
|
|
@@ -3821,15 +3815,16 @@ var deserializeAws_restJson1StopChannelCommandError = function (output, context)
|
|
|
3821
3815
|
return [4, parseBody(output.body, context)];
|
|
3822
3816
|
case 1:
|
|
3823
3817
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3824
|
-
errorCode = "UnknownError";
|
|
3825
3818
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3826
3819
|
switch (errorCode) {
|
|
3827
3820
|
default:
|
|
3828
3821
|
parsedBody = parsedOutput.body;
|
|
3822
|
+
$metadata = deserializeMetadata(output);
|
|
3823
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3829
3824
|
response = new __BaseException({
|
|
3830
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3831
3826
|
$fault: "client",
|
|
3832
|
-
$metadata:
|
|
3827
|
+
$metadata: $metadata,
|
|
3833
3828
|
});
|
|
3834
3829
|
throw __decorateServiceException(response, parsedBody);
|
|
3835
3830
|
}
|
|
@@ -3856,7 +3851,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3856
3851
|
});
|
|
3857
3852
|
}); };
|
|
3858
3853
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3859
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3854
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3860
3855
|
var _c;
|
|
3861
3856
|
return __generator(this, function (_d) {
|
|
3862
3857
|
switch (_d.label) {
|
|
@@ -3866,7 +3861,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3866
3861
|
return [4, parseBody(output.body, context)];
|
|
3867
3862
|
case 1:
|
|
3868
3863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3869
|
-
errorCode = "UnknownError";
|
|
3870
3864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3871
3865
|
_b = errorCode;
|
|
3872
3866
|
switch (_b) {
|
|
@@ -3878,10 +3872,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3878
3872
|
case 3: throw _d.sent();
|
|
3879
3873
|
case 4:
|
|
3880
3874
|
parsedBody = parsedOutput.body;
|
|
3875
|
+
$metadata = deserializeMetadata(output);
|
|
3876
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3881
3877
|
response = new __BaseException({
|
|
3882
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3883
3879
|
$fault: "client",
|
|
3884
|
-
$metadata:
|
|
3880
|
+
$metadata: $metadata,
|
|
3885
3881
|
});
|
|
3886
3882
|
throw __decorateServiceException(response, parsedBody);
|
|
3887
3883
|
}
|
|
@@ -3906,7 +3902,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3906
3902
|
});
|
|
3907
3903
|
}); };
|
|
3908
3904
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3909
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3905
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3910
3906
|
var _c;
|
|
3911
3907
|
return __generator(this, function (_d) {
|
|
3912
3908
|
switch (_d.label) {
|
|
@@ -3916,7 +3912,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3916
3912
|
return [4, parseBody(output.body, context)];
|
|
3917
3913
|
case 1:
|
|
3918
3914
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3919
|
-
errorCode = "UnknownError";
|
|
3920
3915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
3916
|
_b = errorCode;
|
|
3922
3917
|
switch (_b) {
|
|
@@ -3928,10 +3923,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3928
3923
|
case 3: throw _d.sent();
|
|
3929
3924
|
case 4:
|
|
3930
3925
|
parsedBody = parsedOutput.body;
|
|
3926
|
+
$metadata = deserializeMetadata(output);
|
|
3927
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3931
3928
|
response = new __BaseException({
|
|
3932
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3933
3930
|
$fault: "client",
|
|
3934
|
-
$metadata:
|
|
3931
|
+
$metadata: $metadata,
|
|
3935
3932
|
});
|
|
3936
3933
|
throw __decorateServiceException(response, parsedBody);
|
|
3937
3934
|
}
|
|
@@ -3998,7 +3995,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3998
3995
|
});
|
|
3999
3996
|
}); };
|
|
4000
3997
|
var deserializeAws_restJson1UpdateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4001
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3998
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
4002
3999
|
var _b;
|
|
4003
4000
|
return __generator(this, function (_c) {
|
|
4004
4001
|
switch (_c.label) {
|
|
@@ -4008,15 +4005,16 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
4008
4005
|
return [4, parseBody(output.body, context)];
|
|
4009
4006
|
case 1:
|
|
4010
4007
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4011
|
-
errorCode = "UnknownError";
|
|
4012
4008
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4013
4009
|
switch (errorCode) {
|
|
4014
4010
|
default:
|
|
4015
4011
|
parsedBody = parsedOutput.body;
|
|
4012
|
+
$metadata = deserializeMetadata(output);
|
|
4013
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4016
4014
|
response = new __BaseException({
|
|
4017
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4015
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4018
4016
|
$fault: "client",
|
|
4019
|
-
$metadata:
|
|
4017
|
+
$metadata: $metadata,
|
|
4020
4018
|
});
|
|
4021
4019
|
throw __decorateServiceException(response, parsedBody);
|
|
4022
4020
|
}
|
|
@@ -4073,7 +4071,7 @@ export var deserializeAws_restJson1UpdateLiveSourceCommand = function (output, c
|
|
|
4073
4071
|
});
|
|
4074
4072
|
}); };
|
|
4075
4073
|
var deserializeAws_restJson1UpdateLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4076
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4074
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
4077
4075
|
var _b;
|
|
4078
4076
|
return __generator(this, function (_c) {
|
|
4079
4077
|
switch (_c.label) {
|
|
@@ -4083,15 +4081,16 @@ var deserializeAws_restJson1UpdateLiveSourceCommandError = function (output, con
|
|
|
4083
4081
|
return [4, parseBody(output.body, context)];
|
|
4084
4082
|
case 1:
|
|
4085
4083
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4086
|
-
errorCode = "UnknownError";
|
|
4087
4084
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4088
4085
|
switch (errorCode) {
|
|
4089
4086
|
default:
|
|
4090
4087
|
parsedBody = parsedOutput.body;
|
|
4088
|
+
$metadata = deserializeMetadata(output);
|
|
4089
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4091
4090
|
response = new __BaseException({
|
|
4092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4091
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4093
4092
|
$fault: "client",
|
|
4094
|
-
$metadata:
|
|
4093
|
+
$metadata: $metadata,
|
|
4095
4094
|
});
|
|
4096
4095
|
throw __decorateServiceException(response, parsedBody);
|
|
4097
4096
|
}
|
|
@@ -4156,7 +4155,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
|
|
|
4156
4155
|
});
|
|
4157
4156
|
}); };
|
|
4158
4157
|
var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4159
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4158
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
4160
4159
|
var _b;
|
|
4161
4160
|
return __generator(this, function (_c) {
|
|
4162
4161
|
switch (_c.label) {
|
|
@@ -4166,15 +4165,16 @@ var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output,
|
|
|
4166
4165
|
return [4, parseBody(output.body, context)];
|
|
4167
4166
|
case 1:
|
|
4168
4167
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4169
|
-
errorCode = "UnknownError";
|
|
4170
4168
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4171
4169
|
switch (errorCode) {
|
|
4172
4170
|
default:
|
|
4173
4171
|
parsedBody = parsedOutput.body;
|
|
4172
|
+
$metadata = deserializeMetadata(output);
|
|
4173
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4174
4174
|
response = new __BaseException({
|
|
4175
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4176
4176
|
$fault: "client",
|
|
4177
|
-
$metadata:
|
|
4177
|
+
$metadata: $metadata,
|
|
4178
4178
|
});
|
|
4179
4179
|
throw __decorateServiceException(response, parsedBody);
|
|
4180
4180
|
}
|
|
@@ -4231,7 +4231,7 @@ export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, co
|
|
|
4231
4231
|
});
|
|
4232
4232
|
}); };
|
|
4233
4233
|
var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4234
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4234
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
4235
4235
|
var _b;
|
|
4236
4236
|
return __generator(this, function (_c) {
|
|
4237
4237
|
switch (_c.label) {
|
|
@@ -4241,15 +4241,16 @@ var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, cont
|
|
|
4241
4241
|
return [4, parseBody(output.body, context)];
|
|
4242
4242
|
case 1:
|
|
4243
4243
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4244
|
-
errorCode = "UnknownError";
|
|
4245
4244
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4246
4245
|
switch (errorCode) {
|
|
4247
4246
|
default:
|
|
4248
4247
|
parsedBody = parsedOutput.body;
|
|
4248
|
+
$metadata = deserializeMetadata(output);
|
|
4249
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4249
4250
|
response = new __BaseException({
|
|
4250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4251
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4251
4252
|
$fault: "client",
|
|
4252
|
-
$metadata:
|
|
4253
|
+
$metadata: $metadata,
|
|
4253
4254
|
});
|
|
4254
4255
|
throw __decorateServiceException(response, parsedBody);
|
|
4255
4256
|
}
|
|
@@ -4310,35 +4311,29 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
|
4310
4311
|
}, {});
|
|
4311
4312
|
};
|
|
4312
4313
|
var serializeAws_restJson1AccessConfiguration = function (input, context) {
|
|
4313
|
-
return __assign(__assign({}, (input.AccessType
|
|
4314
|
-
input.SecretsManagerAccessTokenConfiguration !== null && {
|
|
4314
|
+
return __assign(__assign({}, (input.AccessType != null && { AccessType: input.AccessType })), (input.SecretsManagerAccessTokenConfiguration != null && {
|
|
4315
4315
|
SecretsManagerAccessTokenConfiguration: serializeAws_restJson1SecretsManagerAccessTokenConfiguration(input.SecretsManagerAccessTokenConfiguration, context),
|
|
4316
4316
|
}));
|
|
4317
4317
|
};
|
|
4318
4318
|
var serializeAws_restJson1AdBreak = function (input, context) {
|
|
4319
|
-
return __assign(__assign(__assign(__assign({}, (input.MessageType
|
|
4320
|
-
input.Slate !== null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) })), (input.SpliceInsertMessage !== undefined &&
|
|
4321
|
-
input.SpliceInsertMessage !== null && {
|
|
4319
|
+
return __assign(__assign(__assign(__assign({}, (input.MessageType != null && { MessageType: input.MessageType })), (input.OffsetMillis != null && { OffsetMillis: input.OffsetMillis })), (input.Slate != null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) })), (input.SpliceInsertMessage != null && {
|
|
4322
4320
|
SpliceInsertMessage: serializeAws_restJson1SpliceInsertMessage(input.SpliceInsertMessage, context),
|
|
4323
4321
|
}));
|
|
4324
4322
|
};
|
|
4325
4323
|
var serializeAws_restJson1AdMarkerPassthrough = function (input, context) {
|
|
4326
|
-
return __assign({}, (input.Enabled
|
|
4324
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
4327
4325
|
};
|
|
4328
4326
|
var serializeAws_restJson1AvailMatchingCriteria = function (input, context) {
|
|
4329
|
-
return __assign(__assign({}, (input.DynamicVariable
|
|
4330
|
-
input.DynamicVariable !== null && { DynamicVariable: input.DynamicVariable })), (input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }));
|
|
4327
|
+
return __assign(__assign({}, (input.DynamicVariable != null && { DynamicVariable: input.DynamicVariable })), (input.Operator != null && { Operator: input.Operator }));
|
|
4331
4328
|
};
|
|
4332
4329
|
var serializeAws_restJson1AvailSuppression = function (input, context) {
|
|
4333
|
-
return __assign(__assign({}, (input.Mode
|
|
4330
|
+
return __assign(__assign({}, (input.Mode != null && { Mode: input.Mode })), (input.Value != null && { Value: input.Value }));
|
|
4334
4331
|
};
|
|
4335
4332
|
var serializeAws_restJson1Bumper = function (input, context) {
|
|
4336
|
-
return __assign(__assign({}, (input.EndUrl
|
|
4333
|
+
return __assign(__assign({}, (input.EndUrl != null && { EndUrl: input.EndUrl })), (input.StartUrl != null && { StartUrl: input.StartUrl }));
|
|
4337
4334
|
};
|
|
4338
4335
|
var serializeAws_restJson1CdnConfiguration = function (input, context) {
|
|
4339
|
-
return __assign(__assign({}, (input.AdSegmentUrlPrefix
|
|
4340
|
-
input.AdSegmentUrlPrefix !== null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix })), (input.ContentSegmentUrlPrefix !== undefined &&
|
|
4341
|
-
input.ContentSegmentUrlPrefix !== null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }));
|
|
4336
|
+
return __assign(__assign({}, (input.AdSegmentUrlPrefix != null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix })), (input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }));
|
|
4342
4337
|
};
|
|
4343
4338
|
var serializeAws_restJson1ConfigurationAliasesRequest = function (input, context) {
|
|
4344
4339
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -4351,30 +4346,24 @@ var serializeAws_restJson1ConfigurationAliasesRequest = function (input, context
|
|
|
4351
4346
|
}, {});
|
|
4352
4347
|
};
|
|
4353
4348
|
var serializeAws_restJson1DashConfigurationForPut = function (input, context) {
|
|
4354
|
-
return __assign(__assign({}, (input.MpdLocation
|
|
4355
|
-
input.OriginManifestType !== null && { OriginManifestType: input.OriginManifestType }));
|
|
4349
|
+
return __assign(__assign({}, (input.MpdLocation != null && { MpdLocation: input.MpdLocation })), (input.OriginManifestType != null && { OriginManifestType: input.OriginManifestType }));
|
|
4356
4350
|
};
|
|
4357
4351
|
var serializeAws_restJson1DashPlaylistSettings = function (input, context) {
|
|
4358
|
-
return __assign(__assign(__assign(__assign({}, (input.ManifestWindowSeconds
|
|
4359
|
-
input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds })), (input.MinBufferTimeSeconds !== undefined &&
|
|
4360
|
-
input.MinBufferTimeSeconds !== null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.MinUpdatePeriodSeconds !== undefined &&
|
|
4361
|
-
input.MinUpdatePeriodSeconds !== null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds })), (input.SuggestedPresentationDelaySeconds !== undefined &&
|
|
4362
|
-
input.SuggestedPresentationDelaySeconds !== null && {
|
|
4352
|
+
return __assign(__assign(__assign(__assign({}, (input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds })), (input.MinBufferTimeSeconds != null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.MinUpdatePeriodSeconds != null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds })), (input.SuggestedPresentationDelaySeconds != null && {
|
|
4363
4353
|
SuggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
|
|
4364
4354
|
}));
|
|
4365
4355
|
};
|
|
4366
4356
|
var serializeAws_restJson1DefaultSegmentDeliveryConfiguration = function (input, context) {
|
|
4367
|
-
return __assign({}, (input.BaseUrl
|
|
4357
|
+
return __assign({}, (input.BaseUrl != null && { BaseUrl: input.BaseUrl }));
|
|
4368
4358
|
};
|
|
4369
4359
|
var serializeAws_restJson1HlsPlaylistSettings = function (input, context) {
|
|
4370
|
-
return __assign({}, (input.ManifestWindowSeconds
|
|
4371
|
-
input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds }));
|
|
4360
|
+
return __assign({}, (input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }));
|
|
4372
4361
|
};
|
|
4373
4362
|
var serializeAws_restJson1HttpConfiguration = function (input, context) {
|
|
4374
|
-
return __assign({}, (input.BaseUrl
|
|
4363
|
+
return __assign({}, (input.BaseUrl != null && { BaseUrl: input.BaseUrl }));
|
|
4375
4364
|
};
|
|
4376
4365
|
var serializeAws_restJson1HttpPackageConfiguration = function (input, context) {
|
|
4377
|
-
return __assign(__assign(__assign({}, (input.Path
|
|
4366
|
+
return __assign(__assign(__assign({}, (input.Path != null && { Path: input.Path })), (input.SourceGroup != null && { SourceGroup: input.SourceGroup })), (input.Type != null && { Type: input.Type }));
|
|
4378
4367
|
};
|
|
4379
4368
|
var serializeAws_restJson1HttpPackageConfigurations = function (input, context) {
|
|
4380
4369
|
return input
|
|
@@ -4387,40 +4376,29 @@ var serializeAws_restJson1HttpPackageConfigurations = function (input, context)
|
|
|
4387
4376
|
});
|
|
4388
4377
|
};
|
|
4389
4378
|
var serializeAws_restJson1LivePreRollConfiguration = function (input, context) {
|
|
4390
|
-
return __assign(__assign({}, (input.AdDecisionServerUrl
|
|
4391
|
-
input.AdDecisionServerUrl !== null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.MaxDurationSeconds !== undefined &&
|
|
4392
|
-
input.MaxDurationSeconds !== null && { MaxDurationSeconds: input.MaxDurationSeconds }));
|
|
4379
|
+
return __assign(__assign({}, (input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }));
|
|
4393
4380
|
};
|
|
4394
4381
|
var serializeAws_restJson1ManifestProcessingRules = function (input, context) {
|
|
4395
|
-
return __assign({}, (input.AdMarkerPassthrough
|
|
4396
|
-
input.AdMarkerPassthrough !== null && {
|
|
4382
|
+
return __assign({}, (input.AdMarkerPassthrough != null && {
|
|
4397
4383
|
AdMarkerPassthrough: serializeAws_restJson1AdMarkerPassthrough(input.AdMarkerPassthrough, context),
|
|
4398
4384
|
}));
|
|
4399
4385
|
};
|
|
4400
4386
|
var serializeAws_restJson1PrefetchConsumption = function (input, context) {
|
|
4401
|
-
return __assign(__assign(__assign({}, (input.AvailMatchingCriteria
|
|
4402
|
-
input.AvailMatchingCriteria !== null && {
|
|
4387
|
+
return __assign(__assign(__assign({}, (input.AvailMatchingCriteria != null && {
|
|
4403
4388
|
AvailMatchingCriteria: serializeAws_restJson1__listOfAvailMatchingCriteria(input.AvailMatchingCriteria, context),
|
|
4404
|
-
})), (input.EndTime
|
|
4405
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
|
|
4406
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
4389
|
+
})), (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
4407
4390
|
};
|
|
4408
4391
|
var serializeAws_restJson1PrefetchRetrieval = function (input, context) {
|
|
4409
|
-
return __assign(__assign(__assign({}, (input.DynamicVariables
|
|
4410
|
-
input.DynamicVariables !== null && {
|
|
4392
|
+
return __assign(__assign(__assign({}, (input.DynamicVariables != null && {
|
|
4411
4393
|
DynamicVariables: serializeAws_restJson1__mapOf__string(input.DynamicVariables, context),
|
|
4412
|
-
})), (input.EndTime
|
|
4413
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
|
|
4414
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
4394
|
+
})), (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
4415
4395
|
};
|
|
4416
4396
|
var serializeAws_restJson1RequestOutputItem = function (input, context) {
|
|
4417
|
-
return __assign(__assign(__assign(__assign({}, (input.DashPlaylistSettings
|
|
4418
|
-
input.DashPlaylistSettings !== null && {
|
|
4397
|
+
return __assign(__assign(__assign(__assign({}, (input.DashPlaylistSettings != null && {
|
|
4419
4398
|
DashPlaylistSettings: serializeAws_restJson1DashPlaylistSettings(input.DashPlaylistSettings, context),
|
|
4420
|
-
})), (input.HlsPlaylistSettings
|
|
4421
|
-
input.HlsPlaylistSettings !== null && {
|
|
4399
|
+
})), (input.HlsPlaylistSettings != null && {
|
|
4422
4400
|
HlsPlaylistSettings: serializeAws_restJson1HlsPlaylistSettings(input.HlsPlaylistSettings, context),
|
|
4423
|
-
})), (input.ManifestName
|
|
4401
|
+
})), (input.ManifestName != null && { ManifestName: input.ManifestName })), (input.SourceGroup != null && { SourceGroup: input.SourceGroup }));
|
|
4424
4402
|
};
|
|
4425
4403
|
var serializeAws_restJson1RequestOutputs = function (input, context) {
|
|
4426
4404
|
return input
|
|
@@ -4433,31 +4411,22 @@ var serializeAws_restJson1RequestOutputs = function (input, context) {
|
|
|
4433
4411
|
});
|
|
4434
4412
|
};
|
|
4435
4413
|
var serializeAws_restJson1ScheduleConfiguration = function (input, context) {
|
|
4436
|
-
return __assign({}, (input.Transition
|
|
4437
|
-
input.Transition !== null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }));
|
|
4414
|
+
return __assign({}, (input.Transition != null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }));
|
|
4438
4415
|
};
|
|
4439
4416
|
var serializeAws_restJson1SecretsManagerAccessTokenConfiguration = function (input, context) {
|
|
4440
|
-
return __assign(__assign(__assign({}, (input.HeaderName
|
|
4441
|
-
input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }));
|
|
4417
|
+
return __assign(__assign(__assign({}, (input.HeaderName != null && { HeaderName: input.HeaderName })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.SecretStringKey != null && { SecretStringKey: input.SecretStringKey }));
|
|
4442
4418
|
};
|
|
4443
4419
|
var serializeAws_restJson1SegmentDeliveryConfiguration = function (input, context) {
|
|
4444
|
-
return __assign(__assign({}, (input.BaseUrl
|
|
4420
|
+
return __assign(__assign({}, (input.BaseUrl != null && { BaseUrl: input.BaseUrl })), (input.Name != null && { Name: input.Name }));
|
|
4445
4421
|
};
|
|
4446
4422
|
var serializeAws_restJson1SlateSource = function (input, context) {
|
|
4447
|
-
return __assign(__assign({}, (input.SourceLocationName
|
|
4448
|
-
input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }));
|
|
4423
|
+
return __assign(__assign({}, (input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName != null && { VodSourceName: input.VodSourceName }));
|
|
4449
4424
|
};
|
|
4450
4425
|
var serializeAws_restJson1SpliceInsertMessage = function (input, context) {
|
|
4451
|
-
return __assign(__assign(__assign(__assign({}, (input.AvailNum
|
|
4452
|
-
input.AvailsExpected !== null && { AvailsExpected: input.AvailsExpected })), (input.SpliceEventId !== undefined && input.SpliceEventId !== null && { SpliceEventId: input.SpliceEventId })), (input.UniqueProgramId !== undefined &&
|
|
4453
|
-
input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }));
|
|
4426
|
+
return __assign(__assign(__assign(__assign({}, (input.AvailNum != null && { AvailNum: input.AvailNum })), (input.AvailsExpected != null && { AvailsExpected: input.AvailsExpected })), (input.SpliceEventId != null && { SpliceEventId: input.SpliceEventId })), (input.UniqueProgramId != null && { UniqueProgramId: input.UniqueProgramId }));
|
|
4454
4427
|
};
|
|
4455
4428
|
var serializeAws_restJson1Transition = function (input, context) {
|
|
4456
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DurationMillis
|
|
4457
|
-
input.DurationMillis !== null && { DurationMillis: input.DurationMillis })), (input.RelativePosition !== undefined &&
|
|
4458
|
-
input.RelativePosition !== null && { RelativePosition: input.RelativePosition })), (input.RelativeProgram !== undefined &&
|
|
4459
|
-
input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram })), (input.ScheduledStartTimeMillis !== undefined &&
|
|
4460
|
-
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
4429
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DurationMillis != null && { DurationMillis: input.DurationMillis })), (input.RelativePosition != null && { RelativePosition: input.RelativePosition })), (input.RelativeProgram != null && { RelativeProgram: input.RelativeProgram })), (input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type != null && { Type: input.Type }));
|
|
4461
4430
|
};
|
|
4462
4431
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
4463
4432
|
var retVal = (output || [])
|
|
@@ -4615,8 +4584,7 @@ var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
|
4615
4584
|
var deserializeAws_restJson1AccessConfiguration = function (output, context) {
|
|
4616
4585
|
return {
|
|
4617
4586
|
AccessType: __expectString(output.AccessType),
|
|
4618
|
-
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration
|
|
4619
|
-
output.SecretsManagerAccessTokenConfiguration !== null
|
|
4587
|
+
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration != null
|
|
4620
4588
|
? deserializeAws_restJson1SecretsManagerAccessTokenConfiguration(output.SecretsManagerAccessTokenConfiguration, context)
|
|
4621
4589
|
: undefined,
|
|
4622
4590
|
};
|
|
@@ -4625,10 +4593,8 @@ var deserializeAws_restJson1AdBreak = function (output, context) {
|
|
|
4625
4593
|
return {
|
|
4626
4594
|
MessageType: __expectString(output.MessageType),
|
|
4627
4595
|
OffsetMillis: __expectLong(output.OffsetMillis),
|
|
4628
|
-
Slate: output.Slate
|
|
4629
|
-
|
|
4630
|
-
: undefined,
|
|
4631
|
-
SpliceInsertMessage: output.SpliceInsertMessage !== undefined && output.SpliceInsertMessage !== null
|
|
4596
|
+
Slate: output.Slate != null ? deserializeAws_restJson1SlateSource(output.Slate, context) : undefined,
|
|
4597
|
+
SpliceInsertMessage: output.SpliceInsertMessage != null
|
|
4632
4598
|
? deserializeAws_restJson1SpliceInsertMessage(output.SpliceInsertMessage, context)
|
|
4633
4599
|
: undefined,
|
|
4634
4600
|
};
|
|
@@ -4642,10 +4608,10 @@ var deserializeAws_restJson1Alert = function (output, context) {
|
|
|
4642
4608
|
return {
|
|
4643
4609
|
AlertCode: __expectString(output.AlertCode),
|
|
4644
4610
|
AlertMessage: __expectString(output.AlertMessage),
|
|
4645
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4611
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4646
4612
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4647
4613
|
: undefined,
|
|
4648
|
-
RelatedResourceArns: output.RelatedResourceArns
|
|
4614
|
+
RelatedResourceArns: output.RelatedResourceArns != null
|
|
4649
4615
|
? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
|
|
4650
4616
|
: undefined,
|
|
4651
4617
|
ResourceArn: __expectString(output.ResourceArn),
|
|
@@ -4680,22 +4646,16 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
4680
4646
|
Arn: __expectString(output.Arn),
|
|
4681
4647
|
ChannelName: __expectString(output.ChannelName),
|
|
4682
4648
|
ChannelState: __expectString(output.ChannelState),
|
|
4683
|
-
CreationTime: output.CreationTime
|
|
4649
|
+
CreationTime: output.CreationTime != null
|
|
4684
4650
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4685
4651
|
: undefined,
|
|
4686
|
-
FillerSlate: output.FillerSlate
|
|
4687
|
-
|
|
4688
|
-
: undefined,
|
|
4689
|
-
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4652
|
+
FillerSlate: output.FillerSlate != null ? deserializeAws_restJson1SlateSource(output.FillerSlate, context) : undefined,
|
|
4653
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4690
4654
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4691
4655
|
: undefined,
|
|
4692
|
-
Outputs: output.Outputs
|
|
4693
|
-
? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
|
|
4694
|
-
: undefined,
|
|
4656
|
+
Outputs: output.Outputs != null ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context) : undefined,
|
|
4695
4657
|
PlaybackMode: __expectString(output.PlaybackMode),
|
|
4696
|
-
Tags: output.tags
|
|
4697
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4698
|
-
: undefined,
|
|
4658
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4699
4659
|
Tier: __expectString(output.Tier),
|
|
4700
4660
|
};
|
|
4701
4661
|
};
|
|
@@ -4771,20 +4731,18 @@ var deserializeAws_restJson1LivePreRollConfiguration = function (output, context
|
|
|
4771
4731
|
var deserializeAws_restJson1LiveSource = function (output, context) {
|
|
4772
4732
|
return {
|
|
4773
4733
|
Arn: __expectString(output.Arn),
|
|
4774
|
-
CreationTime: output.CreationTime
|
|
4734
|
+
CreationTime: output.CreationTime != null
|
|
4775
4735
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4776
4736
|
: undefined,
|
|
4777
|
-
HttpPackageConfigurations: output.HttpPackageConfigurations
|
|
4737
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations != null
|
|
4778
4738
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4779
4739
|
: undefined,
|
|
4780
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4740
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4781
4741
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4782
4742
|
: undefined,
|
|
4783
4743
|
LiveSourceName: __expectString(output.LiveSourceName),
|
|
4784
4744
|
SourceLocationName: __expectString(output.SourceLocationName),
|
|
4785
|
-
Tags: output.tags
|
|
4786
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4787
|
-
: undefined,
|
|
4745
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4788
4746
|
};
|
|
4789
4747
|
};
|
|
4790
4748
|
var deserializeAws_restJson1LogConfiguration = function (output, context) {
|
|
@@ -4794,7 +4752,7 @@ var deserializeAws_restJson1LogConfiguration = function (output, context) {
|
|
|
4794
4752
|
};
|
|
4795
4753
|
var deserializeAws_restJson1ManifestProcessingRules = function (output, context) {
|
|
4796
4754
|
return {
|
|
4797
|
-
AdMarkerPassthrough: output.AdMarkerPassthrough
|
|
4755
|
+
AdMarkerPassthrough: output.AdMarkerPassthrough != null
|
|
4798
4756
|
? deserializeAws_restJson1AdMarkerPassthrough(output.AdMarkerPassthrough, context)
|
|
4799
4757
|
: undefined,
|
|
4800
4758
|
};
|
|
@@ -4802,31 +4760,29 @@ var deserializeAws_restJson1ManifestProcessingRules = function (output, context)
|
|
|
4802
4760
|
var deserializeAws_restJson1PlaybackConfiguration = function (output, context) {
|
|
4803
4761
|
return {
|
|
4804
4762
|
AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
|
|
4805
|
-
AvailSuppression: output.AvailSuppression
|
|
4763
|
+
AvailSuppression: output.AvailSuppression != null
|
|
4806
4764
|
? deserializeAws_restJson1AvailSuppression(output.AvailSuppression, context)
|
|
4807
4765
|
: undefined,
|
|
4808
|
-
Bumper: output.Bumper
|
|
4809
|
-
|
|
4810
|
-
: undefined,
|
|
4811
|
-
CdnConfiguration: output.CdnConfiguration !== undefined && output.CdnConfiguration !== null
|
|
4766
|
+
Bumper: output.Bumper != null ? deserializeAws_restJson1Bumper(output.Bumper, context) : undefined,
|
|
4767
|
+
CdnConfiguration: output.CdnConfiguration != null
|
|
4812
4768
|
? deserializeAws_restJson1CdnConfiguration(output.CdnConfiguration, context)
|
|
4813
4769
|
: undefined,
|
|
4814
|
-
ConfigurationAliases: output.ConfigurationAliases
|
|
4770
|
+
ConfigurationAliases: output.ConfigurationAliases != null
|
|
4815
4771
|
? deserializeAws_restJson1ConfigurationAliasesResponse(output.ConfigurationAliases, context)
|
|
4816
4772
|
: undefined,
|
|
4817
|
-
DashConfiguration: output.DashConfiguration
|
|
4773
|
+
DashConfiguration: output.DashConfiguration != null
|
|
4818
4774
|
? deserializeAws_restJson1DashConfiguration(output.DashConfiguration, context)
|
|
4819
4775
|
: undefined,
|
|
4820
|
-
HlsConfiguration: output.HlsConfiguration
|
|
4776
|
+
HlsConfiguration: output.HlsConfiguration != null
|
|
4821
4777
|
? deserializeAws_restJson1HlsConfiguration(output.HlsConfiguration, context)
|
|
4822
4778
|
: undefined,
|
|
4823
|
-
LivePreRollConfiguration: output.LivePreRollConfiguration
|
|
4779
|
+
LivePreRollConfiguration: output.LivePreRollConfiguration != null
|
|
4824
4780
|
? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
|
|
4825
4781
|
: undefined,
|
|
4826
|
-
LogConfiguration: output.LogConfiguration
|
|
4782
|
+
LogConfiguration: output.LogConfiguration != null
|
|
4827
4783
|
? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
|
|
4828
4784
|
: undefined,
|
|
4829
|
-
ManifestProcessingRules: output.ManifestProcessingRules
|
|
4785
|
+
ManifestProcessingRules: output.ManifestProcessingRules != null
|
|
4830
4786
|
? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
|
|
4831
4787
|
: undefined,
|
|
4832
4788
|
Name: __expectString(output.Name),
|
|
@@ -4835,59 +4791,45 @@ var deserializeAws_restJson1PlaybackConfiguration = function (output, context) {
|
|
|
4835
4791
|
PlaybackEndpointPrefix: __expectString(output.PlaybackEndpointPrefix),
|
|
4836
4792
|
SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix),
|
|
4837
4793
|
SlateAdUrl: __expectString(output.SlateAdUrl),
|
|
4838
|
-
Tags: output.tags
|
|
4839
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4840
|
-
: undefined,
|
|
4794
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4841
4795
|
TranscodeProfileName: __expectString(output.TranscodeProfileName),
|
|
4842
4796
|
VideoContentSourceUrl: __expectString(output.VideoContentSourceUrl),
|
|
4843
4797
|
};
|
|
4844
4798
|
};
|
|
4845
4799
|
var deserializeAws_restJson1PrefetchConsumption = function (output, context) {
|
|
4846
4800
|
return {
|
|
4847
|
-
AvailMatchingCriteria: output.AvailMatchingCriteria
|
|
4801
|
+
AvailMatchingCriteria: output.AvailMatchingCriteria != null
|
|
4848
4802
|
? deserializeAws_restJson1__listOfAvailMatchingCriteria(output.AvailMatchingCriteria, context)
|
|
4849
4803
|
: undefined,
|
|
4850
|
-
EndTime: output.EndTime
|
|
4851
|
-
|
|
4852
|
-
: undefined,
|
|
4853
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4854
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4855
|
-
: undefined,
|
|
4804
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
4805
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
4856
4806
|
};
|
|
4857
4807
|
};
|
|
4858
4808
|
var deserializeAws_restJson1PrefetchRetrieval = function (output, context) {
|
|
4859
4809
|
return {
|
|
4860
|
-
DynamicVariables: output.DynamicVariables
|
|
4810
|
+
DynamicVariables: output.DynamicVariables != null
|
|
4861
4811
|
? deserializeAws_restJson1__mapOf__string(output.DynamicVariables, context)
|
|
4862
4812
|
: undefined,
|
|
4863
|
-
EndTime: output.EndTime
|
|
4864
|
-
|
|
4865
|
-
: undefined,
|
|
4866
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4867
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4868
|
-
: undefined,
|
|
4813
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
4814
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
4869
4815
|
};
|
|
4870
4816
|
};
|
|
4871
4817
|
var deserializeAws_restJson1PrefetchSchedule = function (output, context) {
|
|
4872
4818
|
return {
|
|
4873
4819
|
Arn: __expectString(output.Arn),
|
|
4874
|
-
Consumption: output.Consumption
|
|
4875
|
-
? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context)
|
|
4876
|
-
: undefined,
|
|
4820
|
+
Consumption: output.Consumption != null ? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context) : undefined,
|
|
4877
4821
|
Name: __expectString(output.Name),
|
|
4878
4822
|
PlaybackConfigurationName: __expectString(output.PlaybackConfigurationName),
|
|
4879
|
-
Retrieval: output.Retrieval
|
|
4880
|
-
? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context)
|
|
4881
|
-
: undefined,
|
|
4823
|
+
Retrieval: output.Retrieval != null ? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context) : undefined,
|
|
4882
4824
|
StreamId: __expectString(output.StreamId),
|
|
4883
4825
|
};
|
|
4884
4826
|
};
|
|
4885
4827
|
var deserializeAws_restJson1ResponseOutputItem = function (output, context) {
|
|
4886
4828
|
return {
|
|
4887
|
-
DashPlaylistSettings: output.DashPlaylistSettings
|
|
4829
|
+
DashPlaylistSettings: output.DashPlaylistSettings != null
|
|
4888
4830
|
? deserializeAws_restJson1DashPlaylistSettings(output.DashPlaylistSettings, context)
|
|
4889
4831
|
: undefined,
|
|
4890
|
-
HlsPlaylistSettings: output.HlsPlaylistSettings
|
|
4832
|
+
HlsPlaylistSettings: output.HlsPlaylistSettings != null
|
|
4891
4833
|
? deserializeAws_restJson1HlsPlaylistSettings(output.HlsPlaylistSettings, context)
|
|
4892
4834
|
: undefined,
|
|
4893
4835
|
ManifestName: __expectString(output.ManifestName),
|
|
@@ -4909,7 +4851,7 @@ var deserializeAws_restJson1ResponseOutputs = function (output, context) {
|
|
|
4909
4851
|
var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
|
|
4910
4852
|
return {
|
|
4911
4853
|
ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
|
|
4912
|
-
ApproximateStartTime: output.ApproximateStartTime
|
|
4854
|
+
ApproximateStartTime: output.ApproximateStartTime != null
|
|
4913
4855
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
|
|
4914
4856
|
: undefined,
|
|
4915
4857
|
SourceLocationName: __expectString(output.SourceLocationName),
|
|
@@ -4919,14 +4861,14 @@ var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
|
|
|
4919
4861
|
var deserializeAws_restJson1ScheduleEntry = function (output, context) {
|
|
4920
4862
|
return {
|
|
4921
4863
|
ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
|
|
4922
|
-
ApproximateStartTime: output.ApproximateStartTime
|
|
4864
|
+
ApproximateStartTime: output.ApproximateStartTime != null
|
|
4923
4865
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
|
|
4924
4866
|
: undefined,
|
|
4925
4867
|
Arn: __expectString(output.Arn),
|
|
4926
4868
|
ChannelName: __expectString(output.ChannelName),
|
|
4927
4869
|
LiveSourceName: __expectString(output.LiveSourceName),
|
|
4928
4870
|
ProgramName: __expectString(output.ProgramName),
|
|
4929
|
-
ScheduleAdBreaks: output.ScheduleAdBreaks
|
|
4871
|
+
ScheduleAdBreaks: output.ScheduleAdBreaks != null
|
|
4930
4872
|
? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
|
|
4931
4873
|
: undefined,
|
|
4932
4874
|
ScheduleEntryType: __expectString(output.ScheduleEntryType),
|
|
@@ -4955,29 +4897,27 @@ var deserializeAws_restJson1SlateSource = function (output, context) {
|
|
|
4955
4897
|
};
|
|
4956
4898
|
var deserializeAws_restJson1SourceLocation = function (output, context) {
|
|
4957
4899
|
return {
|
|
4958
|
-
AccessConfiguration: output.AccessConfiguration
|
|
4900
|
+
AccessConfiguration: output.AccessConfiguration != null
|
|
4959
4901
|
? deserializeAws_restJson1AccessConfiguration(output.AccessConfiguration, context)
|
|
4960
4902
|
: undefined,
|
|
4961
4903
|
Arn: __expectString(output.Arn),
|
|
4962
|
-
CreationTime: output.CreationTime
|
|
4904
|
+
CreationTime: output.CreationTime != null
|
|
4963
4905
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4964
4906
|
: undefined,
|
|
4965
|
-
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration
|
|
4907
|
+
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration != null
|
|
4966
4908
|
? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(output.DefaultSegmentDeliveryConfiguration, context)
|
|
4967
4909
|
: undefined,
|
|
4968
|
-
HttpConfiguration: output.HttpConfiguration
|
|
4910
|
+
HttpConfiguration: output.HttpConfiguration != null
|
|
4969
4911
|
? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
|
|
4970
4912
|
: undefined,
|
|
4971
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4913
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4972
4914
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4973
4915
|
: undefined,
|
|
4974
|
-
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations
|
|
4916
|
+
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations != null
|
|
4975
4917
|
? deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
|
|
4976
4918
|
: undefined,
|
|
4977
4919
|
SourceLocationName: __expectString(output.SourceLocationName),
|
|
4978
|
-
Tags: output.tags
|
|
4979
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4980
|
-
: undefined,
|
|
4920
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4981
4921
|
};
|
|
4982
4922
|
};
|
|
4983
4923
|
var deserializeAws_restJson1SpliceInsertMessage = function (output, context) {
|
|
@@ -4991,19 +4931,17 @@ var deserializeAws_restJson1SpliceInsertMessage = function (output, context) {
|
|
|
4991
4931
|
var deserializeAws_restJson1VodSource = function (output, context) {
|
|
4992
4932
|
return {
|
|
4993
4933
|
Arn: __expectString(output.Arn),
|
|
4994
|
-
CreationTime: output.CreationTime
|
|
4934
|
+
CreationTime: output.CreationTime != null
|
|
4995
4935
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4996
4936
|
: undefined,
|
|
4997
|
-
HttpPackageConfigurations: output.HttpPackageConfigurations
|
|
4937
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations != null
|
|
4998
4938
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4999
4939
|
: undefined,
|
|
5000
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4940
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
5001
4941
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
5002
4942
|
: undefined,
|
|
5003
4943
|
SourceLocationName: __expectString(output.SourceLocationName),
|
|
5004
|
-
Tags: output.tags
|
|
5005
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
5006
|
-
: undefined,
|
|
4944
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
5007
4945
|
VodSourceName: __expectString(output.VodSourceName),
|
|
5008
4946
|
};
|
|
5009
4947
|
};
|
|
@@ -5063,5 +5001,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
5063
5001
|
if (data["__type"] !== undefined) {
|
|
5064
5002
|
return sanitizeErrorCode(data["__type"]);
|
|
5065
5003
|
}
|
|
5066
|
-
return "";
|
|
5067
5004
|
};
|