@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/MediaTailor.js +75 -0
  3. package/dist-cjs/commands/CreateLiveSourceCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteLiveSourceCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeLiveSourceCommand.js +36 -0
  6. package/dist-cjs/commands/ListLiveSourcesCommand.js +36 -0
  7. package/dist-cjs/commands/UpdateLiveSourceCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +85 -14
  10. package/dist-cjs/pagination/ListLiveSourcesPaginator.js +35 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +499 -2
  13. package/dist-es/MediaTailor.js +75 -0
  14. package/dist-es/commands/CreateLiveSourceCommand.js +39 -0
  15. package/dist-es/commands/DeleteLiveSourceCommand.js +39 -0
  16. package/dist-es/commands/DescribeLiveSourceCommand.js +39 -0
  17. package/dist-es/commands/ListLiveSourcesCommand.js +39 -0
  18. package/dist-es/commands/UpdateLiveSourceCommand.js +39 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/models/models_0.js +58 -9
  21. package/dist-es/pagination/ListLiveSourcesPaginator.js +74 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +607 -13
  24. package/dist-types/MediaTailor.d.ts +35 -0
  25. package/dist-types/MediaTailorClient.d.ts +7 -2
  26. package/dist-types/commands/CreateLiveSourceCommand.d.ts +35 -0
  27. package/dist-types/commands/DeleteLiveSourceCommand.d.ts +35 -0
  28. package/dist-types/commands/DescribeLiveSourceCommand.d.ts +35 -0
  29. package/dist-types/commands/ListLiveSourcesCommand.d.ts +35 -0
  30. package/dist-types/commands/UpdateLiveSourceCommand.d.ts +35 -0
  31. package/dist-types/commands/index.d.ts +5 -0
  32. package/dist-types/models/models_0.d.ts +387 -39
  33. package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  36. package/dist-types/ts3.4/MediaTailor.d.ts +25 -0
  37. package/dist-types/ts3.4/MediaTailorClient.d.ts +7 -2
  38. package/dist-types/ts3.4/commands/CreateLiveSourceCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/DeleteLiveSourceCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/DescribeLiveSourceCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListLiveSourcesCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/UpdateLiveSourceCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +217 -19
  45. package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +4 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  48. package/package.json +9 -9
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = exports.deserializeAws_restJson1CreateSourceLocationCommand = exports.deserializeAws_restJson1CreateProgramCommand = exports.deserializeAws_restJson1CreatePrefetchScheduleCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.serializeAws_restJson1UpdateVodSourceCommand = exports.serializeAws_restJson1UpdateSourceLocationCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1PutPlaybackConfigurationCommand = exports.serializeAws_restJson1PutChannelPolicyCommand = exports.serializeAws_restJson1ListVodSourcesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceLocationsCommand = exports.serializeAws_restJson1ListPrefetchSchedulesCommand = exports.serializeAws_restJson1ListPlaybackConfigurationsCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListAlertsCommand = exports.serializeAws_restJson1GetPrefetchScheduleCommand = exports.serializeAws_restJson1GetPlaybackConfigurationCommand = exports.serializeAws_restJson1GetChannelScheduleCommand = exports.serializeAws_restJson1GetChannelPolicyCommand = exports.serializeAws_restJson1DescribeVodSourceCommand = exports.serializeAws_restJson1DescribeSourceLocationCommand = exports.serializeAws_restJson1DescribeProgramCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteVodSourceCommand = exports.serializeAws_restJson1DeleteSourceLocationCommand = exports.serializeAws_restJson1DeleteProgramCommand = exports.serializeAws_restJson1DeletePrefetchScheduleCommand = exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = exports.serializeAws_restJson1DeleteChannelPolicyCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateVodSourceCommand = exports.serializeAws_restJson1CreateSourceLocationCommand = exports.serializeAws_restJson1CreateProgramCommand = exports.serializeAws_restJson1CreatePrefetchScheduleCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPrefetchScheduleCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeChannelCommand = void 0;
3
+ exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = exports.deserializeAws_restJson1CreateSourceLocationCommand = exports.deserializeAws_restJson1CreateProgramCommand = exports.deserializeAws_restJson1CreatePrefetchScheduleCommand = exports.deserializeAws_restJson1CreateLiveSourceCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.serializeAws_restJson1UpdateVodSourceCommand = exports.serializeAws_restJson1UpdateSourceLocationCommand = exports.serializeAws_restJson1UpdateLiveSourceCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1PutPlaybackConfigurationCommand = exports.serializeAws_restJson1PutChannelPolicyCommand = exports.serializeAws_restJson1ListVodSourcesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceLocationsCommand = exports.serializeAws_restJson1ListPrefetchSchedulesCommand = exports.serializeAws_restJson1ListPlaybackConfigurationsCommand = exports.serializeAws_restJson1ListLiveSourcesCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListAlertsCommand = exports.serializeAws_restJson1GetPrefetchScheduleCommand = exports.serializeAws_restJson1GetPlaybackConfigurationCommand = exports.serializeAws_restJson1GetChannelScheduleCommand = exports.serializeAws_restJson1GetChannelPolicyCommand = exports.serializeAws_restJson1DescribeVodSourceCommand = exports.serializeAws_restJson1DescribeSourceLocationCommand = exports.serializeAws_restJson1DescribeProgramCommand = exports.serializeAws_restJson1DescribeLiveSourceCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteVodSourceCommand = exports.serializeAws_restJson1DeleteSourceLocationCommand = exports.serializeAws_restJson1DeleteProgramCommand = exports.serializeAws_restJson1DeletePrefetchScheduleCommand = exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = exports.serializeAws_restJson1DeleteLiveSourceCommand = exports.serializeAws_restJson1DeleteChannelPolicyCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateVodSourceCommand = exports.serializeAws_restJson1CreateSourceLocationCommand = exports.serializeAws_restJson1CreateProgramCommand = exports.serializeAws_restJson1CreatePrefetchScheduleCommand = exports.serializeAws_restJson1CreateLiveSourceCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateLiveSourceCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListLiveSourcesCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPrefetchScheduleCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeLiveSourceCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteLiveSourceCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const MediaTailorServiceException_1 = require("../models/MediaTailorServiceException");
@@ -55,6 +55,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
55
55
  ...(input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode }),
