@aws-sdk/client-mwaa 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateCliTokenCommand.js +2 -2
- package/dist-cjs/commands/CreateEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/CreateWebLoginTokenCommand.js +2 -2
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/GetEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/ListEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PublishMetricsCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +161 -187
- package/dist-es/commands/CreateCliTokenCommand.js +3 -3
- package/dist-es/commands/CreateEnvironmentCommand.js +3 -3
- package/dist-es/commands/CreateWebLoginTokenCommand.js +3 -3
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -3
- package/dist-es/commands/GetEnvironmentCommand.js +3 -3
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PublishMetricsCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateEnvironmentCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +138 -164
- package/dist-types/protocols/Aws_restJson1.d.ts +88 -22
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +22 -22
- package/package.json +35 -35
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PublishMetricsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentsCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateWebLoginTokenCommand = exports.de_CreateEnvironmentCommand = exports.de_CreateCliTokenCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PublishMetricsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentsCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateWebLoginTokenCommand = exports.se_CreateEnvironmentCommand = exports.se_CreateCliTokenCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const MWAAServiceException_1 = require("../models/MWAAServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateCliTokenCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clitoken/{Name}";
|
|
@@ -28,8 +28,8 @@ const serializeAws_restJson1CreateCliTokenCommand = async (input, context) => {
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
31
|
+
exports.se_CreateCliTokenCommand = se_CreateCliTokenCommand;
|
|
32
|
+
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
@@ -39,7 +39,7 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
39
39
|
let body;
|
|
40
40
|
body = JSON.stringify({
|
|
41
41
|
...(input.AirflowConfigurationOptions != null && {
|
|
42
|
-
AirflowConfigurationOptions:
|
|
42
|
+
AirflowConfigurationOptions: se_AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
43
43
|
}),
|
|
44
44
|
...(input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion }),
|
|
45
45
|
...(input.DagS3Path != null && { DagS3Path: input.DagS3Path }),
|
|
@@ -47,12 +47,12 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
47
47
|
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
48
48
|
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
49
49
|
...(input.LoggingConfiguration != null && {
|
|
50
|
-
LoggingConfiguration:
|
|
50
|
+
LoggingConfiguration: se_LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
51
51
|
}),
|
|
52
52
|
...(input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers }),
|
|
53
53
|
...(input.MinWorkers != null && { MinWorkers: input.MinWorkers }),
|
|
54
54
|
...(input.NetworkConfiguration != null && {
|
|
55
|
-
NetworkConfiguration:
|
|
55
|
+
NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
|
|
56
56
|
}),
|
|
57
57
|
...(input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion }),
|
|
58
58
|
...(input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path }),
|
|
@@ -66,7 +66,7 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
66
66
|
StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
|
|
67
67
|
}),
|
|
68
68
|
...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
|
|
69
|
-
...(input.Tags != null && { Tags:
|
|
69
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
70
70
|
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
71
71
|
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
72
72
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
@@ -89,8 +89,8 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
89
89
|
body,
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
exports.
|
|
93
|
-
const
|
|
92
|
+
exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
|
|
93
|
+
const se_CreateWebLoginTokenCommand = async (input, context) => {
|
|
94
94
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
95
|
const headers = {};
|
|
96
96
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webtoken/{Name}";
|
|
@@ -113,8 +113,8 @@ const serializeAws_restJson1CreateWebLoginTokenCommand = async (input, context)
|
|
|
113
113
|
body,
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
|
-
exports.
|
|
117
|
-
const
|
|
116
|
+
exports.se_CreateWebLoginTokenCommand = se_CreateWebLoginTokenCommand;
|
|
117
|
+
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
118
118
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
119
|
const headers = {};
|
|
120
120
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
@@ -137,8 +137,8 @@ const serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) =>
|
|
|
137
137
|
body,
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
|
-
exports.
|
|
141
|
-
const
|
|
140
|
+
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
141
|
+
const se_GetEnvironmentCommand = async (input, context) => {
|
|
142
142
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
143
143
|
const headers = {};
|
|
144
144
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
@@ -161,8 +161,8 @@ const serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
|
|
|
161
161
|
body,
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
|
-
exports.
|
|
165
|
-
const
|
|
164
|
+
exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
|
|
165
|
+
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
166
166
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
167
|
const headers = {};
|
|
168
168
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
@@ -189,8 +189,8 @@ const serializeAws_restJson1ListEnvironmentsCommand = async (input, context) =>
|
|
|
189
189
|
body,
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
192
|
+
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
193
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
194
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
195
|
const headers = {};
|
|
196
196
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -213,8 +213,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
213
213
|
body,
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
exports.
|
|
217
|
-
const
|
|
216
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
217
|
+
const se_PublishMetricsCommand = async (input, context) => {
|
|
218
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
219
219
|
const headers = {
|
|
220
220
|
"content-type": "application/json",
|
|
@@ -223,7 +223,7 @@ const serializeAws_restJson1PublishMetricsCommand = async (input, context) => {
|
|
|
223
223
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
|
|
224
224
|
let body;
|
|
225
225
|
body = JSON.stringify({
|
|
226
|
-
...(input.MetricData != null && { MetricData:
|
|
226
|
+
...(input.MetricData != null && { MetricData: se_MetricData(input.MetricData, context) }),
|
|
227
227
|
});
|
|
228
228
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
229
229
|
if (context.disableHostPrefix !== true) {
|
|
@@ -242,8 +242,8 @@ const serializeAws_restJson1PublishMetricsCommand = async (input, context) => {
|
|
|
242
242
|
body,
|
|
243
243
|
});
|
|
244
244
|
};
|
|
245
|
-
exports.
|
|
246
|
-
const
|
|
245
|
+
exports.se_PublishMetricsCommand = se_PublishMetricsCommand;
|
|
246
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
247
247
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
248
248
|
const headers = {
|
|
249
249
|
"content-type": "application/json",
|
|
@@ -252,7 +252,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
252
252
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
253
253
|
let body;
|
|
254
254
|
body = JSON.stringify({
|
|
255
|
-
...(input.Tags != null && { Tags:
|
|
255
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
256
256
|
});
|
|
257
257
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
258
258
|
if (context.disableHostPrefix !== true) {
|
|
@@ -271,8 +271,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
271
271
|
body,
|
|
272
272
|
});
|
|
273
273
|
};
|
|
274
|
-
exports.
|
|
275
|
-
const
|
|
274
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
275
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
276
276
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
277
277
|
const headers = {};
|
|
278
278
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -302,8 +302,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
302
302
|
body,
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
|
-
exports.
|
|
306
|
-
const
|
|
305
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
306
|
+
const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
307
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
308
|
const headers = {
|
|
309
309
|
"content-type": "application/json",
|
|
@@ -313,19 +313,19 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
313
313
|
let body;
|
|
314
314
|
body = JSON.stringify({
|
|
315
315
|
...(input.AirflowConfigurationOptions != null && {
|
|
316
|
-
AirflowConfigurationOptions:
|
|
316
|
+
AirflowConfigurationOptions: se_AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
317
317
|
}),
|
|
318
318
|
...(input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion }),
|
|
319
319
|
...(input.DagS3Path != null && { DagS3Path: input.DagS3Path }),
|
|
320
320
|
...(input.EnvironmentClass != null && { EnvironmentClass: input.EnvironmentClass }),
|
|
321
321
|
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
322
322
|
...(input.LoggingConfiguration != null && {
|
|
323
|
-
LoggingConfiguration:
|
|
323
|
+
LoggingConfiguration: se_LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
324
324
|
}),
|
|
325
325
|
...(input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers }),
|
|
326
326
|
...(input.MinWorkers != null && { MinWorkers: input.MinWorkers }),
|
|
327
327
|
...(input.NetworkConfiguration != null && {
|
|
328
|
-
NetworkConfiguration:
|
|
328
|
+
NetworkConfiguration: se_UpdateNetworkConfigurationInput(input.NetworkConfiguration, context),
|
|
329
329
|
}),
|
|
330
330
|
...(input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion }),
|
|
331
331
|
...(input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path }),
|
|
@@ -361,10 +361,10 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
361
361
|
body,
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
|
-
exports.
|
|
365
|
-
const
|
|
364
|
+
exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
|
|
365
|
+
const de_CreateCliTokenCommand = async (output, context) => {
|
|
366
366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
|
-
return
|
|
367
|
+
return de_CreateCliTokenCommandError(output, context);
|
|
368
368
|
}
|
|
369
369
|
const contents = map({
|
|
370
370
|
$metadata: deserializeMetadata(output),
|
|
@@ -378,8 +378,8 @@ const deserializeAws_restJson1CreateCliTokenCommand = async (output, context) =>
|
|
|
378
378
|
}
|
|
379
379
|
return contents;
|
|
380
380
|
};
|
|
381
|
-
exports.
|
|
382
|
-
const
|
|
381
|
+
exports.de_CreateCliTokenCommand = de_CreateCliTokenCommand;
|
|
382
|
+
const de_CreateCliTokenCommandError = async (output, context) => {
|
|
383
383
|
const parsedOutput = {
|
|
384
384
|
...output,
|
|
385
385
|
body: await parseErrorBody(output.body, context),
|
|
@@ -388,7 +388,7 @@ const deserializeAws_restJson1CreateCliTokenCommandError = async (output, contex
|
|
|
388
388
|
switch (errorCode) {
|
|
389
389
|
case "ResourceNotFoundException":
|
|
390
390
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
391
|
-
throw await
|
|
391
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
392
392
|
default:
|
|
393
393
|
const parsedBody = parsedOutput.body;
|
|
394
394
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -399,9 +399,9 @@ const deserializeAws_restJson1CreateCliTokenCommandError = async (output, contex
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
|
-
const
|
|
402
|
+
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
403
403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
404
|
-
return
|
|
404
|
+
return de_CreateEnvironmentCommandError(output, context);
|
|
405
405
|
}
|
|
406
406
|
const contents = map({
|
|
407
407
|
$metadata: deserializeMetadata(output),
|
|
@@ -412,8 +412,8 @@ const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context)
|
|
|
412
412
|
}
|
|
413
413
|
return contents;
|
|
414
414
|
};
|
|
415
|
-
exports.
|
|
416
|
-
const
|
|
415
|
+
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
416
|
+
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
417
417
|
const parsedOutput = {
|
|
418
418
|
...output,
|
|
419
419
|
body: await parseErrorBody(output.body, context),
|
|
@@ -422,10 +422,10 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
422
422
|
switch (errorCode) {
|
|
423
423
|
case "InternalServerException":
|
|
424
424
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
425
|
-
throw await
|
|
425
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
426
426
|
case "ValidationException":
|
|
427
427
|
case "com.amazonaws.mwaa#ValidationException":
|
|
428
|
-
throw await
|
|
428
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
429
429
|
default:
|
|
430
430
|
const parsedBody = parsedOutput.body;
|
|
431
431
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -436,9 +436,9 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
|
-
const
|
|
439
|
+
const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
440
440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return
|
|
441
|
+
return de_CreateWebLoginTokenCommandError(output, context);
|
|
442
442
|
}
|
|
443
443
|
const contents = map({
|
|
444
444
|
$metadata: deserializeMetadata(output),
|
|
@@ -452,8 +452,8 @@ const deserializeAws_restJson1CreateWebLoginTokenCommand = async (output, contex
|
|
|
452
452
|
}
|
|
453
453
|
return contents;
|
|
454
454
|
};
|
|
455
|
-
exports.
|
|
456
|
-
const
|
|
455
|
+
exports.de_CreateWebLoginTokenCommand = de_CreateWebLoginTokenCommand;
|
|
456
|
+
const de_CreateWebLoginTokenCommandError = async (output, context) => {
|
|
457
457
|
const parsedOutput = {
|
|
458
458
|
...output,
|
|
459
459
|
body: await parseErrorBody(output.body, context),
|
|
@@ -462,16 +462,16 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
462
462
|
switch (errorCode) {
|
|
463
463
|
case "AccessDeniedException":
|
|
464
464
|
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
465
|
-
throw await
|
|
465
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
466
466
|
case "InternalServerException":
|
|
467
467
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
468
|
-
throw await
|
|
468
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
469
469
|
case "ResourceNotFoundException":
|
|
470
470
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
471
|
-
throw await
|
|
471
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
472
472
|
case "ValidationException":
|
|
473
473
|
case "com.amazonaws.mwaa#ValidationException":
|
|
474
|
-
throw await
|
|
474
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
475
475
|
default:
|
|
476
476
|
const parsedBody = parsedOutput.body;
|
|
477
477
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -482,9 +482,9 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
|
-
const
|
|
485
|
+
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
486
486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return
|
|
487
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
488
488
|
}
|
|
489
489
|
const contents = map({
|
|
490
490
|
$metadata: deserializeMetadata(output),
|
|
@@ -492,8 +492,8 @@ const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context)
|
|
|
492
492
|
await collectBody(output.body, context);
|
|
493
493
|
return contents;
|
|
494
494
|
};
|
|
495
|
-
exports.
|
|
496
|
-
const
|
|
495
|
+
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
496
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
497
497
|
const parsedOutput = {
|
|
498
498
|
...output,
|
|
499
499
|
body: await parseErrorBody(output.body, context),
|
|
@@ -502,13 +502,13 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
502
502
|
switch (errorCode) {
|
|
503
503
|
case "InternalServerException":
|
|
504
504
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
505
|
-
throw await
|
|
505
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
506
506
|
case "ResourceNotFoundException":
|
|
507
507
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
509
509
|
case "ValidationException":
|
|
510
510
|
case "com.amazonaws.mwaa#ValidationException":
|
|
511
|
-
throw await
|
|
511
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
512
512
|
default:
|
|
513
513
|
const parsedBody = parsedOutput.body;
|
|
514
514
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -519,21 +519,21 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
const
|
|
522
|
+
const de_GetEnvironmentCommand = async (output, context) => {
|
|
523
523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return
|
|
524
|
+
return de_GetEnvironmentCommandError(output, context);
|
|
525
525
|
}
|
|
526
526
|
const contents = map({
|
|
527
527
|
$metadata: deserializeMetadata(output),
|
|
528
528
|
});
|
|
529
529
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
530
530
|
if (data.Environment != null) {
|
|
531
|
-
contents.Environment =
|
|
531
|
+
contents.Environment = de_Environment(data.Environment, context);
|
|
532
532
|
}
|
|
533
533
|
return contents;
|
|
534
534
|
};
|
|
535
|
-
exports.
|
|
536
|
-
const
|
|
535
|
+
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
536
|
+
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
537
537
|
const parsedOutput = {
|
|
538
538
|
...output,
|
|
539
539
|
body: await parseErrorBody(output.body, context),
|
|
@@ -542,13 +542,13 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
542
542
|
switch (errorCode) {
|
|
543
543
|
case "InternalServerException":
|
|
544
544
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
545
|
-
throw await
|
|
545
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
546
|
case "ResourceNotFoundException":
|
|
547
547
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
548
|
-
throw await
|
|
548
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
549
549
|
case "ValidationException":
|
|
550
550
|
case "com.amazonaws.mwaa#ValidationException":
|
|
551
|
-
throw await
|
|
551
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
552
|
default:
|
|
553
553
|
const parsedBody = parsedOutput.body;
|
|
554
554
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -559,24 +559,24 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
};
|
|
562
|
-
const
|
|
562
|
+
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
563
563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return
|
|
564
|
+
return de_ListEnvironmentsCommandError(output, context);
|
|
565
565
|
}
|
|
566
566
|
const contents = map({
|
|
567
567
|
$metadata: deserializeMetadata(output),
|
|
568
568
|
});
|
|
569
569
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
570
570
|
if (data.Environments != null) {
|
|
571
|
-
contents.Environments =
|
|
571
|
+
contents.Environments = de_EnvironmentList(data.Environments, context);
|
|
572
572
|
}
|
|
573
573
|
if (data.NextToken != null) {
|
|
574
574
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
575
575
|
}
|
|
576
576
|
return contents;
|
|
577
577
|
};
|
|
578
|
-
exports.
|
|
579
|
-
const
|
|
578
|
+
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
579
|
+
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
580
580
|
const parsedOutput = {
|
|
581
581
|
...output,
|
|
582
582
|
body: await parseErrorBody(output.body, context),
|
|
@@ -585,10 +585,10 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
585
585
|
switch (errorCode) {
|
|
586
586
|
case "InternalServerException":
|
|
587
587
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
588
|
-
throw await
|
|
588
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
589
589
|
case "ValidationException":
|
|
590
590
|
case "com.amazonaws.mwaa#ValidationException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
592
592
|
default:
|
|
593
593
|
const parsedBody = parsedOutput.body;
|
|
594
594
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -599,21 +599,21 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
const
|
|
602
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
603
603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
|
-
return
|
|
604
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
605
605
|
}
|
|
606
606
|
const contents = map({
|
|
607
607
|
$metadata: deserializeMetadata(output),
|
|
608
608
|
});
|
|
609
609
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
610
610
|
if (data.Tags != null) {
|
|
611
|
-
contents.Tags =
|
|
611
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
612
612
|
}
|
|
613
613
|
return contents;
|
|
614
614
|
};
|
|
615
|
-
exports.
|
|
616
|
-
const
|
|
615
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
616
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
617
617
|
const parsedOutput = {
|
|
618
618
|
...output,
|
|
619
619
|
body: await parseErrorBody(output.body, context),
|
|
@@ -622,13 +622,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
622
622
|
switch (errorCode) {
|
|
623
623
|
case "InternalServerException":
|
|
624
624
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
625
|
-
throw await
|
|
625
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
626
626
|
case "ResourceNotFoundException":
|
|
627
627
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
628
|
-
throw await
|
|
628
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
629
629
|
case "ValidationException":
|
|
630
630
|
case "com.amazonaws.mwaa#ValidationException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
632
632
|
default:
|
|
633
633
|
const parsedBody = parsedOutput.body;
|
|
634
634
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -639,9 +639,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
|
-
const
|
|
642
|
+
const de_PublishMetricsCommand = async (output, context) => {
|
|
643
643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
-
return
|
|
644
|
+
return de_PublishMetricsCommandError(output, context);
|
|
645
645
|
}
|
|
646
646
|
const contents = map({
|
|
647
647
|
$metadata: deserializeMetadata(output),
|
|
@@ -649,8 +649,8 @@ const deserializeAws_restJson1PublishMetricsCommand = async (output, context) =>
|
|
|
649
649
|
await collectBody(output.body, context);
|
|
650
650
|
return contents;
|
|
651
651
|
};
|
|
652
|
-
exports.
|
|
653
|
-
const
|
|
652
|
+
exports.de_PublishMetricsCommand = de_PublishMetricsCommand;
|
|
653
|
+
const de_PublishMetricsCommandError = async (output, context) => {
|
|
654
654
|
const parsedOutput = {
|
|
655
655
|
...output,
|
|
656
656
|
body: await parseErrorBody(output.body, context),
|
|
@@ -659,10 +659,10 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
659
659
|
switch (errorCode) {
|
|
660
660
|
case "InternalServerException":
|
|
661
661
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
662
|
-
throw await
|
|
662
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
663
663
|
case "ValidationException":
|
|
664
664
|
case "com.amazonaws.mwaa#ValidationException":
|
|
665
|
-
throw await
|
|
665
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
666
|
default:
|
|
667
667
|
const parsedBody = parsedOutput.body;
|
|
668
668
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -673,9 +673,9 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
673
673
|
});
|
|
674
674
|
}
|
|
675
675
|
};
|
|
676
|
-
const
|
|
676
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
677
677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return
|
|
678
|
+
return de_TagResourceCommandError(output, context);
|
|
679
679
|
}
|
|
680
680
|
const contents = map({
|
|
681
681
|
$metadata: deserializeMetadata(output),
|
|
@@ -683,8 +683,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
683
683
|
await collectBody(output.body, context);
|
|
684
684
|
return contents;
|
|
685
685
|
};
|
|
686
|
-
exports.
|
|
687
|
-
const
|
|
686
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
687
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
688
688
|
const parsedOutput = {
|
|
689
689
|
...output,
|
|
690
690
|
body: await parseErrorBody(output.body, context),
|
|
@@ -693,13 +693,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
693
693
|
switch (errorCode) {
|
|
694
694
|
case "InternalServerException":
|
|
695
695
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
696
|
-
throw await
|
|
696
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
697
697
|
case "ResourceNotFoundException":
|
|
698
698
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
699
|
-
throw await
|
|
699
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
700
700
|
case "ValidationException":
|
|
701
701
|
case "com.amazonaws.mwaa#ValidationException":
|
|
702
|
-
throw await
|
|
702
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
703
|
default:
|
|
704
704
|
const parsedBody = parsedOutput.body;
|
|
705
705
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -710,9 +710,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
|
-
const
|
|
713
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
714
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
|
-
return
|
|
715
|
+
return de_UntagResourceCommandError(output, context);
|
|
716
716
|
}
|
|
717
717
|
const contents = map({
|
|
718
718
|
$metadata: deserializeMetadata(output),
|
|
@@ -720,8 +720,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
720
720
|
await collectBody(output.body, context);
|
|
721
721
|
return contents;
|
|
722
722
|
};
|
|
723
|
-
exports.
|
|
724
|
-
const
|
|
723
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
724
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
725
725
|
const parsedOutput = {
|
|
726
726
|
...output,
|
|
727
727
|
body: await parseErrorBody(output.body, context),
|
|
@@ -730,13 +730,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
730
730
|
switch (errorCode) {
|
|
731
731
|
case "InternalServerException":
|
|
732
732
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
733
|
-
throw await
|
|
733
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
734
734
|
case "ResourceNotFoundException":
|
|
735
735
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
736
|
-
throw await
|
|
736
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
737
737
|
case "ValidationException":
|
|
738
738
|
case "com.amazonaws.mwaa#ValidationException":
|
|
739
|
-
throw await
|
|
739
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
740
|
default:
|
|
741
741
|
const parsedBody = parsedOutput.body;
|
|
742
742
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -747,9 +747,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
749
|
};
|
|
750
|
-
const
|
|
750
|
+
const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
751
751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
-
return
|
|
752
|
+
return de_UpdateEnvironmentCommandError(output, context);
|
|
753
753
|
}
|
|
754
754
|
const contents = map({
|
|
755
755
|
$metadata: deserializeMetadata(output),
|
|
@@ -760,8 +760,8 @@ const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context)
|
|
|
760
760
|
}
|
|
761
761
|
return contents;
|
|
762
762
|
};
|
|
763
|
-
exports.
|
|
764
|
-
const
|
|
763
|
+
exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
|
|
764
|
+
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
765
765
|
const parsedOutput = {
|
|
766
766
|
...output,
|
|
767
767
|
body: await parseErrorBody(output.body, context),
|
|
@@ -770,13 +770,13 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
770
770
|
switch (errorCode) {
|
|
771
771
|
case "InternalServerException":
|
|
772
772
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
773
|
-
throw await
|
|
773
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
774
774
|
case "ResourceNotFoundException":
|
|
775
775
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
776
|
-
throw await
|
|
776
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
777
777
|
case "ValidationException":
|
|
778
778
|
case "com.amazonaws.mwaa#ValidationException":
|
|
779
|
-
throw await
|
|
779
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
780
|
default:
|
|
781
781
|
const parsedBody = parsedOutput.body;
|
|
782
782
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -788,7 +788,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
const map = smithy_client_1.map;
|
|
791
|
-
const
|
|
791
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
792
792
|
const contents = map({});
|
|
793
793
|
const data = parsedOutput.body;
|
|
794
794
|
if (data.Message != null) {
|
|
@@ -800,7 +800,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
800
800
|
});
|
|
801
801
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
802
802
|
};
|
|
803
|
-
const
|
|
803
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
804
804
|
const contents = map({});
|
|
805
805
|
const data = parsedOutput.body;
|
|
806
806
|
if (data.message != null) {
|
|
@@ -812,7 +812,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
812
812
|
});
|
|
813
813
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
814
814
|
};
|
|
815
|
-
const
|
|
815
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
816
816
|
const contents = map({});
|
|
817
817
|
const data = parsedOutput.body;
|
|
818
818
|
if (data.message != null) {
|
|
@@ -824,7 +824,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
824
824
|
});
|
|
825
825
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
826
826
|
};
|
|
827
|
-
const
|
|
827
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
828
828
|
const contents = map({});
|
|
829
829
|
const data = parsedOutput.body;
|
|
830
830
|
if (data.message != null) {
|
|
@@ -836,7 +836,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
836
836
|
});
|
|
837
837
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
838
838
|
};
|
|
839
|
-
const
|
|
839
|
+
const se_AirflowConfigurationOptions = (input, context) => {
|
|
840
840
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
841
841
|
if (value === null) {
|
|
842
842
|
return acc;
|
|
@@ -845,79 +845,71 @@ const serializeAws_restJson1AirflowConfigurationOptions = (input, context) => {
|
|
|
845
845
|
return acc;
|
|
846
846
|
}, {});
|
|
847
847
|
};
|
|
848
|
-
const
|
|
848
|
+
const se_Dimension = (input, context) => {
|
|
849
849
|
return {
|
|
850
850
|
...(input.Name != null && { Name: input.Name }),
|
|
851
851
|
...(input.Value != null && { Value: input.Value }),
|
|
852
852
|
};
|
|
853
853
|
};
|
|
854
|
-
const
|
|
854
|
+
const se_Dimensions = (input, context) => {
|
|
855
855
|
return input
|
|
856
856
|
.filter((e) => e != null)
|
|
857
857
|
.map((entry) => {
|
|
858
|
-
return
|
|
858
|
+
return se_Dimension(entry, context);
|
|
859
859
|
});
|
|
860
860
|
};
|
|
861
|
-
const
|
|
861
|
+
const se_LoggingConfigurationInput = (input, context) => {
|
|
862
862
|
return {
|
|
863
863
|
...(input.DagProcessingLogs != null && {
|
|
864
|
-
DagProcessingLogs:
|
|
864
|
+
DagProcessingLogs: se_ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
865
865
|
}),
|
|
866
866
|
...(input.SchedulerLogs != null && {
|
|
867
|
-
SchedulerLogs:
|
|
868
|
-
}),
|
|
869
|
-
...(input.TaskLogs != null && {
|
|
870
|
-
TaskLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.TaskLogs, context),
|
|
867
|
+
SchedulerLogs: se_ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
871
868
|
}),
|
|
869
|
+
...(input.TaskLogs != null && { TaskLogs: se_ModuleLoggingConfigurationInput(input.TaskLogs, context) }),
|
|
872
870
|
...(input.WebserverLogs != null && {
|
|
873
|
-
WebserverLogs:
|
|
874
|
-
}),
|
|
875
|
-
...(input.WorkerLogs != null && {
|
|
876
|
-
WorkerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WorkerLogs, context),
|
|
871
|
+
WebserverLogs: se_ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
877
872
|
}),
|
|
873
|
+
...(input.WorkerLogs != null && { WorkerLogs: se_ModuleLoggingConfigurationInput(input.WorkerLogs, context) }),
|
|
878
874
|
};
|
|
879
875
|
};
|
|
880
|
-
const
|
|
876
|
+
const se_MetricData = (input, context) => {
|
|
881
877
|
return input
|
|
882
878
|
.filter((e) => e != null)
|
|
883
879
|
.map((entry) => {
|
|
884
|
-
return
|
|
880
|
+
return se_MetricDatum(entry, context);
|
|
885
881
|
});
|
|
886
882
|
};
|
|
887
|
-
const
|
|
883
|
+
const se_MetricDatum = (input, context) => {
|
|
888
884
|
return {
|
|
889
|
-
...(input.Dimensions != null && { Dimensions:
|
|
885
|
+
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
890
886
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
891
|
-
...(input.StatisticValues != null && {
|
|
892
|
-
StatisticValues: serializeAws_restJson1StatisticSet(input.StatisticValues, context),
|
|
893
|
-
}),
|
|
887
|
+
...(input.StatisticValues != null && { StatisticValues: se_StatisticSet(input.StatisticValues, context) }),
|
|
894
888
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
895
889
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
896
890
|
...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
|
|
897
891
|
};
|
|
898
892
|
};
|
|
899
|
-
const
|
|
893
|
+
const se_ModuleLoggingConfigurationInput = (input, context) => {
|
|
900
894
|
return {
|
|
901
895
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
902
896
|
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
903
897
|
};
|
|
904
898
|
};
|
|
905
|
-
const
|
|
899
|
+
const se_NetworkConfiguration = (input, context) => {
|
|
906
900
|
return {
|
|
907
|
-
...(input.SecurityGroupIds != null && {
|
|
908
|
-
|
|
909
|
-
}),
|
|
910
|
-
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }),
|
|
901
|
+
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
902
|
+
...(input.SubnetIds != null && { SubnetIds: se_SubnetList(input.SubnetIds, context) }),
|
|
911
903
|
};
|
|
912
904
|
};
|
|
913
|
-
const
|
|
905
|
+
const se_SecurityGroupList = (input, context) => {
|
|
914
906
|
return input
|
|
915
907
|
.filter((e) => e != null)
|
|
916
908
|
.map((entry) => {
|
|
917
909
|
return entry;
|
|
918
910
|
});
|
|
919
911
|
};
|
|
920
|
-
const
|
|
912
|
+
const se_StatisticSet = (input, context) => {
|
|
921
913
|
return {
|
|
922
914
|
...(input.Maximum != null && { Maximum: (0, smithy_client_1.serializeFloat)(input.Maximum) }),
|
|
923
915
|
...(input.Minimum != null && { Minimum: (0, smithy_client_1.serializeFloat)(input.Minimum) }),
|
|
@@ -925,14 +917,14 @@ const serializeAws_restJson1StatisticSet = (input, context) => {
|
|
|
925
917
|
...(input.Sum != null && { Sum: (0, smithy_client_1.serializeFloat)(input.Sum) }),
|
|
926
918
|
};
|
|
927
919
|
};
|
|
928
|
-
const
|
|
920
|
+
const se_SubnetList = (input, context) => {
|
|
929
921
|
return input
|
|
930
922
|
.filter((e) => e != null)
|
|
931
923
|
.map((entry) => {
|
|
932
924
|
return entry;
|
|
933
925
|
});
|
|
934
926
|
};
|
|
935
|
-
const
|
|
927
|
+
const se_TagMap = (input, context) => {
|
|
936
928
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
937
929
|
if (value === null) {
|
|
938
930
|
return acc;
|
|
@@ -941,14 +933,12 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
941
933
|
return acc;
|
|
942
934
|
}, {});
|
|
943
935
|
};
|
|
944
|
-
const
|
|
936
|
+
const se_UpdateNetworkConfigurationInput = (input, context) => {
|
|
945
937
|
return {
|
|
946
|
-
...(input.SecurityGroupIds != null && {
|
|
947
|
-
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
948
|
-
}),
|
|
938
|
+
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
949
939
|
};
|
|
950
940
|
};
|
|
951
|
-
const
|
|
941
|
+
const de_AirflowConfigurationOptions = (output, context) => {
|
|
952
942
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
953
943
|
if (value === null) {
|
|
954
944
|
return acc;
|
|
@@ -957,10 +947,10 @@ const deserializeAws_restJson1AirflowConfigurationOptions = (output, context) =>
|
|
|
957
947
|
return acc;
|
|
958
948
|
}, {});
|
|
959
949
|
};
|
|
960
|
-
const
|
|
950
|
+
const de_Environment = (output, context) => {
|
|
961
951
|
return {
|
|
962
952
|
AirflowConfigurationOptions: output.AirflowConfigurationOptions != null
|
|
963
|
-
?
|
|
953
|
+
? de_AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
|
|
964
954
|
: undefined,
|
|
965
955
|
AirflowVersion: (0, smithy_client_1.expectString)(output.AirflowVersion),
|
|
966
956
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -969,16 +959,12 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
969
959
|
EnvironmentClass: (0, smithy_client_1.expectString)(output.EnvironmentClass),
|
|
970
960
|
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
971
961
|
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
972
|
-
LastUpdate: output.LastUpdate != null ?
|
|
973
|
-
LoggingConfiguration: output.LoggingConfiguration != null
|
|
974
|
-
? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
975
|
-
: undefined,
|
|
962
|
+
LastUpdate: output.LastUpdate != null ? de_LastUpdate(output.LastUpdate, context) : undefined,
|
|
963
|
+
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
976
964
|
MaxWorkers: (0, smithy_client_1.expectInt32)(output.MaxWorkers),
|
|
977
965
|
MinWorkers: (0, smithy_client_1.expectInt32)(output.MinWorkers),
|
|
978
966
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
979
|
-
NetworkConfiguration: output.NetworkConfiguration != null
|
|
980
|
-
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
981
|
-
: undefined,
|
|
967
|
+
NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
|
|
982
968
|
PluginsS3ObjectVersion: (0, smithy_client_1.expectString)(output.PluginsS3ObjectVersion),
|
|
983
969
|
PluginsS3Path: (0, smithy_client_1.expectString)(output.PluginsS3Path),
|
|
984
970
|
RequirementsS3ObjectVersion: (0, smithy_client_1.expectString)(output.RequirementsS3ObjectVersion),
|
|
@@ -989,13 +975,13 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
989
975
|
StartupScriptS3ObjectVersion: (0, smithy_client_1.expectString)(output.StartupScriptS3ObjectVersion),
|
|
990
976
|
StartupScriptS3Path: (0, smithy_client_1.expectString)(output.StartupScriptS3Path),
|
|
991
977
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
992
|
-
Tags: output.Tags != null ?
|
|
978
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
993
979
|
WebserverAccessMode: (0, smithy_client_1.expectString)(output.WebserverAccessMode),
|
|
994
980
|
WebserverUrl: (0, smithy_client_1.expectString)(output.WebserverUrl),
|
|
995
981
|
WeeklyMaintenanceWindowStart: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceWindowStart),
|
|
996
982
|
};
|
|
997
983
|
};
|
|
998
|
-
const
|
|
984
|
+
const de_EnvironmentList = (output, context) => {
|
|
999
985
|
const retVal = (output || [])
|
|
1000
986
|
.filter((e) => e != null)
|
|
1001
987
|
.map((entry) => {
|
|
@@ -1006,49 +992,37 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
|
1006
992
|
});
|
|
1007
993
|
return retVal;
|
|
1008
994
|
};
|
|
1009
|
-
const
|
|
995
|
+
const de_LastUpdate = (output, context) => {
|
|
1010
996
|
return {
|
|
1011
997
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
1012
|
-
Error: output.Error != null ?
|
|
998
|
+
Error: output.Error != null ? de_UpdateError(output.Error, context) : undefined,
|
|
1013
999
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1014
1000
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1015
1001
|
};
|
|
1016
1002
|
};
|
|
1017
|
-
const
|
|
1003
|
+
const de_LoggingConfiguration = (output, context) => {
|
|
1018
1004
|
return {
|
|
1019
|
-
DagProcessingLogs: output.DagProcessingLogs != null
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
: undefined,
|
|
1025
|
-
TaskLogs: output.TaskLogs != null
|
|
1026
|
-
? deserializeAws_restJson1ModuleLoggingConfiguration(output.TaskLogs, context)
|
|
1027
|
-
: undefined,
|
|
1028
|
-
WebserverLogs: output.WebserverLogs != null
|
|
1029
|
-
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WebserverLogs, context)
|
|
1030
|
-
: undefined,
|
|
1031
|
-
WorkerLogs: output.WorkerLogs != null
|
|
1032
|
-
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WorkerLogs, context)
|
|
1033
|
-
: undefined,
|
|
1005
|
+
DagProcessingLogs: output.DagProcessingLogs != null ? de_ModuleLoggingConfiguration(output.DagProcessingLogs, context) : undefined,
|
|
1006
|
+
SchedulerLogs: output.SchedulerLogs != null ? de_ModuleLoggingConfiguration(output.SchedulerLogs, context) : undefined,
|
|
1007
|
+
TaskLogs: output.TaskLogs != null ? de_ModuleLoggingConfiguration(output.TaskLogs, context) : undefined,
|
|
1008
|
+
WebserverLogs: output.WebserverLogs != null ? de_ModuleLoggingConfiguration(output.WebserverLogs, context) : undefined,
|
|
1009
|
+
WorkerLogs: output.WorkerLogs != null ? de_ModuleLoggingConfiguration(output.WorkerLogs, context) : undefined,
|
|
1034
1010
|
};
|
|
1035
1011
|
};
|
|
1036
|
-
const
|
|
1012
|
+
const de_ModuleLoggingConfiguration = (output, context) => {
|
|
1037
1013
|
return {
|
|
1038
1014
|
CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
|
|
1039
1015
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
1040
1016
|
LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
|
|
1041
1017
|
};
|
|
1042
1018
|
};
|
|
1043
|
-
const
|
|
1019
|
+
const de_NetworkConfiguration = (output, context) => {
|
|
1044
1020
|
return {
|
|
1045
|
-
SecurityGroupIds: output.SecurityGroupIds != null
|
|
1046
|
-
|
|
1047
|
-
: undefined,
|
|
1048
|
-
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetList(output.SubnetIds, context) : undefined,
|
|
1021
|
+
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupList(output.SecurityGroupIds, context) : undefined,
|
|
1022
|
+
SubnetIds: output.SubnetIds != null ? de_SubnetList(output.SubnetIds, context) : undefined,
|
|
1049
1023
|
};
|
|
1050
1024
|
};
|
|
1051
|
-
const
|
|
1025
|
+
const de_SecurityGroupList = (output, context) => {
|
|
1052
1026
|
const retVal = (output || [])
|
|
1053
1027
|
.filter((e) => e != null)
|
|
1054
1028
|
.map((entry) => {
|
|
@@ -1059,7 +1033,7 @@ const deserializeAws_restJson1SecurityGroupList = (output, context) => {
|
|
|
1059
1033
|
});
|
|
1060
1034
|
return retVal;
|
|
1061
1035
|
};
|
|
1062
|
-
const
|
|
1036
|
+
const de_SubnetList = (output, context) => {
|
|
1063
1037
|
const retVal = (output || [])
|
|
1064
1038
|
.filter((e) => e != null)
|
|
1065
1039
|
.map((entry) => {
|
|
@@ -1070,7 +1044,7 @@ const deserializeAws_restJson1SubnetList = (output, context) => {
|
|
|
1070
1044
|
});
|
|
1071
1045
|
return retVal;
|
|
1072
1046
|
};
|
|
1073
|
-
const
|
|
1047
|
+
const de_TagMap = (output, context) => {
|
|
1074
1048
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1075
1049
|
if (value === null) {
|
|
1076
1050
|
return acc;
|
|
@@ -1079,7 +1053,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1079
1053
|
return acc;
|
|
1080
1054
|
}, {});
|
|
1081
1055
|
};
|
|
1082
|
-
const
|
|
1056
|
+
const de_UpdateError = (output, context) => {
|
|
1083
1057
|
return {
|
|
1084
1058
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1085
1059
|
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|