@aws-sdk/client-mwaa 3.312.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 +172 -360
- package/dist-es/protocols/Aws_restJson1.js +156 -344
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { MWAAServiceException as __BaseException } from "../models/MWAAServiceException";
|
|
5
5
|
export const se_CreateCliTokenCommand = async (input, context) => {
|
|
@@ -33,41 +33,29 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
33
33
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
34
34
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
35
35
|
let body;
|
|
36
|
-
body = JSON.stringify({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
...(input.Schedulers != null && { Schedulers: input.Schedulers }),
|
|
60
|
-
...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
|
|
61
|
-
...(input.StartupScriptS3ObjectVersion != null && {
|
|
62
|
-
StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
|
|
63
|
-
}),
|
|
64
|
-
...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
|
|
65
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
66
|
-
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
67
|
-
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
68
|
-
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
69
|
-
}),
|
|
70
|
-
});
|
|
36
|
+
body = JSON.stringify(take(input, {
|
|
37
|
+
AirflowConfigurationOptions: (_) => _json(_),
|
|
38
|
+
AirflowVersion: [],
|
|
39
|
+
DagS3Path: [],
|
|
40
|
+
EnvironmentClass: [],
|
|
41
|
+
ExecutionRoleArn: [],
|
|
42
|
+
KmsKey: [],
|
|
43
|
+
LoggingConfiguration: (_) => _json(_),
|
|
44
|
+
MaxWorkers: [],
|
|
45
|
+
MinWorkers: [],
|
|
46
|
+
NetworkConfiguration: (_) => _json(_),
|
|
47
|
+
PluginsS3ObjectVersion: [],
|
|
48
|
+
PluginsS3Path: [],
|
|
49
|
+
RequirementsS3ObjectVersion: [],
|
|
50
|
+
RequirementsS3Path: [],
|
|
51
|
+
Schedulers: [],
|
|
52
|
+
SourceBucketArn: [],
|
|
53
|
+
StartupScriptS3ObjectVersion: [],
|
|
54
|
+
StartupScriptS3Path: [],
|
|
55
|
+
Tags: (_) => _json(_),
|
|
56
|
+
WebserverAccessMode: [],
|
|
57
|
+
WeeklyMaintenanceWindowStart: [],
|
|
58
|
+
}));
|
|
71
59
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
72
60
|
if (context.disableHostPrefix !== true) {
|
|
73
61
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -212,9 +200,9 @@ export const se_PublishMetricsCommand = async (input, context) => {
|
|
|
212
200
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/environments/{EnvironmentName}";
|
|
213
201
|
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
|
|
214
202
|
let body;
|
|
215
|
-
body = JSON.stringify({
|
|
216
|
-
|
|
217
|
-
});
|
|
203
|
+
body = JSON.stringify(take(input, {
|
|
204
|
+
MetricData: (_) => se_MetricData(_, context),
|
|
205
|
+
}));
|
|
218
206
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
219
207
|
if (context.disableHostPrefix !== true) {
|
|
220
208
|
resolvedHostname = "ops." + resolvedHostname;
|
|
@@ -240,9 +228,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
240
228
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
241
229
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
242
230
|
let body;
|
|
243
|
-
body = JSON.stringify({
|
|
244
|
-
|
|
245
|
-
});
|
|
231
|
+
body = JSON.stringify(take(input, {
|
|
232
|
+
Tags: (_) => _json(_),
|
|
233
|
+
}));
|
|
246
234
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
247
235
|
if (context.disableHostPrefix !== true) {
|
|
248
236
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -298,39 +286,27 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
298
286
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
299
287
|
resolvedPath = __resolvedPath(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
300
288
|
let body;
|
|
301
|
-
body = JSON.stringify({
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
|
|
323
|
-
...(input.Schedulers != null && { Schedulers: input.Schedulers }),
|
|
324
|
-
...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
|
|
325
|
-
...(input.StartupScriptS3ObjectVersion != null && {
|
|
326
|
-
StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
|
|
327
|
-
}),
|
|
328
|
-
...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
|
|
329
|
-
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
330
|
-
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
331
|
-
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
332
|
-
}),
|
|
333
|
-
});
|
|
289
|
+
body = JSON.stringify(take(input, {
|
|
290
|
+
AirflowConfigurationOptions: (_) => _json(_),
|
|
291
|
+
AirflowVersion: [],
|
|
292
|
+
DagS3Path: [],
|
|
293
|
+
EnvironmentClass: [],
|
|
294
|
+
ExecutionRoleArn: [],
|
|
295
|
+
LoggingConfiguration: (_) => _json(_),
|
|
296
|
+
MaxWorkers: [],
|
|
297
|
+
MinWorkers: [],
|
|
298
|
+
NetworkConfiguration: (_) => _json(_),
|
|
299
|
+
PluginsS3ObjectVersion: [],
|
|
300
|
+
PluginsS3Path: [],
|
|
301
|
+
RequirementsS3ObjectVersion: [],
|
|
302
|
+
RequirementsS3Path: [],
|
|
303
|
+
Schedulers: [],
|
|
304
|
+
SourceBucketArn: [],
|
|
305
|
+
StartupScriptS3ObjectVersion: [],
|
|
306
|
+
StartupScriptS3Path: [],
|
|
307
|
+
WebserverAccessMode: [],
|
|
308
|
+
WeeklyMaintenanceWindowStart: [],
|
|
309
|
+
}));
|
|
334
310
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
335
311
|
if (context.disableHostPrefix !== true) {
|
|
336
312
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -356,12 +332,11 @@ export const de_CreateCliTokenCommand = async (output, context) => {
|
|
|
356
332
|
$metadata: deserializeMetadata(output),
|
|
357
333
|
});
|
|
358
334
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
335
|
+
const doc = take(data, {
|
|
336
|
+
CliToken: __expectString,
|
|
337
|
+
WebServerHostname: __expectString,
|
|
338
|
+
});
|
|
339
|
+
Object.assign(contents, doc);
|
|
365
340
|
return contents;
|
|
366
341
|
};
|
|
367
342
|
const de_CreateCliTokenCommandError = async (output, context) => {
|
|
@@ -376,10 +351,9 @@ const de_CreateCliTokenCommandError = async (output, context) => {
|
|
|
376
351
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
377
352
|
default:
|
|
378
353
|
const parsedBody = parsedOutput.body;
|
|
379
|
-
throwDefaultError({
|
|
354
|
+
return throwDefaultError({
|
|
380
355
|
output,
|
|
381
356
|
parsedBody,
|
|
382
|
-
exceptionCtor: __BaseException,
|
|
383
357
|
errorCode,
|
|
384
358
|
});
|
|
385
359
|
}
|
|
@@ -392,9 +366,10 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
392
366
|
$metadata: deserializeMetadata(output),
|
|
393
367
|
});
|
|
394
368
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
369
|
+
const doc = take(data, {
|
|
370
|
+
Arn: __expectString,
|
|
371
|
+
});
|
|
372
|
+
Object.assign(contents, doc);
|
|
398
373
|
return contents;
|
|
399
374
|
};
|
|
400
375
|
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
@@ -412,10 +387,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
412
387
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
388
|
default:
|
|
414
389
|
const parsedBody = parsedOutput.body;
|
|
415
|
-
throwDefaultError({
|
|
390
|
+
return throwDefaultError({
|
|
416
391
|
output,
|
|
417
392
|
parsedBody,
|
|
418
|
-
exceptionCtor: __BaseException,
|
|
419
393
|
errorCode,
|
|
420
394
|
});
|
|
421
395
|
}
|
|
@@ -428,12 +402,11 @@ export const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
|
428
402
|
$metadata: deserializeMetadata(output),
|
|
429
403
|
});
|
|
430
404
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
405
|
+
const doc = take(data, {
|
|
406
|
+
WebServerHostname: __expectString,
|
|
407
|
+
WebToken: __expectString,
|
|
408
|
+
});
|
|
409
|
+
Object.assign(contents, doc);
|
|
437
410
|
return contents;
|
|
438
411
|
};
|
|
439
412
|
const de_CreateWebLoginTokenCommandError = async (output, context) => {
|
|
@@ -457,10 +430,9 @@ const de_CreateWebLoginTokenCommandError = async (output, context) => {
|
|
|
457
430
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
431
|
default:
|
|
459
432
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
throwDefaultError({
|
|
433
|
+
return throwDefaultError({
|
|
461
434
|
output,
|
|
462
435
|
parsedBody,
|
|
463
|
-
exceptionCtor: __BaseException,
|
|
464
436
|
errorCode,
|
|
465
437
|
});
|
|
466
438
|
}
|
|
@@ -493,10 +465,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
493
465
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
494
466
|
default:
|
|
495
467
|
const parsedBody = parsedOutput.body;
|
|
496
|
-
throwDefaultError({
|
|
468
|
+
return throwDefaultError({
|
|
497
469
|
output,
|
|
498
470
|
parsedBody,
|
|
499
|
-
exceptionCtor: __BaseException,
|
|
500
471
|
errorCode,
|
|
501
472
|
});
|
|
502
473
|
}
|
|
@@ -509,9 +480,10 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
509
480
|
$metadata: deserializeMetadata(output),
|
|
510
481
|
});
|
|
511
482
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}
|
|
483
|
+
const doc = take(data, {
|
|
484
|
+
Environment: (_) => de_Environment(_, context),
|
|
485
|
+
});
|
|
486
|
+
Object.assign(contents, doc);
|
|
515
487
|
return contents;
|
|
516
488
|
};
|
|
517
489
|
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
@@ -532,10 +504,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
532
504
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
505
|
default:
|
|
534
506
|
const parsedBody = parsedOutput.body;
|
|
535
|
-
throwDefaultError({
|
|
507
|
+
return throwDefaultError({
|
|
536
508
|
output,
|
|
537
509
|
parsedBody,
|
|
538
|
-
exceptionCtor: __BaseException,
|
|
539
510
|
errorCode,
|
|
540
511
|
});
|
|
541
512
|
}
|
|
@@ -548,12 +519,11 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
548
519
|
$metadata: deserializeMetadata(output),
|
|
549
520
|
});
|
|
550
521
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}
|
|
522
|
+
const doc = take(data, {
|
|
523
|
+
Environments: _json,
|
|
524
|
+
NextToken: __expectString,
|
|
525
|
+
});
|
|
526
|
+
Object.assign(contents, doc);
|
|
557
527
|
return contents;
|
|
558
528
|
};
|
|
559
529
|
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
@@ -571,10 +541,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
571
541
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
542
|
default:
|
|
573
543
|
const parsedBody = parsedOutput.body;
|
|
574
|
-
throwDefaultError({
|
|
544
|
+
return throwDefaultError({
|
|
575
545
|
output,
|
|
576
546
|
parsedBody,
|
|
577
|
-
exceptionCtor: __BaseException,
|
|
578
547
|
errorCode,
|
|
579
548
|
});
|
|
580
549
|
}
|
|
@@ -587,9 +556,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
587
556
|
$metadata: deserializeMetadata(output),
|
|
588
557
|
});
|
|
589
558
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
}
|
|
559
|
+
const doc = take(data, {
|
|
560
|
+
Tags: _json,
|
|
561
|
+
});
|
|
562
|
+
Object.assign(contents, doc);
|
|
593
563
|
return contents;
|
|
594
564
|
};
|
|
595
565
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -610,10 +580,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
610
580
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
611
581
|
default:
|
|
612
582
|
const parsedBody = parsedOutput.body;
|
|
613
|
-
throwDefaultError({
|
|
583
|
+
return throwDefaultError({
|
|
614
584
|
output,
|
|
615
585
|
parsedBody,
|
|
616
|
-
exceptionCtor: __BaseException,
|
|
617
586
|
errorCode,
|
|
618
587
|
});
|
|
619
588
|
}
|
|
@@ -643,10 +612,9 @@ const de_PublishMetricsCommandError = async (output, context) => {
|
|
|
643
612
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
613
|
default:
|
|
645
614
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
throwDefaultError({
|
|
615
|
+
return throwDefaultError({
|
|
647
616
|
output,
|
|
648
617
|
parsedBody,
|
|
649
|
-
exceptionCtor: __BaseException,
|
|
650
618
|
errorCode,
|
|
651
619
|
});
|
|
652
620
|
}
|
|
@@ -679,10 +647,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
679
647
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
648
|
default:
|
|
681
649
|
const parsedBody = parsedOutput.body;
|
|
682
|
-
throwDefaultError({
|
|
650
|
+
return throwDefaultError({
|
|
683
651
|
output,
|
|
684
652
|
parsedBody,
|
|
685
|
-
exceptionCtor: __BaseException,
|
|
686
653
|
errorCode,
|
|
687
654
|
});
|
|
688
655
|
}
|
|
@@ -715,10 +682,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
715
682
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
716
683
|
default:
|
|
717
684
|
const parsedBody = parsedOutput.body;
|
|
718
|
-
throwDefaultError({
|
|
685
|
+
return throwDefaultError({
|
|
719
686
|
output,
|
|
720
687
|
parsedBody,
|
|
721
|
-
exceptionCtor: __BaseException,
|
|
722
688
|
errorCode,
|
|
723
689
|
});
|
|
724
690
|
}
|
|
@@ -731,9 +697,10 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
731
697
|
$metadata: deserializeMetadata(output),
|
|
732
698
|
});
|
|
733
699
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}
|
|
700
|
+
const doc = take(data, {
|
|
701
|
+
Arn: __expectString,
|
|
702
|
+
});
|
|
703
|
+
Object.assign(contents, doc);
|
|
737
704
|
return contents;
|
|
738
705
|
};
|
|
739
706
|
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
@@ -754,21 +721,21 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
|
754
721
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
722
|
default:
|
|
756
723
|
const parsedBody = parsedOutput.body;
|
|
757
|
-
throwDefaultError({
|
|
724
|
+
return throwDefaultError({
|
|
758
725
|
output,
|
|
759
726
|
parsedBody,
|
|
760
|
-
exceptionCtor: __BaseException,
|
|
761
727
|
errorCode,
|
|
762
728
|
});
|
|
763
729
|
}
|
|
764
730
|
};
|
|
765
|
-
const
|
|
731
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
766
732
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
767
733
|
const contents = map({});
|
|
768
734
|
const data = parsedOutput.body;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
735
|
+
const doc = take(data, {
|
|
736
|
+
Message: __expectString,
|
|
737
|
+
});
|
|
738
|
+
Object.assign(contents, doc);
|
|
772
739
|
const exception = new AccessDeniedException({
|
|
773
740
|
$metadata: deserializeMetadata(parsedOutput),
|
|
774
741
|
...contents,
|
|
@@ -778,9 +745,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
778
745
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
779
746
|
const contents = map({});
|
|
780
747
|
const data = parsedOutput.body;
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
}
|
|
748
|
+
const doc = take(data, {
|
|
749
|
+
message: __expectString,
|
|
750
|
+
});
|
|
751
|
+
Object.assign(contents, doc);
|
|
784
752
|
const exception = new InternalServerException({
|
|
785
753
|
$metadata: deserializeMetadata(parsedOutput),
|
|
786
754
|
...contents,
|
|
@@ -790,9 +758,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
790
758
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
791
759
|
const contents = map({});
|
|
792
760
|
const data = parsedOutput.body;
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}
|
|
761
|
+
const doc = take(data, {
|
|
762
|
+
message: __expectString,
|
|
763
|
+
});
|
|
764
|
+
Object.assign(contents, doc);
|
|
796
765
|
const exception = new ResourceNotFoundException({
|
|
797
766
|
$metadata: deserializeMetadata(parsedOutput),
|
|
798
767
|
...contents,
|
|
@@ -802,52 +771,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
802
771
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
803
772
|
const contents = map({});
|
|
804
773
|
const data = parsedOutput.body;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
774
|
+
const doc = take(data, {
|
|
775
|
+
message: __expectString,
|
|
776
|
+
});
|
|
777
|
+
Object.assign(contents, doc);
|
|
808
778
|
const exception = new ValidationException({
|
|
809
779
|
$metadata: deserializeMetadata(parsedOutput),
|
|
810
780
|
...contents,
|
|
811
781
|
});
|
|
812
782
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
813
783
|
};
|
|
814
|
-
const se_AirflowConfigurationOptions = (input, context) => {
|
|
815
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
816
|
-
if (value === null) {
|
|
817
|
-
return acc;
|
|
818
|
-
}
|
|
819
|
-
acc[key] = value;
|
|
820
|
-
return acc;
|
|
821
|
-
}, {});
|
|
822
|
-
};
|
|
823
|
-
const se_Dimension = (input, context) => {
|
|
824
|
-
return {
|
|
825
|
-
...(input.Name != null && { Name: input.Name }),
|
|
826
|
-
...(input.Value != null && { Value: input.Value }),
|
|
827
|
-
};
|
|
828
|
-
};
|
|
829
|
-
const se_Dimensions = (input, context) => {
|
|
830
|
-
return input
|
|
831
|
-
.filter((e) => e != null)
|
|
832
|
-
.map((entry) => {
|
|
833
|
-
return se_Dimension(entry, context);
|
|
834
|
-
});
|
|
835
|
-
};
|
|
836
|
-
const se_LoggingConfigurationInput = (input, context) => {
|
|
837
|
-
return {
|
|
838
|
-
...(input.DagProcessingLogs != null && {
|
|
839
|
-
DagProcessingLogs: se_ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
840
|
-
}),
|
|
841
|
-
...(input.SchedulerLogs != null && {
|
|
842
|
-
SchedulerLogs: se_ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
843
|
-
}),
|
|
844
|
-
...(input.TaskLogs != null && { TaskLogs: se_ModuleLoggingConfigurationInput(input.TaskLogs, context) }),
|
|
845
|
-
...(input.WebserverLogs != null && {
|
|
846
|
-
WebserverLogs: se_ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
847
|
-
}),
|
|
848
|
-
...(input.WorkerLogs != null && { WorkerLogs: se_ModuleLoggingConfigurationInput(input.WorkerLogs, context) }),
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
784
|
const se_MetricData = (input, context) => {
|
|
852
785
|
return input
|
|
853
786
|
.filter((e) => e != null)
|
|
@@ -856,183 +789,62 @@ const se_MetricData = (input, context) => {
|
|
|
856
789
|
});
|
|
857
790
|
};
|
|
858
791
|
const se_MetricDatum = (input, context) => {
|
|
859
|
-
return {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
};
|
|
867
|
-
};
|
|
868
|
-
const se_ModuleLoggingConfigurationInput = (input, context) => {
|
|
869
|
-
return {
|
|
870
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
871
|
-
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
872
|
-
};
|
|
873
|
-
};
|
|
874
|
-
const se_NetworkConfiguration = (input, context) => {
|
|
875
|
-
return {
|
|
876
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
877
|
-
...(input.SubnetIds != null && { SubnetIds: se_SubnetList(input.SubnetIds, context) }),
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
const se_SecurityGroupList = (input, context) => {
|
|
881
|
-
return input
|
|
882
|
-
.filter((e) => e != null)
|
|
883
|
-
.map((entry) => {
|
|
884
|
-
return entry;
|
|
792
|
+
return take(input, {
|
|
793
|
+
Dimensions: _json,
|
|
794
|
+
MetricName: [],
|
|
795
|
+
StatisticValues: (_) => se_StatisticSet(_, context),
|
|
796
|
+
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
797
|
+
Unit: [],
|
|
798
|
+
Value: __serializeFloat,
|
|
885
799
|
});
|
|
886
800
|
};
|
|
887
801
|
const se_StatisticSet = (input, context) => {
|
|
888
|
-
return {
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
const se_SubnetList = (input, context) => {
|
|
896
|
-
return input
|
|
897
|
-
.filter((e) => e != null)
|
|
898
|
-
.map((entry) => {
|
|
899
|
-
return entry;
|
|
802
|
+
return take(input, {
|
|
803
|
+
Maximum: __serializeFloat,
|
|
804
|
+
Minimum: __serializeFloat,
|
|
805
|
+
SampleCount: [],
|
|
806
|
+
Sum: __serializeFloat,
|
|
900
807
|
});
|
|
901
808
|
};
|
|
902
|
-
const se_TagMap = (input, context) => {
|
|
903
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
904
|
-
if (value === null) {
|
|
905
|
-
return acc;
|
|
906
|
-
}
|
|
907
|
-
acc[key] = value;
|
|
908
|
-
return acc;
|
|
909
|
-
}, {});
|
|
910
|
-
};
|
|
911
|
-
const se_UpdateNetworkConfigurationInput = (input, context) => {
|
|
912
|
-
return {
|
|
913
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
914
|
-
};
|
|
915
|
-
};
|
|
916
|
-
const de_AirflowConfigurationOptions = (output, context) => {
|
|
917
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
918
|
-
if (value === null) {
|
|
919
|
-
return acc;
|
|
920
|
-
}
|
|
921
|
-
acc[key] = __expectString(value);
|
|
922
|
-
return acc;
|
|
923
|
-
}, {});
|
|
924
|
-
};
|
|
925
809
|
const de_Environment = (output, context) => {
|
|
926
|
-
return {
|
|
927
|
-
AirflowConfigurationOptions:
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
WebserverUrl: __expectString(output.WebserverUrl),
|
|
956
|
-
WeeklyMaintenanceWindowStart: __expectString(output.WeeklyMaintenanceWindowStart),
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
const de_EnvironmentList = (output, context) => {
|
|
960
|
-
const retVal = (output || [])
|
|
961
|
-
.filter((e) => e != null)
|
|
962
|
-
.map((entry) => {
|
|
963
|
-
if (entry === null) {
|
|
964
|
-
return null;
|
|
965
|
-
}
|
|
966
|
-
return __expectString(entry);
|
|
810
|
+
return take(output, {
|
|
811
|
+
AirflowConfigurationOptions: _json,
|
|
812
|
+
AirflowVersion: __expectString,
|
|
813
|
+
Arn: __expectString,
|
|
814
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
815
|
+
DagS3Path: __expectString,
|
|
816
|
+
EnvironmentClass: __expectString,
|
|
817
|
+
ExecutionRoleArn: __expectString,
|
|
818
|
+
KmsKey: __expectString,
|
|
819
|
+
LastUpdate: (_) => de_LastUpdate(_, context),
|
|
820
|
+
LoggingConfiguration: _json,
|
|
821
|
+
MaxWorkers: __expectInt32,
|
|
822
|
+
MinWorkers: __expectInt32,
|
|
823
|
+
Name: __expectString,
|
|
824
|
+
NetworkConfiguration: _json,
|
|
825
|
+
PluginsS3ObjectVersion: __expectString,
|
|
826
|
+
PluginsS3Path: __expectString,
|
|
827
|
+
RequirementsS3ObjectVersion: __expectString,
|
|
828
|
+
RequirementsS3Path: __expectString,
|
|
829
|
+
Schedulers: __expectInt32,
|
|
830
|
+
ServiceRoleArn: __expectString,
|
|
831
|
+
SourceBucketArn: __expectString,
|
|
832
|
+
StartupScriptS3ObjectVersion: __expectString,
|
|
833
|
+
StartupScriptS3Path: __expectString,
|
|
834
|
+
Status: __expectString,
|
|
835
|
+
Tags: _json,
|
|
836
|
+
WebserverAccessMode: __expectString,
|
|
837
|
+
WebserverUrl: __expectString,
|
|
838
|
+
WeeklyMaintenanceWindowStart: __expectString,
|
|
967
839
|
});
|
|
968
|
-
return retVal;
|
|
969
840
|
};
|
|
970
841
|
const de_LastUpdate = (output, context) => {
|
|
971
|
-
return {
|
|
972
|
-
CreatedAt:
|
|
973
|
-
Error:
|
|
974
|
-
Source: __expectString
|
|
975
|
-
Status: __expectString
|
|
976
|
-
};
|
|
977
|
-
};
|
|
978
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
979
|
-
return {
|
|
980
|
-
DagProcessingLogs: output.DagProcessingLogs != null ? de_ModuleLoggingConfiguration(output.DagProcessingLogs, context) : undefined,
|
|
981
|
-
SchedulerLogs: output.SchedulerLogs != null ? de_ModuleLoggingConfiguration(output.SchedulerLogs, context) : undefined,
|
|
982
|
-
TaskLogs: output.TaskLogs != null ? de_ModuleLoggingConfiguration(output.TaskLogs, context) : undefined,
|
|
983
|
-
WebserverLogs: output.WebserverLogs != null ? de_ModuleLoggingConfiguration(output.WebserverLogs, context) : undefined,
|
|
984
|
-
WorkerLogs: output.WorkerLogs != null ? de_ModuleLoggingConfiguration(output.WorkerLogs, context) : undefined,
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
const de_ModuleLoggingConfiguration = (output, context) => {
|
|
988
|
-
return {
|
|
989
|
-
CloudWatchLogGroupArn: __expectString(output.CloudWatchLogGroupArn),
|
|
990
|
-
Enabled: __expectBoolean(output.Enabled),
|
|
991
|
-
LogLevel: __expectString(output.LogLevel),
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
const de_NetworkConfiguration = (output, context) => {
|
|
995
|
-
return {
|
|
996
|
-
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupList(output.SecurityGroupIds, context) : undefined,
|
|
997
|
-
SubnetIds: output.SubnetIds != null ? de_SubnetList(output.SubnetIds, context) : undefined,
|
|
998
|
-
};
|
|
999
|
-
};
|
|
1000
|
-
const de_SecurityGroupList = (output, context) => {
|
|
1001
|
-
const retVal = (output || [])
|
|
1002
|
-
.filter((e) => e != null)
|
|
1003
|
-
.map((entry) => {
|
|
1004
|
-
if (entry === null) {
|
|
1005
|
-
return null;
|
|
1006
|
-
}
|
|
1007
|
-
return __expectString(entry);
|
|
1008
|
-
});
|
|
1009
|
-
return retVal;
|
|
1010
|
-
};
|
|
1011
|
-
const de_SubnetList = (output, context) => {
|
|
1012
|
-
const retVal = (output || [])
|
|
1013
|
-
.filter((e) => e != null)
|
|
1014
|
-
.map((entry) => {
|
|
1015
|
-
if (entry === null) {
|
|
1016
|
-
return null;
|
|
1017
|
-
}
|
|
1018
|
-
return __expectString(entry);
|
|
842
|
+
return take(output, {
|
|
843
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
844
|
+
Error: _json,
|
|
845
|
+
Source: __expectString,
|
|
846
|
+
Status: __expectString,
|
|
1019
847
|
});
|
|
1020
|
-
return retVal;
|
|
1021
|
-
};
|
|
1022
|
-
const de_TagMap = (output, context) => {
|
|
1023
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1024
|
-
if (value === null) {
|
|
1025
|
-
return acc;
|
|
1026
|
-
}
|
|
1027
|
-
acc[key] = __expectString(value);
|
|
1028
|
-
return acc;
|
|
1029
|
-
}, {});
|
|
1030
|
-
};
|
|
1031
|
-
const de_UpdateError = (output, context) => {
|
|
1032
|
-
return {
|
|
1033
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1034
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1035
|
-
};
|
|
1036
848
|
};
|
|
1037
849
|
const deserializeMetadata = (output) => ({
|
|
1038
850
|
httpStatusCode: output.statusCode,
|