@aws-sdk/client-mwaa 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +82 -123
- package/dist-es/protocols/Aws_restJson1.js +45 -86
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-mwaa
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-mwaa
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -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
|
});
|
|
@@ -991,8 +970,8 @@ const serializeAws_restJson1AirflowConfigurationOptions = (input, context) => {
|
|
|
991
970
|
};
|
|
992
971
|
const serializeAws_restJson1Dimension = (input, context) => {
|
|
993
972
|
return {
|
|
994
|
-
...(input.Name
|
|
995
|
-
...(input.Value
|
|
973
|
+
...(input.Name != null && { Name: input.Name }),
|
|
974
|
+
...(input.Value != null && { Value: input.Value }),
|
|
996
975
|
};
|
|
997
976
|
};
|
|
998
977
|
const serializeAws_restJson1Dimensions = (input, context) => {
|
|
@@ -1007,24 +986,19 @@ const serializeAws_restJson1Dimensions = (input, context) => {
|
|
|
1007
986
|
};
|
|
1008
987
|
const serializeAws_restJson1LoggingConfigurationInput = (input, context) => {
|
|
1009
988
|
return {
|
|
1010
|
-
...(input.DagProcessingLogs
|
|
1011
|
-
input.DagProcessingLogs !== null && {
|
|
989
|
+
...(input.DagProcessingLogs != null && {
|
|
1012
990
|
DagProcessingLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
1013
991
|
}),
|
|
1014
|
-
...(input.SchedulerLogs
|
|
1015
|
-
input.SchedulerLogs !== null && {
|
|
992
|
+
...(input.SchedulerLogs != null && {
|
|
1016
993
|
SchedulerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
1017
994
|
}),
|
|
1018
|
-
...(input.TaskLogs
|
|
1019
|
-
input.TaskLogs !== null && {
|
|
995
|
+
...(input.TaskLogs != null && {
|
|
1020
996
|
TaskLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.TaskLogs, context),
|
|
1021
997
|
}),
|
|
1022
|
-
...(input.WebserverLogs
|
|
1023
|
-
input.WebserverLogs !== null && {
|
|
998
|
+
...(input.WebserverLogs != null && {
|
|
1024
999
|
WebserverLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
1025
1000
|
}),
|
|
1026
|
-
...(input.WorkerLogs
|
|
1027
|
-
input.WorkerLogs !== null && {
|
|
1001
|
+
...(input.WorkerLogs != null && {
|
|
1028
1002
|
WorkerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WorkerLogs, context),
|
|
1029
1003
|
}),
|
|
1030
1004
|
};
|
|
@@ -1041,33 +1015,28 @@ const serializeAws_restJson1MetricData = (input, context) => {
|
|
|
1041
1015
|
};
|
|
1042
1016
|
const serializeAws_restJson1MetricDatum = (input, context) => {
|
|
1043
1017
|
return {
|
|
1044
|
-
...(input.Dimensions
|
|
1045
|
-
|
|
1046
|
-
...(input.
|
|
1047
|
-
...(input.StatisticValues !== undefined &&
|
|
1048
|
-
input.StatisticValues !== null && {
|
|
1018
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
|
|
1019
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
1020
|
+
...(input.StatisticValues != null && {
|
|
1049
1021
|
StatisticValues: serializeAws_restJson1StatisticSet(input.StatisticValues, context),
|
|
1050
1022
|
}),
|
|
1051
|
-
...(input.Timestamp
|
|
1052
|
-
|
|
1053
|
-
...(input.
|
|
1054
|
-
...(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) }),
|
|
1055
1026
|
};
|
|
1056
1027
|
};
|
|
1057
1028
|
const serializeAws_restJson1ModuleLoggingConfigurationInput = (input, context) => {
|
|
1058
1029
|
return {
|
|
1059
|
-
...(input.Enabled
|
|
1060
|
-
...(input.LogLevel
|
|
1030
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
1031
|
+
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
1061
1032
|
};
|
|
1062
1033
|
};
|
|
1063
1034
|
const serializeAws_restJson1NetworkConfiguration = (input, context) => {
|
|
1064
1035
|
return {
|
|
1065
|
-
...(input.SecurityGroupIds
|
|
1066
|
-
input.SecurityGroupIds !== null && {
|
|
1036
|
+
...(input.SecurityGroupIds != null && {
|
|
1067
1037
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
1068
1038
|
}),
|
|
1069
|
-
...(input.SubnetIds
|
|
1070
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }),
|
|
1039
|
+
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }),
|
|
1071
1040
|
};
|
|
1072
1041
|
};
|
|
1073
1042
|
const serializeAws_restJson1SecurityGroupList = (input, context) => {
|
|
@@ -1082,10 +1051,10 @@ const serializeAws_restJson1SecurityGroupList = (input, context) => {
|
|
|
1082
1051
|
};
|
|
1083
1052
|
const serializeAws_restJson1StatisticSet = (input, context) => {
|
|
1084
1053
|
return {
|
|
1085
|
-
...(input.Maximum
|
|
1086
|
-
...(input.Minimum
|
|
1087
|
-
...(input.SampleCount
|
|
1088
|
-
...(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) }),
|
|
1089
1058
|
};
|
|
1090
1059
|
};
|
|
1091
1060
|
const serializeAws_restJson1SubnetList = (input, context) => {
|
|
@@ -1111,8 +1080,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1111
1080
|
};
|
|
1112
1081
|
const serializeAws_restJson1UpdateNetworkConfigurationInput = (input, context) => {
|
|
1113
1082
|
return {
|
|
1114
|
-
...(input.SecurityGroupIds
|
|
1115
|
-
input.SecurityGroupIds !== null && {
|
|
1083
|
+
...(input.SecurityGroupIds != null && {
|
|
1116
1084
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
1117
1085
|
}),
|
|
1118
1086
|
};
|
|
@@ -1130,28 +1098,24 @@ const deserializeAws_restJson1AirflowConfigurationOptions = (output, context) =>
|
|
|
1130
1098
|
};
|
|
1131
1099
|
const deserializeAws_restJson1Environment = (output, context) => {
|
|
1132
1100
|
return {
|
|
1133
|
-
AirflowConfigurationOptions: output.AirflowConfigurationOptions
|
|
1101
|
+
AirflowConfigurationOptions: output.AirflowConfigurationOptions != null
|
|
1134
1102
|
? deserializeAws_restJson1AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
|
|
1135
1103
|
: undefined,
|
|
1136
1104
|
AirflowVersion: (0, smithy_client_1.expectString)(output.AirflowVersion),
|
|
1137
1105
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1138
|
-
CreatedAt: output.CreatedAt
|
|
1139
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
|
|
1140
|
-
: undefined,
|
|
1106
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
1141
1107
|
DagS3Path: (0, smithy_client_1.expectString)(output.DagS3Path),
|
|
1142
1108
|
EnvironmentClass: (0, smithy_client_1.expectString)(output.EnvironmentClass),
|
|
1143
1109
|
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1144
1110
|
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
1145
|
-
LastUpdate: output.LastUpdate
|
|
1146
|
-
|
|
1147
|
-
: undefined,
|
|
1148
|
-
LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
|
|
1111
|
+
LastUpdate: output.LastUpdate != null ? deserializeAws_restJson1LastUpdate(output.LastUpdate, context) : undefined,
|
|
1112
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
1149
1113
|
? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
1150
1114
|
: undefined,
|
|
1151
1115
|
MaxWorkers: (0, smithy_client_1.expectInt32)(output.MaxWorkers),
|
|
1152
1116
|
MinWorkers: (0, smithy_client_1.expectInt32)(output.MinWorkers),
|
|
1153
1117
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1154
|
-
NetworkConfiguration: output.NetworkConfiguration
|
|
1118
|
+
NetworkConfiguration: output.NetworkConfiguration != null
|
|
1155
1119
|
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
1156
1120
|
: undefined,
|
|
1157
1121
|
PluginsS3ObjectVersion: (0, smithy_client_1.expectString)(output.PluginsS3ObjectVersion),
|
|
@@ -1162,9 +1126,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
1162
1126
|
ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn),
|
|
1163
1127
|
SourceBucketArn: (0, smithy_client_1.expectString)(output.SourceBucketArn),
|
|
1164
1128
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1165
|
-
Tags: output.Tags
|
|
1166
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1167
|
-
: undefined,
|
|
1129
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1168
1130
|
WebserverAccessMode: (0, smithy_client_1.expectString)(output.WebserverAccessMode),
|
|
1169
1131
|
WebserverUrl: (0, smithy_client_1.expectString)(output.WebserverUrl),
|
|
1170
1132
|
WeeklyMaintenanceWindowStart: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceWindowStart),
|
|
@@ -1183,31 +1145,27 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
|
1183
1145
|
};
|
|
1184
1146
|
const deserializeAws_restJson1LastUpdate = (output, context) => {
|
|
1185
1147
|
return {
|
|
1186
|
-
CreatedAt: output.CreatedAt
|
|
1187
|
-
|
|
1188
|
-
: undefined,
|
|
1189
|
-
Error: output.Error !== undefined && output.Error !== null
|
|
1190
|
-
? deserializeAws_restJson1UpdateError(output.Error, context)
|
|
1191
|
-
: 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,
|
|
1192
1150
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1193
1151
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1194
1152
|
};
|
|
1195
1153
|
};
|
|
1196
1154
|
const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
|
|
1197
1155
|
return {
|
|
1198
|
-
DagProcessingLogs: output.DagProcessingLogs
|
|
1156
|
+
DagProcessingLogs: output.DagProcessingLogs != null
|
|
1199
1157
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.DagProcessingLogs, context)
|
|
1200
1158
|
: undefined,
|
|
1201
|
-
SchedulerLogs: output.SchedulerLogs
|
|
1159
|
+
SchedulerLogs: output.SchedulerLogs != null
|
|
1202
1160
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.SchedulerLogs, context)
|
|
1203
1161
|
: undefined,
|
|
1204
|
-
TaskLogs: output.TaskLogs
|
|
1162
|
+
TaskLogs: output.TaskLogs != null
|
|
1205
1163
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.TaskLogs, context)
|
|
1206
1164
|
: undefined,
|
|
1207
|
-
WebserverLogs: output.WebserverLogs
|
|
1165
|
+
WebserverLogs: output.WebserverLogs != null
|
|
1208
1166
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WebserverLogs, context)
|
|
1209
1167
|
: undefined,
|
|
1210
|
-
WorkerLogs: output.WorkerLogs
|
|
1168
|
+
WorkerLogs: output.WorkerLogs != null
|
|
1211
1169
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WorkerLogs, context)
|
|
1212
1170
|
: undefined,
|
|
1213
1171
|
};
|
|
@@ -1221,12 +1179,10 @@ const deserializeAws_restJson1ModuleLoggingConfiguration = (output, context) =>
|
|
|
1221
1179
|
};
|
|
1222
1180
|
const deserializeAws_restJson1NetworkConfiguration = (output, context) => {
|
|
1223
1181
|
return {
|
|
1224
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
1182
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
1225
1183
|
? deserializeAws_restJson1SecurityGroupList(output.SecurityGroupIds, context)
|
|
1226
1184
|
: undefined,
|
|
1227
|
-
SubnetIds: output.SubnetIds
|
|
1228
|
-
? deserializeAws_restJson1SubnetList(output.SubnetIds, context)
|
|
1229
|
-
: undefined,
|
|
1185
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetList(output.SubnetIds, context) : undefined,
|
|
1230
1186
|
};
|
|
1231
1187
|
};
|
|
1232
1188
|
const deserializeAws_restJson1SecurityGroupList = (output, context) => {
|
|
@@ -1299,6 +1255,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1299
1255
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1300
1256
|
const sanitizeErrorCode = (rawValue) => {
|
|
1301
1257
|
let cleanValue = rawValue;
|
|
1258
|
+
if (typeof cleanValue === "number") {
|
|
1259
|
+
cleanValue = cleanValue.toString();
|
|
1260
|
+
}
|
|
1302
1261
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1303
1262
|
cleanValue = cleanValue.split(":")[0];
|
|
1304
1263
|
}
|
|
@@ -64,25 +64,15 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
64
64
|
else {
|
|
65
65
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
66
66
|
}
|
|
67
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AirflowConfigurationOptions
|
|
68
|
-
input.AirflowConfigurationOptions !== null && {
|
|
67
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AirflowConfigurationOptions != null && {
|
|
69
68
|
AirflowConfigurationOptions: serializeAws_restJson1AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
70
|
-
})), (input.AirflowVersion
|
|
71
|
-
input.AirflowVersion !== null && { AirflowVersion: input.AirflowVersion })), (input.DagS3Path !== undefined && input.DagS3Path !== null && { DagS3Path: input.DagS3Path })), (input.EnvironmentClass !== undefined &&
|
|
72
|
-
input.EnvironmentClass !== null && { EnvironmentClass: input.EnvironmentClass })), (input.ExecutionRoleArn !== undefined &&
|
|
73
|
-
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.KmsKey !== undefined && input.KmsKey !== null && { KmsKey: input.KmsKey })), (input.LoggingConfiguration !== undefined &&
|
|
74
|
-
input.LoggingConfiguration !== null && {
|
|
69
|
+
})), (input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion })), (input.DagS3Path != null && { DagS3Path: input.DagS3Path })), (input.EnvironmentClass != null && { EnvironmentClass: input.EnvironmentClass })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.KmsKey != null && { KmsKey: input.KmsKey })), (input.LoggingConfiguration != null && {
|
|
75
70
|
LoggingConfiguration: serializeAws_restJson1LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
76
|
-
})), (input.MaxWorkers
|
|
77
|
-
input.NetworkConfiguration !== null && {
|
|
71
|
+
})), (input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers })), (input.MinWorkers != null && { MinWorkers: input.MinWorkers })), (input.NetworkConfiguration != null && {
|
|
78
72
|
NetworkConfiguration: serializeAws_restJson1NetworkConfiguration(input.NetworkConfiguration, context),
|
|
79
|
-
})), (input.PluginsS3ObjectVersion
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
input.RequirementsS3Path !== null && { RequirementsS3Path: input.RequirementsS3Path })), (input.Schedulers !== undefined && input.Schedulers !== null && { Schedulers: input.Schedulers })), (input.SourceBucketArn !== undefined &&
|
|
83
|
-
input.SourceBucketArn !== null && { SourceBucketArn: input.SourceBucketArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.WebserverAccessMode !== undefined &&
|
|
84
|
-
input.WebserverAccessMode !== null && { WebserverAccessMode: input.WebserverAccessMode })), (input.WeeklyMaintenanceWindowStart !== undefined &&
|
|
85
|
-
input.WeeklyMaintenanceWindowStart !== null && {
|
|
73
|
+
})), (input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion })), (input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path })), (input.RequirementsS3ObjectVersion != null && {
|
|
74
|
+
RequirementsS3ObjectVersion: input.RequirementsS3ObjectVersion,
|
|
75
|
+
})), (input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path })), (input.Schedulers != null && { Schedulers: input.Schedulers })), (input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode })), (input.WeeklyMaintenanceWindowStart != null && {
|
|
86
76
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
87
77
|
})));
|
|
88
78
|
return [4, context.endpoint()];
|
|
@@ -319,8 +309,7 @@ export var serializeAws_restJson1PublishMetricsCommand = function (input, contex
|
|
|
319
309
|
else {
|
|
320
310
|
throw new Error("No value provided for input HTTP label: EnvironmentName.");
|
|
321
311
|
}
|
|
322
|
-
body = JSON.stringify(__assign({}, (input.MetricData
|
|
323
|
-
input.MetricData !== null && { MetricData: serializeAws_restJson1MetricData(input.MetricData, context) })));
|
|
312
|
+
body = JSON.stringify(__assign({}, (input.MetricData != null && { MetricData: serializeAws_restJson1MetricData(input.MetricData, context) })));
|
|
324
313
|
return [4, context.endpoint()];
|
|
325
314
|
case 2:
|
|
326
315
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -363,7 +352,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
363
352
|
else {
|
|
364
353
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
365
354
|
}
|
|
366
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
355
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
367
356
|
return [4, context.endpoint()];
|
|
368
357
|
case 2:
|
|
369
358
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -448,25 +437,15 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
448
437
|
else {
|
|
449
438
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
450
439
|
}
|
|
451
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AirflowConfigurationOptions
|
|
452
|
-
input.AirflowConfigurationOptions !== null && {
|
|
440
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AirflowConfigurationOptions != null && {
|
|
453
441
|
AirflowConfigurationOptions: serializeAws_restJson1AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
454
|
-
})), (input.AirflowVersion
|
|
455
|
-
input.AirflowVersion !== null && { AirflowVersion: input.AirflowVersion })), (input.DagS3Path !== undefined && input.DagS3Path !== null && { DagS3Path: input.DagS3Path })), (input.EnvironmentClass !== undefined &&
|
|
456
|
-
input.EnvironmentClass !== null && { EnvironmentClass: input.EnvironmentClass })), (input.ExecutionRoleArn !== undefined &&
|
|
457
|
-
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.LoggingConfiguration !== undefined &&
|
|
458
|
-
input.LoggingConfiguration !== null && {
|
|
442
|
+
})), (input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion })), (input.DagS3Path != null && { DagS3Path: input.DagS3Path })), (input.EnvironmentClass != null && { EnvironmentClass: input.EnvironmentClass })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.LoggingConfiguration != null && {
|
|
459
443
|
LoggingConfiguration: serializeAws_restJson1LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
460
|
-
})), (input.MaxWorkers
|
|
461
|
-
input.NetworkConfiguration !== null && {
|
|
444
|
+
})), (input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers })), (input.MinWorkers != null && { MinWorkers: input.MinWorkers })), (input.NetworkConfiguration != null && {
|
|
462
445
|
NetworkConfiguration: serializeAws_restJson1UpdateNetworkConfigurationInput(input.NetworkConfiguration, context),
|
|
463
|
-
})), (input.PluginsS3ObjectVersion
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
input.RequirementsS3Path !== null && { RequirementsS3Path: input.RequirementsS3Path })), (input.Schedulers !== undefined && input.Schedulers !== null && { Schedulers: input.Schedulers })), (input.SourceBucketArn !== undefined &&
|
|
467
|
-
input.SourceBucketArn !== null && { SourceBucketArn: input.SourceBucketArn })), (input.WebserverAccessMode !== undefined &&
|
|
468
|
-
input.WebserverAccessMode !== null && { WebserverAccessMode: input.WebserverAccessMode })), (input.WeeklyMaintenanceWindowStart !== undefined &&
|
|
469
|
-
input.WeeklyMaintenanceWindowStart !== null && {
|
|
446
|
+
})), (input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion })), (input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path })), (input.RequirementsS3ObjectVersion != null && {
|
|
447
|
+
RequirementsS3ObjectVersion: input.RequirementsS3ObjectVersion,
|
|
448
|
+
})), (input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path })), (input.Schedulers != null && { Schedulers: input.Schedulers })), (input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn })), (input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode })), (input.WeeklyMaintenanceWindowStart != null && {
|
|
470
449
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
471
450
|
})));
|
|
472
451
|
return [4, context.endpoint()];
|
|
@@ -1236,7 +1215,7 @@ var serializeAws_restJson1AirflowConfigurationOptions = function (input, context
|
|
|
1236
1215
|
}, {});
|
|
1237
1216
|
};
|
|
1238
1217
|
var serializeAws_restJson1Dimension = function (input, context) {
|
|
1239
|
-
return __assign(__assign({}, (input.Name
|
|
1218
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
1240
1219
|
};
|
|
1241
1220
|
var serializeAws_restJson1Dimensions = function (input, context) {
|
|
1242
1221
|
return input
|
|
@@ -1249,20 +1228,15 @@ var serializeAws_restJson1Dimensions = function (input, context) {
|
|
|
1249
1228
|
});
|
|
1250
1229
|
};
|
|
1251
1230
|
var serializeAws_restJson1LoggingConfigurationInput = function (input, context) {
|
|
1252
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DagProcessingLogs
|
|
1253
|
-
input.DagProcessingLogs !== null && {
|
|
1231
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DagProcessingLogs != null && {
|
|
1254
1232
|
DagProcessingLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
1255
|
-
})), (input.SchedulerLogs
|
|
1256
|
-
input.SchedulerLogs !== null && {
|
|
1233
|
+
})), (input.SchedulerLogs != null && {
|
|
1257
1234
|
SchedulerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
1258
|
-
})), (input.TaskLogs
|
|
1259
|
-
input.TaskLogs !== null && {
|
|
1235
|
+
})), (input.TaskLogs != null && {
|
|
1260
1236
|
TaskLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.TaskLogs, context),
|
|
1261
|
-
})), (input.WebserverLogs
|
|
1262
|
-
input.WebserverLogs !== null && {
|
|
1237
|
+
})), (input.WebserverLogs != null && {
|
|
1263
1238
|
WebserverLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
1264
|
-
})), (input.WorkerLogs
|
|
1265
|
-
input.WorkerLogs !== null && {
|
|
1239
|
+
})), (input.WorkerLogs != null && {
|
|
1266
1240
|
WorkerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WorkerLogs, context),
|
|
1267
1241
|
}));
|
|
1268
1242
|
};
|
|
@@ -1277,22 +1251,17 @@ var serializeAws_restJson1MetricData = function (input, context) {
|
|
|
1277
1251
|
});
|
|
1278
1252
|
};
|
|
1279
1253
|
var serializeAws_restJson1MetricDatum = function (input, context) {
|
|
1280
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions
|
|
1281
|
-
input.Dimensions !== null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) })), (input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName })), (input.StatisticValues !== undefined &&
|
|
1282
|
-
input.StatisticValues !== null && {
|
|
1254
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) })), (input.MetricName != null && { MetricName: input.MetricName })), (input.StatisticValues != null && {
|
|
1283
1255
|
StatisticValues: serializeAws_restJson1StatisticSet(input.StatisticValues, context),
|
|
1284
|
-
})), (input.Timestamp
|
|
1285
|
-
input.Timestamp !== null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit })), (input.Value !== undefined && input.Value !== null && { Value: __serializeFloat(input.Value) }));
|
|
1256
|
+
})), (input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) })), (input.Unit != null && { Unit: input.Unit })), (input.Value != null && { Value: __serializeFloat(input.Value) }));
|
|
1286
1257
|
};
|
|
1287
1258
|
var serializeAws_restJson1ModuleLoggingConfigurationInput = function (input, context) {
|
|
1288
|
-
return __assign(__assign({}, (input.Enabled
|
|
1259
|
+
return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.LogLevel != null && { LogLevel: input.LogLevel }));
|
|
1289
1260
|
};
|
|
1290
1261
|
var serializeAws_restJson1NetworkConfiguration = function (input, context) {
|
|
1291
|
-
return __assign(__assign({}, (input.SecurityGroupIds
|
|
1292
|
-
input.SecurityGroupIds !== null && {
|
|
1262
|
+
return __assign(__assign({}, (input.SecurityGroupIds != null && {
|
|
1293
1263
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
1294
|
-
})), (input.SubnetIds
|
|
1295
|
-
input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }));
|
|
1264
|
+
})), (input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }));
|
|
1296
1265
|
};
|
|
1297
1266
|
var serializeAws_restJson1SecurityGroupList = function (input, context) {
|
|
1298
1267
|
return input
|
|
@@ -1305,7 +1274,7 @@ var serializeAws_restJson1SecurityGroupList = function (input, context) {
|
|
|
1305
1274
|
});
|
|
1306
1275
|
};
|
|
1307
1276
|
var serializeAws_restJson1StatisticSet = function (input, context) {
|
|
1308
|
-
return __assign(__assign(__assign(__assign({}, (input.Maximum
|
|
1277
|
+
return __assign(__assign(__assign(__assign({}, (input.Maximum != null && { Maximum: __serializeFloat(input.Maximum) })), (input.Minimum != null && { Minimum: __serializeFloat(input.Minimum) })), (input.SampleCount != null && { SampleCount: input.SampleCount })), (input.Sum != null && { Sum: __serializeFloat(input.Sum) }));
|
|
1309
1278
|
};
|
|
1310
1279
|
var serializeAws_restJson1SubnetList = function (input, context) {
|
|
1311
1280
|
return input
|
|
@@ -1328,8 +1297,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
1328
1297
|
}, {});
|
|
1329
1298
|
};
|
|
1330
1299
|
var serializeAws_restJson1UpdateNetworkConfigurationInput = function (input, context) {
|
|
1331
|
-
return __assign({}, (input.SecurityGroupIds
|
|
1332
|
-
input.SecurityGroupIds !== null && {
|
|
1300
|
+
return __assign({}, (input.SecurityGroupIds != null && {
|
|
1333
1301
|
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
1334
1302
|
}));
|
|
1335
1303
|
};
|
|
@@ -1345,28 +1313,24 @@ var deserializeAws_restJson1AirflowConfigurationOptions = function (output, cont
|
|
|
1345
1313
|
};
|
|
1346
1314
|
var deserializeAws_restJson1Environment = function (output, context) {
|
|
1347
1315
|
return {
|
|
1348
|
-
AirflowConfigurationOptions: output.AirflowConfigurationOptions
|
|
1316
|
+
AirflowConfigurationOptions: output.AirflowConfigurationOptions != null
|
|
1349
1317
|
? deserializeAws_restJson1AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
|
|
1350
1318
|
: undefined,
|
|
1351
1319
|
AirflowVersion: __expectString(output.AirflowVersion),
|
|
1352
1320
|
Arn: __expectString(output.Arn),
|
|
1353
|
-
CreatedAt: output.CreatedAt
|
|
1354
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
1355
|
-
: undefined,
|
|
1321
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1356
1322
|
DagS3Path: __expectString(output.DagS3Path),
|
|
1357
1323
|
EnvironmentClass: __expectString(output.EnvironmentClass),
|
|
1358
1324
|
ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
|
|
1359
1325
|
KmsKey: __expectString(output.KmsKey),
|
|
1360
|
-
LastUpdate: output.LastUpdate
|
|
1361
|
-
|
|
1362
|
-
: undefined,
|
|
1363
|
-
LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
|
|
1326
|
+
LastUpdate: output.LastUpdate != null ? deserializeAws_restJson1LastUpdate(output.LastUpdate, context) : undefined,
|
|
1327
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
1364
1328
|
? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
1365
1329
|
: undefined,
|
|
1366
1330
|
MaxWorkers: __expectInt32(output.MaxWorkers),
|
|
1367
1331
|
MinWorkers: __expectInt32(output.MinWorkers),
|
|
1368
1332
|
Name: __expectString(output.Name),
|
|
1369
|
-
NetworkConfiguration: output.NetworkConfiguration
|
|
1333
|
+
NetworkConfiguration: output.NetworkConfiguration != null
|
|
1370
1334
|
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
1371
1335
|
: undefined,
|
|
1372
1336
|
PluginsS3ObjectVersion: __expectString(output.PluginsS3ObjectVersion),
|
|
@@ -1377,9 +1341,7 @@ var deserializeAws_restJson1Environment = function (output, context) {
|
|
|
1377
1341
|
ServiceRoleArn: __expectString(output.ServiceRoleArn),
|
|
1378
1342
|
SourceBucketArn: __expectString(output.SourceBucketArn),
|
|
1379
1343
|
Status: __expectString(output.Status),
|
|
1380
|
-
Tags: output.Tags
|
|
1381
|
-
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
1382
|
-
: undefined,
|
|
1344
|
+
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
1383
1345
|
WebserverAccessMode: __expectString(output.WebserverAccessMode),
|
|
1384
1346
|
WebserverUrl: __expectString(output.WebserverUrl),
|
|
1385
1347
|
WeeklyMaintenanceWindowStart: __expectString(output.WeeklyMaintenanceWindowStart),
|
|
@@ -1398,31 +1360,27 @@ var deserializeAws_restJson1EnvironmentList = function (output, context) {
|
|
|
1398
1360
|
};
|
|
1399
1361
|
var deserializeAws_restJson1LastUpdate = function (output, context) {
|
|
1400
1362
|
return {
|
|
1401
|
-
CreatedAt: output.CreatedAt
|
|
1402
|
-
|
|
1403
|
-
: undefined,
|
|
1404
|
-
Error: output.Error !== undefined && output.Error !== null
|
|
1405
|
-
? deserializeAws_restJson1UpdateError(output.Error, context)
|
|
1406
|
-
: undefined,
|
|
1363
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1364
|
+
Error: output.Error != null ? deserializeAws_restJson1UpdateError(output.Error, context) : undefined,
|
|
1407
1365
|
Source: __expectString(output.Source),
|
|
1408
1366
|
Status: __expectString(output.Status),
|
|
1409
1367
|
};
|
|
1410
1368
|
};
|
|
1411
1369
|
var deserializeAws_restJson1LoggingConfiguration = function (output, context) {
|
|
1412
1370
|
return {
|
|
1413
|
-
DagProcessingLogs: output.DagProcessingLogs
|
|
1371
|
+
DagProcessingLogs: output.DagProcessingLogs != null
|
|
1414
1372
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.DagProcessingLogs, context)
|
|
1415
1373
|
: undefined,
|
|
1416
|
-
SchedulerLogs: output.SchedulerLogs
|
|
1374
|
+
SchedulerLogs: output.SchedulerLogs != null
|
|
1417
1375
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.SchedulerLogs, context)
|
|
1418
1376
|
: undefined,
|
|
1419
|
-
TaskLogs: output.TaskLogs
|
|
1377
|
+
TaskLogs: output.TaskLogs != null
|
|
1420
1378
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.TaskLogs, context)
|
|
1421
1379
|
: undefined,
|
|
1422
|
-
WebserverLogs: output.WebserverLogs
|
|
1380
|
+
WebserverLogs: output.WebserverLogs != null
|
|
1423
1381
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WebserverLogs, context)
|
|
1424
1382
|
: undefined,
|
|
1425
|
-
WorkerLogs: output.WorkerLogs
|
|
1383
|
+
WorkerLogs: output.WorkerLogs != null
|
|
1426
1384
|
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WorkerLogs, context)
|
|
1427
1385
|
: undefined,
|
|
1428
1386
|
};
|
|
@@ -1436,12 +1394,10 @@ var deserializeAws_restJson1ModuleLoggingConfiguration = function (output, conte
|
|
|
1436
1394
|
};
|
|
1437
1395
|
var deserializeAws_restJson1NetworkConfiguration = function (output, context) {
|
|
1438
1396
|
return {
|
|
1439
|
-
SecurityGroupIds: output.SecurityGroupIds
|
|
1397
|
+
SecurityGroupIds: output.SecurityGroupIds != null
|
|
1440
1398
|
? deserializeAws_restJson1SecurityGroupList(output.SecurityGroupIds, context)
|
|
1441
1399
|
: undefined,
|
|
1442
|
-
SubnetIds: output.SubnetIds
|
|
1443
|
-
? deserializeAws_restJson1SubnetList(output.SubnetIds, context)
|
|
1444
|
-
: undefined,
|
|
1400
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetList(output.SubnetIds, context) : undefined,
|
|
1445
1401
|
};
|
|
1446
1402
|
};
|
|
1447
1403
|
var deserializeAws_restJson1SecurityGroupList = function (output, context) {
|
|
@@ -1520,6 +1476,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1520
1476
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1521
1477
|
var sanitizeErrorCode = function (rawValue) {
|
|
1522
1478
|
var cleanValue = rawValue;
|
|
1479
|
+
if (typeof cleanValue === "number") {
|
|
1480
|
+
cleanValue = cleanValue.toString();
|
|
1481
|
+
}
|
|
1523
1482
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1524
1483
|
cleanValue = cleanValue.split(":")[0];
|
|
1525
1484
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mwaa",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mwaa Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|