@aws-sdk/client-mediatailor 3.476.0 → 3.478.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 (40) hide show
  1. package/dist-cjs/pagination/GetChannelSchedulePaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAlertsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListLiveSourcesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListPrefetchSchedulesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListSourceLocationsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListVodSourcesPaginator.js +2 -24
  9. package/dist-cjs/protocols/Aws_restJson1.js +262 -581
  10. package/dist-es/pagination/GetChannelSchedulePaginator.js +2 -23
  11. package/dist-es/pagination/ListAlertsPaginator.js +2 -23
  12. package/dist-es/pagination/ListChannelsPaginator.js +2 -23
  13. package/dist-es/pagination/ListLiveSourcesPaginator.js +2 -23
  14. package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +2 -23
  15. package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +2 -23
  16. package/dist-es/pagination/ListSourceLocationsPaginator.js +2 -23
  17. package/dist-es/pagination/ListVodSourcesPaginator.js +2 -23
  18. package/dist-es/protocols/Aws_restJson1.js +263 -582
  19. package/dist-types/commands/CreateChannelCommand.d.ts +6 -0
  20. package/dist-types/commands/DescribeChannelCommand.d.ts +3 -0
  21. package/dist-types/commands/UpdateChannelCommand.d.ts +6 -0
  22. package/dist-types/models/models_0.d.ts +51 -0
  23. package/dist-types/pagination/GetChannelSchedulePaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListAlertsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListLiveSourcesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListPrefetchSchedulesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListSourceLocationsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListVodSourcesPaginator.d.ts +1 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +8 -0
  32. package/dist-types/ts3.4/pagination/GetChannelSchedulePaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListAlertsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListLiveSourcesPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListPlaybackConfigurationsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListPrefetchSchedulesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListSourceLocationsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListVodSourcesPaginator.d.ts +3 -3
  40. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetChannelSchedule = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetChannelScheduleCommand_1 = require("../commands/GetChannelScheduleCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetChannelScheduleCommand_1.GetChannelScheduleCommand(input), ...args);
8
- };
9
- async function* paginateGetChannelSchedule(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetChannelSchedule = paginateGetChannelSchedule;
7
+ exports.paginateGetChannelSchedule = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, GetChannelScheduleCommand_1.GetChannelScheduleCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAlerts = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAlertsCommand_1 = require("../commands/ListAlertsCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAlertsCommand_1.ListAlertsCommand(input), ...args);
8
- };
9
- async function* paginateListAlerts(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAlerts = paginateListAlerts;
7
+ exports.paginateListAlerts = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListAlertsCommand_1.ListAlertsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
8
- };
9
- async function* paginateListChannels(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListChannels = paginateListChannels;
7
+ exports.paginateListChannels = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListChannelsCommand_1.ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListLiveSources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListLiveSourcesCommand_1 = require("../commands/ListLiveSourcesCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListLiveSourcesCommand_1.ListLiveSourcesCommand(input), ...args);
8
- };
9
- async function* paginateListLiveSources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListLiveSources = paginateListLiveSources;
7
+ exports.paginateListLiveSources = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListLiveSourcesCommand_1.ListLiveSourcesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPlaybackConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPlaybackConfigurationsCommand_1 = require("../commands/ListPlaybackConfigurationsCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPlaybackConfigurationsCommand_1.ListPlaybackConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateListPlaybackConfigurations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPlaybackConfigurations = paginateListPlaybackConfigurations;
7
+ exports.paginateListPlaybackConfigurations = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListPlaybackConfigurationsCommand_1.ListPlaybackConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPrefetchSchedules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPrefetchSchedulesCommand_1 = require("../commands/ListPrefetchSchedulesCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPrefetchSchedulesCommand_1.ListPrefetchSchedulesCommand(input), ...args);
8
- };
9
- async function* paginateListPrefetchSchedules(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPrefetchSchedules = paginateListPrefetchSchedules;
7
+ exports.paginateListPrefetchSchedules = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListPrefetchSchedulesCommand_1.ListPrefetchSchedulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSourceLocations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSourceLocationsCommand_1 = require("../commands/ListSourceLocationsCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSourceLocationsCommand_1.ListSourceLocationsCommand(input), ...args);
8
- };
9
- async function* paginateListSourceLocations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSourceLocations = paginateListSourceLocations;
7
+ exports.paginateListSourceLocations = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListSourceLocationsCommand_1.ListSourceLocationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListVodSources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListVodSourcesCommand_1 = require("../commands/ListVodSourcesCommand");
5
6
  const MediaTailorClient_1 = require("../MediaTailorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListVodSourcesCommand_1.ListVodSourcesCommand(input), ...args);
8
- };
9
- async function* paginateListVodSources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaTailorClient_1.MediaTailorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaTailor | MediaTailorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListVodSources = paginateListVodSources;
7
+ exports.paginateListVodSources = (0, core_1.createPaginator)(MediaTailorClient_1.MediaTailorClient, ListVodSourcesCommand_1.ListVodSourcesCommand, "NextToken", "NextToken", "MaxResults");