@aws-sdk/client-mediaconvert 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.
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeEndpoints = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeEndpointsCommand_1 = require("../commands/DescribeEndpointsCommand");
5
6
  const MediaConvertClient_1 = require("../MediaConvertClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeEndpointsCommand_1.DescribeEndpointsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeEndpoints(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 MediaConvertClient_1.MediaConvertClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConvert | MediaConvertClient");
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.paginateDescribeEndpoints = paginateDescribeEndpoints;
7
+ exports.paginateDescribeEndpoints = (0, core_1.createPaginator)(MediaConvertClient_1.MediaConvertClient, DescribeEndpointsCommand_1.DescribeEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListJobTemplates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListJobTemplatesCommand_1 = require("../commands/ListJobTemplatesCommand");
5
6
  const MediaConvertClient_1 = require("../MediaConvertClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListJobTemplatesCommand_1.ListJobTemplatesCommand(input), ...args);
8
- };
9
- async function* paginateListJobTemplates(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 MediaConvertClient_1.MediaConvertClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConvert | MediaConvertClient");
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.paginateListJobTemplates = paginateListJobTemplates;
7
+ exports.paginateListJobTemplates = (0, core_1.createPaginator)(MediaConvertClient_1.MediaConvertClient, ListJobTemplatesCommand_1.ListJobTemplatesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListJobsCommand_1 = require("../commands/ListJobsCommand");
5
6
  const MediaConvertClient_1 = require("../MediaConvertClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListJobsCommand_1.ListJobsCommand(input), ...args);
8
- };
9
- async function* paginateListJobs(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 MediaConvertClient_1.MediaConvertClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConvert | MediaConvertClient");
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.paginateListJobs = paginateListJobs;
7
+ exports.paginateListJobs = (0, core_1.createPaginator)(MediaConvertClient_1.MediaConvertClient, ListJobsCommand_1.ListJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPresets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPresetsCommand_1 = require("../commands/ListPresetsCommand");
5
6
  const MediaConvertClient_1 = require("../MediaConvertClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPresetsCommand_1.ListPresetsCommand(input), ...args);
8
- };
9
- async function* paginateListPresets(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 MediaConvertClient_1.MediaConvertClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConvert | MediaConvertClient");
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.paginateListPresets = paginateListPresets;
7
+ exports.paginateListPresets = (0, core_1.createPaginator)(MediaConvertClient_1.MediaConvertClient, ListPresetsCommand_1.ListPresetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListQueues = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListQueuesCommand_1 = require("../commands/ListQueuesCommand");
5
6
  const MediaConvertClient_1 = require("../MediaConvertClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListQueuesCommand_1.ListQueuesCommand(input), ...args);
8
- };
9
- async function* paginateListQueues(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 MediaConvertClient_1.MediaConvertClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConvert | MediaConvertClient");
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.paginateListQueues = paginateListQueues;
7
+ exports.paginateListQueues = (0, core_1.createPaginator)(MediaConvertClient_1.MediaConvertClient, ListQueuesCommand_1.ListQueuesCommand, "NextToken", "NextToken", "MaxResults");