@aws-sdk/client-medialive 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 (43) 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-cjs/protocols/Aws_restJson1.js +396 -829
  12. package/dist-es/pagination/DescribeSchedulePaginator.js +2 -23
  13. package/dist-es/pagination/ListChannelsPaginator.js +2 -23
  14. package/dist-es/pagination/ListInputDeviceTransfersPaginator.js +2 -23
  15. package/dist-es/pagination/ListInputDevicesPaginator.js +2 -23
  16. package/dist-es/pagination/ListInputSecurityGroupsPaginator.js +2 -23
  17. package/dist-es/pagination/ListInputsPaginator.js +2 -23
  18. package/dist-es/pagination/ListMultiplexProgramsPaginator.js +2 -23
  19. package/dist-es/pagination/ListMultiplexesPaginator.js +2 -23
  20. package/dist-es/pagination/ListOfferingsPaginator.js +2 -23
  21. package/dist-es/pagination/ListReservationsPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +397 -830
  23. package/dist-types/pagination/DescribeSchedulePaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListChannelsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListInputDeviceTransfersPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListInputDevicesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListInputSecurityGroupsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListInputsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListMultiplexProgramsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListMultiplexesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListOfferingsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListReservationsPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/DescribeSchedulePaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListInputDeviceTransfersPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListInputDevicesPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListInputSecurityGroupsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListInputsPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListMultiplexProgramsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListMultiplexesPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListOfferingsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListReservationsPaginator.d.ts +3 -3
  43. package/package.json +7 -6
@@ -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");