@aws-sdk/client-elastic-beanstalk 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.paginateDescribeEnvironmentManagedActionHistory = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeEnvironmentManagedActionHistoryCommand_1 = require("../commands/DescribeEnvironmentManagedActionHistoryCommand");
5
6
  const ElasticBeanstalkClient_1 = require("../ElasticBeanstalkClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeEnvironmentManagedActionHistoryCommand_1.DescribeEnvironmentManagedActionHistoryCommand(input), ...args);
8
- };
9
- async function* paginateDescribeEnvironmentManagedActionHistory(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["MaxItems"] = config.pageSize;
16
- if (config.client instanceof ElasticBeanstalkClient_1.ElasticBeanstalkClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
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.paginateDescribeEnvironmentManagedActionHistory = paginateDescribeEnvironmentManagedActionHistory;
7
+ exports.paginateDescribeEnvironmentManagedActionHistory = (0, core_1.createPaginator)(ElasticBeanstalkClient_1.ElasticBeanstalkClient, DescribeEnvironmentManagedActionHistoryCommand_1.DescribeEnvironmentManagedActionHistoryCommand, "NextToken", "NextToken", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeEvents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeEventsCommand_1 = require("../commands/DescribeEventsCommand");
5
6
  const ElasticBeanstalkClient_1 = require("../ElasticBeanstalkClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeEventsCommand_1.DescribeEventsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeEvents(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof ElasticBeanstalkClient_1.ElasticBeanstalkClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
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.paginateDescribeEvents = paginateDescribeEvents;
7
+ exports.paginateDescribeEvents = (0, core_1.createPaginator)(ElasticBeanstalkClient_1.ElasticBeanstalkClient, DescribeEventsCommand_1.DescribeEventsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPlatformBranches = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPlatformBranchesCommand_1 = require("../commands/ListPlatformBranchesCommand");
5
6
  const ElasticBeanstalkClient_1 = require("../ElasticBeanstalkClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPlatformBranchesCommand_1.ListPlatformBranchesCommand(input), ...args);
8
- };
9
- async function* paginateListPlatformBranches(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof ElasticBeanstalkClient_1.ElasticBeanstalkClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
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.paginateListPlatformBranches = paginateListPlatformBranches;
7
+ exports.paginateListPlatformBranches = (0, core_1.createPaginator)(ElasticBeanstalkClient_1.ElasticBeanstalkClient, ListPlatformBranchesCommand_1.ListPlatformBranchesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPlatformVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPlatformVersionsCommand_1 = require("../commands/ListPlatformVersionsCommand");
5
6
  const ElasticBeanstalkClient_1 = require("../ElasticBeanstalkClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPlatformVersionsCommand_1.ListPlatformVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListPlatformVersions(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof ElasticBeanstalkClient_1.ElasticBeanstalkClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
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.paginateListPlatformVersions = paginateListPlatformVersions;
7
+ exports.paginateListPlatformVersions = (0, core_1.createPaginator)(ElasticBeanstalkClient_1.ElasticBeanstalkClient, ListPlatformVersionsCommand_1.ListPlatformVersionsCommand, "NextToken", "NextToken", "MaxRecords");