56
56
  ...(input.Tags !== undefined &&
57
57
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
58
+ ...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
58
59
  });
59
60
  return new protocol_http_1.HttpRequest({
60
61
  protocol,
@@ -67,6 +68,53 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
67
68
  });
68
69
  };
69
70
  exports.serializeAws_restJson1CreateChannelCommand = serializeAws_restJson1CreateChannelCommand;
71
+ const serializeAws_restJson1CreateLiveSourceCommand = async (input, context) => {
72
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const headers = {
74
+ "content-type": "application/json",
75
+ };
76
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
77
+ "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
78
+ if (input.LiveSourceName !== undefined) {
79
+ const labelValue = input.LiveSourceName;
80
+ if (labelValue.length <= 0) {
81
+ throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
82
+ }
83
+ resolvedPath = resolvedPath.replace("{LiveSourceName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
84
+ }
85
+ else {
86
+ throw new Error("No value provided for input HTTP label: LiveSourceName.");
87
+ }
88
+ if (input.SourceLocationName !== undefined) {
89
+ const labelValue = input.SourceLocationName;
90
+ if (labelValue.length <= 0) {
91
+ throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
92
+ }
93
+ resolvedPath = resolvedPath.replace("{SourceLocationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
94
+ }
95
+ else {
96
+ throw new Error("No value provided for input HTTP label: SourceLocationName.");
97
+ }
98
+ let body;
99
+ body = JSON.stringify({
100
+ ...(input.HttpPackageConfigurations !== undefined &&
101
+ input.HttpPackageConfigurations !== null && {
102
+ HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
103
+ }),
104
+ ...(input.Tags !== undefined &&
105
+ input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
106
+ });
107
+ return new protocol_http_1.HttpRequest({
108
+ protocol,
109
+ hostname,
110
+ port,
111
+ method: "POST",
112
+ headers,
113
+ path: resolvedPath,
114
+ body,
115
+ });
116
+ };
117
+ exports.serializeAws_restJson1CreateLiveSourceCommand = serializeAws_restJson1CreateLiveSourceCommand;
70
118
  const serializeAws_restJson1CreatePrefetchScheduleCommand = async (input, context) => {
71
119
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
120
  const headers = {
@@ -146,6 +194,8 @@ const serializeAws_restJson1CreateProgramCommand = async (input, context) => {
146
194
  body = JSON.stringify({
147
195
  ...(input.AdBreaks !== undefined &&
148
196
  input.AdBreaks !== null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) }),
197
+ ...(input.LiveSourceName !== undefined &&
198
+ input.LiveSourceName !== null && { LiveSourceName: input.LiveSourceName }),
149
199
  ...(input.ScheduleConfiguration !== undefined &&
150
200
  input.ScheduleConfiguration !== null && {
151
201
  ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
@@ -312,6 +362,43 @@ const serializeAws_restJson1DeleteChannelPolicyCommand = async (input, context)
312
362
  });
313
363
  };
314
364
  exports.serializeAws_restJson1DeleteChannelPolicyCommand = serializeAws_restJson1DeleteChannelPolicyCommand;
365
+ const serializeAws_restJson1DeleteLiveSourceCommand = async (input, context) => {
366
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
+ const headers = {};
368
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
369
+ "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
370
+ if (input.LiveSourceName !== undefined) {
371
+ const labelValue = input.LiveSourceName;
372
+ if (labelValue.length <= 0) {
373
+ throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
374
+ }
375
+ resolvedPath = resolvedPath.replace("{LiveSourceName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
376
+ }
377
+ else {
378
+ throw new Error("No value provided for input HTTP label: LiveSourceName.");
379
+ }
380
+ if (input.SourceLocationName !== undefined) {
381
+ const labelValue = input.SourceLocationName;
382
+ if (labelValue.length <= 0) {
383
+ throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
384
+ }
385
+ resolvedPath = resolvedPath.replace("{SourceLocationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
386
+ }
387
+ else {
388
+ throw new Error("No value provided for input HTTP label: SourceLocationName.");
389
+ }
390
+ let body;
391
+ return new protocol_http_1.HttpRequest({
392
+ protocol,
393
+ hostname,
394
+ port,
395
+ method: "DELETE",
396
+ headers,
397
+ path: resolvedPath,
398
+ body,
399
+ });
400
+ };
401
+ exports.serializeAws_restJson1DeleteLiveSourceCommand = serializeAws_restJson1DeleteLiveSourceCommand;
315
402
  const serializeAws_restJson1DeletePlaybackConfigurationCommand = async (input, context) => {
316
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
404
  const headers = {};
@@ -501,6 +588,43 @@ const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
501
588
  });
502
589
  };
503
590
  exports.serializeAws_restJson1DescribeChannelCommand = serializeAws_restJson1DescribeChannelCommand;
591
+ const serializeAws_restJson1DescribeLiveSourceCommand = async (input, context) => {
592
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
593
+ const headers = {};
594
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
595
+ "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
596
+ if (input.LiveSourceName !== undefined) {
597
+ const labelValue = input.LiveSourceName;
598
+ if (labelValue.length <= 0) {
599
+ throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
600
+ }
601
+ resolvedPath = resolvedPath.replace("{LiveSourceName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
602
+ }
603
+ else {
604
+ throw new Error("No value provided for input HTTP label: LiveSourceName.");
605
+ }
606
+ if (input.SourceLocationName !== undefined) {
607
+ const labelValue = input.SourceLocationName;
608
+ if (labelValue.length <= 0) {
609
+ throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
610
+ }
611
+ resolvedPath = resolvedPath.replace("{SourceLocationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
612
+ }
613
+ else {
614
+ throw new Error("No value provided for input HTTP label: SourceLocationName.");
615
+ }
616
+ let body;
617
+ return new protocol_http_1.HttpRequest({
618
+ protocol,
619
+ hostname,
620
+ port,
621
+ method: "GET",
622
+ headers,
623
+ path: resolvedPath,
624
+ body,
625
+ });
626
+ };
627
+ exports.serializeAws_restJson1DescribeLiveSourceCommand = serializeAws_restJson1DescribeLiveSourceCommand;
504
628
  const serializeAws_restJson1DescribeProgramCommand = async (input, context) => {
505
629
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
506
630
  const headers = {};
@@ -765,6 +889,38 @@ const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
765
889
  });
766
890
  };
767
891
  exports.serializeAws_restJson1ListChannelsCommand = serializeAws_restJson1ListChannelsCommand;
892
+ const serializeAws_restJson1ListLiveSourcesCommand = async (input, context) => {
893
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
894
+ const headers = {};
895
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
896
+ "/sourceLocation/{SourceLocationName}/liveSources";
897
+ if (input.SourceLocationName !== undefined) {
898
+ const labelValue = input.SourceLocationName;
899
+ if (labelValue.length <= 0) {
900
+ throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
901
+ }
902
+ resolvedPath = resolvedPath.replace("{SourceLocationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
903
+ }
904
+ else {
905
+ throw new Error("No value provided for input HTTP label: SourceLocationName.");
906
+ }
907
+ const query = {
908
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
909
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
910
+ };
911
+ let body;
912
+ return new protocol_http_1.HttpRequest({
913
+ protocol,
914
+ hostname,
915
+ port,
916
+ method: "GET",
917
+ headers,
918
+ path: resolvedPath,
919
+ query,
920
+ body,
921
+ });
922
+ };
923
+ exports.serializeAws_restJson1ListLiveSourcesCommand = serializeAws_restJson1ListLiveSourcesCommand;
768
924
  const serializeAws_restJson1ListPlaybackConfigurationsCommand = async (input, context) => {
769
925
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
770
926
  const headers = {};
@@ -1138,6 +1294,51 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
1138
1294
  });
1139
1295
  };
1140
1296
  exports.serializeAws_restJson1UpdateChannelCommand = serializeAws_restJson1UpdateChannelCommand;
1297
+ const serializeAws_restJson1UpdateLiveSourceCommand = async (input, context) => {
1298
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1299
+ const headers = {
1300
+ "content-type": "application/json",
1301
+ };
1302
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1303
+ "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
1304
+ if (input.LiveSourceName !== undefined) {
1305
+ const labelValue = input.LiveSourceName;
1306
+ if (labelValue.length <= 0) {
1307
+ throw new Error("Empty value provided for input HTTP label: LiveSourceName.");
1308
+ }
1309
+ resolvedPath = resolvedPath.replace("{LiveSourceName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1310
+ }
1311
+ else {
1312
+ throw new Error("No value provided for input HTTP label: LiveSourceName.");
1313
+ }
1314
+ if (input.SourceLocationName !== undefined) {
1315
+ const labelValue = input.SourceLocationName;
1316
+ if (labelValue.length <= 0) {
1317
+ throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
1318
+ }
1319
+ resolvedPath = resolvedPath.replace("{SourceLocationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1320
+ }
1321
+ else {
1322
+ throw new Error("No value provided for input HTTP label: SourceLocationName.");
1323
+ }
1324
+ let body;
1325
+ body = JSON.stringify({
1326
+ ...(input.HttpPackageConfigurations !== undefined &&
1327
+ input.HttpPackageConfigurations !== null && {
1328
+ HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
1329
+ }),
1330
+ });
1331
+ return new protocol_http_1.HttpRequest({
1332
+ protocol,
1333
+ hostname,
1334
+ port,
1335
+ method: "PUT",
1336
+ headers,
1337
+ path: resolvedPath,
1338
+ body,
1339
+ });
1340
+ };
1341
+ exports.serializeAws_restJson1UpdateLiveSourceCommand = serializeAws_restJson1UpdateLiveSourceCommand;
1141
1342
  const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context) => {
1142
1343
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1143
1344
  const headers = {
@@ -1282,6 +1483,7 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
1282
1483
  Outputs: undefined,
1283
1484
  PlaybackMode: undefined,
1284
1485
  Tags: undefined,
1486
+ Tier: undefined,
1285
1487
  };
1286
1488
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1287
1489
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1311,6 +1513,9 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
1311
1513
  if (data.tags !== undefined && data.tags !== null) {
1312
1514
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1313
1515
  }
1516
+ if (data.Tier !== undefined && data.Tier !== null) {
1517
+ contents.Tier = (0, smithy_client_1.expectString)(data.Tier);
1518
+ }
1314
1519
  return Promise.resolve(contents);
1315
1520
  };
1316
1521
  exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1CreateChannelCommand;
@@ -1333,6 +1538,64 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
1333
1538
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1334
1539
  }
1335
1540
  };
1541
+ const deserializeAws_restJson1CreateLiveSourceCommand = async (output, context) => {
1542
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1543
+ return deserializeAws_restJson1CreateLiveSourceCommandError(output, context);
1544
+ }
1545
+ const contents = {
1546
+ $metadata: deserializeMetadata(output),
1547
+ Arn: undefined,
1548
+ CreationTime: undefined,
1549
+ HttpPackageConfigurations: undefined,
1550
+ LastModifiedTime: undefined,
1551
+ LiveSourceName: undefined,
1552
+ SourceLocationName: undefined,
1553
+ Tags: undefined,
1554
+ };
1555
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1556
+ if (data.Arn !== undefined && data.Arn !== null) {
1557
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1558
+ }
1559
+ if (data.CreationTime !== undefined && data.CreationTime !== null) {
1560
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
1561
+ }
1562
+ if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
1563
+ contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
1564
+ }
1565
+ if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1566
+ contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
1567
+ }
1568
+ if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
1569
+ contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
1570
+ }
1571
+ if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1572
+ contents.SourceLocationName = (0, smithy_client_1.expectString)(data.SourceLocationName);
1573
+ }
1574
+ if (data.tags !== undefined && data.tags !== null) {
1575
+ contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1576
+ }
1577
+ return Promise.resolve(contents);
1578
+ };
1579
+ exports.deserializeAws_restJson1CreateLiveSourceCommand = deserializeAws_restJson1CreateLiveSourceCommand;
1580
+ const deserializeAws_restJson1CreateLiveSourceCommandError = async (output, context) => {
1581
+ const parsedOutput = {
1582
+ ...output,
1583
+ body: await parseBody(output.body, context),
1584
+ };
1585
+ let response;
1586
+ let errorCode = "UnknownError";
1587
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1588
+ switch (errorCode) {
1589
+ default:
1590
+ const parsedBody = parsedOutput.body;
1591
+ response = new MediaTailorServiceException_1.MediaTailorServiceException({
1592
+ name: parsedBody.code || parsedBody.Code || errorCode,
1593
+ $fault: "client",
1594
+ $metadata: deserializeMetadata(output),
1595
+ });
1596
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1597
+ }
1598
+ };
1336
1599
  const deserializeAws_restJson1CreatePrefetchScheduleCommand = async (output, context) => {
1337
1600
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1338
1601
  return deserializeAws_restJson1CreatePrefetchScheduleCommandError(output, context);
@@ -1397,6 +1660,7 @@ const deserializeAws_restJson1CreateProgramCommand = async (output, context) =>
1397
1660
  Arn: undefined,
1398
1661
  ChannelName: undefined,
1399
1662
  CreationTime: undefined,
1663
+ LiveSourceName: undefined,
1400
1664
  ProgramName: undefined,
1401
1665
  ScheduledStartTime: undefined,
1402
1666
  SourceLocationName: undefined,
@@ -1415,6 +1679,9 @@ const deserializeAws_restJson1CreateProgramCommand = async (output, context) =>
1415
1679
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1416
1680
  contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
1417
1681
  }
