@aws-sdk/client-emr-serverless 3.315.0 → 3.316.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.EMRServerless = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CancelJobRunCommand_1 = require("./commands/CancelJobRunCommand");
5
6
  const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
6
7
  const DeleteApplicationCommand_1 = require("./commands/DeleteApplicationCommand");
@@ -17,216 +18,24 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
17
18
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
18
19
  const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand");
19
20
  const EMRServerlessClient_1 = require("./EMRServerlessClient");
21
+ const commands = {
22
+ CancelJobRunCommand: CancelJobRunCommand_1.CancelJobRunCommand,
23
+ CreateApplicationCommand: CreateApplicationCommand_1.CreateApplicationCommand,
24
+ DeleteApplicationCommand: DeleteApplicationCommand_1.DeleteApplicationCommand,
25
+ GetApplicationCommand: GetApplicationCommand_1.GetApplicationCommand,
26
+ GetDashboardForJobRunCommand: GetDashboardForJobRunCommand_1.GetDashboardForJobRunCommand,
27
+ GetJobRunCommand: GetJobRunCommand_1.GetJobRunCommand,
28
+ ListApplicationsCommand: ListApplicationsCommand_1.ListApplicationsCommand,
29
+ ListJobRunsCommand: ListJobRunsCommand_1.ListJobRunsCommand,
30
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
31
+ StartApplicationCommand: StartApplicationCommand_1.StartApplicationCommand,
32
+ StartJobRunCommand: StartJobRunCommand_1.StartJobRunCommand,
33
+ StopApplicationCommand: StopApplicationCommand_1.StopApplicationCommand,
34
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
35
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
36
+ UpdateApplicationCommand: UpdateApplicationCommand_1.UpdateApplicationCommand,
37
+ };
20
38
  class EMRServerless extends EMRServerlessClient_1.EMRServerlessClient {
21
- cancelJobRun(args, optionsOrCb, cb) {
22
- const command = new CancelJobRunCommand_1.CancelJobRunCommand(args);
23
- if (typeof optionsOrCb === "function") {
24
- this.send(command, optionsOrCb);
25
- }
26
- else if (typeof cb === "function") {
27
- if (typeof optionsOrCb !== "object")
28
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
29
- this.send(command, optionsOrCb || {}, cb);
30
- }
31
- else {
32
- return this.send(command, optionsOrCb);
33
- }
34
- }
35
- createApplication(args, optionsOrCb, cb) {
36
- const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
37
- if (typeof optionsOrCb === "function") {
38
- this.send(command, optionsOrCb);
39
- }
40
- else if (typeof cb === "function") {
41
- if (typeof optionsOrCb !== "object")
42
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
- this.send(command, optionsOrCb || {}, cb);
44
- }
45
- else {
46
- return this.send(command, optionsOrCb);
47
- }
48
- }
49
- deleteApplication(args, optionsOrCb, cb) {
50
- const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
51
- if (typeof optionsOrCb === "function") {
52
- this.send(command, optionsOrCb);
53
- }
54
- else if (typeof cb === "function") {
55
- if (typeof optionsOrCb !== "object")
56
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
- this.send(command, optionsOrCb || {}, cb);
58
- }
59
- else {
60
- return this.send(command, optionsOrCb);
61
- }
62
- }
63
- getApplication(args, optionsOrCb, cb) {
64
- const command = new GetApplicationCommand_1.GetApplicationCommand(args);
65
- if (typeof optionsOrCb === "function") {
66
- this.send(command, optionsOrCb);
67
- }
68
- else if (typeof cb === "function") {
69
- if (typeof optionsOrCb !== "object")
70
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
- this.send(command, optionsOrCb || {}, cb);
72
- }
73
- else {
74
- return this.send(command, optionsOrCb);
75
- }
76
- }
77
- getDashboardForJobRun(args, optionsOrCb, cb) {
78
- const command = new GetDashboardForJobRunCommand_1.GetDashboardForJobRunCommand(args);
79
- if (typeof optionsOrCb === "function") {
80
- this.send(command, optionsOrCb);
81
- }
82
- else if (typeof cb === "function") {
83
- if (typeof optionsOrCb !== "object")
84
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
- this.send(command, optionsOrCb || {}, cb);
86
- }
87
- else {
88
- return this.send(command, optionsOrCb);
89
- }
90
- }
91
- getJobRun(args, optionsOrCb, cb) {
92
- const command = new GetJobRunCommand_1.GetJobRunCommand(args);
93
- if (typeof optionsOrCb === "function") {
94
- this.send(command, optionsOrCb);
95
- }
96
- else if (typeof cb === "function") {
97
- if (typeof optionsOrCb !== "object")
98
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
- this.send(command, optionsOrCb || {}, cb);
100
- }
101
- else {
102
- return this.send(command, optionsOrCb);
103
- }
104
- }
105
- listApplications(args, optionsOrCb, cb) {
106
- const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
107
- if (typeof optionsOrCb === "function") {
108
- this.send(command, optionsOrCb);
109
- }
110
- else if (typeof cb === "function") {
111
- if (typeof optionsOrCb !== "object")
112
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
- this.send(command, optionsOrCb || {}, cb);
114
- }
115
- else {
116
- return this.send(command, optionsOrCb);
117
- }
118
- }
119
- listJobRuns(args, optionsOrCb, cb) {
120
- const command = new ListJobRunsCommand_1.ListJobRunsCommand(args);
121
- if (typeof optionsOrCb === "function") {
122
- this.send(command, optionsOrCb);
123
- }
124
- else if (typeof cb === "function") {
125
- if (typeof optionsOrCb !== "object")
126
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
- this.send(command, optionsOrCb || {}, cb);
128
- }
129
- else {
130
- return this.send(command, optionsOrCb);
131
- }
132
- }
133
- listTagsForResource(args, optionsOrCb, cb) {
134
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
135
- if (typeof optionsOrCb === "function") {
136
- this.send(command, optionsOrCb);
137
- }
138
- else if (typeof cb === "function") {
139
- if (typeof optionsOrCb !== "object")
140
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
- this.send(command, optionsOrCb || {}, cb);
142
- }
143
- else {
144
- return this.send(command, optionsOrCb);
145
- }
146
- }
147
- startApplication(args, optionsOrCb, cb) {
148
- const command = new StartApplicationCommand_1.StartApplicationCommand(args);
149
- if (typeof optionsOrCb === "function") {
150
- this.send(command, optionsOrCb);
151
- }
152
- else if (typeof cb === "function") {
153
- if (typeof optionsOrCb !== "object")
154
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
- this.send(command, optionsOrCb || {}, cb);
156
- }
157
- else {
158
- return this.send(command, optionsOrCb);
159
- }
160
- }
161
- startJobRun(args, optionsOrCb, cb) {
162
- const command = new StartJobRunCommand_1.StartJobRunCommand(args);
163
- if (typeof optionsOrCb === "function") {
164
- this.send(command, optionsOrCb);
165
- }
166
- else if (typeof cb === "function") {
167
- if (typeof optionsOrCb !== "object")
168
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
- this.send(command, optionsOrCb || {}, cb);
170
- }
171
- else {
172
- return this.send(command, optionsOrCb);
173
- }
174
- }
175
- stopApplication(args, optionsOrCb, cb) {
176
- const command = new StopApplicationCommand_1.StopApplicationCommand(args);
177
- if (typeof optionsOrCb === "function") {
178
- this.send(command, optionsOrCb);
179
- }
180
- else if (typeof cb === "function") {
181
- if (typeof optionsOrCb !== "object")
182
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
- this.send(command, optionsOrCb || {}, cb);
184
- }
185
- else {
186
- return this.send(command, optionsOrCb);
187
- }
188
- }
189
- tagResource(args, optionsOrCb, cb) {
190
- const command = new TagResourceCommand_1.TagResourceCommand(args);
191
- if (typeof optionsOrCb === "function") {
192
- this.send(command, optionsOrCb);
193
- }
194
- else if (typeof cb === "function") {
195
- if (typeof optionsOrCb !== "object")
196
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
- this.send(command, optionsOrCb || {}, cb);
198
- }
199
- else {
200
- return this.send(command, optionsOrCb);
201
- }
202
- }
203
- untagResource(args, optionsOrCb, cb) {
204
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
205
- if (typeof optionsOrCb === "function") {
206
- this.send(command, optionsOrCb);
207
- }
208
- else if (typeof cb === "function") {
209
- if (typeof optionsOrCb !== "object")
210
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
- this.send(command, optionsOrCb || {}, cb);
212
- }
213
- else {
214
- return this.send(command, optionsOrCb);
215
- }
216
- }
217
- updateApplication(args, optionsOrCb, cb) {
218
- const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args);
219
- if (typeof optionsOrCb === "function") {
220
- this.send(command, optionsOrCb);
221
- }
222
- else if (typeof cb === "function") {
223
- if (typeof optionsOrCb !== "object")
224
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
- this.send(command, optionsOrCb || {}, cb);
226
- }
227
- else {
228
- return this.send(command, optionsOrCb);
229
- }
230
- }
231
39
  }
