@aws-sdk/client-mwaa 3.118.1 → 3.128.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/CHANGELOG.md +28 -0
- package/README.md +0 -2
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +134 -168
- package/dist-es/models/models_0.js +2 -2
- package/dist-es/protocols/Aws_restJson1.js +97 -131
- package/dist-types/MWAA.d.ts +0 -2
- package/dist-types/MWAAClient.d.ts +0 -2
- package/dist-types/models/models_0.d.ts +8 -5
- package/package.json +26 -26
|
@@ -56,43 +56,33 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
56
56
|
}
|
|
57
57
|
let body;
|
|
58
58
|
body = JSON.stringify({
|
|
59
|
-
...(input.AirflowConfigurationOptions
|
|
60
|
-
input.AirflowConfigurationOptions !== null && {
|
|
59
|
+
...(input.AirflowConfigurationOptions != null && {
|
|
61
60
|
AirflowConfigurationOptions: serializeAws_restJson1AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
62
61
|
}),
|
|
63
|
-
...(input.AirflowVersion
|
|
64
|
-
|
|
65
|
-
...(input.
|
|
66
|
-
...(input.
|
|
67
|
-
|
|
68
|
-
...(input.
|
|
69
|
-
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
70
|
-
...(input.KmsKey !== undefined && input.KmsKey !== null && { KmsKey: input.KmsKey }),
|
|
71
|
-
...(input.LoggingConfiguration !== undefined &&
|
|
72
|
-
input.LoggingConfiguration !== null && {
|
|
62
|
+
...(input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion }),
|
|
63
|
+
...(input.DagS3Path != null && { DagS3Path: input.DagS3Path }),
|
|
64
|
+
...(input.EnvironmentClass != null && { EnvironmentClass: input.EnvironmentClass }),
|
|
65
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
66
|
+
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
67
|
+
...(input.LoggingConfiguration != null && {
|
|
73
68
|
LoggingConfiguration: serializeAws_restJson1LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
74
69
|
}),
|
|
75
|
-
...(input.MaxWorkers
|
|
76
|
-
...(input.MinWorkers
|
|
77
|
-
...(input.NetworkConfiguration
|
|
78
|
-
input.NetworkConfiguration !== null && {
|
|
70
|
+
...(input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers }),
|
|
71
|
+
...(input.MinWorkers != null && { MinWorkers: input.MinWorkers }),
|
|
72
|
+
...(input.NetworkConfiguration != null && {
|
|
79
73
|
NetworkConfiguration: serializeAws_restJson1NetworkConfiguration(input.NetworkConfiguration, context),
|
|
80
74
|
}),
|
|
81
|
-
...(input.PluginsS3ObjectVersion
|
|
82
|
-
|
|
83
|
-
...(input.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
...(input.RequirementsS3Path
|
|
87
|
-
|
|
88
|
-
...(input.
|
|
89
|
-
...(input.
|
|
90
|
-
|
|
91
|
-
...(input.
|
|
92
|
-
...(input.WebserverAccessMode !== undefined &&
|
|
93
|
-
input.WebserverAccessMode !== null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
94
|
-
...(input.WeeklyMaintenanceWindowStart !== undefined &&
|
|
95
|
-
input.WeeklyMaintenanceWindowStart !== null && {
|
|
75
|
+
...(input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion }),
|
|
76
|
+
...(input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path }),
|
|
77
|
+
...(input.RequirementsS3ObjectVersion != null && {
|
|
78
|
+
RequirementsS3ObjectVersion: input.RequirementsS3ObjectVersion,
|
|
79
|
+
}),
|
|
80
|
+
...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
|
|
81
|
+
...(input.Schedulers != null && { Schedulers: input.Schedulers }),
|
|
82
|
+
...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
|
|
83
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
84
|
+
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
85
|
+
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
96
86
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
97
87
|
}),
|
|
98
88
|
});
|
|
@@ -292,8 +282,7 @@ const serializeAws_restJson1PublishMetricsCommand = async (input, context) => {
|
|
|
292
282
|
}
|
|
293
283
|
let body;
|
|
294
284
|
body = JSON.stringify({
|
|
295
|
-
...(input.MetricData
|
|
296
|
-
input.MetricData !== null && { MetricData: serializeAws_restJson1MetricData(input.MetricData, context) }),
|
|
285
|
+
...(input.MetricData != null && { MetricData: serializeAws_restJson1MetricData(input.MetricData, context) }),
|
|
297
286
|
});
|
|
298
287
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
299
288
|
if (context.disableHostPrefix !== true) {
|
|
@@ -331,7 +320,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
331
320
|
}
|
|
332
321
|
let body;
|
|
333
322
|
body = JSON.stringify({
|
|
334
|
-
...(input.Tags
|
|
323
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
335
324
|
});
|
|
336
325
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
337
326
|
if (context.disableHostPrefix !== true) {
|
|
@@ -406,41 +395,31 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
406
395
|
}
|
|
407
396
|
let body;
|
|
408
397
|
body = JSON.stringify({
|
|
409
|
-
...(input.AirflowConfigurationOptions
|
|
410
|
-
input.AirflowConfigurationOptions !== null && {
|
|
398
|
+
...(input.AirflowConfigurationOptions != null && {
|
|
411
399
|
AirflowConfigurationOptions: serializeAws_restJson1AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
412
400
|
}),
|
|
413
|
-
...(input.AirflowVersion
|
|
414
|
-
|
|
415
|
-
...(input.
|
|
416
|
-
...(input.
|
|
417
|
-
|
|
418
|
-
...(input.ExecutionRoleArn !== undefined &&
|
|
419
|
-
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
420
|
-
...(input.LoggingConfiguration !== undefined &&
|
|
421
|
-
input.LoggingConfiguration !== null && {
|
|
401
|
+
...(input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion }),
|
|
402
|
+
...(input.DagS3Path != null && { DagS3Path: input.DagS3Path }),
|
|
403
|
+
...(input.EnvironmentClass != null && { EnvironmentClass: input.EnvironmentClass }),
|
|
404
|
+
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
405
|
+
...(input.LoggingConfiguration != null && {
|
|
422
406
|
LoggingConfiguration: serializeAws_restJson1LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
423
407
|
}),
|
|
424
|
-
...(input.MaxWorkers
|
|
425
|
-
...(input.MinWorkers
|
|
426
|
-
...(input.NetworkConfiguration
|
|
427
|
-
input.NetworkConfiguration !== null && {
|
|
408
|
+
...(input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers }),
|
|
409
|
+
...(input.MinWorkers != null && { MinWorkers: input.MinWorkers }),
|
|
410
|
+
...(input.NetworkConfiguration != null && {
|
|
428
411
|
NetworkConfiguration: serializeAws_restJson1UpdateNetworkConfigurationInput(input.NetworkConfiguration, context),
|
|
429
412
|
}),
|
|
430
|
-
...(input.PluginsS3ObjectVersion
|
|
431
|
-
|
|
432
|
-
...(input.
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
...(input.RequirementsS3Path
|
|
436
|
-
|
|
437
|
-
...(input.
|
|
438
|
-
...(input.
|
|
439
|
-
|
|
440
|
-
...(input.WebserverAccessMode !== undefined &&
|
|
441
|
-
input.WebserverAccessMode !== null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
442
|
-
...(input.WeeklyMaintenanceWindowStart !== undefined &&
|
|
443
|
-
input.WeeklyMaintenanceWindowStart !== null && {
|
|
413
|
+
...(input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion }),
|
|
414
|
+
...(input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path }),
|
|
415
|
+
...(input.RequirementsS3ObjectVersion != null && {
|
|
416
|
+
RequirementsS3ObjectVersion: input.RequirementsS3ObjectVersion,
|
|
417
|
+
}),
|
|
418
|
+
...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
|
|
419
|
+
...(input.Schedulers != null && { Schedulers: input.Schedulers }),
|
|
420
|
+
...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
|
|
421
|
+
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
422
|
+
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
444
423
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
445
424
|
}),
|
|
446
425
|
});
|
|
@@ -487,18 +466,19 @@ const deserializeAws_restJson1CreateCliTokenCommandError = async (output, contex
|
|
|
487
466
|
body: await parseBody(output.body, context),
|
|
488
467
|
};
|
|
489
468
|
let response;
|
|
490
|
-
|
|
491
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
492
470
|
switch (errorCode) {
|
|
493
471
|
case "ResourceNotFoundException":
|
|
494
472
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
495
473
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
496
474
|
default:
|
|
497
475
|
const parsedBody = parsedOutput.body;
|
|
476
|
+
const $metadata = deserializeMetadata(output);
|
|
477
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
498
478
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
499
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
479
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
500
480
|
$fault: "client",
|
|
501
|
-
$metadata
|
|
481
|
+
$metadata,
|
|
502
482
|
});
|
|
503
483
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
504
484
|
}
|
|
@@ -524,8 +504,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
524
504
|
body: await parseBody(output.body, context),
|
|
525
505
|
};
|
|
526
506
|
let response;
|
|
527
|
-
|
|
528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
508
|
switch (errorCode) {
|
|
530
509
|
case "InternalServerException":
|
|
531
510
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -535,10 +514,12 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
535
514
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
536
515
|
default:
|
|
537
516
|
const parsedBody = parsedOutput.body;
|
|
517
|
+
const $metadata = deserializeMetadata(output);
|
|
518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
538
519
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
540
521
|
$fault: "client",
|
|
541
|
-
$metadata
|
|
522
|
+
$metadata,
|
|
542
523
|
});
|
|
543
524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
544
525
|
}
|
|
@@ -568,8 +549,7 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
568
549
|
body: await parseBody(output.body, context),
|
|
569
550
|
};
|
|
570
551
|
let response;
|
|
571
|
-
|
|
572
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
553
|
switch (errorCode) {
|
|
574
554
|
case "AccessDeniedException":
|
|
575
555
|
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
@@ -585,10 +565,12 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
585
565
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
586
566
|
default:
|
|
587
567
|
const parsedBody = parsedOutput.body;
|
|
568
|
+
const $metadata = deserializeMetadata(output);
|
|
569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
588
570
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
589
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
590
572
|
$fault: "client",
|
|
591
|
-
$metadata
|
|
573
|
+
$metadata,
|
|
592
574
|
});
|
|
593
575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
576
|
}
|
|
@@ -610,8 +592,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
610
592
|
body: await parseBody(output.body, context),
|
|
611
593
|
};
|
|
612
594
|
let response;
|
|
613
|
-
|
|
614
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
596
|
switch (errorCode) {
|
|
616
597
|
case "InternalServerException":
|
|
617
598
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -624,10 +605,12 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
624
605
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
625
606
|
default:
|
|
626
607
|
const parsedBody = parsedOutput.body;
|
|
608
|
+
const $metadata = deserializeMetadata(output);
|
|
609
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
627
610
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
628
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
611
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
629
612
|
$fault: "client",
|
|
630
|
-
$metadata
|
|
613
|
+
$metadata,
|
|
631
614
|
});
|
|
632
615
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
633
616
|
}
|
|
@@ -653,8 +636,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
653
636
|
body: await parseBody(output.body, context),
|
|
654
637
|
};
|
|
655
638
|
let response;
|
|
656
|
-
|
|
657
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
640
|
switch (errorCode) {
|
|
659
641
|
case "InternalServerException":
|
|
660
642
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -667,10 +649,12 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
667
649
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
668
650
|
default:
|
|
669
651
|
const parsedBody = parsedOutput.body;
|
|
652
|
+
const $metadata = deserializeMetadata(output);
|
|
653
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
670
654
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
671
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
655
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
672
656
|
$fault: "client",
|
|
673
|
-
$metadata
|
|
657
|
+
$metadata,
|
|
674
658
|
});
|
|
675
659
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
676
660
|
}
|
|
@@ -700,8 +684,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
700
684
|
body: await parseBody(output.body, context),
|
|
701
685
|
};
|
|
702
686
|
let response;
|
|
703
|
-
|
|
704
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
688
|
switch (errorCode) {
|
|
706
689
|
case "InternalServerException":
|
|
707
690
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -711,10 +694,12 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
711
694
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
712
695
|
default:
|
|
713
696
|
const parsedBody = parsedOutput.body;
|
|
697
|
+
const $metadata = deserializeMetadata(output);
|
|
698
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
714
699
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
700
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
716
701
|
$fault: "client",
|
|
717
|
-
$metadata
|
|
702
|
+
$metadata,
|
|
718
703
|
});
|
|
719
704
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
705
|
}
|
|
@@ -740,8 +725,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
740
725
|
body: await parseBody(output.body, context),
|
|
741
726
|
};
|
|
742
727
|
let response;
|
|
743
|
-
|
|
744
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
729
|
switch (errorCode) {
|
|
746
730
|
case "InternalServerException":
|
|
747
731
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -754,10 +738,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
754
738
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
755
739
|
default:
|
|
756
740
|
const parsedBody = parsedOutput.body;
|
|
741
|
+
const $metadata = deserializeMetadata(output);
|
|
742
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
757
743
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
758
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
744
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
759
745
|
$fault: "client",
|
|
760
|
-
$metadata
|
|
746
|
+
$metadata,
|
|
761
747
|
});
|
|
762
748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
763
749
|
}
|
|
@@ -779,8 +765,7 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
779
765
|
body: await parseBody(output.body, context),
|
|
780
766
|
};
|
|
781
767
|
let response;
|
|
782
|
-
|
|
783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
769
|
switch (errorCode) {
|
|
785
770
|
case "InternalServerException":
|
|
786
771
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -790,10 +775,12 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
790
775
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
791
776
|
default:
|
|
792
777
|
const parsedBody = parsedOutput.body;
|
|
778
|
+
const $metadata = deserializeMetadata(output);
|
|
779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
793
780
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
794
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
795
782
|
$fault: "client",
|
|
796
|
-
$metadata
|
|
783
|
+
$metadata,
|
|
797
784
|
});
|
|
798
785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
799
786
|
}
|
|
@@ -815,8 +802,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
815
802
|
body: await parseBody(output.body, context),
|
|
816
803
|
};
|
|
817
804
|
let response;
|
|
818
|
-
|
|
819
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
806
|
switch (errorCode) {
|
|
821
807
|
case "InternalServerException":
|
|
822
808
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -829,10 +815,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
829
815
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
830
816
|
default:
|
|
831
817
|
const parsedBody = parsedOutput.body;
|
|
818
|
+
const $metadata = deserializeMetadata(output);
|
|
819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
832
820
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
834
822
|
$fault: "client",
|
|
835
|
-
$metadata
|
|
823
|
+
$metadata,
|
|
836
824
|
});
|
|
837
825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
826
|
}
|
|
@@ -854,8 +842,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
854
842
|
body: await parseBody(output.body, context),
|
|
855
843
|
};
|
|
856
844
|
let response;
|
|
857
|
-
|
|
858
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
846
|
switch (errorCode) {
|
|
860
847
|
case "InternalServerException":
|
|
861
848
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -868,10 +855,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
868
855
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
869
856
|
default:
|
|
870
857
|
const parsedBody = parsedOutput.body;
|
|
858
|
+
const $metadata = deserializeMetadata(output);
|
|
859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
871
860
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
872
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
873
862
|
$fault: "client",
|
|
874
|
-
$metadata
|
|
863
|
+
$metadata,
|
|
875
864
|
});
|
|
876
865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
877
866
|
}
|
|
@@ -897,8 +886,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
897
886
|
body: await parseBody(output.body, context),
|
|
898
887
|
};
|
|
899
888
|
let response;
|
|
900
|
-
|
|
901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
890
|
switch (errorCode) {
|
|
903
891
|
case "InternalServerException":
|
|
904
892
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
@@ -911,10 +899,12 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
911
899
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
912
900
|
default:
|
|
913
901
|
const parsedBody = parsedOutput.body;
|
|
902
|
+
const $metadata = deserializeMetadata(output);
|
|
903
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
914
904
|
response = new MWAAServiceException_1.MWAAServiceException({
|
|
915
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
905
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
916
906
|
$fault: "client",
|
|
917
|
-
$metadata
|
|
907
|
+
$metadata,
|
|
918
908
|
});
|
|
919
909
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
920
910
|
}
|
|
@@ -980,8 +970,8 @@ const serializeAws_restJson1AirflowConfigurationOptions = (input, context) => {
|
|
|
980
970
|
};
|
|
981
971
|
const serializeAws_restJson1Dimension = (input, context) => {
|
|
982
972
|
return {
|
|
983
|
-
...(input.Name
|
|
984
|
-
...(input.Value
|
|
973
|
+
...(input.Name != null && { Name: input.Name }),
|
|
974
|
+
...(input.Value != null && { Value: input.Value }),
|
|
985
975
|
};
|
|
986
976
|
};
|
|
987
977
|
const serializeAws_restJson1Dimensions = (input, context) => {
|
|
@@ -996,24 +986,19 @@ const serializeAws_restJson1Dimensions = (input, context) => {
|
|
|
996
986
|
};
|
|
997
987
|
const serializeAws_restJson1LoggingConfigurationInput = (input, context) => {
|
|
998
988
|
return {
|
|
999
|
-
...(input.DagProcessingLogs
|
|
1000
|
-
input.DagProcessingLogs !== null && {
|
|
989
|
+
...(input.DagProcessingLogs != null && {
|
|
1001
990
|
DagProcessingLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
1002
991
|
}),
|
|
1003
|
-
...(input.SchedulerLogs
|
|
1004
|
-
input.SchedulerLogs !== null && {
|
|
992
|
+
...(input.SchedulerLogs != null && {
|
|
1005
993
|
SchedulerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
1006
994
|
}),
|
|
1007
|
-
...(input.TaskLogs
|
|
1008
|
-
input.TaskLogs !== null && {
|
|
995
|
+
...(input.TaskLogs != null && {
|
|
1009
996
|
TaskLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.TaskLogs, context),
|
|
1010
997
|
}),
|
|
1011
|
-
...(input.WebserverLogs
|
|
1012
|
-
input.WebserverLogs !== null && {
|
|
998
|
+
...(input.WebserverLogs != null && {
|
|
1013
999
|
WebserverLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
1014
1000
|
}),
|
|
1015
|
-
...(input.WorkerLogs
|
|
1016
|
-
input.WorkerLogs !== null && {
|
|
1001
|
+
...(input.WorkerLogs != null && {
|
|
1017
1002
|
WorkerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WorkerLogs, context),
|
|
1018
1003
|
}),
|
|
1019
1004
|
};
|
|
@@ -1030,33 +1015,28 @@ const serializeAws_restJson1MetricData = (input, context) => {
|
|
|
1030
1015
|
};
|
|
1031
1016
|
const serializeAws_restJson1MetricDatum = (input, context) => {
|
|
1032
1017
|
return {
|
|
1033
|
-
...(input.Dimensions
|
|
1034
|
-
|
|
1035
|
-
...(input.
|
|
1036
|
-
...(input.StatisticValues !== undefined &&
|
|
1037
|
-
input.StatisticValues !== null && {
|
|
1018
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
|
|
1019
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
1020
|
+
...(input.StatisticValues != null && {
|
|
1038
1021
|
StatisticValues: serializeAws_restJson1StatisticSet(input.StatisticValues, context),
|
|
1039
1022
|
}),
|
|
1040
|
-
...(input.Timestamp
|
|
1041
|
-
|
|
1042
|
-
...(input.
|
|
1043
|
-
...(input.Value !== undefined && input.Value !== null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
1023
|
+
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
1024
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
1025
|
+
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
1044
1026
|
};
|
|
1045
1027
|
};
|
|
1046
1028
|
const serializeAws_restJson1ModuleLoggingConfigurationInput = (input, context) => {
|
|
1047
1029
|
return {
|
|
1048
|
-
...(input.Enabled
|
|
1049
|
-
...(input.LogLevel
|
|
1030
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1031
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
1050
1032
|
};
|
|
1051
1033
|
};
|
|
1052
1034
|
const serializeAws_restJson1NetworkConfiguration = (input, context) => {
|
|
1053
1035
|
return {
|
|
1054
|
-
...(input.SecurityGroupIds
|
|
1055
|
-
input.SecurityGroupIds !== null && {
|
|
1036
|
+
...(input.SecurityGroupIds != null && {
|
|
1056
1037
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
1057
1038
|
}),
|
|
1058
|
-
...(input.SubnetIds
|
|
1059
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }),
|
|
1039
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }),
|
|
1060
1040
|
};
|
|
1061
1041
|
};
|
|
1062
1042
|
const serializeAws_restJson1SecurityGroupList = (input, context) => {
|
|
@@ -1071,10 +1051,10 @@ const serializeAws_restJson1SecurityGroupList = (input, context) => {
|
|
|
1071
1051
|
};
|
|
1072
1052
|
const serializeAws_restJson1StatisticSet = (input, context) => {
|
|
1073
1053
|
return {
|
|
1074
|
-
...(input.Maximum
|
|
1075
|
-
...(input.Minimum
|
|
1076
|
-
...(input.SampleCount
|
|
1077
|
-
...(input.Sum
|
|
1054
|
+
...(input.Maximum != null && { Maximum: (0, smithy_client_1.serializeFloat)(input.Maximum) }),
|
|
1055
|
+
...(input.Minimum != null && { Minimum: (0, smithy_client_1.serializeFloat)(input.Minimum) }),
|
|
1056
|
+
...(input.SampleCount != null && { SampleCount: input.SampleCount }),
|
|
1057
|
+
...(input.Sum != null && { Sum: (0, smithy_client_1.serializeFloat)(input.Sum) }),
|
|
1078
1058
|
};
|
|
1079
1059
|
};
|
|
1080
1060
|
const serializeAws_restJson1SubnetList = (input, context) => {
|
|
@@ -1100,8 +1080,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1100
1080
|
};
|
|
1101
1081
|
const serializeAws_restJson1UpdateNetworkConfigurationInput = (input, context) => {
|
|
1102
1082
|
return {
|
|
1103
|
-
...(input.SecurityGroupIds
|
|
1104
|
-
input.SecurityGroupIds !== null && {
|
|
1083
|
+
...(input.SecurityGroupIds != null && {
|
|
1105
1084
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
1106
1085
|
}),
|
|
1107
1086
|
};
|
|
@@ -1119,28 +1098,24 @@ const deserializeAws_restJson1AirflowConfigurationOptions = (output, context) =>
|
|
|
1119
1098
|
};
|
|
1120
1099
|
const deserializeAws_restJson1Environment = (output, context) => {
|
|
1121
1100
|
return {
|
|
1122
|
-
AirflowConfigurationOptions: output.AirflowConfigurationOptions
|
|
1101
|
+
AirflowConfigurationOptions: output.AirflowConfigurationOptions != null
|
|
1123
1102
|
? deserializeAws_restJson1AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
|
|
1124
1103
|
: undefined,
|
|
1125
1104
|
AirflowVersion: (0, smithy_client_1.expectString)(output.AirflowVersion),
|
|
1126
1105
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1127
|
-
CreatedAt: output.CreatedAt
|
|
1128
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
1129
|
-
: undefined,
|
|
1106
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
1130
1107
|
DagS3Path: (0, smithy_client_1.expectString)(output.DagS3Path),
|
|
1131
1108
|
EnvironmentClass: (0, smithy_client_1.expectString)(output.EnvironmentClass),
|
|
1132
1109
|
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1133
1110
|
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
1134
|
-
LastUpdate: output.LastUpdate
|
|
1135
|
-
|
|
1136
|
-
: undefined,
|
|
1137
|
-
LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
|
|
1111
|
+
LastUpdate: output.LastUpdate != null ? deserializeAws_restJson1LastUpdate(output.LastUpdate, context) : undefined,
|
|
1112
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
1138
1113
|
? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
1139
1114
|
: undefined,
|
|
1140
1115
|
MaxWorkers: (0, smithy_client_1.expectInt32)(output.MaxWorkers),
|
|
1141
1116
|
MinWorkers: (0, smithy_client_1.expectInt32)(output.MinWorkers),
|
|
1142
1117
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1143
|
-
NetworkConfiguration: output.NetworkConfiguration
|
|
1118
|
+
NetworkConfiguration: output.NetworkConfiguration != null
|
|
1144
1119
|
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
1145
1120
|
: undefined,
|
|
1146
1121
|
PluginsS3ObjectVersion: (0, smithy_client_1.expectString)(output.PluginsS3ObjectVersion),
|
|
@@ -1151,9 +1126,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
1151
1126
|
ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn),
|
|
1152
1127
|
SourceBucketArn: (0, smithy_client_1.expectString)(output.SourceBucketArn),
|
|
1153
1128
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1154
|
-
Tags: output.Tags
|
|
1155
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1156
|
-
: undefined,
|
|
1129
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1157
1130
|
WebserverAccessMode: (0, smithy_client_1.expectString)(output.WebserverAccessMode),
|
|
1158
1131
|
WebserverUrl: (0, smithy_client_1.expectString)(output.WebserverUrl),
|
|
1159
1132
|
WeeklyMaintenanceWindowStart: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceWindowStart),
|
|
@@ -1172,31 +1145,27 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
|
1172
1145
|
};
|
|
1173
1146
|
const deserializeAws_restJson1LastUpdate = (output, context) => {
|
|
1174
1147
|
return {
|
|
1175
|
-
CreatedAt: output.CreatedAt
|
|
1176
|
-
|
|
1177
|
-
: undefined,
|
|
1178
|
-
Error: output.Error !== undefined && output.Error !== null
|
|
1179
|
-
? deserializeAws_restJson1UpdateError(output.Error, context)
|
|
1180
|
-
: undefined,
|
|
1148
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
1149
|
+
Error: output.Error != null ? deserializeAws_restJson1UpdateError(output.Error, context) : undefined,
|
|
1181
1150
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1182
1151
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1183
1152
|
};
|
|
1184
1153
|
};
|
|
1185
1154
|
const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
|
|
1186
1155
|
return {
|
|
1187
|
-
DagProcessingLogs: output.DagProcessingLogs
|
|
1156
|
+
DagProcessingLogs: output.DagProcessingLogs != null
|
|
1188
1157
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.DagProcessingLogs, context)
|
|
1189
1158
|
: undefined,
|
|
1190
|
-
SchedulerLogs: output.SchedulerLogs
|
|
1159
|
+
SchedulerLogs: output.SchedulerLogs != null
|
|
1191
1160
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.SchedulerLogs, context)
|
|
1192
1161
|
: undefined,
|
|
1193
|
-
TaskLogs: output.TaskLogs
|
|
1162
|
+
TaskLogs: output.TaskLogs != null
|
|
1194
1163
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.TaskLogs, context)
|
|
1195
1164
|
: undefined,
|
|
1196
|
-
WebserverLogs: output.WebserverLogs
|
|
1165
|
+
WebserverLogs: output.WebserverLogs != null
|
|
1197
1166
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WebserverLogs, context)
|
|
1198
1167
|
: undefined,
|
|
1199
|
-
WorkerLogs: output.WorkerLogs
|
|
1168
|
+
WorkerLogs: output.WorkerLogs != null
|
|
1200
1169
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WorkerLogs, context)
|
|
1201
1170
|
: undefined,
|
|
1202
1171
|
};
|
|
@@ -1210,12 +1179,10 @@ const deserializeAws_restJson1ModuleLoggingConfiguration = (output, context) =>
|
|
|
1210
1179
|
};
|
|
1211
1180
|
const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
|
|
1212
1181
|
return {
|
|
1213
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
1182
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
1214
1183
|
? deserializeAws_restJson1SecurityGroupList(output.SecurityGroupIds, context)
|
|
1215
1184
|
: undefined,
|
|
1216
|
-
SubnetIds: output.SubnetIds
|
|
1217
|
-
? deserializeAws_restJson1SubnetList(output.SubnetIds, context)
|
|
1218
|
-
: undefined,
|
|
1185
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetList(output.SubnetIds, context) : undefined,
|
|
1219
1186
|
};
|
|
1220
1187
|
};
|
|
1221
1188
|
const deserializeAws_restJson1SecurityGroupList = (output, context) => {
|
|
@@ -1306,5 +1273,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1306
1273
|
if (data["__type"] !== undefined) {
|
|
1307
1274
|
return sanitizeErrorCode(data["__type"]);
|
|
1308
1275
|
}
|
|
1309
|
-
return "";
|
|
1310
1276
|
};
|