@aws-sdk/client-emr-serverless 3.311.0 → 3.315.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/protocols/Aws_restJson1.js +236 -614
- package/dist-es/protocols/Aws_restJson1.js +215 -593
- package/dist-types/EMRServerless.d.ts +7 -6
- package/dist-types/commands/CancelJobRunCommand.d.ts +2 -1
- package/dist-types/commands/CreateApplicationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteApplicationCommand.d.ts +2 -1
- package/dist-types/commands/GetApplicationCommand.d.ts +2 -1
- package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +4 -2
- package/dist-types/commands/GetJobRunCommand.d.ts +2 -1
- package/dist-types/commands/ListApplicationsCommand.d.ts +2 -1
- package/dist-types/commands/ListJobRunsCommand.d.ts +2 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/StartApplicationCommand.d.ts +2 -1
- package/dist-types/commands/StartJobRunCommand.d.ts +2 -1
- package/dist-types/commands/StopApplicationCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +7 -6
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +34 -4
- package/dist-types/ts3.4/models/models_0.d.ts +6 -0
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { EMRServerlessServiceException as __BaseException } from "../models/EMRServerlessServiceException";
|
|
5
|
-
import { ConflictException, InternalServerException,
|
|
5
|
+
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_CancelJobRunCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {};
|
|
@@ -28,35 +28,21 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
28
28
|
};
|
|
29
29
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
30
30
|
let body;
|
|
31
|
-
body = JSON.stringify({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
...(input.maximumCapacity != null && {
|
|
47
|
-
maximumCapacity: se_MaximumAllowedResources(input.maximumCapacity, context),
|
|
48
|
-
}),
|
|
49
|
-
...(input.name != null && { name: input.name }),
|
|
50
|
-
...(input.networkConfiguration != null && {
|
|
51
|
-
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
52
|
-
}),
|
|
53
|
-
...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
|
|
54
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
55
|
-
...(input.type != null && { type: input.type }),
|
|
56
|
-
...(input.workerTypeSpecifications != null && {
|
|
57
|
-
workerTypeSpecifications: se_WorkerTypeSpecificationInputMap(input.workerTypeSpecifications, context),
|
|
58
|
-
}),
|
|
59
|
-
});
|
|
31
|
+
body = JSON.stringify(take(input, {
|
|
32
|
+
architecture: [],
|
|
33
|
+
autoStartConfiguration: (_) => _json(_),
|
|
34
|
+
autoStopConfiguration: (_) => _json(_),
|
|
35
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
36
|
+
imageConfiguration: (_) => _json(_),
|
|
37
|
+
initialCapacity: (_) => _json(_),
|
|
38
|
+
maximumCapacity: (_) => _json(_),
|
|
39
|
+
name: [],
|
|
40
|
+
networkConfiguration: (_) => _json(_),
|
|
41
|
+
releaseLabel: [],
|
|
42
|
+
tags: (_) => _json(_),
|
|
43
|
+
type: [],
|
|
44
|
+
workerTypeSpecifications: (_) => _json(_),
|
|
45
|
+
}));
|
|
60
46
|
return new __HttpRequest({
|
|
61
47
|
protocol,
|
|
62
48
|
hostname,
|
|
@@ -226,17 +212,15 @@ export const se_StartJobRunCommand = async (input, context) => {
|
|
|
226
212
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}/jobruns";
|
|
227
213
|
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
228
214
|
let body;
|
|
229
|
-
body = JSON.stringify({
|
|
230
|
-
clientToken:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
239
|
-
});
|
|
215
|
+
body = JSON.stringify(take(input, {
|
|
216
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
217
|
+
configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
|
|
218
|
+
executionRoleArn: [],
|
|
219
|
+
executionTimeoutMinutes: [],
|
|
220
|
+
jobDriver: (_) => _json(_),
|
|
221
|
+
name: [],
|
|
222
|
+
tags: (_) => _json(_),
|
|
223
|
+
}));
|
|
240
224
|
return new __HttpRequest({
|
|
241
225
|
protocol,
|
|
242
226
|
hostname,
|
|
@@ -271,9 +255,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
271
255
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
272
256
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
273
257
|
let body;
|
|
274
|
-
body = JSON.stringify({
|
|
275
|
-
|
|
276
|
-
});
|
|
258
|
+
body = JSON.stringify(take(input, {
|
|
259
|
+
tags: (_) => _json(_),
|
|
260
|
+
}));
|
|
277
261
|
return new __HttpRequest({
|
|
278
262
|
protocol,
|
|
279
263
|
hostname,
|
|
@@ -315,31 +299,17 @@ export const se_UpdateApplicationCommand = async (input, context) => {
|
|
|
315
299
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{applicationId}";
|
|
316
300
|
resolvedPath = __resolvedPath(resolvedPath, input, "applicationId", () => input.applicationId, "{applicationId}", false);
|
|
317
301
|
let body;
|
|
318
|
-
body = JSON.stringify({
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}),
|
|
330
|
-
...(input.initialCapacity != null && {
|
|
331
|
-
initialCapacity: se_InitialCapacityConfigMap(input.initialCapacity, context),
|
|
332
|
-
}),
|
|
333
|
-
...(input.maximumCapacity != null && {
|
|
334
|
-
maximumCapacity: se_MaximumAllowedResources(input.maximumCapacity, context),
|
|
335
|
-
}),
|
|
336
|
-
...(input.networkConfiguration != null && {
|
|
337
|
-
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
338
|
-
}),
|
|
339
|
-
...(input.workerTypeSpecifications != null && {
|
|
340
|
-
workerTypeSpecifications: se_WorkerTypeSpecificationInputMap(input.workerTypeSpecifications, context),
|
|
341
|
-
}),
|
|
342
|
-
});
|
|
302
|
+
body = JSON.stringify(take(input, {
|
|
303
|
+
architecture: [],
|
|
304
|
+
autoStartConfiguration: (_) => _json(_),
|
|
305
|
+
autoStopConfiguration: (_) => _json(_),
|
|
306
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
307
|
+
imageConfiguration: (_) => _json(_),
|
|
308
|
+
initialCapacity: (_) => _json(_),
|
|
309
|
+
maximumCapacity: (_) => _json(_),
|
|
310
|
+
networkConfiguration: (_) => _json(_),
|
|
311
|
+
workerTypeSpecifications: (_) => _json(_),
|
|
312
|
+
}));
|
|
343
313
|
return new __HttpRequest({
|
|
344
314
|
protocol,
|
|
345
315
|
hostname,
|
|
@@ -358,12 +328,11 @@ export const de_CancelJobRunCommand = async (output, context) => {
|
|
|
358
328
|
$metadata: deserializeMetadata(output),
|
|
359
329
|
});
|
|
360
330
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
331
|
+
const doc = take(data, {
|
|
332
|
+
applicationId: __expectString,
|
|
333
|
+
jobRunId: __expectString,
|
|
334
|
+
});
|
|
335
|
+
Object.assign(contents, doc);
|
|
367
336
|
return contents;
|
|
368
337
|
};
|
|
369
338
|
const de_CancelJobRunCommandError = async (output, context) => {
|
|
@@ -384,10 +353,9 @@ const de_CancelJobRunCommandError = async (output, context) => {
|
|
|
384
353
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
385
354
|
default:
|
|
386
355
|
const parsedBody = parsedOutput.body;
|
|
387
|
-
throwDefaultError({
|
|
356
|
+
return throwDefaultError({
|
|
388
357
|
output,
|
|
389
358
|
parsedBody,
|
|
390
|
-
exceptionCtor: __BaseException,
|
|
391
359
|
errorCode,
|
|
392
360
|
});
|
|
393
361
|
}
|
|
@@ -400,15 +368,12 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
400
368
|
$metadata: deserializeMetadata(output),
|
|
401
369
|
});
|
|
402
370
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
if (data.name != null) {
|
|
410
|
-
contents.name = __expectString(data.name);
|
|
411
|
-
}
|
|
371
|
+
const doc = take(data, {
|
|
372
|
+
applicationId: __expectString,
|
|
373
|
+
arn: __expectString,
|
|
374
|
+
name: __expectString,
|
|
375
|
+
});
|
|
376
|
+
Object.assign(contents, doc);
|
|
412
377
|
return contents;
|
|
413
378
|
};
|
|
414
379
|
const de_CreateApplicationCommandError = async (output, context) => {
|
|
@@ -432,10 +397,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
432
397
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
433
398
|
default:
|
|
434
399
|
const parsedBody = parsedOutput.body;
|
|
435
|
-
throwDefaultError({
|
|
400
|
+
return throwDefaultError({
|
|
436
401
|
output,
|
|
437
402
|
parsedBody,
|
|
438
|
-
exceptionCtor: __BaseException,
|
|
439
403
|
errorCode,
|
|
440
404
|
});
|
|
441
405
|
}
|
|
@@ -468,10 +432,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
468
432
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
433
|
default:
|
|
470
434
|
const parsedBody = parsedOutput.body;
|
|
471
|
-
throwDefaultError({
|
|
435
|
+
return throwDefaultError({
|
|
472
436
|
output,
|
|
473
437
|
parsedBody,
|
|
474
|
-
exceptionCtor: __BaseException,
|
|
475
438
|
errorCode,
|
|
476
439
|
});
|
|
477
440
|
}
|
|
@@ -484,9 +447,10 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
484
447
|
$metadata: deserializeMetadata(output),
|
|
485
448
|
});
|
|
486
449
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
450
|
+
const doc = take(data, {
|
|
451
|
+
application: (_) => de_Application(_, context),
|
|
452
|
+
});
|
|
453
|
+
Object.assign(contents, doc);
|
|
490
454
|
return contents;
|
|
491
455
|
};
|
|
492
456
|
const de_GetApplicationCommandError = async (output, context) => {
|
|
@@ -507,10 +471,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
507
471
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
508
472
|
default:
|
|
509
473
|
const parsedBody = parsedOutput.body;
|
|
510
|
-
throwDefaultError({
|
|
474
|
+
return throwDefaultError({
|
|
511
475
|
output,
|
|
512
476
|
parsedBody,
|
|
513
|
-
exceptionCtor: __BaseException,
|
|
514
477
|
errorCode,
|
|
515
478
|
});
|
|
516
479
|
}
|
|
@@ -523,9 +486,10 @@ export const de_GetDashboardForJobRunCommand = async (output, context) => {
|
|
|
523
486
|
$metadata: deserializeMetadata(output),
|
|
524
487
|
});
|
|
525
488
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
489
|
+
const doc = take(data, {
|
|
490
|
+
url: __expectString,
|
|
491
|
+
});
|
|
492
|
+
Object.assign(contents, doc);
|
|
529
493
|
return contents;
|
|
530
494
|
};
|
|
531
495
|
const de_GetDashboardForJobRunCommandError = async (output, context) => {
|
|
@@ -546,10 +510,9 @@ const de_GetDashboardForJobRunCommandError = async (output, context) => {
|
|
|
546
510
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
511
|
default:
|
|
548
512
|
const parsedBody = parsedOutput.body;
|
|
549
|
-
throwDefaultError({
|
|
513
|
+
return throwDefaultError({
|
|
550
514
|
output,
|
|
551
515
|
parsedBody,
|
|
552
|
-
exceptionCtor: __BaseException,
|
|
553
516
|
errorCode,
|
|
554
517
|
});
|
|
555
518
|
}
|
|
@@ -562,9 +525,10 @@ export const de_GetJobRunCommand = async (output, context) => {
|
|
|
562
525
|
$metadata: deserializeMetadata(output),
|
|
563
526
|
});
|
|
564
527
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
528
|
+
const doc = take(data, {
|
|
529
|
+
jobRun: (_) => de_JobRun(_, context),
|
|
530
|
+
});
|
|
531
|
+
Object.assign(contents, doc);
|
|
568
532
|
return contents;
|
|
569
533
|
};
|
|
570
534
|
const de_GetJobRunCommandError = async (output, context) => {
|
|
@@ -585,10 +549,9 @@ const de_GetJobRunCommandError = async (output, context) => {
|
|
|
585
549
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
586
550
|
default:
|
|
587
551
|
const parsedBody = parsedOutput.body;
|
|
588
|
-
throwDefaultError({
|
|
552
|
+
return throwDefaultError({
|
|
589
553
|
output,
|
|
590
554
|
parsedBody,
|
|
591
|
-
exceptionCtor: __BaseException,
|
|
592
555
|
errorCode,
|
|
593
556
|
});
|
|
594
557
|
}
|
|
@@ -601,12 +564,11 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
601
564
|
$metadata: deserializeMetadata(output),
|
|
602
565
|
});
|
|
603
566
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
567
|
+
const doc = take(data, {
|
|
568
|
+
applications: (_) => de_ApplicationList(_, context),
|
|
569
|
+
nextToken: __expectString,
|
|
570
|
+
});
|
|
571
|
+
Object.assign(contents, doc);
|
|
610
572
|
return contents;
|
|
611
573
|
};
|
|
612
574
|
const de_ListApplicationsCommandError = async (output, context) => {
|
|
@@ -624,10 +586,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
624
586
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
625
587
|
default:
|
|
626
588
|
const parsedBody = parsedOutput.body;
|
|
627
|
-
throwDefaultError({
|
|
589
|
+
return throwDefaultError({
|
|
628
590
|
output,
|
|
629
591
|
parsedBody,
|
|
630
|
-
exceptionCtor: __BaseException,
|
|
631
592
|
errorCode,
|
|
632
593
|
});
|
|
633
594
|
}
|
|
@@ -640,12 +601,11 @@ export const de_ListJobRunsCommand = async (output, context) => {
|
|
|
640
601
|
$metadata: deserializeMetadata(output),
|
|
641
602
|
});
|
|
642
603
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
604
|
+
const doc = take(data, {
|
|
605
|
+
jobRuns: (_) => de_JobRuns(_, context),
|
|
606
|
+
nextToken: __expectString,
|
|
607
|
+
});
|
|
608
|
+
Object.assign(contents, doc);
|
|
649
609
|
return contents;
|
|
650
610
|
};
|
|
651
611
|
const de_ListJobRunsCommandError = async (output, context) => {
|
|
@@ -663,10 +623,9 @@ const de_ListJobRunsCommandError = async (output, context) => {
|
|
|
663
623
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
664
624
|
default:
|
|
665
625
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
throwDefaultError({
|
|
626
|
+
return throwDefaultError({
|
|
667
627
|
output,
|
|
668
628
|
parsedBody,
|
|
669
|
-
exceptionCtor: __BaseException,
|
|
670
629
|
errorCode,
|
|
671
630
|
});
|
|
672
631
|
}
|
|
@@ -679,9 +638,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
679
638
|
$metadata: deserializeMetadata(output),
|
|
680
639
|
});
|
|
681
640
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
641
|
+
const doc = take(data, {
|
|
642
|
+
tags: _json,
|
|
643
|
+
});
|
|
644
|
+
Object.assign(contents, doc);
|
|
685
645
|
return contents;
|
|
686
646
|
};
|
|
687
647
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -702,10 +662,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
702
662
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
663
|
default:
|
|
704
664
|
const parsedBody = parsedOutput.body;
|
|
705
|
-
throwDefaultError({
|
|
665
|
+
return throwDefaultError({
|
|
706
666
|
output,
|
|
707
667
|
parsedBody,
|
|
708
|
-
exceptionCtor: __BaseException,
|
|
709
668
|
errorCode,
|
|
710
669
|
});
|
|
711
670
|
}
|
|
@@ -741,10 +700,9 @@ const de_StartApplicationCommandError = async (output, context) => {
|
|
|
741
700
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
742
701
|
default:
|
|
743
702
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
throwDefaultError({
|
|
703
|
+
return throwDefaultError({
|
|
745
704
|
output,
|
|
746
705
|
parsedBody,
|
|
747
|
-
exceptionCtor: __BaseException,
|
|
748
706
|
errorCode,
|
|
749
707
|
});
|
|
750
708
|
}
|
|
@@ -757,15 +715,12 @@ export const de_StartJobRunCommand = async (output, context) => {
|
|
|
757
715
|
$metadata: deserializeMetadata(output),
|
|
758
716
|
});
|
|
759
717
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
if (data.jobRunId != null) {
|
|
767
|
-
contents.jobRunId = __expectString(data.jobRunId);
|
|
768
|
-
}
|
|
718
|
+
const doc = take(data, {
|
|
719
|
+
applicationId: __expectString,
|
|
720
|
+
arn: __expectString,
|
|
721
|
+
jobRunId: __expectString,
|
|
722
|
+
});
|
|
723
|
+
Object.assign(contents, doc);
|
|
769
724
|
return contents;
|
|
770
725
|
};
|
|
771
726
|
const de_StartJobRunCommandError = async (output, context) => {
|
|
@@ -789,10 +744,9 @@ const de_StartJobRunCommandError = async (output, context) => {
|
|
|
789
744
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
790
745
|
default:
|
|
791
746
|
const parsedBody = parsedOutput.body;
|
|
792
|
-
throwDefaultError({
|
|
747
|
+
return throwDefaultError({
|
|
793
748
|
output,
|
|
794
749
|
parsedBody,
|
|
795
|
-
exceptionCtor: __BaseException,
|
|
796
750
|
errorCode,
|
|
797
751
|
});
|
|
798
752
|
}
|
|
@@ -825,10 +779,9 @@ const de_StopApplicationCommandError = async (output, context) => {
|
|
|
825
779
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
780
|
default:
|
|
827
781
|
const parsedBody = parsedOutput.body;
|
|
828
|
-
throwDefaultError({
|
|
782
|
+
return throwDefaultError({
|
|
829
783
|
output,
|
|
830
784
|
parsedBody,
|
|
831
|
-
exceptionCtor: __BaseException,
|
|
832
785
|
errorCode,
|
|
833
786
|
});
|
|
834
787
|
}
|
|
@@ -861,10 +814,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
861
814
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
815
|
default:
|
|
863
816
|
const parsedBody = parsedOutput.body;
|
|
864
|
-
throwDefaultError({
|
|
817
|
+
return throwDefaultError({
|
|
865
818
|
output,
|
|
866
819
|
parsedBody,
|
|
867
|
-
exceptionCtor: __BaseException,
|
|
868
820
|
errorCode,
|
|
869
821
|
});
|
|
870
822
|
}
|
|
@@ -897,10 +849,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
897
849
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
850
|
default:
|
|
899
851
|
const parsedBody = parsedOutput.body;
|
|
900
|
-
throwDefaultError({
|
|
852
|
+
return throwDefaultError({
|
|
901
853
|
output,
|
|
902
854
|
parsedBody,
|
|
903
|
-
exceptionCtor: __BaseException,
|
|
904
855
|
errorCode,
|
|
905
856
|
});
|
|
906
857
|
}
|
|
@@ -913,9 +864,10 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
913
864
|
$metadata: deserializeMetadata(output),
|
|
914
865
|
});
|
|
915
866
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
}
|
|
867
|
+
const doc = take(data, {
|
|
868
|
+
application: (_) => de_Application(_, context),
|
|
869
|
+
});
|
|
870
|
+
Object.assign(contents, doc);
|
|
919
871
|
return contents;
|
|
920
872
|
};
|
|
921
873
|
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
@@ -936,21 +888,21 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
936
888
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
937
889
|
default:
|
|
938
890
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
throwDefaultError({
|
|
891
|
+
return throwDefaultError({
|
|
940
892
|
output,
|
|
941
893
|
parsedBody,
|
|
942
|
-
exceptionCtor: __BaseException,
|
|
943
894
|
errorCode,
|
|
944
895
|
});
|
|
945
896
|
}
|
|
946
897
|
};
|
|
947
|
-
const
|
|
898
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
948
899
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
949
900
|
const contents = map({});
|
|
950
901
|
const data = parsedOutput.body;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
902
|
+
const doc = take(data, {
|
|
903
|
+
message: __expectString,
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
954
906
|
const exception = new ConflictException({
|
|
955
907
|
$metadata: deserializeMetadata(parsedOutput),
|
|
956
908
|
...contents,
|
|
@@ -960,9 +912,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
960
912
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
961
913
|
const contents = map({});
|
|
962
914
|
const data = parsedOutput.body;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
}
|
|
915
|
+
const doc = take(data, {
|
|
916
|
+
message: __expectString,
|
|
917
|
+
});
|
|
918
|
+
Object.assign(contents, doc);
|
|
966
919
|
const exception = new InternalServerException({
|
|
967
920
|
$metadata: deserializeMetadata(parsedOutput),
|
|
968
921
|
...contents,
|
|
@@ -972,9 +925,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
972
925
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
973
926
|
const contents = map({});
|
|
974
927
|
const data = parsedOutput.body;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
}
|
|
928
|
+
const doc = take(data, {
|
|
929
|
+
message: __expectString,
|
|
930
|
+
});
|
|
931
|
+
Object.assign(contents, doc);
|
|
978
932
|
const exception = new ResourceNotFoundException({
|
|
979
933
|
$metadata: deserializeMetadata(parsedOutput),
|
|
980
934
|
...contents,
|
|
@@ -984,9 +938,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
984
938
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
985
939
|
const contents = map({});
|
|
986
940
|
const data = parsedOutput.body;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}
|
|
941
|
+
const doc = take(data, {
|
|
942
|
+
message: __expectString,
|
|
943
|
+
});
|
|
944
|
+
Object.assign(contents, doc);
|
|
990
945
|
const exception = new ServiceQuotaExceededException({
|
|
991
946
|
$metadata: deserializeMetadata(parsedOutput),
|
|
992
947
|
...contents,
|
|
@@ -996,32 +951,22 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
996
951
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
997
952
|
const contents = map({});
|
|
998
953
|
const data = parsedOutput.body;
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
}
|
|
954
|
+
const doc = take(data, {
|
|
955
|
+
message: __expectString,
|
|
956
|
+
});
|
|
957
|
+
Object.assign(contents, doc);
|
|
1002
958
|
const exception = new ValidationException({
|
|
1003
959
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1004
960
|
...contents,
|
|
1005
961
|
});
|
|
1006
962
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1007
963
|
};
|
|
1008
|
-
const se_AutoStartConfig = (input, context) => {
|
|
1009
|
-
return {
|
|
1010
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
const se_AutoStopConfig = (input, context) => {
|
|
1014
|
-
return {
|
|
1015
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1016
|
-
...(input.idleTimeoutMinutes != null && { idleTimeoutMinutes: input.idleTimeoutMinutes }),
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
964
|
const se_Configuration = (input, context) => {
|
|
1020
|
-
return {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
};
|
|
965
|
+
return take(input, {
|
|
966
|
+
classification: [],
|
|
967
|
+
configurations: (_) => se_ConfigurationList(_, context),
|
|
968
|
+
properties: _json,
|
|
969
|
+
});
|
|
1025
970
|
};
|
|
1026
971
|
const se_ConfigurationList = (input, context) => {
|
|
1027
972
|
return input
|
|
@@ -1031,459 +976,136 @@ const se_ConfigurationList = (input, context) => {
|
|
|
1031
976
|
});
|
|
1032
977
|
};
|
|
1033
978
|
const se_ConfigurationOverrides = (input, context) => {
|
|
1034
|
-
return {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}),
|
|
1038
|
-
...(input.monitoringConfiguration != null && {
|
|
1039
|
-
monitoringConfiguration: se_MonitoringConfiguration(input.monitoringConfiguration, context),
|
|
1040
|
-
}),
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
const se_EntryPointArguments = (input, context) => {
|
|
1044
|
-
return input
|
|
1045
|
-
.filter((e) => e != null)
|
|
1046
|
-
.map((entry) => {
|
|
1047
|
-
return entry;
|
|
1048
|
-
});
|
|
1049
|
-
};
|
|
1050
|
-
const se_Hive = (input, context) => {
|
|
1051
|
-
return {
|
|
1052
|
-
...(input.initQueryFile != null && { initQueryFile: input.initQueryFile }),
|
|
1053
|
-
...(input.parameters != null && { parameters: input.parameters }),
|
|
1054
|
-
...(input.query != null && { query: input.query }),
|
|
1055
|
-
};
|
|
1056
|
-
};
|
|
1057
|
-
const se_ImageConfigurationInput = (input, context) => {
|
|
1058
|
-
return {
|
|
1059
|
-
...(input.imageUri != null && { imageUri: input.imageUri }),
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
const se_InitialCapacityConfig = (input, context) => {
|
|
1063
|
-
return {
|
|
1064
|
-
...(input.workerConfiguration != null && {
|
|
1065
|
-
workerConfiguration: se_WorkerResourceConfig(input.workerConfiguration, context),
|
|
1066
|
-
}),
|
|
1067
|
-
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1068
|
-
};
|
|
1069
|
-
};
|
|
1070
|
-
const se_InitialCapacityConfigMap = (input, context) => {
|
|
1071
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1072
|
-
if (value === null) {
|
|
1073
|
-
return acc;
|
|
1074
|
-
}
|
|
1075
|
-
acc[key] = se_InitialCapacityConfig(value, context);
|
|
1076
|
-
return acc;
|
|
1077
|
-
}, {});
|
|
1078
|
-
};
|
|
1079
|
-
const se_JobDriver = (input, context) => {
|
|
1080
|
-
return JobDriver.visit(input, {
|
|
1081
|
-
hive: (value) => ({ hive: se_Hive(value, context) }),
|
|
1082
|
-
sparkSubmit: (value) => ({ sparkSubmit: se_SparkSubmit(value, context) }),
|
|
1083
|
-
_: (name, value) => ({ name: value }),
|
|
1084
|
-
});
|
|
1085
|
-
};
|
|
1086
|
-
const se_ManagedPersistenceMonitoringConfiguration = (input, context) => {
|
|
1087
|
-
return {
|
|
1088
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1089
|
-
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
const se_MaximumAllowedResources = (input, context) => {
|
|
1093
|
-
return {
|
|
1094
|
-
...(input.cpu != null && { cpu: input.cpu }),
|
|
1095
|
-
...(input.disk != null && { disk: input.disk }),
|
|
1096
|
-
...(input.memory != null && { memory: input.memory }),
|
|
1097
|
-
};
|
|
1098
|
-
};
|
|
1099
|
-
const se_MonitoringConfiguration = (input, context) => {
|
|
1100
|
-
return {
|
|
1101
|
-
...(input.managedPersistenceMonitoringConfiguration != null && {
|
|
1102
|
-
managedPersistenceMonitoringConfiguration: se_ManagedPersistenceMonitoringConfiguration(input.managedPersistenceMonitoringConfiguration, context),
|
|
1103
|
-
}),
|
|
1104
|
-
...(input.s3MonitoringConfiguration != null && {
|
|
1105
|
-
s3MonitoringConfiguration: se_S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
|
|
1106
|
-
}),
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
const se_NetworkConfiguration = (input, context) => {
|
|
1110
|
-
return {
|
|
1111
|
-
...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
|
|
1112
|
-
...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
|
-
const se_S3MonitoringConfiguration = (input, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
...(input.encryptionKeyArn != null && { encryptionKeyArn: input.encryptionKeyArn }),
|
|
1118
|
-
...(input.logUri != null && { logUri: input.logUri }),
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1122
|
-
return input
|
|
1123
|
-
.filter((e) => e != null)
|
|
1124
|
-
.map((entry) => {
|
|
1125
|
-
return entry;
|
|
979
|
+
return take(input, {
|
|
980
|
+
applicationConfiguration: (_) => se_ConfigurationList(_, context),
|
|
981
|
+
monitoringConfiguration: _json,
|
|
1126
982
|
});
|
|
1127
983
|
};
|
|
1128
|
-
const se_SensitivePropertiesMap = (input, context) => {
|
|
1129
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1130
|
-
if (value === null) {
|
|
1131
|
-
return acc;
|
|
1132
|
-
}
|
|
1133
|
-
acc[key] = value;
|
|
1134
|
-
return acc;
|
|
1135
|
-
}, {});
|
|
1136
|
-
};
|
|
1137
|
-
const se_SparkSubmit = (input, context) => {
|
|
1138
|
-
return {
|
|
1139
|
-
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1140
|
-
...(input.entryPointArguments != null && {
|
|
1141
|
-
entryPointArguments: se_EntryPointArguments(input.entryPointArguments, context),
|
|
1142
|
-
}),
|
|
1143
|
-
...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
|
|
1144
|
-
};
|
|
1145
|
-
};
|
|
1146
|
-
const se_SubnetIds = (input, context) => {
|
|
1147
|
-
return input
|
|
1148
|
-
.filter((e) => e != null)
|
|
1149
|
-
.map((entry) => {
|
|
1150
|
-
return entry;
|
|
1151
|
-
});
|
|
1152
|
-
};
|
|
1153
|
-
const se_TagMap = (input, context) => {
|
|
1154
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1155
|
-
if (value === null) {
|
|
1156
|
-
return acc;
|
|
1157
|
-
}
|
|
1158
|
-
acc[key] = value;
|
|
1159
|
-
return acc;
|
|
1160
|
-
}, {});
|
|
1161
|
-
};
|
|
1162
|
-
const se_WorkerResourceConfig = (input, context) => {
|
|
1163
|
-
return {
|
|
1164
|
-
...(input.cpu != null && { cpu: input.cpu }),
|
|
1165
|
-
...(input.disk != null && { disk: input.disk }),
|
|
1166
|
-
...(input.memory != null && { memory: input.memory }),
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
const se_WorkerTypeSpecificationInput = (input, context) => {
|
|
1170
|
-
return {
|
|
1171
|
-
...(input.imageConfiguration != null && {
|
|
1172
|
-
imageConfiguration: se_ImageConfigurationInput(input.imageConfiguration, context),
|
|
1173
|
-
}),
|
|
1174
|
-
};
|
|
1175
|
-
};
|
|
1176
|
-
const se_WorkerTypeSpecificationInputMap = (input, context) => {
|
|
1177
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1178
|
-
if (value === null) {
|
|
1179
|
-
return acc;
|
|
1180
|
-
}
|
|
1181
|
-
acc[key] = se_WorkerTypeSpecificationInput(value, context);
|
|
1182
|
-
return acc;
|
|
1183
|
-
}, {});
|
|
1184
|
-
};
|
|
1185
984
|
const de_Application = (output, context) => {
|
|
1186
|
-
return {
|
|
1187
|
-
applicationId: __expectString
|
|
1188
|
-
architecture: __expectString
|
|
1189
|
-
arn: __expectString
|
|
1190
|
-
autoStartConfiguration:
|
|
1191
|
-
autoStopConfiguration:
|
|
1192
|
-
createdAt:
|
|
1193
|
-
imageConfiguration:
|
|
1194
|
-
initialCapacity:
|
|
1195
|
-
maximumCapacity:
|
|
1196
|
-
name: __expectString
|
|
1197
|
-
networkConfiguration:
|
|
1198
|
-
releaseLabel: __expectString
|
|
1199
|
-
state: __expectString
|
|
1200
|
-
stateDetails: __expectString
|
|
1201
|
-
tags:
|
|
1202
|
-
type: __expectString
|
|
1203
|
-
updatedAt:
|
|
1204
|
-
workerTypeSpecifications:
|
|
1205
|
-
|
|
1206
|
-
: undefined,
|
|
1207
|
-
};
|
|
985
|
+
return take(output, {
|
|
986
|
+
applicationId: __expectString,
|
|
987
|
+
architecture: __expectString,
|
|
988
|
+
arn: __expectString,
|
|
989
|
+
autoStartConfiguration: _json,
|
|
990
|
+
autoStopConfiguration: _json,
|
|
991
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
992
|
+
imageConfiguration: _json,
|
|
993
|
+
initialCapacity: _json,
|
|
994
|
+
maximumCapacity: _json,
|
|
995
|
+
name: __expectString,
|
|
996
|
+
networkConfiguration: _json,
|
|
997
|
+
releaseLabel: __expectString,
|
|
998
|
+
state: __expectString,
|
|
999
|
+
stateDetails: __expectString,
|
|
1000
|
+
tags: _json,
|
|
1001
|
+
type: __expectString,
|
|
1002
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1003
|
+
workerTypeSpecifications: _json,
|
|
1004
|
+
});
|
|
1208
1005
|
};
|
|
1209
1006
|
const de_ApplicationList = (output, context) => {
|
|
1210
1007
|
const retVal = (output || [])
|
|
1211
1008
|
.filter((e) => e != null)
|
|
1212
1009
|
.map((entry) => {
|
|
1213
|
-
if (entry === null) {
|
|
1214
|
-
return null;
|
|
1215
|
-
}
|
|
1216
1010
|
return de_ApplicationSummary(entry, context);
|
|
1217
1011
|
});
|
|
1218
1012
|
return retVal;
|
|
1219
1013
|
};
|
|
1220
1014
|
const de_ApplicationSummary = (output, context) => {
|
|
1221
|
-
return {
|
|
1222
|
-
architecture: __expectString
|
|
1223
|
-
arn: __expectString
|
|
1224
|
-
createdAt:
|
|
1225
|
-
id: __expectString
|
|
1226
|
-
name: __expectString
|
|
1227
|
-
releaseLabel: __expectString
|
|
1228
|
-
state: __expectString
|
|
1229
|
-
stateDetails: __expectString
|
|
1230
|
-
type: __expectString
|
|
1231
|
-
updatedAt:
|
|
1232
|
-
};
|
|
1233
|
-
};
|
|
1234
|
-
const de_AutoStartConfig = (output, context) => {
|
|
1235
|
-
return {
|
|
1236
|
-
enabled: __expectBoolean(output.enabled),
|
|
1237
|
-
};
|
|
1238
|
-
};
|
|
1239
|
-
const de_AutoStopConfig = (output, context) => {
|
|
1240
|
-
return {
|
|
1241
|
-
enabled: __expectBoolean(output.enabled),
|
|
1242
|
-
idleTimeoutMinutes: __expectInt32(output.idleTimeoutMinutes),
|
|
1243
|
-
};
|
|
1015
|
+
return take(output, {
|
|
1016
|
+
architecture: __expectString,
|
|
1017
|
+
arn: __expectString,
|
|
1018
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1019
|
+
id: __expectString,
|
|
1020
|
+
name: __expectString,
|
|
1021
|
+
releaseLabel: __expectString,
|
|
1022
|
+
state: __expectString,
|
|
1023
|
+
stateDetails: __expectString,
|
|
1024
|
+
type: __expectString,
|
|
1025
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1026
|
+
});
|
|
1244
1027
|
};
|
|
1245
1028
|
const de_Configuration = (output, context) => {
|
|
1246
|
-
return {
|
|
1247
|
-
classification: __expectString
|
|
1248
|
-
configurations:
|
|
1249
|
-
properties:
|
|
1250
|
-
};
|
|
1029
|
+
return take(output, {
|
|
1030
|
+
classification: __expectString,
|
|
1031
|
+
configurations: (_) => de_ConfigurationList(_, context),
|
|
1032
|
+
properties: _json,
|
|
1033
|
+
});
|
|
1251
1034
|
};
|
|
1252
1035
|
const de_ConfigurationList = (output, context) => {
|
|
1253
1036
|
const retVal = (output || [])
|
|
1254
1037
|
.filter((e) => e != null)
|
|
1255
1038
|
.map((entry) => {
|
|
1256
|
-
if (entry === null) {
|
|
1257
|
-
return null;
|
|
1258
|
-
}
|
|
1259
1039
|
return de_Configuration(entry, context);
|
|
1260
1040
|
});
|
|
1261
1041
|
return retVal;
|
|
1262
1042
|
};
|
|
1263
1043
|
const de_ConfigurationOverrides = (output, context) => {
|
|
1264
|
-
return {
|
|
1265
|
-
applicationConfiguration:
|
|
1266
|
-
|
|
1267
|
-
: undefined,
|
|
1268
|
-
monitoringConfiguration: output.monitoringConfiguration != null
|
|
1269
|
-
? de_MonitoringConfiguration(output.monitoringConfiguration, context)
|
|
1270
|
-
: undefined,
|
|
1271
|
-
};
|
|
1272
|
-
};
|
|
1273
|
-
const de_EntryPointArguments = (output, context) => {
|
|
1274
|
-
const retVal = (output || [])
|
|
1275
|
-
.filter((e) => e != null)
|
|
1276
|
-
.map((entry) => {
|
|
1277
|
-
if (entry === null) {
|
|
1278
|
-
return null;
|
|
1279
|
-
}
|
|
1280
|
-
return __expectString(entry);
|
|
1044
|
+
return take(output, {
|
|
1045
|
+
applicationConfiguration: (_) => de_ConfigurationList(_, context),
|
|
1046
|
+
monitoringConfiguration: _json,
|
|
1281
1047
|
});
|
|
1282
|
-
return retVal;
|
|
1283
|
-
};
|
|
1284
|
-
const de_Hive = (output, context) => {
|
|
1285
|
-
return {
|
|
1286
|
-
initQueryFile: __expectString(output.initQueryFile),
|
|
1287
|
-
parameters: __expectString(output.parameters),
|
|
1288
|
-
query: __expectString(output.query),
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
const de_ImageConfiguration = (output, context) => {
|
|
1292
|
-
return {
|
|
1293
|
-
imageUri: __expectString(output.imageUri),
|
|
1294
|
-
resolvedImageDigest: __expectString(output.resolvedImageDigest),
|
|
1295
|
-
};
|
|
1296
|
-
};
|
|
1297
|
-
const de_InitialCapacityConfig = (output, context) => {
|
|
1298
|
-
return {
|
|
1299
|
-
workerConfiguration: output.workerConfiguration != null ? de_WorkerResourceConfig(output.workerConfiguration, context) : undefined,
|
|
1300
|
-
workerCount: __expectLong(output.workerCount),
|
|
1301
|
-
};
|
|
1302
|
-
};
|
|
1303
|
-
const de_InitialCapacityConfigMap = (output, context) => {
|
|
1304
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1305
|
-
if (value === null) {
|
|
1306
|
-
return acc;
|
|
1307
|
-
}
|
|
1308
|
-
acc[key] = de_InitialCapacityConfig(value, context);
|
|
1309
|
-
return acc;
|
|
1310
|
-
}, {});
|
|
1311
|
-
};
|
|
1312
|
-
const de_JobDriver = (output, context) => {
|
|
1313
|
-
if (output.hive != null) {
|
|
1314
|
-
return {
|
|
1315
|
-
hive: de_Hive(output.hive, context),
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
if (output.sparkSubmit != null) {
|
|
1319
|
-
return {
|
|
1320
|
-
sparkSubmit: de_SparkSubmit(output.sparkSubmit, context),
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
1323
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1324
1048
|
};
|
|
1325
1049
|
const de_JobRun = (output, context) => {
|
|
1326
|
-
return {
|
|
1327
|
-
applicationId: __expectString
|
|
1328
|
-
arn: __expectString
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
: undefined,
|
|
1348
|
-
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
1349
|
-
};
|
|
1050
|
+
return take(output, {
|
|
1051
|
+
applicationId: __expectString,
|
|
1052
|
+
arn: __expectString,
|
|
1053
|
+
billedResourceUtilization: (_) => de_ResourceUtilization(_, context),
|
|
1054
|
+
configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
|
|
1055
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1056
|
+
createdBy: __expectString,
|
|
1057
|
+
executionRole: __expectString,
|
|
1058
|
+
executionTimeoutMinutes: __expectLong,
|
|
1059
|
+
jobDriver: (_) => _json(__expectUnion(_)),
|
|
1060
|
+
jobRunId: __expectString,
|
|
1061
|
+
name: __expectString,
|
|
1062
|
+
networkConfiguration: _json,
|
|
1063
|
+
releaseLabel: __expectString,
|
|
1064
|
+
state: __expectString,
|
|
1065
|
+
stateDetails: __expectString,
|
|
1066
|
+
tags: _json,
|
|
1067
|
+
totalExecutionDurationSeconds: __expectInt32,
|
|
1068
|
+
totalResourceUtilization: (_) => de_TotalResourceUtilization(_, context),
|
|
1069
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1070
|
+
});
|
|
1350
1071
|
};
|
|
1351
1072
|
const de_JobRuns = (output, context) => {
|
|
1352
1073
|
const retVal = (output || [])
|
|
1353
1074
|
.filter((e) => e != null)
|
|
1354
1075
|
.map((entry) => {
|
|
1355
|
-
if (entry === null) {
|
|
1356
|
-
return null;
|
|
1357
|
-
}
|
|
1358
1076
|
return de_JobRunSummary(entry, context);
|
|
1359
1077
|
});
|
|
1360
1078
|
return retVal;
|
|
1361
1079
|
};
|
|
1362
1080
|
const de_JobRunSummary = (output, context) => {
|
|
1363
|
-
return {
|
|
1364
|
-
applicationId: __expectString
|
|
1365
|
-
arn: __expectString
|
|
1366
|
-
createdAt:
|
|
1367
|
-
createdBy: __expectString
|
|
1368
|
-
executionRole: __expectString
|
|
1369
|
-
id: __expectString
|
|
1370
|
-
name: __expectString
|
|
1371
|
-
releaseLabel: __expectString
|
|
1372
|
-
state: __expectString
|
|
1373
|
-
stateDetails: __expectString
|
|
1374
|
-
type: __expectString
|
|
1375
|
-
updatedAt:
|
|
1376
|
-
};
|
|
1377
|
-
};
|
|
1378
|
-
const de_ManagedPersistenceMonitoringConfiguration = (output, context) => {
|
|
1379
|
-
return {
|
|
1380
|
-
enabled: __expectBoolean(output.enabled),
|
|
1381
|
-
encryptionKeyArn: __expectString(output.encryptionKeyArn),
|
|
1382
|
-
};
|
|
1383
|
-
};
|
|
1384
|
-
const de_MaximumAllowedResources = (output, context) => {
|
|
1385
|
-
return {
|
|
1386
|
-
cpu: __expectString(output.cpu),
|
|
1387
|
-
disk: __expectString(output.disk),
|
|
1388
|
-
memory: __expectString(output.memory),
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
const de_MonitoringConfiguration = (output, context) => {
|
|
1392
|
-
return {
|
|
1393
|
-
managedPersistenceMonitoringConfiguration: output.managedPersistenceMonitoringConfiguration != null
|
|
1394
|
-
? de_ManagedPersistenceMonitoringConfiguration(output.managedPersistenceMonitoringConfiguration, context)
|
|
1395
|
-
: undefined,
|
|
1396
|
-
s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
|
|
1397
|
-
? de_S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
|
|
1398
|
-
: undefined,
|
|
1399
|
-
};
|
|
1400
|
-
};
|
|
1401
|
-
const de_NetworkConfiguration = (output, context) => {
|
|
1402
|
-
return {
|
|
1403
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
1404
|
-
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
1405
|
-
};
|
|
1406
|
-
};
|
|
1407
|
-
const de_S3MonitoringConfiguration = (output, context) => {
|
|
1408
|
-
return {
|
|
1409
|
-
encryptionKeyArn: __expectString(output.encryptionKeyArn),
|
|
1410
|
-
logUri: __expectString(output.logUri),
|
|
1411
|
-
};
|
|
1412
|
-
};
|
|
1413
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
1414
|
-
const retVal = (output || [])
|
|
1415
|
-
.filter((e) => e != null)
|
|
1416
|
-
.map((entry) => {
|
|
1417
|
-
if (entry === null) {
|
|
1418
|
-
return null;
|
|
1419
|
-
}
|
|
1420
|
-
return __expectString(entry);
|
|
1081
|
+
return take(output, {
|
|
1082
|
+
applicationId: __expectString,
|
|
1083
|
+
arn: __expectString,
|
|
1084
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1085
|
+
createdBy: __expectString,
|
|
1086
|
+
executionRole: __expectString,
|
|
1087
|
+
id: __expectString,
|
|
1088
|
+
name: __expectString,
|
|
1089
|
+
releaseLabel: __expectString,
|
|
1090
|
+
state: __expectString,
|
|
1091
|
+
stateDetails: __expectString,
|
|
1092
|
+
type: __expectString,
|
|
1093
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1421
1094
|
});
|
|
1422
|
-
return retVal;
|
|
1423
1095
|
};
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
acc[key] = __expectString(value);
|
|
1430
|
-
return acc;
|
|
1431
|
-
}, {});
|
|
1432
|
-
};
|
|
1433
|
-
const de_SparkSubmit = (output, context) => {
|
|
1434
|
-
return {
|
|
1435
|
-
entryPoint: __expectString(output.entryPoint),
|
|
1436
|
-
entryPointArguments: output.entryPointArguments != null ? de_EntryPointArguments(output.entryPointArguments, context) : undefined,
|
|
1437
|
-
sparkSubmitParameters: __expectString(output.sparkSubmitParameters),
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
const de_SubnetIds = (output, context) => {
|
|
1441
|
-
const retVal = (output || [])
|
|
1442
|
-
.filter((e) => e != null)
|
|
1443
|
-
.map((entry) => {
|
|
1444
|
-
if (entry === null) {
|
|
1445
|
-
return null;
|
|
1446
|
-
}
|
|
1447
|
-
return __expectString(entry);
|
|
1096
|
+
const de_ResourceUtilization = (output, context) => {
|
|
1097
|
+
return take(output, {
|
|
1098
|
+
memoryGBHour: __limitedParseDouble,
|
|
1099
|
+
storageGBHour: __limitedParseDouble,
|
|
1100
|
+
vCPUHour: __limitedParseDouble,
|
|
1448
1101
|
});
|
|
1449
|
-
return retVal;
|
|
1450
|
-
};
|
|
1451
|
-
const de_TagMap = (output, context) => {
|
|
1452
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1453
|
-
if (value === null) {
|
|
1454
|
-
return acc;
|
|
1455
|
-
}
|
|
1456
|
-
acc[key] = __expectString(value);
|
|
1457
|
-
return acc;
|
|
1458
|
-
}, {});
|
|
1459
1102
|
};
|
|
1460
1103
|
const de_TotalResourceUtilization = (output, context) => {
|
|
1461
|
-
return {
|
|
1462
|
-
memoryGBHour: __limitedParseDouble
|
|
1463
|
-
storageGBHour: __limitedParseDouble
|
|
1464
|
-
vCPUHour: __limitedParseDouble
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
const de_WorkerResourceConfig = (output, context) => {
|
|
1468
|
-
return {
|
|
1469
|
-
cpu: __expectString(output.cpu),
|
|
1470
|
-
disk: __expectString(output.disk),
|
|
1471
|
-
memory: __expectString(output.memory),
|
|
1472
|
-
};
|
|
1473
|
-
};
|
|
1474
|
-
const de_WorkerTypeSpecification = (output, context) => {
|
|
1475
|
-
return {
|
|
1476
|
-
imageConfiguration: output.imageConfiguration != null ? de_ImageConfiguration(output.imageConfiguration, context) : undefined,
|
|
1477
|
-
};
|
|
1478
|
-
};
|
|
1479
|
-
const de_WorkerTypeSpecificationMap = (output, context) => {
|
|
1480
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1481
|
-
if (value === null) {
|
|
1482
|
-
return acc;
|
|
1483
|
-
}
|
|
1484
|
-
acc[key] = de_WorkerTypeSpecification(value, context);
|
|
1485
|
-
return acc;
|
|
1486
|
-
}, {});
|
|
1104
|
+
return take(output, {
|
|
1105
|
+
memoryGBHour: __limitedParseDouble,
|
|
1106
|
+
storageGBHour: __limitedParseDouble,
|
|
1107
|
+
vCPUHour: __limitedParseDouble,
|
|
1108
|
+
});
|
|
1487
1109
|
};
|
|
1488
1110
|
const deserializeMetadata = (output) => ({
|
|
1489
1111
|
httpStatusCode: output.statusCode,
|