@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.
- package/dist-cjs/pagination/DescribeEnvironmentManagedActionHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPlatformBranchesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPlatformVersionsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_query.js +1495 -1212
- package/dist-es/pagination/DescribeEnvironmentManagedActionHistoryPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventsPaginator.js +2 -23
- package/dist-es/pagination/ListPlatformBranchesPaginator.js +2 -23
- package/dist-es/pagination/ListPlatformVersionsPaginator.js +2 -23
- package/dist-es/protocols/Aws_query.js +1495 -1212
- package/dist-types/pagination/DescribeEnvironmentManagedActionHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPlatformBranchesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPlatformVersionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeEnvironmentManagedActionHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPlatformBranchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPlatformVersionsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEnvironmentManagedActionHistoryCommand, } from "../commands/DescribeEnvironmentManagedActionHistoryCommand";
|
|
2
3
|
import { ElasticBeanstalkClient } from "../ElasticBeanstalkClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEnvironmentManagedActionHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEnvironmentManagedActionHistory(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["MaxItems"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ElasticBeanstalkClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
|
|
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 paginateDescribeEnvironmentManagedActionHistory = createPaginator(ElasticBeanstalkClient, DescribeEnvironmentManagedActionHistoryCommand, "NextToken", "NextToken", "MaxItems");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventsCommand, } from "../commands/DescribeEventsCommand";
|
|
2
3
|
import { ElasticBeanstalkClient } from "../ElasticBeanstalkClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEvents(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["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ElasticBeanstalkClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
|
|
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 paginateDescribeEvents = createPaginator(ElasticBeanstalkClient, DescribeEventsCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPlatformBranchesCommand, } from "../commands/ListPlatformBranchesCommand";
|
|
2
3
|
import { ElasticBeanstalkClient } from "../ElasticBeanstalkClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPlatformBranchesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPlatformBranches(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["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ElasticBeanstalkClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
|
|
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 paginateListPlatformBranches = createPaginator(ElasticBeanstalkClient, ListPlatformBranchesCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPlatformVersionsCommand, } from "../commands/ListPlatformVersionsCommand";
|
|
2
3
|
import { ElasticBeanstalkClient } from "../ElasticBeanstalkClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPlatformVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPlatformVersions(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["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ElasticBeanstalkClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ElasticBeanstalk | ElasticBeanstalkClient");
|
|
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 paginateListPlatformVersions = createPaginator(ElasticBeanstalkClient, ListPlatformVersionsCommand, "NextToken", "NextToken", "MaxRecords");
|