@aws-sdk/client-emr-containers 3.490.0 → 3.496.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.
Files changed (38) hide show
  1. package/dist-cjs/EMRContainers.js +1 -51
  2. package/dist-cjs/EMRContainersClient.js +1 -43
  3. package/dist-cjs/commands/CancelJobRunCommand.js +1 -28
  4. package/dist-cjs/commands/CreateJobTemplateCommand.js +1 -29
  5. package/dist-cjs/commands/CreateManagedEndpointCommand.js +1 -29
  6. package/dist-cjs/commands/CreateVirtualClusterCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteJobTemplateCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteManagedEndpointCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteVirtualClusterCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeJobRunCommand.js +1 -29
  11. package/dist-cjs/commands/DescribeJobTemplateCommand.js +1 -29
  12. package/dist-cjs/commands/DescribeManagedEndpointCommand.js +1 -29
  13. package/dist-cjs/commands/DescribeVirtualClusterCommand.js +1 -28
  14. package/dist-cjs/commands/GetManagedEndpointSessionCredentialsCommand.js +1 -29
  15. package/dist-cjs/commands/ListJobRunsCommand.js +1 -29
  16. package/dist-cjs/commands/ListJobTemplatesCommand.js +1 -29
  17. package/dist-cjs/commands/ListManagedEndpointsCommand.js +1 -29
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  19. package/dist-cjs/commands/ListVirtualClustersCommand.js +1 -28
  20. package/dist-cjs/commands/StartJobRunCommand.js +1 -29
  21. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  22. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  23. package/dist-cjs/commands/index.js +1 -23
  24. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  25. package/dist-cjs/extensionConfiguration.js +1 -2
  26. package/dist-cjs/index.js +2218 -11
  27. package/dist-cjs/models/EMRContainersServiceException.js +1 -12
  28. package/dist-cjs/models/index.js +1 -4
  29. package/dist-cjs/models/models_0.js +1 -244
  30. package/dist-cjs/pagination/Interfaces.js +1 -2
  31. package/dist-cjs/pagination/ListJobRunsPaginator.js +1 -7
  32. package/dist-cjs/pagination/ListJobTemplatesPaginator.js +1 -7
  33. package/dist-cjs/pagination/ListManagedEndpointsPaginator.js +1 -7
  34. package/dist-cjs/pagination/ListVirtualClustersPaginator.js +1 -7
  35. package/dist-cjs/pagination/index.js +1 -8
  36. package/dist-cjs/protocols/Aws_restJson1.js +1 -1382
  37. package/dist-cjs/runtimeExtensions.js +1 -22
  38. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2219 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMRContainersServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./EMRContainersClient"), exports);
