@aws-sdk/client-emr-containers 3.202.0 → 3.204.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/EMRContainers.js +60 -0
- package/dist-cjs/commands/CreateJobTemplateCommand.js +46 -0
- package/dist-cjs/commands/DeleteJobTemplateCommand.js +46 -0
- package/dist-cjs/commands/DescribeJobTemplateCommand.js +46 -0
- package/dist-cjs/commands/ListJobTemplatesCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +102 -26
- package/dist-cjs/pagination/ListJobTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +424 -1
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/EMRContainers.js +60 -0
- package/dist-es/commands/CreateJobTemplateCommand.js +42 -0
- package/dist-es/commands/DeleteJobTemplateCommand.js +42 -0
- package/dist-es/commands/DescribeJobTemplateCommand.js +42 -0
- package/dist-es/commands/ListJobTemplatesCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +82 -21
- package/dist-es/pagination/ListJobTemplatesPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +415 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/EMRContainers.d.ts +51 -10
- package/dist-types/EMRContainersClient.d.ts +6 -2
- package/dist-types/commands/CreateJobTemplateCommand.d.ts +40 -0
- package/dist-types/commands/CreateManagedEndpointCommand.d.ts +2 -2
- package/dist-types/commands/DeleteJobTemplateCommand.d.ts +40 -0
- package/dist-types/commands/DeleteManagedEndpointCommand.d.ts +3 -2
- package/dist-types/commands/DescribeJobTemplateCommand.d.ts +40 -0
- package/dist-types/commands/DescribeManagedEndpointCommand.d.ts +3 -3
- package/dist-types/commands/ListJobTemplatesCommand.d.ts +40 -0
- package/dist-types/commands/ListManagedEndpointsCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +382 -69
- package/dist-types/pagination/ListJobTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/EMRContainers.d.ts +68 -0
- package/dist-types/ts3.4/EMRContainersClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateJobTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteJobTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeJobTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListJobTemplatesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +152 -29
- package/dist-types/ts3.4/pagination/ListJobTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +5 -4
- package/CHANGELOG.md +0 -1266
package/dist-es/EMRContainers.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
|
|
2
|
+
import { CreateJobTemplateCommand, } from "./commands/CreateJobTemplateCommand";
|
|
2
3
|
import { CreateManagedEndpointCommand, } from "./commands/CreateManagedEndpointCommand";
|
|
3
4
|
import { CreateVirtualClusterCommand, } from "./commands/CreateVirtualClusterCommand";
|
|
5
|
+
import { DeleteJobTemplateCommand, } from "./commands/DeleteJobTemplateCommand";
|
|
4
6
|
import { DeleteManagedEndpointCommand, } from "./commands/DeleteManagedEndpointCommand";
|
|
5
7
|
import { DeleteVirtualClusterCommand, } from "./commands/DeleteVirtualClusterCommand";
|
|
6
8
|
import { DescribeJobRunCommand, } from "./commands/DescribeJobRunCommand";
|
|
9
|
+
import { DescribeJobTemplateCommand, } from "./commands/DescribeJobTemplateCommand";
|
|
7
10
|
import { DescribeManagedEndpointCommand, } from "./commands/DescribeManagedEndpointCommand";
|
|
8
11
|
import { DescribeVirtualClusterCommand, } from "./commands/DescribeVirtualClusterCommand";
|
|
9
12
|
import { ListJobRunsCommand } from "./commands/ListJobRunsCommand";
|
|
13
|
+
import { ListJobTemplatesCommand, } from "./commands/ListJobTemplatesCommand";
|
|
10
14
|
import { ListManagedEndpointsCommand, } from "./commands/ListManagedEndpointsCommand";
|
|
11
15
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
12
16
|
import { ListVirtualClustersCommand, } from "./commands/ListVirtualClustersCommand";
|
|
@@ -29,6 +33,20 @@ export class EMRContainers extends EMRContainersClient {
|
|
|
29
33
|
return this.send(command, optionsOrCb);
|
|
30
34
|
}
|
|
31
35
|
}
|
|
36
|
+
createJobTemplate(args, optionsOrCb, cb) {
|
|
37
|
+
const command = new CreateJobTemplateCommand(args);
|
|
38
|
+
if (typeof optionsOrCb === "function") {
|
|
39
|
+
this.send(command, optionsOrCb);
|
|
40
|
+
}
|
|
41
|
+
else if (typeof cb === "function") {
|
|
42
|
+
if (typeof optionsOrCb !== "object")
|
|
43
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return this.send(command, optionsOrCb);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
createManagedEndpoint(args, optionsOrCb, cb) {
|
|
33
51
|
const command = new CreateManagedEndpointCommand(args);
|
|
34
52
|
if (typeof optionsOrCb === "function") {
|
|
@@ -57,6 +75,20 @@ export class EMRContainers extends EMRContainersClient {
|
|
|
57
75
|
return this.send(command, optionsOrCb);
|
|
58
76
|
}
|
|
59
77
|
}
|
|
78
|
+
deleteJobTemplate(args, optionsOrCb, cb) {
|
|
79
|
+
const command = new DeleteJobTemplateCommand(args);
|
|
80
|
+
if (typeof optionsOrCb === "function") {
|
|
81
|
+
this.send(command, optionsOrCb);
|
|
82
|
+
}
|
|
83
|
+
else if (typeof cb === "function") {
|
|
84
|
+
if (typeof optionsOrCb !== "object")
|
|
85
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
60
92
|
deleteManagedEndpoint(args, optionsOrCb, cb) {
|
|
61
93
|
const command = new DeleteManagedEndpointCommand(args);
|
|
62
94
|
if (typeof optionsOrCb === "function") {
|
|
@@ -99,6 +131,20 @@ export class EMRContainers extends EMRContainersClient {
|
|
|
99
131
|
return this.send(command, optionsOrCb);
|
|
100
132
|
}
|
|
101
133
|
}
|
|
134
|
+
describeJobTemplate(args, optionsOrCb, cb) {
|
|
135
|
+
const command = new DescribeJobTemplateCommand(args);
|
|
136
|
+
if (typeof optionsOrCb === "function") {
|
|
137
|
+
this.send(command, optionsOrCb);
|
|
138
|
+
}
|
|
139
|
+
else if (typeof cb === "function") {
|
|
140
|
+
if (typeof optionsOrCb !== "object")
|
|
141
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
return this.send(command, optionsOrCb);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
102
148
|
describeManagedEndpoint(args, optionsOrCb, cb) {
|
|
103
149
|
const command = new DescribeManagedEndpointCommand(args);
|
|
104
150
|
if (typeof optionsOrCb === "function") {
|
|
@@ -141,6 +187,20 @@ export class EMRContainers extends EMRContainersClient {
|
|
|
141
187
|
return this.send(command, optionsOrCb);
|
|
142
188
|
}
|
|
143
189
|
}
|
|
190
|
+
listJobTemplates(args, optionsOrCb, cb) {
|
|
191
|
+
const command = new ListJobTemplatesCommand(args);
|
|
192
|
+
if (typeof optionsOrCb === "function") {
|
|
193
|
+
this.send(command, optionsOrCb);
|
|
194
|
+
}
|
|
195
|
+
else if (typeof cb === "function") {
|
|
196
|
+
if (typeof optionsOrCb !== "object")
|
|
197
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
return this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
144
204
|
listManagedEndpoints(args, optionsOrCb, cb) {
|
|
145
205
|
const command = new ListManagedEndpointsCommand(args);
|
|
146
206
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateJobTemplateRequestFilterSensitiveLog, CreateJobTemplateResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateJobTemplateCommand, serializeAws_restJson1CreateJobTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CreateJobTemplateCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateJobTemplateCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EMRContainersClient";
|
|
25
|
+
const commandName = "CreateJobTemplateCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateJobTemplateRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateJobTemplateResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CreateJobTemplateCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CreateJobTemplateCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteJobTemplateRequestFilterSensitiveLog, DeleteJobTemplateResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteJobTemplateCommand, serializeAws_restJson1DeleteJobTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteJobTemplateCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteJobTemplateCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EMRContainersClient";
|
|
25
|
+
const commandName = "DeleteJobTemplateCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteJobTemplateRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteJobTemplateResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteJobTemplateCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteJobTemplateCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeJobTemplateRequestFilterSensitiveLog, DescribeJobTemplateResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribeJobTemplateCommand, serializeAws_restJson1DescribeJobTemplateCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DescribeJobTemplateCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeJobTemplateCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EMRContainersClient";
|
|
25
|
+
const commandName = "DescribeJobTemplateCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DescribeJobTemplateRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DescribeJobTemplateResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DescribeJobTemplateCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DescribeJobTemplateCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListJobTemplatesRequestFilterSensitiveLog, ListJobTemplatesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListJobTemplatesCommand, serializeAws_restJson1ListJobTemplatesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListJobTemplatesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListJobTemplatesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "EMRContainersClient";
|
|
25
|
+
const commandName = "ListJobTemplatesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListJobTemplatesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListJobTemplatesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListJobTemplatesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListJobTemplatesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export * from "./CancelJobRunCommand";
|
|
2
|
+
export * from "./CreateJobTemplateCommand";
|
|
2
3
|
export * from "./CreateManagedEndpointCommand";
|
|
3
4
|
export * from "./CreateVirtualClusterCommand";
|
|
5
|
+
export * from "./DeleteJobTemplateCommand";
|
|
4
6
|
export * from "./DeleteManagedEndpointCommand";
|
|
5
7
|
export * from "./DeleteVirtualClusterCommand";
|
|
6
8
|
export * from "./DescribeJobRunCommand";
|
|
9
|
+
export * from "./DescribeJobTemplateCommand";
|
|
7
10
|
export * from "./DescribeManagedEndpointCommand";
|
|
8
11
|
export * from "./DescribeVirtualClusterCommand";
|
|
9
12
|
export * from "./ListJobRunsCommand";
|
|
13
|
+
export * from "./ListJobTemplatesCommand";
|
|
10
14
|
export * from "./ListManagedEndpointsCommand";
|
|
11
15
|
export * from "./ListTagsForResourceCommand";
|
|
12
16
|
export * from "./ListVirtualClustersCommand";
|
|
@@ -24,11 +24,11 @@ export class ValidationException extends __BaseException {
|
|
|
24
24
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
export var
|
|
28
|
-
(function (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})(
|
|
27
|
+
export var TemplateParameterDataType;
|
|
28
|
+
(function (TemplateParameterDataType) {
|
|
29
|
+
TemplateParameterDataType["NUMBER"] = "NUMBER";
|
|
30
|
+
TemplateParameterDataType["STRING"] = "STRING";
|
|
31
|
+
})(TemplateParameterDataType || (TemplateParameterDataType = {}));
|
|
32
32
|
export class ResourceNotFoundException extends __BaseException {
|
|
33
33
|
constructor(opts) {
|
|
34
34
|
super({
|
|
@@ -41,6 +41,11 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
41
41
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
export var PersistentAppUI;
|
|
45
|
+
(function (PersistentAppUI) {
|
|
46
|
+
PersistentAppUI["DISABLED"] = "DISABLED";
|
|
47
|
+
PersistentAppUI["ENABLED"] = "ENABLED";
|
|
48
|
+
})(PersistentAppUI || (PersistentAppUI = {}));
|
|
44
49
|
export var ContainerInfo;
|
|
45
50
|
(function (ContainerInfo) {
|
|
46
51
|
ContainerInfo.visit = (value, visitor) => {
|
|
@@ -91,6 +96,39 @@ export const CancelJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
|
91
96
|
export const CancelJobRunResponseFilterSensitiveLog = (obj) => ({
|
|
92
97
|
...obj,
|
|
93
98
|
});
|
|
99
|
+
export const ParametricCloudWatchMonitoringConfigurationFilterSensitiveLog = (obj) => ({
|
|
100
|
+
...obj,
|
|
101
|
+
});
|
|
102
|
+
export const ParametricS3MonitoringConfigurationFilterSensitiveLog = (obj) => ({
|
|
103
|
+
...obj,
|
|
104
|
+
});
|
|
105
|
+
export const ParametricMonitoringConfigurationFilterSensitiveLog = (obj) => ({
|
|
106
|
+
...obj,
|
|
107
|
+
});
|
|
108
|
+
export const SparkSqlJobDriverFilterSensitiveLog = (obj) => ({
|
|
109
|
+
...obj,
|
|
110
|
+
...(obj.entryPoint && { entryPoint: SENSITIVE_STRING }),
|
|
111
|
+
...(obj.sparkSqlParameters && { sparkSqlParameters: SENSITIVE_STRING }),
|
|
112
|
+
});
|
|
113
|
+
export const SparkSubmitJobDriverFilterSensitiveLog = (obj) => ({
|
|
114
|
+
...obj,
|
|
115
|
+
...(obj.entryPoint && { entryPoint: SENSITIVE_STRING }),
|
|
116
|
+
...(obj.entryPointArguments && { entryPointArguments: SENSITIVE_STRING }),
|
|
117
|
+
...(obj.sparkSubmitParameters && { sparkSubmitParameters: SENSITIVE_STRING }),
|
|
118
|
+
});
|
|
119
|
+
export const JobDriverFilterSensitiveLog = (obj) => ({
|
|
120
|
+
...obj,
|
|
121
|
+
...(obj.sparkSubmitJobDriver && {
|
|
122
|
+
sparkSubmitJobDriver: SparkSubmitJobDriverFilterSensitiveLog(obj.sparkSubmitJobDriver),
|
|
123
|
+
}),
|
|
124
|
+
...(obj.sparkSqlJobDriver && { sparkSqlJobDriver: SparkSqlJobDriverFilterSensitiveLog(obj.sparkSqlJobDriver) }),
|
|
125
|
+
});
|
|
126
|
+
export const TemplateParameterConfigurationFilterSensitiveLog = (obj) => ({
|
|
127
|
+
...obj,
|
|
128
|
+
});
|
|
129
|
+
export const CreateJobTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
130
|
+
...obj,
|
|
131
|
+
});
|
|
94
132
|
export const CloudWatchMonitoringConfigurationFilterSensitiveLog = (obj) => ({
|
|
95
133
|
...obj,
|
|
96
134
|
});
|
|
@@ -123,6 +161,12 @@ export const CreateVirtualClusterRequestFilterSensitiveLog = (obj) => ({
|
|
|
123
161
|
export const CreateVirtualClusterResponseFilterSensitiveLog = (obj) => ({
|
|
124
162
|
...obj,
|
|
125
163
|
});
|
|
164
|
+
export const DeleteJobTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
+
...obj,
|
|
166
|
+
});
|
|
167
|
+
export const DeleteJobTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
168
|
+
...obj,
|
|
169
|
+
});
|
|
126
170
|
export const DeleteManagedEndpointRequestFilterSensitiveLog = (obj) => ({
|
|
127
171
|
...obj,
|
|
128
172
|
});
|
|
@@ -138,23 +182,8 @@ export const DeleteVirtualClusterResponseFilterSensitiveLog = (obj) => ({
|
|
|
138
182
|
export const DescribeJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
139
183
|
...obj,
|
|
140
184
|
});
|
|
141
|
-
export const
|
|
142
|
-
...obj,
|
|
143
|
-
...(obj.entryPoint && { entryPoint: SENSITIVE_STRING }),
|
|
144
|
-
...(obj.sparkSqlParameters && { sparkSqlParameters: SENSITIVE_STRING }),
|
|
145
|
-
});
|
|
146
|
-
export const SparkSubmitJobDriverFilterSensitiveLog = (obj) => ({
|
|
147
|
-
...obj,
|
|
148
|
-
...(obj.entryPoint && { entryPoint: SENSITIVE_STRING }),
|
|
149
|
-
...(obj.entryPointArguments && { entryPointArguments: SENSITIVE_STRING }),
|
|
150
|
-
...(obj.sparkSubmitParameters && { sparkSubmitParameters: SENSITIVE_STRING }),
|
|
151
|
-
});
|
|
152
|
-
export const JobDriverFilterSensitiveLog = (obj) => ({
|
|
185
|
+
export const DescribeJobTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
153
186
|
...obj,
|
|
154
|
-
...(obj.sparkSubmitJobDriver && {
|
|
155
|
-
sparkSubmitJobDriver: SparkSubmitJobDriverFilterSensitiveLog(obj.sparkSubmitJobDriver),
|
|
156
|
-
}),
|
|
157
|
-
...(obj.sparkSqlJobDriver && { sparkSqlJobDriver: SparkSqlJobDriverFilterSensitiveLog(obj.sparkSqlJobDriver) }),
|
|
158
187
|
});
|
|
159
188
|
export const DescribeManagedEndpointRequestFilterSensitiveLog = (obj) => ({
|
|
160
189
|
...obj,
|
|
@@ -176,6 +205,9 @@ export const DescribeVirtualClusterResponseFilterSensitiveLog = (obj) => ({
|
|
|
176
205
|
export const ListJobRunsRequestFilterSensitiveLog = (obj) => ({
|
|
177
206
|
...obj,
|
|
178
207
|
});
|
|
208
|
+
export const ListJobTemplatesRequestFilterSensitiveLog = (obj) => ({
|
|
209
|
+
...obj,
|
|
210
|
+
});
|
|
179
211
|
export const ListManagedEndpointsRequestFilterSensitiveLog = (obj) => ({
|
|
180
212
|
...obj,
|
|
181
213
|
});
|
|
@@ -222,6 +254,12 @@ export const ConfigurationOverridesFilterSensitiveLog = (obj) => ({
|
|
|
222
254
|
applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item)),
|
|
223
255
|
}),
|
|
224
256
|
});
|
|
257
|
+
export const ParametricConfigurationOverridesFilterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
...(obj.applicationConfiguration && {
|
|
260
|
+
applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item)),
|
|
261
|
+
}),
|
|
262
|
+
});
|
|
225
263
|
export const CreateManagedEndpointRequestFilterSensitiveLog = (obj) => ({
|
|
226
264
|
...obj,
|
|
227
265
|
...(obj.configurationOverrides && {
|
|
@@ -241,6 +279,13 @@ export const JobRunFilterSensitiveLog = (obj) => ({
|
|
|
241
279
|
}),
|
|
242
280
|
...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
|
|
243
281
|
});
|
|
282
|
+
export const JobTemplateDataFilterSensitiveLog = (obj) => ({
|
|
283
|
+
...obj,
|
|
284
|
+
...(obj.configurationOverrides && {
|
|
285
|
+
configurationOverrides: ParametricConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
286
|
+
}),
|
|
287
|
+
...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
|
|
288
|
+
});
|
|
244
289
|
export const StartJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
245
290
|
...obj,
|
|
246
291
|
...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
|
|
@@ -248,6 +293,10 @@ export const StartJobRunRequestFilterSensitiveLog = (obj) => ({
|
|
|
248
293
|
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
|
|
249
294
|
}),
|
|
250
295
|
});
|
|
296
|
+
export const CreateJobTemplateRequestFilterSensitiveLog = (obj) => ({
|
|
297
|
+
...obj,
|
|
298
|
+
...(obj.jobTemplateData && { jobTemplateData: JobTemplateDataFilterSensitiveLog(obj.jobTemplateData) }),
|
|
299
|
+
});
|
|
251
300
|
export const DescribeJobRunResponseFilterSensitiveLog = (obj) => ({
|
|
252
301
|
...obj,
|
|
253
302
|
...(obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }),
|
|
@@ -256,6 +305,14 @@ export const DescribeManagedEndpointResponseFilterSensitiveLog = (obj) => ({
|
|
|
256
305
|
...obj,
|
|
257
306
|
...(obj.endpoint && { endpoint: EndpointFilterSensitiveLog(obj.endpoint) }),
|
|
258
307
|
});
|
|
308
|
+
export const JobTemplateFilterSensitiveLog = (obj) => ({
|
|
309
|
+
...obj,
|
|
310
|
+
...(obj.jobTemplateData && { jobTemplateData: JobTemplateDataFilterSensitiveLog(obj.jobTemplateData) }),
|
|
311
|
+
});
|
|
312
|
+
export const DescribeJobTemplateResponseFilterSensitiveLog = (obj) => ({
|
|
313
|
+
...obj,
|
|
314
|
+
...(obj.jobTemplate && { jobTemplate: JobTemplateFilterSensitiveLog(obj.jobTemplate) }),
|
|
315
|
+
});
|
|
259
316
|
export const ListJobRunsResponseFilterSensitiveLog = (obj) => ({
|
|
260
317
|
...obj,
|
|
261
318
|
...(obj.jobRuns && { jobRuns: obj.jobRuns.map((item) => JobRunFilterSensitiveLog(item)) }),
|
|
@@ -263,3 +320,7 @@ export const ListJobRunsResponseFilterSensitiveLog = (obj) => ({
|
|
|
263
320
|
export const ListManagedEndpointsResponseFilterSensitiveLog = (obj) => ({
|
|
264
321
|
...obj,
|
|
265
322
|
});
|
|
323
|
+
export const ListJobTemplatesResponseFilterSensitiveLog = (obj) => ({
|
|
324
|
+
...obj,
|
|
325
|
+
...(obj.templates && { templates: obj.templates.map((item) => JobTemplateFilterSensitiveLog(item)) }),
|
|
326
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListJobTemplatesCommand, } from "../commands/ListJobTemplatesCommand";
|
|
2
|
+
import { EMRContainers } from "../EMRContainers";
|
|
3
|
+
import { EMRContainersClient } from "../EMRContainersClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListJobTemplatesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listJobTemplates(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListJobTemplates(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof EMRContainers) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof EMRContainersClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected EMRContainers | EMRContainersClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|