1682
+ if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
1683
+ contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
1684
+ }
1418
1685
  if (data.ProgramName !== undefined && data.ProgramName !== null) {
1419
1686
  contents.ProgramName = (0, smithy_client_1.expectString)(data.ProgramName);
1420
1687
  }
@@ -1633,6 +1900,36 @@ const deserializeAws_restJson1DeleteChannelPolicyCommandError = async (output, c
1633
1900
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1634
1901
  }
1635
1902
  };
1903
+ const deserializeAws_restJson1DeleteLiveSourceCommand = async (output, context) => {
1904
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1905
+ return deserializeAws_restJson1DeleteLiveSourceCommandError(output, context);
1906
+ }
1907
+ const contents = {
1908
+ $metadata: deserializeMetadata(output),
1909
+ };
1910
+ await collectBody(output.body, context);
1911
+ return Promise.resolve(contents);
1912
+ };
1913
+ exports.deserializeAws_restJson1DeleteLiveSourceCommand = deserializeAws_restJson1DeleteLiveSourceCommand;
1914
+ const deserializeAws_restJson1DeleteLiveSourceCommandError = async (output, context) => {
1915
+ const parsedOutput = {
1916
+ ...output,
1917
+ body: await parseBody(output.body, context),
1918
+ };
1919
+ let response;
1920
+ let errorCode = "UnknownError";
1921
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1922
+ switch (errorCode) {
1923
+ default:
1924
+ const parsedBody = parsedOutput.body;
1925
+ response = new MediaTailorServiceException_1.MediaTailorServiceException({
1926
+ name: parsedBody.code || parsedBody.Code || errorCode,
1927
+ $fault: "client",
1928
+ $metadata: deserializeMetadata(output),
1929
+ });
1930
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1931
+ }
1932
+ };
1636
1933
  const deserializeAws_restJson1DeletePlaybackConfigurationCommand = async (output, context) => {
1637
1934
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1638
1935
  return deserializeAws_restJson1DeletePlaybackConfigurationCommandError(output, context);
@@ -1798,6 +2095,7 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
1798
2095
  Outputs: undefined,
1799
2096
  PlaybackMode: undefined,
1800
2097
  Tags: undefined,
2098
+ Tier: undefined,
1801
2099
  };
