@aws-sdk/client-emr-serverless 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/EMRServerless.js +1 -41
- package/dist-cjs/EMRServerlessClient.js +1 -43
- package/dist-cjs/commands/CancelJobRunCommand.js +1 -28
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -29
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/GetApplicationCommand.js +1 -29
- package/dist-cjs/commands/GetDashboardForJobRunCommand.js +1 -28
- package/dist-cjs/commands/GetJobRunCommand.js +1 -29
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListJobRunsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/StartApplicationCommand.js +1 -28
- package/dist-cjs/commands/StartJobRunCommand.js +1 -29
- package/dist-cjs/commands/StopApplicationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -18
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1760 -11
- package/dist-cjs/models/EMRServerlessServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -193
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListJobRunsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -6
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1091
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1761 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ApplicationFilterSensitiveLog: () => ApplicationFilterSensitiveLog,
|
|
25
|
+
ApplicationState: () => ApplicationState,
|
|
26
|
+
Architecture: () => Architecture,
|
|
27
|
+
CancelJobRunCommand: () => CancelJobRunCommand,
|
|
28
|
+
ConfigurationFilterSensitiveLog: () => ConfigurationFilterSensitiveLog,
|
|
29
|
+
ConfigurationOverridesFilterSensitiveLog: () => ConfigurationOverridesFilterSensitiveLog,
|
|
30
|
+
ConflictException: () => ConflictException,
|
|
31
|
+
CreateApplicationCommand: () => CreateApplicationCommand,
|
|
32
|
+
CreateApplicationRequestFilterSensitiveLog: () => CreateApplicationRequestFilterSensitiveLog,
|
|
33
|
+
DeleteApplicationCommand: () => DeleteApplicationCommand,
|
|
34
|
+
EMRServerless: () => EMRServerless,
|
|
35
|
+
EMRServerlessClient: () => EMRServerlessClient,
|
|
36
|
+
EMRServerlessServiceException: () => EMRServerlessServiceException,
|
|
37
|
+
GetApplicationCommand: () => GetApplicationCommand,
|
|
38
|
+
GetApplicationResponseFilterSensitiveLog: () => GetApplicationResponseFilterSensitiveLog,
|
|
39
|
+
GetDashboardForJobRunCommand: () => GetDashboardForJobRunCommand,
|
|
40
|
+
GetJobRunCommand: () => GetJobRunCommand,
|
|
41
|
+
GetJobRunResponseFilterSensitiveLog: () => GetJobRunResponseFilterSensitiveLog,
|
|
42
|
+
HiveFilterSensitiveLog: () => HiveFilterSensitiveLog,
|
|
43
|
+
InternalServerException: () => InternalServerException,
|
|
44
|
+
JobDriver: () => JobDriver,
|
|
45
|
+
JobDriverFilterSensitiveLog: () => JobDriverFilterSensitiveLog,
|
|
46
|
+
JobRunFilterSensitiveLog: () => JobRunFilterSensitiveLog,
|
|
47
|
+
JobRunState: () => JobRunState,
|
|
48
|
+
ListApplicationsCommand: () => ListApplicationsCommand,
|
|
49
|
+
ListJobRunsCommand: () => ListJobRunsCommand,
|
|
50
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
51
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
53
|
+
SparkSubmitFilterSensitiveLog: () => SparkSubmitFilterSensitiveLog,
|
|
54
|
+
StartApplicationCommand: () => StartApplicationCommand,
|
|
55
|
+
StartJobRunCommand: () => StartJobRunCommand,
|
|
56
|
+
StartJobRunRequestFilterSensitiveLog: () => StartJobRunRequestFilterSensitiveLog,
|
|
57
|
+
StopApplicationCommand: () => StopApplicationCommand,
|
|
58
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
59
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
60
|
+
UpdateApplicationCommand: () => UpdateApplicationCommand,
|
|
61
|
+
UpdateApplicationRequestFilterSensitiveLog: () => UpdateApplicationRequestFilterSensitiveLog,
|
|
62
|
+
UpdateApplicationResponseFilterSensitiveLog: () => UpdateApplicationResponseFilterSensitiveLog,
|
|
63
|
+
ValidationException: () => ValidationException,
|
|
64
|
+
__Client: () => import_smithy_client.Client,
|
|
65
|
+
paginateListApplications: () => paginateListApplications,
|
|
66
|
+
paginateListJobRuns: () => paginateListJobRuns
|
|
67
|
+
});
|
|
68
|
+
module.exports = __toCommonJS(src_exports);
|
|
69
|
+
|
|
70
|
+
// src/EMRServerlessClient.ts
|
|
71
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
72
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
73
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
74
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
75
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
76
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
77
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
78
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
79
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// src/endpoint/EndpointParameters.ts
|
|
83
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
84
|
+
return {
|
|
85
|
+
...options,
|
|
86
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
87
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
88
|
+
defaultSigningName: "emr-serverless"
|
|
89
|
+
};
|
|
90
|
+
}, "resolveClientEndpointParameters");
|
|
91
|
+
var commonParams = {
|
|
92
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
93
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
94
|
+
Region: { type: "builtInParams", name: "region" },
|
|
95
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// src/EMRServerlessClient.ts
|
|
99
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
100
|
+
|
|
101
|
+
// src/runtimeExtensions.ts
|
|
102
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
103
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
104
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
105
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
106
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
107
|
+
const extensionConfiguration = {
|
|
108
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
109
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
111
|
+
};
|
|
112
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
113
|
+
return {
|
|
114
|
+
...runtimeConfig,
|
|
115
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
116
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
117
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
118
|
+
};
|
|
119
|
+
}, "resolveRuntimeExtensions");
|
|
120
|
+
|
|
121
|
+
// src/EMRServerlessClient.ts
|
|
122
|
+
var _EMRServerlessClient = class _EMRServerlessClient extends import_smithy_client.Client {
|
|
123
|
+
constructor(...[configuration]) {
|
|
124
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
125
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
126
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
127
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
128
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
129
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
130
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
131
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
132
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
133
|
+
super(_config_8);
|
|
134
|
+
this.config = _config_8;
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
145
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
146
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
147
|
+
*/
|
|
148
|
+
destroy() {
|
|
149
|
+
super.destroy();
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
__name(_EMRServerlessClient, "EMRServerlessClient");
|
|
153
|
+
var EMRServerlessClient = _EMRServerlessClient;
|
|
154
|
+
|
|
155
|
+
// src/EMRServerless.ts
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// src/commands/CancelJobRunCommand.ts
|
|
159
|
+
|
|
160
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
161
|
+
|
|
162
|
+
var import_types = require("@smithy/types");
|
|
163
|
+
|
|
164
|
+
// src/protocols/Aws_restJson1.ts
|
|
165
|
+
var import_core = require("@aws-sdk/core");
|
|
166
|
+
var import_core2 = require("@smithy/core");
|
|
167
|
+
|
|
168
|
+
var import_uuid = require("uuid");
|
|
169
|
+
|
|
170
|
+
// src/models/EMRServerlessServiceException.ts
|
|
171
|
+
|
|
172
|
+
var _EMRServerlessServiceException = class _EMRServerlessServiceException extends import_smithy_client.ServiceException {
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
constructor(options) {
|
|
177
|
+
super(options);
|
|
178
|
+
Object.setPrototypeOf(this, _EMRServerlessServiceException.prototype);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
__name(_EMRServerlessServiceException, "EMRServerlessServiceException");
|
|
182
|
+
var EMRServerlessServiceException = _EMRServerlessServiceException;
|
|
183
|
+
|
|
184
|
+
// src/models/models_0.ts
|
|
185
|
+
|
|
186
|
+
var Architecture = {
|
|
187
|
+
ARM64: "ARM64",
|
|
188
|
+
X86_64: "X86_64"
|
|
189
|
+
};
|
|
190
|
+
var ApplicationState = {
|
|
191
|
+
CREATED: "CREATED",
|
|
192
|
+
CREATING: "CREATING",
|
|
193
|
+
STARTED: "STARTED",
|
|
194
|
+
STARTING: "STARTING",
|
|
195
|
+
STOPPED: "STOPPED",
|
|
196
|
+
STOPPING: "STOPPING",
|
|
197
|
+
TERMINATED: "TERMINATED"
|
|
198
|
+
};
|
|
199
|
+
var _ConflictException = class _ConflictException extends EMRServerlessServiceException {
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "ConflictException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts
|
|
208
|
+
});
|
|
209
|
+
this.name = "ConflictException";
|
|
210
|
+
this.$fault = "client";
|
|
211
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
__name(_ConflictException, "ConflictException");
|
|
215
|
+
var ConflictException = _ConflictException;
|
|
216
|
+
var _InternalServerException = class _InternalServerException extends EMRServerlessServiceException {
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
constructor(opts) {
|
|
221
|
+
super({
|
|
222
|
+
name: "InternalServerException",
|
|
223
|
+
$fault: "server",
|
|
224
|
+
...opts
|
|
225
|
+
});
|
|
226
|
+
this.name = "InternalServerException";
|
|
227
|
+
this.$fault = "server";
|
|
228
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
__name(_InternalServerException, "InternalServerException");
|
|
232
|
+
var InternalServerException = _InternalServerException;
|
|
233
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends EMRServerlessServiceException {
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "ResourceNotFoundException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts
|
|
242
|
+
});
|
|
243
|
+
this.name = "ResourceNotFoundException";
|
|
244
|
+
this.$fault = "client";
|
|
245
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
249
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
250
|
+
var _ValidationException = class _ValidationException extends EMRServerlessServiceException {
|
|
251
|
+
/**
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "ValidationException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts
|
|
259
|
+
});
|
|
260
|
+
this.name = "ValidationException";
|
|
261
|
+
this.$fault = "client";
|
|
262
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
__name(_ValidationException, "ValidationException");
|
|
266
|
+
var ValidationException = _ValidationException;
|
|
267
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends EMRServerlessServiceException {
|
|
268
|
+
/**
|
|
269
|
+
* @internal
|
|
270
|
+
*/
|
|
271
|
+
constructor(opts) {
|
|
272
|
+
super({
|
|
273
|
+
name: "ServiceQuotaExceededException",
|
|
274
|
+
$fault: "client",
|
|
275
|
+
...opts
|
|
276
|
+
});
|
|
277
|
+
this.name = "ServiceQuotaExceededException";
|
|
278
|
+
this.$fault = "client";
|
|
279
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
283
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
284
|
+
var JobDriver;
|
|
285
|
+
((JobDriver3) => {
|
|
286
|
+
JobDriver3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
287
|
+
if (value.sparkSubmit !== void 0)
|
|
288
|
+
return visitor.sparkSubmit(value.sparkSubmit);
|
|
289
|
+
if (value.hive !== void 0)
|
|
290
|
+
return visitor.hive(value.hive);
|
|
291
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
292
|
+
}, "visit");
|
|
293
|
+
})(JobDriver || (JobDriver = {}));
|
|
294
|
+
var JobRunState = {
|
|
295
|
+
CANCELLED: "CANCELLED",
|
|
296
|
+
CANCELLING: "CANCELLING",
|
|
297
|
+
FAILED: "FAILED",
|
|
298
|
+
PENDING: "PENDING",
|
|
299
|
+
RUNNING: "RUNNING",
|
|
300
|
+
SCHEDULED: "SCHEDULED",
|
|
301
|
+
SUBMITTED: "SUBMITTED",
|
|
302
|
+
SUCCESS: "SUCCESS"
|
|
303
|
+
};
|
|
304
|
+
var HiveFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
305
|
+
...obj,
|
|
306
|
+
...obj.query && { query: import_smithy_client.SENSITIVE_STRING },
|
|
307
|
+
...obj.initQueryFile && { initQueryFile: import_smithy_client.SENSITIVE_STRING },
|
|
308
|
+
...obj.parameters && { parameters: import_smithy_client.SENSITIVE_STRING }
|
|
309
|
+
}), "HiveFilterSensitiveLog");
|
|
310
|
+
var SparkSubmitFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
311
|
+
...obj,
|
|
312
|
+
...obj.entryPoint && { entryPoint: import_smithy_client.SENSITIVE_STRING },
|
|
313
|
+
...obj.entryPointArguments && { entryPointArguments: import_smithy_client.SENSITIVE_STRING },
|
|
314
|
+
...obj.sparkSubmitParameters && { sparkSubmitParameters: import_smithy_client.SENSITIVE_STRING }
|
|
315
|
+
}), "SparkSubmitFilterSensitiveLog");
|
|
316
|
+
var JobDriverFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
317
|
+
if (obj.sparkSubmit !== void 0)
|
|
318
|
+
return { sparkSubmit: SparkSubmitFilterSensitiveLog(obj.sparkSubmit) };
|
|
319
|
+
if (obj.hive !== void 0)
|
|
320
|
+
return { hive: HiveFilterSensitiveLog(obj.hive) };
|
|
321
|
+
if (obj.$unknown !== void 0)
|
|
322
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
323
|
+
}, "JobDriverFilterSensitiveLog");
|
|
324
|
+
var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
325
|
+
...obj,
|
|
326
|
+
...obj.properties && { properties: import_smithy_client.SENSITIVE_STRING },
|
|
327
|
+
...obj.configurations && {
|
|
328
|
+
configurations: obj.configurations.map((item) => ConfigurationFilterSensitiveLog(item))
|
|
329
|
+
}
|
|
330
|
+
}), "ConfigurationFilterSensitiveLog");
|
|
331
|
+
var ApplicationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
332
|
+
...obj,
|
|
333
|
+
...obj.runtimeConfiguration && {
|
|
334
|
+
runtimeConfiguration: obj.runtimeConfiguration.map((item) => ConfigurationFilterSensitiveLog(item))
|
|
335
|
+
}
|
|
336
|
+
}), "ApplicationFilterSensitiveLog");
|
|
337
|
+
var ConfigurationOverridesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
338
|
+
...obj,
|
|
339
|
+
...obj.applicationConfiguration && {
|
|
340
|
+
applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item))
|
|
341
|
+
}
|
|
342
|
+
}), "ConfigurationOverridesFilterSensitiveLog");
|
|
343
|
+
var CreateApplicationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
...obj.runtimeConfiguration && {
|
|
346
|
+
runtimeConfiguration: obj.runtimeConfiguration.map((item) => ConfigurationFilterSensitiveLog(item))
|
|
347
|
+
}
|
|
348
|
+
}), "CreateApplicationRequestFilterSensitiveLog");
|
|
349
|
+
var UpdateApplicationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
350
|
+
...obj,
|
|
351
|
+
...obj.runtimeConfiguration && {
|
|
352
|
+
runtimeConfiguration: obj.runtimeConfiguration.map((item) => ConfigurationFilterSensitiveLog(item))
|
|
353
|
+
}
|
|
354
|
+
}), "UpdateApplicationRequestFilterSensitiveLog");
|
|
355
|
+
var GetApplicationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
...obj.application && { application: ApplicationFilterSensitiveLog(obj.application) }
|
|
358
|
+
}), "GetApplicationResponseFilterSensitiveLog");
|
|
359
|
+
var JobRunFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
360
|
+
...obj,
|
|
361
|
+
...obj.configurationOverrides && {
|
|
362
|
+
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
|
|
363
|
+
},
|
|
364
|
+
...obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }
|
|
365
|
+
}), "JobRunFilterSensitiveLog");
|
|
366
|
+
var StartJobRunRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
367
|
+
...obj,
|
|
368
|
+
...obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) },
|
|
369
|
+
...obj.configurationOverrides && {
|
|
370
|
+
configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
|
|
371
|
+
}
|
|
372
|
+
}), "StartJobRunRequestFilterSensitiveLog");
|
|
373
|
+
var UpdateApplicationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
374
|
+
...obj,
|
|
375
|
+
...obj.application && { application: ApplicationFilterSensitiveLog(obj.application) }
|
|
376
|
+
}), "UpdateApplicationResponseFilterSensitiveLog");
|
|
377
|
+
var GetJobRunResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
378
|
+
...obj,
|
|
379
|
+
...obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }
|
|
380
|
+
}), "GetJobRunResponseFilterSensitiveLog");
|
|
381
|
+
|
|
382
|
+
// src/protocols/Aws_restJson1.ts
|
|
383
|
+
var se_CancelJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
384
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
385
|
+
const headers = {};
|
|
386
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
|
|
387
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
388
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
389
|
+
let body;
|
|
390
|
+
b.m("DELETE").h(headers).b(body);
|
|
391
|
+
return b.build();
|
|
392
|
+
}, "se_CancelJobRunCommand");
|
|
393
|
+
var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
394
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
395
|
+
const headers = {
|
|
396
|
+
"content-type": "application/json"
|
|
397
|
+
};
|
|
398
|
+
b.bp("/applications");
|
|
399
|
+
let body;
|
|
400
|
+
body = JSON.stringify(
|
|
401
|
+
(0, import_smithy_client.take)(input, {
|
|
402
|
+
architecture: [],
|
|
403
|
+
autoStartConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
404
|
+
autoStopConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
405
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
406
|
+
imageConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
407
|
+
initialCapacity: (_) => (0, import_smithy_client._json)(_),
|
|
408
|
+
maximumCapacity: (_) => (0, import_smithy_client._json)(_),
|
|
409
|
+
monitoringConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
410
|
+
name: [],
|
|
411
|
+
networkConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
412
|
+
releaseLabel: [],
|
|
413
|
+
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
414
|
+
tags: (_) => (0, import_smithy_client._json)(_),
|
|
415
|
+
type: [],
|
|
416
|
+
workerTypeSpecifications: (_) => (0, import_smithy_client._json)(_)
|
|
417
|
+
})
|
|
418
|
+
);
|
|
419
|
+
b.m("POST").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
421
|
+
}, "se_CreateApplicationCommand");
|
|
422
|
+
var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
423
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
424
|
+
const headers = {};
|
|
425
|
+
b.bp("/applications/{applicationId}");
|
|
426
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
427
|
+
let body;
|
|
428
|
+
b.m("DELETE").h(headers).b(body);
|
|
429
|
+
return b.build();
|
|
430
|
+
}, "se_DeleteApplicationCommand");
|
|
431
|
+
var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
432
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
433
|
+
const headers = {};
|
|
434
|
+
b.bp("/applications/{applicationId}");
|
|
435
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
436
|
+
let body;
|
|
437
|
+
b.m("GET").h(headers).b(body);
|
|
438
|
+
return b.build();
|
|
439
|
+
}, "se_GetApplicationCommand");
|
|
440
|
+
var se_GetDashboardForJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
441
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
442
|
+
const headers = {};
|
|
443
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}/dashboard");
|
|
444
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
445
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
446
|
+
let body;
|
|
447
|
+
b.m("GET").h(headers).b(body);
|
|
448
|
+
return b.build();
|
|
449
|
+
}, "se_GetDashboardForJobRunCommand");
|
|
450
|
+
var se_GetJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
451
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
452
|
+
const headers = {};
|
|
453
|
+
b.bp("/applications/{applicationId}/jobruns/{jobRunId}");
|
|
454
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
455
|
+
b.p("jobRunId", () => input.jobRunId, "{jobRunId}", false);
|
|
456
|
+
let body;
|
|
457
|
+
b.m("GET").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
459
|
+
}, "se_GetJobRunCommand");
|
|
460
|
+
var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
461
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
462
|
+
const headers = {};
|
|
463
|
+
b.bp("/applications");
|
|
464
|
+
const query = (0, import_smithy_client.map)({
|
|
465
|
+
[_nT]: [, input[_nT]],
|
|
466
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
467
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)]
|
|
468
|
+
});
|
|
469
|
+
let body;
|
|
470
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
471
|
+
return b.build();
|
|
472
|
+
}, "se_ListApplicationsCommand");
|
|
473
|
+
var se_ListJobRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
474
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
475
|
+
const headers = {};
|
|
476
|
+
b.bp("/applications/{applicationId}/jobruns");
|
|
477
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
478
|
+
const query = (0, import_smithy_client.map)({
|
|
479
|
+
[_nT]: [, input[_nT]],
|
|
480
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
481
|
+
[_cAA]: [() => input.createdAtAfter !== void 0, () => (input[_cAA].toISOString().split(".")[0] + "Z").toString()],
|
|
482
|
+
[_cAB]: [() => input.createdAtBefore !== void 0, () => (input[_cAB].toISOString().split(".")[0] + "Z").toString()],
|
|
483
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)]
|
|
484
|
+
});
|
|
485
|
+
let body;
|
|
486
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
487
|
+
return b.build();
|
|
488
|
+
}, "se_ListJobRunsCommand");
|
|
489
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
491
|
+
const headers = {};
|
|
492
|
+
b.bp("/tags/{resourceArn}");
|
|
493
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
494
|
+
let body;
|
|
495
|
+
b.m("GET").h(headers).b(body);
|
|
496
|
+
return b.build();
|
|
497
|
+
}, "se_ListTagsForResourceCommand");
|
|
498
|
+
var se_StartApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
499
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
500
|
+
const headers = {};
|
|
501
|
+
b.bp("/applications/{applicationId}/start");
|
|
502
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
503
|
+
let body;
|
|
504
|
+
b.m("POST").h(headers).b(body);
|
|
505
|
+
return b.build();
|
|
506
|
+
}, "se_StartApplicationCommand");
|
|
507
|
+
var se_StartJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
508
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
509
|
+
const headers = {
|
|
510
|
+
"content-type": "application/json"
|
|
511
|
+
};
|
|
512
|
+
b.bp("/applications/{applicationId}/jobruns");
|
|
513
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
514
|
+
let body;
|
|
515
|
+
body = JSON.stringify(
|
|
516
|
+
(0, import_smithy_client.take)(input, {
|
|
517
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
518
|
+
configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
|
|
519
|
+
executionRoleArn: [],
|
|
520
|
+
executionTimeoutMinutes: [],
|
|
521
|
+
jobDriver: (_) => (0, import_smithy_client._json)(_),
|
|
522
|
+
name: [],
|
|
523
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
524
|
+
})
|
|
525
|
+
);
|
|
526
|
+
b.m("POST").h(headers).b(body);
|
|
527
|
+
return b.build();
|
|
528
|
+
}, "se_StartJobRunCommand");
|
|
529
|
+
var se_StopApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
530
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
531
|
+
const headers = {};
|
|
532
|
+
b.bp("/applications/{applicationId}/stop");
|
|
533
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
534
|
+
let body;
|
|
535
|
+
b.m("POST").h(headers).b(body);
|
|
536
|
+
return b.build();
|
|
537
|
+
}, "se_StopApplicationCommand");
|
|
538
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
539
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
540
|
+
const headers = {
|
|
541
|
+
"content-type": "application/json"
|
|
542
|
+
};
|
|
543
|
+
b.bp("/tags/{resourceArn}");
|
|
544
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
545
|
+
let body;
|
|
546
|
+
body = JSON.stringify(
|
|
547
|
+
(0, import_smithy_client.take)(input, {
|
|
548
|
+
tags: (_) => (0, import_smithy_client._json)(_)
|
|
549
|
+
})
|
|
550
|
+
);
|
|
551
|
+
b.m("POST").h(headers).b(body);
|
|
552
|
+
return b.build();
|
|
553
|
+
}, "se_TagResourceCommand");
|
|
554
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
555
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
556
|
+
const headers = {};
|
|
557
|
+
b.bp("/tags/{resourceArn}");
|
|
558
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
559
|
+
const query = (0, import_smithy_client.map)({
|
|
560
|
+
[_tK]: [
|
|
561
|
+
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
562
|
+
() => (input[_tK] || []).map((_entry) => _entry)
|
|
563
|
+
]
|
|
564
|
+
});
|
|
565
|
+
let body;
|
|
566
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
567
|
+
return b.build();
|
|
568
|
+
}, "se_UntagResourceCommand");
|
|
569
|
+
var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
570
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
571
|
+
const headers = {
|
|
572
|
+
"content-type": "application/json"
|
|
573
|
+
};
|
|
574
|
+
b.bp("/applications/{applicationId}");
|
|
575
|
+
b.p("applicationId", () => input.applicationId, "{applicationId}", false);
|
|
576
|
+
let body;
|
|
577
|
+
body = JSON.stringify(
|
|
578
|
+
(0, import_smithy_client.take)(input, {
|
|
579
|
+
architecture: [],
|
|
580
|
+
autoStartConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
581
|
+
autoStopConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
582
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
583
|
+
imageConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
584
|
+
initialCapacity: (_) => (0, import_smithy_client._json)(_),
|
|
585
|
+
maximumCapacity: (_) => (0, import_smithy_client._json)(_),
|
|
586
|
+
monitoringConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
587
|
+
networkConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
588
|
+
releaseLabel: [],
|
|
589
|
+
runtimeConfiguration: (_) => se_ConfigurationList(_, context),
|
|
590
|
+
workerTypeSpecifications: (_) => (0, import_smithy_client._json)(_)
|
|
591
|
+
})
|
|
592
|
+
);
|
|
593
|
+
b.m("PATCH").h(headers).b(body);
|
|
594
|
+
return b.build();
|
|
595
|
+
}, "se_UpdateApplicationCommand");
|
|
596
|
+
var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
597
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
+
return de_CancelJobRunCommandError(output, context);
|
|
599
|
+
}
|
|
600
|
+
const contents = (0, import_smithy_client.map)({
|
|
601
|
+
$metadata: deserializeMetadata(output)
|
|
602
|
+
});
|
|
603
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
604
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
605
|
+
applicationId: import_smithy_client.expectString,
|
|
606
|
+
jobRunId: import_smithy_client.expectString
|
|
607
|
+
});
|
|
608
|
+
Object.assign(contents, doc);
|
|
609
|
+
return contents;
|
|
610
|
+
}, "de_CancelJobRunCommand");
|
|
611
|
+
var de_CancelJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
612
|
+
const parsedOutput = {
|
|
613
|
+
...output,
|
|
614
|
+
body: await parseErrorBody(output.body, context)
|
|
615
|
+
};
|
|
616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
|
+
switch (errorCode) {
|
|
618
|
+
case "InternalServerException":
|
|
619
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
620
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
621
|
+
case "ResourceNotFoundException":
|
|
622
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
623
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
624
|
+
case "ValidationException":
|
|
625
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
626
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
627
|
+
default:
|
|
628
|
+
const parsedBody = parsedOutput.body;
|
|
629
|
+
return throwDefaultError({
|
|
630
|
+
output,
|
|
631
|
+
parsedBody,
|
|
632
|
+
errorCode
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
}, "de_CancelJobRunCommandError");
|
|
636
|
+
var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
637
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
638
|
+
return de_CreateApplicationCommandError(output, context);
|
|
639
|
+
}
|
|
640
|
+
const contents = (0, import_smithy_client.map)({
|
|
641
|
+
$metadata: deserializeMetadata(output)
|
|
642
|
+
});
|
|
643
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
644
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
645
|
+
applicationId: import_smithy_client.expectString,
|
|
646
|
+
arn: import_smithy_client.expectString,
|
|
647
|
+
name: import_smithy_client.expectString
|
|
648
|
+
});
|
|
649
|
+
Object.assign(contents, doc);
|
|
650
|
+
return contents;
|
|
651
|
+
}, "de_CreateApplicationCommand");
|
|
652
|
+
var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
653
|
+
const parsedOutput = {
|
|
654
|
+
...output,
|
|
655
|
+
body: await parseErrorBody(output.body, context)
|
|
656
|
+
};
|
|
657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
+
switch (errorCode) {
|
|
659
|
+
case "ConflictException":
|
|
660
|
+
case "com.amazonaws.emrserverless#ConflictException":
|
|
661
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
662
|
+
case "InternalServerException":
|
|
663
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
664
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
665
|
+
case "ResourceNotFoundException":
|
|
666
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
667
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
668
|
+
case "ValidationException":
|
|
669
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
670
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
671
|
+
default:
|
|
672
|
+
const parsedBody = parsedOutput.body;
|
|
673
|
+
return throwDefaultError({
|
|
674
|
+
output,
|
|
675
|
+
parsedBody,
|
|
676
|
+
errorCode
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
}, "de_CreateApplicationCommandError");
|
|
680
|
+
var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
683
|
+
}
|
|
684
|
+
const contents = (0, import_smithy_client.map)({
|
|
685
|
+
$metadata: deserializeMetadata(output)
|
|
686
|
+
});
|
|
687
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
688
|
+
return contents;
|
|
689
|
+
}, "de_DeleteApplicationCommand");
|
|
690
|
+
var de_DeleteApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
+
const parsedOutput = {
|
|
692
|
+
...output,
|
|
693
|
+
body: await parseErrorBody(output.body, context)
|
|
694
|
+
};
|
|
695
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
+
switch (errorCode) {
|
|
697
|
+
case "InternalServerException":
|
|
698
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
699
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
700
|
+
case "ResourceNotFoundException":
|
|
701
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
702
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
703
|
+
case "ValidationException":
|
|
704
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
705
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
706
|
+
default:
|
|
707
|
+
const parsedBody = parsedOutput.body;
|
|
708
|
+
return throwDefaultError({
|
|
709
|
+
output,
|
|
710
|
+
parsedBody,
|
|
711
|
+
errorCode
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
}, "de_DeleteApplicationCommandError");
|
|
715
|
+
var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
+
return de_GetApplicationCommandError(output, context);
|
|
718
|
+
}
|
|
719
|
+
const contents = (0, import_smithy_client.map)({
|
|
720
|
+
$metadata: deserializeMetadata(output)
|
|
721
|
+
});
|
|
722
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
723
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
724
|
+
application: (_) => de_Application(_, context)
|
|
725
|
+
});
|
|
726
|
+
Object.assign(contents, doc);
|
|
727
|
+
return contents;
|
|
728
|
+
}, "de_GetApplicationCommand");
|
|
729
|
+
var de_GetApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseErrorBody(output.body, context)
|
|
733
|
+
};
|
|
734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
|
+
switch (errorCode) {
|
|
736
|
+
case "InternalServerException":
|
|
737
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
738
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
739
|
+
case "ResourceNotFoundException":
|
|
740
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
741
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
742
|
+
case "ValidationException":
|
|
743
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
744
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
745
|
+
default:
|
|
746
|
+
const parsedBody = parsedOutput.body;
|
|
747
|
+
return throwDefaultError({
|
|
748
|
+
output,
|
|
749
|
+
parsedBody,
|
|
750
|
+
errorCode
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
}, "de_GetApplicationCommandError");
|
|
754
|
+
var de_GetDashboardForJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
755
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
756
|
+
return de_GetDashboardForJobRunCommandError(output, context);
|
|
757
|
+
}
|
|
758
|
+
const contents = (0, import_smithy_client.map)({
|
|
759
|
+
$metadata: deserializeMetadata(output)
|
|
760
|
+
});
|
|
761
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
762
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
763
|
+
url: import_smithy_client.expectString
|
|
764
|
+
});
|
|
765
|
+
Object.assign(contents, doc);
|
|
766
|
+
return contents;
|
|
767
|
+
}, "de_GetDashboardForJobRunCommand");
|
|
768
|
+
var de_GetDashboardForJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
+
const parsedOutput = {
|
|
770
|
+
...output,
|
|
771
|
+
body: await parseErrorBody(output.body, context)
|
|
772
|
+
};
|
|
773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
+
switch (errorCode) {
|
|
775
|
+
case "InternalServerException":
|
|
776
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
777
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
778
|
+
case "ResourceNotFoundException":
|
|
779
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
780
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
781
|
+
case "ValidationException":
|
|
782
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
783
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
|
+
default:
|
|
785
|
+
const parsedBody = parsedOutput.body;
|
|
786
|
+
return throwDefaultError({
|
|
787
|
+
output,
|
|
788
|
+
parsedBody,
|
|
789
|
+
errorCode
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
}, "de_GetDashboardForJobRunCommandError");
|
|
793
|
+
var de_GetJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
+
return de_GetJobRunCommandError(output, context);
|
|
796
|
+
}
|
|
797
|
+
const contents = (0, import_smithy_client.map)({
|
|
798
|
+
$metadata: deserializeMetadata(output)
|
|
799
|
+
});
|
|
800
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
801
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
802
|
+
jobRun: (_) => de_JobRun(_, context)
|
|
803
|
+
});
|
|
804
|
+
Object.assign(contents, doc);
|
|
805
|
+
return contents;
|
|
806
|
+
}, "de_GetJobRunCommand");
|
|
807
|
+
var de_GetJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
+
const parsedOutput = {
|
|
809
|
+
...output,
|
|
810
|
+
body: await parseErrorBody(output.body, context)
|
|
811
|
+
};
|
|
812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
|
+
switch (errorCode) {
|
|
814
|
+
case "InternalServerException":
|
|
815
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
816
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
817
|
+
case "ResourceNotFoundException":
|
|
818
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
819
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
+
case "ValidationException":
|
|
821
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
822
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
823
|
+
default:
|
|
824
|
+
const parsedBody = parsedOutput.body;
|
|
825
|
+
return throwDefaultError({
|
|
826
|
+
output,
|
|
827
|
+
parsedBody,
|
|
828
|
+
errorCode
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
}, "de_GetJobRunCommandError");
|
|
832
|
+
var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
833
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
834
|
+
return de_ListApplicationsCommandError(output, context);
|
|
835
|
+
}
|
|
836
|
+
const contents = (0, import_smithy_client.map)({
|
|
837
|
+
$metadata: deserializeMetadata(output)
|
|
838
|
+
});
|
|
839
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
840
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
841
|
+
applications: (_) => de_ApplicationList(_, context),
|
|
842
|
+
nextToken: import_smithy_client.expectString
|
|
843
|
+
});
|
|
844
|
+
Object.assign(contents, doc);
|
|
845
|
+
return contents;
|
|
846
|
+
}, "de_ListApplicationsCommand");
|
|
847
|
+
var de_ListApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
|
+
const parsedOutput = {
|
|
849
|
+
...output,
|
|
850
|
+
body: await parseErrorBody(output.body, context)
|
|
851
|
+
};
|
|
852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
+
switch (errorCode) {
|
|
854
|
+
case "InternalServerException":
|
|
855
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
856
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
857
|
+
case "ValidationException":
|
|
858
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
859
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
860
|
+
default:
|
|
861
|
+
const parsedBody = parsedOutput.body;
|
|
862
|
+
return throwDefaultError({
|
|
863
|
+
output,
|
|
864
|
+
parsedBody,
|
|
865
|
+
errorCode
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
}, "de_ListApplicationsCommandError");
|
|
869
|
+
var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
870
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
871
|
+
return de_ListJobRunsCommandError(output, context);
|
|
872
|
+
}
|
|
873
|
+
const contents = (0, import_smithy_client.map)({
|
|
874
|
+
$metadata: deserializeMetadata(output)
|
|
875
|
+
});
|
|
876
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
877
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
878
|
+
jobRuns: (_) => de_JobRuns(_, context),
|
|
879
|
+
nextToken: import_smithy_client.expectString
|
|
880
|
+
});
|
|
881
|
+
Object.assign(contents, doc);
|
|
882
|
+
return contents;
|
|
883
|
+
}, "de_ListJobRunsCommand");
|
|
884
|
+
var de_ListJobRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
|
+
const parsedOutput = {
|
|
886
|
+
...output,
|
|
887
|
+
body: await parseErrorBody(output.body, context)
|
|
888
|
+
};
|
|
889
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
+
switch (errorCode) {
|
|
891
|
+
case "InternalServerException":
|
|
892
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
893
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
894
|
+
case "ValidationException":
|
|
895
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
896
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
|
+
default:
|
|
898
|
+
const parsedBody = parsedOutput.body;
|
|
899
|
+
return throwDefaultError({
|
|
900
|
+
output,
|
|
901
|
+
parsedBody,
|
|
902
|
+
errorCode
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
}, "de_ListJobRunsCommandError");
|
|
906
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
909
|
+
}
|
|
910
|
+
const contents = (0, import_smithy_client.map)({
|
|
911
|
+
$metadata: deserializeMetadata(output)
|
|
912
|
+
});
|
|
913
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
914
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
915
|
+
tags: import_smithy_client._json
|
|
916
|
+
});
|
|
917
|
+
Object.assign(contents, doc);
|
|
918
|
+
return contents;
|
|
919
|
+
}, "de_ListTagsForResourceCommand");
|
|
920
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
921
|
+
const parsedOutput = {
|
|
922
|
+
...output,
|
|
923
|
+
body: await parseErrorBody(output.body, context)
|
|
924
|
+
};
|
|
925
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
|
+
switch (errorCode) {
|
|
927
|
+
case "InternalServerException":
|
|
928
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
929
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
930
|
+
case "ResourceNotFoundException":
|
|
931
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
932
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
+
case "ValidationException":
|
|
934
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
935
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
|
+
default:
|
|
937
|
+
const parsedBody = parsedOutput.body;
|
|
938
|
+
return throwDefaultError({
|
|
939
|
+
output,
|
|
940
|
+
parsedBody,
|
|
941
|
+
errorCode
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}, "de_ListTagsForResourceCommandError");
|
|
945
|
+
var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
+
return de_StartApplicationCommandError(output, context);
|
|
948
|
+
}
|
|
949
|
+
const contents = (0, import_smithy_client.map)({
|
|
950
|
+
$metadata: deserializeMetadata(output)
|
|
951
|
+
});
|
|
952
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
953
|
+
return contents;
|
|
954
|
+
}, "de_StartApplicationCommand");
|
|
955
|
+
var de_StartApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
+
const parsedOutput = {
|
|
957
|
+
...output,
|
|
958
|
+
body: await parseErrorBody(output.body, context)
|
|
959
|
+
};
|
|
960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
switch (errorCode) {
|
|
962
|
+
case "InternalServerException":
|
|
963
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
964
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
|
+
case "ResourceNotFoundException":
|
|
966
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
967
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ServiceQuotaExceededException":
|
|
969
|
+
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
970
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
971
|
+
case "ValidationException":
|
|
972
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
973
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
974
|
+
default:
|
|
975
|
+
const parsedBody = parsedOutput.body;
|
|
976
|
+
return throwDefaultError({
|
|
977
|
+
output,
|
|
978
|
+
parsedBody,
|
|
979
|
+
errorCode
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
}, "de_StartApplicationCommandError");
|
|
983
|
+
var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
984
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
+
return de_StartJobRunCommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
const contents = (0, import_smithy_client.map)({
|
|
988
|
+
$metadata: deserializeMetadata(output)
|
|
989
|
+
});
|
|
990
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
991
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
992
|
+
applicationId: import_smithy_client.expectString,
|
|
993
|
+
arn: import_smithy_client.expectString,
|
|
994
|
+
jobRunId: import_smithy_client.expectString
|
|
995
|
+
});
|
|
996
|
+
Object.assign(contents, doc);
|
|
997
|
+
return contents;
|
|
998
|
+
}, "de_StartJobRunCommand");
|
|
999
|
+
var de_StartJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1000
|
+
const parsedOutput = {
|
|
1001
|
+
...output,
|
|
1002
|
+
body: await parseErrorBody(output.body, context)
|
|
1003
|
+
};
|
|
1004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
+
switch (errorCode) {
|
|
1006
|
+
case "ConflictException":
|
|
1007
|
+
case "com.amazonaws.emrserverless#ConflictException":
|
|
1008
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1009
|
+
case "InternalServerException":
|
|
1010
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1011
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1012
|
+
case "ResourceNotFoundException":
|
|
1013
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1014
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1015
|
+
case "ValidationException":
|
|
1016
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
1017
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1018
|
+
default:
|
|
1019
|
+
const parsedBody = parsedOutput.body;
|
|
1020
|
+
return throwDefaultError({
|
|
1021
|
+
output,
|
|
1022
|
+
parsedBody,
|
|
1023
|
+
errorCode
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
}, "de_StartJobRunCommandError");
|
|
1027
|
+
var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1028
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1029
|
+
return de_StopApplicationCommandError(output, context);
|
|
1030
|
+
}
|
|
1031
|
+
const contents = (0, import_smithy_client.map)({
|
|
1032
|
+
$metadata: deserializeMetadata(output)
|
|
1033
|
+
});
|
|
1034
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1035
|
+
return contents;
|
|
1036
|
+
}, "de_StopApplicationCommand");
|
|
1037
|
+
var de_StopApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1038
|
+
const parsedOutput = {
|
|
1039
|
+
...output,
|
|
1040
|
+
body: await parseErrorBody(output.body, context)
|
|
1041
|
+
};
|
|
1042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
+
switch (errorCode) {
|
|
1044
|
+
case "InternalServerException":
|
|
1045
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1046
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "ResourceNotFoundException":
|
|
1048
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1049
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "ValidationException":
|
|
1051
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
1052
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1053
|
+
default:
|
|
1054
|
+
const parsedBody = parsedOutput.body;
|
|
1055
|
+
return throwDefaultError({
|
|
1056
|
+
output,
|
|
1057
|
+
parsedBody,
|
|
1058
|
+
errorCode
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
}, "de_StopApplicationCommandError");
|
|
1062
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1063
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1064
|
+
return de_TagResourceCommandError(output, context);
|
|
1065
|
+
}
|
|
1066
|
+
const contents = (0, import_smithy_client.map)({
|
|
1067
|
+
$metadata: deserializeMetadata(output)
|
|
1068
|
+
});
|
|
1069
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1070
|
+
return contents;
|
|
1071
|
+
}, "de_TagResourceCommand");
|
|
1072
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
+
const parsedOutput = {
|
|
1074
|
+
...output,
|
|
1075
|
+
body: await parseErrorBody(output.body, context)
|
|
1076
|
+
};
|
|
1077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
+
switch (errorCode) {
|
|
1079
|
+
case "InternalServerException":
|
|
1080
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1081
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "ResourceNotFoundException":
|
|
1083
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1084
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "ValidationException":
|
|
1086
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
1087
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
+
default:
|
|
1089
|
+
const parsedBody = parsedOutput.body;
|
|
1090
|
+
return throwDefaultError({
|
|
1091
|
+
output,
|
|
1092
|
+
parsedBody,
|
|
1093
|
+
errorCode
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
}, "de_TagResourceCommandError");
|
|
1097
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
+
return de_UntagResourceCommandError(output, context);
|
|
1100
|
+
}
|
|
1101
|
+
const contents = (0, import_smithy_client.map)({
|
|
1102
|
+
$metadata: deserializeMetadata(output)
|
|
1103
|
+
});
|
|
1104
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1105
|
+
return contents;
|
|
1106
|
+
}, "de_UntagResourceCommand");
|
|
1107
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1108
|
+
const parsedOutput = {
|
|
1109
|
+
...output,
|
|
1110
|
+
body: await parseErrorBody(output.body, context)
|
|
1111
|
+
};
|
|
1112
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
+
switch (errorCode) {
|
|
1114
|
+
case "InternalServerException":
|
|
1115
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1116
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1117
|
+
case "ResourceNotFoundException":
|
|
1118
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1119
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
+
case "ValidationException":
|
|
1121
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
1122
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1123
|
+
default:
|
|
1124
|
+
const parsedBody = parsedOutput.body;
|
|
1125
|
+
return throwDefaultError({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
errorCode
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
}, "de_UntagResourceCommandError");
|
|
1132
|
+
var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1133
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
1135
|
+
}
|
|
1136
|
+
const contents = (0, import_smithy_client.map)({
|
|
1137
|
+
$metadata: deserializeMetadata(output)
|
|
1138
|
+
});
|
|
1139
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1140
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1141
|
+
application: (_) => de_Application(_, context)
|
|
1142
|
+
});
|
|
1143
|
+
Object.assign(contents, doc);
|
|
1144
|
+
return contents;
|
|
1145
|
+
}, "de_UpdateApplicationCommand");
|
|
1146
|
+
var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
|
+
const parsedOutput = {
|
|
1148
|
+
...output,
|
|
1149
|
+
body: await parseErrorBody(output.body, context)
|
|
1150
|
+
};
|
|
1151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
switch (errorCode) {
|
|
1153
|
+
case "InternalServerException":
|
|
1154
|
+
case "com.amazonaws.emrserverless#InternalServerException":
|
|
1155
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ResourceNotFoundException":
|
|
1157
|
+
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
1158
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "ValidationException":
|
|
1160
|
+
case "com.amazonaws.emrserverless#ValidationException":
|
|
1161
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
|
+
default:
|
|
1163
|
+
const parsedBody = parsedOutput.body;
|
|
1164
|
+
return throwDefaultError({
|
|
1165
|
+
output,
|
|
1166
|
+
parsedBody,
|
|
1167
|
+
errorCode
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
}, "de_UpdateApplicationCommandError");
|
|
1171
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(EMRServerlessServiceException);
|
|
1172
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1173
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1174
|
+
const data = parsedOutput.body;
|
|
1175
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1176
|
+
message: import_smithy_client.expectString
|
|
1177
|
+
});
|
|
1178
|
+
Object.assign(contents, doc);
|
|
1179
|
+
const exception = new ConflictException({
|
|
1180
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
|
+
...contents
|
|
1182
|
+
});
|
|
1183
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1184
|
+
}, "de_ConflictExceptionRes");
|
|
1185
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1186
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1187
|
+
const data = parsedOutput.body;
|
|
1188
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1189
|
+
message: import_smithy_client.expectString
|
|
1190
|
+
});
|
|
1191
|
+
Object.assign(contents, doc);
|
|
1192
|
+
const exception = new InternalServerException({
|
|
1193
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1194
|
+
...contents
|
|
1195
|
+
});
|
|
1196
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1197
|
+
}, "de_InternalServerExceptionRes");
|
|
1198
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1199
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1200
|
+
const data = parsedOutput.body;
|
|
1201
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1202
|
+
message: import_smithy_client.expectString
|
|
1203
|
+
});
|
|
1204
|
+
Object.assign(contents, doc);
|
|
1205
|
+
const exception = new ResourceNotFoundException({
|
|
1206
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
|
+
...contents
|
|
1208
|
+
});
|
|
1209
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1210
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1211
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1212
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1213
|
+
const data = parsedOutput.body;
|
|
1214
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1215
|
+
message: import_smithy_client.expectString
|
|
1216
|
+
});
|
|
1217
|
+
Object.assign(contents, doc);
|
|
1218
|
+
const exception = new ServiceQuotaExceededException({
|
|
1219
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1220
|
+
...contents
|
|
1221
|
+
});
|
|
1222
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1223
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1224
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1225
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1226
|
+
const data = parsedOutput.body;
|
|
1227
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1228
|
+
message: import_smithy_client.expectString
|
|
1229
|
+
});
|
|
1230
|
+
Object.assign(contents, doc);
|
|
1231
|
+
const exception = new ValidationException({
|
|
1232
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1233
|
+
...contents
|
|
1234
|
+
});
|
|
1235
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1236
|
+
}, "de_ValidationExceptionRes");
|
|
1237
|
+
var se_Configuration = /* @__PURE__ */ __name((input, context) => {
|
|
1238
|
+
return (0, import_smithy_client.take)(input, {
|
|
1239
|
+
classification: [],
|
|
1240
|
+
configurations: (_) => se_ConfigurationList(_, context),
|
|
1241
|
+
properties: import_smithy_client._json
|
|
1242
|
+
});
|
|
1243
|
+
}, "se_Configuration");
|
|
1244
|
+
var se_ConfigurationList = /* @__PURE__ */ __name((input, context) => {
|
|
1245
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1246
|
+
return se_Configuration(entry, context);
|
|
1247
|
+
});
|
|
1248
|
+
}, "se_ConfigurationList");
|
|
1249
|
+
var se_ConfigurationOverrides = /* @__PURE__ */ __name((input, context) => {
|
|
1250
|
+
return (0, import_smithy_client.take)(input, {
|
|
1251
|
+
applicationConfiguration: (_) => se_ConfigurationList(_, context),
|
|
1252
|
+
monitoringConfiguration: import_smithy_client._json
|
|
1253
|
+
});
|
|
1254
|
+
}, "se_ConfigurationOverrides");
|
|
1255
|
+
var de_Application = /* @__PURE__ */ __name((output, context) => {
|
|
1256
|
+
return (0, import_smithy_client.take)(output, {
|
|
1257
|
+
applicationId: import_smithy_client.expectString,
|
|
1258
|
+
architecture: import_smithy_client.expectString,
|
|
1259
|
+
arn: import_smithy_client.expectString,
|
|
1260
|
+
autoStartConfiguration: import_smithy_client._json,
|
|
1261
|
+
autoStopConfiguration: import_smithy_client._json,
|
|
1262
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1263
|
+
imageConfiguration: import_smithy_client._json,
|
|
1264
|
+
initialCapacity: import_smithy_client._json,
|
|
1265
|
+
maximumCapacity: import_smithy_client._json,
|
|
1266
|
+
monitoringConfiguration: import_smithy_client._json,
|
|
1267
|
+
name: import_smithy_client.expectString,
|
|
1268
|
+
networkConfiguration: import_smithy_client._json,
|
|
1269
|
+
releaseLabel: import_smithy_client.expectString,
|
|
1270
|
+
runtimeConfiguration: (_) => de_ConfigurationList(_, context),
|
|
1271
|
+
state: import_smithy_client.expectString,
|
|
1272
|
+
stateDetails: import_smithy_client.expectString,
|
|
1273
|
+
tags: import_smithy_client._json,
|
|
1274
|
+
type: import_smithy_client.expectString,
|
|
1275
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1276
|
+
workerTypeSpecifications: import_smithy_client._json
|
|
1277
|
+
});
|
|
1278
|
+
}, "de_Application");
|
|
1279
|
+
var de_ApplicationList = /* @__PURE__ */ __name((output, context) => {
|
|
1280
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1281
|
+
return de_ApplicationSummary(entry, context);
|
|
1282
|
+
});
|
|
1283
|
+
return retVal;
|
|
1284
|
+
}, "de_ApplicationList");
|
|
1285
|
+
var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1286
|
+
return (0, import_smithy_client.take)(output, {
|
|
1287
|
+
architecture: import_smithy_client.expectString,
|
|
1288
|
+
arn: import_smithy_client.expectString,
|
|
1289
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1290
|
+
id: import_smithy_client.expectString,
|
|
1291
|
+
name: import_smithy_client.expectString,
|
|
1292
|
+
releaseLabel: import_smithy_client.expectString,
|
|
1293
|
+
state: import_smithy_client.expectString,
|
|
1294
|
+
stateDetails: import_smithy_client.expectString,
|
|
1295
|
+
type: import_smithy_client.expectString,
|
|
1296
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1297
|
+
});
|
|
1298
|
+
}, "de_ApplicationSummary");
|
|
1299
|
+
var de_Configuration = /* @__PURE__ */ __name((output, context) => {
|
|
1300
|
+
return (0, import_smithy_client.take)(output, {
|
|
1301
|
+
classification: import_smithy_client.expectString,
|
|
1302
|
+
configurations: (_) => de_ConfigurationList(_, context),
|
|
1303
|
+
properties: import_smithy_client._json
|
|
1304
|
+
});
|
|
1305
|
+
}, "de_Configuration");
|
|
1306
|
+
var de_ConfigurationList = /* @__PURE__ */ __name((output, context) => {
|
|
1307
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1308
|
+
return de_Configuration(entry, context);
|
|
1309
|
+
});
|
|
1310
|
+
return retVal;
|
|
1311
|
+
}, "de_ConfigurationList");
|
|
1312
|
+
var de_ConfigurationOverrides = /* @__PURE__ */ __name((output, context) => {
|
|
1313
|
+
return (0, import_smithy_client.take)(output, {
|
|
1314
|
+
applicationConfiguration: (_) => de_ConfigurationList(_, context),
|
|
1315
|
+
monitoringConfiguration: import_smithy_client._json
|
|
1316
|
+
});
|
|
1317
|
+
}, "de_ConfigurationOverrides");
|
|
1318
|
+
var de_JobRun = /* @__PURE__ */ __name((output, context) => {
|
|
1319
|
+
return (0, import_smithy_client.take)(output, {
|
|
1320
|
+
applicationId: import_smithy_client.expectString,
|
|
1321
|
+
arn: import_smithy_client.expectString,
|
|
1322
|
+
billedResourceUtilization: (_) => de_ResourceUtilization(_, context),
|
|
1323
|
+
configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
|
|
1324
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1325
|
+
createdBy: import_smithy_client.expectString,
|
|
1326
|
+
executionRole: import_smithy_client.expectString,
|
|
1327
|
+
executionTimeoutMinutes: import_smithy_client.expectLong,
|
|
1328
|
+
jobDriver: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
|
|
1329
|
+
jobRunId: import_smithy_client.expectString,
|
|
1330
|
+
name: import_smithy_client.expectString,
|
|
1331
|
+
networkConfiguration: import_smithy_client._json,
|
|
1332
|
+
releaseLabel: import_smithy_client.expectString,
|
|
1333
|
+
state: import_smithy_client.expectString,
|
|
1334
|
+
stateDetails: import_smithy_client.expectString,
|
|
1335
|
+
tags: import_smithy_client._json,
|
|
1336
|
+
totalExecutionDurationSeconds: import_smithy_client.expectInt32,
|
|
1337
|
+
totalResourceUtilization: (_) => de_TotalResourceUtilization(_, context),
|
|
1338
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1339
|
+
});
|
|
1340
|
+
}, "de_JobRun");
|
|
1341
|
+
var de_JobRuns = /* @__PURE__ */ __name((output, context) => {
|
|
1342
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1343
|
+
return de_JobRunSummary(entry, context);
|
|
1344
|
+
});
|
|
1345
|
+
return retVal;
|
|
1346
|
+
}, "de_JobRuns");
|
|
1347
|
+
var de_JobRunSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1348
|
+
return (0, import_smithy_client.take)(output, {
|
|
1349
|
+
applicationId: import_smithy_client.expectString,
|
|
1350
|
+
arn: import_smithy_client.expectString,
|
|
1351
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1352
|
+
createdBy: import_smithy_client.expectString,
|
|
1353
|
+
executionRole: import_smithy_client.expectString,
|
|
1354
|
+
id: import_smithy_client.expectString,
|
|
1355
|
+
name: import_smithy_client.expectString,
|
|
1356
|
+
releaseLabel: import_smithy_client.expectString,
|
|
1357
|
+
state: import_smithy_client.expectString,
|
|
1358
|
+
stateDetails: import_smithy_client.expectString,
|
|
1359
|
+
type: import_smithy_client.expectString,
|
|
1360
|
+
updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1361
|
+
});
|
|
1362
|
+
}, "de_JobRunSummary");
|
|
1363
|
+
var de_ResourceUtilization = /* @__PURE__ */ __name((output, context) => {
|
|
1364
|
+
return (0, import_smithy_client.take)(output, {
|
|
1365
|
+
memoryGBHour: import_smithy_client.limitedParseDouble,
|
|
1366
|
+
storageGBHour: import_smithy_client.limitedParseDouble,
|
|
1367
|
+
vCPUHour: import_smithy_client.limitedParseDouble
|
|
1368
|
+
});
|
|
1369
|
+
}, "de_ResourceUtilization");
|
|
1370
|
+
var de_TotalResourceUtilization = /* @__PURE__ */ __name((output, context) => {
|
|
1371
|
+
return (0, import_smithy_client.take)(output, {
|
|
1372
|
+
memoryGBHour: import_smithy_client.limitedParseDouble,
|
|
1373
|
+
storageGBHour: import_smithy_client.limitedParseDouble,
|
|
1374
|
+
vCPUHour: import_smithy_client.limitedParseDouble
|
|
1375
|
+
});
|
|
1376
|
+
}, "de_TotalResourceUtilization");
|
|
1377
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1378
|
+
httpStatusCode: output.statusCode,
|
|
1379
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1380
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1381
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1382
|
+
}), "deserializeMetadata");
|
|
1383
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1384
|
+
var _cAA = "createdAtAfter";
|
|
1385
|
+
var _cAB = "createdAtBefore";
|
|
1386
|
+
var _mR = "maxResults";
|
|
1387
|
+
var _nT = "nextToken";
|
|
1388
|
+
var _s = "states";
|
|
1389
|
+
var _tK = "tagKeys";
|
|
1390
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1391
|
+
if (encoded.length) {
|
|
1392
|
+
return JSON.parse(encoded);
|
|
1393
|
+
}
|
|
1394
|
+
return {};
|
|
1395
|
+
}), "parseBody");
|
|
1396
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1397
|
+
const value = await parseBody(errorBody, context);
|
|
1398
|
+
value.message = value.message ?? value.Message;
|
|
1399
|
+
return value;
|
|
1400
|
+
}, "parseErrorBody");
|
|
1401
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1402
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1403
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1404
|
+
let cleanValue = rawValue;
|
|
1405
|
+
if (typeof cleanValue === "number") {
|
|
1406
|
+
cleanValue = cleanValue.toString();
|
|
1407
|
+
}
|
|
1408
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1409
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1410
|
+
}
|
|
1411
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1412
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1413
|
+
}
|
|
1414
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1415
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1416
|
+
}
|
|
1417
|
+
return cleanValue;
|
|
1418
|
+
}, "sanitizeErrorCode");
|
|
1419
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1420
|
+
if (headerKey !== void 0) {
|
|
1421
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1422
|
+
}
|
|
1423
|
+
if (data.code !== void 0) {
|
|
1424
|
+
return sanitizeErrorCode(data.code);
|
|
1425
|
+
}
|
|
1426
|
+
if (data["__type"] !== void 0) {
|
|
1427
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1428
|
+
}
|
|
1429
|
+
}, "loadRestJsonErrorCode");
|
|
1430
|
+
|
|
1431
|
+
// src/commands/CancelJobRunCommand.ts
|
|
1432
|
+
var _CancelJobRunCommand = class _CancelJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1433
|
+
...commonParams
|
|
1434
|
+
}).m(function(Command, cs, config, o) {
|
|
1435
|
+
return [
|
|
1436
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1437
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1438
|
+
];
|
|
1439
|
+
}).s("AwsToledoWebService", "CancelJobRun", {}).n("EMRServerlessClient", "CancelJobRunCommand").f(void 0, void 0).ser(se_CancelJobRunCommand).de(de_CancelJobRunCommand).build() {
|
|
1440
|
+
};
|
|
1441
|
+
__name(_CancelJobRunCommand, "CancelJobRunCommand");
|
|
1442
|
+
var CancelJobRunCommand = _CancelJobRunCommand;
|
|
1443
|
+
|
|
1444
|
+
// src/commands/CreateApplicationCommand.ts
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
var _CreateApplicationCommand = class _CreateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1450
|
+
...commonParams
|
|
1451
|
+
}).m(function(Command, cs, config, o) {
|
|
1452
|
+
return [
|
|
1453
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1454
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1455
|
+
];
|
|
1456
|
+
}).s("AwsToledoWebService", "CreateApplication", {}).n("EMRServerlessClient", "CreateApplicationCommand").f(CreateApplicationRequestFilterSensitiveLog, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
|
|
1457
|
+
};
|
|
1458
|
+
__name(_CreateApplicationCommand, "CreateApplicationCommand");
|
|
1459
|
+
var CreateApplicationCommand = _CreateApplicationCommand;
|
|
1460
|
+
|
|
1461
|
+
// src/commands/DeleteApplicationCommand.ts
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
var _DeleteApplicationCommand = class _DeleteApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1467
|
+
...commonParams
|
|
1468
|
+
}).m(function(Command, cs, config, o) {
|
|
1469
|
+
return [
|
|
1470
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1471
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1472
|
+
];
|
|
1473
|
+
}).s("AwsToledoWebService", "DeleteApplication", {}).n("EMRServerlessClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
|
|
1474
|
+
};
|
|
1475
|
+
__name(_DeleteApplicationCommand, "DeleteApplicationCommand");
|
|
1476
|
+
var DeleteApplicationCommand = _DeleteApplicationCommand;
|
|
1477
|
+
|
|
1478
|
+
// src/commands/GetApplicationCommand.ts
|
|
1479
|
+
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
var _GetApplicationCommand = class _GetApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1484
|
+
...commonParams
|
|
1485
|
+
}).m(function(Command, cs, config, o) {
|
|
1486
|
+
return [
|
|
1487
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1488
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1489
|
+
];
|
|
1490
|
+
}).s("AwsToledoWebService", "GetApplication", {}).n("EMRServerlessClient", "GetApplicationCommand").f(void 0, GetApplicationResponseFilterSensitiveLog).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
|
|
1491
|
+
};
|
|
1492
|
+
__name(_GetApplicationCommand, "GetApplicationCommand");
|
|
1493
|
+
var GetApplicationCommand = _GetApplicationCommand;
|
|
1494
|
+
|
|
1495
|
+
// src/commands/GetDashboardForJobRunCommand.ts
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
var _GetDashboardForJobRunCommand = class _GetDashboardForJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1501
|
+
...commonParams
|
|
1502
|
+
}).m(function(Command, cs, config, o) {
|
|
1503
|
+
return [
|
|
1504
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1505
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1506
|
+
];
|
|
1507
|
+
}).s("AwsToledoWebService", "GetDashboardForJobRun", {}).n("EMRServerlessClient", "GetDashboardForJobRunCommand").f(void 0, void 0).ser(se_GetDashboardForJobRunCommand).de(de_GetDashboardForJobRunCommand).build() {
|
|
1508
|
+
};
|
|
1509
|
+
__name(_GetDashboardForJobRunCommand, "GetDashboardForJobRunCommand");
|
|
1510
|
+
var GetDashboardForJobRunCommand = _GetDashboardForJobRunCommand;
|
|
1511
|
+
|
|
1512
|
+
// src/commands/GetJobRunCommand.ts
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
var _GetJobRunCommand = class _GetJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1518
|
+
...commonParams
|
|
1519
|
+
}).m(function(Command, cs, config, o) {
|
|
1520
|
+
return [
|
|
1521
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1522
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1523
|
+
];
|
|
1524
|
+
}).s("AwsToledoWebService", "GetJobRun", {}).n("EMRServerlessClient", "GetJobRunCommand").f(void 0, GetJobRunResponseFilterSensitiveLog).ser(se_GetJobRunCommand).de(de_GetJobRunCommand).build() {
|
|
1525
|
+
};
|
|
1526
|
+
__name(_GetJobRunCommand, "GetJobRunCommand");
|
|
1527
|
+
var GetJobRunCommand = _GetJobRunCommand;
|
|
1528
|
+
|
|
1529
|
+
// src/commands/ListApplicationsCommand.ts
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
var _ListApplicationsCommand = class _ListApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1535
|
+
...commonParams
|
|
1536
|
+
}).m(function(Command, cs, config, o) {
|
|
1537
|
+
return [
|
|
1538
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1539
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1540
|
+
];
|
|
1541
|
+
}).s("AwsToledoWebService", "ListApplications", {}).n("EMRServerlessClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
|
|
1542
|
+
};
|
|
1543
|
+
__name(_ListApplicationsCommand, "ListApplicationsCommand");
|
|
1544
|
+
var ListApplicationsCommand = _ListApplicationsCommand;
|
|
1545
|
+
|
|
1546
|
+
// src/commands/ListJobRunsCommand.ts
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
var _ListJobRunsCommand = class _ListJobRunsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1552
|
+
...commonParams
|
|
1553
|
+
}).m(function(Command, cs, config, o) {
|
|
1554
|
+
return [
|
|
1555
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1556
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1557
|
+
];
|
|
1558
|
+
}).s("AwsToledoWebService", "ListJobRuns", {}).n("EMRServerlessClient", "ListJobRunsCommand").f(void 0, void 0).ser(se_ListJobRunsCommand).de(de_ListJobRunsCommand).build() {
|
|
1559
|
+
};
|
|
1560
|
+
__name(_ListJobRunsCommand, "ListJobRunsCommand");
|
|
1561
|
+
var ListJobRunsCommand = _ListJobRunsCommand;
|
|
1562
|
+
|
|
1563
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1569
|
+
...commonParams
|
|
1570
|
+
}).m(function(Command, cs, config, o) {
|
|
1571
|
+
return [
|
|
1572
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1573
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1574
|
+
];
|
|
1575
|
+
}).s("AwsToledoWebService", "ListTagsForResource", {}).n("EMRServerlessClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1576
|
+
};
|
|
1577
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1578
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1579
|
+
|
|
1580
|
+
// src/commands/StartApplicationCommand.ts
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
var _StartApplicationCommand = class _StartApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1586
|
+
...commonParams
|
|
1587
|
+
}).m(function(Command, cs, config, o) {
|
|
1588
|
+
return [
|
|
1589
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1590
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1591
|
+
];
|
|
1592
|
+
}).s("AwsToledoWebService", "StartApplication", {}).n("EMRServerlessClient", "StartApplicationCommand").f(void 0, void 0).ser(se_StartApplicationCommand).de(de_StartApplicationCommand).build() {
|
|
1593
|
+
};
|
|
1594
|
+
__name(_StartApplicationCommand, "StartApplicationCommand");
|
|
1595
|
+
var StartApplicationCommand = _StartApplicationCommand;
|
|
1596
|
+
|
|
1597
|
+
// src/commands/StartJobRunCommand.ts
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
var _StartJobRunCommand = class _StartJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1603
|
+
...commonParams
|
|
1604
|
+
}).m(function(Command, cs, config, o) {
|
|
1605
|
+
return [
|
|
1606
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1607
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1608
|
+
];
|
|
1609
|
+
}).s("AwsToledoWebService", "StartJobRun", {}).n("EMRServerlessClient", "StartJobRunCommand").f(StartJobRunRequestFilterSensitiveLog, void 0).ser(se_StartJobRunCommand).de(de_StartJobRunCommand).build() {
|
|
1610
|
+
};
|
|
1611
|
+
__name(_StartJobRunCommand, "StartJobRunCommand");
|
|
1612
|
+
var StartJobRunCommand = _StartJobRunCommand;
|
|
1613
|
+
|
|
1614
|
+
// src/commands/StopApplicationCommand.ts
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
var _StopApplicationCommand = class _StopApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1620
|
+
...commonParams
|
|
1621
|
+
}).m(function(Command, cs, config, o) {
|
|
1622
|
+
return [
|
|
1623
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1624
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1625
|
+
];
|
|
1626
|
+
}).s("AwsToledoWebService", "StopApplication", {}).n("EMRServerlessClient", "StopApplicationCommand").f(void 0, void 0).ser(se_StopApplicationCommand).de(de_StopApplicationCommand).build() {
|
|
1627
|
+
};
|
|
1628
|
+
__name(_StopApplicationCommand, "StopApplicationCommand");
|
|
1629
|
+
var StopApplicationCommand = _StopApplicationCommand;
|
|
1630
|
+
|
|
1631
|
+
// src/commands/TagResourceCommand.ts
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1637
|
+
...commonParams
|
|
1638
|
+
}).m(function(Command, cs, config, o) {
|
|
1639
|
+
return [
|
|
1640
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1641
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1642
|
+
];
|
|
1643
|
+
}).s("AwsToledoWebService", "TagResource", {}).n("EMRServerlessClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1644
|
+
};
|
|
1645
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1646
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1647
|
+
|
|
1648
|
+
// src/commands/UntagResourceCommand.ts
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1654
|
+
...commonParams
|
|
1655
|
+
}).m(function(Command, cs, config, o) {
|
|
1656
|
+
return [
|
|
1657
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1658
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1659
|
+
];
|
|
1660
|
+
}).s("AwsToledoWebService", "UntagResource", {}).n("EMRServerlessClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1661
|
+
};
|
|
1662
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1663
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1664
|
+
|
|
1665
|
+
// src/commands/UpdateApplicationCommand.ts
|
|
1666
|
+
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
var _UpdateApplicationCommand = class _UpdateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1671
|
+
...commonParams
|
|
1672
|
+
}).m(function(Command, cs, config, o) {
|
|
1673
|
+
return [
|
|
1674
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1675
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1676
|
+
];
|
|
1677
|
+
}).s("AwsToledoWebService", "UpdateApplication", {}).n("EMRServerlessClient", "UpdateApplicationCommand").f(UpdateApplicationRequestFilterSensitiveLog, UpdateApplicationResponseFilterSensitiveLog).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
|
|
1678
|
+
};
|
|
1679
|
+
__name(_UpdateApplicationCommand, "UpdateApplicationCommand");
|
|
1680
|
+
var UpdateApplicationCommand = _UpdateApplicationCommand;
|
|
1681
|
+
|
|
1682
|
+
// src/EMRServerless.ts
|
|
1683
|
+
var commands = {
|
|
1684
|
+
CancelJobRunCommand,
|
|
1685
|
+
CreateApplicationCommand,
|
|
1686
|
+
DeleteApplicationCommand,
|
|
1687
|
+
GetApplicationCommand,
|
|
1688
|
+
GetDashboardForJobRunCommand,
|
|
1689
|
+
GetJobRunCommand,
|
|
1690
|
+
ListApplicationsCommand,
|
|
1691
|
+
ListJobRunsCommand,
|
|
1692
|
+
ListTagsForResourceCommand,
|
|
1693
|
+
StartApplicationCommand,
|
|
1694
|
+
StartJobRunCommand,
|
|
1695
|
+
StopApplicationCommand,
|
|
1696
|
+
TagResourceCommand,
|
|
1697
|
+
UntagResourceCommand,
|
|
1698
|
+
UpdateApplicationCommand
|
|
1699
|
+
};
|
|
1700
|
+
var _EMRServerless = class _EMRServerless extends EMRServerlessClient {
|
|
1701
|
+
};
|
|
1702
|
+
__name(_EMRServerless, "EMRServerless");
|
|
1703
|
+
var EMRServerless = _EMRServerless;
|
|
1704
|
+
(0, import_smithy_client.createAggregatedClient)(commands, EMRServerless);
|
|
1705
|
+
|
|
1706
|
+
// src/pagination/ListApplicationsPaginator.ts
|
|
1707
|
+
var import_core3 = require("@smithy/core");
|
|
1708
|
+
var paginateListApplications = (0, import_core3.createPaginator)(EMRServerlessClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1709
|
+
|
|
1710
|
+
// src/pagination/ListJobRunsPaginator.ts
|
|
1711
|
+
var import_core4 = require("@smithy/core");
|
|
1712
|
+
var paginateListJobRuns = (0, import_core4.createPaginator)(EMRServerlessClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
|
|
1713
|
+
|
|
1714
|
+
// src/index.ts
|
|
1715
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1716
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1717
|
+
0 && (module.exports = {
|
|
1718
|
+
ApplicationFilterSensitiveLog,
|
|
1719
|
+
ApplicationState,
|
|
1720
|
+
Architecture,
|
|
1721
|
+
CancelJobRunCommand,
|
|
1722
|
+
ConfigurationFilterSensitiveLog,
|
|
1723
|
+
ConfigurationOverridesFilterSensitiveLog,
|
|
1724
|
+
ConflictException,
|
|
1725
|
+
CreateApplicationCommand,
|
|
1726
|
+
CreateApplicationRequestFilterSensitiveLog,
|
|
1727
|
+
DeleteApplicationCommand,
|
|
1728
|
+
EMRServerless,
|
|
1729
|
+
EMRServerlessClient,
|
|
1730
|
+
EMRServerlessServiceException,
|
|
1731
|
+
GetApplicationCommand,
|
|
1732
|
+
GetApplicationResponseFilterSensitiveLog,
|
|
1733
|
+
GetDashboardForJobRunCommand,
|
|
1734
|
+
GetJobRunCommand,
|
|
1735
|
+
GetJobRunResponseFilterSensitiveLog,
|
|
1736
|
+
HiveFilterSensitiveLog,
|
|
1737
|
+
InternalServerException,
|
|
1738
|
+
JobDriver,
|
|
1739
|
+
JobDriverFilterSensitiveLog,
|
|
1740
|
+
JobRunFilterSensitiveLog,
|
|
1741
|
+
JobRunState,
|
|
1742
|
+
ListApplicationsCommand,
|
|
1743
|
+
ListJobRunsCommand,
|
|
1744
|
+
ListTagsForResourceCommand,
|
|
1745
|
+
ResourceNotFoundException,
|
|
1746
|
+
ServiceQuotaExceededException,
|
|
1747
|
+
SparkSubmitFilterSensitiveLog,
|
|
1748
|
+
StartApplicationCommand,
|
|
1749
|
+
StartJobRunCommand,
|
|
1750
|
+
StartJobRunRequestFilterSensitiveLog,
|
|
1751
|
+
StopApplicationCommand,
|
|
1752
|
+
TagResourceCommand,
|
|
1753
|
+
UntagResourceCommand,
|
|
1754
|
+
UpdateApplicationCommand,
|
|
1755
|
+
UpdateApplicationRequestFilterSensitiveLog,
|
|
1756
|
+
UpdateApplicationResponseFilterSensitiveLog,
|
|
1757
|
+
ValidationException,
|
|
1758
|
+
__Client,
|
|
1759
|
+
paginateListApplications,
|
|
1760
|
+
paginateListJobRuns
|
|
1761
|
+
});
|