@aws-sdk/client-emr-serverless 3.474.0 → 3.477.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.
|
@@ -2,36 +2,28 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopApplicationCommand = exports.de_StartJobRunCommand = exports.de_StartApplicationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJobRunsCommand = exports.de_ListApplicationsCommand = exports.de_GetJobRunCommand = exports.de_GetDashboardForJobRunCommand = exports.de_GetApplicationCommand = exports.de_DeleteApplicationCommand = exports.de_CreateApplicationCommand = exports.de_CancelJobRunCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopApplicationCommand = exports.se_StartJobRunCommand = exports.se_StartApplicationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListJobRunsCommand = exports.se_ListApplicationsCommand = exports.se_GetJobRunCommand = exports.se_GetDashboardForJobRunCommand = exports.se_GetApplicationCommand = exports.se_DeleteApplicationCommand = exports.se_CreateApplicationCommand = exports.se_CancelJobRunCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const EMRServerlessServiceException_1 = require("../models/EMRServerlessServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CancelJobRunCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
12
|
const headers = {};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
13
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
|
|
14
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
15
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
17
16
|
let body;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "DELETE",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
17
|
+
b.m("DELETE").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
27
19
|
};
|
|
28
20
|
exports.se_CancelJobRunCommand = se_CancelJobRunCommand;
|
|
29
21
|
const se_CreateApplicationCommand = async (input, context) => {
|
|
30
|
-
const
|
|
22
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
31
23
|
const headers = {
|
|
32
24
|
"content-type": "application/json",
|
|
33
25
|
};
|
|
34
|
-
|
|
26
|
+
b.bp("/applications");
|
|
35
27
|
let body;
|
|
36
28
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
29
|
architecture: [],
|
|
@@ -50,183 +42,110 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
50
42
|
type: [],
|
|
51
43
|
workerTypeSpecifications: (_) => (0, smithy_client_1._json)(_),
|
|
52
44
|
}));
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hostname,
|
|
56
|
-
port,
|
|
57
|
-
method: "POST",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
45
|
+
b.m("POST").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
62
47
|
};
|
|
63
48
|
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
64
49
|
const se_DeleteApplicationCommand = async (input, context) => {
|
|
65
|
-
const
|
|
50
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
66
51
|
const headers = {};
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
b.bp("/applications/{applicationId}");
|
|
53
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
69
54
|
let body;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
hostname,
|
|
73
|
-
port,
|
|
74
|
-
method: "DELETE",
|
|
75
|
-
headers,
|
|
76
|
-
path: resolvedPath,
|
|
77
|
-
body,
|
|
78
|
-
});
|
|
55
|
+
b.m("DELETE").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
79
57
|
};
|
|
80
58
|
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
81
59
|
const se_GetApplicationCommand = async (input, context) => {
|
|
82
|
-
const
|
|
60
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
83
61
|
const headers = {};
|
|
84
|
-
|
|
85
|
-
|
|
62
|
+
b.bp("/applications/{applicationId}");
|
|
63
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
86
64
|
let body;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
hostname,
|
|
90
|
-
port,
|
|
91
|
-
method: "GET",
|
|
92
|
-
headers,
|
|
93
|
-
path: resolvedPath,
|
|
94
|
-
body,
|
|
95
|
-
});
|
|
65
|
+
b.m("GET").h(headers).b(body);
|
|
66
|
+
return b.build();
|
|
96
67
|
};
|
|
97
68
|
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
98
69
|
const se_GetDashboardForJobRunCommand = async (input, context) => {
|
|
99
|
-
const
|
|
70
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
100
71
|
const headers = {};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
72
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
|
|
73
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
74
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
105
75
|
let body;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
hostname,
|
|
109
|
-
port,
|
|
110
|
-
method: "GET",
|
|
111
|
-
headers,
|
|
112
|
-
path: resolvedPath,
|
|
113
|
-
body,
|
|
114
|
-
});
|
|
76
|
+
b.m("GET").h(headers).b(body);
|
|
77
|
+
return b.build();
|
|
115
78
|
};
|
|
116
79
|
exports.se_GetDashboardForJobRunCommand = se_GetDashboardForJobRunCommand;
|
|
117
80
|
const se_GetJobRunCommand = async (input, context) => {
|
|
118
|
-
const
|
|
81
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
119
82
|
const headers = {};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
83
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
|
|
84
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
85
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
124
86
|
let body;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
hostname,
|
|
128
|
-
port,
|
|
129
|
-
method: "GET",
|
|
130
|
-
headers,
|
|
131
|
-
path: resolvedPath,
|
|
132
|
-
body,
|
|
133
|
-
});
|
|
87
|
+
b.m("GET").h(headers).b(body);
|
|
88
|
+
return b.build();
|
|
134
89
|
};
|
|
135
90
|
exports.se_GetJobRunCommand = se_GetJobRunCommand;
|
|
136
91
|
const se_ListApplicationsCommand = async (input, context) => {
|
|
137
|
-
const
|
|
92
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
138
93
|
const headers = {};
|
|
139
|
-
|
|
94
|
+
b.bp("/applications");
|
|
140
95
|
const query = (0, smithy_client_1.map)({
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
96
|
+
[_nT]: [, input[_nT]],
|
|
97
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
98
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
144
99
|
});
|
|
145
100
|
let body;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
hostname,
|
|
149
|
-
port,
|
|
150
|
-
method: "GET",
|
|
151
|
-
headers,
|
|
152
|
-
path: resolvedPath,
|
|
153
|
-
query,
|
|
154
|
-
body,
|
|
155
|
-
});
|
|
101
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
102
|
+
return b.build();
|
|
156
103
|
};
|
|
157
104
|
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
158
105
|
const se_ListJobRunsCommand = async (input, context) => {
|
|
159
|
-
const
|
|
106
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
160
107
|
const headers = {};
|
|
161
|
-
|
|
162
|
-
|
|
108
|
+
b.bp("/applications/{applicationId}/jobruns");
|
|
109
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
163
110
|
const query = (0, smithy_client_1.map)({
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
],
|
|
170
|
-
createdAtBefore: [
|
|
171
|
-
() => input.createdAtBefore !== void 0,
|
|
172
|
-
() => (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
173
|
-
],
|
|
174
|
-
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
111
|
+
[_nT]: [, input[_nT]],
|
|
112
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
113
|
+
[_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
|
|
114
|
+
[_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
|
|
115
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
175
116
|
});
|
|
176
117
|
let body;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
hostname,
|
|
180
|
-
port,
|
|
181
|
-
method: "GET",
|
|
182
|
-
headers,
|
|
183
|
-
path: resolvedPath,
|
|
184
|
-
query,
|
|
185
|
-
body,
|
|
186
|
-
});
|
|
118
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
119
|
+
return b.build();
|
|
187
120
|
};
|
|
188
121
|
exports.se_ListJobRunsCommand = se_ListJobRunsCommand;
|
|
189
122
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
190
|
-
const
|
|
123
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
191
124
|
const headers = {};
|
|
192
|
-
|
|
193
|
-
|
|
125
|
+
b.bp("/tags/{resourceArn}");
|
|
126
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
194
127
|
let body;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
hostname,
|
|
198
|
-
port,
|
|
199
|
-
method: "GET",
|
|
200
|
-
headers,
|
|
201
|
-
path: resolvedPath,
|
|
202
|
-
body,
|
|
203
|
-
});
|
|
128
|
+
b.m("GET").h(headers).b(body);
|
|
129
|
+
return b.build();
|
|
204
130
|
};
|
|
205
131
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
206
132
|
const se_StartApplicationCommand = async (input, context) => {
|
|
207
|
-
const
|
|
133
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
208
134
|
const headers = {};
|
|
209
|
-
|
|
210
|
-
|
|
135
|
+
b.bp("/applications/{applicationId}/start");
|
|
136
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
211
137
|
let body;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
hostname,
|
|
215
|
-
port,
|
|
216
|
-
method: "POST",
|
|
217
|
-
headers,
|
|
218
|
-
path: resolvedPath,
|
|
219
|
-
body,
|
|
220
|
-
});
|
|
138
|
+
b.m("POST").h(headers).b(body);
|
|
139
|
+
return b.build();
|
|
221
140
|
};
|
|
222
141
|
exports.se_StartApplicationCommand = se_StartApplicationCommand;
|
|
223
142
|
const se_StartJobRunCommand = async (input, context) => {
|
|
224
|
-
const
|
|
143
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
225
144
|
const headers = {
|
|
226
145
|
"content-type": "application/json",
|
|
227
146
|
};
|
|
228
|
-
|
|
229
|
-
|
|
147
|
+
b.bp("/applications/{applicationId}/jobruns");
|
|
148
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
230
149
|
let body;
|
|
231
150
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
232
151
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -237,87 +156,58 @@ const se_StartJobRunCommand = async (input, context) => {
|
|
|
237
156
|
name: [],
|
|
238
157
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
239
158
|
}));
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "POST",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
body,
|
|
248
|
-
});
|
|
159
|
+
b.m("POST").h(headers).b(body);
|
|
160
|
+
return b.build();
|
|
249
161
|
};
|
|
250
162
|
exports.se_StartJobRunCommand = se_StartJobRunCommand;
|
|
251
163
|
const se_StopApplicationCommand = async (input, context) => {
|
|
252
|
-
const
|
|
164
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
253
165
|
const headers = {};
|
|
254
|
-
|
|
255
|
-
|
|
166
|
+
b.bp("/applications/{applicationId}/stop");
|
|
167
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
256
168
|
let body;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
hostname,
|
|
260
|
-
port,
|
|
261
|
-
method: "POST",
|
|
262
|
-
headers,
|
|
263
|
-
path: resolvedPath,
|
|
264
|
-
body,
|
|
265
|
-
});
|
|
169
|
+
b.m("POST").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
266
171
|
};
|
|
267
172
|
exports.se_StopApplicationCommand = se_StopApplicationCommand;
|
|
268
173
|
const se_TagResourceCommand = async (input, context) => {
|
|
269
|
-
const
|
|
174
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
270
175
|
const headers = {
|
|
271
176
|
"content-type": "application/json",
|
|
272
177
|
};
|
|
273
|
-
|
|
274
|
-
|
|
178
|
+
b.bp("/tags/{resourceArn}");
|
|
179
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
275
180
|
let body;
|
|
276
181
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
277
182
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
278
183
|
}));
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
hostname,
|
|
282
|
-
port,
|
|
283
|
-
method: "POST",
|
|
284
|
-
headers,
|
|
285
|
-
path: resolvedPath,
|
|
286
|
-
body,
|
|
287
|
-
});
|
|
184
|
+
b.m("POST").h(headers).b(body);
|
|
185
|
+
return b.build();
|
|
288
186
|
};
|
|
289
187
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
290
188
|
const se_UntagResourceCommand = async (input, context) => {
|
|
291
|
-
const
|
|
189
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
292
190
|
const headers = {};
|
|
293
|
-
|
|
294
|
-
|
|
191
|
+
b.bp("/tags/{resourceArn}");
|
|
192
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
295
193
|
const query = (0, smithy_client_1.map)({
|
|
296
|
-
|
|
194
|
+
[_tK]: [
|
|
297
195
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
298
|
-
() => (input
|
|
196
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
299
197
|
],
|
|
300
198
|
});
|
|
301
199
|
let body;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
hostname,
|
|
305
|
-
port,
|
|
306
|
-
method: "DELETE",
|
|
307
|
-
headers,
|
|
308
|
-
path: resolvedPath,
|
|
309
|
-
query,
|
|
310
|
-
body,
|
|
311
|
-
});
|
|
200
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
201
|
+
return b.build();
|
|
312
202
|
};
|
|
313
203
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
314
204
|
const se_UpdateApplicationCommand = async (input, context) => {
|
|
315
|
-
const
|
|
205
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
316
206
|
const headers = {
|
|
317
207
|
"content-type": "application/json",
|
|
318
208
|
};
|
|
319
|
-
|
|
320
|
-
|
|
209
|
+
b.bp("/applications/{applicationId}");
|
|
210
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
321
211
|
let body;
|
|
322
212
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
323
213
|
architecture: [],
|
|
@@ -333,15 +223,8 @@ const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
333
223
|
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
334
224
|
workerTypeSpecifications: (_) => (0, smithy_client_1._json)(_),
|
|
335
225
|
}));
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
hostname,
|
|
339
|
-
port,
|
|
340
|
-
method: "PATCH",
|
|
341
|
-
headers,
|
|
342
|
-
path: resolvedPath,
|
|
343
|
-
body,
|
|
344
|
-
});
|
|
226
|
+
b.m("PATCH").h(headers).b(body);
|
|
227
|
+
return b.build();
|
|
345
228
|
};
|
|
346
229
|
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
347
230
|
const de_CancelJobRunCommand = async (output, context) => {
|
|
@@ -1160,6 +1043,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1160
1043
|
value !== "" &&
|
|
1161
1044
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1162
1045
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1046
|
+
const _cAA = "createdAtAfter";
|
|
1047
|
+
const _cAB = "createdAtBefore";
|
|
1048
|
+
const _mR = "maxResults";
|
|
1049
|
+
const _nT = "nextToken";
|
|
1050
|
+
const _s = "states";
|
|
1051
|
+
const _tK = "tagKeys";
|
|
1163
1052
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1164
1053
|
if (encoded.length) {
|
|
1165
1054
|
return JSON.parse(encoded);
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { EMRServerlessServiceException as __BaseException } from "../models/EMRServerlessServiceException";
|
|
6
6
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export const se_CancelJobRunCommand = async (input, context) => {
|
|
8
|
-
const
|
|
8
|
+
const b = rb(input, context);
|
|
9
9
|
const headers = {};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
10
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
|
|
11
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
12
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
14
13
|
let body;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "DELETE",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
14
|
+
b.m("DELETE").h(headers).b(body);
|
|
15
|
+
return b.build();
|
|
24
16
|
};
|
|
25
17
|
export const se_CreateApplicationCommand = async (input, context) => {
|
|
26
|
-
const
|
|
18
|
+
const b = rb(input, context);
|
|
27
19
|
const headers = {
|
|
28
20
|
"content-type": "application/json",
|
|
29
21
|
};
|
|
30
|
-
|
|
22
|
+
b.bp("/applications");
|
|
31
23
|
let body;
|
|
32
24
|
body = JSON.stringify(take(input, {
|
|
33
25
|
architecture: [],
|
|
@@ -46,174 +38,101 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
46
38
|
type: [],
|
|
47
39
|
workerTypeSpecifications: (_) => _json(_),
|
|
48
40
|
}));
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
hostname,
|
|
52
|
-
port,
|
|
53
|
-
method: "POST",
|
|
54
|
-
headers,
|
|
55
|
-
path: resolvedPath,
|
|
56
|
-
body,
|
|
57
|
-
});
|
|
41
|
+
b.m("POST").h(headers).b(body);
|
|
42
|
+
return b.build();
|
|
58
43
|
};
|
|
59
44
|
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
60
|
-
const
|
|
45
|
+
const b = rb(input, context);
|
|
61
46
|
const headers = {};
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
b.bp("/applications/{applicationId}");
|
|
48
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
64
49
|
let body;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
hostname,
|
|
68
|
-
port,
|
|
69
|
-
method: "DELETE",
|
|
70
|
-
headers,
|
|
71
|
-
path: resolvedPath,
|
|
72
|
-
body,
|
|
73
|
-
});
|
|
50
|
+
b.m("DELETE").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
74
52
|
};
|
|
75
53
|
export const se_GetApplicationCommand = async (input, context) => {
|
|
76
|
-
const
|
|
54
|
+
const b = rb(input, context);
|
|
77
55
|
const headers = {};
|
|
78
|
-
|
|
79
|
-
|
|
56
|
+
b.bp("/applications/{applicationId}");
|
|
57
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
80
58
|
let body;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
hostname,
|
|
84
|
-
port,
|
|
85
|
-
method: "GET",
|
|
86
|
-
headers,
|
|
87
|
-
path: resolvedPath,
|
|
88
|
-
body,
|
|
89
|
-
});
|
|
59
|
+
b.m("GET").h(headers).b(body);
|
|
60
|
+
return b.build();
|
|
90
61
|
};
|
|
91
62
|
export const se_GetDashboardForJobRunCommand = async (input, context) => {
|
|
92
|
-
const
|
|
63
|
+
const b = rb(input, context);
|
|
93
64
|
const headers = {};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
65
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
|
|
66
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
67
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
98
68
|
let body;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
hostname,
|
|
102
|
-
port,
|
|
103
|
-
method: "GET",
|
|
104
|
-
headers,
|
|
105
|
-
path: resolvedPath,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
69
|
+
b.m("GET").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
108
71
|
};
|
|
109
72
|
export const se_GetJobRunCommand = async (input, context) => {
|
|
110
|
-
const
|
|
73
|
+
const b = rb(input, context);
|
|
111
74
|
const headers = {};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
75
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
|
|
76
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
77
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
116
78
|
let body;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
hostname,
|
|
120
|
-
port,
|
|
121
|
-
method: "GET",
|
|
122
|
-
headers,
|
|
123
|
-
path: resolvedPath,
|
|
124
|
-
body,
|
|
125
|
-
});
|
|
79
|
+
b.m("GET").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
126
81
|
};
|
|
127
82
|
export const se_ListApplicationsCommand = async (input, context) => {
|
|
128
|
-
const
|
|
83
|
+
const b = rb(input, context);
|
|
129
84
|
const headers = {};
|
|
130
|
-
|
|
85
|
+
b.bp("/applications");
|
|
131
86
|
const query = map({
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
87
|
+
[_nT]: [, input[_nT]],
|
|
88
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
89
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
135
90
|
});
|
|
136
91
|
let body;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
hostname,
|
|
140
|
-
port,
|
|
141
|
-
method: "GET",
|
|
142
|
-
headers,
|
|
143
|
-
path: resolvedPath,
|
|
144
|
-
query,
|
|
145
|
-
body,
|
|
146
|
-
});
|
|
92
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
93
|
+
return b.build();
|
|
147
94
|
};
|
|
148
95
|
export const se_ListJobRunsCommand = async (input, context) => {
|
|
149
|
-
const
|
|
96
|
+
const b = rb(input, context);
|
|
150
97
|
const headers = {};
|
|
151
|
-
|
|
152
|
-
|
|
98
|
+
b.bp("/applications/{applicationId}/jobruns");
|
|
99
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
153
100
|
const query = map({
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
],
|
|
160
|
-
createdAtBefore: [
|
|
161
|
-
() => input.createdAtBefore !== void 0,
|
|
162
|
-
() => (input.createdAtBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
163
|
-
],
|
|
164
|
-
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
101
|
+
[_nT]: [, input[_nT]],
|
|
102
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
103
|
+
[_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
|
|
104
|
+
[_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
|
|
105
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
165
106
|
});
|
|
166
107
|
let body;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
hostname,
|
|
170
|
-
port,
|
|
171
|
-
method: "GET",
|
|
172
|
-
headers,
|
|
173
|
-
path: resolvedPath,
|
|
174
|
-
query,
|
|
175
|
-
body,
|
|
176
|
-
});
|
|
108
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
109
|
+
return b.build();
|
|
177
110
|
};
|
|
178
111
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
179
|
-
const
|
|
112
|
+
const b = rb(input, context);
|
|
180
113
|
const headers = {};
|
|
181
|
-
|
|
182
|
-
|
|
114
|
+
b.bp("/tags/{resourceArn}");
|
|
115
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
183
116
|
let body;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
hostname,
|
|
187
|
-
port,
|
|
188
|
-
method: "GET",
|
|
189
|
-
headers,
|
|
190
|
-
path: resolvedPath,
|
|
191
|
-
body,
|
|
192
|
-
});
|
|
117
|
+
b.m("GET").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
193
119
|
};
|
|
194
120
|
export const se_StartApplicationCommand = async (input, context) => {
|
|
195
|
-
const
|
|
121
|
+
const b = rb(input, context);
|
|
196
122
|
const headers = {};
|
|
197
|
-
|
|
198
|
-
|
|
123
|
+
b.bp("/applications/{applicationId}/start");
|
|
124
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
199
125
|
let body;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
hostname,
|
|
203
|
-
port,
|
|
204
|
-
method: "POST",
|
|
205
|
-
headers,
|
|
206
|
-
path: resolvedPath,
|
|
207
|
-
body,
|
|
208
|
-
});
|
|
126
|
+
b.m("POST").h(headers).b(body);
|
|
127
|
+
return b.build();
|
|
209
128
|
};
|
|
210
129
|
export const se_StartJobRunCommand = async (input, context) => {
|
|
211
|
-
const
|
|
130
|
+
const b = rb(input, context);
|
|
212
131
|
const headers = {
|
|
213
132
|
"content-type": "application/json",
|
|
214
133
|
};
|
|
215
|
-
|
|
216
|
-
|
|
134
|
+
b.bp("/applications/{applicationId}/jobruns");
|
|
135
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
217
136
|
let body;
|
|
218
137
|
body = JSON.stringify(take(input, {
|
|
219
138
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -224,83 +143,54 @@ export const se_StartJobRunCommand = async (input, context) => {
|
|
|
224
143
|
name: [],
|
|
225
144
|
tags: (_) => _json(_),
|
|
226
145
|
}));
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
hostname,
|
|
230
|
-
port,
|
|
231
|
-
method: "POST",
|
|
232
|
-
headers,
|
|
233
|
-
path: resolvedPath,
|
|
234
|
-
body,
|
|
235
|
-
});
|
|
146
|
+
b.m("POST").h(headers).b(body);
|
|
147
|
+
return b.build();
|
|
236
148
|
};
|
|
237
149
|
export const se_StopApplicationCommand = async (input, context) => {
|
|
238
|
-
const
|
|
150
|
+
const b = rb(input, context);
|
|
239
151
|
const headers = {};
|
|
240
|
-
|
|
241
|
-
|
|
152
|
+
b.bp("/applications/{applicationId}/stop");
|
|
153
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
242
154
|
let body;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
hostname,
|
|
246
|
-
port,
|
|
247
|
-
method: "POST",
|
|
248
|
-
headers,
|
|
249
|
-
path: resolvedPath,
|
|
250
|
-
body,
|
|
251
|
-
});
|
|
155
|
+
b.m("POST").h(headers).b(body);
|
|
156
|
+
return b.build();
|
|
252
157
|
};
|
|
253
158
|
export const se_TagResourceCommand = async (input, context) => {
|
|
254
|
-
const
|
|
159
|
+
const b = rb(input, context);
|
|
255
160
|
const headers = {
|
|
256
161
|
"content-type": "application/json",
|
|
257
162
|
};
|
|
258
|
-
|
|
259
|
-
|
|
163
|
+
b.bp("/tags/{resourceArn}");
|
|
164
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
260
165
|
let body;
|
|
261
166
|
body = JSON.stringify(take(input, {
|
|
262
167
|
tags: (_) => _json(_),
|
|
263
168
|
}));
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
hostname,
|
|
267
|
-
port,
|
|
268
|
-
method: "POST",
|
|
269
|
-
headers,
|
|
270
|
-
path: resolvedPath,
|
|
271
|
-
body,
|
|
272
|
-
});
|
|
169
|
+
b.m("POST").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
273
171
|
};
|
|
274
172
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
275
|
-
const
|
|
173
|
+
const b = rb(input, context);
|
|
276
174
|
const headers = {};
|
|
277
|
-
|
|
278
|
-
|
|
175
|
+
b.bp("/tags/{resourceArn}");
|
|
176
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
279
177
|
const query = map({
|
|
280
|
-
|
|
178
|
+
[_tK]: [
|
|
281
179
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
282
|
-
() => (input
|
|
180
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
283
181
|
],
|
|
284
182
|
});
|
|
285
183
|
let body;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
hostname,
|
|
289
|
-
port,
|
|
290
|
-
method: "DELETE",
|
|
291
|
-
headers,
|
|
292
|
-
path: resolvedPath,
|
|
293
|
-
query,
|
|
294
|
-
body,
|
|
295
|
-
});
|
|
184
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
185
|
+
return b.build();
|
|
296
186
|
};
|
|
297
187
|
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
298
|
-
const
|
|
188
|
+
const b = rb(input, context);
|
|
299
189
|
const headers = {
|
|
300
190
|
"content-type": "application/json",
|
|
301
191
|
};
|
|
302
|
-
|
|
303
|
-
|
|
192
|
+
b.bp("/applications/{applicationId}");
|
|
193
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
304
194
|
let body;
|
|
305
195
|
body = JSON.stringify(take(input, {
|
|
306
196
|
architecture: [],
|
|
@@ -316,15 +206,8 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
316
206
|
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
317
207
|
workerTypeSpecifications: (_) => _json(_),
|
|
318
208
|
}));
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
hostname,
|
|
322
|
-
port,
|
|
323
|
-
method: "PATCH",
|
|
324
|
-
headers,
|
|
325
|
-
path: resolvedPath,
|
|
326
|
-
body,
|
|
327
|
-
});
|
|
209
|
+
b.m("PATCH").h(headers).b(body);
|
|
210
|
+
return b.build();
|
|
328
211
|
};
|
|
329
212
|
export const de_CancelJobRunCommand = async (output, context) => {
|
|
330
213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1127,6 +1010,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1127
1010
|
value !== "" &&
|
|
1128
1011
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1129
1012
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1013
|
+
const _cAA = "createdAtAfter";
|
|
1014
|
+
const _cAB = "createdAtBefore";
|
|
1015
|
+
const _mR = "maxResults";
|
|
1016
|
+
const _nT = "nextToken";
|
|
1017
|
+
const _s = "states";
|
|
1018
|
+
const _tK = "tagKeys";
|
|
1130
1019
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1131
1020
|
if (encoded.length) {
|
|
1132
1021
|
return JSON.parse(encoded);
|
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.
|
|
4
|
+
"version": "3.477.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|