1802
2100
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1803
2101
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1827,6 +2125,9 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
1827
2125
  if (data.tags !== undefined && data.tags !== null) {
1828
2126
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1829
2127
  }
2128
+ if (data.Tier !== undefined && data.Tier !== null) {
2129
+ contents.Tier = (0, smithy_client_1.expectString)(data.Tier);
2130
+ }
1830
2131
  return Promise.resolve(contents);
1831
2132
  };
1832
2133
  exports.deserializeAws_restJson1DescribeChannelCommand = deserializeAws_restJson1DescribeChannelCommand;
@@ -1849,6 +2150,64 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
1849
2150
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1850
2151
  }
1851
2152
  };
2153
+ const deserializeAws_restJson1DescribeLiveSourceCommand = async (output, context) => {
2154
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2155
+ return deserializeAws_restJson1DescribeLiveSourceCommandError(output, context);
2156
+ }
2157
+ const contents = {
2158
+ $metadata: deserializeMetadata(output),
2159
+ Arn: undefined,
2160
+ CreationTime: undefined,
2161
+ HttpPackageConfigurations: undefined,
2162
+ LastModifiedTime: undefined,
2163
+ LiveSourceName: undefined,
2164
+ SourceLocationName: undefined,
2165
+ Tags: undefined,
2166
+ };
2167
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2168
+ if (data.Arn !== undefined && data.Arn !== null) {
2169
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2170
+ }
2171
+ if (data.CreationTime !== undefined && data.CreationTime !== null) {
2172
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
2173
+ }
2174
+ if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
2175
+ contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
2176
+ }
2177
+ if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
2178
+ contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
2179
+ }
2180
+ if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
2181
+ contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
2182
+ }
2183
+ if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
2184
+ contents.SourceLocationName = (0, smithy_client_1.expectString)(data.SourceLocationName);
2185
+ }
2186
+ if (data.tags !== undefined && data.tags !== null) {
2187
+ contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2188
+ }
2189
+ return Promise.resolve(contents);
2190
+ };
2191
+ exports.deserializeAws_restJson1DescribeLiveSourceCommand = deserializeAws_restJson1DescribeLiveSourceCommand;
2192
+ const deserializeAws_restJson1DescribeLiveSourceCommandError = async (output, context) => {
2193
+ const parsedOutput = {
2194
+ ...output,
2195
+ body: await parseBody(output.body, context),
2196
+ };
2197
+ let response;
2198
+ let errorCode = "UnknownError";
2199
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2200
+ switch (errorCode) {
2201
+ default:
2202
+ const parsedBody = parsedOutput.body;
2203
+ response = new MediaTailorServiceException_1.MediaTailorServiceException({
2204
+ name: parsedBody.code || parsedBody.Code || errorCode,
2205
+ $fault: "client",
2206
+ $metadata: deserializeMetadata(output),
2207
+ });
2208
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2209
+ }
2210
+ };
1852
2211
  const deserializeAws_restJson1DescribeProgramCommand = async (output, context) => {
1853
2212
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1854
2213
  return deserializeAws_restJson1DescribeProgramCommandError(output, context);
@@ -1859,6 +2218,7 @@ const deserializeAws_restJson1DescribeProgramCommand = async (output, context) =
1859
2218
  Arn: undefined,
1860
2219
  ChannelName: undefined,
1861
2220
  CreationTime: undefined,
2221
+ LiveSourceName: undefined,
1862
2222
  ProgramName: undefined,
1863
2223
  ScheduledStartTime: undefined,
1864
2224
  SourceLocationName: undefined,
@@ -1877,6 +2237,9 @@ const deserializeAws_restJson1DescribeProgramCommand = async (output, context) =
1877
2237
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1878
2238
  contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
1879
2239
  }