232
40
  exports.EMRServerless = EMRServerless;
41
+ (0, smithy_client_1.createAggregatedClient)(commands, EMRServerless);
@@ -36,7 +36,7 @@ const se_CreateApplicationCommand = async (input, context) => {
36
36
  architecture: [],
37
37
  autoStartConfiguration: (_) => (0, smithy_client_1._json)(_),
38
38
  autoStopConfiguration: (_) => (0, smithy_client_1._json)(_),
39
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
39
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
40
40
  imageConfiguration: (_) => (0, smithy_client_1._json)(_),
41
41
  initialCapacity: (_) => (0, smithy_client_1._json)(_),
42
42
  maximumCapacity: (_) => (0, smithy_client_1._json)(_),
@@ -226,7 +226,7 @@ const se_StartJobRunCommand = async (input, context) => {
226
226
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
227
227
  let body;
228
228
  body = JSON.stringify((0, smithy_client_1.take)(input, {
229
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
229
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
230
230
  configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
231
231
  executionRoleArn: [],
232
232
  executionTimeoutMinutes: [],
@@ -320,7 +320,7 @@ const se_UpdateApplicationCommand = async (input, context) => {
320
320
  architecture: [],
321
321
  autoStartConfiguration: (_) => (0, smithy_client_1._json)(_),
322
322
  autoStopConfiguration: (_) => (0, smithy_client_1._json)(_),
323
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
323
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
324
324
  imageConfiguration: (_) => (0, smithy_client_1._json)(_),
325
325
  initialCapacity: (_) => (0, smithy_client_1._json)(_),
326
326
  maximumCapacity: (_) => (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 { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
3
4
  import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
@@ -14,215 +15,23 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
14
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
16
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
16
17
  import { EMRServerlessClient } from "./EMRServerlessClient";
18
+ const commands = {
19
+ CancelJobRunCommand,
20
+ CreateApplicationCommand,
21
+ DeleteApplicationCommand,
22
+ GetApplicationCommand,
23
+ GetDashboardForJobRunCommand,
24
+ GetJobRunCommand,
25
+ ListApplicationsCommand,
26
+ ListJobRunsCommand,
27
+ ListTagsForResourceCommand,
28
+ StartApplicationCommand,
29
+ StartJobRunCommand,
30
+ StopApplicationCommand,
31
+ TagResourceCommand,
32
+ UntagResourceCommand,
33
+ UpdateApplicationCommand,
34
+ };
17
35
  export class EMRServerless extends EMRServerlessClient {
18
- cancelJobRun(args, optionsOrCb, cb) {
19
- const command = new CancelJobRunCommand(args);
20
- if (typeof optionsOrCb === "function") {
21
- this.send(command, optionsOrCb);
22
- }
23
- else if (typeof cb === "function") {
24
- if (typeof optionsOrCb !== "object")
25
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26
- this.send(command, optionsOrCb || {}, cb);
27
- }
28
- else {
29
- return this.send(command, optionsOrCb);
30
- }
31
- }
32
- createApplication(args, optionsOrCb, cb) {
33
- const command = new CreateApplicationCommand(args);
34
- if (typeof optionsOrCb === "function") {
35
- this.send(command, optionsOrCb);
36
- }
37
- else if (typeof cb === "function") {
38
- if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
- this.send(command, optionsOrCb || {}, cb);
41
- }
42
- else {
43
- return this.send(command, optionsOrCb);
44
- }
45
- }
46
- deleteApplication(args, optionsOrCb, cb) {
47
- const command = new DeleteApplicationCommand(args);
48
- if (typeof optionsOrCb === "function") {
49
- this.send(command, optionsOrCb);
50
- }
51
- else if (typeof cb === "function") {
52
- if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
- this.send(command, optionsOrCb || {}, cb);
55
- }
56
- else {
57
- return this.send(command, optionsOrCb);
58
- }
59
- }
60
- getApplication(args, optionsOrCb, cb) {
61
- const command = new GetApplicationCommand(args);
62
- if (typeof optionsOrCb === "function") {
63
- this.send(command, optionsOrCb);
64
- }
65
- else if (typeof cb === "function") {
66
- if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
- this.send(command, optionsOrCb || {}, cb);
69
- }
70
- else {
71
- return this.send(command, optionsOrCb);
72
- }
73
- }
74
- getDashboardForJobRun(args, optionsOrCb, cb) {
75
- const command = new GetDashboardForJobRunCommand(args);
76
- if (typeof optionsOrCb === "function") {
77
- this.send(command, optionsOrCb);
78
- }
79
- else if (typeof cb === "function") {
80
- if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
- this.send(command, optionsOrCb || {}, cb);
83
- }
84
- else {
85
- return this.send(command, optionsOrCb);
86
- }
87
- }
88
- getJobRun(args, optionsOrCb, cb) {
89
- const command = new GetJobRunCommand(args);
90
- if (typeof optionsOrCb === "function") {
91
- this.send(command, optionsOrCb);
92
- }
93
- else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- }
98
- else {
99
- return this.send(command, optionsOrCb);
100
- }
101
- }
102
- listApplications(args, optionsOrCb, cb) {
103
- const command = new ListApplicationsCommand(args);
104
- if (typeof optionsOrCb === "function") {
105
- this.send(command, optionsOrCb);
106
- }
107
- else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
- this.send(command, optionsOrCb || {}, cb);
111
- }
112
- else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- listJobRuns(args, optionsOrCb, cb) {
117
- const command = new ListJobRunsCommand(args);
118
- if (typeof optionsOrCb === "function") {
119
- this.send(command, optionsOrCb);
120
- }
121
- else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
- this.send(command, optionsOrCb || {}, cb);
125
- }
126
- else {
127
- return this.send(command, optionsOrCb);
128
- }
129
- }
130
- listTagsForResource(args, optionsOrCb, cb) {
131
- const command = new ListTagsForResourceCommand(args);
132
- if (typeof optionsOrCb === "function") {
133
- this.send(command, optionsOrCb);
134
- }
135
- else if (typeof cb === "function") {
136
- if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- }
140
- else {
141
- return this.send(command, optionsOrCb);
142
- }
143
- }
144
- startApplication(args, optionsOrCb, cb) {
145
- const command = new StartApplicationCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- startJobRun(args, optionsOrCb, cb) {
159
- const command = new StartJobRunCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- stopApplication(args, optionsOrCb, cb) {
173
- const command = new StopApplicationCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- tagResource(args, optionsOrCb, cb) {
187
- const command = new TagResourceCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- untagResource(args, optionsOrCb, cb) {
201
- const command = new UntagResourceCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- updateApplication(args, optionsOrCb, cb) {
215
- const command = new UpdateApplicationCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
36
  }
37
+ createAggregatedClient(commands, EMRServerless);
@@ -32,7 +32,7 @@ export const se_CreateApplicationCommand = async (input, context) => {
32
32
  architecture: [],
33
33
  autoStartConfiguration: (_) => _json(_),
34
34
  autoStopConfiguration: (_) => _json(_),
35
- clientToken: (_) => _ ?? generateIdempotencyToken(),
35
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
36
36
  imageConfiguration: (_) => _json(_),
37
37
  initialCapacity: (_) => _json(_),
38
38
  maximumCapacity: (_) => _json(_),
@@ -213,7 +213,7 @@ export const se_StartJobRunCommand = async (input, context) => {
213
213
  resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
214
214
  let body;
215
215
  body = JSON.stringify(take(input, {
216
- clientToken: (_) => _ ?? generateIdempotencyToken(),
216
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
217
217
  configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
218
218
  executionRoleArn: [],
219
219
  executionTimeoutMinutes: [],
@@ -303,7 +303,7 @@ export const se_UpdateApplicationCommand = async (input, context) => {
303
303
  architecture: [],
304
304
  autoStartConfiguration: (_) => _json(_),
305
305
  autoStopConfiguration: (_) => _json(_),
306
- clientToken: (_) => _ ?? generateIdempotencyToken(),
306
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
307
307
  imageConfiguration: (_) => _json(_),
308
308
  initialCapacity: (_) => _json(_),
309
309
  maximumCapacity: (_) => _json(_),
@@ -15,143 +15,122 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
15
15
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
16
16
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
17
17
  import { EMRServerlessClient } from "./EMRServerlessClient";
18
- /**
19
- * @public
20
- * <p>Amazon EMR Serverless is a new deployment option for Amazon EMR. EMR Serverless provides
21
- * a serverless runtime environment that simplifies running analytics applications using the
22
- * latest open source frameworks such as Apache Spark and Apache Hive. With EMR Serverless,
23
- * you don’t have to configure, optimize, secure, or operate clusters to run applications with
24
- * these frameworks.</p>
25
- * <p>The API reference to Amazon EMR Serverless is <code>emr-serverless</code>. The
26
- * <code>emr-serverless</code> prefix is used in the following scenarios: </p>
27
- * <ul>
28
- * <li>
29
- * <p>It is the prefix in the CLI commands for Amazon EMR Serverless. For example,
30
- * <code>aws emr-serverless start-job-run</code>.</p>
31
- * </li>
32
- * <li>
33
- * <p>It is the prefix before IAM policy actions for Amazon EMR Serverless. For example,
34
- * <code>"Action": ["emr-serverless:StartJobRun"]</code>. For more information, see
35
- * <a href="https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-actions">Policy actions for Amazon EMR Serverless</a>.</p>
36
- * </li>
37
- * <li>
38
- * <p>It is the prefix used in Amazon EMR Serverless service endpoints. For example,
39
- * <code>emr-serverless.us-east-2.amazonaws.com</code>.</p>
40
- * </li>
41
- * </ul>
42
- */
43
- export declare class EMRServerless extends EMRServerlessClient {
18
+ export interface EMRServerless {
44
19
  /**
45
- * @public
46
- * <p>Cancels a job run.</p>
20
+ * @see {@link CancelJobRunCommand}
47
21
  */
48
22
  cancelJobRun(args: CancelJobRunCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobRunCommandOutput>;
49
23
  cancelJobRun(args: CancelJobRunCommandInput, cb: (err: any, data?: CancelJobRunCommandOutput) => void): void;
50
24
  cancelJobRun(args: CancelJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobRunCommandOutput) => void): void;
51
25
  /**
52
- * @public
53
- * <p>Creates an application.</p>
26
+ * @see {@link CreateApplicationCommand}
54
27
  */
55
28
  createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
56
29
  createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
57
30
  createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
58
31
  /**
59
- * @public
60
- * <p>Deletes an application. An application has to be in a stopped or created state in order
61
- * to be deleted.</p>
32
+ * @see {@link DeleteApplicationCommand}
62
33
  */
63
34
  deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
64
35
  deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
65
36
  deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
66
37
  /**
67
- * @public
68
- * <p>Displays detailed information about a specified application.</p>
38
+ * @see {@link GetApplicationCommand}
69
39
  */
70
40
  getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
71
41
  getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
72
42
  getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
73
43
  /**
74
- * @public
75
- * <p>Returns a URL to access the job run dashboard. The generated URL is valid for one hour,
76
- * after which you must invoke the API again to generate a new URL.</p>
44
+ * @see {@link GetDashboardForJobRunCommand}
77
45
  */
78
46
  getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, options?: __HttpHandlerOptions): Promise<GetDashboardForJobRunCommandOutput>;
79
47
  getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void): void;
80
48
  getDashboardForJobRun(args: GetDashboardForJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDashboardForJobRunCommandOutput) => void): void;
81
49
  /**
82
- * @public
83
- * <p>Displays detailed information about a job run.</p>
50
+ * @see {@link GetJobRunCommand}
84
51
  */
85
52
  getJobRun(args: GetJobRunCommandInput, options?: __HttpHandlerOptions): Promise<GetJobRunCommandOutput>;
86
53
  getJobRun(args: GetJobRunCommandInput, cb: (err: any, data?: GetJobRunCommandOutput) => void): void;
87
54
  getJobRun(args: GetJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetJobRunCommandOutput) => void): void;
88
55
  /**
89
- * @public
90
- * <p>Lists applications based on a set of parameters.</p>
56
+ * @see {@link ListApplicationsCommand}
91
57
  */
92
58
  listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
93
59
  listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
94
60
  listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
95
61
  /**
96
- * @public
97
- * <p>Lists job runs based on a set of parameters.</p>
62
+ * @see {@link ListJobRunsCommand}
98
63
  */
99
64
  listJobRuns(args: ListJobRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobRunsCommandOutput>;
100
65
  listJobRuns(args: ListJobRunsCommandInput, cb: (err: any, data?: ListJobRunsCommandOutput) => void): void;
101
66
  listJobRuns(args: ListJobRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobRunsCommandOutput) => void): void;
102
67
  /**
103
- * @public
104
- * <p>Lists the tags assigned to the resources.</p>
68
+ * @see {@link ListTagsForResourceCommand}
105
69
  */
106
70
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
107
71
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
108
72
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
109
73
  /**
110
- * @public
111
- * <p>Starts a specified application and initializes initial capacity if configured.</p>
74
+ * @see {@link StartApplicationCommand}
112
75
  */
113
76
  startApplication(args: StartApplicationCommandInput, options?: __HttpHandlerOptions): Promise<StartApplicationCommandOutput>;
114
77
  startApplication(args: StartApplicationCommandInput, cb: (err: any, data?: StartApplicationCommandOutput) => void): void;
115
78
  startApplication(args: StartApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartApplicationCommandOutput) => void): void;
116
79
  /**
117
- * @public
118
- * <p>Starts a job run.</p>
80
+ * @see {@link StartJobRunCommand}
119
81
  */
120
82
  startJobRun(args: StartJobRunCommandInput, options?: __HttpHandlerOptions): Promise<StartJobRunCommandOutput>;
121
83
  startJobRun(args: StartJobRunCommandInput, cb: (err: any, data?: StartJobRunCommandOutput) => void): void;
122
84
  startJobRun(args: StartJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartJobRunCommandOutput) => void): void;
123
85
  /**
124
- * @public
125
- * <p>Stops a specified application and releases initial capacity if configured. All scheduled
126
- * and running jobs must be completed or cancelled before stopping an application.</p>
86
+ * @see {@link StopApplicationCommand}
127
87
  */
128
88
  stopApplication(args: StopApplicationCommandInput, options?: __HttpHandlerOptions): Promise<StopApplicationCommandOutput>;
129
89
  stopApplication(args: StopApplicationCommandInput, cb: (err: any, data?: StopApplicationCommandOutput) => void): void;
130
90
  stopApplication(args: StopApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopApplicationCommandOutput) => void): void;
131
91
  /**
132
- * @public
133
- * <p>Assigns tags to resources. A tag is a label that you assign to an Amazon Web Services
134
- * resource. Each tag consists of a key and an optional value, both of which you define. Tags
135
- * enable you to categorize your Amazon Web Services resources by attributes such as purpose,
136
- * owner, or environment. When you have many resources of the same type, you can quickly
137
- * identify a specific resource based on the tags you've assigned to it. </p>
92
+ * @see {@link TagResourceCommand}
138
93
  */
139
94
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
140
95
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
141
96
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
142
97
  /**
143
- * @public
144
- * <p>Removes tags from resources.</p>
98
+ * @see {@link UntagResourceCommand}
145
99
  */
146
100
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
147
101
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
148
102
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
149
103
  /**
150
- * @public
151
- * <p>Updates a specified application. An application has to be in a stopped or created state
152
- * in order to be updated.</p>
104
+ * @see {@link UpdateApplicationCommand}
153
105
  */
154
106
  updateApplication(args: UpdateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationCommandOutput>;
155
107
  updateApplication(args: UpdateApplicationCommandInput, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
156
108
  updateApplication(args: UpdateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
157
109
  }
110
+ /**
111
+ * @public
112
+ * <p>Amazon EMR Serverless is a new deployment option for Amazon EMR. EMR Serverless provides
113
+ * a serverless runtime environment that simplifies running analytics applications using the
114
+ * latest open source frameworks such as Apache Spark and Apache Hive. With EMR Serverless,
115
+ * you don’t have to configure, optimize, secure, or operate clusters to run applications with
116
+ * these frameworks.</p>
117
+ * <p>The API reference to Amazon EMR Serverless is <code>emr-serverless</code>. The
118
+ * <code>emr-serverless</code> prefix is used in the following scenarios: </p>
119
+ * <ul>
120
+ * <li>
121
+ * <p>It is the prefix in the CLI commands for Amazon EMR Serverless. For example,
122
+ * <code>aws emr-serverless start-job-run</code>.</p>
123
+ * </li>
124
+ * <li>
125
+ * <p>It is the prefix before IAM policy actions for Amazon EMR Serverless. For example,
126
+ * <code>"Action": ["emr-serverless:StartJobRun"]</code>. For more information, see
127
+ * <a href="https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-actions">Policy actions for Amazon EMR Serverless</a>.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>It is the prefix used in Amazon EMR Serverless service endpoints. For example,
131
+ * <code>emr-serverless.us-east-2.amazonaws.com</code>.</p>
132
+ * </li>
133
+ * </ul>
134
+ */
135
+ export declare class EMRServerless extends EMRServerlessClient implements EMRServerless {
136
+ }
@@ -60,7 +60,7 @@ import {
60
60
  UpdateApplicationCommandOutput,
61
61
  } from "./commands/UpdateApplicationCommand";
62
62
  import { EMRServerlessClient } from "./EMRServerlessClient";
63
- export declare class EMRServerless extends EMRServerlessClient {
63
+ export interface EMRServerless {
64
64
  cancelJobRun(
65
65
  args: CancelJobRunCommandInput,
66
66
  options?: __HttpHandlerOptions
@@ -257,3 +257,6 @@ export declare class EMRServerless extends EMRServerlessClient {
257
257
  cb: (err: any, data?: UpdateApplicationCommandOutput) => void
258
258
  ): void;
259
259
  }
260
+ export declare class EMRServerless
261
+ extends EMRServerlessClient
262
+ implements EMRServerless {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr-serverless",
3
3
  "description": "AWS SDK for JavaScript Emr Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.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.316.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.316.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",
@@ -40,14 +40,14 @@
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",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",