@aws-sdk/client-emr-containers 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/EMRContainers.js +1 -26
- package/dist-cjs/EMRContainersClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CancelJobRunCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateManagedEndpointCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateVirtualClusterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteManagedEndpointCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteVirtualClusterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeJobRunCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeManagedEndpointCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeVirtualClusterCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListJobRunsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListManagedEndpointsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListVirtualClustersCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StartJobRunCommand.js +2 -27
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -139
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListJobRunsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListManagedEndpointsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListVirtualClustersPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +3 -9
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/EMRContainers.js +1 -2
- package/{dist/es → dist-es}/EMRContainersClient.js +1 -2
- package/{dist/es → dist-es}/commands/CancelJobRunCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateManagedEndpointCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateVirtualClusterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteManagedEndpointCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteVirtualClusterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeJobRunCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeManagedEndpointCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeVirtualClusterCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListJobRunsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListManagedEndpointsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListVirtualClustersCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartJobRunCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListJobRunsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListManagedEndpointsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListVirtualClustersPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/EMRContainers.d.ts +2 -2
- package/{dist/types → dist-types}/EMRContainersClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CancelJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateManagedEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateVirtualClusterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteManagedEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteVirtualClusterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeManagedEndpointCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeVirtualClusterCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListJobRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListManagedEndpointsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListVirtualClustersCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartJobRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListJobRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListManagedEndpointsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListVirtualClustersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/EMRContainers.d.ts +18 -71
- package/{dist/types → dist-types}/ts3.4/EMRContainersClient.d.ts +32 -118
- package/dist-types/ts3.4/commands/CancelJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateManagedEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateVirtualClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteManagedEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteVirtualClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeManagedEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeVirtualClusterCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListJobRunsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListManagedEndpointsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListVirtualClustersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +655 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListJobRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListManagedEndpointsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListVirtualClustersPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/EMRContainers.ts +0 -550
- package/EMRContainersClient.ts +0 -328
- package/commands/CancelJobRunCommand.ts +0 -94
- package/commands/CreateManagedEndpointCommand.ts +0 -94
- package/commands/CreateVirtualClusterCommand.ts +0 -94
- package/commands/DeleteManagedEndpointCommand.ts +0 -94
- package/commands/DeleteVirtualClusterCommand.ts +0 -94
- package/commands/DescribeJobRunCommand.ts +0 -94
- package/commands/DescribeManagedEndpointCommand.ts +0 -94
- package/commands/DescribeVirtualClusterCommand.ts +0 -94
- package/commands/ListJobRunsCommand.ts +0 -94
- package/commands/ListManagedEndpointsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/ListVirtualClustersCommand.ts +0 -94
- package/commands/StartJobRunCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/dist/cjs/EMRContainers.js.map +0 -1
- package/dist/cjs/EMRContainersClient.js +0 -65
- package/dist/cjs/EMRContainersClient.js.map +0 -1
- package/dist/cjs/commands/CancelJobRunCommand.js.map +0 -1
- package/dist/cjs/commands/CreateManagedEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/CreateVirtualClusterCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteManagedEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteVirtualClusterCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeJobRunCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeManagedEndpointCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeVirtualClusterCommand.js.map +0 -1
- package/dist/cjs/commands/ListJobRunsCommand.js.map +0 -1
- package/dist/cjs/commands/ListManagedEndpointsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ListVirtualClustersCommand.js.map +0 -1
- package/dist/cjs/commands/StartJobRunCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js +0 -61
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListJobRunsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListManagedEndpointsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListVirtualClustersPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/EMRContainers.js.map +0 -1
- package/dist/es/EMRContainersClient.js.map +0 -1
- package/dist/es/commands/CancelJobRunCommand.js.map +0 -1
- package/dist/es/commands/CreateManagedEndpointCommand.js.map +0 -1
- package/dist/es/commands/CreateVirtualClusterCommand.js.map +0 -1
- package/dist/es/commands/DeleteManagedEndpointCommand.js.map +0 -1
- package/dist/es/commands/DeleteVirtualClusterCommand.js.map +0 -1
- package/dist/es/commands/DescribeJobRunCommand.js.map +0 -1
- package/dist/es/commands/DescribeManagedEndpointCommand.js.map +0 -1
- package/dist/es/commands/DescribeVirtualClusterCommand.js.map +0 -1
- package/dist/es/commands/ListJobRunsCommand.js.map +0 -1
- package/dist/es/commands/ListManagedEndpointsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ListVirtualClustersCommand.js.map +0 -1
- package/dist/es/commands/StartJobRunCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -23
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListJobRunsPaginator.js.map +0 -1
- package/dist/es/pagination/ListManagedEndpointsPaginator.js.map +0 -1
- package/dist/es/pagination/ListVirtualClustersPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/CancelJobRunCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/CreateManagedEndpointCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/CreateVirtualClusterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteManagedEndpointCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteVirtualClusterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeJobRunCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeManagedEndpointCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeVirtualClusterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListJobRunsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListManagedEndpointsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListVirtualClustersCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/StartJobRunCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1073
- package/endpoints.ts +0 -83
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1388
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListJobRunsPaginator.ts +0 -54
- package/pagination/ListManagedEndpointsPaginator.ts +0 -58
- package/pagination/ListVirtualClustersPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -2264
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EMRContainers } from "../EMRContainers";
|
|
2
|
-
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface EMRContainersPaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: EMRContainers | EMRContainersClient;
|
|
7
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { EMRContainers } from "../EMRContainers";
|
|
2
|
-
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
import { ListJobRunsCommand, ListJobRunsCommandInput, ListJobRunsCommandOutput } from "../commands/ListJobRunsCommand";
|
|
4
|
-
import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
5
|
-
import { Paginator } from "@aws-sdk/types";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
const makePagedClientRequest = async (
|
|
11
|
-
client: EMRContainersClient,
|
|
12
|
-
input: ListJobRunsCommandInput,
|
|
13
|
-
...args: any
|
|
14
|
-
): Promise<ListJobRunsCommandOutput> => {
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
return await client.send(new ListJobRunsCommand(input), ...args);
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* @private
|
|
20
|
-
*/
|
|
21
|
-
const makePagedRequest = async (
|
|
22
|
-
client: EMRContainers,
|
|
23
|
-
input: ListJobRunsCommandInput,
|
|
24
|
-
...args: any
|
|
25
|
-
): Promise<ListJobRunsCommandOutput> => {
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
return await client.listJobRuns(input, ...args);
|
|
28
|
-
};
|
|
29
|
-
export async function* paginateListJobRuns(
|
|
30
|
-
config: EMRContainersPaginationConfiguration,
|
|
31
|
-
input: ListJobRunsCommandInput,
|
|
32
|
-
...additionalArguments: any
|
|
33
|
-
): Paginator<ListJobRunsCommandOutput> {
|
|
34
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
35
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
36
|
-
let hasNext = true;
|
|
37
|
-
let page: ListJobRunsCommandOutput;
|
|
38
|
-
while (hasNext) {
|
|
39
|
-
input.nextToken = token;
|
|
40
|
-
input["maxResults"] = config.pageSize;
|
|
41
|
-
if (config.client instanceof EMRContainers) {
|
|
42
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
43
|
-
} else if (config.client instanceof EMRContainersClient) {
|
|
44
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
45
|
-
} else {
|
|
46
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
47
|
-
}
|
|
48
|
-
yield page;
|
|
49
|
-
token = page.nextToken;
|
|
50
|
-
hasNext = !!token;
|
|
51
|
-
}
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
return undefined;
|
|
54
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { EMRContainers } from "../EMRContainers";
|
|
2
|
-
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
import {
|
|
4
|
-
ListManagedEndpointsCommand,
|
|
5
|
-
ListManagedEndpointsCommandInput,
|
|
6
|
-
ListManagedEndpointsCommandOutput,
|
|
7
|
-
} from "../commands/ListManagedEndpointsCommand";
|
|
8
|
-
import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: EMRContainersClient,
|
|
16
|
-
input: ListManagedEndpointsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListManagedEndpointsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListManagedEndpointsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: EMRContainers,
|
|
27
|
-
input: ListManagedEndpointsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListManagedEndpointsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listManagedEndpoints(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListManagedEndpoints(
|
|
34
|
-
config: EMRContainersPaginationConfiguration,
|
|
35
|
-
input: ListManagedEndpointsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListManagedEndpointsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListManagedEndpointsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof EMRContainers) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof EMRContainersClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { EMRContainers } from "../EMRContainers";
|
|
2
|
-
import { EMRContainersClient } from "../EMRContainersClient";
|
|
3
|
-
import {
|
|
4
|
-
ListVirtualClustersCommand,
|
|
5
|
-
ListVirtualClustersCommandInput,
|
|
6
|
-
ListVirtualClustersCommandOutput,
|
|
7
|
-
} from "../commands/ListVirtualClustersCommand";
|
|
8
|
-
import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: EMRContainersClient,
|
|
16
|
-
input: ListVirtualClustersCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListVirtualClustersCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListVirtualClustersCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: EMRContainers,
|
|
27
|
-
input: ListVirtualClustersCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListVirtualClustersCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listVirtualClusters(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListVirtualClusters(
|
|
34
|
-
config: EMRContainersPaginationConfiguration,
|
|
35
|
-
input: ListVirtualClustersCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListVirtualClustersCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
39
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListVirtualClustersCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.nextToken = token;
|
|
44
|
-
input["maxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof EMRContainers) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof EMRContainersClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|