@aws-sdk/client-mediatailor 3.72.0 → 3.76.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/MediaTailor.js +75 -0
- package/dist-cjs/commands/CreateLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/DeleteLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/DescribeLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/ListLiveSourcesCommand.js +36 -0
- package/dist-cjs/commands/UpdateLiveSourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +85 -14
- package/dist-cjs/pagination/ListLiveSourcesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +499 -2
- package/dist-es/MediaTailor.js +75 -0
- package/dist-es/commands/CreateLiveSourceCommand.js +39 -0
- package/dist-es/commands/DeleteLiveSourceCommand.js +39 -0
- package/dist-es/commands/DescribeLiveSourceCommand.js +39 -0
- package/dist-es/commands/ListLiveSourcesCommand.js +39 -0
- package/dist-es/commands/UpdateLiveSourceCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +58 -9
- package/dist-es/pagination/ListLiveSourcesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +607 -13
- package/dist-types/MediaTailor.d.ts +35 -0
- package/dist-types/MediaTailorClient.d.ts +7 -2
- package/dist-types/commands/CreateLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/DeleteLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/ListLiveSourcesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLiveSourceCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +387 -39
- package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/MediaTailor.d.ts +25 -0
- package/dist-types/ts3.4/MediaTailorClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLiveSourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLiveSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +217 -19
- package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +9 -9
|
@@ -50,9 +50,58 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
50
50
|
else {
|
|
51
51
|
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
52
52
|
}
|
|
53
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FillerSlate !== undefined &&
|
|
53
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FillerSlate !== undefined &&
|
|
54
54
|
input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
|
|
55
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 })));
|
|
57
|
+
return [2, new __HttpRequest({
|
|
58
|
+
protocol: protocol,
|
|
59
|
+
hostname: hostname,
|
|
60
|
+
port: port,
|
|
61
|
+
method: "POST",
|
|
62
|
+
headers: headers,
|
|
63
|
+
path: resolvedPath,
|
|
64
|
+
body: body,
|
|
65
|
+
})];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}); };
|
|
69
|
+
export var serializeAws_restJson1CreateLiveSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
70
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
71
|
+
return __generator(this, function (_c) {
|
|
72
|
+
switch (_c.label) {
|
|
73
|
+
case 0: return [4, context.endpoint()];
|
|
74
|
+
case 1:
|
|
75
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
76
|
+
headers = {
|
|
77
|
+
"content-type": "application/json",
|
|
78
|
+
};
|
|
79
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
80
|
+
"/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
|
|
81
|
+
if (input.LiveSourceName !== undefined) {
|
|
82
|
+
labelValue = input.LiveSourceName;
|
|
83
|
+
if (labelValue.length <= 0) {
|
|
84
|
+
throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
|
|
85
|
+
}
|
|
86
|
+
resolvedPath = resolvedPath.replace("{LiveSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
throw new Error("No value provided for input HTTP label: LiveSourceName.");
|
|
90
|
+
}
|
|
91
|
+
if (input.SourceLocationName !== undefined) {
|
|
92
|
+
labelValue = input.SourceLocationName;
|
|
93
|
+
if (labelValue.length <= 0) {
|
|
94
|
+
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
95
|
+
}
|
|
96
|
+
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
100
|
+
}
|
|
101
|
+
body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations !== undefined &&
|
|
102
|
+
input.HttpPackageConfigurations !== null && {
|
|
103
|
+
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
104
|
+
})), (input.Tags !== undefined &&
|
|
56
105
|
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
57
106
|
return [2, new __HttpRequest({
|
|
58
107
|
protocol: protocol,
|
|
@@ -147,8 +196,9 @@ export var serializeAws_restJson1CreateProgramCommand = function (input, context
|
|
|
147
196
|
else {
|
|
148
197
|
throw new Error("No value provided for input HTTP label: ProgramName.");
|
|
149
198
|
}
|
|
150
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AdBreaks !== undefined &&
|
|
151
|
-
input.AdBreaks !== null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) })), (input.
|
|
199
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AdBreaks !== undefined &&
|
|
200
|
+
input.AdBreaks !== null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) })), (input.LiveSourceName !== undefined &&
|
|
201
|
+
input.LiveSourceName !== null && { LiveSourceName: input.LiveSourceName })), (input.ScheduleConfiguration !== undefined &&
|
|
152
202
|
input.ScheduleConfiguration !== null && {
|
|
153
203
|
ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
154
204
|
})), (input.SourceLocationName !== undefined &&
|
|
@@ -323,6 +373,48 @@ export var serializeAws_restJson1DeleteChannelPolicyCommand = function (input, c
|
|
|
323
373
|
}
|
|
324
374
|
});
|
|
325
375
|
}); };
|
|
376
|
+
export var serializeAws_restJson1DeleteLiveSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
377
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
378
|
+
return __generator(this, function (_c) {
|
|
379
|
+
switch (_c.label) {
|
|
380
|
+
case 0: return [4, context.endpoint()];
|
|
381
|
+
case 1:
|
|
382
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
383
|
+
headers = {};
|
|
384
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
385
|
+
"/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
|
|
386
|
+
if (input.LiveSourceName !== undefined) {
|
|
387
|
+
labelValue = input.LiveSourceName;
|
|
388
|
+
if (labelValue.length <= 0) {
|
|
389
|
+
throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
|
|
390
|
+
}
|
|
391
|
+
resolvedPath = resolvedPath.replace("{LiveSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
throw new Error("No value provided for input HTTP label: LiveSourceName.");
|
|
395
|
+
}
|
|
396
|
+
if (input.SourceLocationName !== undefined) {
|
|
397
|
+
labelValue = input.SourceLocationName;
|
|
398
|
+
if (labelValue.length <= 0) {
|
|
399
|
+
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
400
|
+
}
|
|
401
|
+
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
405
|
+
}
|
|
406
|
+
return [2, new __HttpRequest({
|
|
407
|
+
protocol: protocol,
|
|
408
|
+
hostname: hostname,
|
|
409
|
+
port: port,
|
|
410
|
+
method: "DELETE",
|
|
411
|
+
headers: headers,
|
|
412
|
+
path: resolvedPath,
|
|
413
|
+
body: body,
|
|
414
|
+
})];
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
}); };
|
|
326
418
|
export var serializeAws_restJson1DeletePlaybackConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
327
419
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
328
420
|
return __generator(this, function (_c) {
|
|
@@ -542,6 +634,48 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
|
|
|
542
634
|
}
|
|
543
635
|
});
|
|
544
636
|
}); };
|
|
637
|
+
export var serializeAws_restJson1DescribeLiveSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
638
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
639
|
+
return __generator(this, function (_c) {
|
|
640
|
+
switch (_c.label) {
|
|
641
|
+
case 0: return [4, context.endpoint()];
|
|
642
|
+
case 1:
|
|
643
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
644
|
+
headers = {};
|
|
645
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
646
|
+
"/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
|
|
647
|
+
if (input.LiveSourceName !== undefined) {
|
|
648
|
+
labelValue = input.LiveSourceName;
|
|
649
|
+
if (labelValue.length <= 0) {
|
|
650
|
+
throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
|
|
651
|
+
}
|
|
652
|
+
resolvedPath = resolvedPath.replace("{LiveSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
throw new Error("No value provided for input HTTP label: LiveSourceName.");
|
|
656
|
+
}
|
|
657
|
+
if (input.SourceLocationName !== undefined) {
|
|
658
|
+
labelValue = input.SourceLocationName;
|
|
659
|
+
if (labelValue.length <= 0) {
|
|
660
|
+
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
661
|
+
}
|
|
662
|
+
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
663
|
+
}
|
|
664
|
+
else {
|
|
665
|
+
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
666
|
+
}
|
|
667
|
+
return [2, new __HttpRequest({
|
|
668
|
+
protocol: protocol,
|
|
669
|
+
hostname: hostname,
|
|
670
|
+
port: port,
|
|
671
|
+
method: "GET",
|
|
672
|
+
headers: headers,
|
|
673
|
+
path: resolvedPath,
|
|
674
|
+
body: body,
|
|
675
|
+
})];
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
}); };
|
|
545
679
|
export var serializeAws_restJson1DescribeProgramCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
546
680
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
547
681
|
return __generator(this, function (_c) {
|
|
@@ -840,6 +974,40 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
|
|
|
840
974
|
}
|
|
841
975
|
});
|
|
842
976
|
}); };
|
|
977
|
+
export var serializeAws_restJson1ListLiveSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
978
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
979
|
+
return __generator(this, function (_c) {
|
|
980
|
+
switch (_c.label) {
|
|
981
|
+
case 0: return [4, context.endpoint()];
|
|
982
|
+
case 1:
|
|
983
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
984
|
+
headers = {};
|
|
985
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
986
|
+
"/sourceLocation/{SourceLocationName}/liveSources";
|
|
987
|
+
if (input.SourceLocationName !== undefined) {
|
|
988
|
+
labelValue = input.SourceLocationName;
|
|
989
|
+
if (labelValue.length <= 0) {
|
|
990
|
+
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
991
|
+
}
|
|
992
|
+
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
993
|
+
}
|
|
994
|
+
else {
|
|
995
|
+
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
996
|
+
}
|
|
997
|
+
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
998
|
+
return [2, new __HttpRequest({
|
|
999
|
+
protocol: protocol,
|
|
1000
|
+
hostname: hostname,
|
|
1001
|
+
port: port,
|
|
1002
|
+
method: "GET",
|
|
1003
|
+
headers: headers,
|
|
1004
|
+
path: resolvedPath,
|
|
1005
|
+
query: query,
|
|
1006
|
+
body: body,
|
|
1007
|
+
})];
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
}); };
|
|
843
1011
|
export var serializeAws_restJson1ListPlaybackConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
844
1012
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
845
1013
|
return __generator(this, function (_c) {
|
|
@@ -1236,6 +1404,54 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
1236
1404
|
}
|
|
1237
1405
|
});
|
|
1238
1406
|
}); };
|
|
1407
|
+
export var serializeAws_restJson1UpdateLiveSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1408
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
1409
|
+
return __generator(this, function (_c) {
|
|
1410
|
+
switch (_c.label) {
|
|
1411
|
+
case 0: return [4, context.endpoint()];
|
|
1412
|
+
case 1:
|
|
1413
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1414
|
+
headers = {
|
|
1415
|
+
"content-type": "application/json",
|
|
1416
|
+
};
|
|
1417
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1418
|
+
"/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
|
|
1419
|
+
if (input.LiveSourceName !== undefined) {
|
|
1420
|
+
labelValue = input.LiveSourceName;
|
|
1421
|
+
if (labelValue.length <= 0) {
|
|
1422
|
+
throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
|
|
1423
|
+
}
|
|
1424
|
+
resolvedPath = resolvedPath.replace("{LiveSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
1425
|
+
}
|
|
1426
|
+
else {
|
|
1427
|
+
throw new Error("No value provided for input HTTP label: LiveSourceName.");
|
|
1428
|
+
}
|
|
1429
|
+
if (input.SourceLocationName !== undefined) {
|
|
1430
|
+
labelValue = input.SourceLocationName;
|
|
1431
|
+
if (labelValue.length <= 0) {
|
|
1432
|
+
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
1433
|
+
}
|
|
1434
|
+
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
1435
|
+
}
|
|
1436
|
+
else {
|
|
1437
|
+
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
1438
|
+
}
|
|
1439
|
+
body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations !== undefined &&
|
|
1440
|
+
input.HttpPackageConfigurations !== null && {
|
|
1441
|
+
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1442
|
+
})));
|
|
1443
|
+
return [2, new __HttpRequest({
|
|
1444
|
+
protocol: protocol,
|
|
1445
|
+
hostname: hostname,
|
|
1446
|
+
port: port,
|
|
1447
|
+
method: "PUT",
|
|
1448
|
+
headers: headers,
|
|
1449
|
+
path: resolvedPath,
|
|
1450
|
+
body: body,
|
|
1451
|
+
})];
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
}); };
|
|
1239
1455
|
export var serializeAws_restJson1UpdateSourceLocationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1240
1456
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1241
1457
|
return __generator(this, function (_c) {
|
|
@@ -1404,6 +1620,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1404
1620
|
Outputs: undefined,
|
|
1405
1621
|
PlaybackMode: undefined,
|
|
1406
1622
|
Tags: undefined,
|
|
1623
|
+
Tier: undefined,
|
|
1407
1624
|
};
|
|
1408
1625
|
_a = __expectNonNull;
|
|
1409
1626
|
_b = __expectObject;
|
|
@@ -1437,6 +1654,9 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1437
1654
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1438
1655
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1439
1656
|
}
|
|
1657
|
+
if (data.Tier !== undefined && data.Tier !== null) {
|
|
1658
|
+
contents.Tier = __expectString(data.Tier);
|
|
1659
|
+
}
|
|
1440
1660
|
return [2, Promise.resolve(contents)];
|
|
1441
1661
|
}
|
|
1442
1662
|
});
|
|
@@ -1468,6 +1688,81 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1468
1688
|
}
|
|
1469
1689
|
});
|
|
1470
1690
|
}); };
|
|
1691
|
+
export var deserializeAws_restJson1CreateLiveSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1692
|
+
var contents, data, _a, _b;
|
|
1693
|
+
return __generator(this, function (_c) {
|
|
1694
|
+
switch (_c.label) {
|
|
1695
|
+
case 0:
|
|
1696
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1697
|
+
return [2, deserializeAws_restJson1CreateLiveSourceCommandError(output, context)];
|
|
1698
|
+
}
|
|
1699
|
+
contents = {
|
|
1700
|
+
$metadata: deserializeMetadata(output),
|
|
1701
|
+
Arn: undefined,
|
|
1702
|
+
CreationTime: undefined,
|
|
1703
|
+
HttpPackageConfigurations: undefined,
|
|
1704
|
+
LastModifiedTime: undefined,
|
|
1705
|
+
LiveSourceName: undefined,
|
|
1706
|
+
SourceLocationName: undefined,
|
|
1707
|
+
Tags: undefined,
|
|
1708
|
+
};
|
|
1709
|
+
_a = __expectNonNull;
|
|
1710
|
+
_b = __expectObject;
|
|
1711
|
+
return [4, parseBody(output.body, context)];
|
|
1712
|
+
case 1:
|
|
1713
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1714
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1715
|
+
contents.Arn = __expectString(data.Arn);
|
|
1716
|
+
}
|
|
1717
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1718
|
+
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1719
|
+
}
|
|
1720
|
+
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
1721
|
+
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
|
|
1722
|
+
}
|
|
1723
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1724
|
+
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1725
|
+
}
|
|
1726
|
+
if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
|
|
1727
|
+
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1728
|
+
}
|
|
1729
|
+
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1730
|
+
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1731
|
+
}
|
|
1732
|
+
if (data.tags !== undefined && data.tags !== null) {
|
|
1733
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1734
|
+
}
|
|
1735
|
+
return [2, Promise.resolve(contents)];
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
}); };
|
|
1739
|
+
var deserializeAws_restJson1CreateLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1740
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1741
|
+
var _b;
|
|
1742
|
+
return __generator(this, function (_c) {
|
|
1743
|
+
switch (_c.label) {
|
|
1744
|
+
case 0:
|
|
1745
|
+
_a = [__assign({}, output)];
|
|
1746
|
+
_b = {};
|
|
1747
|
+
return [4, parseBody(output.body, context)];
|
|
1748
|
+
case 1:
|
|
1749
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1750
|
+
errorCode = "UnknownError";
|
|
1751
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
+
switch (errorCode) {
|
|
1753
|
+
default:
|
|
1754
|
+
parsedBody = parsedOutput.body;
|
|
1755
|
+
response = new __BaseException({
|
|
1756
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1757
|
+
$fault: "client",
|
|
1758
|
+
$metadata: deserializeMetadata(output),
|
|
1759
|
+
});
|
|
1760
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1761
|
+
}
|
|
1762
|
+
return [2];
|
|
1763
|
+
}
|
|
1764
|
+
});
|
|
1765
|
+
}); };
|
|
1471
1766
|
export var deserializeAws_restJson1CreatePrefetchScheduleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1472
1767
|
var contents, data, _a, _b;
|
|
1473
1768
|
return __generator(this, function (_c) {
|
|
@@ -1553,6 +1848,7 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
|
|
|
1553
1848
|
Arn: undefined,
|
|
1554
1849
|
ChannelName: undefined,
|
|
1555
1850
|
CreationTime: undefined,
|
|
1851
|
+
LiveSourceName: undefined,
|
|
1556
1852
|
ProgramName: undefined,
|
|
1557
1853
|
ScheduledStartTime: undefined,
|
|
1558
1854
|
SourceLocationName: undefined,
|
|
@@ -1575,6 +1871,9 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
|
|
|
1575
1871
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1576
1872
|
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1577
1873
|
}
|
|
1874
|
+
if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
|
|
1875
|
+
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
1876
|
+
}
|
|
1578
1877
|
if (data.ProgramName !== undefined && data.ProgramName !== null) {
|
|
1579
1878
|
contents.ProgramName = __expectString(data.ProgramName);
|
|
1580
1879
|
}
|
|
@@ -1742,14 +2041,59 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
|
|
|
1742
2041
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1743
2042
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1744
2043
|
}
|
|
1745
|
-
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
1746
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
2044
|
+
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
2045
|
+
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
2046
|
+
}
|
|
2047
|
+
return [2, Promise.resolve(contents)];
|
|
2048
|
+
}
|
|
2049
|
+
});
|
|
2050
|
+
}); };
|
|
2051
|
+
var deserializeAws_restJson1CreateVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2052
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2053
|
+
var _b;
|
|
2054
|
+
return __generator(this, function (_c) {
|
|
2055
|
+
switch (_c.label) {
|
|
2056
|
+
case 0:
|
|
2057
|
+
_a = [__assign({}, output)];
|
|
2058
|
+
_b = {};
|
|
2059
|
+
return [4, parseBody(output.body, context)];
|
|
2060
|
+
case 1:
|
|
2061
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2062
|
+
errorCode = "UnknownError";
|
|
2063
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
|
+
switch (errorCode) {
|
|
2065
|
+
default:
|
|
2066
|
+
parsedBody = parsedOutput.body;
|
|
2067
|
+
response = new __BaseException({
|
|
2068
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2069
|
+
$fault: "client",
|
|
2070
|
+
$metadata: deserializeMetadata(output),
|
|
2071
|
+
});
|
|
2072
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2073
|
+
}
|
|
2074
|
+
return [2];
|
|
2075
|
+
}
|
|
2076
|
+
});
|
|
2077
|
+
}); };
|
|
2078
|
+
export var deserializeAws_restJson1DeleteChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2079
|
+
var contents;
|
|
2080
|
+
return __generator(this, function (_a) {
|
|
2081
|
+
switch (_a.label) {
|
|
2082
|
+
case 0:
|
|
2083
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2084
|
+
return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
|
|
1747
2085
|
}
|
|
2086
|
+
contents = {
|
|
2087
|
+
$metadata: deserializeMetadata(output),
|
|
2088
|
+
};
|
|
2089
|
+
return [4, collectBody(output.body, context)];
|
|
2090
|
+
case 1:
|
|
2091
|
+
_a.sent();
|
|
1748
2092
|
return [2, Promise.resolve(contents)];
|
|
1749
2093
|
}
|
|
1750
2094
|
});
|
|
1751
2095
|
}); };
|
|
1752
|
-
var
|
|
2096
|
+
var deserializeAws_restJson1DeleteChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1753
2097
|
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1754
2098
|
var _b;
|
|
1755
2099
|
return __generator(this, function (_c) {
|
|
@@ -1776,13 +2120,13 @@ var deserializeAws_restJson1CreateVodSourceCommandError = function (output, cont
|
|
|
1776
2120
|
}
|
|
1777
2121
|
});
|
|
1778
2122
|
}); };
|
|
1779
|
-
export var
|
|
2123
|
+
export var deserializeAws_restJson1DeleteChannelPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1780
2124
|
var contents;
|
|
1781
2125
|
return __generator(this, function (_a) {
|
|
1782
2126
|
switch (_a.label) {
|
|
1783
2127
|
case 0:
|
|
1784
2128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1785
|
-
return [2,
|
|
2129
|
+
return [2, deserializeAws_restJson1DeleteChannelPolicyCommandError(output, context)];
|
|
1786
2130
|
}
|
|
1787
2131
|
contents = {
|
|
1788
2132
|
$metadata: deserializeMetadata(output),
|
|
@@ -1794,7 +2138,7 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
1794
2138
|
}
|
|
1795
2139
|
});
|
|
1796
2140
|
}); };
|
|
1797
|
-
var
|
|
2141
|
+
var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1798
2142
|
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1799
2143
|
var _b;
|
|
1800
2144
|
return __generator(this, function (_c) {
|
|
@@ -1821,13 +2165,13 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1821
2165
|
}
|
|
1822
2166
|
});
|
|
1823
2167
|
}); };
|
|
1824
|
-
export var
|
|
2168
|
+
export var deserializeAws_restJson1DeleteLiveSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1825
2169
|
var contents;
|
|
1826
2170
|
return __generator(this, function (_a) {
|
|
1827
2171
|
switch (_a.label) {
|
|
1828
2172
|
case 0:
|
|
1829
2173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
|
-
return [2,
|
|
2174
|
+
return [2, deserializeAws_restJson1DeleteLiveSourceCommandError(output, context)];
|
|
1831
2175
|
}
|
|
1832
2176
|
contents = {
|
|
1833
2177
|
$metadata: deserializeMetadata(output),
|
|
@@ -1839,7 +2183,7 @@ export var deserializeAws_restJson1DeleteChannelPolicyCommand = function (output
|
|
|
1839
2183
|
}
|
|
1840
2184
|
});
|
|
1841
2185
|
}); };
|
|
1842
|
-
var
|
|
2186
|
+
var deserializeAws_restJson1DeleteLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1843
2187
|
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1844
2188
|
var _b;
|
|
1845
2189
|
return __generator(this, function (_c) {
|
|
@@ -2110,6 +2454,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2110
2454
|
Outputs: undefined,
|
|
2111
2455
|
PlaybackMode: undefined,
|
|
2112
2456
|
Tags: undefined,
|
|
2457
|
+
Tier: undefined,
|
|
2113
2458
|
};
|
|
2114
2459
|
_a = __expectNonNull;
|
|
2115
2460
|
_b = __expectObject;
|
|
@@ -2143,6 +2488,9 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2143
2488
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2144
2489
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2145
2490
|
}
|
|
2491
|
+
if (data.Tier !== undefined && data.Tier !== null) {
|
|
2492
|
+
contents.Tier = __expectString(data.Tier);
|
|
2493
|
+
}
|
|
2146
2494
|
return [2, Promise.resolve(contents)];
|
|
2147
2495
|
}
|
|
2148
2496
|
});
|
|
@@ -2174,6 +2522,81 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2174
2522
|
}
|
|
2175
2523
|
});
|
|
2176
2524
|
}); };
|
|
2525
|
+
export var deserializeAws_restJson1DescribeLiveSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2526
|
+
var contents, data, _a, _b;
|
|
2527
|
+
return __generator(this, function (_c) {
|
|
2528
|
+
switch (_c.label) {
|
|
2529
|
+
case 0:
|
|
2530
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2531
|
+
return [2, deserializeAws_restJson1DescribeLiveSourceCommandError(output, context)];
|
|
2532
|
+
}
|
|
2533
|
+
contents = {
|
|
2534
|
+
$metadata: deserializeMetadata(output),
|
|
2535
|
+
Arn: undefined,
|
|
2536
|
+
CreationTime: undefined,
|
|
2537
|
+
HttpPackageConfigurations: undefined,
|
|
2538
|
+
LastModifiedTime: undefined,
|
|
2539
|
+
LiveSourceName: undefined,
|
|
2540
|
+
SourceLocationName: undefined,
|
|
2541
|
+
Tags: undefined,
|
|
2542
|
+
};
|
|
2543
|
+
_a = __expectNonNull;
|
|
2544
|
+
_b = __expectObject;
|
|
2545
|
+
return [4, parseBody(output.body, context)];
|
|
2546
|
+
case 1:
|
|
2547
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2548
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2549
|
+
contents.Arn = __expectString(data.Arn);
|
|
2550
|
+
}
|
|
2551
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2552
|
+
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
2553
|
+
}
|
|
2554
|
+
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
2555
|
+
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
|
|
2556
|
+
}
|
|
2557
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
2558
|
+
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2559
|
+
}
|
|
2560
|
+
if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
|
|
2561
|
+
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
2562
|
+
}
|
|
2563
|
+
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
2564
|
+
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2565
|
+
}
|
|
2566
|
+
if (data.tags !== undefined && data.tags !== null) {
|
|
2567
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2568
|
+
}
|
|
2569
|
+
return [2, Promise.resolve(contents)];
|
|
2570
|
+
}
|
|
2571
|
+
});
|
|
2572
|
+
}); };
|
|
2573
|
+
var deserializeAws_restJson1DescribeLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2574
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2575
|
+
var _b;
|
|
2576
|
+
return __generator(this, function (_c) {
|
|
2577
|
+
switch (_c.label) {
|
|
2578
|
+
case 0:
|
|
2579
|
+
_a = [__assign({}, output)];
|
|
2580
|
+
_b = {};
|
|
2581
|
+
return [4, parseBody(output.body, context)];
|
|
2582
|
+
case 1:
|
|
2583
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2584
|
+
errorCode = "UnknownError";
|
|
2585
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
|
+
switch (errorCode) {
|
|
2587
|
+
default:
|
|
2588
|
+
parsedBody = parsedOutput.body;
|
|
2589
|
+
response = new __BaseException({
|
|
2590
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2591
|
+
$fault: "client",
|
|
2592
|
+
$metadata: deserializeMetadata(output),
|
|
2593
|
+
});
|
|
2594
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2595
|
+
}
|
|
2596
|
+
return [2];
|
|
2597
|
+
}
|
|
2598
|
+
});
|
|
2599
|
+
}); };
|
|
2177
2600
|
export var deserializeAws_restJson1DescribeProgramCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2178
2601
|
var contents, data, _a, _b;
|
|
2179
2602
|
return __generator(this, function (_c) {
|
|
@@ -2188,6 +2611,7 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
|
|
|
2188
2611
|
Arn: undefined,
|
|
2189
2612
|
ChannelName: undefined,
|
|
2190
2613
|
CreationTime: undefined,
|
|
2614
|
+
LiveSourceName: undefined,
|
|
2191
2615
|
ProgramName: undefined,
|
|
2192
2616
|
ScheduledStartTime: undefined,
|
|
2193
2617
|
SourceLocationName: undefined,
|
|
@@ -2210,6 +2634,9 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
|
|
|
2210
2634
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2211
2635
|
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
2212
2636
|
}
|
|
2637
|
+
if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
|
|
2638
|
+
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
2639
|
+
}
|
|
2213
2640
|
if (data.ProgramName !== undefined && data.ProgramName !== null) {
|
|
2214
2641
|
contents.ProgramName = __expectString(data.ProgramName);
|
|
2215
2642
|
}
|
|
@@ -2821,6 +3248,61 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
2821
3248
|
}
|
|
2822
3249
|
});
|
|
2823
3250
|
}); };
|
|
3251
|
+
export var deserializeAws_restJson1ListLiveSourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3252
|
+
var contents, data, _a, _b;
|
|
3253
|
+
return __generator(this, function (_c) {
|
|
3254
|
+
switch (_c.label) {
|
|
3255
|
+
case 0:
|
|
3256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3257
|
+
return [2, deserializeAws_restJson1ListLiveSourcesCommandError(output, context)];
|
|
3258
|
+
}
|
|
3259
|
+
contents = {
|
|
3260
|
+
$metadata: deserializeMetadata(output),
|
|
3261
|
+
Items: undefined,
|
|
3262
|
+
NextToken: undefined,
|
|
3263
|
+
};
|
|
3264
|
+
_a = __expectNonNull;
|
|
3265
|
+
_b = __expectObject;
|
|
3266
|
+
return [4, parseBody(output.body, context)];
|
|
3267
|
+
case 1:
|
|
3268
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3269
|
+
if (data.Items !== undefined && data.Items !== null) {
|
|
3270
|
+
contents.Items = deserializeAws_restJson1__listOfLiveSource(data.Items, context);
|
|
3271
|
+
}
|
|
3272
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3273
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
3274
|
+
}
|
|
3275
|
+
return [2, Promise.resolve(contents)];
|
|
3276
|
+
}
|
|
3277
|
+
});
|
|
3278
|
+
}); };
|
|
3279
|
+
var deserializeAws_restJson1ListLiveSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3280
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3281
|
+
var _b;
|
|
3282
|
+
return __generator(this, function (_c) {
|
|
3283
|
+
switch (_c.label) {
|
|
3284
|
+
case 0:
|
|
3285
|
+
_a = [__assign({}, output)];
|
|
3286
|
+
_b = {};
|
|
3287
|
+
return [4, parseBody(output.body, context)];
|
|
3288
|
+
case 1:
|
|
3289
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3290
|
+
errorCode = "UnknownError";
|
|
3291
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3292
|
+
switch (errorCode) {
|
|
3293
|
+
default:
|
|
3294
|
+
parsedBody = parsedOutput.body;
|
|
3295
|
+
response = new __BaseException({
|
|
3296
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3297
|
+
$fault: "client",
|
|
3298
|
+
$metadata: deserializeMetadata(output),
|
|
3299
|
+
});
|
|
3300
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3301
|
+
}
|
|
3302
|
+
return [2];
|
|
3303
|
+
}
|
|
3304
|
+
});
|
|
3305
|
+
}); };
|
|
2824
3306
|
export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2825
3307
|
var contents, data, _a, _b;
|
|
2826
3308
|
return __generator(this, function (_c) {
|
|
@@ -3474,6 +3956,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3474
3956
|
Outputs: undefined,
|
|
3475
3957
|
PlaybackMode: undefined,
|
|
3476
3958
|
Tags: undefined,
|
|
3959
|
+
Tier: undefined,
|
|
3477
3960
|
};
|
|
3478
3961
|
_a = __expectNonNull;
|
|
3479
3962
|
_b = __expectObject;
|
|
@@ -3507,6 +3990,9 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3507
3990
|
if (data.tags !== undefined && data.tags !== null) {
|
|
3508
3991
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
3509
3992
|
}
|
|
3993
|
+
if (data.Tier !== undefined && data.Tier !== null) {
|
|
3994
|
+
contents.Tier = __expectString(data.Tier);
|
|
3995
|
+
}
|
|
3510
3996
|
return [2, Promise.resolve(contents)];
|
|
3511
3997
|
}
|
|
3512
3998
|
});
|
|
@@ -3538,6 +4024,81 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
3538
4024
|
}
|
|
3539
4025
|
});
|
|
3540
4026
|
}); };
|
|
4027
|
+
export var deserializeAws_restJson1UpdateLiveSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4028
|
+
var contents, data, _a, _b;
|
|
4029
|
+
return __generator(this, function (_c) {
|
|
4030
|
+
switch (_c.label) {
|
|
4031
|
+
case 0:
|
|
4032
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4033
|
+
return [2, deserializeAws_restJson1UpdateLiveSourceCommandError(output, context)];
|
|
4034
|
+
}
|
|
4035
|
+
contents = {
|
|
4036
|
+
$metadata: deserializeMetadata(output),
|
|
4037
|
+
Arn: undefined,
|
|
4038
|
+
CreationTime: undefined,
|
|
4039
|
+
HttpPackageConfigurations: undefined,
|
|
4040
|
+
LastModifiedTime: undefined,
|
|
4041
|
+
LiveSourceName: undefined,
|
|
4042
|
+
SourceLocationName: undefined,
|
|
4043
|
+
Tags: undefined,
|
|
4044
|
+
};
|
|
4045
|
+
_a = __expectNonNull;
|
|
4046
|
+
_b = __expectObject;
|
|
4047
|
+
return [4, parseBody(output.body, context)];
|
|
4048
|
+
case 1:
|
|
4049
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4050
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
4051
|
+
contents.Arn = __expectString(data.Arn);
|
|
4052
|
+
}
|
|
4053
|
+
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
4054
|
+
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
4055
|
+
}
|
|
4056
|
+
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
4057
|
+
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
|
|
4058
|
+
}
|
|
4059
|
+
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
4060
|
+
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
4061
|
+
}
|
|
4062
|
+
if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
|
|
4063
|
+
contents.LiveSourceName = __expectString(data.LiveSourceName);
|
|
4064
|
+
}
|
|
4065
|
+
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
4066
|
+
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
4067
|
+
}
|
|
4068
|
+
if (data.tags !== undefined && data.tags !== null) {
|
|
4069
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
4070
|
+
}
|
|
4071
|
+
return [2, Promise.resolve(contents)];
|
|
4072
|
+
}
|
|
4073
|
+
});
|
|
4074
|
+
}); };
|
|
4075
|
+
var deserializeAws_restJson1UpdateLiveSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4076
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
4077
|
+
var _b;
|
|
4078
|
+
return __generator(this, function (_c) {
|
|
4079
|
+
switch (_c.label) {
|
|
4080
|
+
case 0:
|
|
4081
|
+
_a = [__assign({}, output)];
|
|
4082
|
+
_b = {};
|
|
4083
|
+
return [4, parseBody(output.body, context)];
|
|
4084
|
+
case 1:
|
|
4085
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
4086
|
+
errorCode = "UnknownError";
|
|
4087
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4088
|
+
switch (errorCode) {
|
|
4089
|
+
default:
|
|
4090
|
+
parsedBody = parsedOutput.body;
|
|
4091
|
+
response = new __BaseException({
|
|
4092
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4093
|
+
$fault: "client",
|
|
4094
|
+
$metadata: deserializeMetadata(output),
|
|
4095
|
+
});
|
|
4096
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4097
|
+
}
|
|
4098
|
+
return [2];
|
|
4099
|
+
}
|
|
4100
|
+
});
|
|
4101
|
+
}); };
|
|
3541
4102
|
export var deserializeAws_restJson1UpdateSourceLocationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3542
4103
|
var contents, data, _a, _b;
|
|
3543
4104
|
return __generator(this, function (_c) {
|
|
@@ -3892,7 +4453,8 @@ var serializeAws_restJson1SpliceInsertMessage = function (input, context) {
|
|
|
3892
4453
|
input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }));
|
|
3893
4454
|
};
|
|
3894
4455
|
var serializeAws_restJson1Transition = function (input, context) {
|
|
3895
|
-
return __assign(__assign(__assign(__assign({}, (input.
|
|
4456
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DurationMillis !== undefined &&
|
|
4457
|
+
input.DurationMillis !== null && { DurationMillis: input.DurationMillis })), (input.RelativePosition !== undefined &&
|
|
3896
4458
|
input.RelativePosition !== null && { RelativePosition: input.RelativePosition })), (input.RelativeProgram !== undefined &&
|
|
3897
4459
|
input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram })), (input.ScheduledStartTimeMillis !== undefined &&
|
|
3898
4460
|
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
@@ -3952,6 +4514,17 @@ var deserializeAws_restJson1__listOfChannel = function (output, context) {
|
|
|
3952
4514
|
});
|
|
3953
4515
|
return retVal;
|
|
3954
4516
|
};
|
|
4517
|
+
var deserializeAws_restJson1__listOfLiveSource = function (output, context) {
|
|
4518
|
+
var retVal = (output || [])
|
|
4519
|
+
.filter(function (e) { return e != null; })
|
|
4520
|
+
.map(function (entry) {
|
|
4521
|
+
if (entry === null) {
|
|
4522
|
+
return null;
|
|
4523
|
+
}
|
|
4524
|
+
return deserializeAws_restJson1LiveSource(entry, context);
|
|
4525
|
+
});
|
|
4526
|
+
return retVal;
|
|
4527
|
+
};
|
|
3955
4528
|
var deserializeAws_restJson1__listOfPlaybackConfiguration = function (output, context) {
|
|
3956
4529
|
var retVal = (output || [])
|
|
3957
4530
|
.filter(function (e) { return e != null; })
|
|
@@ -4123,6 +4696,7 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
4123
4696
|
Tags: output.tags !== undefined && output.tags !== null
|
|
4124
4697
|
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4125
4698
|
: undefined,
|
|
4699
|
+
Tier: __expectString(output.Tier),
|
|
4126
4700
|
};
|
|
4127
4701
|
};
|
|
4128
4702
|
var deserializeAws_restJson1ConfigurationAliasesResponse = function (output, context) {
|
|
@@ -4194,6 +4768,25 @@ var deserializeAws_restJson1LivePreRollConfiguration = function (output, context
|
|
|
4194
4768
|
MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds),
|
|
4195
4769
|
};
|
|
4196
4770
|
};
|
|
4771
|
+
var deserializeAws_restJson1LiveSource = function (output, context) {
|
|
4772
|
+
return {
|
|
4773
|
+
Arn: __expectString(output.Arn),
|
|
4774
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4775
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4776
|
+
: undefined,
|
|
4777
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
|
|
4778
|
+
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4779
|
+
: undefined,
|
|
4780
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4781
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4782
|
+
: undefined,
|
|
4783
|
+
LiveSourceName: __expectString(output.LiveSourceName),
|
|
4784
|
+
SourceLocationName: __expectString(output.SourceLocationName),
|
|
4785
|
+
Tags: output.tags !== undefined && output.tags !== null
|
|
4786
|
+
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4787
|
+
: undefined,
|
|
4788
|
+
};
|
|
4789
|
+
};
|
|
4197
4790
|
var deserializeAws_restJson1LogConfiguration = function (output, context) {
|
|
4198
4791
|
return {
|
|
4199
4792
|
PercentEnabled: __expectInt32(output.PercentEnabled),
|
|
@@ -4331,6 +4924,7 @@ var deserializeAws_restJson1ScheduleEntry = function (output, context) {
|
|
|
4331
4924
|
: undefined,
|
|
4332
4925
|
Arn: __expectString(output.Arn),
|
|
4333
4926
|
ChannelName: __expectString(output.ChannelName),
|
|
4927
|
+
LiveSourceName: __expectString(output.LiveSourceName),
|
|
4334
4928
|
ProgramName: __expectString(output.ProgramName),
|
|
4335
4929
|
ScheduleAdBreaks: output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
|
|
4336
4930
|
? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
|