6
- tslib_1.__exportStar(require("./EMRContainers"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var EMRContainersServiceException_1 = require("./models/EMRContainersServiceException");
12
- Object.defineProperty(exports, "EMRContainersServiceException", { enumerable: true, get: function () { return EMRContainersServiceException_1.EMRContainersServiceException; } });
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
+ CancelJobRunCommand: () => CancelJobRunCommand,
25
+ ConfigurationFilterSensitiveLog: () => ConfigurationFilterSensitiveLog,
26
+ ConfigurationOverridesFilterSensitiveLog: () => ConfigurationOverridesFilterSensitiveLog,
27
+ ContainerInfo: () => ContainerInfo,
28
+ ContainerProviderType: () => ContainerProviderType,
29
+ CreateJobTemplateCommand: () => CreateJobTemplateCommand,
30
+ CreateJobTemplateRequestFilterSensitiveLog: () => CreateJobTemplateRequestFilterSensitiveLog,
31
+ CreateManagedEndpointCommand: () => CreateManagedEndpointCommand,
32
+ CreateManagedEndpointRequestFilterSensitiveLog: () => CreateManagedEndpointRequestFilterSensitiveLog,
33
+ CreateVirtualClusterCommand: () => CreateVirtualClusterCommand,
34
+ Credentials: () => Credentials,
35
+ CredentialsFilterSensitiveLog: () => CredentialsFilterSensitiveLog,
36
+ DeleteJobTemplateCommand: () => DeleteJobTemplateCommand,
37
+ DeleteManagedEndpointCommand: () => DeleteManagedEndpointCommand,
38
+ DeleteVirtualClusterCommand: () => DeleteVirtualClusterCommand,
39
+ DescribeJobRunCommand: () => DescribeJobRunCommand,
40
+ DescribeJobRunResponseFilterSensitiveLog: () => DescribeJobRunResponseFilterSensitiveLog,
41
+ DescribeJobTemplateCommand: () => DescribeJobTemplateCommand,
42
+ DescribeJobTemplateResponseFilterSensitiveLog: () => DescribeJobTemplateResponseFilterSensitiveLog,
43
+ DescribeManagedEndpointCommand: () => DescribeManagedEndpointCommand,
44
+ DescribeManagedEndpointResponseFilterSensitiveLog: () => DescribeManagedEndpointResponseFilterSensitiveLog,
45
+ DescribeVirtualClusterCommand: () => DescribeVirtualClusterCommand,
46
+ EMRContainers: () => EMRContainers,
47
+ EMRContainersClient: () => EMRContainersClient,
48
+ EMRContainersServiceException: () => EMRContainersServiceException,
49
+ EndpointFilterSensitiveLog: () => EndpointFilterSensitiveLog,
50
+ EndpointState: () => EndpointState,
51
+ FailureReason: () => FailureReason,
52
+ GetManagedEndpointSessionCredentialsCommand: () => GetManagedEndpointSessionCredentialsCommand,
53
+ GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog: () => GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog,
54
+ InternalServerException: () => InternalServerException,
55
+ JobDriverFilterSensitiveLog: () => JobDriverFilterSensitiveLog,
56
+ JobRunFilterSensitiveLog: () => JobRunFilterSensitiveLog,
57
+ JobRunState: () => JobRunState,
58
+ JobTemplateDataFilterSensitiveLog: () => JobTemplateDataFilterSensitiveLog,
59
+ JobTemplateFilterSensitiveLog: () => JobTemplateFilterSensitiveLog,
60
+ ListJobRunsCommand: () => ListJobRunsCommand,
61
+ ListJobRunsResponseFilterSensitiveLog: () => ListJobRunsResponseFilterSensitiveLog,
62
+ ListJobTemplatesCommand: () => ListJobTemplatesCommand,
63
+ ListJobTemplatesResponseFilterSensitiveLog: () => ListJobTemplatesResponseFilterSensitiveLog,
64
+ ListManagedEndpointsCommand: () => ListManagedEndpointsCommand,
65
+ ListManagedEndpointsResponseFilterSensitiveLog: () => ListManagedEndpointsResponseFilterSensitiveLog,
66
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
67
+ ListVirtualClustersCommand: () => ListVirtualClustersCommand,
68
+ ParametricConfigurationOverridesFilterSensitiveLog: () => ParametricConfigurationOverridesFilterSensitiveLog,
69
+ PersistentAppUI: () => PersistentAppUI,
70
+ RequestThrottledException: () => RequestThrottledException,
71
+ ResourceNotFoundException: () => ResourceNotFoundException,
72
+ SparkSqlJobDriverFilterSensitiveLog: () => SparkSqlJobDriverFilterSensitiveLog,
73
+ SparkSubmitJobDriverFilterSensitiveLog: () => SparkSubmitJobDriverFilterSensitiveLog,
74
+ StartJobRunCommand: () => StartJobRunCommand,
75
+ StartJobRunRequestFilterSensitiveLog: () => StartJobRunRequestFilterSensitiveLog,
76
+ TagResourceCommand: () => TagResourceCommand,
77
+ TemplateParameterDataType: () => TemplateParameterDataType,
78
+ UntagResourceCommand: () => UntagResourceCommand,
79
+ ValidationException: () => ValidationException,
80
+ VirtualClusterState: () => VirtualClusterState,
81
+ __Client: () => import_smithy_client.Client,
82
+ paginateListJobRuns: () => paginateListJobRuns,
83
+ paginateListJobTemplates: () => paginateListJobTemplates,
84
+ paginateListManagedEndpoints: () => paginateListManagedEndpoints,
85
+ paginateListVirtualClusters: () => paginateListVirtualClusters
86
+ });
87
+ module.exports = __toCommonJS(src_exports);
88
+
89
+ // src/EMRContainersClient.ts
90
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
91
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
92
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
93
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
94
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
95
+ var import_config_resolver = require("@smithy/config-resolver");
96
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
97
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
98
+ var import_middleware_retry = require("@smithy/middleware-retry");
99
+
100
+
101
+ // src/endpoint/EndpointParameters.ts
102
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
103
+ return {
104
+ ...options,
105
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
106
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
107
+ defaultSigningName: "emr-containers"
108
+ };
109
+ }, "resolveClientEndpointParameters");
110
+ var commonParams = {
111
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
112
+ Endpoint: { type: "builtInParams", name: "endpoint" },
113
+ Region: { type: "builtInParams", name: "region" },
114
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
115
+ };
116
+
117
+ // src/EMRContainersClient.ts
118
+ var import_runtimeConfig = require("././runtimeConfig");
119
+
120
+ // src/runtimeExtensions.ts
121
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
122
+ var import_protocol_http = require("@smithy/protocol-http");
123
+ var import_smithy_client = require("@smithy/smithy-client");
124
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
125
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
126
+ const extensionConfiguration = {
127
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
128
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
129
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
130
+ };
131
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
132
+ return {
133
+ ...runtimeConfig,
134
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
135
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
136
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
137
+ };
138
+ }, "resolveRuntimeExtensions");
139
+
140
+ // src/EMRContainersClient.ts
141
+ var _EMRContainersClient = class _EMRContainersClient extends import_smithy_client.Client {
142
+ constructor(...[configuration]) {
143
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
144
+ const _config_1 = resolveClientEndpointParameters(_config_0);
145
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
146
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
147
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
148
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
149
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
150
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
151
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
152
+ super(_config_8);
153
+ this.config = _config_8;
154
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
155
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
157
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
158
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
161
+ }
162
+ /**
163
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
164
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
165
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
166
+ */
167
+ destroy() {
168
+ super.destroy();
169
+ }
170
+ };
171
+ __name(_EMRContainersClient, "EMRContainersClient");
172
+ var EMRContainersClient = _EMRContainersClient;
173
+
174
+ // src/EMRContainers.ts
175
+
176
+
177
+ // src/commands/CancelJobRunCommand.ts
178
+
179
+ var import_middleware_serde = require("@smithy/middleware-serde");
180
+
181
+ var import_types = require("@smithy/types");
182
+
183
+ // src/protocols/Aws_restJson1.ts
184
+ var import_core = require("@aws-sdk/core");
185
+ var import_core2 = require("@smithy/core");
186
+
187
+ var import_uuid = require("uuid");
188
+
189
+ // src/models/EMRContainersServiceException.ts
190
+
191
+ var _EMRContainersServiceException = class _EMRContainersServiceException extends import_smithy_client.ServiceException {
192
+ /**
193
+ * @internal
194
+ */
195
+ constructor(options) {
196
+ super(options);
197
+ Object.setPrototypeOf(this, _EMRContainersServiceException.prototype);
198
+ }
199
+ };
200
+ __name(_EMRContainersServiceException, "EMRContainersServiceException");
201
+ var EMRContainersServiceException = _EMRContainersServiceException;
202
+
203
+ // src/models/models_0.ts
204
+
205
+ var _InternalServerException = class _InternalServerException extends EMRContainersServiceException {
206
+ /**
207
+ * @internal
208
+ */
209
+ constructor(opts) {
210
+ super({
211
+ name: "InternalServerException",
212
+ $fault: "server",
213
+ ...opts
214
+ });
215
+ this.name = "InternalServerException";
216
+ this.$fault = "server";
217
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
218
+ }
219
+ };
220
+ __name(_InternalServerException, "InternalServerException");
221
+ var InternalServerException = _InternalServerException;
222
+ var _ValidationException = class _ValidationException extends EMRContainersServiceException {
223
+ /**
224
+ * @internal
225
+ */
226
+ constructor(opts) {
227
+ super({
228
+ name: "ValidationException",
229
+ $fault: "client",
230
+ ...opts
231
+ });
232
+ this.name = "ValidationException";
233
+ this.$fault = "client";
234
+ Object.setPrototypeOf(this, _ValidationException.prototype);
235
+ }
236
+ };
237
+ __name(_ValidationException, "ValidationException");
238
+ var ValidationException = _ValidationException;
239
+ var TemplateParameterDataType = {
240
+ NUMBER: "NUMBER",
241
+ STRING: "STRING"
242
+ };
243
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends EMRContainersServiceException {
244
+ /**
245
+ * @internal
246
+ */
247
+ constructor(opts) {
248
+ super({
249
+ name: "ResourceNotFoundException",
250
+ $fault: "client",
251
+ ...opts
252
+ });
253
+ this.name = "ResourceNotFoundException";
254
+ this.$fault = "client";
255
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
256
+ }
257
+ };
258
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
259
+ var ResourceNotFoundException = _ResourceNotFoundException;
260
+ var PersistentAppUI = {
261
+ DISABLED: "DISABLED",
262
+ ENABLED: "ENABLED"
263
+ };
264
+ var ContainerInfo;
265
+ ((ContainerInfo3) => {
266
+ ContainerInfo3.visit = /* @__PURE__ */ __name((value, visitor) => {
267
+ if (value.eksInfo !== void 0)
268
+ return visitor.eksInfo(value.eksInfo);
269
+ return visitor._(value.$unknown[0], value.$unknown[1]);
270
+ }, "visit");
271
+ })(ContainerInfo || (ContainerInfo = {}));
272
+ var ContainerProviderType = {
273
+ EKS: "EKS"
274
+ };
275
+ var FailureReason = {
276
+ CLUSTER_UNAVAILABLE: "CLUSTER_UNAVAILABLE",
277
+ INTERNAL_ERROR: "INTERNAL_ERROR",
278
+ USER_ERROR: "USER_ERROR",
279
+ VALIDATION_ERROR: "VALIDATION_ERROR"
280
+ };
281
+ var JobRunState = {
282
+ CANCELLED: "CANCELLED",
283
+ CANCEL_PENDING: "CANCEL_PENDING",
284
+ COMPLETED: "COMPLETED",
285
+ FAILED: "FAILED",
286
+ PENDING: "PENDING",
287
+ RUNNING: "RUNNING",
288
+ SUBMITTED: "SUBMITTED"
289
+ };
290
+ var EndpointState = {
291
+ ACTIVE: "ACTIVE",
292
+ CREATING: "CREATING",
293
+ TERMINATED: "TERMINATED",
294
+ TERMINATED_WITH_ERRORS: "TERMINATED_WITH_ERRORS",
295
+ TERMINATING: "TERMINATING"
296
+ };
297
+ var VirtualClusterState = {
298
+ ARRESTED: "ARRESTED",
299
+ RUNNING: "RUNNING",
300
+ TERMINATED: "TERMINATED",
301
+ TERMINATING: "TERMINATING"
302
+ };
303
+ var Credentials;
304
+ ((Credentials2) => {
305
+ Credentials2.visit = /* @__PURE__ */ __name((value, visitor) => {
306
+ if (value.token !== void 0)
307
+ return visitor.token(value.token);
308
+ return visitor._(value.$unknown[0], value.$unknown[1]);
309
+ }, "visit");
310
+ })(Credentials || (Credentials = {}));
311
+ var _RequestThrottledException = class _RequestThrottledException extends EMRContainersServiceException {
312
+ /**
313
+ * @internal
314
+ */
315
+ constructor(opts) {
316
+ super({
317
+ name: "RequestThrottledException",
318
+ $fault: "client",
319
+ ...opts
320
+ });
321
+ this.name = "RequestThrottledException";
322
+ this.$fault = "client";
323
+ Object.setPrototypeOf(this, _RequestThrottledException.prototype);
324
+ }
325
+ };
326
+ __name(_RequestThrottledException, "RequestThrottledException");
327
+ var RequestThrottledException = _RequestThrottledException;
328
+ var SparkSqlJobDriverFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
329
+ ...obj,
330
+ ...obj.entryPoint && { entryPoint: import_smithy_client.SENSITIVE_STRING },
331
+ ...obj.sparkSqlParameters && { sparkSqlParameters: import_smithy_client.SENSITIVE_STRING }
332
+ }), "SparkSqlJobDriverFilterSensitiveLog");
333
+ var SparkSubmitJobDriverFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
334
+ ...obj,
335
+ ...obj.entryPoint && { entryPoint: import_smithy_client.SENSITIVE_STRING },
336
+ ...obj.entryPointArguments && { entryPointArguments: import_smithy_client.SENSITIVE_STRING },
337
+ ...obj.sparkSubmitParameters && { sparkSubmitParameters: import_smithy_client.SENSITIVE_STRING }
338
+ }), "SparkSubmitJobDriverFilterSensitiveLog");
339
+ var JobDriverFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
340
+ ...obj,
341
+ ...obj.sparkSubmitJobDriver && {
342
+ sparkSubmitJobDriver: SparkSubmitJobDriverFilterSensitiveLog(obj.sparkSubmitJobDriver)
343
+ },
344
+ ...obj.sparkSqlJobDriver && { sparkSqlJobDriver: SparkSqlJobDriverFilterSensitiveLog(obj.sparkSqlJobDriver) }
345
+ }), "JobDriverFilterSensitiveLog");
346
+ var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
347
+ if (obj.token !== void 0)
348
+ return { token: import_smithy_client.SENSITIVE_STRING };
349
+ if (obj.$unknown !== void 0)
350
+ return { [obj.$unknown[0]]: "UNKNOWN" };
351
+ }, "CredentialsFilterSensitiveLog");
352
+ var GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
353
+ ...obj,
354
+ ...obj.credentials && { credentials: CredentialsFilterSensitiveLog(obj.credentials) }
355
+ }), "GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog");
356
+ var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
357
+ ...obj,
358
+ ...obj.properties && { properties: import_smithy_client.SENSITIVE_STRING },
359
+ ...obj.configurations && {
360
+ configurations: obj.configurations.map((item) => ConfigurationFilterSensitiveLog(item))
361
+ }
362
+ }), "ConfigurationFilterSensitiveLog");
363
+ var ConfigurationOverridesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
364
+ ...obj,
365
+ ...obj.applicationConfiguration && {
366
+ applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item))
367
+ }
368
+ }), "ConfigurationOverridesFilterSensitiveLog");
369
+ var ParametricConfigurationOverridesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
370
+ ...obj,
371
+ ...obj.applicationConfiguration && {
372
+ applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item))
373
+ }
374
+ }), "ParametricConfigurationOverridesFilterSensitiveLog");
375
+ var CreateManagedEndpointRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
376
+ ...obj,
377
+ ...obj.configurationOverrides && {
378
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
379
+ }
380
+ }), "CreateManagedEndpointRequestFilterSensitiveLog");
381
+ var EndpointFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
382
+ ...obj,
383
+ ...obj.configurationOverrides && {
384
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
385
+ }
386
+ }), "EndpointFilterSensitiveLog");
387
+ var JobRunFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
388
+ ...obj,
389
+ ...obj.configurationOverrides && {
390
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
391
+ },
392
+ ...obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }
393
+ }), "JobRunFilterSensitiveLog");
394
+ var JobTemplateDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
395
+ ...obj,
396
+ ...obj.configurationOverrides && {
397
+ configurationOverrides: ParametricConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
398
+ },
399
+ ...obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }
400
+ }), "JobTemplateDataFilterSensitiveLog");
401
+ var StartJobRunRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
402
+ ...obj,
403
+ ...obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) },
404
+ ...obj.configurationOverrides && {
405
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides)
406
+ }
407
+ }), "StartJobRunRequestFilterSensitiveLog");
408
+ var CreateJobTemplateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
409
+ ...obj,
410
+ ...obj.jobTemplateData && { jobTemplateData: JobTemplateDataFilterSensitiveLog(obj.jobTemplateData) }
411
+ }), "CreateJobTemplateRequestFilterSensitiveLog");
412
+ var DescribeJobRunResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
413
+ ...obj,
414
+ ...obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }
415
+ }), "DescribeJobRunResponseFilterSensitiveLog");
416
+ var DescribeManagedEndpointResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
417
+ ...obj,
418
+ ...obj.endpoint && { endpoint: EndpointFilterSensitiveLog(obj.endpoint) }
419
+ }), "DescribeManagedEndpointResponseFilterSensitiveLog");
420
+ var JobTemplateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
421
+ ...obj,
422
+ ...obj.jobTemplateData && { jobTemplateData: JobTemplateDataFilterSensitiveLog(obj.jobTemplateData) }
423
+ }), "JobTemplateFilterSensitiveLog");
424
+ var DescribeJobTemplateResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
425
+ ...obj,
426
+ ...obj.jobTemplate && { jobTemplate: JobTemplateFilterSensitiveLog(obj.jobTemplate) }
427
+ }), "DescribeJobTemplateResponseFilterSensitiveLog");
428
+ var ListJobRunsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
429
+ ...obj,
430
+ ...obj.jobRuns && { jobRuns: obj.jobRuns.map((item) => JobRunFilterSensitiveLog(item)) }
431
+ }), "ListJobRunsResponseFilterSensitiveLog");
432
+ var ListManagedEndpointsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
433
+ ...obj
434
+ }), "ListManagedEndpointsResponseFilterSensitiveLog");
435
+ var ListJobTemplatesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
436
+ ...obj,
437
+ ...obj.templates && { templates: obj.templates.map((item) => JobTemplateFilterSensitiveLog(item)) }
438
+ }), "ListJobTemplatesResponseFilterSensitiveLog");
439
+
440
+ // src/protocols/Aws_restJson1.ts
441
+ var se_CancelJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
442
+ const b = (0, import_core2.requestBuilder)(input, context);
443
+ const headers = {};
444
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
445
+ b.p("id", () => input.id, "{id}", false);
446
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
447
+ let body;
448
+ b.m("DELETE").h(headers).b(body);
449
+ return b.build();
450
+ }, "se_CancelJobRunCommand");
451
+ var se_CreateJobTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
452
+ const b = (0, import_core2.requestBuilder)(input, context);
453
+ const headers = {
454
+ "content-type": "application/json"
455
+ };
456
+ b.bp("/jobtemplates");
457
+ let body;
458
+ body = JSON.stringify(
459
+ (0, import_smithy_client.take)(input, {
460
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
461
+ jobTemplateData: (_) => se_JobTemplateData(_, context),
462
+ kmsKeyArn: [],
463
+ name: [],
464
+ tags: (_) => (0, import_smithy_client._json)(_)
465
+ })
466
+ );
467
+ b.m("POST").h(headers).b(body);
468
+ return b.build();
469
+ }, "se_CreateJobTemplateCommand");
470
+ var se_CreateManagedEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
471
+ const b = (0, import_core2.requestBuilder)(input, context);
472
+ const headers = {
473
+ "content-type": "application/json"
474
+ };
475
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints");
476
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
477
+ let body;
478
+ body = JSON.stringify(
479
+ (0, import_smithy_client.take)(input, {
480
+ certificateArn: [],
481
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
482
+ configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
483
+ executionRoleArn: [],
484
+ name: [],
485
+ releaseLabel: [],
486
+ tags: (_) => (0, import_smithy_client._json)(_),
487
+ type: []
488
+ })
489
+ );
490
+ b.m("POST").h(headers).b(body);
491
+ return b.build();
492
+ }, "se_CreateManagedEndpointCommand");
493
+ var se_CreateVirtualClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
494
+ const b = (0, import_core2.requestBuilder)(input, context);
495
+ const headers = {
496
+ "content-type": "application/json"
497
+ };
498
+ b.bp("/virtualclusters");
499
+ let body;
500
+ body = JSON.stringify(
501
+ (0, import_smithy_client.take)(input, {
502
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
503
+ containerProvider: (_) => (0, import_smithy_client._json)(_),
504
+ name: [],
505
+ tags: (_) => (0, import_smithy_client._json)(_)
506
+ })
507
+ );
508
+ b.m("POST").h(headers).b(body);
509
+ return b.build();
510
+ }, "se_CreateVirtualClusterCommand");
511
+ var se_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
512
+ const b = (0, import_core2.requestBuilder)(input, context);
513
+ const headers = {};
514
+ b.bp("/jobtemplates/{id}");
515
+ b.p("id", () => input.id, "{id}", false);
516
+ let body;
517
+ b.m("DELETE").h(headers).b(body);
518
+ return b.build();
519
+ }, "se_DeleteJobTemplateCommand");
520
+ var se_DeleteManagedEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
521
+ const b = (0, import_core2.requestBuilder)(input, context);
522
+ const headers = {};
523
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
524
+ b.p("id", () => input.id, "{id}", false);
525
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
526
+ let body;
527
+ b.m("DELETE").h(headers).b(body);
528
+ return b.build();
529
+ }, "se_DeleteManagedEndpointCommand");
530
+ var se_DeleteVirtualClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
531
+ const b = (0, import_core2.requestBuilder)(input, context);
532
+ const headers = {};
533
+ b.bp("/virtualclusters/{id}");
534
+ b.p("id", () => input.id, "{id}", false);
535
+ let body;
536
+ b.m("DELETE").h(headers).b(body);
537
+ return b.build();
538
+ }, "se_DeleteVirtualClusterCommand");
539
+ var se_DescribeJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
540
+ const b = (0, import_core2.requestBuilder)(input, context);
541
+ const headers = {};
542
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
543
+ b.p("id", () => input.id, "{id}", false);
544
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
545
+ let body;
546
+ b.m("GET").h(headers).b(body);
547
+ return b.build();
548
+ }, "se_DescribeJobRunCommand");
549
+ var se_DescribeJobTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const b = (0, import_core2.requestBuilder)(input, context);
551
+ const headers = {};
552
+ b.bp("/jobtemplates/{id}");
553
+ b.p("id", () => input.id, "{id}", false);
554
+ let body;
555
+ b.m("GET").h(headers).b(body);
556
+ return b.build();
557
+ }, "se_DescribeJobTemplateCommand");
558
+ var se_DescribeManagedEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
559
+ const b = (0, import_core2.requestBuilder)(input, context);
560
+ const headers = {};
561
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
562
+ b.p("id", () => input.id, "{id}", false);
563
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
564
+ let body;
565
+ b.m("GET").h(headers).b(body);
566
+ return b.build();
567
+ }, "se_DescribeManagedEndpointCommand");
568
+ var se_DescribeVirtualClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
569
+ const b = (0, import_core2.requestBuilder)(input, context);
570
+ const headers = {};
571
+ b.bp("/virtualclusters/{id}");
572
+ b.p("id", () => input.id, "{id}", false);
573
+ let body;
574
+ b.m("GET").h(headers).b(body);
575
+ return b.build();
576
+ }, "se_DescribeVirtualClusterCommand");
577
+ var se_GetManagedEndpointSessionCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
578
+ const b = (0, import_core2.requestBuilder)(input, context);
579
+ const headers = {
580
+ "content-type": "application/json"
581
+ };
582
+ b.bp("/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials");
583
+ b.p("endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
584
+ b.p("virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
585
+ let body;
586
+ body = JSON.stringify(
587
+ (0, import_smithy_client.take)(input, {
588
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
589
+ credentialType: [],
590
+ durationInSeconds: [],
591
+ executionRoleArn: [],
592
+ logContext: []
593
+ })
594
+ );
595
+ b.m("POST").h(headers).b(body);
596
+ return b.build();
597
+ }, "se_GetManagedEndpointSessionCredentialsCommand");
598
+ var se_ListJobRunsCommand = /* @__PURE__ */ __name(async (input, context) => {
599
+ const b = (0, import_core2.requestBuilder)(input, context);
600
+ const headers = {};
601
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns");
602
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
603
+ const query = (0, import_smithy_client.map)({
604
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
605
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
606
+ [_n]: [, input[_n]],
607
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
608
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
609
+ [_nT]: [, input[_nT]]
610
+ });
611
+ let body;
612
+ b.m("GET").h(headers).q(query).b(body);
613
+ return b.build();
614
+ }, "se_ListJobRunsCommand");
615
+ var se_ListJobTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
616
+ const b = (0, import_core2.requestBuilder)(input, context);
617
+ const headers = {};
618
+ b.bp("/jobtemplates");
619
+ const query = (0, import_smithy_client.map)({
620
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
621
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
622
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
623
+ [_nT]: [, input[_nT]]
624
+ });
625
+ let body;
626
+ b.m("GET").h(headers).q(query).b(body);
627
+ return b.build();
628
+ }, "se_ListJobTemplatesCommand");
629
+ var se_ListManagedEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
630
+ const b = (0, import_core2.requestBuilder)(input, context);
631
+ const headers = {};
632
+ b.bp("/virtualclusters/{virtualClusterId}/endpoints");
633
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
634
+ const query = (0, import_smithy_client.map)({
635
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
636
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
637
+ [_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
638
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
639
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
640
+ [_nT]: [, input[_nT]]
641
+ });
642
+ let body;
643
+ b.m("GET").h(headers).q(query).b(body);
644
+ return b.build();
645
+ }, "se_ListManagedEndpointsCommand");
646
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
647
+ const b = (0, import_core2.requestBuilder)(input, context);
648
+ const headers = {};
649
+ b.bp("/tags/{resourceArn}");
650
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
651
+ let body;
652
+ b.m("GET").h(headers).b(body);
653
+ return b.build();
654
+ }, "se_ListTagsForResourceCommand");
655
+ var se_ListVirtualClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
656
+ const b = (0, import_core2.requestBuilder)(input, context);
657
+ const headers = {};
658
+ b.bp("/virtualclusters");
659
+ const query = (0, import_smithy_client.map)({
660
+ [_cPI]: [, input[_cPI]],
661
+ [_cPT]: [, input[_cPT]],
662
+ [_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
663
+ [_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
664
+ [_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
665
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
666
+ [_nT]: [, input[_nT]]
667
+ });
668
+ let body;
669
+ b.m("GET").h(headers).q(query).b(body);
670
+ return b.build();
671
+ }, "se_ListVirtualClustersCommand");
672
+ var se_StartJobRunCommand = /* @__PURE__ */ __name(async (input, context) => {
673
+ const b = (0, import_core2.requestBuilder)(input, context);
674
+ const headers = {
675
+ "content-type": "application/json"
676
+ };
677
+ b.bp("/virtualclusters/{virtualClusterId}/jobruns");
678
+ b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
679
+ let body;
680
+ body = JSON.stringify(
681
+ (0, import_smithy_client.take)(input, {
682
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
683
+ configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
684
+ executionRoleArn: [],
685
+ jobDriver: (_) => (0, import_smithy_client._json)(_),
686
+ jobTemplateId: [],
687
+ jobTemplateParameters: (_) => (0, import_smithy_client._json)(_),
688
+ name: [],
689
+ releaseLabel: [],
690
+ retryPolicyConfiguration: (_) => (0, import_smithy_client._json)(_),
691
+ tags: (_) => (0, import_smithy_client._json)(_)
692
+ })
693
+ );
694
+ b.m("POST").h(headers).b(body);
695
+ return b.build();
696
+ }, "se_StartJobRunCommand");
697
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
698
+ const b = (0, import_core2.requestBuilder)(input, context);
699
+ const headers = {
700
+ "content-type": "application/json"
701
+ };
702
+ b.bp("/tags/{resourceArn}");
703
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
704
+ let body;
705
+ body = JSON.stringify(
706
+ (0, import_smithy_client.take)(input, {
707
+ tags: (_) => (0, import_smithy_client._json)(_)
708
+ })
709
+ );
710
+ b.m("POST").h(headers).b(body);
711
+ return b.build();
712
+ }, "se_TagResourceCommand");
713
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
714
+ const b = (0, import_core2.requestBuilder)(input, context);
715
+ const headers = {};
716
+ b.bp("/tags/{resourceArn}");
717
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
718
+ const query = (0, import_smithy_client.map)({
719
+ [_tK]: [
720
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
721
+ () => (input[_tK] || []).map((_entry) => _entry)
722
+ ]
723
+ });
724
+ let body;
725
+ b.m("DELETE").h(headers).q(query).b(body);
726
+ return b.build();
727
+ }, "se_UntagResourceCommand");
728
+ var de_CancelJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
729
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
730
+ return de_CancelJobRunCommandError(output, context);
731
+ }
732
+ const contents = (0, import_smithy_client.map)({
733
+ $metadata: deserializeMetadata(output)
734
+ });
735
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
736
+ const doc = (0, import_smithy_client.take)(data, {
737
+ id: import_smithy_client.expectString,
738
+ virtualClusterId: import_smithy_client.expectString
739
+ });
740
+ Object.assign(contents, doc);
741
+ return contents;
742
+ }, "de_CancelJobRunCommand");
743
+ var de_CancelJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
744
+ const parsedOutput = {
745
+ ...output,
746
+ body: await parseErrorBody(output.body, context)
747
+ };
748
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
749
+ switch (errorCode) {
750
+ case "InternalServerException":
751
+ case "com.amazonaws.emrcontainers#InternalServerException":
752
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
753
+ case "ValidationException":
754
+ case "com.amazonaws.emrcontainers#ValidationException":
755
+ throw await de_ValidationExceptionRes(parsedOutput, context);
756
+ default:
757
+ const parsedBody = parsedOutput.body;
758
+ return throwDefaultError({
759
+ output,
760
+ parsedBody,
761
+ errorCode
762
+ });
763
+ }
764
+ }, "de_CancelJobRunCommandError");
765
+ var de_CreateJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
766
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
767
+ return de_CreateJobTemplateCommandError(output, context);
768
+ }
769
+ const contents = (0, import_smithy_client.map)({
770
+ $metadata: deserializeMetadata(output)
771
+ });
772
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
773
+ const doc = (0, import_smithy_client.take)(data, {
774
+ arn: import_smithy_client.expectString,
775
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
776
+ id: import_smithy_client.expectString,
777
+ name: import_smithy_client.expectString
778
+ });
779
+ Object.assign(contents, doc);
780
+ return contents;
781
+ }, "de_CreateJobTemplateCommand");
782
+ var de_CreateJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
783
+ const parsedOutput = {
784
+ ...output,
785
+ body: await parseErrorBody(output.body, context)
786
+ };
787
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
788
+ switch (errorCode) {
789
+ case "InternalServerException":
790
+ case "com.amazonaws.emrcontainers#InternalServerException":
791
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
792
+ case "ResourceNotFoundException":
793
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
794
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
795
+ case "ValidationException":
796
+ case "com.amazonaws.emrcontainers#ValidationException":
797
+ throw await de_ValidationExceptionRes(parsedOutput, context);
798
+ default:
799
+ const parsedBody = parsedOutput.body;
800
+ return throwDefaultError({
801
+ output,
802
+ parsedBody,
803
+ errorCode
804
+ });
805
+ }
806
+ }, "de_CreateJobTemplateCommandError");
807
+ var de_CreateManagedEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
808
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
809
+ return de_CreateManagedEndpointCommandError(output, context);
810
+ }
811
+ const contents = (0, import_smithy_client.map)({
812
+ $metadata: deserializeMetadata(output)
813
+ });
814
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
815
+ const doc = (0, import_smithy_client.take)(data, {
816
+ arn: import_smithy_client.expectString,
817
+ id: import_smithy_client.expectString,
818
+ name: import_smithy_client.expectString,
819
+ virtualClusterId: import_smithy_client.expectString
820
+ });
821
+ Object.assign(contents, doc);
822
+ return contents;
823
+ }, "de_CreateManagedEndpointCommand");
824
+ var de_CreateManagedEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
825
+ const parsedOutput = {
826
+ ...output,
827
+ body: await parseErrorBody(output.body, context)
828
+ };
829
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
830
+ switch (errorCode) {
831
+ case "InternalServerException":
832
+ case "com.amazonaws.emrcontainers#InternalServerException":
833
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
834
+ case "ResourceNotFoundException":
835
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
836
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
837
+ case "ValidationException":
838
+ case "com.amazonaws.emrcontainers#ValidationException":
839
+ throw await de_ValidationExceptionRes(parsedOutput, context);
840
+ default:
841
+ const parsedBody = parsedOutput.body;
842
+ return throwDefaultError({
843
+ output,
844
+ parsedBody,
845
+ errorCode
846
+ });
847
+ }
848
+ }, "de_CreateManagedEndpointCommandError");
849
+ var de_CreateVirtualClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
851
+ return de_CreateVirtualClusterCommandError(output, context);
852
+ }
853
+ const contents = (0, import_smithy_client.map)({
854
+ $metadata: deserializeMetadata(output)
855
+ });
856
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
857
+ const doc = (0, import_smithy_client.take)(data, {
858
+ arn: import_smithy_client.expectString,
859
+ id: import_smithy_client.expectString,
860
+ name: import_smithy_client.expectString
861
+ });
862
+ Object.assign(contents, doc);
863
+ return contents;
864
+ }, "de_CreateVirtualClusterCommand");
865
+ var de_CreateVirtualClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
866
+ const parsedOutput = {
867
+ ...output,
868
+ body: await parseErrorBody(output.body, context)
869
+ };
870
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
871
+ switch (errorCode) {
872
+ case "InternalServerException":
873
+ case "com.amazonaws.emrcontainers#InternalServerException":
874
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
875
+ case "ResourceNotFoundException":
876
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
877
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
878
+ case "ValidationException":
879
+ case "com.amazonaws.emrcontainers#ValidationException":
880
+ throw await de_ValidationExceptionRes(parsedOutput, context);
881
+ default:
882
+ const parsedBody = parsedOutput.body;
883
+ return throwDefaultError({
884
+ output,
885
+ parsedBody,
886
+ errorCode
887
+ });
888
+ }
889
+ }, "de_CreateVirtualClusterCommandError");
890
+ var de_DeleteJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
891
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
892
+ return de_DeleteJobTemplateCommandError(output, context);
893
+ }
894
+ const contents = (0, import_smithy_client.map)({
895
+ $metadata: deserializeMetadata(output)
896
+ });
897
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
898
+ const doc = (0, import_smithy_client.take)(data, {
899
+ id: import_smithy_client.expectString
900
+ });
901
+ Object.assign(contents, doc);
902
+ return contents;
903
+ }, "de_DeleteJobTemplateCommand");
904
+ var de_DeleteJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
905
+ const parsedOutput = {
906
+ ...output,
907
+ body: await parseErrorBody(output.body, context)
908
+ };
909
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
910
+ switch (errorCode) {
911
+ case "InternalServerException":
912
+ case "com.amazonaws.emrcontainers#InternalServerException":
913
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
914
+ case "ValidationException":
915
+ case "com.amazonaws.emrcontainers#ValidationException":
916
+ throw await de_ValidationExceptionRes(parsedOutput, context);
917
+ default:
918
+ const parsedBody = parsedOutput.body;
919
+ return throwDefaultError({
920
+ output,
921
+ parsedBody,
922
+ errorCode
923
+ });
924
+ }
925
+ }, "de_DeleteJobTemplateCommandError");
926
+ var de_DeleteManagedEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
928
+ return de_DeleteManagedEndpointCommandError(output, context);
929
+ }
930
+ const contents = (0, import_smithy_client.map)({
931
+ $metadata: deserializeMetadata(output)
932
+ });
933
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
934
+ const doc = (0, import_smithy_client.take)(data, {
935
+ id: import_smithy_client.expectString,
936
+ virtualClusterId: import_smithy_client.expectString
937
+ });
938
+ Object.assign(contents, doc);
939
+ return contents;
940
+ }, "de_DeleteManagedEndpointCommand");
941
+ var de_DeleteManagedEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
942
+ const parsedOutput = {
943
+ ...output,
944
+ body: await parseErrorBody(output.body, context)
945
+ };
946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
947
+ switch (errorCode) {
948
+ case "InternalServerException":
949
+ case "com.amazonaws.emrcontainers#InternalServerException":
950
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
951
+ case "ValidationException":
952
+ case "com.amazonaws.emrcontainers#ValidationException":
953
+ throw await de_ValidationExceptionRes(parsedOutput, context);
954
+ default:
955
+ const parsedBody = parsedOutput.body;
956
+ return throwDefaultError({
957
+ output,
958
+ parsedBody,
959
+ errorCode
960
+ });
961
+ }
962
+ }, "de_DeleteManagedEndpointCommandError");
963
+ var de_DeleteVirtualClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
964
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
965
+ return de_DeleteVirtualClusterCommandError(output, context);
966
+ }
967
+ const contents = (0, import_smithy_client.map)({
968
+ $metadata: deserializeMetadata(output)
969
+ });
970
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
971
+ const doc = (0, import_smithy_client.take)(data, {
972
+ id: import_smithy_client.expectString
973
+ });
974
+ Object.assign(contents, doc);
975
+ return contents;
976
+ }, "de_DeleteVirtualClusterCommand");
977
+ var de_DeleteVirtualClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
978
+ const parsedOutput = {
979
+ ...output,
980
+ body: await parseErrorBody(output.body, context)
981
+ };
982
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
983
+ switch (errorCode) {
984
+ case "InternalServerException":
985
+ case "com.amazonaws.emrcontainers#InternalServerException":
986
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
987
+ case "ValidationException":
988
+ case "com.amazonaws.emrcontainers#ValidationException":
989
+ throw await de_ValidationExceptionRes(parsedOutput, context);
990
+ default:
991
+ const parsedBody = parsedOutput.body;
992
+ return throwDefaultError({
993
+ output,
994
+ parsedBody,
995
+ errorCode
996
+ });
997
+ }
998
+ }, "de_DeleteVirtualClusterCommandError");
999
+ var de_DescribeJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1000
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1001
+ return de_DescribeJobRunCommandError(output, context);
1002
+ }
1003
+ const contents = (0, import_smithy_client.map)({
1004
+ $metadata: deserializeMetadata(output)
1005
+ });
1006
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1007
+ const doc = (0, import_smithy_client.take)(data, {
1008
+ jobRun: (_) => de_JobRun(_, context)
1009
+ });
1010
+ Object.assign(contents, doc);
1011
+ return contents;
1012
+ }, "de_DescribeJobRunCommand");
1013
+ var de_DescribeJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
1014
+ const parsedOutput = {
1015
+ ...output,
1016
+ body: await parseErrorBody(output.body, context)
1017
+ };
1018
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1019
+ switch (errorCode) {
1020
+ case "InternalServerException":
1021
+ case "com.amazonaws.emrcontainers#InternalServerException":
1022
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1023
+ case "ResourceNotFoundException":
1024
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1025
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1026
+ case "ValidationException":
1027
+ case "com.amazonaws.emrcontainers#ValidationException":
1028
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1029
+ default:
1030
+ const parsedBody = parsedOutput.body;
1031
+ return throwDefaultError({
1032
+ output,
1033
+ parsedBody,
1034
+ errorCode
1035
+ });
1036
+ }
1037
+ }, "de_DescribeJobRunCommandError");
1038
+ var de_DescribeJobTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1039
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1040
+ return de_DescribeJobTemplateCommandError(output, context);
1041
+ }
1042
+ const contents = (0, import_smithy_client.map)({
1043
+ $metadata: deserializeMetadata(output)
1044
+ });
1045
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1046
+ const doc = (0, import_smithy_client.take)(data, {
1047
+ jobTemplate: (_) => de_JobTemplate(_, context)
1048
+ });
1049
+ Object.assign(contents, doc);
1050
+ return contents;
1051
+ }, "de_DescribeJobTemplateCommand");
1052
+ var de_DescribeJobTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1053
+ const parsedOutput = {
1054
+ ...output,
1055
+ body: await parseErrorBody(output.body, context)
1056
+ };
1057
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1058
+ switch (errorCode) {
1059
+ case "InternalServerException":
1060
+ case "com.amazonaws.emrcontainers#InternalServerException":
1061
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1062
+ case "ResourceNotFoundException":
1063
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1064
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1065
+ case "ValidationException":
1066
+ case "com.amazonaws.emrcontainers#ValidationException":
1067
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1068
+ default:
1069
+ const parsedBody = parsedOutput.body;
1070
+ return throwDefaultError({
1071
+ output,
1072
+ parsedBody,
1073
+ errorCode
1074
+ });
1075
+ }
1076
+ }, "de_DescribeJobTemplateCommandError");
1077
+ var de_DescribeManagedEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1078
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1079
+ return de_DescribeManagedEndpointCommandError(output, context);
1080
+ }
1081
+ const contents = (0, import_smithy_client.map)({
1082
+ $metadata: deserializeMetadata(output)
1083
+ });
1084
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1085
+ const doc = (0, import_smithy_client.take)(data, {
1086
+ endpoint: (_) => de_Endpoint(_, context)
1087
+ });
1088
+ Object.assign(contents, doc);
1089
+ return contents;
1090
+ }, "de_DescribeManagedEndpointCommand");
1091
+ var de_DescribeManagedEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1092
+ const parsedOutput = {
1093
+ ...output,
1094
+ body: await parseErrorBody(output.body, context)
1095
+ };
1096
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1097
+ switch (errorCode) {
1098
+ case "InternalServerException":
1099
+ case "com.amazonaws.emrcontainers#InternalServerException":
1100
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1101
+ case "ResourceNotFoundException":
1102
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1103
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1104
+ case "ValidationException":
1105
+ case "com.amazonaws.emrcontainers#ValidationException":
1106
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1107
+ default:
1108
+ const parsedBody = parsedOutput.body;
1109
+ return throwDefaultError({
1110
+ output,
1111
+ parsedBody,
1112
+ errorCode
1113
+ });
1114
+ }
1115
+ }, "de_DescribeManagedEndpointCommandError");
1116
+ var de_DescribeVirtualClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
+ return de_DescribeVirtualClusterCommandError(output, context);
1119
+ }
1120
+ const contents = (0, import_smithy_client.map)({
1121
+ $metadata: deserializeMetadata(output)
1122
+ });
1123
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1124
+ const doc = (0, import_smithy_client.take)(data, {
1125
+ virtualCluster: (_) => de_VirtualCluster(_, context)
1126
+ });
1127
+ Object.assign(contents, doc);
1128
+ return contents;
1129
+ }, "de_DescribeVirtualClusterCommand");
1130
+ var de_DescribeVirtualClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1131
+ const parsedOutput = {
1132
+ ...output,
1133
+ body: await parseErrorBody(output.body, context)
1134
+ };
1135
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1136
+ switch (errorCode) {
1137
+ case "InternalServerException":
1138
+ case "com.amazonaws.emrcontainers#InternalServerException":
1139
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1140
+ case "ResourceNotFoundException":
1141
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1142
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1143
+ case "ValidationException":
1144
+ case "com.amazonaws.emrcontainers#ValidationException":
1145
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1146
+ default:
1147
+ const parsedBody = parsedOutput.body;
1148
+ return throwDefaultError({
1149
+ output,
1150
+ parsedBody,
1151
+ errorCode
1152
+ });
1153
+ }
1154
+ }, "de_DescribeVirtualClusterCommandError");
1155
+ var de_GetManagedEndpointSessionCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
1156
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1157
+ return de_GetManagedEndpointSessionCredentialsCommandError(output, context);
1158
+ }
1159
+ const contents = (0, import_smithy_client.map)({
1160
+ $metadata: deserializeMetadata(output)
1161
+ });
1162
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1163
+ const doc = (0, import_smithy_client.take)(data, {
1164
+ credentials: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1165
+ expiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1166
+ id: import_smithy_client.expectString
1167
+ });
1168
+ Object.assign(contents, doc);
1169
+ return contents;
1170
+ }, "de_GetManagedEndpointSessionCredentialsCommand");
1171
+ var de_GetManagedEndpointSessionCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1172
+ const parsedOutput = {
1173
+ ...output,
1174
+ body: await parseErrorBody(output.body, context)
1175
+ };
1176
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1177
+ switch (errorCode) {
1178
+ case "InternalServerException":
1179
+ case "com.amazonaws.emrcontainers#InternalServerException":
1180
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1181
+ case "RequestThrottledException":
1182
+ case "com.amazonaws.emrcontainers#RequestThrottledException":
1183
+ throw await de_RequestThrottledExceptionRes(parsedOutput, context);
1184
+ case "ResourceNotFoundException":
1185
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1186
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1187
+ case "ValidationException":
1188
+ case "com.amazonaws.emrcontainers#ValidationException":
1189
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1190
+ default:
1191
+ const parsedBody = parsedOutput.body;
1192
+ return throwDefaultError({
1193
+ output,
1194
+ parsedBody,
1195
+ errorCode
1196
+ });
1197
+ }
1198
+ }, "de_GetManagedEndpointSessionCredentialsCommandError");
1199
+ var de_ListJobRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
1200
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1201
+ return de_ListJobRunsCommandError(output, context);
1202
+ }
1203
+ const contents = (0, import_smithy_client.map)({
1204
+ $metadata: deserializeMetadata(output)
1205
+ });
1206
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1207
+ const doc = (0, import_smithy_client.take)(data, {
1208
+ jobRuns: (_) => de_JobRuns(_, context),
1209
+ nextToken: import_smithy_client.expectString
1210
+ });
1211
+ Object.assign(contents, doc);
1212
+ return contents;
1213
+ }, "de_ListJobRunsCommand");
1214
+ var de_ListJobRunsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1215
+ const parsedOutput = {
1216
+ ...output,
1217
+ body: await parseErrorBody(output.body, context)
1218
+ };
1219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1220
+ switch (errorCode) {
1221
+ case "InternalServerException":
1222
+ case "com.amazonaws.emrcontainers#InternalServerException":
1223
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1224
+ case "ValidationException":
1225
+ case "com.amazonaws.emrcontainers#ValidationException":
1226
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1227
+ default:
1228
+ const parsedBody = parsedOutput.body;
1229
+ return throwDefaultError({
1230
+ output,
1231
+ parsedBody,
1232
+ errorCode
1233
+ });
1234
+ }
1235
+ }, "de_ListJobRunsCommandError");
1236
+ var de_ListJobTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1237
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1238
+ return de_ListJobTemplatesCommandError(output, context);
1239
+ }
1240
+ const contents = (0, import_smithy_client.map)({
1241
+ $metadata: deserializeMetadata(output)
1242
+ });
1243
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1244
+ const doc = (0, import_smithy_client.take)(data, {
1245
+ nextToken: import_smithy_client.expectString,
1246
+ templates: (_) => de_JobTemplates(_, context)
1247
+ });
1248
+ Object.assign(contents, doc);
1249
+ return contents;
1250
+ }, "de_ListJobTemplatesCommand");
1251
+ var de_ListJobTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1252
+ const parsedOutput = {
1253
+ ...output,
1254
+ body: await parseErrorBody(output.body, context)
1255
+ };
1256
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1257
+ switch (errorCode) {
1258
+ case "InternalServerException":
1259
+ case "com.amazonaws.emrcontainers#InternalServerException":
1260
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1261
+ case "ValidationException":
1262
+ case "com.amazonaws.emrcontainers#ValidationException":
1263
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1264
+ default:
1265
+ const parsedBody = parsedOutput.body;
1266
+ return throwDefaultError({
1267
+ output,
1268
+ parsedBody,
1269
+ errorCode
1270
+ });
1271
+ }
1272
+ }, "de_ListJobTemplatesCommandError");
1273
+ var de_ListManagedEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1274
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1275
+ return de_ListManagedEndpointsCommandError(output, context);
1276
+ }
1277
+ const contents = (0, import_smithy_client.map)({
1278
+ $metadata: deserializeMetadata(output)
1279
+ });
1280
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1281
+ const doc = (0, import_smithy_client.take)(data, {
1282
+ endpoints: (_) => de_Endpoints(_, context),
1283
+ nextToken: import_smithy_client.expectString
1284
+ });
1285
+ Object.assign(contents, doc);
1286
+ return contents;
1287
+ }, "de_ListManagedEndpointsCommand");
1288
+ var de_ListManagedEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1289
+ const parsedOutput = {
1290
+ ...output,
1291
+ body: await parseErrorBody(output.body, context)
1292
+ };
1293
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
+ switch (errorCode) {
1295
+ case "InternalServerException":
1296
+ case "com.amazonaws.emrcontainers#InternalServerException":
1297
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1298
+ case "ValidationException":
1299
+ case "com.amazonaws.emrcontainers#ValidationException":
1300
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1301
+ default:
1302
+ const parsedBody = parsedOutput.body;
1303
+ return throwDefaultError({
1304
+ output,
1305
+ parsedBody,
1306
+ errorCode
1307
+ });
1308
+ }
1309
+ }, "de_ListManagedEndpointsCommandError");
1310
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1311
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1312
+ return de_ListTagsForResourceCommandError(output, context);
1313
+ }
1314
+ const contents = (0, import_smithy_client.map)({
1315
+ $metadata: deserializeMetadata(output)
1316
+ });
1317
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1318
+ const doc = (0, import_smithy_client.take)(data, {
1319
+ tags: import_smithy_client._json
1320
+ });
1321
+ Object.assign(contents, doc);
1322
+ return contents;
1323
+ }, "de_ListTagsForResourceCommand");
1324
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1325
+ const parsedOutput = {
1326
+ ...output,
1327
+ body: await parseErrorBody(output.body, context)
1328
+ };
1329
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
+ switch (errorCode) {
1331
+ case "InternalServerException":
1332
+ case "com.amazonaws.emrcontainers#InternalServerException":
1333
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1334
+ case "ResourceNotFoundException":
1335
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1336
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1337
+ case "ValidationException":
1338
+ case "com.amazonaws.emrcontainers#ValidationException":
1339
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1340
+ default:
1341
+ const parsedBody = parsedOutput.body;
1342
+ return throwDefaultError({
1343
+ output,
1344
+ parsedBody,
1345
+ errorCode
1346
+ });
1347
+ }
1348
+ }, "de_ListTagsForResourceCommandError");
1349
+ var de_ListVirtualClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
1350
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1351
+ return de_ListVirtualClustersCommandError(output, context);
1352
+ }
1353
+ const contents = (0, import_smithy_client.map)({
1354
+ $metadata: deserializeMetadata(output)
1355
+ });
1356
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1357
+ const doc = (0, import_smithy_client.take)(data, {
1358
+ nextToken: import_smithy_client.expectString,
1359
+ virtualClusters: (_) => de_VirtualClusters(_, context)
1360
+ });
1361
+ Object.assign(contents, doc);
1362
+ return contents;
1363
+ }, "de_ListVirtualClustersCommand");
1364
+ var de_ListVirtualClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1365
+ const parsedOutput = {
1366
+ ...output,
1367
+ body: await parseErrorBody(output.body, context)
1368
+ };
1369
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1370
+ switch (errorCode) {
1371
+ case "InternalServerException":
1372
+ case "com.amazonaws.emrcontainers#InternalServerException":
1373
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1374
+ case "ValidationException":
1375
+ case "com.amazonaws.emrcontainers#ValidationException":
1376
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1377
+ default:
1378
+ const parsedBody = parsedOutput.body;
1379
+ return throwDefaultError({
1380
+ output,
1381
+ parsedBody,
1382
+ errorCode
1383
+ });
1384
+ }
1385
+ }, "de_ListVirtualClustersCommandError");
1386
+ var de_StartJobRunCommand = /* @__PURE__ */ __name(async (output, context) => {
1387
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
+ return de_StartJobRunCommandError(output, context);
1389
+ }
1390
+ const contents = (0, import_smithy_client.map)({
1391
+ $metadata: deserializeMetadata(output)
1392
+ });
1393
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1394
+ const doc = (0, import_smithy_client.take)(data, {
1395
+ arn: import_smithy_client.expectString,
1396
+ id: import_smithy_client.expectString,
1397
+ name: import_smithy_client.expectString,
1398
+ virtualClusterId: import_smithy_client.expectString
1399
+ });
1400
+ Object.assign(contents, doc);
1401
+ return contents;
1402
+ }, "de_StartJobRunCommand");
1403
+ var de_StartJobRunCommandError = /* @__PURE__ */ __name(async (output, context) => {
1404
+ const parsedOutput = {
1405
+ ...output,
1406
+ body: await parseErrorBody(output.body, context)
1407
+ };
1408
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1409
+ switch (errorCode) {
1410
+ case "InternalServerException":
1411
+ case "com.amazonaws.emrcontainers#InternalServerException":
1412
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1413
+ case "ResourceNotFoundException":
1414
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1415
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1416
+ case "ValidationException":
1417
+ case "com.amazonaws.emrcontainers#ValidationException":
1418
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1419
+ default:
1420
+ const parsedBody = parsedOutput.body;
1421
+ return throwDefaultError({
1422
+ output,
1423
+ parsedBody,
1424
+ errorCode
1425
+ });
1426
+ }
1427
+ }, "de_StartJobRunCommandError");
1428
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1429
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1430
+ return de_TagResourceCommandError(output, context);
1431
+ }
1432
+ const contents = (0, import_smithy_client.map)({
1433
+ $metadata: deserializeMetadata(output)
1434
+ });
1435
+ await (0, import_smithy_client.collectBody)(output.body, context);
1436
+ return contents;
1437
+ }, "de_TagResourceCommand");
1438
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1439
+ const parsedOutput = {
1440
+ ...output,
1441
+ body: await parseErrorBody(output.body, context)
1442
+ };
1443
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1444
+ switch (errorCode) {
1445
+ case "InternalServerException":
1446
+ case "com.amazonaws.emrcontainers#InternalServerException":
1447
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1448
+ case "ResourceNotFoundException":
1449
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1450
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1451
+ case "ValidationException":
1452
+ case "com.amazonaws.emrcontainers#ValidationException":
1453
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1454
+ default:
1455
+ const parsedBody = parsedOutput.body;
1456
+ return throwDefaultError({
1457
+ output,
1458
+ parsedBody,
1459
+ errorCode
1460
+ });
1461
+ }
1462
+ }, "de_TagResourceCommandError");
1463
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1464
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1465
+ return de_UntagResourceCommandError(output, context);
1466
+ }
1467
+ const contents = (0, import_smithy_client.map)({
1468
+ $metadata: deserializeMetadata(output)
1469
+ });
1470
+ await (0, import_smithy_client.collectBody)(output.body, context);
1471
+ return contents;
1472
+ }, "de_UntagResourceCommand");
1473
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1474
+ const parsedOutput = {
1475
+ ...output,
1476
+ body: await parseErrorBody(output.body, context)
1477
+ };
1478
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1479
+ switch (errorCode) {
1480
+ case "InternalServerException":
1481
+ case "com.amazonaws.emrcontainers#InternalServerException":
1482
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1483
+ case "ResourceNotFoundException":
1484
+ case "com.amazonaws.emrcontainers#ResourceNotFoundException":
1485
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1486
+ case "ValidationException":
1487
+ case "com.amazonaws.emrcontainers#ValidationException":
1488
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1489
+ default:
1490
+ const parsedBody = parsedOutput.body;
1491
+ return throwDefaultError({
1492
+ output,
1493
+ parsedBody,
1494
+ errorCode
1495
+ });
1496
+ }
1497
+ }, "de_UntagResourceCommandError");
1498
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(EMRContainersServiceException);
1499
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1500
+ const contents = (0, import_smithy_client.map)({});
1501
+ const data = parsedOutput.body;
1502
+ const doc = (0, import_smithy_client.take)(data, {
1503
+ message: import_smithy_client.expectString
1504
+ });
1505
+ Object.assign(contents, doc);
1506
+ const exception = new InternalServerException({
1507
+ $metadata: deserializeMetadata(parsedOutput),
1508
+ ...contents
1509
+ });
1510
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1511
+ }, "de_InternalServerExceptionRes");
1512
+ var de_RequestThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1513
+ const contents = (0, import_smithy_client.map)({});
1514
+ const data = parsedOutput.body;
1515
+ const doc = (0, import_smithy_client.take)(data, {
1516
+ message: import_smithy_client.expectString
1517
+ });
1518
+ Object.assign(contents, doc);
1519
+ const exception = new RequestThrottledException({
1520
+ $metadata: deserializeMetadata(parsedOutput),
1521
+ ...contents
1522
+ });
1523
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1524
+ }, "de_RequestThrottledExceptionRes");
1525
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1526
+ const contents = (0, import_smithy_client.map)({});
1527
+ const data = parsedOutput.body;
1528
+ const doc = (0, import_smithy_client.take)(data, {
1529
+ message: import_smithy_client.expectString
1530
+ });
1531
+ Object.assign(contents, doc);
1532
+ const exception = new ResourceNotFoundException({
1533
+ $metadata: deserializeMetadata(parsedOutput),
1534
+ ...contents
1535
+ });
1536
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1537
+ }, "de_ResourceNotFoundExceptionRes");
1538
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1539
+ const contents = (0, import_smithy_client.map)({});
1540
+ const data = parsedOutput.body;
1541
+ const doc = (0, import_smithy_client.take)(data, {
1542
+ message: import_smithy_client.expectString
1543
+ });
1544
+ Object.assign(contents, doc);
1545
+ const exception = new ValidationException({
1546
+ $metadata: deserializeMetadata(parsedOutput),
1547
+ ...contents
1548
+ });
1549
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1550
+ }, "de_ValidationExceptionRes");
1551
+ var se_Configuration = /* @__PURE__ */ __name((input, context) => {
1552
+ return (0, import_smithy_client.take)(input, {
1553
+ classification: [],
1554
+ configurations: (_) => se_ConfigurationList(_, context),
1555
+ properties: import_smithy_client._json
1556
+ });
1557
+ }, "se_Configuration");
1558
+ var se_ConfigurationList = /* @__PURE__ */ __name((input, context) => {
1559
+ return input.filter((e) => e != null).map((entry) => {
1560
+ return se_Configuration(entry, context);
1561
+ });
1562
+ }, "se_ConfigurationList");
1563
+ var se_ConfigurationOverrides = /* @__PURE__ */ __name((input, context) => {
1564
+ return (0, import_smithy_client.take)(input, {
1565
+ applicationConfiguration: (_) => se_ConfigurationList(_, context),
1566
+ monitoringConfiguration: import_smithy_client._json
1567
+ });
1568
+ }, "se_ConfigurationOverrides");
1569
+ var se_JobTemplateData = /* @__PURE__ */ __name((input, context) => {
1570
+ return (0, import_smithy_client.take)(input, {
1571
+ configurationOverrides: (_) => se_ParametricConfigurationOverrides(_, context),
1572
+ executionRoleArn: [],
1573
+ jobDriver: import_smithy_client._json,
1574
+ jobTags: import_smithy_client._json,
1575
+ parameterConfiguration: import_smithy_client._json,
1576
+ releaseLabel: []
1577
+ });
1578
+ }, "se_JobTemplateData");
1579
+ var se_ParametricConfigurationOverrides = /* @__PURE__ */ __name((input, context) => {
1580
+ return (0, import_smithy_client.take)(input, {
1581
+ applicationConfiguration: (_) => se_ConfigurationList(_, context),
1582
+ monitoringConfiguration: import_smithy_client._json
1583
+ });
1584
+ }, "se_ParametricConfigurationOverrides");
1585
+ var de_Configuration = /* @__PURE__ */ __name((output, context) => {
1586
+ return (0, import_smithy_client.take)(output, {
1587
+ classification: import_smithy_client.expectString,
1588
+ configurations: (_) => de_ConfigurationList(_, context),
1589
+ properties: import_smithy_client._json
1590
+ });
1591
+ }, "de_Configuration");
1592
+ var de_ConfigurationList = /* @__PURE__ */ __name((output, context) => {
1593
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1594
+ return de_Configuration(entry, context);
1595
+ });
1596
+ return retVal;
1597
+ }, "de_ConfigurationList");
1598
+ var de_ConfigurationOverrides = /* @__PURE__ */ __name((output, context) => {
1599
+ return (0, import_smithy_client.take)(output, {
1600
+ applicationConfiguration: (_) => de_ConfigurationList(_, context),
1601
+ monitoringConfiguration: import_smithy_client._json
1602
+ });
1603
+ }, "de_ConfigurationOverrides");
1604
+ var de_Endpoint = /* @__PURE__ */ __name((output, context) => {
1605
+ return (0, import_smithy_client.take)(output, {
1606
+ arn: import_smithy_client.expectString,
1607
+ certificateArn: import_smithy_client.expectString,
1608
+ certificateAuthority: import_smithy_client._json,
1609
+ configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
1610
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1611
+ executionRoleArn: import_smithy_client.expectString,
1612
+ failureReason: import_smithy_client.expectString,
1613
+ id: import_smithy_client.expectString,
1614
+ name: import_smithy_client.expectString,
1615
+ releaseLabel: import_smithy_client.expectString,
1616
+ securityGroup: import_smithy_client.expectString,
1617
+ serverUrl: import_smithy_client.expectString,
1618
+ state: import_smithy_client.expectString,
1619
+ stateDetails: import_smithy_client.expectString,
1620
+ subnetIds: import_smithy_client._json,
1621
+ tags: import_smithy_client._json,
1622
+ type: import_smithy_client.expectString,
1623
+ virtualClusterId: import_smithy_client.expectString
1624
+ });
1625
+ }, "de_Endpoint");
1626
+ var de_Endpoints = /* @__PURE__ */ __name((output, context) => {
1627
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1628
+ return de_Endpoint(entry, context);
1629
+ });
1630
+ return retVal;
1631
+ }, "de_Endpoints");
1632
+ var de_JobRun = /* @__PURE__ */ __name((output, context) => {
1633
+ return (0, import_smithy_client.take)(output, {
1634
+ arn: import_smithy_client.expectString,
1635
+ clientToken: import_smithy_client.expectString,
1636
+ configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
1637
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1638
+ createdBy: import_smithy_client.expectString,
1639
+ executionRoleArn: import_smithy_client.expectString,
1640
+ failureReason: import_smithy_client.expectString,
1641
+ finishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1642
+ id: import_smithy_client.expectString,
1643
+ jobDriver: import_smithy_client._json,
1644
+ name: import_smithy_client.expectString,
1645
+ releaseLabel: import_smithy_client.expectString,
1646
+ retryPolicyConfiguration: import_smithy_client._json,
1647
+ retryPolicyExecution: import_smithy_client._json,
1648
+ state: import_smithy_client.expectString,
1649
+ stateDetails: import_smithy_client.expectString,
1650
+ tags: import_smithy_client._json,
1651
+ virtualClusterId: import_smithy_client.expectString
1652
+ });
1653
+ }, "de_JobRun");
1654
+ var de_JobRuns = /* @__PURE__ */ __name((output, context) => {
1655
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1656
+ return de_JobRun(entry, context);
1657
+ });
1658
+ return retVal;
1659
+ }, "de_JobRuns");
1660
+ var de_JobTemplate = /* @__PURE__ */ __name((output, context) => {
1661
+ return (0, import_smithy_client.take)(output, {
1662
+ arn: import_smithy_client.expectString,
1663
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1664
+ createdBy: import_smithy_client.expectString,
1665
+ decryptionError: import_smithy_client.expectString,
1666
+ id: import_smithy_client.expectString,
1667
+ jobTemplateData: (_) => de_JobTemplateData(_, context),
1668
+ kmsKeyArn: import_smithy_client.expectString,
1669
+ name: import_smithy_client.expectString,
1670
+ tags: import_smithy_client._json
1671
+ });
1672
+ }, "de_JobTemplate");
1673
+ var de_JobTemplateData = /* @__PURE__ */ __name((output, context) => {
1674
+ return (0, import_smithy_client.take)(output, {
1675
+ configurationOverrides: (_) => de_ParametricConfigurationOverrides(_, context),
1676
+ executionRoleArn: import_smithy_client.expectString,
1677
+ jobDriver: import_smithy_client._json,
1678
+ jobTags: import_smithy_client._json,
1679
+ parameterConfiguration: import_smithy_client._json,
1680
+ releaseLabel: import_smithy_client.expectString
1681
+ });
1682
+ }, "de_JobTemplateData");
1683
+ var de_JobTemplates = /* @__PURE__ */ __name((output, context) => {
1684
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1685
+ return de_JobTemplate(entry, context);
1686
+ });
1687
+ return retVal;
1688
+ }, "de_JobTemplates");
1689
+ var de_ParametricConfigurationOverrides = /* @__PURE__ */ __name((output, context) => {
1690
+ return (0, import_smithy_client.take)(output, {
1691
+ applicationConfiguration: (_) => de_ConfigurationList(_, context),
1692
+ monitoringConfiguration: import_smithy_client._json
1693
+ });
1694
+ }, "de_ParametricConfigurationOverrides");
1695
+ var de_VirtualCluster = /* @__PURE__ */ __name((output, context) => {
1696
+ return (0, import_smithy_client.take)(output, {
1697
+ arn: import_smithy_client.expectString,
1698
+ containerProvider: import_smithy_client._json,
1699
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1700
+ id: import_smithy_client.expectString,
1701
+ name: import_smithy_client.expectString,
1702
+ state: import_smithy_client.expectString,
1703
+ tags: import_smithy_client._json
1704
+ });
1705
+ }, "de_VirtualCluster");
1706
+ var de_VirtualClusters = /* @__PURE__ */ __name((output, context) => {
1707
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1708
+ return de_VirtualCluster(entry, context);
1709
+ });
1710
+ return retVal;
1711
+ }, "de_VirtualClusters");
1712
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1713
+ httpStatusCode: output.statusCode,
1714
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1715
+ extendedRequestId: output.headers["x-amz-id-2"],
1716
+ cfId: output.headers["x-amz-cf-id"]
1717
+ }), "deserializeMetadata");
1718
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1719
+ var _cA = "createdAfter";
1720
+ var _cB = "createdBefore";
1721
+ var _cPI = "containerProviderId";
1722
+ var _cPT = "containerProviderType";
1723
+ var _mR = "maxResults";
1724
+ var _n = "name";
1725
+ var _nT = "nextToken";
1726
+ var _s = "states";
1727
+ var _t = "types";
1728
+ var _tK = "tagKeys";
1729
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1730
+ if (encoded.length) {
1731
+ return JSON.parse(encoded);
1732
+ }
1733
+ return {};
1734
+ }), "parseBody");
1735
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1736
+ const value = await parseBody(errorBody, context);
1737
+ value.message = value.message ?? value.Message;
1738
+ return value;
1739
+ }, "parseErrorBody");
1740
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1741
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1742
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1743
+ let cleanValue = rawValue;
1744
+ if (typeof cleanValue === "number") {
1745
+ cleanValue = cleanValue.toString();
1746
+ }
1747
+ if (cleanValue.indexOf(",") >= 0) {
1748
+ cleanValue = cleanValue.split(",")[0];
1749
+ }
1750
+ if (cleanValue.indexOf(":") >= 0) {
1751
+ cleanValue = cleanValue.split(":")[0];
1752
+ }
1753
+ if (cleanValue.indexOf("#") >= 0) {
1754
+ cleanValue = cleanValue.split("#")[1];
1755
+ }
1756
+ return cleanValue;
1757
+ }, "sanitizeErrorCode");
1758
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1759
+ if (headerKey !== void 0) {
1760
+ return sanitizeErrorCode(output.headers[headerKey]);
1761
+ }
1762
+ if (data.code !== void 0) {
1763
+ return sanitizeErrorCode(data.code);
1764
+ }
1765
+ if (data["__type"] !== void 0) {
1766
+ return sanitizeErrorCode(data["__type"]);
1767
+ }
1768
+ }, "loadRestJsonErrorCode");
1769
+
1770
+ // src/commands/CancelJobRunCommand.ts
1771
+ var _CancelJobRunCommand = class _CancelJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
1772
+ ...commonParams
1773
+ }).m(function(Command, cs, config, o) {
1774
+ return [
1775
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1776
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1777
+ ];
1778
+ }).s("AwsChicagoWebService", "CancelJobRun", {}).n("EMRContainersClient", "CancelJobRunCommand").f(void 0, void 0).ser(se_CancelJobRunCommand).de(de_CancelJobRunCommand).build() {
1779
+ };
1780
+ __name(_CancelJobRunCommand, "CancelJobRunCommand");
1781
+ var CancelJobRunCommand = _CancelJobRunCommand;
1782
+
1783
+ // src/commands/CreateJobTemplateCommand.ts
1784
+
1785
+
1786
+
1787
+
1788
+ var _CreateJobTemplateCommand = class _CreateJobTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1789
+ ...commonParams
1790
+ }).m(function(Command, cs, config, o) {
1791
+ return [
1792
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1793
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1794
+ ];
1795
+ }).s("AwsChicagoWebService", "CreateJobTemplate", {}).n("EMRContainersClient", "CreateJobTemplateCommand").f(CreateJobTemplateRequestFilterSensitiveLog, void 0).ser(se_CreateJobTemplateCommand).de(de_CreateJobTemplateCommand).build() {
1796
+ };
1797
+ __name(_CreateJobTemplateCommand, "CreateJobTemplateCommand");
1798
+ var CreateJobTemplateCommand = _CreateJobTemplateCommand;
1799
+
1800
+ // src/commands/CreateManagedEndpointCommand.ts
1801
+
1802
+
1803
+
1804
+
1805
+ var _CreateManagedEndpointCommand = class _CreateManagedEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
1806
+ ...commonParams
1807
+ }).m(function(Command, cs, config, o) {
1808
+ return [
1809
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1810
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1811
+ ];
1812
+ }).s("AwsChicagoWebService", "CreateManagedEndpoint", {}).n("EMRContainersClient", "CreateManagedEndpointCommand").f(CreateManagedEndpointRequestFilterSensitiveLog, void 0).ser(se_CreateManagedEndpointCommand).de(de_CreateManagedEndpointCommand).build() {
1813
+ };
1814
+ __name(_CreateManagedEndpointCommand, "CreateManagedEndpointCommand");
1815
+ var CreateManagedEndpointCommand = _CreateManagedEndpointCommand;
1816
+
1817
+ // src/commands/CreateVirtualClusterCommand.ts
1818
+
1819
+
1820
+
1821
+
1822
+ var _CreateVirtualClusterCommand = class _CreateVirtualClusterCommand extends import_smithy_client.Command.classBuilder().ep({
1823
+ ...commonParams
1824
+ }).m(function(Command, cs, config, o) {
1825
+ return [
1826
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1827
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1828
+ ];
1829
+ }).s("AwsChicagoWebService", "CreateVirtualCluster", {}).n("EMRContainersClient", "CreateVirtualClusterCommand").f(void 0, void 0).ser(se_CreateVirtualClusterCommand).de(de_CreateVirtualClusterCommand).build() {
1830
+ };
1831
+ __name(_CreateVirtualClusterCommand, "CreateVirtualClusterCommand");
1832
+ var CreateVirtualClusterCommand = _CreateVirtualClusterCommand;
1833
+
1834
+ // src/commands/DeleteJobTemplateCommand.ts
1835
+
1836
+
1837
+
1838
+
1839
+ var _DeleteJobTemplateCommand = class _DeleteJobTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1840
+ ...commonParams
1841
+ }).m(function(Command, cs, config, o) {
1842
+ return [
1843
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1844
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1845
+ ];
1846
+ }).s("AwsChicagoWebService", "DeleteJobTemplate", {}).n("EMRContainersClient", "DeleteJobTemplateCommand").f(void 0, void 0).ser(se_DeleteJobTemplateCommand).de(de_DeleteJobTemplateCommand).build() {
1847
+ };
1848
+ __name(_DeleteJobTemplateCommand, "DeleteJobTemplateCommand");
1849
+ var DeleteJobTemplateCommand = _DeleteJobTemplateCommand;
1850
+
1851
+ // src/commands/DeleteManagedEndpointCommand.ts
1852
+
1853
+
1854
+
1855
+
1856
+ var _DeleteManagedEndpointCommand = class _DeleteManagedEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
1857
+ ...commonParams
1858
+ }).m(function(Command, cs, config, o) {
1859
+ return [
1860
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1861
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1862
+ ];
1863
+ }).s("AwsChicagoWebService", "DeleteManagedEndpoint", {}).n("EMRContainersClient", "DeleteManagedEndpointCommand").f(void 0, void 0).ser(se_DeleteManagedEndpointCommand).de(de_DeleteManagedEndpointCommand).build() {
1864
+ };
1865
+ __name(_DeleteManagedEndpointCommand, "DeleteManagedEndpointCommand");
1866
+ var DeleteManagedEndpointCommand = _DeleteManagedEndpointCommand;
1867
+
1868
+ // src/commands/DeleteVirtualClusterCommand.ts
1869
+
1870
+
1871
+
1872
+
1873
+ var _DeleteVirtualClusterCommand = class _DeleteVirtualClusterCommand extends import_smithy_client.Command.classBuilder().ep({
1874
+ ...commonParams
1875
+ }).m(function(Command, cs, config, o) {
1876
+ return [
1877
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1878
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1879
+ ];
1880
+ }).s("AwsChicagoWebService", "DeleteVirtualCluster", {}).n("EMRContainersClient", "DeleteVirtualClusterCommand").f(void 0, void 0).ser(se_DeleteVirtualClusterCommand).de(de_DeleteVirtualClusterCommand).build() {
1881
+ };
1882
+ __name(_DeleteVirtualClusterCommand, "DeleteVirtualClusterCommand");
1883
+ var DeleteVirtualClusterCommand = _DeleteVirtualClusterCommand;
1884
+
1885
+ // src/commands/DescribeJobRunCommand.ts
1886
+
1887
+
1888
+
1889
+
1890
+ var _DescribeJobRunCommand = class _DescribeJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
1891
+ ...commonParams
1892
+ }).m(function(Command, cs, config, o) {
1893
+ return [
1894
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1895
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1896
+ ];
1897
+ }).s("AwsChicagoWebService", "DescribeJobRun", {}).n("EMRContainersClient", "DescribeJobRunCommand").f(void 0, DescribeJobRunResponseFilterSensitiveLog).ser(se_DescribeJobRunCommand).de(de_DescribeJobRunCommand).build() {
1898
+ };
1899
+ __name(_DescribeJobRunCommand, "DescribeJobRunCommand");
1900
+ var DescribeJobRunCommand = _DescribeJobRunCommand;
1901
+
1902
+ // src/commands/DescribeJobTemplateCommand.ts
1903
+
1904
+
1905
+
1906
+
1907
+ var _DescribeJobTemplateCommand = class _DescribeJobTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
1908
+ ...commonParams
1909
+ }).m(function(Command, cs, config, o) {
1910
+ return [
1911
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1912
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1913
+ ];
1914
+ }).s("AwsChicagoWebService", "DescribeJobTemplate", {}).n("EMRContainersClient", "DescribeJobTemplateCommand").f(void 0, DescribeJobTemplateResponseFilterSensitiveLog).ser(se_DescribeJobTemplateCommand).de(de_DescribeJobTemplateCommand).build() {
1915
+ };
1916
+ __name(_DescribeJobTemplateCommand, "DescribeJobTemplateCommand");
1917
+ var DescribeJobTemplateCommand = _DescribeJobTemplateCommand;
1918
+
1919
+ // src/commands/DescribeManagedEndpointCommand.ts
1920
+
1921
+
1922
+
1923
+
1924
+ var _DescribeManagedEndpointCommand = class _DescribeManagedEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
1925
+ ...commonParams
1926
+ }).m(function(Command, cs, config, o) {
1927
+ return [
1928
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1929
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1930
+ ];
1931
+ }).s("AwsChicagoWebService", "DescribeManagedEndpoint", {}).n("EMRContainersClient", "DescribeManagedEndpointCommand").f(void 0, DescribeManagedEndpointResponseFilterSensitiveLog).ser(se_DescribeManagedEndpointCommand).de(de_DescribeManagedEndpointCommand).build() {
1932
+ };
1933
+ __name(_DescribeManagedEndpointCommand, "DescribeManagedEndpointCommand");
1934
+ var DescribeManagedEndpointCommand = _DescribeManagedEndpointCommand;
1935
+
1936
+ // src/commands/DescribeVirtualClusterCommand.ts
1937
+
1938
+
1939
+
1940
+
1941
+ var _DescribeVirtualClusterCommand = class _DescribeVirtualClusterCommand extends import_smithy_client.Command.classBuilder().ep({
1942
+ ...commonParams
1943
+ }).m(function(Command, cs, config, o) {
1944
+ return [
1945
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1946
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1947
+ ];
1948
+ }).s("AwsChicagoWebService", "DescribeVirtualCluster", {}).n("EMRContainersClient", "DescribeVirtualClusterCommand").f(void 0, void 0).ser(se_DescribeVirtualClusterCommand).de(de_DescribeVirtualClusterCommand).build() {
1949
+ };
1950
+ __name(_DescribeVirtualClusterCommand, "DescribeVirtualClusterCommand");
1951
+ var DescribeVirtualClusterCommand = _DescribeVirtualClusterCommand;
1952
+
1953
+ // src/commands/GetManagedEndpointSessionCredentialsCommand.ts
1954
+
1955
+
1956
+
1957
+
1958
+ var _GetManagedEndpointSessionCredentialsCommand = class _GetManagedEndpointSessionCredentialsCommand extends import_smithy_client.Command.classBuilder().ep({
1959
+ ...commonParams
1960
+ }).m(function(Command, cs, config, o) {
1961
+ return [
1962
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1963
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1964
+ ];
1965
+ }).s("AwsChicagoWebService", "GetManagedEndpointSessionCredentials", {}).n("EMRContainersClient", "GetManagedEndpointSessionCredentialsCommand").f(void 0, GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog).ser(se_GetManagedEndpointSessionCredentialsCommand).de(de_GetManagedEndpointSessionCredentialsCommand).build() {
1966
+ };
1967
+ __name(_GetManagedEndpointSessionCredentialsCommand, "GetManagedEndpointSessionCredentialsCommand");
1968
+ var GetManagedEndpointSessionCredentialsCommand = _GetManagedEndpointSessionCredentialsCommand;
1969
+
1970
+ // src/commands/ListJobRunsCommand.ts
1971
+
1972
+
1973
+
1974
+
1975
+ var _ListJobRunsCommand = class _ListJobRunsCommand extends import_smithy_client.Command.classBuilder().ep({
1976
+ ...commonParams
1977
+ }).m(function(Command, cs, config, o) {
1978
+ return [
1979
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1980
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1981
+ ];
1982
+ }).s("AwsChicagoWebService", "ListJobRuns", {}).n("EMRContainersClient", "ListJobRunsCommand").f(void 0, ListJobRunsResponseFilterSensitiveLog).ser(se_ListJobRunsCommand).de(de_ListJobRunsCommand).build() {
1983
+ };
1984
+ __name(_ListJobRunsCommand, "ListJobRunsCommand");
1985
+ var ListJobRunsCommand = _ListJobRunsCommand;
1986
+
1987
+ // src/commands/ListJobTemplatesCommand.ts
1988
+
1989
+
1990
+
1991
+
1992
+ var _ListJobTemplatesCommand = class _ListJobTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
1993
+ ...commonParams
1994
+ }).m(function(Command, cs, config, o) {
1995
+ return [
1996
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1997
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1998
+ ];
1999
+ }).s("AwsChicagoWebService", "ListJobTemplates", {}).n("EMRContainersClient", "ListJobTemplatesCommand").f(void 0, ListJobTemplatesResponseFilterSensitiveLog).ser(se_ListJobTemplatesCommand).de(de_ListJobTemplatesCommand).build() {
2000
+ };
2001
+ __name(_ListJobTemplatesCommand, "ListJobTemplatesCommand");
2002
+ var ListJobTemplatesCommand = _ListJobTemplatesCommand;
2003
+
2004
+ // src/commands/ListManagedEndpointsCommand.ts
2005
+
2006
+
2007
+
2008
+
2009
+ var _ListManagedEndpointsCommand = class _ListManagedEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
2010
+ ...commonParams
2011
+ }).m(function(Command, cs, config, o) {
2012
+ return [
2013
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2014
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2015
+ ];
2016
+ }).s("AwsChicagoWebService", "ListManagedEndpoints", {}).n("EMRContainersClient", "ListManagedEndpointsCommand").f(void 0, ListManagedEndpointsResponseFilterSensitiveLog).ser(se_ListManagedEndpointsCommand).de(de_ListManagedEndpointsCommand).build() {
2017
+ };
2018
+ __name(_ListManagedEndpointsCommand, "ListManagedEndpointsCommand");
2019
+ var ListManagedEndpointsCommand = _ListManagedEndpointsCommand;
2020
+
2021
+ // src/commands/ListTagsForResourceCommand.ts
2022
+
2023
+
2024
+
2025
+
2026
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2027
+ ...commonParams
2028
+ }).m(function(Command, cs, config, o) {
2029
+ return [
2030
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2031
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2032
+ ];
2033
+ }).s("AwsChicagoWebService", "ListTagsForResource", {}).n("EMRContainersClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2034
+ };
2035
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2036
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2037
+
2038
+ // src/commands/ListVirtualClustersCommand.ts
2039
+
2040
+
2041
+
2042
+
2043
+ var _ListVirtualClustersCommand = class _ListVirtualClustersCommand extends import_smithy_client.Command.classBuilder().ep({
2044
+ ...commonParams
2045
+ }).m(function(Command, cs, config, o) {
2046
+ return [
2047
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2048
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2049
+ ];
2050
+ }).s("AwsChicagoWebService", "ListVirtualClusters", {}).n("EMRContainersClient", "ListVirtualClustersCommand").f(void 0, void 0).ser(se_ListVirtualClustersCommand).de(de_ListVirtualClustersCommand).build() {
2051
+ };
2052
+ __name(_ListVirtualClustersCommand, "ListVirtualClustersCommand");
2053
+ var ListVirtualClustersCommand = _ListVirtualClustersCommand;
2054
+
2055
+ // src/commands/StartJobRunCommand.ts
2056
+
2057
+
2058
+
2059
+
2060
+ var _StartJobRunCommand = class _StartJobRunCommand extends import_smithy_client.Command.classBuilder().ep({
2061
+ ...commonParams
2062
+ }).m(function(Command, cs, config, o) {
2063
+ return [
2064
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2065
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2066
+ ];
2067
+ }).s("AwsChicagoWebService", "StartJobRun", {}).n("EMRContainersClient", "StartJobRunCommand").f(StartJobRunRequestFilterSensitiveLog, void 0).ser(se_StartJobRunCommand).de(de_StartJobRunCommand).build() {
2068
+ };
2069
+ __name(_StartJobRunCommand, "StartJobRunCommand");
2070
+ var StartJobRunCommand = _StartJobRunCommand;
2071
+
2072
+ // src/commands/TagResourceCommand.ts
2073
+
2074
+
2075
+
2076
+
2077
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2078
+ ...commonParams
2079
+ }).m(function(Command, cs, config, o) {
2080
+ return [
2081
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2082
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2083
+ ];
2084
+ }).s("AwsChicagoWebService", "TagResource", {}).n("EMRContainersClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2085
+ };
2086
+ __name(_TagResourceCommand, "TagResourceCommand");
2087
+ var TagResourceCommand = _TagResourceCommand;
2088
+
2089
+ // src/commands/UntagResourceCommand.ts
2090
+
2091
+
2092
+
2093
+
2094
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2095
+ ...commonParams
2096
+ }).m(function(Command, cs, config, o) {
2097
+ return [
2098
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2099
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2100
+ ];
2101
+ }).s("AwsChicagoWebService", "UntagResource", {}).n("EMRContainersClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2102
+ };
2103
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2104
+ var UntagResourceCommand = _UntagResourceCommand;
2105
+
2106
+ // src/EMRContainers.ts
2107
+ var commands = {
2108
+ CancelJobRunCommand,
2109
+ CreateJobTemplateCommand,
2110
+ CreateManagedEndpointCommand,
2111
+ CreateVirtualClusterCommand,
2112
+ DeleteJobTemplateCommand,
2113
+ DeleteManagedEndpointCommand,
2114
+ DeleteVirtualClusterCommand,
2115
+ DescribeJobRunCommand,
2116
+ DescribeJobTemplateCommand,
2117
+ DescribeManagedEndpointCommand,
2118
+ DescribeVirtualClusterCommand,
2119
+ GetManagedEndpointSessionCredentialsCommand,
2120
+ ListJobRunsCommand,
2121
+ ListJobTemplatesCommand,
2122
+ ListManagedEndpointsCommand,
2123
+ ListTagsForResourceCommand,
2124
+ ListVirtualClustersCommand,
2125
+ StartJobRunCommand,
2126
+ TagResourceCommand,
2127
+ UntagResourceCommand
2128
+ };
2129
+ var _EMRContainers = class _EMRContainers extends EMRContainersClient {
2130
+ };
2131
+ __name(_EMRContainers, "EMRContainers");
2132
+ var EMRContainers = _EMRContainers;
2133
+ (0, import_smithy_client.createAggregatedClient)(commands, EMRContainers);
2134
+
2135
+ // src/pagination/ListJobRunsPaginator.ts
2136
+ var import_core3 = require("@smithy/core");
2137
+ var paginateListJobRuns = (0, import_core3.createPaginator)(EMRContainersClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
2138
+
2139
+ // src/pagination/ListJobTemplatesPaginator.ts
2140
+ var import_core4 = require("@smithy/core");
2141
+ var paginateListJobTemplates = (0, import_core4.createPaginator)(EMRContainersClient, ListJobTemplatesCommand, "nextToken", "nextToken", "maxResults");
2142
+
2143
+ // src/pagination/ListManagedEndpointsPaginator.ts
2144
+ var import_core5 = require("@smithy/core");
2145
+ var paginateListManagedEndpoints = (0, import_core5.createPaginator)(EMRContainersClient, ListManagedEndpointsCommand, "nextToken", "nextToken", "maxResults");
2146
+
2147
+ // src/pagination/ListVirtualClustersPaginator.ts
2148
+ var import_core6 = require("@smithy/core");
2149
+ var paginateListVirtualClusters = (0, import_core6.createPaginator)(EMRContainersClient, ListVirtualClustersCommand, "nextToken", "nextToken", "maxResults");
2150
+
2151
+ // src/index.ts
2152
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2153
+ // Annotate the CommonJS export names for ESM import in node:
2154
+
2155
+ 0 && (module.exports = {
2156
+ CancelJobRunCommand,
2157
+ ConfigurationFilterSensitiveLog,
2158
+ ConfigurationOverridesFilterSensitiveLog,
2159
+ ContainerInfo,
2160
+ ContainerProviderType,
2161
+ CreateJobTemplateCommand,
2162
+ CreateJobTemplateRequestFilterSensitiveLog,
2163
+ CreateManagedEndpointCommand,
2164
+ CreateManagedEndpointRequestFilterSensitiveLog,
2165
+ CreateVirtualClusterCommand,
2166
+ Credentials,
2167
+ CredentialsFilterSensitiveLog,
2168
+ DeleteJobTemplateCommand,
2169
+ DeleteManagedEndpointCommand,
2170
+ DeleteVirtualClusterCommand,
2171
+ DescribeJobRunCommand,
2172
+ DescribeJobRunResponseFilterSensitiveLog,
2173
+ DescribeJobTemplateCommand,
2174
+ DescribeJobTemplateResponseFilterSensitiveLog,
2175
+ DescribeManagedEndpointCommand,
2176
+ DescribeManagedEndpointResponseFilterSensitiveLog,
2177
+ DescribeVirtualClusterCommand,
2178
+ EMRContainers,
2179
+ EMRContainersClient,
2180
+ EMRContainersServiceException,
2181
+ EndpointFilterSensitiveLog,
2182
+ EndpointState,
2183
+ FailureReason,
2184
+ GetManagedEndpointSessionCredentialsCommand,
2185
+ GetManagedEndpointSessionCredentialsResponseFilterSensitiveLog,
2186
+ InternalServerException,
2187
+ JobDriverFilterSensitiveLog,
2188
+ JobRunFilterSensitiveLog,
2189
+ JobRunState,
2190
+ JobTemplateDataFilterSensitiveLog,
2191
+ JobTemplateFilterSensitiveLog,
2192
+ ListJobRunsCommand,
2193
+ ListJobRunsResponseFilterSensitiveLog,
2194
+ ListJobTemplatesCommand,
2195
+ ListJobTemplatesResponseFilterSensitiveLog,
2196
+ ListManagedEndpointsCommand,
2197
+ ListManagedEndpointsResponseFilterSensitiveLog,
2198
+ ListTagsForResourceCommand,
2199
+ ListVirtualClustersCommand,
2200
+ ParametricConfigurationOverridesFilterSensitiveLog,
2201
+ PersistentAppUI,
2202
+ RequestThrottledException,
2203
+ ResourceNotFoundException,
2204
+ SparkSqlJobDriverFilterSensitiveLog,
2205
+ SparkSubmitJobDriverFilterSensitiveLog,
2206
+ StartJobRunCommand,
2207
+ StartJobRunRequestFilterSensitiveLog,
2208
+ TagResourceCommand,
2209
+ TemplateParameterDataType,
2210
+ UntagResourceCommand,
2211
+ ValidationException,
2212
+ VirtualClusterState,
2213
+ __Client,
2214
+ paginateListJobRuns,
2215
+ paginateListJobTemplates,
2216
+ paginateListManagedEndpoints,
2217
+ paginateListVirtualClusters
2218
+ });
2219
+