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