2240
+ if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
2241
+ contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
2242
+ }
1880
2243
  if (data.ProgramName !== undefined && data.ProgramName !== null) {
1881
2244
  contents.ProgramName = (0, smithy_client_1.expectString)(data.ProgramName);
1882
2245
  }
@@ -2343,6 +2706,44 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
2343
2706
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2344
2707
  }
2345
2708
  };
2709
+ const deserializeAws_restJson1ListLiveSourcesCommand = async (output, context) => {
2710
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2711
+ return deserializeAws_restJson1ListLiveSourcesCommandError(output, context);
2712
+ }
2713
+ const contents = {
2714
+ $metadata: deserializeMetadata(output),
2715
+ Items: undefined,
2716
+ NextToken: undefined,
2717
+ };
2718
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2719
+ if (data.Items !== undefined && data.Items !== null) {
2720
+ contents.Items = deserializeAws_restJson1__listOfLiveSource(data.Items, context);
2721
+ }
2722
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2723
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2724
+ }
2725
+ return Promise.resolve(contents);
2726
+ };
2727
+ exports.deserializeAws_restJson1ListLiveSourcesCommand = deserializeAws_restJson1ListLiveSourcesCommand;
2728
+ const deserializeAws_restJson1ListLiveSourcesCommandError = async (output, context) => {
2729
+ const parsedOutput = {
2730
+ ...output,
2731
+ body: await parseBody(output.body, context),
2732
+ };
2733
+ let response;
2734
+ let errorCode = "UnknownError";
2735
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2736
+ switch (errorCode) {
2737
+ default:
2738
+ const parsedBody = parsedOutput.body;
2739
+ response = new MediaTailorServiceException_1.MediaTailorServiceException({
2740
+ name: parsedBody.code || parsedBody.Code || errorCode,
2741
+ $fault: "client",
2742
+ $metadata: deserializeMetadata(output),
2743
+ });
2744
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2745
+ }
2746
+ };
2346
2747
  const deserializeAws_restJson1ListPlaybackConfigurationsCommand = async (output, context) => {
2347
2748
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2348
2749
  return deserializeAws_restJson1ListPlaybackConfigurationsCommandError(output, context);
@@ -2809,6 +3210,7 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
2809
3210
  Outputs: undefined,
2810
3211
  PlaybackMode: undefined,
2811
3212
  Tags: undefined,
3213
+ Tier: undefined,
2812
3214
  };
