@aws-sdk/client-mwaa 3.305.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.
Files changed (27) hide show
  1. package/dist-cjs/commands/CreateCliTokenCommand.js +2 -2
  2. package/dist-cjs/commands/CreateEnvironmentCommand.js +2 -2
  3. package/dist-cjs/commands/CreateWebLoginTokenCommand.js +2 -2
  4. package/dist-cjs/commands/DeleteEnvironmentCommand.js +2 -2
  5. package/dist-cjs/commands/GetEnvironmentCommand.js +2 -2
  6. package/dist-cjs/commands/ListEnvironmentsCommand.js +2 -2
  7. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  8. package/dist-cjs/commands/PublishMetricsCommand.js +2 -2
  9. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  10. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  11. package/dist-cjs/commands/UpdateEnvironmentCommand.js +2 -2
  12. package/dist-cjs/protocols/Aws_restJson1.js +161 -187
  13. package/dist-es/commands/CreateCliTokenCommand.js +3 -3
  14. package/dist-es/commands/CreateEnvironmentCommand.js +3 -3
  15. package/dist-es/commands/CreateWebLoginTokenCommand.js +3 -3
  16. package/dist-es/commands/DeleteEnvironmentCommand.js +3 -3
  17. package/dist-es/commands/GetEnvironmentCommand.js +3 -3
  18. package/dist-es/commands/ListEnvironmentsCommand.js +3 -3
  19. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  20. package/dist-es/commands/PublishMetricsCommand.js +3 -3
  21. package/dist-es/commands/TagResourceCommand.js +3 -3
  22. package/dist-es/commands/UntagResourceCommand.js +3 -3
  23. package/dist-es/commands/UpdateEnvironmentCommand.js +3 -3
  24. package/dist-es/protocols/Aws_restJson1.js +138 -164
  25. package/dist-types/protocols/Aws_restJson1.d.ts +88 -22
  26. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +22 -22
  27. package/package.json +29 -29
