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