@aws-sdk/client-emr-serverless 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CancelJobRunCommand.js +2 -2
- package/dist-cjs/commands/CreateApplicationCommand.js +2 -2
- package/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetDashboardForJobRunCommand.js +2 -2
- package/dist-cjs/commands/GetJobRunCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/ListJobRunsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartApplicationCommand.js +2 -2
- package/dist-cjs/commands/StartJobRunCommand.js +2 -2
- package/dist-cjs/commands/StopApplicationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +269 -303
- package/dist-es/commands/CancelJobRunCommand.js +3 -3
- package/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetDashboardForJobRunCommand.js +3 -3
- package/dist-es/commands/GetJobRunCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/ListJobRunsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartApplicationCommand.js +3 -3
- package/dist-es/commands/StartJobRunCommand.js +3 -3
- package/dist-es/commands/StopApplicationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +238 -272
- package/dist-types/protocols/Aws_restJson1.d.ts +120 -30
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -30
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { EMRServerlessServiceException as __BaseException } from "../models/EMRServerlessServiceException";
|
|
5
5
|
import { ConflictException, InternalServerException, JobDriver, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CancelJobRunCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {};
|
|
9
9
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -21,7 +21,7 @@ export const serializeAws_restJson1CancelJobRunCommand = async (input, context)
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_CreateApplicationCommand = async (input, context) => {
|
|
25
25
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
26
26
|
const headers = {
|
|
27
27
|
"content-type": "application/json",
|
|
@@ -31,30 +31,30 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
31
31
|
body = JSON.stringify({
|
|
32
32
|
...(input.architecture != null && { architecture: input.architecture }),
|
|
33
33
|
...(input.autoStartConfiguration != null && {
|
|
34
|
-
autoStartConfiguration:
|
|
34
|
+
autoStartConfiguration: se_AutoStartConfig(input.autoStartConfiguration, context),
|
|
35
35
|
}),
|
|
36
36
|
...(input.autoStopConfiguration != null && {
|
|
37
|
-
autoStopConfiguration:
|
|
37
|
+
autoStopConfiguration: se_AutoStopConfig(input.autoStopConfiguration, context),
|
|
38
38
|
}),
|
|
39
39
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
40
40
|
...(input.imageConfiguration != null && {
|
|
41
|
-
imageConfiguration:
|
|
41
|
+
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
42
42
|
}),
|
|
43
43
|
...(input.initialCapacity != null && {
|
|
44
|
-
initialCapacity:
|
|
44
|
+
initialCapacity: se_InitialCapacityConfigMap(input.initialCapacity, context),
|
|
45
45
|
}),
|
|
46
46
|
...(input.maximumCapacity != null && {
|
|
47
|
-
maximumCapacity:
|
|
47
|
+
maximumCapacity: se_MaximumAllowedResources(input.maximumCapacity, context),
|
|
48
48
|
}),
|
|
49
49
|
...(input.name != null && { name: input.name }),
|
|
50
50
|
...(input.networkConfiguration != null && {
|
|
51
|
-
networkConfiguration:
|
|
51
|
+
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
52
52
|
}),
|
|
53
53
|
...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
|
|
54
|
-
...(input.tags != null && { tags:
|
|
54
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
55
55
|
...(input.type != null && { type: input.type }),
|
|
56
56
|
...(input.workerTypeSpecifications != null && {
|
|
57
|
-
workerTypeSpecifications:
|
|
57
|
+
workerTypeSpecifications: se_WorkerTypeSpecificationInputMap(input.workerTypeSpecifications, context),
|
|
58
58
|
}),
|
|
59
59
|
});
|
|
60
60
|
return new __HttpRequest({
|
|
@@ -67,7 +67,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
67
67
|
body,
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
-
export const
|
|
70
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
71
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
72
72
|
const headers = {};
|
|
73
73
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
@@ -83,7 +83,7 @@ export const serializeAws_restJson1DeleteApplicationCommand = async (input, cont
|
|
|
83
83
|
body,
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_GetApplicationCommand = async (input, context) => {
|
|
87
87
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
88
88
|
const headers = {};
|
|
89
89
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
@@ -99,7 +99,7 @@ export const serializeAws_restJson1GetApplicationCommand = async (input, context
|
|
|
99
99
|
body,
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
export const
|
|
102
|
+
export const se_GetDashboardForJobRunCommand = async (input, context) => {
|
|
103
103
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
104
104
|
const headers = {};
|
|
105
105
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -117,7 +117,7 @@ export const serializeAws_restJson1GetDashboardForJobRunCommand = async (input,
|
|
|
117
117
|
body,
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
-
export const
|
|
120
|
+
export const se_GetJobRunCommand = async (input, context) => {
|
|
121
121
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
122
122
|
const headers = {};
|
|
123
123
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -135,7 +135,7 @@ export const serializeAws_restJson1GetJobRunCommand = async (input, context) =>
|
|
|
135
135
|
body,
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
|
-
export const
|
|
138
|
+
export const se_ListApplicationsCommand = async (input, context) => {
|
|
139
139
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
140
|
const headers = {};
|
|
141
141
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
@@ -156,7 +156,7 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
|
|
|
156
156
|
body,
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_ListJobRunsCommand = async (input, context) => {
|
|
160
160
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
161
|
const headers = {};
|
|
162
162
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
|
|
@@ -186,7 +186,7 @@ export const serializeAws_restJson1ListJobRunsCommand = async (input, context) =
|
|
|
186
186
|
body,
|
|
187
187
|
});
|
|
188
188
|
};
|
|
189
|
-
export const
|
|
189
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
190
190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
191
|
const headers = {};
|
|
192
192
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -202,7 +202,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
202
202
|
body,
|
|
203
203
|
});
|
|
204
204
|
};
|
|
205
|
-
export const
|
|
205
|
+
export const se_StartApplicationCommand = async (input, context) => {
|
|
206
206
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
207
207
|
const headers = {};
|
|
208
208
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/start";
|
|
@@ -218,7 +218,7 @@ export const serializeAws_restJson1StartApplicationCommand = async (input, conte
|
|
|
218
218
|
body,
|
|
219
219
|
});
|
|
220
220
|
};
|
|
221
|
-
export const
|
|
221
|
+
export const se_StartJobRunCommand = async (input, context) => {
|
|
222
222
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
223
|
const headers = {
|
|
224
224
|
"content-type": "application/json",
|
|
@@ -229,13 +229,13 @@ export const serializeAws_restJson1StartJobRunCommand = async (input, context) =
|
|
|
229
229
|
body = JSON.stringify({
|
|
230
230
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
231
231
|
...(input.configurationOverrides != null && {
|
|
232
|
-
configurationOverrides:
|
|
232
|
+
configurationOverrides: se_ConfigurationOverrides(input.configurationOverrides, context),
|
|
233
233
|
}),
|
|
234
234
|
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
235
235
|
...(input.executionTimeoutMinutes != null && { executionTimeoutMinutes: input.executionTimeoutMinutes }),
|
|
236
|
-
...(input.jobDriver != null && { jobDriver:
|
|
236
|
+
...(input.jobDriver != null && { jobDriver: se_JobDriver(input.jobDriver, context) }),
|
|
237
237
|
...(input.name != null && { name: input.name }),
|
|
238
|
-
...(input.tags != null && { tags:
|
|
238
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
239
239
|
});
|
|
240
240
|
return new __HttpRequest({
|
|
241
241
|
protocol,
|
|
@@ -247,7 +247,7 @@ export const serializeAws_restJson1StartJobRunCommand = async (input, context) =
|
|
|
247
247
|
body,
|
|
248
248
|
});
|
|
249
249
|
};
|
|
250
|
-
export const
|
|
250
|
+
export const se_StopApplicationCommand = async (input, context) => {
|
|
251
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
252
|
const headers = {};
|
|
253
253
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/stop";
|
|
@@ -263,7 +263,7 @@ export const serializeAws_restJson1StopApplicationCommand = async (input, contex
|
|
|
263
263
|
body,
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
export const
|
|
266
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
267
267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
268
|
const headers = {
|
|
269
269
|
"content-type": "application/json",
|
|
@@ -272,7 +272,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
272
272
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
273
273
|
let body;
|
|
274
274
|
body = JSON.stringify({
|
|
275
|
-
...(input.tags != null && { tags:
|
|
275
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
276
276
|
});
|
|
277
277
|
return new __HttpRequest({
|
|
278
278
|
protocol,
|
|
@@ -284,7 +284,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
284
284
|
body,
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
|
-
export const
|
|
287
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
288
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
289
|
const headers = {};
|
|
290
290
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -307,7 +307,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
307
307
|
body,
|
|
308
308
|
});
|
|
309
309
|
};
|
|
310
|
-
export const
|
|
310
|
+
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
311
311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
312
|
const headers = {
|
|
313
313
|
"content-type": "application/json",
|
|
@@ -318,26 +318,26 @@ export const serializeAws_restJson1UpdateApplicationCommand = async (input, cont
|
|
|
318
318
|
body = JSON.stringify({
|
|
319
319
|
...(input.architecture != null && { architecture: input.architecture }),
|
|
320
320
|
...(input.autoStartConfiguration != null && {
|
|
321
|
-
autoStartConfiguration:
|
|
321
|
+
autoStartConfiguration: se_AutoStartConfig(input.autoStartConfiguration, context),
|
|
322
322
|
}),
|
|
323
323
|
...(input.autoStopConfiguration != null && {
|
|
324
|
-
autoStopConfiguration:
|
|
324
|
+
autoStopConfiguration: se_AutoStopConfig(input.autoStopConfiguration, context),
|
|
325
325
|
}),
|
|
326
326
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
327
327
|
...(input.imageConfiguration != null && {
|
|
328
|
-
imageConfiguration:
|
|
328
|
+
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
329
329
|
}),
|
|
330
330
|
...(input.initialCapacity != null && {
|
|
331
|
-
initialCapacity:
|
|
331
|
+
initialCapacity: se_InitialCapacityConfigMap(input.initialCapacity, context),
|
|
332
332
|
}),
|
|
333
333
|
...(input.maximumCapacity != null && {
|
|
334
|
-
maximumCapacity:
|
|
334
|
+
maximumCapacity: se_MaximumAllowedResources(input.maximumCapacity, context),
|
|
335
335
|
}),
|
|
336
336
|
...(input.networkConfiguration != null && {
|
|
337
|
-
networkConfiguration:
|
|
337
|
+
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
338
338
|
}),
|
|
339
339
|
...(input.workerTypeSpecifications != null && {
|
|
340
|
-
workerTypeSpecifications:
|
|
340
|
+
workerTypeSpecifications: se_WorkerTypeSpecificationInputMap(input.workerTypeSpecifications, context),
|
|
341
341
|
}),
|
|
342
342
|
});
|
|
343
343
|
return new __HttpRequest({
|
|
@@ -350,9 +350,9 @@ export const serializeAws_restJson1UpdateApplicationCommand = async (input, cont
|
|
|
350
350
|
body,
|
|
351
351
|
});
|
|
352
352
|
};
|
|
353
|
-
export const
|
|
353
|
+
export const de_CancelJobRunCommand = async (output, context) => {
|
|
354
354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
355
|
-
return
|
|
355
|
+
return de_CancelJobRunCommandError(output, context);
|
|
356
356
|
}
|
|
357
357
|
const contents = map({
|
|
358
358
|
$metadata: deserializeMetadata(output),
|
|
@@ -366,7 +366,7 @@ export const deserializeAws_restJson1CancelJobRunCommand = async (output, contex
|
|
|
366
366
|
}
|
|
367
367
|
return contents;
|
|
368
368
|
};
|
|
369
|
-
const
|
|
369
|
+
const de_CancelJobRunCommandError = async (output, context) => {
|
|
370
370
|
const parsedOutput = {
|
|
371
371
|
...output,
|
|
372
372
|
body: await parseErrorBody(output.body, context),
|
|
@@ -375,13 +375,13 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
375
375
|
switch (errorCode) {
|
|
376
376
|
case "InternalServerException":
|
|
377
377
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
378
|
-
throw await
|
|
378
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
379
379
|
case "ResourceNotFoundException":
|
|
380
380
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
381
|
-
throw await
|
|
381
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
382
382
|
case "ValidationException":
|
|
383
383
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
384
|
-
throw await
|
|
384
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
385
385
|
default:
|
|
386
386
|
const parsedBody = parsedOutput.body;
|
|
387
387
|
throwDefaultError({
|
|
@@ -392,9 +392,9 @@ const deserializeAws_restJson1CancelJobRunCommandError = async (output, context)
|
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
|
-
export const
|
|
395
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
396
396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
397
|
-
return
|
|
397
|
+
return de_CreateApplicationCommandError(output, context);
|
|
398
398
|
}
|
|
399
399
|
const contents = map({
|
|
400
400
|
$metadata: deserializeMetadata(output),
|
|
@@ -411,7 +411,7 @@ export const deserializeAws_restJson1CreateApplicationCommand = async (output, c
|
|
|
411
411
|
}
|
|
412
412
|
return contents;
|
|
413
413
|
};
|
|
414
|
-
const
|
|
414
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
415
415
|
const parsedOutput = {
|
|
416
416
|
...output,
|
|
417
417
|
body: await parseErrorBody(output.body, context),
|
|
@@ -420,16 +420,16 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
420
420
|
switch (errorCode) {
|
|
421
421
|
case "ConflictException":
|
|
422
422
|
case "com.amazonaws.emrserverless#ConflictException":
|
|
423
|
-
throw await
|
|
423
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
424
424
|
case "InternalServerException":
|
|
425
425
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
426
|
-
throw await
|
|
426
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
427
427
|
case "ResourceNotFoundException":
|
|
428
428
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
430
430
|
case "ValidationException":
|
|
431
431
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
432
|
-
throw await
|
|
432
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
433
433
|
default:
|
|
434
434
|
const parsedBody = parsedOutput.body;
|
|
435
435
|
throwDefaultError({
|
|
@@ -440,9 +440,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
|
-
export const
|
|
443
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
444
444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
-
return
|
|
445
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
446
446
|
}
|
|
447
447
|
const contents = map({
|
|
448
448
|
$metadata: deserializeMetadata(output),
|
|
@@ -450,7 +450,7 @@ export const deserializeAws_restJson1DeleteApplicationCommand = async (output, c
|
|
|
450
450
|
await collectBody(output.body, context);
|
|
451
451
|
return contents;
|
|
452
452
|
};
|
|
453
|
-
const
|
|
453
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
454
454
|
const parsedOutput = {
|
|
455
455
|
...output,
|
|
456
456
|
body: await parseErrorBody(output.body, context),
|
|
@@ -459,13 +459,13 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
459
459
|
switch (errorCode) {
|
|
460
460
|
case "InternalServerException":
|
|
461
461
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
462
|
-
throw await
|
|
462
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
463
463
|
case "ResourceNotFoundException":
|
|
464
464
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
466
|
case "ValidationException":
|
|
467
467
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
468
|
-
throw await
|
|
468
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
469
|
default:
|
|
470
470
|
const parsedBody = parsedOutput.body;
|
|
471
471
|
throwDefaultError({
|
|
@@ -476,20 +476,20 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
export const
|
|
479
|
+
export const de_GetApplicationCommand = async (output, context) => {
|
|
480
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
481
|
-
return
|
|
481
|
+
return de_GetApplicationCommandError(output, context);
|
|
482
482
|
}
|
|
483
483
|
const contents = map({
|
|
484
484
|
$metadata: deserializeMetadata(output),
|
|
485
485
|
});
|
|
486
486
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
487
487
|
if (data.application != null) {
|
|
488
|
-
contents.application =
|
|
488
|
+
contents.application = de_Application(data.application, context);
|
|
489
489
|
}
|
|
490
490
|
return contents;
|
|
491
491
|
};
|
|
492
|
-
const
|
|
492
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
493
493
|
const parsedOutput = {
|
|
494
494
|
...output,
|
|
495
495
|
body: await parseErrorBody(output.body, context),
|
|
@@ -498,13 +498,13 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
498
498
|
switch (errorCode) {
|
|
499
499
|
case "InternalServerException":
|
|
500
500
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
501
|
-
throw await
|
|
501
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
502
502
|
case "ResourceNotFoundException":
|
|
503
503
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
504
|
-
throw await
|
|
504
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
505
505
|
case "ValidationException":
|
|
506
506
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
507
|
-
throw await
|
|
507
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
508
508
|
default:
|
|
509
509
|
const parsedBody = parsedOutput.body;
|
|
510
510
|
throwDefaultError({
|
|
@@ -515,9 +515,9 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
|
-
export const
|
|
518
|
+
export const de_GetDashboardForJobRunCommand = async (output, context) => {
|
|
519
519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
520
|
-
return
|
|
520
|
+
return de_GetDashboardForJobRunCommandError(output, context);
|
|
521
521
|
}
|
|
522
522
|
const contents = map({
|
|
523
523
|
$metadata: deserializeMetadata(output),
|
|
@@ -528,7 +528,7 @@ export const deserializeAws_restJson1GetDashboardForJobRunCommand = async (outpu
|
|
|
528
528
|
}
|
|
529
529
|
return contents;
|
|
530
530
|
};
|
|
531
|
-
const
|
|
531
|
+
const de_GetDashboardForJobRunCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -537,13 +537,13 @@ const deserializeAws_restJson1GetDashboardForJobRunCommandError = async (output,
|
|
|
537
537
|
switch (errorCode) {
|
|
538
538
|
case "InternalServerException":
|
|
539
539
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
540
|
-
throw await
|
|
540
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
541
541
|
case "ResourceNotFoundException":
|
|
542
542
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
543
|
-
throw await
|
|
543
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
544
544
|
case "ValidationException":
|
|
545
545
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
546
|
-
throw await
|
|
546
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
547
|
default:
|
|
548
548
|
const parsedBody = parsedOutput.body;
|
|
549
549
|
throwDefaultError({
|
|
@@ -554,20 +554,20 @@ const deserializeAws_restJson1GetDashboardForJobRunCommandError = async (output,
|
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
|
-
export const
|
|
557
|
+
export const de_GetJobRunCommand = async (output, context) => {
|
|
558
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return
|
|
559
|
+
return de_GetJobRunCommandError(output, context);
|
|
560
560
|
}
|
|
561
561
|
const contents = map({
|
|
562
562
|
$metadata: deserializeMetadata(output),
|
|
563
563
|
});
|
|
564
564
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
565
565
|
if (data.jobRun != null) {
|
|
566
|
-
contents.jobRun =
|
|
566
|
+
contents.jobRun = de_JobRun(data.jobRun, context);
|
|
567
567
|
}
|
|
568
568
|
return contents;
|
|
569
569
|
};
|
|
570
|
-
const
|
|
570
|
+
const de_GetJobRunCommandError = async (output, context) => {
|
|
571
571
|
const parsedOutput = {
|
|
572
572
|
...output,
|
|
573
573
|
body: await parseErrorBody(output.body, context),
|
|
@@ -576,13 +576,13 @@ const deserializeAws_restJson1GetJobRunCommandError = async (output, context) =>
|
|
|
576
576
|
switch (errorCode) {
|
|
577
577
|
case "InternalServerException":
|
|
578
578
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
580
580
|
case "ResourceNotFoundException":
|
|
581
581
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
583
583
|
case "ValidationException":
|
|
584
584
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
585
|
-
throw await
|
|
585
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
586
586
|
default:
|
|
587
587
|
const parsedBody = parsedOutput.body;
|
|
588
588
|
throwDefaultError({
|
|
@@ -593,23 +593,23 @@ const deserializeAws_restJson1GetJobRunCommandError = async (output, context) =>
|
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
|
-
export const
|
|
596
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
597
597
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
-
return
|
|
598
|
+
return de_ListApplicationsCommandError(output, context);
|
|
599
599
|
}
|
|
600
600
|
const contents = map({
|
|
601
601
|
$metadata: deserializeMetadata(output),
|
|
602
602
|
});
|
|
603
603
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
604
604
|
if (data.applications != null) {
|
|
605
|
-
contents.applications =
|
|
605
|
+
contents.applications = de_ApplicationList(data.applications, context);
|
|
606
606
|
}
|
|
607
607
|
if (data.nextToken != null) {
|
|
608
608
|
contents.nextToken = __expectString(data.nextToken);
|
|
609
609
|
}
|
|
610
610
|
return contents;
|
|
611
611
|
};
|
|
612
|
-
const
|
|
612
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
613
613
|
const parsedOutput = {
|
|
614
614
|
...output,
|
|
615
615
|
body: await parseErrorBody(output.body, context),
|
|
@@ -618,10 +618,10 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
618
618
|
switch (errorCode) {
|
|
619
619
|
case "InternalServerException":
|
|
620
620
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
621
|
-
throw await
|
|
621
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
622
622
|
case "ValidationException":
|
|
623
623
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
624
|
-
throw await
|
|
624
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
625
625
|
default:
|
|
626
626
|
const parsedBody = parsedOutput.body;
|
|
627
627
|
throwDefaultError({
|
|
@@ -632,23 +632,23 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
|
-
export const
|
|
635
|
+
export const de_ListJobRunsCommand = async (output, context) => {
|
|
636
636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
637
|
-
return
|
|
637
|
+
return de_ListJobRunsCommandError(output, context);
|
|
638
638
|
}
|
|
639
639
|
const contents = map({
|
|
640
640
|
$metadata: deserializeMetadata(output),
|
|
641
641
|
});
|
|
642
642
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
643
643
|
if (data.jobRuns != null) {
|
|
644
|
-
contents.jobRuns =
|
|
644
|
+
contents.jobRuns = de_JobRuns(data.jobRuns, context);
|
|
645
645
|
}
|
|
646
646
|
if (data.nextToken != null) {
|
|
647
647
|
contents.nextToken = __expectString(data.nextToken);
|
|
648
648
|
}
|
|
649
649
|
return contents;
|
|
650
650
|
};
|
|
651
|
-
const
|
|
651
|
+
const de_ListJobRunsCommandError = async (output, context) => {
|
|
652
652
|
const parsedOutput = {
|
|
653
653
|
...output,
|
|
654
654
|
body: await parseErrorBody(output.body, context),
|
|
@@ -657,10 +657,10 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
657
657
|
switch (errorCode) {
|
|
658
658
|
case "InternalServerException":
|
|
659
659
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
660
|
-
throw await
|
|
660
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
661
661
|
case "ValidationException":
|
|
662
662
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
663
|
-
throw await
|
|
663
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
664
664
|
default:
|
|
665
665
|
const parsedBody = parsedOutput.body;
|
|
666
666
|
throwDefaultError({
|
|
@@ -671,20 +671,20 @@ const deserializeAws_restJson1ListJobRunsCommandError = async (output, context)
|
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
|
-
export const
|
|
674
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
675
675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return
|
|
676
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
677
677
|
}
|
|
678
678
|
const contents = map({
|
|
679
679
|
$metadata: deserializeMetadata(output),
|
|
680
680
|
});
|
|
681
681
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
682
682
|
if (data.tags != null) {
|
|
683
|
-
contents.tags =
|
|
683
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
684
684
|
}
|
|
685
685
|
return contents;
|
|
686
686
|
};
|
|
687
|
-
const
|
|
687
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
688
688
|
const parsedOutput = {
|
|
689
689
|
...output,
|
|
690
690
|
body: await parseErrorBody(output.body, context),
|
|
@@ -693,13 +693,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
693
693
|
switch (errorCode) {
|
|
694
694
|
case "InternalServerException":
|
|
695
695
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
696
|
-
throw await
|
|
696
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
697
697
|
case "ResourceNotFoundException":
|
|
698
698
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
699
|
-
throw await
|
|
699
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
700
700
|
case "ValidationException":
|
|
701
701
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
703
|
default:
|
|
704
704
|
const parsedBody = parsedOutput.body;
|
|
705
705
|
throwDefaultError({
|
|
@@ -710,9 +710,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
|
-
export const
|
|
713
|
+
export const de_StartApplicationCommand = async (output, context) => {
|
|
714
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return
|
|
715
|
+
return de_StartApplicationCommandError(output, context);
|
|
716
716
|
}
|
|
717
717
|
const contents = map({
|
|
718
718
|
$metadata: deserializeMetadata(output),
|
|
@@ -720,7 +720,7 @@ export const deserializeAws_restJson1StartApplicationCommand = async (output, co
|
|
|
720
720
|
await collectBody(output.body, context);
|
|
721
721
|
return contents;
|
|
722
722
|
};
|
|
723
|
-
const
|
|
723
|
+
const de_StartApplicationCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -729,16 +729,16 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
729
729
|
switch (errorCode) {
|
|
730
730
|
case "InternalServerException":
|
|
731
731
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
732
|
-
throw await
|
|
732
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
733
733
|
case "ResourceNotFoundException":
|
|
734
734
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
735
|
-
throw await
|
|
735
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
736
736
|
case "ServiceQuotaExceededException":
|
|
737
737
|
case "com.amazonaws.emrserverless#ServiceQuotaExceededException":
|
|
738
|
-
throw await
|
|
738
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
739
739
|
case "ValidationException":
|
|
740
740
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
741
|
-
throw await
|
|
741
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
742
742
|
default:
|
|
743
743
|
const parsedBody = parsedOutput.body;
|
|
744
744
|
throwDefaultError({
|
|
@@ -749,9 +749,9 @@ const deserializeAws_restJson1StartApplicationCommandError = async (output, cont
|
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
751
|
};
|
|
752
|
-
export const
|
|
752
|
+
export const de_StartJobRunCommand = async (output, context) => {
|
|
753
753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return
|
|
754
|
+
return de_StartJobRunCommandError(output, context);
|
|
755
755
|
}
|
|
756
756
|
const contents = map({
|
|
757
757
|
$metadata: deserializeMetadata(output),
|
|
@@ -768,7 +768,7 @@ export const deserializeAws_restJson1StartJobRunCommand = async (output, context
|
|
|
768
768
|
}
|
|
769
769
|
return contents;
|
|
770
770
|
};
|
|
771
|
-
const
|
|
771
|
+
const de_StartJobRunCommandError = async (output, context) => {
|
|
772
772
|
const parsedOutput = {
|
|
773
773
|
...output,
|
|
774
774
|
body: await parseErrorBody(output.body, context),
|
|
@@ -777,16 +777,16 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
777
777
|
switch (errorCode) {
|
|
778
778
|
case "ConflictException":
|
|
779
779
|
case "com.amazonaws.emrserverless#ConflictException":
|
|
780
|
-
throw await
|
|
780
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
781
781
|
case "InternalServerException":
|
|
782
782
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
783
|
-
throw await
|
|
783
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
784
784
|
case "ResourceNotFoundException":
|
|
785
785
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
786
|
-
throw await
|
|
786
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
787
787
|
case "ValidationException":
|
|
788
788
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
789
|
-
throw await
|
|
789
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
790
|
default:
|
|
791
791
|
const parsedBody = parsedOutput.body;
|
|
792
792
|
throwDefaultError({
|
|
@@ -797,9 +797,9 @@ const deserializeAws_restJson1StartJobRunCommandError = async (output, context)
|
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
|
-
export const
|
|
800
|
+
export const de_StopApplicationCommand = async (output, context) => {
|
|
801
801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
-
return
|
|
802
|
+
return de_StopApplicationCommandError(output, context);
|
|
803
803
|
}
|
|
804
804
|
const contents = map({
|
|
805
805
|
$metadata: deserializeMetadata(output),
|
|
@@ -807,7 +807,7 @@ export const deserializeAws_restJson1StopApplicationCommand = async (output, con
|
|
|
807
807
|
await collectBody(output.body, context);
|
|
808
808
|
return contents;
|
|
809
809
|
};
|
|
810
|
-
const
|
|
810
|
+
const de_StopApplicationCommandError = async (output, context) => {
|
|
811
811
|
const parsedOutput = {
|
|
812
812
|
...output,
|
|
813
813
|
body: await parseErrorBody(output.body, context),
|
|
@@ -816,13 +816,13 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
816
816
|
switch (errorCode) {
|
|
817
817
|
case "InternalServerException":
|
|
818
818
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
819
|
-
throw await
|
|
819
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
820
820
|
case "ResourceNotFoundException":
|
|
821
821
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
822
|
-
throw await
|
|
822
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
823
823
|
case "ValidationException":
|
|
824
824
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
825
|
-
throw await
|
|
825
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
826
|
default:
|
|
827
827
|
const parsedBody = parsedOutput.body;
|
|
828
828
|
throwDefaultError({
|
|
@@ -833,9 +833,9 @@ const deserializeAws_restJson1StopApplicationCommandError = async (output, conte
|
|
|
833
833
|
});
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
export const
|
|
836
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
837
837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
838
|
+
return de_TagResourceCommandError(output, context);
|
|
839
839
|
}
|
|
840
840
|
const contents = map({
|
|
841
841
|
$metadata: deserializeMetadata(output),
|
|
@@ -843,7 +843,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
843
843
|
await collectBody(output.body, context);
|
|
844
844
|
return contents;
|
|
845
845
|
};
|
|
846
|
-
const
|
|
846
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
847
847
|
const parsedOutput = {
|
|
848
848
|
...output,
|
|
849
849
|
body: await parseErrorBody(output.body, context),
|
|
@@ -852,13 +852,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
852
852
|
switch (errorCode) {
|
|
853
853
|
case "InternalServerException":
|
|
854
854
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
856
856
|
case "ResourceNotFoundException":
|
|
857
857
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
859
859
|
case "ValidationException":
|
|
860
860
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
861
|
-
throw await
|
|
861
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
862
|
default:
|
|
863
863
|
const parsedBody = parsedOutput.body;
|
|
864
864
|
throwDefaultError({
|
|
@@ -869,9 +869,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
};
|
|
872
|
-
export const
|
|
872
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
873
873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
874
|
-
return
|
|
874
|
+
return de_UntagResourceCommandError(output, context);
|
|
875
875
|
}
|
|
876
876
|
const contents = map({
|
|
877
877
|
$metadata: deserializeMetadata(output),
|
|
@@ -879,7 +879,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
879
879
|
await collectBody(output.body, context);
|
|
880
880
|
return contents;
|
|
881
881
|
};
|
|
882
|
-
const
|
|
882
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
883
883
|
const parsedOutput = {
|
|
884
884
|
...output,
|
|
885
885
|
body: await parseErrorBody(output.body, context),
|
|
@@ -888,13 +888,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
888
888
|
switch (errorCode) {
|
|
889
889
|
case "InternalServerException":
|
|
890
890
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
891
|
-
throw await
|
|
891
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
892
892
|
case "ResourceNotFoundException":
|
|
893
893
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
894
|
-
throw await
|
|
894
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
895
895
|
case "ValidationException":
|
|
896
896
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
897
|
-
throw await
|
|
897
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
898
|
default:
|
|
899
899
|
const parsedBody = parsedOutput.body;
|
|
900
900
|
throwDefaultError({
|
|
@@ -905,20 +905,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
export const
|
|
908
|
+
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
909
909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return
|
|
910
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
911
911
|
}
|
|
912
912
|
const contents = map({
|
|
913
913
|
$metadata: deserializeMetadata(output),
|
|
914
914
|
});
|
|
915
915
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
916
916
|
if (data.application != null) {
|
|
917
|
-
contents.application =
|
|
917
|
+
contents.application = de_Application(data.application, context);
|
|
918
918
|
}
|
|
919
919
|
return contents;
|
|
920
920
|
};
|
|
921
|
-
const
|
|
921
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
922
922
|
const parsedOutput = {
|
|
923
923
|
...output,
|
|
924
924
|
body: await parseErrorBody(output.body, context),
|
|
@@ -927,13 +927,13 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
927
927
|
switch (errorCode) {
|
|
928
928
|
case "InternalServerException":
|
|
929
929
|
case "com.amazonaws.emrserverless#InternalServerException":
|
|
930
|
-
throw await
|
|
930
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
931
931
|
case "ResourceNotFoundException":
|
|
932
932
|
case "com.amazonaws.emrserverless#ResourceNotFoundException":
|
|
933
|
-
throw await
|
|
933
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
934
|
case "ValidationException":
|
|
935
935
|
case "com.amazonaws.emrserverless#ValidationException":
|
|
936
|
-
throw await
|
|
936
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
937
937
|
default:
|
|
938
938
|
const parsedBody = parsedOutput.body;
|
|
939
939
|
throwDefaultError({
|
|
@@ -945,7 +945,7 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
947
|
const map = __map;
|
|
948
|
-
const
|
|
948
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
949
949
|
const contents = map({});
|
|
950
950
|
const data = parsedOutput.body;
|
|
951
951
|
if (data.message != null) {
|
|
@@ -957,7 +957,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
957
957
|
});
|
|
958
958
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
959
959
|
};
|
|
960
|
-
const
|
|
960
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
961
961
|
const contents = map({});
|
|
962
962
|
const data = parsedOutput.body;
|
|
963
963
|
if (data.message != null) {
|
|
@@ -969,7 +969,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
969
969
|
});
|
|
970
970
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
971
971
|
};
|
|
972
|
-
const
|
|
972
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
973
973
|
const contents = map({});
|
|
974
974
|
const data = parsedOutput.body;
|
|
975
975
|
if (data.message != null) {
|
|
@@ -981,7 +981,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
981
981
|
});
|
|
982
982
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
983
983
|
};
|
|
984
|
-
const
|
|
984
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
985
985
|
const contents = map({});
|
|
986
986
|
const data = parsedOutput.body;
|
|
987
987
|
if (data.message != null) {
|
|
@@ -993,7 +993,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
993
993
|
});
|
|
994
994
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
995
995
|
};
|
|
996
|
-
const
|
|
996
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
997
997
|
const contents = map({});
|
|
998
998
|
const data = parsedOutput.body;
|
|
999
999
|
if (data.message != null) {
|
|
@@ -1005,133 +1005,127 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1005
1005
|
});
|
|
1006
1006
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1007
1007
|
};
|
|
1008
|
-
const
|
|
1008
|
+
const se_AutoStartConfig = (input, context) => {
|
|
1009
1009
|
return {
|
|
1010
1010
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1011
1011
|
};
|
|
1012
1012
|
};
|
|
1013
|
-
const
|
|
1013
|
+
const se_AutoStopConfig = (input, context) => {
|
|
1014
1014
|
return {
|
|
1015
1015
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1016
1016
|
...(input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
|
|
1017
1017
|
};
|
|
1018
1018
|
};
|
|
1019
|
-
const
|
|
1019
|
+
const se_Configuration = (input, context) => {
|
|
1020
1020
|
return {
|
|
1021
1021
|
...(input.classification != null && { classification: input.classification }),
|
|
1022
|
-
...(input.configurations != null && {
|
|
1023
|
-
|
|
1024
|
-
}),
|
|
1025
|
-
...(input.properties != null && {
|
|
1026
|
-
properties: serializeAws_restJson1SensitivePropertiesMap(input.properties, context),
|
|
1027
|
-
}),
|
|
1022
|
+
...(input.configurations != null && { configurations: se_ConfigurationList(input.configurations, context) }),
|
|
1023
|
+
...(input.properties != null && { properties: se_SensitivePropertiesMap(input.properties, context) }),
|
|
1028
1024
|
};
|
|
1029
1025
|
};
|
|
1030
|
-
const
|
|
1026
|
+
const se_ConfigurationList = (input, context) => {
|
|
1031
1027
|
return input
|
|
1032
1028
|
.filter((e) => e != null)
|
|
1033
1029
|
.map((entry) => {
|
|
1034
|
-
return
|
|
1030
|
+
return se_Configuration(entry, context);
|
|
1035
1031
|
});
|
|
1036
1032
|
};
|
|
1037
|
-
const
|
|
1033
|
+
const se_ConfigurationOverrides = (input, context) => {
|
|
1038
1034
|
return {
|
|
1039
1035
|
...(input.applicationConfiguration != null && {
|
|
1040
|
-
applicationConfiguration:
|
|
1036
|
+
applicationConfiguration: se_ConfigurationList(input.applicationConfiguration, context),
|
|
1041
1037
|
}),
|
|
1042
1038
|
...(input.monitoringConfiguration != null && {
|
|
1043
|
-
monitoringConfiguration:
|
|
1039
|
+
monitoringConfiguration: se_MonitoringConfiguration(input.monitoringConfiguration, context),
|
|
1044
1040
|
}),
|
|
1045
1041
|
};
|
|
1046
1042
|
};
|
|
1047
|
-
const
|
|
1043
|
+
const se_EntryPointArguments = (input, context) => {
|
|
1048
1044
|
return input
|
|
1049
1045
|
.filter((e) => e != null)
|
|
1050
1046
|
.map((entry) => {
|
|
1051
1047
|
return entry;
|
|
1052
1048
|
});
|
|
1053
1049
|
};
|
|
1054
|
-
const
|
|
1050
|
+
const se_Hive = (input, context) => {
|
|
1055
1051
|
return {
|
|
1056
1052
|
...(input.initQueryFile != null && { initQueryFile: input.initQueryFile }),
|
|
1057
1053
|
...(input.parameters != null && { parameters: input.parameters }),
|
|
1058
1054
|
...(input.query != null && { query: input.query }),
|
|
1059
1055
|
};
|
|
1060
1056
|
};
|
|
1061
|
-
const
|
|
1057
|
+
const se_ImageConfigurationInput = (input, context) => {
|
|
1062
1058
|
return {
|
|
1063
1059
|
...(input.imageUri != null && { imageUri: input.imageUri }),
|
|
1064
1060
|
};
|
|
1065
1061
|
};
|
|
1066
|
-
const
|
|
1062
|
+
const se_InitialCapacityConfig = (input, context) => {
|
|
1067
1063
|
return {
|
|
1068
1064
|
...(input.workerConfiguration != null && {
|
|
1069
|
-
workerConfiguration:
|
|
1065
|
+
workerConfiguration: se_WorkerResourceConfig(input.workerConfiguration, context),
|
|
1070
1066
|
}),
|
|
1071
1067
|
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1072
1068
|
};
|
|
1073
1069
|
};
|
|
1074
|
-
const
|
|
1070
|
+
const se_InitialCapacityConfigMap = (input, context) => {
|
|
1075
1071
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1076
1072
|
if (value === null) {
|
|
1077
1073
|
return acc;
|
|
1078
1074
|
}
|
|
1079
|
-
acc[key] =
|
|
1075
|
+
acc[key] = se_InitialCapacityConfig(value, context);
|
|
1080
1076
|
return acc;
|
|
1081
1077
|
}, {});
|
|
1082
1078
|
};
|
|
1083
|
-
const
|
|
1079
|
+
const se_JobDriver = (input, context) => {
|
|
1084
1080
|
return JobDriver.visit(input, {
|
|
1085
|
-
hive: (value) => ({ hive:
|
|
1086
|
-
sparkSubmit: (value) => ({ sparkSubmit:
|
|
1081
|
+
hive: (value) => ({ hive: se_Hive(value, context) }),
|
|
1082
|
+
sparkSubmit: (value) => ({ sparkSubmit: se_SparkSubmit(value, context) }),
|
|
1087
1083
|
_: (name, value) => ({ name: value }),
|
|
1088
1084
|
});
|
|
1089
1085
|
};
|
|
1090
|
-
const
|
|
1086
|
+
const se_ManagedPersistenceMonitoringConfiguration = (input, context) => {
|
|
1091
1087
|
return {
|
|
1092
1088
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1093
1089
|
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1094
1090
|
};
|
|
1095
1091
|
};
|
|
1096
|
-
const
|
|
1092
|
+
const se_MaximumAllowedResources = (input, context) => {
|
|
1097
1093
|
return {
|
|
1098
1094
|
...(input.cpu != null && { cpu: input.cpu }),
|
|
1099
1095
|
...(input.disk != null && { disk: input.disk }),
|
|
1100
1096
|
...(input.memory != null && { memory: input.memory }),
|
|
1101
1097
|
};
|
|
1102
1098
|
};
|
|
1103
|
-
const
|
|
1099
|
+
const se_MonitoringConfiguration = (input, context) => {
|
|
1104
1100
|
return {
|
|
1105
1101
|
...(input.managedPersistenceMonitoringConfiguration != null && {
|
|
1106
|
-
managedPersistenceMonitoringConfiguration:
|
|
1102
|
+
managedPersistenceMonitoringConfiguration: se_ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
|
|
1107
1103
|
}),
|
|
1108
1104
|
...(input.s3MonitoringConfiguration != null && {
|
|
1109
|
-
s3MonitoringConfiguration:
|
|
1105
|
+
s3MonitoringConfiguration: se_S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
|
|
1110
1106
|
}),
|
|
1111
1107
|
};
|
|
1112
1108
|
};
|
|
1113
|
-
const
|
|
1109
|
+
const se_NetworkConfiguration = (input, context) => {
|
|
1114
1110
|
return {
|
|
1115
|
-
...(input.securityGroupIds != null && {
|
|
1116
|
-
|
|
1117
|
-
}),
|
|
1118
|
-
...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIds(input.subnetIds, context) }),
|
|
1111
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
|
|
1112
|
+
...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
|
|
1119
1113
|
};
|
|
1120
1114
|
};
|
|
1121
|
-
const
|
|
1115
|
+
const se_S3MonitoringConfiguration = (input, context) => {
|
|
1122
1116
|
return {
|
|
1123
1117
|
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1124
1118
|
...(input.logUri != null && { logUri: input.logUri }),
|
|
1125
1119
|
};
|
|
1126
1120
|
};
|
|
1127
|
-
const
|
|
1121
|
+
const se_SecurityGroupIds = (input, context) => {
|
|
1128
1122
|
return input
|
|
1129
1123
|
.filter((e) => e != null)
|
|
1130
1124
|
.map((entry) => {
|
|
1131
1125
|
return entry;
|
|
1132
1126
|
});
|
|
1133
1127
|
};
|
|
1134
|
-
const
|
|
1128
|
+
const se_SensitivePropertiesMap = (input, context) => {
|
|
1135
1129
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1136
1130
|
if (value === null) {
|
|
1137
1131
|
return acc;
|
|
@@ -1140,23 +1134,23 @@ const serializeAws_restJson1SensitivePropertiesMap = (input, context) => {
|
|
|
1140
1134
|
return acc;
|
|
1141
1135
|
}, {});
|
|
1142
1136
|
};
|
|
1143
|
-
const
|
|
1137
|
+
const se_SparkSubmit = (input, context) => {
|
|
1144
1138
|
return {
|
|
1145
1139
|
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1146
1140
|
...(input.entryPointArguments != null && {
|
|
1147
|
-
entryPointArguments:
|
|
1141
|
+
entryPointArguments: se_EntryPointArguments(input.entryPointArguments, context),
|
|
1148
1142
|
}),
|
|
1149
1143
|
...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
|
|
1150
1144
|
};
|
|
1151
1145
|
};
|
|
1152
|
-
const
|
|
1146
|
+
const se_SubnetIds = (input, context) => {
|
|
1153
1147
|
return input
|
|
1154
1148
|
.filter((e) => e != null)
|
|
1155
1149
|
.map((entry) => {
|
|
1156
1150
|
return entry;
|
|
1157
1151
|
});
|
|
1158
1152
|
};
|
|
1159
|
-
const
|
|
1153
|
+
const se_TagMap = (input, context) => {
|
|
1160
1154
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1161
1155
|
if (value === null) {
|
|
1162
1156
|
return acc;
|
|
@@ -1165,77 +1159,65 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1165
1159
|
return acc;
|
|
1166
1160
|
}, {});
|
|
1167
1161
|
};
|
|
1168
|
-
const
|
|
1162
|
+
const se_WorkerResourceConfig = (input, context) => {
|
|
1169
1163
|
return {
|
|
1170
1164
|
...(input.cpu != null && { cpu: input.cpu }),
|
|
1171
1165
|
...(input.disk != null && { disk: input.disk }),
|
|
1172
1166
|
...(input.memory != null && { memory: input.memory }),
|
|
1173
1167
|
};
|
|
1174
1168
|
};
|
|
1175
|
-
const
|
|
1169
|
+
const se_WorkerTypeSpecificationInput = (input, context) => {
|
|
1176
1170
|
return {
|
|
1177
1171
|
...(input.imageConfiguration != null && {
|
|
1178
|
-
imageConfiguration:
|
|
1172
|
+
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
1179
1173
|
}),
|
|
1180
1174
|
};
|
|
1181
1175
|
};
|
|
1182
|
-
const
|
|
1176
|
+
const se_WorkerTypeSpecificationInputMap = (input, context) => {
|
|
1183
1177
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1184
1178
|
if (value === null) {
|
|
1185
1179
|
return acc;
|
|
1186
1180
|
}
|
|
1187
|
-
acc[key] =
|
|
1181
|
+
acc[key] = se_WorkerTypeSpecificationInput(value, context);
|
|
1188
1182
|
return acc;
|
|
1189
1183
|
}, {});
|
|
1190
1184
|
};
|
|
1191
|
-
const
|
|
1185
|
+
const de_Application = (output, context) => {
|
|
1192
1186
|
return {
|
|
1193
1187
|
applicationId: __expectString(output.applicationId),
|
|
1194
1188
|
architecture: __expectString(output.architecture),
|
|
1195
1189
|
arn: __expectString(output.arn),
|
|
1196
|
-
autoStartConfiguration: output.autoStartConfiguration != null
|
|
1197
|
-
|
|
1198
|
-
: undefined,
|
|
1199
|
-
autoStopConfiguration: output.autoStopConfiguration != null
|
|
1200
|
-
? deserializeAws_restJson1AutoStopConfig(output.autoStopConfiguration, context)
|
|
1201
|
-
: undefined,
|
|
1190
|
+
autoStartConfiguration: output.autoStartConfiguration != null ? de_AutoStartConfig(output.autoStartConfiguration, context) : undefined,
|
|
1191
|
+
autoStopConfiguration: output.autoStopConfiguration != null ? de_AutoStopConfig(output.autoStopConfiguration, context) : undefined,
|
|
1202
1192
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1203
|
-
imageConfiguration: output.imageConfiguration != null
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
initialCapacity: output.initialCapacity != null
|
|
1207
|
-
? deserializeAws_restJson1InitialCapacityConfigMap(output.initialCapacity, context)
|
|
1208
|
-
: undefined,
|
|
1209
|
-
maximumCapacity: output.maximumCapacity != null
|
|
1210
|
-
? deserializeAws_restJson1MaximumAllowedResources(output.maximumCapacity, context)
|
|
1211
|
-
: undefined,
|
|
1193
|
+
imageConfiguration: output.imageConfiguration != null ? de_ImageConfiguration(output.imageConfiguration, context) : undefined,
|
|
1194
|
+
initialCapacity: output.initialCapacity != null ? de_InitialCapacityConfigMap(output.initialCapacity, context) : undefined,
|
|
1195
|
+
maximumCapacity: output.maximumCapacity != null ? de_MaximumAllowedResources(output.maximumCapacity, context) : undefined,
|
|
1212
1196
|
name: __expectString(output.name),
|
|
1213
|
-
networkConfiguration: output.networkConfiguration != null
|
|
1214
|
-
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
1215
|
-
: undefined,
|
|
1197
|
+
networkConfiguration: output.networkConfiguration != null ? de_NetworkConfiguration(output.networkConfiguration, context) : undefined,
|
|
1216
1198
|
releaseLabel: __expectString(output.releaseLabel),
|
|
1217
1199
|
state: __expectString(output.state),
|
|
1218
1200
|
stateDetails: __expectString(output.stateDetails),
|
|
1219
|
-
tags: output.tags != null ?
|
|
1201
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1220
1202
|
type: __expectString(output.type),
|
|
1221
1203
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
1222
1204
|
workerTypeSpecifications: output.workerTypeSpecifications != null
|
|
1223
|
-
?
|
|
1205
|
+
? de_WorkerTypeSpecificationMap(output.workerTypeSpecifications, context)
|
|
1224
1206
|
: undefined,
|
|
1225
1207
|
};
|
|
1226
1208
|
};
|
|
1227
|
-
const
|
|
1209
|
+
const de_ApplicationList = (output, context) => {
|
|
1228
1210
|
const retVal = (output || [])
|
|
1229
1211
|
.filter((e) => e != null)
|
|
1230
1212
|
.map((entry) => {
|
|
1231
1213
|
if (entry === null) {
|
|
1232
1214
|
return null;
|
|
1233
1215
|
}
|
|
1234
|
-
return
|
|
1216
|
+
return de_ApplicationSummary(entry, context);
|
|
1235
1217
|
});
|
|
1236
1218
|
return retVal;
|
|
1237
1219
|
};
|
|
1238
|
-
const
|
|
1220
|
+
const de_ApplicationSummary = (output, context) => {
|
|
1239
1221
|
return {
|
|
1240
1222
|
architecture: __expectString(output.architecture),
|
|
1241
1223
|
arn: __expectString(output.arn),
|
|
@@ -1249,50 +1231,46 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1249
1231
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
1250
1232
|
};
|
|
1251
1233
|
};
|
|
1252
|
-
const
|
|
1234
|
+
const de_AutoStartConfig = (output, context) => {
|
|
1253
1235
|
return {
|
|
1254
1236
|
enabled: __expectBoolean(output.enabled),
|
|
1255
1237
|
};
|
|
1256
1238
|
};
|
|
1257
|
-
const
|
|
1239
|
+
const de_AutoStopConfig = (output, context) => {
|
|
1258
1240
|
return {
|
|
1259
1241
|
enabled: __expectBoolean(output.enabled),
|
|
1260
1242
|
idleTimeoutMinutes: __expectInt32(output.idleTimeoutMinutes),
|
|
1261
1243
|
};
|
|
1262
1244
|
};
|
|
1263
|
-
const
|
|
1245
|
+
const de_Configuration = (output, context) => {
|
|
1264
1246
|
return {
|
|
1265
1247
|
classification: __expectString(output.classification),
|
|
1266
|
-
configurations: output.configurations != null
|
|
1267
|
-
|
|
1268
|
-
: undefined,
|
|
1269
|
-
properties: output.properties != null
|
|
1270
|
-
? deserializeAws_restJson1SensitivePropertiesMap(output.properties, context)
|
|
1271
|
-
: undefined,
|
|
1248
|
+
configurations: output.configurations != null ? de_ConfigurationList(output.configurations, context) : undefined,
|
|
1249
|
+
properties: output.properties != null ? de_SensitivePropertiesMap(output.properties, context) : undefined,
|
|
1272
1250
|
};
|
|
1273
1251
|
};
|
|
1274
|
-
const
|
|
1252
|
+
const de_ConfigurationList = (output, context) => {
|
|
1275
1253
|
const retVal = (output || [])
|
|
1276
1254
|
.filter((e) => e != null)
|
|
1277
1255
|
.map((entry) => {
|
|
1278
1256
|
if (entry === null) {
|
|
1279
1257
|
return null;
|
|
1280
1258
|
}
|
|
1281
|
-
return
|
|
1259
|
+
return de_Configuration(entry, context);
|
|
1282
1260
|
});
|
|
1283
1261
|
return retVal;
|
|
1284
1262
|
};
|
|
1285
|
-
const
|
|
1263
|
+
const de_ConfigurationOverrides = (output, context) => {
|
|
1286
1264
|
return {
|
|
1287
1265
|
applicationConfiguration: output.applicationConfiguration != null
|
|
1288
|
-
?
|
|
1266
|
+
? de_ConfigurationList(output.applicationConfiguration, context)
|
|
1289
1267
|
: undefined,
|
|
1290
1268
|
monitoringConfiguration: output.monitoringConfiguration != null
|
|
1291
|
-
?
|
|
1269
|
+
? de_MonitoringConfiguration(output.monitoringConfiguration, context)
|
|
1292
1270
|
: undefined,
|
|
1293
1271
|
};
|
|
1294
1272
|
};
|
|
1295
|
-
const
|
|
1273
|
+
const de_EntryPointArguments = (output, context) => {
|
|
1296
1274
|
const retVal = (output || [])
|
|
1297
1275
|
.filter((e) => e != null)
|
|
1298
1276
|
.map((entry) => {
|
|
@@ -1303,90 +1281,84 @@ const deserializeAws_restJson1EntryPointArguments = (output, context) => {
|
|
|
1303
1281
|
});
|
|
1304
1282
|
return retVal;
|
|
1305
1283
|
};
|
|
1306
|
-
const
|
|
1284
|
+
const de_Hive = (output, context) => {
|
|
1307
1285
|
return {
|
|
1308
1286
|
initQueryFile: __expectString(output.initQueryFile),
|
|
1309
1287
|
parameters: __expectString(output.parameters),
|
|
1310
1288
|
query: __expectString(output.query),
|
|
1311
1289
|
};
|
|
1312
1290
|
};
|
|
1313
|
-
const
|
|
1291
|
+
const de_ImageConfiguration = (output, context) => {
|
|
1314
1292
|
return {
|
|
1315
1293
|
imageUri: __expectString(output.imageUri),
|
|
1316
1294
|
resolvedImageDigest: __expectString(output.resolvedImageDigest),
|
|
1317
1295
|
};
|
|
1318
1296
|
};
|
|
1319
|
-
const
|
|
1297
|
+
const de_InitialCapacityConfig = (output, context) => {
|
|
1320
1298
|
return {
|
|
1321
|
-
workerConfiguration: output.workerConfiguration != null
|
|
1322
|
-
? deserializeAws_restJson1WorkerResourceConfig(output.workerConfiguration, context)
|
|
1323
|
-
: undefined,
|
|
1299
|
+
workerConfiguration: output.workerConfiguration != null ? de_WorkerResourceConfig(output.workerConfiguration, context) : undefined,
|
|
1324
1300
|
workerCount: __expectLong(output.workerCount),
|
|
1325
1301
|
};
|
|
1326
1302
|
};
|
|
1327
|
-
const
|
|
1303
|
+
const de_InitialCapacityConfigMap = (output, context) => {
|
|
1328
1304
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1329
1305
|
if (value === null) {
|
|
1330
1306
|
return acc;
|
|
1331
1307
|
}
|
|
1332
|
-
acc[key] =
|
|
1308
|
+
acc[key] = de_InitialCapacityConfig(value, context);
|
|
1333
1309
|
return acc;
|
|
1334
1310
|
}, {});
|
|
1335
1311
|
};
|
|
1336
|
-
const
|
|
1312
|
+
const de_JobDriver = (output, context) => {
|
|
1337
1313
|
if (output.hive != null) {
|
|
1338
1314
|
return {
|
|
1339
|
-
hive:
|
|
1315
|
+
hive: de_Hive(output.hive, context),
|
|
1340
1316
|
};
|
|
1341
1317
|
}
|
|
1342
1318
|
if (output.sparkSubmit != null) {
|
|
1343
1319
|
return {
|
|
1344
|
-
sparkSubmit:
|
|
1320
|
+
sparkSubmit: de_SparkSubmit(output.sparkSubmit, context),
|
|
1345
1321
|
};
|
|
1346
1322
|
}
|
|
1347
1323
|
return { $unknown: Object.entries(output)[0] };
|
|
1348
1324
|
};
|
|
1349
|
-
const
|
|
1325
|
+
const de_JobRun = (output, context) => {
|
|
1350
1326
|
return {
|
|
1351
1327
|
applicationId: __expectString(output.applicationId),
|
|
1352
1328
|
arn: __expectString(output.arn),
|
|
1353
1329
|
configurationOverrides: output.configurationOverrides != null
|
|
1354
|
-
?
|
|
1330
|
+
? de_ConfigurationOverrides(output.configurationOverrides, context)
|
|
1355
1331
|
: undefined,
|
|
1356
1332
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1357
1333
|
createdBy: __expectString(output.createdBy),
|
|
1358
1334
|
executionRole: __expectString(output.executionRole),
|
|
1359
|
-
jobDriver: output.jobDriver != null
|
|
1360
|
-
? deserializeAws_restJson1JobDriver(__expectUnion(output.jobDriver), context)
|
|
1361
|
-
: undefined,
|
|
1335
|
+
jobDriver: output.jobDriver != null ? de_JobDriver(__expectUnion(output.jobDriver), context) : undefined,
|
|
1362
1336
|
jobRunId: __expectString(output.jobRunId),
|
|
1363
1337
|
name: __expectString(output.name),
|
|
1364
|
-
networkConfiguration: output.networkConfiguration != null
|
|
1365
|
-
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
1366
|
-
: undefined,
|
|
1338
|
+
networkConfiguration: output.networkConfiguration != null ? de_NetworkConfiguration(output.networkConfiguration, context) : undefined,
|
|
1367
1339
|
releaseLabel: __expectString(output.releaseLabel),
|
|
1368
1340
|
state: __expectString(output.state),
|
|
1369
1341
|
stateDetails: __expectString(output.stateDetails),
|
|
1370
|
-
tags: output.tags != null ?
|
|
1342
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1371
1343
|
totalExecutionDurationSeconds: __expectInt32(output.totalExecutionDurationSeconds),
|
|
1372
1344
|
totalResourceUtilization: output.totalResourceUtilization != null
|
|
1373
|
-
?
|
|
1345
|
+
? de_TotalResourceUtilization(output.totalResourceUtilization, context)
|
|
1374
1346
|
: undefined,
|
|
1375
1347
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
1376
1348
|
};
|
|
1377
1349
|
};
|
|
1378
|
-
const
|
|
1350
|
+
const de_JobRuns = (output, context) => {
|
|
1379
1351
|
const retVal = (output || [])
|
|
1380
1352
|
.filter((e) => e != null)
|
|
1381
1353
|
.map((entry) => {
|
|
1382
1354
|
if (entry === null) {
|
|
1383
1355
|
return null;
|
|
1384
1356
|
}
|
|
1385
|
-
return
|
|
1357
|
+
return de_JobRunSummary(entry, context);
|
|
1386
1358
|
});
|
|
1387
1359
|
return retVal;
|
|
1388
1360
|
};
|
|
1389
|
-
const
|
|
1361
|
+
const de_JobRunSummary = (output, context) => {
|
|
1390
1362
|
return {
|
|
1391
1363
|
applicationId: __expectString(output.applicationId),
|
|
1392
1364
|
arn: __expectString(output.arn),
|
|
@@ -1402,44 +1374,42 @@ const deserializeAws_restJson1JobRunSummary = (output, context) => {
|
|
|
1402
1374
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
1403
1375
|
};
|
|
1404
1376
|
};
|
|
1405
|
-
const
|
|
1377
|
+
const de_ManagedPersistenceMonitoringConfiguration = (output, context) => {
|
|
1406
1378
|
return {
|
|
1407
1379
|
enabled: __expectBoolean(output.enabled),
|
|
1408
1380
|
encryptionKeyArn: __expectString(output.encryptionKeyArn),
|
|
1409
1381
|
};
|
|
1410
1382
|
};
|
|
1411
|
-
const
|
|
1383
|
+
const de_MaximumAllowedResources = (output, context) => {
|
|
1412
1384
|
return {
|
|
1413
1385
|
cpu: __expectString(output.cpu),
|
|
1414
1386
|
disk: __expectString(output.disk),
|
|
1415
1387
|
memory: __expectString(output.memory),
|
|
1416
1388
|
};
|
|
1417
1389
|
};
|
|
1418
|
-
const
|
|
1390
|
+
const de_MonitoringConfiguration = (output, context) => {
|
|
1419
1391
|
return {
|
|
1420
1392
|
managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
|
|
1421
|
-
?
|
|
1393
|
+
? de_ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
|
|
1422
1394
|
: undefined,
|
|
1423
1395
|
s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
|
|
1424
|
-
?
|
|
1396
|
+
? de_S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
|
|
1425
1397
|
: undefined,
|
|
1426
1398
|
};
|
|
1427
1399
|
};
|
|
1428
|
-
const
|
|
1400
|
+
const de_NetworkConfiguration = (output, context) => {
|
|
1429
1401
|
return {
|
|
1430
|
-
securityGroupIds: output.securityGroupIds != null
|
|
1431
|
-
|
|
1432
|
-
: undefined,
|
|
1433
|
-
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIds(output.subnetIds, context) : undefined,
|
|
1402
|
+
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
1403
|
+
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
1434
1404
|
};
|
|
1435
1405
|
};
|
|
1436
|
-
const
|
|
1406
|
+
const de_S3MonitoringConfiguration = (output, context) => {
|
|
1437
1407
|
return {
|
|
1438
1408
|
encryptionKeyArn: __expectString(output.encryptionKeyArn),
|
|
1439
1409
|
logUri: __expectString(output.logUri),
|
|
1440
1410
|
};
|
|
1441
1411
|
};
|
|
1442
|
-
const
|
|
1412
|
+
const de_SecurityGroupIds = (output, context) => {
|
|
1443
1413
|
const retVal = (output || [])
|
|
1444
1414
|
.filter((e) => e != null)
|
|
1445
1415
|
.map((entry) => {
|
|
@@ -1450,7 +1420,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
|
|
|
1450
1420
|
});
|
|
1451
1421
|
return retVal;
|
|
1452
1422
|
};
|
|
1453
|
-
const
|
|
1423
|
+
const de_SensitivePropertiesMap = (output, context) => {
|
|
1454
1424
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1455
1425
|
if (value === null) {
|
|
1456
1426
|
return acc;
|
|
@@ -1459,16 +1429,14 @@ const deserializeAws_restJson1SensitivePropertiesMap = (output, context) => {
|
|
|
1459
1429
|
return acc;
|
|
1460
1430
|
}, {});
|
|
1461
1431
|
};
|
|
1462
|
-
const
|
|
1432
|
+
const de_SparkSubmit = (output, context) => {
|
|
1463
1433
|
return {
|
|
1464
1434
|
entryPoint: __expectString(output.entryPoint),
|
|
1465
|
-
entryPointArguments: output.entryPointArguments != null
|
|
1466
|
-
? deserializeAws_restJson1EntryPointArguments(output.entryPointArguments, context)
|
|
1467
|
-
: undefined,
|
|
1435
|
+
entryPointArguments: output.entryPointArguments != null ? de_EntryPointArguments(output.entryPointArguments, context) : undefined,
|
|
1468
1436
|
sparkSubmitParameters: __expectString(output.sparkSubmitParameters),
|
|
1469
1437
|
};
|
|
1470
1438
|
};
|
|
1471
|
-
const
|
|
1439
|
+
const de_SubnetIds = (output, context) => {
|
|
1472
1440
|
const retVal = (output || [])
|
|
1473
1441
|
.filter((e) => e != null)
|
|
1474
1442
|
.map((entry) => {
|
|
@@ -1479,7 +1447,7 @@ const deserializeAws_restJson1SubnetIds = (output, context) => {
|
|
|
1479
1447
|
});
|
|
1480
1448
|
return retVal;
|
|
1481
1449
|
};
|
|
1482
|
-
const
|
|
1450
|
+
const de_TagMap = (output, context) => {
|
|
1483
1451
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1484
1452
|
if (value === null) {
|
|
1485
1453
|
return acc;
|
|
@@ -1488,33 +1456,31 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1488
1456
|
return acc;
|
|
1489
1457
|
}, {});
|
|
1490
1458
|
};
|
|
1491
|
-
const
|
|
1459
|
+
const de_TotalResourceUtilization = (output, context) => {
|
|
1492
1460
|
return {
|
|
1493
1461
|
memoryGBHour: __limitedParseDouble(output.memoryGBHour),
|
|
1494
1462
|
storageGBHour: __limitedParseDouble(output.storageGBHour),
|
|
1495
1463
|
vCPUHour: __limitedParseDouble(output.vCPUHour),
|
|
1496
1464
|
};
|
|
1497
1465
|
};
|
|
1498
|
-
const
|
|
1466
|
+
const de_WorkerResourceConfig = (output, context) => {
|
|
1499
1467
|
return {
|
|
1500
1468
|
cpu: __expectString(output.cpu),
|
|
1501
1469
|
disk: __expectString(output.disk),
|
|
1502
1470
|
memory: __expectString(output.memory),
|
|
1503
1471
|
};
|
|
1504
1472
|
};
|
|
1505
|
-
const
|
|
1473
|
+
const de_WorkerTypeSpecification = (output, context) => {
|
|
1506
1474
|
return {
|
|
1507
|
-
imageConfiguration: output.imageConfiguration != null
|
|
1508
|
-
? deserializeAws_restJson1ImageConfiguration(output.imageConfiguration, context)
|
|
1509
|
-
: undefined,
|
|
1475
|
+
imageConfiguration: output.imageConfiguration != null ? de_ImageConfiguration(output.imageConfiguration, context) : undefined,
|
|
1510
1476
|
};
|
|
1511
1477
|
};
|
|
1512
|
-
const
|
|
1478
|
+
const de_WorkerTypeSpecificationMap = (output, context) => {
|
|
1513
1479
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1514
1480
|
if (value === null) {
|
|
1515
1481
|
return acc;
|
|
1516
1482
|
}
|
|
1517
|
-
acc[key] =
|
|
1483
|
+
acc[key] = de_WorkerTypeSpecification(value, context);
|
|
1518
1484
|
return acc;
|
|
1519
1485
|
}, {});
|
|
1520
1486
|
};
|