@aws-sdk/client-emr-containers 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EMRContainers = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CancelJobRunCommand_1 = require("./commands/CancelJobRunCommand");
5
6
  const CreateJobTemplateCommand_1 = require("./commands/CreateJobTemplateCommand");
6
7
  const CreateManagedEndpointCommand_1 = require("./commands/CreateManagedEndpointCommand");
@@ -21,272 +22,28 @@ const StartJobRunCommand_1 = require("./commands/StartJobRunCommand");
21
22
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
22
23
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
23
24
  const EMRContainersClient_1 = require("./EMRContainersClient");
25
+ const commands = {
26
+ CancelJobRunCommand: CancelJobRunCommand_1.CancelJobRunCommand,
27
+ CreateJobTemplateCommand: CreateJobTemplateCommand_1.CreateJobTemplateCommand,
28
+ CreateManagedEndpointCommand: CreateManagedEndpointCommand_1.CreateManagedEndpointCommand,
29
+ CreateVirtualClusterCommand: CreateVirtualClusterCommand_1.CreateVirtualClusterCommand,
30
+ DeleteJobTemplateCommand: DeleteJobTemplateCommand_1.DeleteJobTemplateCommand,
31
+ DeleteManagedEndpointCommand: DeleteManagedEndpointCommand_1.DeleteManagedEndpointCommand,
32
+ DeleteVirtualClusterCommand: DeleteVirtualClusterCommand_1.DeleteVirtualClusterCommand,
33
+ DescribeJobRunCommand: DescribeJobRunCommand_1.DescribeJobRunCommand,
34
+ DescribeJobTemplateCommand: DescribeJobTemplateCommand_1.DescribeJobTemplateCommand,
35
+ DescribeManagedEndpointCommand: DescribeManagedEndpointCommand_1.DescribeManagedEndpointCommand,
36
+ DescribeVirtualClusterCommand: DescribeVirtualClusterCommand_1.DescribeVirtualClusterCommand,
37
+ ListJobRunsCommand: ListJobRunsCommand_1.ListJobRunsCommand,
38
+ ListJobTemplatesCommand: ListJobTemplatesCommand_1.ListJobTemplatesCommand,
39
+ ListManagedEndpointsCommand: ListManagedEndpointsCommand_1.ListManagedEndpointsCommand,
40
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
41
+ ListVirtualClustersCommand: ListVirtualClustersCommand_1.ListVirtualClustersCommand,
42
+ StartJobRunCommand: StartJobRunCommand_1.StartJobRunCommand,
43
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
44
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
45
+ };
24
46
  class EMRContainers extends EMRContainersClient_1.EMRContainersClient {
25
- cancelJobRun(args, optionsOrCb, cb) {
26
- const command = new CancelJobRunCommand_1.CancelJobRunCommand(args);
27
- if (typeof optionsOrCb === "function") {
28
- this.send(command, optionsOrCb);
29
- }
30
- else if (typeof cb === "function") {
31
- if (typeof optionsOrCb !== "object")
32
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
33
- this.send(command, optionsOrCb || {}, cb);
34
- }
35
- else {
36
- return this.send(command, optionsOrCb);
37
- }
38
- }
39
- createJobTemplate(args, optionsOrCb, cb) {
40
- const command = new CreateJobTemplateCommand_1.CreateJobTemplateCommand(args);
41
- if (typeof optionsOrCb === "function") {
42
- this.send(command, optionsOrCb);
43
- }
44
- else if (typeof cb === "function") {
45
- if (typeof optionsOrCb !== "object")
46
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
- this.send(command, optionsOrCb || {}, cb);
48
- }
49
- else {
50
- return this.send(command, optionsOrCb);
51
- }
52
- }
53
- createManagedEndpoint(args, optionsOrCb, cb) {
54
- const command = new CreateManagedEndpointCommand_1.CreateManagedEndpointCommand(args);
55
- if (typeof optionsOrCb === "function") {
56
- this.send(command, optionsOrCb);
57
- }
58
- else if (typeof cb === "function") {
59
- if (typeof optionsOrCb !== "object")
60
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
- this.send(command, optionsOrCb || {}, cb);
62
- }
63
- else {
64
- return this.send(command, optionsOrCb);
65
- }
66
- }
67
- createVirtualCluster(args, optionsOrCb, cb) {
68
- const command = new CreateVirtualClusterCommand_1.CreateVirtualClusterCommand(args);
69
- if (typeof optionsOrCb === "function") {
70
- this.send(command, optionsOrCb);
71
- }
72
- else if (typeof cb === "function") {
73
- if (typeof optionsOrCb !== "object")
74
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
- this.send(command, optionsOrCb || {}, cb);
76
- }
77
- else {
78
- return this.send(command, optionsOrCb);
79
- }
80
- }
81
- deleteJobTemplate(args, optionsOrCb, cb) {
82
- const command = new DeleteJobTemplateCommand_1.DeleteJobTemplateCommand(args);
83
- if (typeof optionsOrCb === "function") {
84
- this.send(command, optionsOrCb);
85
- }
86
- else if (typeof cb === "function") {
87
- if (typeof optionsOrCb !== "object")
88
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
- this.send(command, optionsOrCb || {}, cb);
90
- }
91
- else {
92
- return this.send(command, optionsOrCb);
93
- }
94
- }
95
- deleteManagedEndpoint(args, optionsOrCb, cb) {
96
- const command = new DeleteManagedEndpointCommand_1.DeleteManagedEndpointCommand(args);
97
- if (typeof optionsOrCb === "function") {
98
- this.send(command, optionsOrCb);
99
- }
100
- else if (typeof cb === "function") {
101
- if (typeof optionsOrCb !== "object")
102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
- this.send(command, optionsOrCb || {}, cb);
104
- }
105
- else {
106
- return this.send(command, optionsOrCb);
107
- }
108
- }
109
- deleteVirtualCluster(args, optionsOrCb, cb) {
110
- const command = new DeleteVirtualClusterCommand_1.DeleteVirtualClusterCommand(args);
111
- if (typeof optionsOrCb === "function") {
112
- this.send(command, optionsOrCb);
113
- }
114
- else if (typeof cb === "function") {
115
- if (typeof optionsOrCb !== "object")
116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
- this.send(command, optionsOrCb || {}, cb);
118
- }
119
- else {
120
- return this.send(command, optionsOrCb);
121
- }
122
- }
123
- describeJobRun(args, optionsOrCb, cb) {
124
- const command = new DescribeJobRunCommand_1.DescribeJobRunCommand(args);
125
- if (typeof optionsOrCb === "function") {
126
- this.send(command, optionsOrCb);
127
- }
128
- else if (typeof cb === "function") {
129
- if (typeof optionsOrCb !== "object")
130
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
- this.send(command, optionsOrCb || {}, cb);
132
- }
133
- else {
134
- return this.send(command, optionsOrCb);
135
- }
136
- }
137
- describeJobTemplate(args, optionsOrCb, cb) {
138
- const command = new DescribeJobTemplateCommand_1.DescribeJobTemplateCommand(args);
139
- if (typeof optionsOrCb === "function") {
140
- this.send(command, optionsOrCb);
141
- }
142
- else if (typeof cb === "function") {
143
- if (typeof optionsOrCb !== "object")
144
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
- this.send(command, optionsOrCb || {}, cb);
146
- }
147
- else {
148
- return this.send(command, optionsOrCb);
149
- }
150
- }
151
- describeManagedEndpoint(args, optionsOrCb, cb) {
152
- const command = new DescribeManagedEndpointCommand_1.DescribeManagedEndpointCommand(args);
153
- if (typeof optionsOrCb === "function") {
154
- this.send(command, optionsOrCb);
155
- }
156
- else if (typeof cb === "function") {
157
- if (typeof optionsOrCb !== "object")
158
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
- this.send(command, optionsOrCb || {}, cb);
160
- }
161
- else {
162
- return this.send(command, optionsOrCb);
163
- }
164
- }
165
- describeVirtualCluster(args, optionsOrCb, cb) {
166
- const command = new DescribeVirtualClusterCommand_1.DescribeVirtualClusterCommand(args);
167
- if (typeof optionsOrCb === "function") {
168
- this.send(command, optionsOrCb);
169
- }
170
- else if (typeof cb === "function") {
171
- if (typeof optionsOrCb !== "object")
172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
- this.send(command, optionsOrCb || {}, cb);
174
- }
175
- else {
176
- return this.send(command, optionsOrCb);
177
- }
178
- }
179
- listJobRuns(args, optionsOrCb, cb) {
180
- const command = new ListJobRunsCommand_1.ListJobRunsCommand(args);
181
- if (typeof optionsOrCb === "function") {
182
- this.send(command, optionsOrCb);
183
- }
184
- else if (typeof cb === "function") {
185
- if (typeof optionsOrCb !== "object")
186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
- this.send(command, optionsOrCb || {}, cb);
188
- }
189
- else {
190
- return this.send(command, optionsOrCb);
191
- }
192
- }
193
- listJobTemplates(args, optionsOrCb, cb) {
194
- const command = new ListJobTemplatesCommand_1.ListJobTemplatesCommand(args);
195
- if (typeof optionsOrCb === "function") {
196
- this.send(command, optionsOrCb);
197
- }
198
- else if (typeof cb === "function") {
199
- if (typeof optionsOrCb !== "object")
200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
- this.send(command, optionsOrCb || {}, cb);
202
- }
203
- else {
204
- return this.send(command, optionsOrCb);
205
- }
206
- }
207
- listManagedEndpoints(args, optionsOrCb, cb) {
208
- const command = new ListManagedEndpointsCommand_1.ListManagedEndpointsCommand(args);
209
- if (typeof optionsOrCb === "function") {
210
- this.send(command, optionsOrCb);
211
- }
212
- else if (typeof cb === "function") {
213
- if (typeof optionsOrCb !== "object")
214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
- this.send(command, optionsOrCb || {}, cb);
216
- }
217
- else {
218
- return this.send(command, optionsOrCb);
219
- }
220
- }
221
- listTagsForResource(args, optionsOrCb, cb) {
222
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
223
- if (typeof optionsOrCb === "function") {
224
- this.send(command, optionsOrCb);
225
- }
226
- else if (typeof cb === "function") {
227
- if (typeof optionsOrCb !== "object")
228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
- this.send(command, optionsOrCb || {}, cb);
230
- }
231
- else {
232
- return this.send(command, optionsOrCb);
233
- }
234
- }
235
- listVirtualClusters(args, optionsOrCb, cb) {
236
- const command = new ListVirtualClustersCommand_1.ListVirtualClustersCommand(args);
237
- if (typeof optionsOrCb === "function") {
238
- this.send(command, optionsOrCb);
239
- }
240
- else if (typeof cb === "function") {
241
- if (typeof optionsOrCb !== "object")
242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
- this.send(command, optionsOrCb || {}, cb);
244
- }
245
- else {
246
- return this.send(command, optionsOrCb);
247
- }
248
- }
249
- startJobRun(args, optionsOrCb, cb) {
250
- const command = new StartJobRunCommand_1.StartJobRunCommand(args);
251
- if (typeof optionsOrCb === "function") {
252
- this.send(command, optionsOrCb);
253
- }
254
- else if (typeof cb === "function") {
255
- if (typeof optionsOrCb !== "object")
256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
- this.send(command, optionsOrCb || {}, cb);
258
- }
259
- else {
260
- return this.send(command, optionsOrCb);
261
- }
262
- }
263
- tagResource(args, optionsOrCb, cb) {
264
- const command = new TagResourceCommand_1.TagResourceCommand(args);
265
- if (typeof optionsOrCb === "function") {
266
- this.send(command, optionsOrCb);
267
- }
268
- else if (typeof cb === "function") {
269
- if (typeof optionsOrCb !== "object")
270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
- this.send(command, optionsOrCb || {}, cb);
272
- }
273
- else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
- untagResource(args, optionsOrCb, cb) {
278
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
279
- if (typeof optionsOrCb === "function") {
280
- this.send(command, optionsOrCb);
281
- }
282
- else if (typeof cb === "function") {
283
- if (typeof optionsOrCb !== "object")
284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
- this.send(command, optionsOrCb || {}, cb);
286
- }
287
- else {
288
- return this.send(command, optionsOrCb);
289
- }
290
- }
291
47
  }
292
48
  exports.EMRContainers = EMRContainers;
49
+ (0, smithy_client_1.createAggregatedClient)(commands, EMRContainers);
@@ -33,7 +33,7 @@ const se_CreateJobTemplateCommand = async (input, context) => {
33
33
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
34
34
  let body;
35
35
  body = JSON.stringify((0, smithy_client_1.take)(input, {
36
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
36
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
37
37
  jobTemplateData: (_) => se_JobTemplateData(_, context),
38
38
  kmsKeyArn: [],
39
39
  name: [],
@@ -61,7 +61,7 @@ const se_CreateManagedEndpointCommand = async (input, context) => {
61
61
  let body;
62
62
  body = JSON.stringify((0, smithy_client_1.take)(input, {
63
63
  certificateArn: [],
64
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
64
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
65
65
  configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
66
66
  executionRoleArn: [],
67
67
  name: [],
@@ -88,7 +88,7 @@ const se_CreateVirtualClusterCommand = async (input, context) => {
88
88
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
89
89
  let body;
90
90
  body = JSON.stringify((0, smithy_client_1.take)(input, {
91
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
91
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
92
92
  containerProvider: (_) => (0, smithy_client_1._json)(_),
93
93
  name: [],
94
94
  tags: (_) => (0, smithy_client_1._json)(_),
@@ -383,7 +383,7 @@ const se_StartJobRunCommand = async (input, context) => {
383
383
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
384
384
  let body;
385
385
  body = JSON.stringify((0, smithy_client_1.take)(input, {
386
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
386
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
387
387
  configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
388
388
  executionRoleArn: [],
389
389
  jobDriver: (_) => (0, smithy_client_1._json)(_),
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CancelJobRunCommand, } from "./commands/CancelJobRunCommand";
2
3
  import { CreateJobTemplateCommand, } from "./commands/CreateJobTemplateCommand";
3
4
  import { CreateManagedEndpointCommand, } from "./commands/CreateManagedEndpointCommand";
@@ -18,271 +19,27 @@ import { StartJobRunCommand } from "./commands/StartJobRunCommand";
18
19
  import { TagResourceCommand } from "./commands/TagResourceCommand";
19
20
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
20
21
  import { EMRContainersClient } from "./EMRContainersClient";
22
+ const commands = {
23
+ CancelJobRunCommand,
24
+ CreateJobTemplateCommand,
25
+ CreateManagedEndpointCommand,
26
+ CreateVirtualClusterCommand,
27
+ DeleteJobTemplateCommand,
28
+ DeleteManagedEndpointCommand,
29
+ DeleteVirtualClusterCommand,
30
+ DescribeJobRunCommand,
31
+ DescribeJobTemplateCommand,
32
+ DescribeManagedEndpointCommand,
33
+ DescribeVirtualClusterCommand,
34
+ ListJobRunsCommand,
35
+ ListJobTemplatesCommand,
36
+ ListManagedEndpointsCommand,
37
+ ListTagsForResourceCommand,
38
+ ListVirtualClustersCommand,
39
+ StartJobRunCommand,
40
+ TagResourceCommand,
41
+ UntagResourceCommand,
42
+ };
21
43
  export class EMRContainers extends EMRContainersClient {
22
- cancelJobRun(args, optionsOrCb, cb) {
23
- const command = new CancelJobRunCommand(args);
24
- if (typeof optionsOrCb === "function") {
25
- this.send(command, optionsOrCb);
26
- }
27
- else if (typeof cb === "function") {
28
- if (typeof optionsOrCb !== "object")
29
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
- this.send(command, optionsOrCb || {}, cb);
31
- }
32
- else {
33
- return this.send(command, optionsOrCb);
34
- }
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
- }
50
- createManagedEndpoint(args, optionsOrCb, cb) {
51
- const command = new CreateManagedEndpointCommand(args);
52
- if (typeof optionsOrCb === "function") {
53
- this.send(command, optionsOrCb);
54
- }
55
- else if (typeof cb === "function") {
56
- if (typeof optionsOrCb !== "object")
57
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
- this.send(command, optionsOrCb || {}, cb);
59
- }
60
- else {
61
- return this.send(command, optionsOrCb);
62
- }
63
- }
64
- createVirtualCluster(args, optionsOrCb, cb) {
65
- const command = new CreateVirtualClusterCommand(args);
66
- if (typeof optionsOrCb === "function") {
67
- this.send(command, optionsOrCb);
68
- }
69
- else if (typeof cb === "function") {
70
- if (typeof optionsOrCb !== "object")
71
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
- this.send(command, optionsOrCb || {}, cb);
73
- }
74
- else {
75
- return this.send(command, optionsOrCb);
76
- }
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
- }
92
- deleteManagedEndpoint(args, optionsOrCb, cb) {
93
- const command = new DeleteManagedEndpointCommand(args);
94
- if (typeof optionsOrCb === "function") {
95
- this.send(command, optionsOrCb);
96
- }
97
- else if (typeof cb === "function") {
98
- if (typeof optionsOrCb !== "object")
99
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
- this.send(command, optionsOrCb || {}, cb);
101
- }
102
- else {
103
- return this.send(command, optionsOrCb);
104
- }
105
- }
106
- deleteVirtualCluster(args, optionsOrCb, cb) {
107
- const command = new DeleteVirtualClusterCommand(args);
108
- if (typeof optionsOrCb === "function") {
109
- this.send(command, optionsOrCb);
110
- }
111
- else if (typeof cb === "function") {
112
- if (typeof optionsOrCb !== "object")
113
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
- this.send(command, optionsOrCb || {}, cb);
115
- }
116
- else {
117
- return this.send(command, optionsOrCb);
118
- }
119
- }
120
- describeJobRun(args, optionsOrCb, cb) {
121
- const command = new DescribeJobRunCommand(args);
122
- if (typeof optionsOrCb === "function") {
123
- this.send(command, optionsOrCb);
124
- }
125
- else if (typeof cb === "function") {
126
- if (typeof optionsOrCb !== "object")
127
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
- this.send(command, optionsOrCb || {}, cb);
129
- }
130
- else {
131
- return this.send(command, optionsOrCb);
132
- }
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
- }
148
- describeManagedEndpoint(args, optionsOrCb, cb) {
149
- const command = new DescribeManagedEndpointCommand(args);
150
- if (typeof optionsOrCb === "function") {
151
- this.send(command, optionsOrCb);
152
- }
153
- else if (typeof cb === "function") {
154
- if (typeof optionsOrCb !== "object")
155
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
- this.send(command, optionsOrCb || {}, cb);
157
- }
158
- else {
159
- return this.send(command, optionsOrCb);
160
- }
161
- }
162
- describeVirtualCluster(args, optionsOrCb, cb) {
163
- const command = new DescribeVirtualClusterCommand(args);
164
- if (typeof optionsOrCb === "function") {
165
- this.send(command, optionsOrCb);
166
- }
167
- else if (typeof cb === "function") {
168
- if (typeof optionsOrCb !== "object")
169
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
- this.send(command, optionsOrCb || {}, cb);
171
- }
172
- else {
173
- return this.send(command, optionsOrCb);
174
- }
175
- }
176
- listJobRuns(args, optionsOrCb, cb) {
177
- const command = new ListJobRunsCommand(args);
178
- if (typeof optionsOrCb === "function") {
179
- this.send(command, optionsOrCb);
180
- }
181
- else if (typeof cb === "function") {
182
- if (typeof optionsOrCb !== "object")
183
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
- this.send(command, optionsOrCb || {}, cb);
185
- }
186
- else {
187
- return this.send(command, optionsOrCb);
188
- }
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
- }
204
- listManagedEndpoints(args, optionsOrCb, cb) {
205
- const command = new ListManagedEndpointsCommand(args);
206
- if (typeof optionsOrCb === "function") {
207
- this.send(command, optionsOrCb);
208
- }
209
- else if (typeof cb === "function") {
210
- if (typeof optionsOrCb !== "object")
211
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
- this.send(command, optionsOrCb || {}, cb);
213
- }
214
- else {
215
- return this.send(command, optionsOrCb);
216
- }
217
- }
218
- listTagsForResource(args, optionsOrCb, cb) {
219
- const command = new ListTagsForResourceCommand(args);
220
- if (typeof optionsOrCb === "function") {
221
- this.send(command, optionsOrCb);
222
- }
223
- else if (typeof cb === "function") {
224
- if (typeof optionsOrCb !== "object")
225
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
- this.send(command, optionsOrCb || {}, cb);
227
- }
228
- else {
229
- return this.send(command, optionsOrCb);
230
- }
231
- }
232
- listVirtualClusters(args, optionsOrCb, cb) {
233
- const command = new ListVirtualClustersCommand(args);
234
- if (typeof optionsOrCb === "function") {
235
- this.send(command, optionsOrCb);
236
- }
237
- else if (typeof cb === "function") {
238
- if (typeof optionsOrCb !== "object")
239
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
- this.send(command, optionsOrCb || {}, cb);
241
- }
242
- else {
243
- return this.send(command, optionsOrCb);
244
- }
245
- }
246
- startJobRun(args, optionsOrCb, cb) {
247
- const command = new StartJobRunCommand(args);
248
- if (typeof optionsOrCb === "function") {
249
- this.send(command, optionsOrCb);
250
- }
251
- else if (typeof cb === "function") {
252
- if (typeof optionsOrCb !== "object")
253
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
- this.send(command, optionsOrCb || {}, cb);
255
- }
256
- else {
257
- return this.send(command, optionsOrCb);
258
- }
259
- }
260
- tagResource(args, optionsOrCb, cb) {
261
- const command = new TagResourceCommand(args);
262
- if (typeof optionsOrCb === "function") {
263
- this.send(command, optionsOrCb);
264
- }
265
- else if (typeof cb === "function") {
266
- if (typeof optionsOrCb !== "object")
267
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
- this.send(command, optionsOrCb || {}, cb);
269
- }
270
- else {
271
- return this.send(command, optionsOrCb);
272
- }
273
- }
274
- untagResource(args, optionsOrCb, cb) {
275
- const command = new UntagResourceCommand(args);
276
- if (typeof optionsOrCb === "function") {
277
- this.send(command, optionsOrCb);
278
- }
279
- else if (typeof cb === "function") {
280
- if (typeof optionsOrCb !== "object")
281
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
- this.send(command, optionsOrCb || {}, cb);
283
- }
284
- else {
285
- return this.send(command, optionsOrCb);
286
- }
287
- }
288
44
  }
45
+ createAggregatedClient(commands, EMRContainers);
@@ -29,7 +29,7 @@ export const se_CreateJobTemplateCommand = async (input, context) => {
29
29
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
30
30
  let body;
31
31
  body = JSON.stringify(take(input, {
32
- clientToken: (_) => _ ?? generateIdempotencyToken(),
32
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
33
33
  jobTemplateData: (_) => se_JobTemplateData(_, context),
34
34
  kmsKeyArn: [],
35
35
  name: [],
@@ -56,7 +56,7 @@ export const se_CreateManagedEndpointCommand = async (input, context) => {
56
56
  let body;
57
57
  body = JSON.stringify(take(input, {
58
58
  certificateArn: [],
59
- clientToken: (_) => _ ?? generateIdempotencyToken(),
59
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
60
60
  configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
61
61
  executionRoleArn: [],
62
62
  name: [],
@@ -82,7 +82,7 @@ export const se_CreateVirtualClusterCommand = async (input, context) => {
82
82
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
83
83
  let body;
84
84
  body = JSON.stringify(take(input, {
85
- clientToken: (_) => _ ?? generateIdempotencyToken(),
85
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
86
86
  containerProvider: (_) => _json(_),
87
87
  name: [],
88
88
  tags: (_) => _json(_),
@@ -364,7 +364,7 @@ export const se_StartJobRunCommand = async (input, context) => {
364
364
  resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
365
365
  let body;
366
366
  body = JSON.stringify(take(input, {
367
- clientToken: (_) => _ ?? generateIdempotencyToken(),
367
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
368
368
  configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
369
369
  executionRoleArn: [],
370
370
  jobDriver: (_) => _json(_),
@@ -19,212 +19,148 @@ import { StartJobRunCommandInput, StartJobRunCommandOutput } from "./commands/St
19
19
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
20
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
21
  import { EMRContainersClient } from "./EMRContainersClient";
22
- /**
23
- * @public
24
- * <p>Amazon EMR on EKS provides a deployment option for Amazon EMR that allows
25
- * you to run open-source big data frameworks on Amazon Elastic Kubernetes Service (Amazon EKS).
26
- * With this deployment option, you can focus on running analytics workloads while Amazon EMR on EKS builds, configures, and manages containers for open-source applications.
27
- * For more information about Amazon EMR on EKS concepts and tasks, see <a href="https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/emr-eks.html">What is
28
- * shared id="EMR-EKS"/></a>.</p>
29
- * <p>
30
- * <i>Amazon EMR containers</i> is the API name for Amazon EMR on EKS.
31
- * The <code>emr-containers</code> prefix is used in the following scenarios: </p>
32
- * <ul>
33
- * <li>
34
- * <p>It is the prefix in the CLI commands for Amazon EMR on EKS. For example,
35
- * <code>aws emr-containers start-job-run</code>.</p>
36
- * </li>
37
- * <li>
38
- * <p>It is the prefix before IAM policy actions for Amazon EMR on EKS. For
39
- * example, <code>"Action": [ "emr-containers:StartJobRun"]</code>. For more
40
- * information, see <a href="https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-actions">Policy actions for Amazon EMR on EKS</a>.</p>
41
- * </li>
42
- * <li>
43
- * <p>It is the prefix used in Amazon EMR on EKS service endpoints. For example,
44
- * <code>emr-containers.us-east-2.amazonaws.com</code>. For more information, see
45
- * <a href="https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/service-quotas.html#service-endpoints">Amazon EMR on EKSService Endpoints</a>.</p>
46
- * </li>
47
- * </ul>
48
- */
49
- export declare class EMRContainers extends EMRContainersClient {
22
+ export interface EMRContainers {
50
23
  /**
51
- * @public
52
- * <p>Cancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or
53
- * SparkSQL query, that you submit to Amazon EMR on EKS.</p>
24
+ * @see {@link CancelJobRunCommand}
54
25
  */
55
26
  cancelJobRun(args: CancelJobRunCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobRunCommandOutput>;
56
27
  cancelJobRun(args: CancelJobRunCommandInput, cb: (err: any, data?: CancelJobRunCommandOutput) => void): void;
57
28
  cancelJobRun(args: CancelJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobRunCommandOutput) => void): void;
58
29
  /**
59
- * @public
60
- * <p>Creates a job template. Job template stores values of StartJobRun API request in a
61
- * template and can be used to start a job run. Job template allows two use cases: avoid
62
- * repeating recurring StartJobRun API request values, enforcing certain values in StartJobRun
63
- * API request.</p>
30
+ * @see {@link CreateJobTemplateCommand}
64
31
  */
65
32
  createJobTemplate(args: CreateJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateJobTemplateCommandOutput>;
66
33
  createJobTemplate(args: CreateJobTemplateCommandInput, cb: (err: any, data?: CreateJobTemplateCommandOutput) => void): void;
67
34
  createJobTemplate(args: CreateJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateJobTemplateCommandOutput) => void): void;
68
35
  /**
69
- * @public
70
- * <p>Creates a managed endpoint. A managed endpoint is a gateway that connects Amazon EMR Studio to
71
- * Amazon EMR on EKS so that Amazon EMR Studio can communicate with your virtual
72
- * cluster.</p>
36
+ * @see {@link CreateManagedEndpointCommand}
73
37
  */
74
38
  createManagedEndpoint(args: CreateManagedEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreateManagedEndpointCommandOutput>;
75
39
  createManagedEndpoint(args: CreateManagedEndpointCommandInput, cb: (err: any, data?: CreateManagedEndpointCommandOutput) => void): void;
76
40
  createManagedEndpoint(args: CreateManagedEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateManagedEndpointCommandOutput) => void): void;
77
41
  /**
78
- * @public
79
- * <p>Creates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, describe, list and delete virtual clusters. They do not consume any
80
- * additional resource in your system. A single virtual cluster maps to a single Kubernetes
81
- * namespace. Given this relationship, you can model virtual clusters the same way you model
82
- * Kubernetes namespaces to meet your requirements.</p>
42
+ * @see {@link CreateVirtualClusterCommand}
83
43
  */
84
44
  createVirtualCluster(args: CreateVirtualClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateVirtualClusterCommandOutput>;
85
45
  createVirtualCluster(args: CreateVirtualClusterCommandInput, cb: (err: any, data?: CreateVirtualClusterCommandOutput) => void): void;
86
46
  createVirtualCluster(args: CreateVirtualClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateVirtualClusterCommandOutput) => void): void;
87
47
  /**
88
- * @public
89
- * <p>Deletes a job template. Job template stores values of StartJobRun API request in a
90
- * template and can be used to start a job run. Job template allows two use cases: avoid
91
- * repeating recurring StartJobRun API request values, enforcing certain values in StartJobRun
92
- * API request.</p>
48
+ * @see {@link DeleteJobTemplateCommand}
93
49
  */
94
50
  deleteJobTemplate(args: DeleteJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteJobTemplateCommandOutput>;
95
51
  deleteJobTemplate(args: DeleteJobTemplateCommandInput, cb: (err: any, data?: DeleteJobTemplateCommandOutput) => void): void;
96
52
  deleteJobTemplate(args: DeleteJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteJobTemplateCommandOutput) => void): void;
97
53
  /**
98
- * @public
99
- * <p>Deletes a managed endpoint. A managed endpoint is a gateway that connects Amazon EMR Studio to
100
- * Amazon EMR on EKS so that Amazon EMR Studio can communicate with your virtual
101
- * cluster.</p>
54
+ * @see {@link DeleteManagedEndpointCommand}
102
55
  */
103
56
  deleteManagedEndpoint(args: DeleteManagedEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DeleteManagedEndpointCommandOutput>;
104
57
  deleteManagedEndpoint(args: DeleteManagedEndpointCommandInput, cb: (err: any, data?: DeleteManagedEndpointCommandOutput) => void): void;
105
58
  deleteManagedEndpoint(args: DeleteManagedEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteManagedEndpointCommandOutput) => void): void;
106
59
  /**
107
- * @public
108
- * <p>Deletes a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, describe, list and delete virtual clusters. They do not consume any
109
- * additional resource in your system. A single virtual cluster maps to a single Kubernetes
110
- * namespace. Given this relationship, you can model virtual clusters the same way you model
111
- * Kubernetes namespaces to meet your requirements.</p>
60
+ * @see {@link DeleteVirtualClusterCommand}
112
61
  */
113
62
  deleteVirtualCluster(args: DeleteVirtualClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteVirtualClusterCommandOutput>;
114
63
  deleteVirtualCluster(args: DeleteVirtualClusterCommandInput, cb: (err: any, data?: DeleteVirtualClusterCommandOutput) => void): void;
115
64
  deleteVirtualCluster(args: DeleteVirtualClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteVirtualClusterCommandOutput) => void): void;
116
65
  /**
117
- * @public
118
- * <p>Displays detailed information about a job run. A job run is a unit of work, such as a
119
- * Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.</p>
66
+ * @see {@link DescribeJobRunCommand}
120
67
  */
121
68
  describeJobRun(args: DescribeJobRunCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobRunCommandOutput>;
122
69
  describeJobRun(args: DescribeJobRunCommandInput, cb: (err: any, data?: DescribeJobRunCommandOutput) => void): void;
123
70
  describeJobRun(args: DescribeJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobRunCommandOutput) => void): void;
124
71
  /**
125
- * @public
126
- * <p>Displays detailed information about a specified job template. Job template stores values
127
- * of StartJobRun API request in a template and can be used to start a job run. Job template
128
- * allows two use cases: avoid repeating recurring StartJobRun API request values, enforcing
129
- * certain values in StartJobRun API request.</p>
72
+ * @see {@link DescribeJobTemplateCommand}
130
73
  */
131
74
  describeJobTemplate(args: DescribeJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobTemplateCommandOutput>;
132
75
  describeJobTemplate(args: DescribeJobTemplateCommandInput, cb: (err: any, data?: DescribeJobTemplateCommandOutput) => void): void;
133
76
  describeJobTemplate(args: DescribeJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobTemplateCommandOutput) => void): void;
134
77
  /**
135
- * @public
136
- * <p>Displays detailed information about a managed endpoint. A managed endpoint is a gateway
137
- * that connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR Studio can communicate with
138
- * your virtual cluster.</p>
78
+ * @see {@link DescribeManagedEndpointCommand}
139
79
  */
140
80
  describeManagedEndpoint(args: DescribeManagedEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DescribeManagedEndpointCommandOutput>;
141
81
  describeManagedEndpoint(args: DescribeManagedEndpointCommandInput, cb: (err: any, data?: DescribeManagedEndpointCommandOutput) => void): void;
142
82
  describeManagedEndpoint(args: DescribeManagedEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeManagedEndpointCommandOutput) => void): void;
143
83
  /**
144
- * @public
145
- * <p>Displays detailed information about a specified virtual cluster. Virtual cluster is a
146
- * managed entity on Amazon EMR on EKS. You can create, describe, list and delete virtual
147
- * clusters. They do not consume any additional resource in your system. A single virtual
148
- * cluster maps to a single Kubernetes namespace. Given this relationship, you can model
149
- * virtual clusters the same way you model Kubernetes namespaces to meet your
150
- * requirements.</p>
84
+ * @see {@link DescribeVirtualClusterCommand}
151
85
  */
152
86
  describeVirtualCluster(args: DescribeVirtualClusterCommandInput, options?: __HttpHandlerOptions): Promise<DescribeVirtualClusterCommandOutput>;
153
87
  describeVirtualCluster(args: DescribeVirtualClusterCommandInput, cb: (err: any, data?: DescribeVirtualClusterCommandOutput) => void): void;
154
88
  describeVirtualCluster(args: DescribeVirtualClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeVirtualClusterCommandOutput) => void): void;
155
89
  /**
156
- * @public
157
- * <p>Lists job runs based on a set of parameters. A job run is a unit of work, such as a
158
- * Spark jar, PySpark script, or SparkSQL query, that you submit to Amazon EMR on EKS.</p>
90
+ * @see {@link ListJobRunsCommand}
159
91
  */
160
92
  listJobRuns(args: ListJobRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobRunsCommandOutput>;
161
93
  listJobRuns(args: ListJobRunsCommandInput, cb: (err: any, data?: ListJobRunsCommandOutput) => void): void;
162
94
  listJobRuns(args: ListJobRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobRunsCommandOutput) => void): void;
163
95
  /**
164
- * @public
165
- * <p>Lists job templates based on a set of parameters. Job template stores values of
166
- * StartJobRun API request in a template and can be used to start a job run. Job template
167
- * allows two use cases: avoid repeating recurring StartJobRun API request values, enforcing
168
- * certain values in StartJobRun API request.</p>
96
+ * @see {@link ListJobTemplatesCommand}
169
97
  */
170
98
  listJobTemplates(args: ListJobTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListJobTemplatesCommandOutput>;
171
99
  listJobTemplates(args: ListJobTemplatesCommandInput, cb: (err: any, data?: ListJobTemplatesCommandOutput) => void): void;
172
100
  listJobTemplates(args: ListJobTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobTemplatesCommandOutput) => void): void;
173
101
  /**
174
- * @public
175
- * <p>Lists managed endpoints based on a set of parameters. A managed endpoint is a gateway
176
- * that connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR Studio can communicate with
177
- * your virtual cluster.</p>
102
+ * @see {@link ListManagedEndpointsCommand}
178
103
  */
179
104
  listManagedEndpoints(args: ListManagedEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedEndpointsCommandOutput>;
180
105
  listManagedEndpoints(args: ListManagedEndpointsCommandInput, cb: (err: any, data?: ListManagedEndpointsCommandOutput) => void): void;
181
106
  listManagedEndpoints(args: ListManagedEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedEndpointsCommandOutput) => void): void;
182
107
  /**
183
- * @public
184
- * <p>Lists the tags assigned to the resources.</p>
108
+ * @see {@link ListTagsForResourceCommand}
185
109
  */
186
110
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
187
111
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
188
112
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
189
113
  /**
190
- * @public
191
- * <p>Lists information about the specified virtual cluster. Virtual cluster is a managed
192
- * entity on Amazon EMR on EKS. You can create, describe, list and delete virtual
193
- * clusters. They do not consume any additional resource in your system. A single virtual
194
- * cluster maps to a single Kubernetes namespace. Given this relationship, you can model
195
- * virtual clusters the same way you model Kubernetes namespaces to meet your
196
- * requirements.</p>
114
+ * @see {@link ListVirtualClustersCommand}
197
115
  */
198
116
  listVirtualClusters(args: ListVirtualClustersCommandInput, options?: __HttpHandlerOptions): Promise<ListVirtualClustersCommandOutput>;
199
117
  listVirtualClusters(args: ListVirtualClustersCommandInput, cb: (err: any, data?: ListVirtualClustersCommandOutput) => void): void;
200
118
  listVirtualClusters(args: ListVirtualClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVirtualClustersCommandOutput) => void): void;
201
119
  /**
202
- * @public
203
- * <p>Starts a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or
204
- * SparkSQL query, that you submit to Amazon EMR on EKS.</p>
120
+ * @see {@link StartJobRunCommand}
205
121
  */
206
122
  startJobRun(args: StartJobRunCommandInput, options?: __HttpHandlerOptions): Promise<StartJobRunCommandOutput>;
207
123
  startJobRun(args: StartJobRunCommandInput, cb: (err: any, data?: StartJobRunCommandOutput) => void): void;
208
124
  startJobRun(args: StartJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartJobRunCommandOutput) => void): void;
209
125
  /**
210
- * @public
211
- * <p>Assigns tags to resources. A tag is a label that you assign to an Amazon Web Services resource. Each tag
212
- * consists of a key and an optional value, both of which you define. Tags enable you to
213
- * categorize your Amazon Web Services resources by attributes such as purpose, owner, or environment. When
214
- * you have many resources of the same type, you can quickly identify a specific resource
215
- * based on the tags you've assigned to it. For example, you can define a set of tags for your
216
- * Amazon EMR on EKS clusters to help you track each cluster's owner and stack level.
217
- * We recommend that you devise a consistent set of tag keys for each resource type. You can
218
- * then search and filter the resources based on the tags that you add.</p>
126
+ * @see {@link TagResourceCommand}
219
127
  */
220
128
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
221
129
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
222
130
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
223
131
  /**
224
- * @public
225
- * <p>Removes tags from resources.</p>
132
+ * @see {@link UntagResourceCommand}
226
133
  */
227
134
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
228
135
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
229
136
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
230
137
  }
138
+ /**
139
+ * @public
140
+ * <p>Amazon EMR on EKS provides a deployment option for Amazon EMR that allows
141
+ * you to run open-source big data frameworks on Amazon Elastic Kubernetes Service (Amazon EKS).
142
+ * With this deployment option, you can focus on running analytics workloads while Amazon EMR on EKS builds, configures, and manages containers for open-source applications.
143
+ * For more information about Amazon EMR on EKS concepts and tasks, see <a href="https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/emr-eks.html">What is
144
+ * shared id="EMR-EKS"/></a>.</p>
145
+ * <p>
146
+ * <i>Amazon EMR containers</i> is the API name for Amazon EMR on EKS.
147
+ * The <code>emr-containers</code> prefix is used in the following scenarios: </p>
148
+ * <ul>
149
+ * <li>
150
+ * <p>It is the prefix in the CLI commands for Amazon EMR on EKS. For example,
151
+ * <code>aws emr-containers start-job-run</code>.</p>
152
+ * </li>
153
+ * <li>
154
+ * <p>It is the prefix before IAM policy actions for Amazon EMR on EKS. For
155
+ * example, <code>"Action": [ "emr-containers:StartJobRun"]</code>. For more
156
+ * information, see <a href="https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-actions">Policy actions for Amazon EMR on EKS</a>.</p>
157
+ * </li>
158
+ * <li>
159
+ * <p>It is the prefix used in Amazon EMR on EKS service endpoints. For example,
160
+ * <code>emr-containers.us-east-2.amazonaws.com</code>. For more information, see
161
+ * <a href="https://docs.aws.amazon.com/emr/latest/EMR-on-EKS-DevelopmentGuide/service-quotas.html#service-endpoints">Amazon EMR on EKSService Endpoints</a>.</p>
162
+ * </li>
163
+ * </ul>
164
+ */
165
+ export declare class EMRContainers extends EMRContainersClient implements EMRContainers {
166
+ }
@@ -76,7 +76,7 @@ import {
76
76
  UntagResourceCommandOutput,
77
77
  } from "./commands/UntagResourceCommand";
78
78
  import { EMRContainersClient } from "./EMRContainersClient";
79
- export declare class EMRContainers extends EMRContainersClient {
79
+ export interface EMRContainers {
80
80
  cancelJobRun(
81
81
  args: CancelJobRunCommandInput,
82
82
  options?: __HttpHandlerOptions
@@ -325,3 +325,6 @@ export declare class EMRContainers extends EMRContainersClient {
325
325
  cb: (err: any, data?: UntagResourceCommandOutput) => void
326
326
  ): void;
327
327
  }
328
+ export declare class EMRContainers
329
+ extends EMRContainersClient
330
+ implements EMRContainers {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-containers",
3
3
  "description": "AWS SDK for JavaScript Emr Containers Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",