@aws-sdk/client-medialive 3.477.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 (41) hide show
  1. package/dist-cjs/pagination/DescribeSchedulePaginator.js +2 -24
  2. package/dist-cjs/pagination/ListChannelsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListInputDeviceTransfersPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListInputDevicesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListInputSecurityGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListInputsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListMultiplexProgramsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListMultiplexesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListOfferingsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListReservationsPaginator.js +2 -24
  11. package/dist-es/pagination/DescribeSchedulePaginator.js +2 -23
  12. package/dist-es/pagination/ListChannelsPaginator.js +2 -23
  13. package/dist-es/pagination/ListInputDeviceTransfersPaginator.js +2 -23
  14. package/dist-es/pagination/ListInputDevicesPaginator.js +2 -23
  15. package/dist-es/pagination/ListInputSecurityGroupsPaginator.js +2 -23
  16. package/dist-es/pagination/ListInputsPaginator.js +2 -23
  17. package/dist-es/pagination/ListMultiplexProgramsPaginator.js +2 -23
  18. package/dist-es/pagination/ListMultiplexesPaginator.js +2 -23
  19. package/dist-es/pagination/ListOfferingsPaginator.js +2 -23
  20. package/dist-es/pagination/ListReservationsPaginator.js +2 -23
  21. package/dist-types/pagination/DescribeSchedulePaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListInputDeviceTransfersPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListInputDevicesPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListInputSecurityGroupsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListInputsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListMultiplexProgramsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListMultiplexesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListOfferingsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListReservationsPaginator.d.ts +1 -1
  31. package/dist-types/ts3.4/pagination/DescribeSchedulePaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListInputDeviceTransfersPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListInputDevicesPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListInputSecurityGroupsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListInputsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListMultiplexProgramsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListMultiplexesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListOfferingsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListReservationsPaginator.d.ts +3 -3
  41. package/package.json +5 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeSchedule = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeScheduleCommand_1 = require("../commands/DescribeScheduleCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeScheduleCommand_1.DescribeScheduleCommand(input), ...args);
8
- };
9
- async function* paginateDescribeSchedule(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateDescribeSchedule = paginateDescribeSchedule;
7
+ exports.paginateDescribeSchedule = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, DescribeScheduleCommand_1.DescribeScheduleCommand, "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 MediaLiveClient_1 = require("../MediaLiveClient");
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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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)(MediaLiveClient_1.MediaLiveClient, 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.paginateListInputDeviceTransfers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInputDeviceTransfersCommand_1 = require("../commands/ListInputDeviceTransfersCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInputDeviceTransfersCommand_1.ListInputDeviceTransfersCommand(input), ...args);
8
- };
9
- async function* paginateListInputDeviceTransfers(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListInputDeviceTransfers = paginateListInputDeviceTransfers;
7
+ exports.paginateListInputDeviceTransfers = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListInputDeviceTransfersCommand_1.ListInputDeviceTransfersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInputDevices = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInputDevicesCommand_1 = require("../commands/ListInputDevicesCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInputDevicesCommand_1.ListInputDevicesCommand(input), ...args);
8
- };
9
- async function* paginateListInputDevices(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListInputDevices = paginateListInputDevices;
7
+ exports.paginateListInputDevices = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListInputDevicesCommand_1.ListInputDevicesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInputSecurityGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInputSecurityGroupsCommand_1 = require("../commands/ListInputSecurityGroupsCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInputSecurityGroupsCommand_1.ListInputSecurityGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListInputSecurityGroups(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListInputSecurityGroups = paginateListInputSecurityGroups;
7
+ exports.paginateListInputSecurityGroups = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListInputSecurityGroupsCommand_1.ListInputSecurityGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInputs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInputsCommand_1 = require("../commands/ListInputsCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInputsCommand_1.ListInputsCommand(input), ...args);
8
- };
9
- async function* paginateListInputs(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListInputs = paginateListInputs;
7
+ exports.paginateListInputs = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListInputsCommand_1.ListInputsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMultiplexPrograms = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMultiplexProgramsCommand_1 = require("../commands/ListMultiplexProgramsCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMultiplexProgramsCommand_1.ListMultiplexProgramsCommand(input), ...args);
8
- };
9
- async function* paginateListMultiplexPrograms(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListMultiplexPrograms = paginateListMultiplexPrograms;
7
+ exports.paginateListMultiplexPrograms = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListMultiplexProgramsCommand_1.ListMultiplexProgramsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMultiplexes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMultiplexesCommand_1 = require("../commands/ListMultiplexesCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMultiplexesCommand_1.ListMultiplexesCommand(input), ...args);
8
- };
9
- async function* paginateListMultiplexes(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListMultiplexes = paginateListMultiplexes;
7
+ exports.paginateListMultiplexes = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListMultiplexesCommand_1.ListMultiplexesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOfferings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListOfferingsCommand_1 = require("../commands/ListOfferingsCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListOfferingsCommand_1.ListOfferingsCommand(input), ...args);
8
- };
9
- async function* paginateListOfferings(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListOfferings = paginateListOfferings;
7
+ exports.paginateListOfferings = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListOfferingsCommand_1.ListOfferingsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListReservations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListReservationsCommand_1 = require("../commands/ListReservationsCommand");
5
6
  const MediaLiveClient_1 = require("../MediaLiveClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListReservationsCommand_1.ListReservationsCommand(input), ...args);
8
- };
9
- async function* paginateListReservations(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 MediaLiveClient_1.MediaLiveClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
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.paginateListReservations = paginateListReservations;
7
+ exports.paginateListReservations = (0, core_1.createPaginator)(MediaLiveClient_1.MediaLiveClient, ListReservationsCommand_1.ListReservationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeScheduleCommand, } from "../commands/DescribeScheduleCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeScheduleCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeSchedule(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeSchedule = createPaginator(MediaLiveClient, DescribeScheduleCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListChannelsCommand(input), ...args);
5
- };
6
- export async function* paginateListChannels(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListChannels = createPaginator(MediaLiveClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListInputDeviceTransfersCommand, } from "../commands/ListInputDeviceTransfersCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListInputDeviceTransfersCommand(input), ...args);
5
- };
6
- export async function* paginateListInputDeviceTransfers(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListInputDeviceTransfers = createPaginator(MediaLiveClient, ListInputDeviceTransfersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListInputDevicesCommand, } from "../commands/ListInputDevicesCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListInputDevicesCommand(input), ...args);
5
- };
6
- export async function* paginateListInputDevices(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListInputDevices = createPaginator(MediaLiveClient, ListInputDevicesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListInputSecurityGroupsCommand, } from "../commands/ListInputSecurityGroupsCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListInputSecurityGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListInputSecurityGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListInputSecurityGroups = createPaginator(MediaLiveClient, ListInputSecurityGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListInputsCommand } from "../commands/ListInputsCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListInputsCommand(input), ...args);
5
- };
6
- export async function* paginateListInputs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListInputs = createPaginator(MediaLiveClient, ListInputsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMultiplexProgramsCommand, } from "../commands/ListMultiplexProgramsCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMultiplexProgramsCommand(input), ...args);
5
- };
6
- export async function* paginateListMultiplexPrograms(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListMultiplexPrograms = createPaginator(MediaLiveClient, ListMultiplexProgramsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListMultiplexesCommand, } from "../commands/ListMultiplexesCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListMultiplexesCommand(input), ...args);
5
- };
6
- export async function* paginateListMultiplexes(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListMultiplexes = createPaginator(MediaLiveClient, ListMultiplexesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListOfferingsCommand, } from "../commands/ListOfferingsCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListOfferingsCommand(input), ...args);
5
- };
6
- export async function* paginateListOfferings(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListOfferings = createPaginator(MediaLiveClient, ListOfferingsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListReservationsCommand, } from "../commands/ListReservationsCommand";
2
3
  import { MediaLiveClient } from "../MediaLiveClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListReservationsCommand(input), ...args);
5
- };
6
- export async function* paginateListReservations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaLiveClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaLive | MediaLiveClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListReservations = createPaginator(MediaLiveClient, ListReservationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateDescribeSchedule(config: MediaLivePaginationConfiguration, input: DescribeScheduleCommandInput, ...additionalArguments: any): Paginator<DescribeScheduleCommandOutput>;
7
+ export declare const paginateDescribeSchedule: (config: MediaLivePaginationConfiguration, input: DescribeScheduleCommandInput, ...rest: any[]) => Paginator<DescribeScheduleCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListChannels(config: MediaLivePaginationConfiguration, input: ListChannelsCommandInput, ...additionalArguments: any): Paginator<ListChannelsCommandOutput>;
7
+ export declare const paginateListChannels: (config: MediaLivePaginationConfiguration, input: ListChannelsCommandInput, ...rest: any[]) => Paginator<ListChannelsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListInputDeviceTransfers(config: MediaLivePaginationConfiguration, input: ListInputDeviceTransfersCommandInput, ...additionalArguments: any): Paginator<ListInputDeviceTransfersCommandOutput>;
7
+ export declare const paginateListInputDeviceTransfers: (config: MediaLivePaginationConfiguration, input: ListInputDeviceTransfersCommandInput, ...rest: any[]) => Paginator<ListInputDeviceTransfersCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListInputDevices(config: MediaLivePaginationConfiguration, input: ListInputDevicesCommandInput, ...additionalArguments: any): Paginator<ListInputDevicesCommandOutput>;
7
+ export declare const paginateListInputDevices: (config: MediaLivePaginationConfiguration, input: ListInputDevicesCommandInput, ...rest: any[]) => Paginator<ListInputDevicesCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListInputSecurityGroups(config: MediaLivePaginationConfiguration, input: ListInputSecurityGroupsCommandInput, ...additionalArguments: any): Paginator<ListInputSecurityGroupsCommandOutput>;
7
+ export declare const paginateListInputSecurityGroups: (config: MediaLivePaginationConfiguration, input: ListInputSecurityGroupsCommandInput, ...rest: any[]) => Paginator<ListInputSecurityGroupsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListInputs(config: MediaLivePaginationConfiguration, input: ListInputsCommandInput, ...additionalArguments: any): Paginator<ListInputsCommandOutput>;
7
+ export declare const paginateListInputs: (config: MediaLivePaginationConfiguration, input: ListInputsCommandInput, ...rest: any[]) => Paginator<ListInputsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListMultiplexPrograms(config: MediaLivePaginationConfiguration, input: ListMultiplexProgramsCommandInput, ...additionalArguments: any): Paginator<ListMultiplexProgramsCommandOutput>;
7
+ export declare const paginateListMultiplexPrograms: (config: MediaLivePaginationConfiguration, input: ListMultiplexProgramsCommandInput, ...rest: any[]) => Paginator<ListMultiplexProgramsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListMultiplexes(config: MediaLivePaginationConfiguration, input: ListMultiplexesCommandInput, ...additionalArguments: any): Paginator<ListMultiplexesCommandOutput>;
7
+ export declare const paginateListMultiplexes: (config: MediaLivePaginationConfiguration, input: ListMultiplexesCommandInput, ...rest: any[]) => Paginator<ListMultiplexesCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListOfferings(config: MediaLivePaginationConfiguration, input: ListOfferingsCommandInput, ...additionalArguments: any): Paginator<ListOfferingsCommandOutput>;
7
+ export declare const paginateListOfferings: (config: MediaLivePaginationConfiguration, input: ListOfferingsCommandInput, ...rest: any[]) => Paginator<ListOfferingsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaLivePaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListReservations(config: MediaLivePaginationConfiguration, input: ListReservationsCommandInput, ...additionalArguments: any): Paginator<ListReservationsCommandOutput>;
7
+ export declare const paginateListReservations: (config: MediaLivePaginationConfiguration, input: ListReservationsCommandInput, ...rest: any[]) => Paginator<ListReservationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  DescribeScheduleCommandOutput,
5
5
  } from "../commands/DescribeScheduleCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateDescribeSchedule(
7
+ export declare const paginateDescribeSchedule: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: DescribeScheduleCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<DescribeScheduleCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<DescribeScheduleCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListChannelsCommandOutput,
5
5
  } from "../commands/ListChannelsCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListChannels(
7
+ export declare const paginateListChannels: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListChannelsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListChannelsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListChannelsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListInputDeviceTransfersCommandOutput,
5
5
  } from "../commands/ListInputDeviceTransfersCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListInputDeviceTransfers(
7
+ export declare const paginateListInputDeviceTransfers: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListInputDeviceTransfersCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListInputDeviceTransfersCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListInputDeviceTransfersCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListInputDevicesCommandOutput,
5
5
  } from "../commands/ListInputDevicesCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListInputDevices(
7
+ export declare const paginateListInputDevices: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListInputDevicesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListInputDevicesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListInputDevicesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListInputSecurityGroupsCommandOutput,
5
5
  } from "../commands/ListInputSecurityGroupsCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListInputSecurityGroups(
7
+ export declare const paginateListInputSecurityGroups: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListInputSecurityGroupsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListInputSecurityGroupsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListInputSecurityGroupsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListInputsCommandOutput,
5
5
  } from "../commands/ListInputsCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListInputs(
7
+ export declare const paginateListInputs: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListInputsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListInputsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListInputsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListMultiplexProgramsCommandOutput,
5
5
  } from "../commands/ListMultiplexProgramsCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListMultiplexPrograms(
7
+ export declare const paginateListMultiplexPrograms: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListMultiplexProgramsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListMultiplexProgramsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListMultiplexProgramsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListMultiplexesCommandOutput,
5
5
  } from "../commands/ListMultiplexesCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListMultiplexes(
7
+ export declare const paginateListMultiplexes: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListMultiplexesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListMultiplexesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListMultiplexesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListOfferingsCommandOutput,
5
5
  } from "../commands/ListOfferingsCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListOfferings(
7
+ export declare const paginateListOfferings: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListOfferingsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListOfferingsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListOfferingsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListReservationsCommandOutput,
5
5
  } from "../commands/ListReservationsCommand";
6
6
  import { MediaLivePaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListReservations(
7
+ export declare const paginateListReservations: (
8
8
  config: MediaLivePaginationConfiguration,
9
9
  input: ListReservationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListReservationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListReservationsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-medialive",
3
3
  "description": "AWS SDK for JavaScript Medialive Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",