@@ -6,6 +6,11 @@ import {
6
6
CancelJobRunCommandInput ,
7
7
CancelJobRunCommandOutput ,
8
8
} from "./commands/CancelJobRunCommand" ;
9
+ import {
10
+ CreateJobTemplateCommand ,
11
+ CreateJobTemplateCommandInput ,
12
+ CreateJobTemplateCommandOutput ,
13
+ } from "./commands/CreateJobTemplateCommand" ;
9
14
import {
10
15
CreateManagedEndpointCommand ,
11
16
CreateManagedEndpointCommandInput ,
@@ -16,6 +21,11 @@ import {
16
21
CreateVirtualClusterCommandInput ,
17
22
CreateVirtualClusterCommandOutput ,
18
23
} from "./commands/CreateVirtualClusterCommand" ;
24
+ import {
25
+ DeleteJobTemplateCommand ,
26
+ DeleteJobTemplateCommandInput ,
27
+ DeleteJobTemplateCommandOutput ,
28
+ } from "./commands/DeleteJobTemplateCommand" ;
19
29
import {
20
30
DeleteManagedEndpointCommand ,
21
31
DeleteManagedEndpointCommandInput ,
@@ -31,6 +41,11 @@ import {
31
41
DescribeJobRunCommandInput ,
32
42
DescribeJobRunCommandOutput ,
33
43
} from "./commands/DescribeJobRunCommand" ;
44
+ import {
45
+ DescribeJobTemplateCommand ,
46
+ DescribeJobTemplateCommandInput ,
47
+ DescribeJobTemplateCommandOutput ,
48
+ } from "./commands/DescribeJobTemplateCommand" ;
34
49
import {
35
50
DescribeManagedEndpointCommand ,
36
51
DescribeManagedEndpointCommandInput ,
@@ -42,6 +57,11 @@ import {
42
57
DescribeVirtualClusterCommandOutput ,
43
58
} from "./commands/DescribeVirtualClusterCommand" ;
44
59
import { ListJobRunsCommand , ListJobRunsCommandInput , ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand" ;
60
+ import {
61
+ ListJobTemplatesCommand ,
62
+ ListJobTemplatesCommandInput ,
63
+ ListJobTemplatesCommandOutput ,
64
+ } from "./commands/ListJobTemplatesCommand" ;
45
65
import {
46
66
ListManagedEndpointsCommand ,
47
67
ListManagedEndpointsCommandInput ,
@@ -125,8 +145,43 @@ export class EMRContainers extends EMRContainersClient {
125
145
}
126
146
127
147
/**
128
- * <p>Creates a managed endpoint. A managed endpoint is a gateway that connects EMR Studio to
129
- * Amazon EMR on EKS so that EMR Studio can communicate with your virtual cluster.</p>
148
+ * <p>Creates a job template. Job template stores values of StartJobRun API request in a
149
+ * template and can be used to start a job run. Job template allows two use cases: avoid
150
+ * repeating recurring StartJobRun API request values, enforcing certain values in StartJobRun
151
+ * API request.</p>
152
+ */
153
+ public createJobTemplate (
154
+ args : CreateJobTemplateCommandInput ,
155
+ options ?: __HttpHandlerOptions
156
+ ) : Promise < CreateJobTemplateCommandOutput > ;
157
+ public createJobTemplate (
158
+ args : CreateJobTemplateCommandInput ,
159
+ cb : ( err : any , data ?: CreateJobTemplateCommandOutput ) => void
160
+ ) : void ;
161
+ public createJobTemplate (
162
+ args : CreateJobTemplateCommandInput ,
163
+ options : __HttpHandlerOptions ,
164
+ cb : ( err : any , data ?: CreateJobTemplateCommandOutput ) => void
165
+ ) : void ;
166
+ public createJobTemplate (
167
+ args : CreateJobTemplateCommandInput ,
168
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateJobTemplateCommandOutput ) => void ) ,
169
+ cb ?: ( err : any , data ?: CreateJobTemplateCommandOutput ) => void
170
+ ) : Promise < CreateJobTemplateCommandOutput > | void {
171
+ const command = new CreateJobTemplateCommand ( args ) ;
172
+ if ( typeof optionsOrCb === "function" ) {
173
+ this . send ( command , optionsOrCb ) ;
174
+ } else if ( typeof cb === "function" ) {
175
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
176
+ this . send ( command , optionsOrCb || { } , cb ) ;
177
+ } else {
178
+ return this . send ( command , optionsOrCb ) ;
179
+ }
180
+ }
181
+
182
+ /**
183
+ * <p>Creates a managed endpoint. A managed endpoint is a gateway that connects EMR Studio
184
+ * to Amazon EMR on EKS so that EMR Studio can communicate with your virtual cluster.</p>
130
185
*/
131
186
public createManagedEndpoint (
132
187
args : CreateManagedEndpointCommandInput ,
@@ -194,8 +249,44 @@ export class EMRContainers extends EMRContainersClient {
194
249
}
195
250
196
251
/**
197
- * <p>Deletes a managed endpoint. A managed endpoint is a gateway that connects EMR Studio to
198
- * Amazon EMR on EKS so that EMR Studio can communicate with your virtual cluster.</p>
252
+ * <p>Deletes a job template. Job template stores values of StartJobRun API request in a
253
+ * template and can be used to start a job run. Job template allows two use cases: avoid
254
+ * repeating recurring StartJobRun API request values, enforcing certain values in StartJobRun
255
+ * API request.</p>
256
+ */
257
+ public deleteJobTemplate (
258
+ args : DeleteJobTemplateCommandInput ,
259
+ options ?: __HttpHandlerOptions
260
+ ) : Promise < DeleteJobTemplateCommandOutput > ;
261
+ public deleteJobTemplate (
262
+ args : DeleteJobTemplateCommandInput ,
263
+ cb : ( err : any , data ?: DeleteJobTemplateCommandOutput ) => void
264
+ ) : void ;
265
+ public deleteJobTemplate (
266
+ args : DeleteJobTemplateCommandInput ,
267
+ options : __HttpHandlerOptions ,
268
+ cb : ( err : any , data ?: DeleteJobTemplateCommandOutput ) => void
269
+ ) : void ;
270
+ public deleteJobTemplate (
271
+ args : DeleteJobTemplateCommandInput ,
272
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteJobTemplateCommandOutput ) => void ) ,
273
+ cb ?: ( err : any , data ?: DeleteJobTemplateCommandOutput ) => void
274
+ ) : Promise < DeleteJobTemplateCommandOutput > | void {
275
+ const command = new DeleteJobTemplateCommand ( args ) ;
276
+ if ( typeof optionsOrCb === "function" ) {
277
+ this . send ( command , optionsOrCb ) ;
278
+ } else if ( typeof cb === "function" ) {
279
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
280
+ this . send ( command , optionsOrCb || { } , cb ) ;
281
+ } else {
282
+ return this . send ( command , optionsOrCb ) ;
283
+ }
284
+ }
285
+
286
+ /**
287
+ * <p>Deletes a managed endpoint. A managed endpoint is a gateway
288
+ * that connects EMR Studio to Amazon EMR on EKS so that EMR Studio
289
+ * can communicate with your virtual cluster.</p>
199
290
*/
200
291
public deleteManagedEndpoint (
201
292
args : DeleteManagedEndpointCommandInput ,
@@ -296,9 +387,44 @@ export class EMRContainers extends EMRContainersClient {
296
387
}
297
388
298
389
/**
299
- * <p>Displays detailed information about a managed endpoint. A managed endpoint is a gateway
300
- * that connects EMR Studio to Amazon EMR on EKS so that EMR Studio can communicate with your
301
- * virtual cluster.</p>
390
+ * <p>Displays detailed information about a specified job template. Job template stores values
391
+ * of StartJobRun API request in a template and can be used to start a job run. Job template
392
+ * allows two use cases: avoid repeating recurring StartJobRun API request values, enforcing
393
+ * certain values in StartJobRun API request.</p>
394
+ */
395
+ public describeJobTemplate (
396
+ args : DescribeJobTemplateCommandInput ,
397
+ options ?: __HttpHandlerOptions
398
+ ) : Promise < DescribeJobTemplateCommandOutput > ;
399
+ public describeJobTemplate (
400
+ args : DescribeJobTemplateCommandInput ,
401
+ cb : ( err : any , data ?: DescribeJobTemplateCommandOutput ) => void
402
+ ) : void ;
403
+ public describeJobTemplate (
404
+ args : DescribeJobTemplateCommandInput ,
405
+ options : __HttpHandlerOptions ,
406
+ cb : ( err : any , data ?: DescribeJobTemplateCommandOutput ) => void
407
+ ) : void ;
408
+ public describeJobTemplate (
409
+ args : DescribeJobTemplateCommandInput ,
410
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeJobTemplateCommandOutput ) => void ) ,
411
+ cb ?: ( err : any , data ?: DescribeJobTemplateCommandOutput ) => void
412
+ ) : Promise < DescribeJobTemplateCommandOutput > | void {
413
+ const command = new DescribeJobTemplateCommand ( args ) ;
414
+ if ( typeof optionsOrCb === "function" ) {
415
+ this . send ( command , optionsOrCb ) ;
416
+ } else if ( typeof cb === "function" ) {
417
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
418
+ this . send ( command , optionsOrCb || { } , cb ) ;
419
+ } else {
420
+ return this . send ( command , optionsOrCb ) ;
421
+ }
422
+ }
423
+
424
+ /**
425
+ * <p>Displays detailed information about a managed endpoint. A managed endpoint is
426
+ * a gateway that connects EMR Studio to Amazon EMR on EKS so that EMR Studio can
427
+ * communicate with your virtual cluster.</p>
302
428
*/
303
429
public describeManagedEndpoint (
304
430
args : DescribeManagedEndpointCommandInput ,
@@ -394,9 +520,44 @@ export class EMRContainers extends EMRContainersClient {
394
520
}
395
521
396
522
/**
397
- * <p>Lists managed endpoints based on a set of parameters. A managed endpoint is a gateway
398
- * that connects EMR Studio to Amazon EMR on EKS so that EMR Studio can communicate with your
399
- * virtual cluster.</p>
523
+ * <p>Lists job templates based on a set of parameters. Job template stores values of
524
+ * StartJobRun API request in a template and can be used to start a job run. Job template
525
+ * allows two use cases: avoid repeating recurring StartJobRun API request values, enforcing
526
+ * certain values in StartJobRun API request.</p>
527
+ */
528
+ public listJobTemplates (
529
+ args : ListJobTemplatesCommandInput ,
530
+ options ?: __HttpHandlerOptions
531
+ ) : Promise < ListJobTemplatesCommandOutput > ;
532
+ public listJobTemplates (
533
+ args : ListJobTemplatesCommandInput ,
534
+ cb : ( err : any , data ?: ListJobTemplatesCommandOutput ) => void
535
+ ) : void ;
536
+ public listJobTemplates (
537
+ args : ListJobTemplatesCommandInput ,
538
+ options : __HttpHandlerOptions ,
539
+ cb : ( err : any , data ?: ListJobTemplatesCommandOutput ) => void
540
+ ) : void ;
541
+ public listJobTemplates (
542
+ args : ListJobTemplatesCommandInput ,
543
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListJobTemplatesCommandOutput ) => void ) ,
544
+ cb ?: ( err : any , data ?: ListJobTemplatesCommandOutput ) => void
545
+ ) : Promise < ListJobTemplatesCommandOutput > | void {
546
+ const command = new ListJobTemplatesCommand ( args ) ;
547
+ if ( typeof optionsOrCb === "function" ) {
548
+ this . send ( command , optionsOrCb ) ;
549
+ } else if ( typeof cb === "function" ) {
550
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
551
+ this . send ( command , optionsOrCb || { } , cb ) ;
552
+ } else {
553
+ return this . send ( command , optionsOrCb ) ;
554
+ }
555
+ }
556
+
557
+ /**
558
+ * <p>Lists managed endpoints based on a set of parameters. A managed endpoint
559
+ * is a gateway that connects EMR Studio to Amazon EMR on EKS so that EMR Studio
560
+ * can communicate with your virtual cluster.</p>
400
561
*/
401
562
public listManagedEndpoints (
402
563
args : ListManagedEndpointsCommandInput ,
0 commit comments