@aws-sdk/client-emr-containers 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/ListJobRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListManagedEndpointsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualClustersPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +137 -305
- package/dist-es/pagination/ListJobRunsPaginator.js +2 -23
- package/dist-es/pagination/ListJobTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListManagedEndpointsPaginator.js +2 -23
- package/dist-es/pagination/ListVirtualClustersPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +138 -306
- package/dist-types/pagination/ListJobRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedEndpointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualClustersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListJobRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedEndpointsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualClustersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobTemplatesCommand, } from "../commands/ListJobTemplatesCommand";
|
|
2
3
|
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobTemplates(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["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof EMRContainersClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
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 paginateListJobTemplates = createPaginator(EMRContainersClient, ListJobTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListManagedEndpointsCommand, } from "../commands/ListManagedEndpointsCommand";
|
|
2
3
|
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListManagedEndpointsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListManagedEndpoints(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["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof EMRContainersClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
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 paginateListManagedEndpoints = createPaginator(EMRContainersClient, ListManagedEndpointsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListVirtualClustersCommand, } from "../commands/ListVirtualClustersCommand";
|
|
2
3
|
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListVirtualClustersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListVirtualClusters(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["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof EMRContainersClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
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 paginateListVirtualClusters = createPaginator(EMRContainersClient, ListVirtualClustersCommand, "nextToken", "nextToken", "maxResults");
|