@aws-sdk/client-mwaa 3.306.0 → 3.309.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 +6 -6
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } f
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { MWAAServiceException as __BaseException } from "../models/MWAAServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateCliTokenCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/clitoken/{Name}";
|
|
@@ -25,7 +25,7 @@ export const serializeAws_restJson1CreateCliTokenCommand = async (input, context
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
export const
|
|
28
|
+
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/json",
|
|
@@ -35,7 +35,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
35
35
|
let body;
|
|
36
36
|
body = JSON.stringify({
|
|
37
37
|
...(input.AirflowConfigurationOptions != null && {
|
|
38
|
-
AirflowConfigurationOptions:
|
|
38
|
+
AirflowConfigurationOptions: se_AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
39
39
|
}),
|
|
40
40
|
...(input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion }),
|
|
41
41
|
...(input.DagS3Path != null && { DagS3Path: input.DagS3Path }),
|
|
@@ -43,12 +43,12 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
43
43
|
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
44
44
|
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
45
45
|
...(input.LoggingConfiguration != null && {
|
|
46
|
-
LoggingConfiguration:
|
|
46
|
+
LoggingConfiguration: se_LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
47
47
|
}),
|
|
48
48
|
...(input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers }),
|
|
49
49
|
...(input.MinWorkers != null && { MinWorkers: input.MinWorkers }),
|
|
50
50
|
...(input.NetworkConfiguration != null && {
|
|
51
|
-
NetworkConfiguration:
|
|
51
|
+
NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
|
|
52
52
|
}),
|
|
53
53
|
...(input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion }),
|
|
54
54
|
...(input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path }),
|
|
@@ -62,7 +62,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
62
62
|
StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
|
|
63
63
|
}),
|
|
64
64
|
...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
|
|
65
|
-
...(input.Tags != null && { Tags:
|
|
65
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
66
66
|
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
67
67
|
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
68
68
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
@@ -85,7 +85,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
85
85
|
body,
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
|
-
export const
|
|
88
|
+
export const se_CreateWebLoginTokenCommand = async (input, context) => {
|
|
89
89
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
90
|
const headers = {};
|
|
91
91
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/webtoken/{Name}";
|
|
@@ -108,7 +108,7 @@ export const serializeAws_restJson1CreateWebLoginTokenCommand = async (input, co
|
|
|
108
108
|
body,
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
|
-
export const
|
|
111
|
+
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
112
112
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
113
|
const headers = {};
|
|
114
114
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
@@ -131,7 +131,7 @@ export const serializeAws_restJson1DeleteEnvironmentCommand = async (input, cont
|
|
|
131
131
|
body,
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
|
-
export const
|
|
134
|
+
export const se_GetEnvironmentCommand = async (input, context) => {
|
|
135
135
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
136
|
const headers = {};
|
|
137
137
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
@@ -154,7 +154,7 @@ export const serializeAws_restJson1GetEnvironmentCommand = async (input, context
|
|
|
154
154
|
body,
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
|
-
export const
|
|
157
|
+
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
158
158
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
159
|
const headers = {};
|
|
160
160
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
@@ -181,7 +181,7 @@ export const serializeAws_restJson1ListEnvironmentsCommand = async (input, conte
|
|
|
181
181
|
body,
|
|
182
182
|
});
|
|
183
183
|
};
|
|
184
|
-
export const
|
|
184
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
185
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
186
|
const headers = {};
|
|
187
187
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -204,7 +204,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
204
204
|
body,
|
|
205
205
|
});
|
|
206
206
|
};
|
|
207
|
-
export const
|
|
207
|
+
export const se_PublishMetricsCommand = async (input, context) => {
|
|
208
208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
209
|
const headers = {
|
|
210
210
|
"content-type": "application/json",
|
|
@@ -213,7 +213,7 @@ export const serializeAws_restJson1PublishMetricsCommand = async (input, context
|
|
|
213
213
|
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
|
|
214
214
|
let body;
|
|
215
215
|
body = JSON.stringify({
|
|
216
|
-
...(input.MetricData != null && { MetricData:
|
|
216
|
+
...(input.MetricData != null && { MetricData: se_MetricData(input.MetricData, context) }),
|
|
217
217
|
});
|
|
218
218
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
219
219
|
if (context.disableHostPrefix !== true) {
|
|
@@ -232,7 +232,7 @@ export const serializeAws_restJson1PublishMetricsCommand = async (input, context
|
|
|
232
232
|
body,
|
|
233
233
|
});
|
|
234
234
|
};
|
|
235
|
-
export const
|
|
235
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
236
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
237
237
|
const headers = {
|
|
238
238
|
"content-type": "application/json",
|
|
@@ -241,7 +241,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
241
241
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
242
242
|
let body;
|
|
243
243
|
body = JSON.stringify({
|
|
244
|
-
...(input.Tags != null && { Tags:
|
|
244
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
245
245
|
});
|
|
246
246
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
247
247
|
if (context.disableHostPrefix !== true) {
|
|
@@ -260,7 +260,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
260
260
|
body,
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
|
-
export const
|
|
263
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
264
264
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
265
|
const headers = {};
|
|
266
266
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -290,7 +290,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
290
290
|
body,
|
|
291
291
|
});
|
|
292
292
|
};
|
|
293
|
-
export const
|
|
293
|
+
export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
294
294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
295
295
|
const headers = {
|
|
296
296
|
"content-type": "application/json",
|
|
@@ -300,19 +300,19 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
|
|
|
300
300
|
let body;
|
|
301
301
|
body = JSON.stringify({
|
|
302
302
|
...(input.AirflowConfigurationOptions != null && {
|
|
303
|
-
AirflowConfigurationOptions:
|
|
303
|
+
AirflowConfigurationOptions: se_AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
|
|
304
304
|
}),
|
|
305
305
|
...(input.AirflowVersion != null && { AirflowVersion: input.AirflowVersion }),
|
|
306
306
|
...(input.DagS3Path != null && { DagS3Path: input.DagS3Path }),
|
|
307
307
|
...(input.EnvironmentClass != null && { EnvironmentClass: input.EnvironmentClass }),
|
|
308
308
|
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
309
309
|
...(input.LoggingConfiguration != null && {
|
|
310
|
-
LoggingConfiguration:
|
|
310
|
+
LoggingConfiguration: se_LoggingConfigurationInput(input.LoggingConfiguration, context),
|
|
311
311
|
}),
|
|
312
312
|
...(input.MaxWorkers != null && { MaxWorkers: input.MaxWorkers }),
|
|
313
313
|
...(input.MinWorkers != null && { MinWorkers: input.MinWorkers }),
|
|
314
314
|
...(input.NetworkConfiguration != null && {
|
|
315
|
-
NetworkConfiguration:
|
|
315
|
+
NetworkConfiguration: se_UpdateNetworkConfigurationInput(input.NetworkConfiguration, context),
|
|
316
316
|
}),
|
|
317
317
|
...(input.PluginsS3ObjectVersion != null && { PluginsS3ObjectVersion: input.PluginsS3ObjectVersion }),
|
|
318
318
|
...(input.PluginsS3Path != null && { PluginsS3Path: input.PluginsS3Path }),
|
|
@@ -348,9 +348,9 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
|
|
|
348
348
|
body,
|
|
349
349
|
});
|
|
350
350
|
};
|
|
351
|
-
export const
|
|
351
|
+
export const de_CreateCliTokenCommand = async (output, context) => {
|
|
352
352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
353
|
-
return
|
|
353
|
+
return de_CreateCliTokenCommandError(output, context);
|
|
354
354
|
}
|
|
355
355
|
const contents = map({
|
|
356
356
|
$metadata: deserializeMetadata(output),
|
|
@@ -364,7 +364,7 @@ export const deserializeAws_restJson1CreateCliTokenCommand = async (output, cont
|
|
|
364
364
|
}
|
|
365
365
|
return contents;
|
|
366
366
|
};
|
|
367
|
-
const
|
|
367
|
+
const de_CreateCliTokenCommandError = async (output, context) => {
|
|
368
368
|
const parsedOutput = {
|
|
369
369
|
...output,
|
|
370
370
|
body: await parseErrorBody(output.body, context),
|
|
@@ -373,7 +373,7 @@ const deserializeAws_restJson1CreateCliTokenCommandError = async (output, contex
|
|
|
373
373
|
switch (errorCode) {
|
|
374
374
|
case "ResourceNotFoundException":
|
|
375
375
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
376
|
-
throw await
|
|
376
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
377
377
|
default:
|
|
378
378
|
const parsedBody = parsedOutput.body;
|
|
379
379
|
throwDefaultError({
|
|
@@ -384,9 +384,9 @@ const deserializeAws_restJson1CreateCliTokenCommandError = async (output, contex
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
|
-
export const
|
|
387
|
+
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
388
388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
389
|
-
return
|
|
389
|
+
return de_CreateEnvironmentCommandError(output, context);
|
|
390
390
|
}
|
|
391
391
|
const contents = map({
|
|
392
392
|
$metadata: deserializeMetadata(output),
|
|
@@ -397,7 +397,7 @@ export const deserializeAws_restJson1CreateEnvironmentCommand = async (output, c
|
|
|
397
397
|
}
|
|
398
398
|
return contents;
|
|
399
399
|
};
|
|
400
|
-
const
|
|
400
|
+
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
401
401
|
const parsedOutput = {
|
|
402
402
|
...output,
|
|
403
403
|
body: await parseErrorBody(output.body, context),
|
|
@@ -406,10 +406,10 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
406
406
|
switch (errorCode) {
|
|
407
407
|
case "InternalServerException":
|
|
408
408
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
410
410
|
case "ValidationException":
|
|
411
411
|
case "com.amazonaws.mwaa#ValidationException":
|
|
412
|
-
throw await
|
|
412
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
413
413
|
default:
|
|
414
414
|
const parsedBody = parsedOutput.body;
|
|
415
415
|
throwDefaultError({
|
|
@@ -420,9 +420,9 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
|
-
export const
|
|
423
|
+
export const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
424
424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
425
|
-
return
|
|
425
|
+
return de_CreateWebLoginTokenCommandError(output, context);
|
|
426
426
|
}
|
|
427
427
|
const contents = map({
|
|
428
428
|
$metadata: deserializeMetadata(output),
|
|
@@ -436,7 +436,7 @@ export const deserializeAws_restJson1CreateWebLoginTokenCommand = async (output,
|
|
|
436
436
|
}
|
|
437
437
|
return contents;
|
|
438
438
|
};
|
|
439
|
-
const
|
|
439
|
+
const de_CreateWebLoginTokenCommandError = async (output, context) => {
|
|
440
440
|
const parsedOutput = {
|
|
441
441
|
...output,
|
|
442
442
|
body: await parseErrorBody(output.body, context),
|
|
@@ -445,16 +445,16 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
445
445
|
switch (errorCode) {
|
|
446
446
|
case "AccessDeniedException":
|
|
447
447
|
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
449
449
|
case "InternalServerException":
|
|
450
450
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
452
452
|
case "ResourceNotFoundException":
|
|
453
453
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
455
|
case "ValidationException":
|
|
456
456
|
case "com.amazonaws.mwaa#ValidationException":
|
|
457
|
-
throw await
|
|
457
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
458
|
default:
|
|
459
459
|
const parsedBody = parsedOutput.body;
|
|
460
460
|
throwDefaultError({
|
|
@@ -465,9 +465,9 @@ const deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, c
|
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
|
-
export const
|
|
468
|
+
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
469
469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
|
-
return
|
|
470
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
471
471
|
}
|
|
472
472
|
const contents = map({
|
|
473
473
|
$metadata: deserializeMetadata(output),
|
|
@@ -475,7 +475,7 @@ export const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, c
|
|
|
475
475
|
await collectBody(output.body, context);
|
|
476
476
|
return contents;
|
|
477
477
|
};
|
|
478
|
-
const
|
|
478
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
479
479
|
const parsedOutput = {
|
|
480
480
|
...output,
|
|
481
481
|
body: await parseErrorBody(output.body, context),
|
|
@@ -484,13 +484,13 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
484
484
|
switch (errorCode) {
|
|
485
485
|
case "InternalServerException":
|
|
486
486
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
487
|
-
throw await
|
|
487
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
488
488
|
case "ResourceNotFoundException":
|
|
489
489
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
490
|
-
throw await
|
|
490
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
491
491
|
case "ValidationException":
|
|
492
492
|
case "com.amazonaws.mwaa#ValidationException":
|
|
493
|
-
throw await
|
|
493
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
494
494
|
default:
|
|
495
495
|
const parsedBody = parsedOutput.body;
|
|
496
496
|
throwDefaultError({
|
|
@@ -501,20 +501,20 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
};
|
|
504
|
-
export const
|
|
504
|
+
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
505
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
|
-
return
|
|
506
|
+
return de_GetEnvironmentCommandError(output, context);
|
|
507
507
|
}
|
|
508
508
|
const contents = map({
|
|
509
509
|
$metadata: deserializeMetadata(output),
|
|
510
510
|
});
|
|
511
511
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
512
512
|
if (data.Environment != null) {
|
|
513
|
-
contents.Environment =
|
|
513
|
+
contents.Environment = de_Environment(data.Environment, context);
|
|
514
514
|
}
|
|
515
515
|
return contents;
|
|
516
516
|
};
|
|
517
|
-
const
|
|
517
|
+
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
518
518
|
const parsedOutput = {
|
|
519
519
|
...output,
|
|
520
520
|
body: await parseErrorBody(output.body, context),
|
|
@@ -523,13 +523,13 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
523
523
|
switch (errorCode) {
|
|
524
524
|
case "InternalServerException":
|
|
525
525
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
526
|
-
throw await
|
|
526
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
527
527
|
case "ResourceNotFoundException":
|
|
528
528
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
529
|
-
throw await
|
|
529
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
530
530
|
case "ValidationException":
|
|
531
531
|
case "com.amazonaws.mwaa#ValidationException":
|
|
532
|
-
throw await
|
|
532
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
533
|
default:
|
|
534
534
|
const parsedBody = parsedOutput.body;
|
|
535
535
|
throwDefaultError({
|
|
@@ -540,23 +540,23 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
|
-
export const
|
|
543
|
+
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
544
544
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
545
|
-
return
|
|
545
|
+
return de_ListEnvironmentsCommandError(output, context);
|
|
546
546
|
}
|
|
547
547
|
const contents = map({
|
|
548
548
|
$metadata: deserializeMetadata(output),
|
|
549
549
|
});
|
|
550
550
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
551
551
|
if (data.Environments != null) {
|
|
552
|
-
contents.Environments =
|
|
552
|
+
contents.Environments = de_EnvironmentList(data.Environments, context);
|
|
553
553
|
}
|
|
554
554
|
if (data.NextToken != null) {
|
|
555
555
|
contents.NextToken = __expectString(data.NextToken);
|
|
556
556
|
}
|
|
557
557
|
return contents;
|
|
558
558
|
};
|
|
559
|
-
const
|
|
559
|
+
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
560
560
|
const parsedOutput = {
|
|
561
561
|
...output,
|
|
562
562
|
body: await parseErrorBody(output.body, context),
|
|
@@ -565,10 +565,10 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
565
565
|
switch (errorCode) {
|
|
566
566
|
case "InternalServerException":
|
|
567
567
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
568
|
-
throw await
|
|
568
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
569
569
|
case "ValidationException":
|
|
570
570
|
case "com.amazonaws.mwaa#ValidationException":
|
|
571
|
-
throw await
|
|
571
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
572
|
default:
|
|
573
573
|
const parsedBody = parsedOutput.body;
|
|
574
574
|
throwDefaultError({
|
|
@@ -579,20 +579,20 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
|
-
export const
|
|
582
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
583
583
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
|
-
return
|
|
584
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
585
585
|
}
|
|
586
586
|
const contents = map({
|
|
587
587
|
$metadata: deserializeMetadata(output),
|
|
588
588
|
});
|
|
589
589
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
590
590
|
if (data.Tags != null) {
|
|
591
|
-
contents.Tags =
|
|
591
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
592
592
|
}
|
|
593
593
|
return contents;
|
|
594
594
|
};
|
|
595
|
-
const
|
|
595
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
596
596
|
const parsedOutput = {
|
|
597
597
|
...output,
|
|
598
598
|
body: await parseErrorBody(output.body, context),
|
|
@@ -601,13 +601,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
601
601
|
switch (errorCode) {
|
|
602
602
|
case "InternalServerException":
|
|
603
603
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
604
|
-
throw await
|
|
604
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
605
605
|
case "ResourceNotFoundException":
|
|
606
606
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
607
|
-
throw await
|
|
607
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
608
608
|
case "ValidationException":
|
|
609
609
|
case "com.amazonaws.mwaa#ValidationException":
|
|
610
|
-
throw await
|
|
610
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
611
611
|
default:
|
|
612
612
|
const parsedBody = parsedOutput.body;
|
|
613
613
|
throwDefaultError({
|
|
@@ -618,9 +618,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
|
-
export const
|
|
621
|
+
export const de_PublishMetricsCommand = async (output, context) => {
|
|
622
622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
-
return
|
|
623
|
+
return de_PublishMetricsCommandError(output, context);
|
|
624
624
|
}
|
|
625
625
|
const contents = map({
|
|
626
626
|
$metadata: deserializeMetadata(output),
|
|
@@ -628,7 +628,7 @@ export const deserializeAws_restJson1PublishMetricsCommand = async (output, cont
|
|
|
628
628
|
await collectBody(output.body, context);
|
|
629
629
|
return contents;
|
|
630
630
|
};
|
|
631
|
-
const
|
|
631
|
+
const de_PublishMetricsCommandError = async (output, context) => {
|
|
632
632
|
const parsedOutput = {
|
|
633
633
|
...output,
|
|
634
634
|
body: await parseErrorBody(output.body, context),
|
|
@@ -637,10 +637,10 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
637
637
|
switch (errorCode) {
|
|
638
638
|
case "InternalServerException":
|
|
639
639
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
640
|
-
throw await
|
|
640
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
641
641
|
case "ValidationException":
|
|
642
642
|
case "com.amazonaws.mwaa#ValidationException":
|
|
643
|
-
throw await
|
|
643
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
644
644
|
default:
|
|
645
645
|
const parsedBody = parsedOutput.body;
|
|
646
646
|
throwDefaultError({
|
|
@@ -651,9 +651,9 @@ const deserializeAws_restJson1PublishMetricsCommandError = async (output, contex
|
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
|
-
export const
|
|
654
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
655
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
-
return
|
|
656
|
+
return de_TagResourceCommandError(output, context);
|
|
657
657
|
}
|
|
658
658
|
const contents = map({
|
|
659
659
|
$metadata: deserializeMetadata(output),
|
|
@@ -661,7 +661,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
661
661
|
await collectBody(output.body, context);
|
|
662
662
|
return contents;
|
|
663
663
|
};
|
|
664
|
-
const
|
|
664
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
665
665
|
const parsedOutput = {
|
|
666
666
|
...output,
|
|
667
667
|
body: await parseErrorBody(output.body, context),
|
|
@@ -670,13 +670,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
670
670
|
switch (errorCode) {
|
|
671
671
|
case "InternalServerException":
|
|
672
672
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
673
|
-
throw await
|
|
673
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
674
674
|
case "ResourceNotFoundException":
|
|
675
675
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
676
|
-
throw await
|
|
676
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
677
677
|
case "ValidationException":
|
|
678
678
|
case "com.amazonaws.mwaa#ValidationException":
|
|
679
|
-
throw await
|
|
679
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
680
|
default:
|
|
681
681
|
const parsedBody = parsedOutput.body;
|
|
682
682
|
throwDefaultError({
|
|
@@ -687,9 +687,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
export const
|
|
690
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
691
691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return
|
|
692
|
+
return de_UntagResourceCommandError(output, context);
|
|
693
693
|
}
|
|
694
694
|
const contents = map({
|
|
695
695
|
$metadata: deserializeMetadata(output),
|
|
@@ -697,7 +697,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
697
697
|
await collectBody(output.body, context);
|
|
698
698
|
return contents;
|
|
699
699
|
};
|
|
700
|
-
const
|
|
700
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
701
701
|
const parsedOutput = {
|
|
702
702
|
...output,
|
|
703
703
|
body: await parseErrorBody(output.body, context),
|
|
@@ -706,13 +706,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
706
706
|
switch (errorCode) {
|
|
707
707
|
case "InternalServerException":
|
|
708
708
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
709
|
-
throw await
|
|
709
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
710
710
|
case "ResourceNotFoundException":
|
|
711
711
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
712
|
-
throw await
|
|
712
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
713
713
|
case "ValidationException":
|
|
714
714
|
case "com.amazonaws.mwaa#ValidationException":
|
|
715
|
-
throw await
|
|
715
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
716
716
|
default:
|
|
717
717
|
const parsedBody = parsedOutput.body;
|
|
718
718
|
throwDefaultError({
|
|
@@ -723,9 +723,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
};
|
|
726
|
-
export const
|
|
726
|
+
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
727
727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
728
|
-
return
|
|
728
|
+
return de_UpdateEnvironmentCommandError(output, context);
|
|
729
729
|
}
|
|
730
730
|
const contents = map({
|
|
731
731
|
$metadata: deserializeMetadata(output),
|
|
@@ -736,7 +736,7 @@ export const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, c
|
|
|
736
736
|
}
|
|
737
737
|
return contents;
|
|
738
738
|
};
|
|
739
|
-
const
|
|
739
|
+
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
740
740
|
const parsedOutput = {
|
|
741
741
|
...output,
|
|
742
742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -745,13 +745,13 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
745
745
|
switch (errorCode) {
|
|
746
746
|
case "InternalServerException":
|
|
747
747
|
case "com.amazonaws.mwaa#InternalServerException":
|
|
748
|
-
throw await
|
|
748
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
749
749
|
case "ResourceNotFoundException":
|
|
750
750
|
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
752
752
|
case "ValidationException":
|
|
753
753
|
case "com.amazonaws.mwaa#ValidationException":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
755
755
|
default:
|
|
756
756
|
const parsedBody = parsedOutput.body;
|
|
757
757
|
throwDefaultError({
|
|
@@ -763,7 +763,7 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
763
763
|
}
|
|
764
764
|
};
|
|
765
765
|
const map = __map;
|
|
766
|
-
const
|
|
766
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
767
767
|
const contents = map({});
|
|
768
768
|
const data = parsedOutput.body;
|
|
769
769
|
if (data.Message != null) {
|
|
@@ -775,7 +775,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
775
775
|
});
|
|
776
776
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
777
777
|
};
|
|
778
|
-
const
|
|
778
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
779
779
|
const contents = map({});
|
|
780
780
|
const data = parsedOutput.body;
|
|
781
781
|
if (data.message != null) {
|
|
@@ -787,7 +787,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
787
787
|
});
|
|
788
788
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
789
789
|
};
|
|
790
|
-
const
|
|
790
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
791
791
|
const contents = map({});
|
|
792
792
|
const data = parsedOutput.body;
|
|
793
793
|
if (data.message != null) {
|
|
@@ -799,7 +799,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
799
799
|
});
|
|
800
800
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
801
801
|
};
|
|
802
|
-
const
|
|
802
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
803
803
|
const contents = map({});
|
|
804
804
|
const data = parsedOutput.body;
|
|
805
805
|
if (data.message != null) {
|
|
@@ -811,7 +811,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
811
811
|
});
|
|
812
812
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
813
813
|
};
|
|
814
|
-
const
|
|
814
|
+
const se_AirflowConfigurationOptions = (input, context) => {
|
|
815
815
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
816
816
|
if (value === null) {
|
|
817
817
|
return acc;
|
|
@@ -820,79 +820,71 @@ const serializeAws_restJson1AirflowConfigurationOptions = (input, context) => {
|
|
|
820
820
|
return acc;
|
|
821
821
|
}, {});
|
|
822
822
|
};
|
|
823
|
-
const
|
|
823
|
+
const se_Dimension = (input, context) => {
|
|
824
824
|
return {
|
|
825
825
|
...(input.Name != null && { Name: input.Name }),
|
|
826
826
|
...(input.Value != null && { Value: input.Value }),
|
|
827
827
|
};
|
|
828
828
|
};
|
|
829
|
-
const
|
|
829
|
+
const se_Dimensions = (input, context) => {
|
|
830
830
|
return input
|
|
831
831
|
.filter((e) => e != null)
|
|
832
832
|
.map((entry) => {
|
|
833
|
-
return
|
|
833
|
+
return se_Dimension(entry, context);
|
|
834
834
|
});
|
|
835
835
|
};
|
|
836
|
-
const
|
|
836
|
+
const se_LoggingConfigurationInput = (input, context) => {
|
|
837
837
|
return {
|
|
838
838
|
...(input.DagProcessingLogs != null && {
|
|
839
|
-
DagProcessingLogs:
|
|
839
|
+
DagProcessingLogs: se_ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
840
840
|
}),
|
|
841
841
|
...(input.SchedulerLogs != null && {
|
|
842
|
-
SchedulerLogs:
|
|
843
|
-
}),
|
|
844
|
-
...(input.TaskLogs != null && {
|
|
845
|
-
TaskLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.TaskLogs, context),
|
|
842
|
+
SchedulerLogs: se_ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
846
843
|
}),
|
|
844
|
+
...(input.TaskLogs != null && { TaskLogs: se_ModuleLoggingConfigurationInput(input.TaskLogs, context) }),
|
|
847
845
|
...(input.WebserverLogs != null && {
|
|
848
|
-
WebserverLogs:
|
|
849
|
-
}),
|
|
850
|
-
...(input.WorkerLogs != null && {
|
|
851
|
-
WorkerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WorkerLogs, context),
|
|
846
|
+
WebserverLogs: se_ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
852
847
|
}),
|
|
848
|
+
...(input.WorkerLogs != null && { WorkerLogs: se_ModuleLoggingConfigurationInput(input.WorkerLogs, context) }),
|
|
853
849
|
};
|
|
854
850
|
};
|
|
855
|
-
const
|
|
851
|
+
const se_MetricData = (input, context) => {
|
|
856
852
|
return input
|
|
857
853
|
.filter((e) => e != null)
|
|
858
854
|
.map((entry) => {
|
|
859
|
-
return
|
|
855
|
+
return se_MetricDatum(entry, context);
|
|
860
856
|
});
|
|
861
857
|
};
|
|
862
|
-
const
|
|
858
|
+
const se_MetricDatum = (input, context) => {
|
|
863
859
|
return {
|
|
864
|
-
...(input.Dimensions != null && { Dimensions:
|
|
860
|
+
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
865
861
|
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
866
|
-
...(input.StatisticValues != null && {
|
|
867
|
-
StatisticValues: serializeAws_restJson1StatisticSet(input.StatisticValues, context),
|
|
868
|
-
}),
|
|
862
|
+
...(input.StatisticValues != null && { StatisticValues: se_StatisticSet(input.StatisticValues, context) }),
|
|
869
863
|
...(input.Timestamp != null && { Timestamp: Math.round(input.Timestamp.getTime() / 1000) }),
|
|
870
864
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
871
865
|
...(input.Value != null && { Value: __serializeFloat(input.Value) }),
|
|
872
866
|
};
|
|
873
867
|
};
|
|
874
|
-
const
|
|
868
|
+
const se_ModuleLoggingConfigurationInput = (input, context) => {
|
|
875
869
|
return {
|
|
876
870
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
877
871
|
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
878
872
|
};
|
|
879
873
|
};
|
|
880
|
-
const
|
|
874
|
+
const se_NetworkConfiguration = (input, context) => {
|
|
881
875
|
return {
|
|
882
|
-
...(input.SecurityGroupIds != null && {
|
|
883
|
-
|
|
884
|
-
}),
|
|
885
|
-
...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetList(input.SubnetIds, context) }),
|
|
876
|
+
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
877
|
+
...(input.SubnetIds != null && { SubnetIds: se_SubnetList(input.SubnetIds, context) }),
|
|
886
878
|
};
|
|
887
879
|
};
|
|
888
|
-
const
|
|
880
|
+
const se_SecurityGroupList = (input, context) => {
|
|
889
881
|
return input
|
|
890
882
|
.filter((e) => e != null)
|
|
891
883
|
.map((entry) => {
|
|
892
884
|
return entry;
|
|
893
885
|
});
|
|
894
886
|
};
|
|
895
|
-
const
|
|
887
|
+
const se_StatisticSet = (input, context) => {
|
|
896
888
|
return {
|
|
897
889
|
...(input.Maximum != null && { Maximum: __serializeFloat(input.Maximum) }),
|
|
898
890
|
...(input.Minimum != null && { Minimum: __serializeFloat(input.Minimum) }),
|
|
@@ -900,14 +892,14 @@ const serializeAws_restJson1StatisticSet = (input, context) => {
|
|
|
900
892
|
...(input.Sum != null && { Sum: __serializeFloat(input.Sum) }),
|
|
901
893
|
};
|
|
902
894
|
};
|
|
903
|
-
const
|
|
895
|
+
const se_SubnetList = (input, context) => {
|
|
904
896
|
return input
|
|
905
897
|
.filter((e) => e != null)
|
|
906
898
|
.map((entry) => {
|
|
907
899
|
return entry;
|
|
908
900
|
});
|
|
909
901
|
};
|
|
910
|
-
const
|
|
902
|
+
const se_TagMap = (input, context) => {
|
|
911
903
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
912
904
|
if (value === null) {
|
|
913
905
|
return acc;
|
|
@@ -916,14 +908,12 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
916
908
|
return acc;
|
|
917
909
|
}, {});
|
|
918
910
|
};
|
|
919
|
-
const
|
|
911
|
+
const se_UpdateNetworkConfigurationInput = (input, context) => {
|
|
920
912
|
return {
|
|
921
|
-
...(input.SecurityGroupIds != null && {
|
|
922
|
-
SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
|
|
923
|
-
}),
|
|
913
|
+
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
924
914
|
};
|
|
925
915
|
};
|
|
926
|
-
const
|
|
916
|
+
const de_AirflowConfigurationOptions = (output, context) => {
|
|
927
917
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
928
918
|
if (value === null) {
|
|
929
919
|
return acc;
|
|
@@ -932,10 +922,10 @@ const deserializeAws_restJson1AirflowConfigurationOptions = (output, context) =>
|
|
|
932
922
|
return acc;
|
|
933
923
|
}, {});
|
|
934
924
|
};
|
|
935
|
-
const
|
|
925
|
+
const de_Environment = (output, context) => {
|
|
936
926
|
return {
|
|
937
927
|
AirflowConfigurationOptions: output.AirflowConfigurationOptions != null
|
|
938
|
-
?
|
|
928
|
+
? de_AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
|
|
939
929
|
: undefined,
|
|
940
930
|
AirflowVersion: __expectString(output.AirflowVersion),
|
|
941
931
|
Arn: __expectString(output.Arn),
|
|
@@ -944,16 +934,12 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
944
934
|
EnvironmentClass: __expectString(output.EnvironmentClass),
|
|
945
935
|
ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
|
|
946
936
|
KmsKey: __expectString(output.KmsKey),
|
|
947
|
-
LastUpdate: output.LastUpdate != null ?
|
|
948
|
-
LoggingConfiguration: output.LoggingConfiguration != null
|
|
949
|
-
? deserializeAws_restJson1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
950
|
-
: undefined,
|
|
937
|
+
LastUpdate: output.LastUpdate != null ? de_LastUpdate(output.LastUpdate, context) : undefined,
|
|
938
|
+
LoggingConfiguration: output.LoggingConfiguration != null ? de_LoggingConfiguration(output.LoggingConfiguration, context) : undefined,
|
|
951
939
|
MaxWorkers: __expectInt32(output.MaxWorkers),
|
|
952
940
|
MinWorkers: __expectInt32(output.MinWorkers),
|
|
953
941
|
Name: __expectString(output.Name),
|
|
954
|
-
NetworkConfiguration: output.NetworkConfiguration != null
|
|
955
|
-
? deserializeAws_restJson1NetworkConfiguration(output.NetworkConfiguration, context)
|
|
956
|
-
: undefined,
|
|
942
|
+
NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
|
|
957
943
|
PluginsS3ObjectVersion: __expectString(output.PluginsS3ObjectVersion),
|
|
958
944
|
PluginsS3Path: __expectString(output.PluginsS3Path),
|
|
959
945
|
RequirementsS3ObjectVersion: __expectString(output.RequirementsS3ObjectVersion),
|
|
@@ -964,13 +950,13 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
964
950
|
StartupScriptS3ObjectVersion: __expectString(output.StartupScriptS3ObjectVersion),
|
|
965
951
|
StartupScriptS3Path: __expectString(output.StartupScriptS3Path),
|
|
966
952
|
Status: __expectString(output.Status),
|
|
967
|
-
Tags: output.Tags != null ?
|
|
953
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
968
954
|
WebserverAccessMode: __expectString(output.WebserverAccessMode),
|
|
969
955
|
WebserverUrl: __expectString(output.WebserverUrl),
|
|
970
956
|
WeeklyMaintenanceWindowStart: __expectString(output.WeeklyMaintenanceWindowStart),
|
|
971
957
|
};
|
|
972
958
|
};
|
|
973
|
-
const
|
|
959
|
+
const de_EnvironmentList = (output, context) => {
|
|
974
960
|
const retVal = (output || [])
|
|
975
961
|
.filter((e) => e != null)
|
|
976
962
|
.map((entry) => {
|
|
@@ -981,49 +967,37 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
|
981
967
|
});
|
|
982
968
|
return retVal;
|
|
983
969
|
};
|
|
984
|
-
const
|
|
970
|
+
const de_LastUpdate = (output, context) => {
|
|
985
971
|
return {
|
|
986
972
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
987
|
-
Error: output.Error != null ?
|
|
973
|
+
Error: output.Error != null ? de_UpdateError(output.Error, context) : undefined,
|
|
988
974
|
Source: __expectString(output.Source),
|
|
989
975
|
Status: __expectString(output.Status),
|
|
990
976
|
};
|
|
991
977
|
};
|
|
992
|
-
const
|
|
978
|
+
const de_LoggingConfiguration = (output, context) => {
|
|
993
979
|
return {
|
|
994
|
-
DagProcessingLogs: output.DagProcessingLogs != null
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
: undefined,
|
|
1000
|
-
TaskLogs: output.TaskLogs != null
|
|
1001
|
-
? deserializeAws_restJson1ModuleLoggingConfiguration(output.TaskLogs, context)
|
|
1002
|
-
: undefined,
|
|
1003
|
-
WebserverLogs: output.WebserverLogs != null
|
|
1004
|
-
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WebserverLogs, context)
|
|
1005
|
-
: undefined,
|
|
1006
|
-
WorkerLogs: output.WorkerLogs != null
|
|
1007
|
-
? deserializeAws_restJson1ModuleLoggingConfiguration(output.WorkerLogs, context)
|
|
1008
|
-
: undefined,
|
|
980
|
+
DagProcessingLogs: output.DagProcessingLogs != null ? de_ModuleLoggingConfiguration(output.DagProcessingLogs, context) : undefined,
|
|
981
|
+
SchedulerLogs: output.SchedulerLogs != null ? de_ModuleLoggingConfiguration(output.SchedulerLogs, context) : undefined,
|
|
982
|
+
TaskLogs: output.TaskLogs != null ? de_ModuleLoggingConfiguration(output.TaskLogs, context) : undefined,
|
|
983
|
+
WebserverLogs: output.WebserverLogs != null ? de_ModuleLoggingConfiguration(output.WebserverLogs, context) : undefined,
|
|
984
|
+
WorkerLogs: output.WorkerLogs != null ? de_ModuleLoggingConfiguration(output.WorkerLogs, context) : undefined,
|
|
1009
985
|
};
|
|
1010
986
|
};
|
|
1011
|
-
const
|
|
987
|
+
const de_ModuleLoggingConfiguration = (output, context) => {
|
|
1012
988
|
return {
|
|
1013
989
|
CloudWatchLogGroupArn: __expectString(output.CloudWatchLogGroupArn),
|
|
1014
990
|
Enabled: __expectBoolean(output.Enabled),
|
|
1015
991
|
LogLevel: __expectString(output.LogLevel),
|
|
1016
992
|
};
|
|
1017
993
|
};
|
|
1018
|
-
const
|
|
994
|
+
const de_NetworkConfiguration = (output, context) => {
|
|
1019
995
|
return {
|
|
1020
|
-
SecurityGroupIds: output.SecurityGroupIds != null
|
|
1021
|
-
|
|
1022
|
-
: undefined,
|
|
1023
|
-
SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetList(output.SubnetIds, context) : undefined,
|
|
996
|
+
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupList(output.SecurityGroupIds, context) : undefined,
|
|
997
|
+
SubnetIds: output.SubnetIds != null ? de_SubnetList(output.SubnetIds, context) : undefined,
|
|
1024
998
|
};
|
|
1025
999
|
};
|
|
1026
|
-
const
|
|
1000
|
+
const de_SecurityGroupList = (output, context) => {
|
|
1027
1001
|
const retVal = (output || [])
|
|
1028
1002
|
.filter((e) => e != null)
|
|
1029
1003
|
.map((entry) => {
|
|
@@ -1034,7 +1008,7 @@ const deserializeAws_restJson1SecurityGroupList = (output, context) => {
|
|
|
1034
1008
|
});
|
|
1035
1009
|
return retVal;
|
|
1036
1010
|
};
|
|
1037
|
-
const
|
|
1011
|
+
const de_SubnetList = (output, context) => {
|
|
1038
1012
|
const retVal = (output || [])
|
|
1039
1013
|
.filter((e) => e != null)
|
|
1040
1014
|
.map((entry) => {
|
|
@@ -1045,7 +1019,7 @@ const deserializeAws_restJson1SubnetList = (output, context) => {
|
|
|
1045
1019
|
});
|
|
1046
1020
|
return retVal;
|
|
1047
1021
|
};
|
|
1048
|
-
const
|
|
1022
|
+
const de_TagMap = (output, context) => {
|
|
1049
1023
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1050
1024
|
if (value === null) {
|
|
1051
1025
|
return acc;
|
|
@@ -1054,7 +1028,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1054
1028
|
return acc;
|
|
1055
1029
|
}, {});
|
|
1056
1030
|
};
|
|
1057
|
-
const
|
|
1031
|
+
const de_UpdateError = (output, context) => {
|
|
1058
1032
|
return {
|
|
1059
1033
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1060
1034
|
ErrorMessage: __expectString(output.ErrorMessage),
|