@aws-sdk/client-elastic-load-balancing 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/DescribeLoadBalancersPaginator.js +2 -23
- package/dist-cjs/protocols/Aws_query.js +661 -556
- package/dist-es/pagination/DescribeLoadBalancersPaginator.js +2 -22
- package/dist-es/protocols/Aws_query.js +661 -556
- package/dist-types/pagination/DescribeLoadBalancersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeLoadBalancersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeLoadBalancersCommand, } from "../commands/DescribeLoadBalancersCommand";
|
|
2
3
|
import { ElasticLoadBalancingClient } from "../ElasticLoadBalancingClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeLoadBalancersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeLoadBalancers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.Marker = token;
|
|
12
|
-
if (config.client instanceof ElasticLoadBalancingClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected ElasticLoadBalancing | ElasticLoadBalancingClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextMarker;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateDescribeLoadBalancers = createPaginator(ElasticLoadBalancingClient, DescribeLoadBalancersCommand, "Marker", "NextMarker", "");
|