2813
3215
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2814
3216
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -2838,6 +3240,9 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
2838
3240
  if (data.tags !== undefined && data.tags !== null) {
2839
3241
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2840
3242
  }
3243
+ if (data.Tier !== undefined && data.Tier !== null) {
3244
+ contents.Tier = (0, smithy_client_1.expectString)(data.Tier);
3245
+ }
2841
3246
  return Promise.resolve(contents);
2842
3247
  };
2843
3248
  exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1UpdateChannelCommand;
@@ -2860,6 +3265,64 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
2860
3265
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2861
3266
  }
2862
3267
  };
3268
+ const deserializeAws_restJson1UpdateLiveSourceCommand = async (output, context) => {
3269
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3270
+ return deserializeAws_restJson1UpdateLiveSourceCommandError(output, context);
3271
+ }
3272
+ const contents = {
3273
+ $metadata: deserializeMetadata(output),
3274
+ Arn: undefined,
3275
+ CreationTime: undefined,
3276
+ HttpPackageConfigurations: undefined,
3277
+ LastModifiedTime: undefined,
3278
+ LiveSourceName: undefined,
3279
+ SourceLocationName: undefined,
3280
+ Tags: undefined,
3281
+ };
3282
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3283
+ if (data.Arn !== undefined && data.Arn !== null) {
3284
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
3285
+ }
3286
+ if (data.CreationTime !== undefined && data.CreationTime !== null) {
3287
+ contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
3288
+ }
3289
+ if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
3290
+ contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
3291
+ }
3292
+ if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3293
+ contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
3294
+ }
3295
+ if (data.LiveSourceName !== undefined && data.LiveSourceName !== null) {
3296
+ contents.LiveSourceName = (0, smithy_client_1.expectString)(data.LiveSourceName);
3297
+ }
3298
+ if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
3299
+ contents.SourceLocationName = (0, smithy_client_1.expectString)(data.SourceLocationName);
3300
+ }
3301
+ if (data.tags !== undefined && data.tags !== null) {
3302
+ contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
3303
+ }
3304
+ return Promise.resolve(contents);
3305
+ };
3306
+ exports.deserializeAws_restJson1UpdateLiveSourceCommand = deserializeAws_restJson1UpdateLiveSourceCommand;
3307
+ const deserializeAws_restJson1UpdateLiveSourceCommandError = async (output, context) => {
3308
+ const parsedOutput = {
3309
+ ...output,
3310
+ body: await parseBody(output.body, context),
3311
+ };
3312
+ let response;
3313
+ let errorCode = "UnknownError";
3314
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3315
+ switch (errorCode) {
3316
+ default:
3317
+ const parsedBody = parsedOutput.body;
3318
+ response = new MediaTailorServiceException_1.MediaTailorServiceException({
3319
+ name: parsedBody.code || parsedBody.Code || errorCode,
3320
+ $fault: "client",
3321
+ $metadata: deserializeMetadata(output),
3322
+ });
3323
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3324
+ }
3325
+ };
2863
3326
  const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, context) => {
2864
3327
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2865
3328
  return deserializeAws_restJson1UpdateSourceLocationCommandError(output, context);
@@ -3258,6 +3721,8 @@ const serializeAws_restJson1SpliceInsertMessage = (input, context) => {
3258
3721
  };
3259
3722
  const serializeAws_restJson1Transition = (input, context) => {
3260
3723
  return {
3724
+ ...(input.DurationMillis !== undefined &&
3725
+ input.DurationMillis !== null && { DurationMillis: input.DurationMillis }),
3261
3726
  ...(input.RelativePosition !== undefined &&
3262
3727
  input.RelativePosition !== null && { RelativePosition: input.RelativePosition }),
3263
3728
  ...(input.RelativeProgram !== undefined &&
@@ -3322,6 +3787,17 @@ const deserializeAws_restJson1__listOfChannel = (output, context) => {
3322
3787
  });
3323
3788
  return retVal;
3324
3789
  };
3790
+ const deserializeAws_restJson1__listOfLiveSource = (output, context) => {
3791
+ const retVal = (output || [])
3792
+ .filter((e) => e != null)
3793
+ .map((entry) => {
3794
+ if (entry === null) {
3795
+ return null;
3796
+ }
3797
+ return deserializeAws_restJson1LiveSource(entry, context);
3798
+ });
3799
+ return retVal;
3800
+ };
3325
3801
  const deserializeAws_restJson1__listOfPlaybackConfiguration = (output, context) => {
3326
3802
  const retVal = (output || [])
3327
3803
  .filter((e) => e != null)
@@ -3494,6 +3970,7 @@ const deserializeAws_restJson1Channel = (output, context) => {
3494
3970
  Tags: output.tags !== undefined && output.tags !== null
3495
3971
  ? deserializeAws_restJson1__mapOf__string(output.tags, context)
3496
3972
  : undefined,
3973
+ Tier: (0, smithy_client_1.expectString)(output.Tier),
3497
3974
  };
3498
3975
  };
3499
3976
  const deserializeAws_restJson1ConfigurationAliasesResponse = (output, context) => {
@@ -3566,6 +4043,25 @@ const deserializeAws_restJson1LivePreRollConfiguration = (output, context) => {
3566
4043
  MaxDurationSeconds: (0, smithy_client_1.expectInt32)(output.MaxDurationSeconds),
3567
4044
  };
3568
4045
  };
4046
+ const deserializeAws_restJson1LiveSource = (output, context) => {
4047
+ return {
4048
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
4049
+ CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4050
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4051
+ : undefined,
4052
+ HttpPackageConfigurations: output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
4053
+ ? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
4054
+ : undefined,
4055
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4056
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4057
+ : undefined,
4058
+ LiveSourceName: (0, smithy_client_1.expectString)(output.LiveSourceName),
4059
+ SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
4060
+ Tags: output.tags !== undefined && output.tags !== null
4061
+ ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4062
+ : undefined,
4063
+ };
4064
+ };
3569
4065
  const deserializeAws_restJson1LogConfiguration = (output, context) => {
3570
4066
  return {
3571
4067
  PercentEnabled: (0, smithy_client_1.expectInt32)(output.PercentEnabled),
@@ -3703,6 +4199,7 @@ const deserializeAws_restJson1ScheduleEntry = (output, context) => {
3703
4199
  : undefined,
3704
4200
  Arn: (0, smithy_client_1.expectString)(output.Arn),
3705
4201
  ChannelName: (0, smithy_client_1.expectString)(output.ChannelName),
4202
+ LiveSourceName: (0, smithy_client_1.expectString)(output.LiveSourceName),
3706
4203
  ProgramName: (0, smithy_client_1.expectString)(output.ProgramName),
3707
4204
  ScheduleAdBreaks: output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
3708
4205
  ? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)