@@ -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 serializeAws_restJson1CreateCliTokenCommand = async (input, context) => {
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 serializeAws_restJson1CreateEnvironmentCommand = async (input, context) => {
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: serializeAws_restJson1AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
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: serializeAws_restJson1LoggingConfigurationInput(input.LoggingConfiguration, context),
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: serializeAws_restJson1NetworkConfiguration(input.NetworkConfiguration, context),
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: serializeAws_restJson1TagMap(input.Tags, context) }),
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 serializeAws_restJson1CreateWebLoginTokenCommand = async (input, context) => {
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 serializeAws_restJson1DeleteEnvironmentCommand = async (input, context) => {
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 serializeAws_restJson1GetEnvironmentCommand = async (input, context) => {
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 serializeAws_restJson1ListEnvironmentsCommand = async (input, context) => {
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 serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
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 serializeAws_restJson1PublishMetricsCommand = async (input, context) => {
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: serializeAws_restJson1MetricData(input.MetricData, context) }),
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 serializeAws_restJson1TagResourceCommand = async (input, context) => {
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: serializeAws_restJson1TagMap(input.Tags, context) }),
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 serializeAws_restJson1UntagResourceCommand = async (input, context) => {
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 serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) => {
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: serializeAws_restJson1AirflowConfigurationOptions(input.AirflowConfigurationOptions, context),
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: serializeAws_restJson1LoggingConfigurationInput(input.LoggingConfiguration, context),
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: serializeAws_restJson1UpdateNetworkConfigurationInput(input.NetworkConfiguration, context),
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 deserializeAws_restJson1CreateCliTokenCommand = async (output, context) => {
351
+ export const de_CreateCliTokenCommand = async (output, context) => {
352
352
  if (output.statusCode !== 200 && output.statusCode >= 300) {
353
- return deserializeAws_restJson1CreateCliTokenCommandError(output, context);
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 deserializeAws_restJson1CreateCliTokenCommandError = async (output, context) => {
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 deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
387
+ export const de_CreateEnvironmentCommand = async (output, context) => {
388
388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
389
- return deserializeAws_restJson1CreateEnvironmentCommandError(output, context);
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 deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
409
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
410
410
  case "ValidationException":
411
411
  case "com.amazonaws.mwaa#ValidationException":
412
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1CreateWebLoginTokenCommand = async (output, context) => {
423
+ export const de_CreateWebLoginTokenCommand = async (output, context) => {
424
424
  if (output.statusCode !== 200 && output.statusCode >= 300) {
425
- return deserializeAws_restJson1CreateWebLoginTokenCommandError(output, context);
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 deserializeAws_restJson1CreateWebLoginTokenCommandError = async (output, context) => {
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 deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
448
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
449
449
  case "InternalServerException":
450
450
  case "com.amazonaws.mwaa#InternalServerException":
451
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
451
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
452
452
  case "ResourceNotFoundException":
453
453
  case "com.amazonaws.mwaa#ResourceNotFoundException":
454
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
454
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
455
455
  case "ValidationException":
456
456
  case "com.amazonaws.mwaa#ValidationException":
457
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
468
+ export const de_DeleteEnvironmentCommand = async (output, context) => {
469
469
  if (output.statusCode !== 200 && output.statusCode >= 300) {
470
- return deserializeAws_restJson1DeleteEnvironmentCommandError(output, context);
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 deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
487
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
488
488
  case "ResourceNotFoundException":
489
489
  case "com.amazonaws.mwaa#ResourceNotFoundException":
490
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
490
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
491
491
  case "ValidationException":
492
492
  case "com.amazonaws.mwaa#ValidationException":
493
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
504
+ export const de_GetEnvironmentCommand = async (output, context) => {
505
505
  if (output.statusCode !== 200 && output.statusCode >= 300) {
506
- return deserializeAws_restJson1GetEnvironmentCommandError(output, context);
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 = deserializeAws_restJson1Environment(data.Environment, context);
513
+ contents.Environment = de_Environment(data.Environment, context);
514
514
  }
515
515
  return contents;
516
516
  };
517
- const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
526
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
527
527
  case "ResourceNotFoundException":
528
528
  case "com.amazonaws.mwaa#ResourceNotFoundException":
529
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
529
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
530
530
  case "ValidationException":
531
531
  case "com.amazonaws.mwaa#ValidationException":
532
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
543
+ export const de_ListEnvironmentsCommand = async (output, context) => {
544
544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
545
- return deserializeAws_restJson1ListEnvironmentsCommandError(output, context);
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 = deserializeAws_restJson1EnvironmentList(data.Environments, context);
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 deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
568
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
569
569
  case "ValidationException":
570
570
  case "com.amazonaws.mwaa#ValidationException":
571
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
582
+ export const de_ListTagsForResourceCommand = async (output, context) => {
583
583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
584
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
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 = deserializeAws_restJson1TagMap(data.Tags, context);
591
+ contents.Tags = de_TagMap(data.Tags, context);
592
592
  }
593
593
  return contents;
594
594
  };
595
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
604
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
605
605
  case "ResourceNotFoundException":
606
606
  case "com.amazonaws.mwaa#ResourceNotFoundException":
607
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
607
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
608
608
  case "ValidationException":
609
609
  case "com.amazonaws.mwaa#ValidationException":
610
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1PublishMetricsCommand = async (output, context) => {
621
+ export const de_PublishMetricsCommand = async (output, context) => {
622
622
  if (output.statusCode !== 200 && output.statusCode >= 300) {
623
- return deserializeAws_restJson1PublishMetricsCommandError(output, context);
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 deserializeAws_restJson1PublishMetricsCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
640
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
641
641
  case "ValidationException":
642
642
  case "com.amazonaws.mwaa#ValidationException":
643
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1TagResourceCommand = async (output, context) => {
654
+ export const de_TagResourceCommand = async (output, context) => {
655
655
  if (output.statusCode !== 200 && output.statusCode >= 300) {
656
- return deserializeAws_restJson1TagResourceCommandError(output, context);
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 deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
673
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
674
674
  case "ResourceNotFoundException":
675
675
  case "com.amazonaws.mwaa#ResourceNotFoundException":
676
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
676
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
677
677
  case "ValidationException":
678
678
  case "com.amazonaws.mwaa#ValidationException":
679
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
690
+ export const de_UntagResourceCommand = async (output, context) => {
691
691
  if (output.statusCode !== 200 && output.statusCode >= 300) {
692
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
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 deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
709
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
710
710
  case "ResourceNotFoundException":
711
711
  case "com.amazonaws.mwaa#ResourceNotFoundException":
712
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
712
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
713
713
  case "ValidationException":
714
714
  case "com.amazonaws.mwaa#ValidationException":
715
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
726
+ export const de_UpdateEnvironmentCommand = async (output, context) => {
727
727
  if (output.statusCode !== 200 && output.statusCode >= 300) {
728
- return deserializeAws_restJson1UpdateEnvironmentCommandError(output, context);
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 deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
748
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
749
749
  case "ResourceNotFoundException":
750
750
  case "com.amazonaws.mwaa#ResourceNotFoundException":
751
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
751
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
752
752
  case "ValidationException":
753
753
  case "com.amazonaws.mwaa#ValidationException":
754
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
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 deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
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 deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
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 serializeAws_restJson1AirflowConfigurationOptions = (input, context) => {
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 serializeAws_restJson1Dimension = (input, context) => {
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 serializeAws_restJson1Dimensions = (input, context) => {
829
+ const se_Dimensions = (input, context) => {
830
830
  return input
831
831
  .filter((e) => e != null)
832
832
  .map((entry) => {
833
- return serializeAws_restJson1Dimension(entry, context);
833
+ return se_Dimension(entry, context);
834
834
  });
835
835
  };
836
- const serializeAws_restJson1LoggingConfigurationInput = (input, context) => {
836
+ const se_LoggingConfigurationInput = (input, context) => {
837
837
  return {
838
838
  ...(input.DagProcessingLogs != null && {
839
- DagProcessingLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
839
+ DagProcessingLogs: se_ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
840
840
  }),
841
841
  ...(input.SchedulerLogs != null && {
842
- SchedulerLogs: serializeAws_restJson1ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
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: serializeAws_restJson1ModuleLoggingConfigurationInput(input.WebserverLogs, context),
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 serializeAws_restJson1MetricData = (input, context) => {
851
+ const se_MetricData = (input, context) => {
856
852
  return input
857
853
  .filter((e) => e != null)
858
854
  .map((entry) => {
859
- return serializeAws_restJson1MetricDatum(entry, context);
855
+ return se_MetricDatum(entry, context);
860
856
  });
861
857
  };
862
- const serializeAws_restJson1MetricDatum = (input, context) => {
858
+ const se_MetricDatum = (input, context) => {
863
859
  return {
864
- ...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
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 serializeAws_restJson1ModuleLoggingConfigurationInput = (input, context) => {
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 serializeAws_restJson1NetworkConfiguration = (input, context) => {
874
+ const se_NetworkConfiguration = (input, context) => {
881
875
  return {
882
- ...(input.SecurityGroupIds != null && {
883
- SecurityGroupIds: serializeAws_restJson1SecurityGroupList(input.SecurityGroupIds, context),
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 serializeAws_restJson1SecurityGroupList = (input, context) => {
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 serializeAws_restJson1StatisticSet = (input, context) => {
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 serializeAws_restJson1SubnetList = (input, context) => {
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 serializeAws_restJson1TagMap = (input, context) => {
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 serializeAws_restJson1UpdateNetworkConfigurationInput = (input, context) => {
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 deserializeAws_restJson1AirflowConfigurationOptions = (output, context) => {
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 deserializeAws_restJson1Environment = (output, context) => {
925
+ const de_Environment = (output, context) => {
936
926
  return {
937
927
  AirflowConfigurationOptions: output.AirflowConfigurationOptions != null
938
- ? deserializeAws_restJson1AirflowConfigurationOptions(output.AirflowConfigurationOptions, context)
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 ? deserializeAws_restJson1LastUpdate(output.LastUpdate, context) : undefined,
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 ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
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 deserializeAws_restJson1EnvironmentList = (output, context) => {
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 deserializeAws_restJson1LastUpdate = (output, context) => {
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 ? deserializeAws_restJson1UpdateError(output.Error, context) : undefined,
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 deserializeAws_restJson1LoggingConfiguration = (output, context) => {
978
+ const de_LoggingConfiguration = (output, context) => {
993
979
  return {
994
- DagProcessingLogs: output.DagProcessingLogs != null
995
- ? deserializeAws_restJson1ModuleLoggingConfiguration(output.DagProcessingLogs, context)
996
- : undefined,
997
- SchedulerLogs: output.SchedulerLogs != null
998
- ? deserializeAws_restJson1ModuleLoggingConfiguration(output.SchedulerLogs, context)
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 deserializeAws_restJson1ModuleLoggingConfiguration = (output, context) => {
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 deserializeAws_restJson1NetworkConfiguration = (output, context) => {
994
+ const de_NetworkConfiguration = (output, context) => {
1019
995
  return {
1020
- SecurityGroupIds: output.SecurityGroupIds != null
1021
- ? deserializeAws_restJson1SecurityGroupList(output.SecurityGroupIds, context)
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 deserializeAws_restJson1SecurityGroupList = (output, context) => {
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 deserializeAws_restJson1SubnetList = (output, context) => {
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 deserializeAws_restJson1TagMap = (output, context) => {
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 deserializeAws_restJson1UpdateError = (output, context) => {
1031
+ const de_UpdateError = (output, context) => {
1058
1032
  return {
1059
1033
  ErrorCode: __expectString(output.ErrorCode),
1060
1034
  ErrorMessage: __expectString(output.ErrorMessage),