@aws-sdk/client-mwaa 3.310.0 → 3.315.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/protocols/Aws_restJson1.js +172 -360
- package/dist-es/protocols/Aws_restJson1.js +156 -344
- package/package.json +6 -6
|
@@ -37,41 +37,29 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
37
37
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
38
38
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
...(input.Schedulers != null && { Schedulers: input.Schedulers }),
|
|
64
|
-
...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
|
|
65
|
-
...(input.StartupScriptS3ObjectVersion != null && {
|
|
66
|
-
StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
|
|
67
|
-
}),
|
|
68
|
-
...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
|
|
69
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
70
|
-
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
71
|
-
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
72
|
-
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
73
|
-
}),
|
|
74
|
-
});
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
AirflowConfigurationOptions: (_) => (0, smithy_client_1._json)(_),
|
|
42
|
+
AirflowVersion: [],
|
|
43
|
+
DagS3Path: [],
|
|
44
|
+
EnvironmentClass: [],
|
|
45
|
+
ExecutionRoleArn: [],
|
|
46
|
+
KmsKey: [],
|
|
47
|
+
LoggingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
+
MaxWorkers: [],
|
|
49
|
+
MinWorkers: [],
|
|
50
|
+
NetworkConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
+
PluginsS3ObjectVersion: [],
|
|
52
|
+
PluginsS3Path: [],
|
|
53
|
+
RequirementsS3ObjectVersion: [],
|
|
54
|
+
RequirementsS3Path: [],
|
|
55
|
+
Schedulers: [],
|
|
56
|
+
SourceBucketArn: [],
|
|
57
|
+
StartupScriptS3ObjectVersion: [],
|
|
58
|
+
StartupScriptS3Path: [],
|
|
59
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
+
WebserverAccessMode: [],
|
|
61
|
+
WeeklyMaintenanceWindowStart: [],
|
|
62
|
+
}));
|
|
75
63
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
76
64
|
if (context.disableHostPrefix !== true) {
|
|
77
65
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -166,7 +154,7 @@ const se_ListEnvironmentsCommand = async (input, context) => {
|
|
|
166
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
155
|
const headers = {};
|
|
168
156
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
169
|
-
const query = map({
|
|
157
|
+
const query = (0, smithy_client_1.map)({
|
|
170
158
|
NextToken: [, input.NextToken],
|
|
171
159
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
172
160
|
});
|
|
@@ -222,9 +210,9 @@ const se_PublishMetricsCommand = async (input, context) => {
|
|
|
222
210
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/environments/{EnvironmentName}";
|
|
223
211
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
|
|
224
212
|
let body;
|
|
225
|
-
body = JSON.stringify({
|
|
226
|
-
|
|
227
|
-
});
|
|
213
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
|
+
MetricData: (_) => se_MetricData(_, context),
|
|
215
|
+
}));
|
|
228
216
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
229
217
|
if (context.disableHostPrefix !== true) {
|
|
230
218
|
resolvedHostname = "ops." + resolvedHostname;
|
|
@@ -251,9 +239,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
251
239
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
252
240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
253
241
|
let body;
|
|
254
|
-
body = JSON.stringify({
|
|
255
|
-
|
|
256
|
-
});
|
|
242
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
243
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
244
|
+
}));
|
|
257
245
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
258
246
|
if (context.disableHostPrefix !== true) {
|
|
259
247
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -277,7 +265,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
277
265
|
const headers = {};
|
|
278
266
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
279
267
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
280
|
-
const query = map({
|
|
268
|
+
const query = (0, smithy_client_1.map)({
|
|
281
269
|
tagKeys: [
|
|
282
270
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
283
271
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -311,39 +299,27 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
311
299
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments/{Name}";
|
|
312
300
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
313
301
|
let body;
|
|
314
|
-
body = JSON.stringify({
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
...(input.RequirementsS3Path != null && { RequirementsS3Path: input.RequirementsS3Path }),
|
|
336
|
-
...(input.Schedulers != null && { Schedulers: input.Schedulers }),
|
|
337
|
-
...(input.SourceBucketArn != null && { SourceBucketArn: input.SourceBucketArn }),
|
|
338
|
-
...(input.StartupScriptS3ObjectVersion != null && {
|
|
339
|
-
StartupScriptS3ObjectVersion: input.StartupScriptS3ObjectVersion,
|
|
340
|
-
}),
|
|
341
|
-
...(input.StartupScriptS3Path != null && { StartupScriptS3Path: input.StartupScriptS3Path }),
|
|
342
|
-
...(input.WebserverAccessMode != null && { WebserverAccessMode: input.WebserverAccessMode }),
|
|
343
|
-
...(input.WeeklyMaintenanceWindowStart != null && {
|
|
344
|
-
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
345
|
-
}),
|
|
346
|
-
});
|
|
302
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
303
|
+
AirflowConfigurationOptions: (_) => (0, smithy_client_1._json)(_),
|
|
304
|
+
AirflowVersion: [],
|
|
305
|
+
DagS3Path: [],
|
|
306
|
+
EnvironmentClass: [],
|
|
307
|
+
ExecutionRoleArn: [],
|
|
308
|
+
LoggingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
309
|
+
MaxWorkers: [],
|
|
310
|
+
MinWorkers: [],
|
|
311
|
+
NetworkConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
312
|
+
PluginsS3ObjectVersion: [],
|
|
313
|
+
PluginsS3Path: [],
|
|
314
|
+
RequirementsS3ObjectVersion: [],
|
|
315
|
+
RequirementsS3Path: [],
|
|
316
|
+
Schedulers: [],
|
|
317
|
+
SourceBucketArn: [],
|
|
318
|
+
StartupScriptS3ObjectVersion: [],
|
|
319
|
+
StartupScriptS3Path: [],
|
|
320
|
+
WebserverAccessMode: [],
|
|
321
|
+
WeeklyMaintenanceWindowStart: [],
|
|
322
|
+
}));
|
|
347
323
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
348
324
|
if (context.disableHostPrefix !== true) {
|
|
349
325
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -366,16 +342,15 @@ const de_CreateCliTokenCommand = async (output, context) => {
|
|
|
366
342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
343
|
return de_CreateCliTokenCommandError(output, context);
|
|
368
344
|
}
|
|
369
|
-
const contents = map({
|
|
345
|
+
const contents = (0, smithy_client_1.map)({
|
|
370
346
|
$metadata: deserializeMetadata(output),
|
|
371
347
|
});
|
|
372
348
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
}
|
|
349
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
350
|
+
CliToken: smithy_client_1.expectString,
|
|
351
|
+
WebServerHostname: smithy_client_1.expectString,
|
|
352
|
+
});
|
|
353
|
+
Object.assign(contents, doc);
|
|
379
354
|
return contents;
|
|
380
355
|
};
|
|
381
356
|
exports.de_CreateCliTokenCommand = de_CreateCliTokenCommand;
|
|
@@ -391,10 +366,9 @@ const de_CreateCliTokenCommandError = async (output, context) => {
|
|
|
391
366
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
392
367
|
default:
|
|
393
368
|
const parsedBody = parsedOutput.body;
|
|
394
|
-
|
|
369
|
+
return throwDefaultError({
|
|
395
370
|
output,
|
|
396
371
|
parsedBody,
|
|
397
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
398
372
|
errorCode,
|
|
399
373
|
});
|
|
400
374
|
}
|
|
@@ -403,13 +377,14 @@ const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
403
377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
404
378
|
return de_CreateEnvironmentCommandError(output, context);
|
|
405
379
|
}
|
|
406
|
-
const contents = map({
|
|
380
|
+
const contents = (0, smithy_client_1.map)({
|
|
407
381
|
$metadata: deserializeMetadata(output),
|
|
408
382
|
});
|
|
409
383
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
384
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
385
|
+
Arn: smithy_client_1.expectString,
|
|
386
|
+
});
|
|
387
|
+
Object.assign(contents, doc);
|
|
413
388
|
return contents;
|
|
414
389
|
};
|
|
415
390
|
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
@@ -428,10 +403,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
428
403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
429
404
|
default:
|
|
430
405
|
const parsedBody = parsedOutput.body;
|
|
431
|
-
|
|
406
|
+
return throwDefaultError({
|
|
432
407
|
output,
|
|
433
408
|
parsedBody,
|
|
434
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
435
409
|
errorCode,
|
|
436
410
|
});
|
|
437
411
|
}
|
|
@@ -440,16 +414,15 @@ const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
|
440
414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
415
|
return de_CreateWebLoginTokenCommandError(output, context);
|
|
442
416
|
}
|
|
443
|
-
const contents = map({
|
|
417
|
+
const contents = (0, smithy_client_1.map)({
|
|
444
418
|
$metadata: deserializeMetadata(output),
|
|
445
419
|
});
|
|
446
420
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}
|
|
421
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
422
|
+
WebServerHostname: smithy_client_1.expectString,
|
|
423
|
+
WebToken: smithy_client_1.expectString,
|
|
424
|
+
});
|
|
425
|
+
Object.assign(contents, doc);
|
|
453
426
|
return contents;
|
|
454
427
|
};
|
|
455
428
|
exports.de_CreateWebLoginTokenCommand = de_CreateWebLoginTokenCommand;
|
|
@@ -474,10 +447,9 @@ const de_CreateWebLoginTokenCommandError = async (output, context) => {
|
|
|
474
447
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
475
448
|
default:
|
|
476
449
|
const parsedBody = parsedOutput.body;
|
|
477
|
-
|
|
450
|
+
return throwDefaultError({
|
|
478
451
|
output,
|
|
479
452
|
parsedBody,
|
|
480
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
481
453
|
errorCode,
|
|
482
454
|
});
|
|
483
455
|
}
|
|
@@ -486,7 +458,7 @@ const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
486
458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
459
|
return de_DeleteEnvironmentCommandError(output, context);
|
|
488
460
|
}
|
|
489
|
-
const contents = map({
|
|
461
|
+
const contents = (0, smithy_client_1.map)({
|
|
490
462
|
$metadata: deserializeMetadata(output),
|
|
491
463
|
});
|
|
492
464
|
await collectBody(output.body, context);
|
|
@@ -511,10 +483,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
511
483
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
512
484
|
default:
|
|
513
485
|
const parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
486
|
+
return throwDefaultError({
|
|
515
487
|
output,
|
|
516
488
|
parsedBody,
|
|
517
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
518
489
|
errorCode,
|
|
519
490
|
});
|
|
520
491
|
}
|
|
@@ -523,13 +494,14 @@ const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
523
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
495
|
return de_GetEnvironmentCommandError(output, context);
|
|
525
496
|
}
|
|
526
|
-
const contents = map({
|
|
497
|
+
const contents = (0, smithy_client_1.map)({
|
|
527
498
|
$metadata: deserializeMetadata(output),
|
|
528
499
|
});
|
|
529
500
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
501
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
502
|
+
Environment: (_) => de_Environment(_, context),
|
|
503
|
+
});
|
|
504
|
+
Object.assign(contents, doc);
|
|
533
505
|
return contents;
|
|
534
506
|
};
|
|
535
507
|
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
@@ -551,10 +523,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
551
523
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
524
|
default:
|
|
553
525
|
const parsedBody = parsedOutput.body;
|
|
554
|
-
|
|
526
|
+
return throwDefaultError({
|
|
555
527
|
output,
|
|
556
528
|
parsedBody,
|
|
557
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
558
529
|
errorCode,
|
|
559
530
|
});
|
|
560
531
|
}
|
|
@@ -563,16 +534,15 @@ const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
563
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
535
|
return de_ListEnvironmentsCommandError(output, context);
|
|
565
536
|
}
|
|
566
|
-
const contents = map({
|
|
537
|
+
const contents = (0, smithy_client_1.map)({
|
|
567
538
|
$metadata: deserializeMetadata(output),
|
|
568
539
|
});
|
|
569
540
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
542
|
+
Environments: smithy_client_1._json,
|
|
543
|
+
NextToken: smithy_client_1.expectString,
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
576
546
|
return contents;
|
|
577
547
|
};
|
|
578
548
|
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
@@ -591,10 +561,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
591
561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
592
562
|
default:
|
|
593
563
|
const parsedBody = parsedOutput.body;
|
|
594
|
-
|
|
564
|
+
return throwDefaultError({
|
|
595
565
|
output,
|
|
596
566
|
parsedBody,
|
|
597
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
598
567
|
errorCode,
|
|
599
568
|
});
|
|
600
569
|
}
|
|
@@ -603,13 +572,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
603
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
604
573
|
return de_ListTagsForResourceCommandError(output, context);
|
|
605
574
|
}
|
|
606
|
-
const contents = map({
|
|
575
|
+
const contents = (0, smithy_client_1.map)({
|
|
607
576
|
$metadata: deserializeMetadata(output),
|
|
608
577
|
});
|
|
609
578
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
579
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
580
|
+
Tags: smithy_client_1._json,
|
|
581
|
+
});
|
|
582
|
+
Object.assign(contents, doc);
|
|
613
583
|
return contents;
|
|
614
584
|
};
|
|
615
585
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -631,10 +601,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
631
601
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
632
602
|
default:
|
|
633
603
|
const parsedBody = parsedOutput.body;
|
|
634
|
-
|
|
604
|
+
return throwDefaultError({
|
|
635
605
|
output,
|
|
636
606
|
parsedBody,
|
|
637
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
638
607
|
errorCode,
|
|
639
608
|
});
|
|
640
609
|
}
|
|
@@ -643,7 +612,7 @@ const de_PublishMetricsCommand = async (output, context) => {
|
|
|
643
612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
613
|
return de_PublishMetricsCommandError(output, context);
|
|
645
614
|
}
|
|
646
|
-
const contents = map({
|
|
615
|
+
const contents = (0, smithy_client_1.map)({
|
|
647
616
|
$metadata: deserializeMetadata(output),
|
|
648
617
|
});
|
|
649
618
|
await collectBody(output.body, context);
|
|
@@ -665,10 +634,9 @@ const de_PublishMetricsCommandError = async (output, context) => {
|
|
|
665
634
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
635
|
default:
|
|
667
636
|
const parsedBody = parsedOutput.body;
|
|
668
|
-
|
|
637
|
+
return throwDefaultError({
|
|
669
638
|
output,
|
|
670
639
|
parsedBody,
|
|
671
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
672
640
|
errorCode,
|
|
673
641
|
});
|
|
674
642
|
}
|
|
@@ -677,7 +645,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
677
645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
646
|
return de_TagResourceCommandError(output, context);
|
|
679
647
|
}
|
|
680
|
-
const contents = map({
|
|
648
|
+
const contents = (0, smithy_client_1.map)({
|
|
681
649
|
$metadata: deserializeMetadata(output),
|
|
682
650
|
});
|
|
683
651
|
await collectBody(output.body, context);
|
|
@@ -702,10 +670,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
702
670
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
671
|
default:
|
|
704
672
|
const parsedBody = parsedOutput.body;
|
|
705
|
-
|
|
673
|
+
return throwDefaultError({
|
|
706
674
|
output,
|
|
707
675
|
parsedBody,
|
|
708
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
709
676
|
errorCode,
|
|
710
677
|
});
|
|
711
678
|
}
|
|
@@ -714,7 +681,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
714
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
715
682
|
return de_UntagResourceCommandError(output, context);
|
|
716
683
|
}
|
|
717
|
-
const contents = map({
|
|
684
|
+
const contents = (0, smithy_client_1.map)({
|
|
718
685
|
$metadata: deserializeMetadata(output),
|
|
719
686
|
});
|
|
720
687
|
await collectBody(output.body, context);
|
|
@@ -739,10 +706,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
739
706
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
707
|
default:
|
|
741
708
|
const parsedBody = parsedOutput.body;
|
|
742
|
-
|
|
709
|
+
return throwDefaultError({
|
|
743
710
|
output,
|
|
744
711
|
parsedBody,
|
|
745
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
746
712
|
errorCode,
|
|
747
713
|
});
|
|
748
714
|
}
|
|
@@ -751,13 +717,14 @@ const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
751
717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
718
|
return de_UpdateEnvironmentCommandError(output, context);
|
|
753
719
|
}
|
|
754
|
-
const contents = map({
|
|
720
|
+
const contents = (0, smithy_client_1.map)({
|
|
755
721
|
$metadata: deserializeMetadata(output),
|
|
756
722
|
});
|
|
757
723
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
724
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
725
|
+
Arn: smithy_client_1.expectString,
|
|
726
|
+
});
|
|
727
|
+
Object.assign(contents, doc);
|
|
761
728
|
return contents;
|
|
762
729
|
};
|
|
763
730
|
exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
|
|
@@ -779,21 +746,21 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
|
779
746
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
747
|
default:
|
|
781
748
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
749
|
+
return throwDefaultError({
|
|
783
750
|
output,
|
|
784
751
|
parsedBody,
|
|
785
|
-
exceptionCtor: MWAAServiceException_1.MWAAServiceException,
|
|
786
752
|
errorCode,
|
|
787
753
|
});
|
|
788
754
|
}
|
|
789
755
|
};
|
|
790
|
-
const
|
|
756
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MWAAServiceException_1.MWAAServiceException);
|
|
791
757
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
792
|
-
const contents = map({});
|
|
758
|
+
const contents = (0, smithy_client_1.map)({});
|
|
793
759
|
const data = parsedOutput.body;
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
760
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
761
|
+
Message: smithy_client_1.expectString,
|
|
762
|
+
});
|
|
763
|
+
Object.assign(contents, doc);
|
|
797
764
|
const exception = new models_0_1.AccessDeniedException({
|
|
798
765
|
$metadata: deserializeMetadata(parsedOutput),
|
|
799
766
|
...contents,
|
|
@@ -801,11 +768,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
801
768
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
802
769
|
};
|
|
803
770
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
804
|
-
const contents = map({});
|
|
771
|
+
const contents = (0, smithy_client_1.map)({});
|
|
805
772
|
const data = parsedOutput.body;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}
|
|
773
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
774
|
+
message: smithy_client_1.expectString,
|
|
775
|
+
});
|
|
776
|
+
Object.assign(contents, doc);
|
|
809
777
|
const exception = new models_0_1.InternalServerException({
|
|
810
778
|
$metadata: deserializeMetadata(parsedOutput),
|
|
811
779
|
...contents,
|
|
@@ -813,11 +781,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
813
781
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
814
782
|
};
|
|
815
783
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
816
|
-
const contents = map({});
|
|
784
|
+
const contents = (0, smithy_client_1.map)({});
|
|
817
785
|
const data = parsedOutput.body;
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
786
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
787
|
+
message: smithy_client_1.expectString,
|
|
788
|
+
});
|
|
789
|
+
Object.assign(contents, doc);
|
|
821
790
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
822
791
|
$metadata: deserializeMetadata(parsedOutput),
|
|
823
792
|
...contents,
|
|
@@ -825,54 +794,18 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
825
794
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
826
795
|
};
|
|
827
796
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
828
|
-
const contents = map({});
|
|
797
|
+
const contents = (0, smithy_client_1.map)({});
|
|
829
798
|
const data = parsedOutput.body;
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
}
|
|
799
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
800
|
+
message: smithy_client_1.expectString,
|
|
801
|
+
});
|
|
802
|
+
Object.assign(contents, doc);
|
|
833
803
|
const exception = new models_0_1.ValidationException({
|
|
834
804
|
$metadata: deserializeMetadata(parsedOutput),
|
|
835
805
|
...contents,
|
|
836
806
|
});
|
|
837
807
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
838
808
|
};
|
|
839
|
-
const se_AirflowConfigurationOptions = (input, context) => {
|
|
840
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
841
|
-
if (value === null) {
|
|
842
|
-
return acc;
|
|
843
|
-
}
|
|
844
|
-
acc[key] = value;
|
|
845
|
-
return acc;
|
|
846
|
-
}, {});
|
|
847
|
-
};
|
|
848
|
-
const se_Dimension = (input, context) => {
|
|
849
|
-
return {
|
|
850
|
-
...(input.Name != null && { Name: input.Name }),
|
|
851
|
-
...(input.Value != null && { Value: input.Value }),
|
|
852
|
-
};
|
|
853
|
-
};
|
|
854
|
-
const se_Dimensions = (input, context) => {
|
|
855
|
-
return input
|
|
856
|
-
.filter((e) => e != null)
|
|
857
|
-
.map((entry) => {
|
|
858
|
-
return se_Dimension(entry, context);
|
|
859
|
-
});
|
|
860
|
-
};
|
|
861
|
-
const se_LoggingConfigurationInput = (input, context) => {
|
|
862
|
-
return {
|
|
863
|
-
...(input.DagProcessingLogs != null && {
|
|
864
|
-
DagProcessingLogs: se_ModuleLoggingConfigurationInput(input.DagProcessingLogs, context),
|
|
865
|
-
}),
|
|
866
|
-
...(input.SchedulerLogs != null && {
|
|
867
|
-
SchedulerLogs: se_ModuleLoggingConfigurationInput(input.SchedulerLogs, context),
|
|
868
|
-
}),
|
|
869
|
-
...(input.TaskLogs != null && { TaskLogs: se_ModuleLoggingConfigurationInput(input.TaskLogs, context) }),
|
|
870
|
-
...(input.WebserverLogs != null && {
|
|
871
|
-
WebserverLogs: se_ModuleLoggingConfigurationInput(input.WebserverLogs, context),
|
|
872
|
-
}),
|
|
873
|
-
...(input.WorkerLogs != null && { WorkerLogs: se_ModuleLoggingConfigurationInput(input.WorkerLogs, context) }),
|
|
874
|
-
};
|
|
875
|
-
};
|
|
876
809
|
const se_MetricData = (input, context) => {
|
|
877
810
|
return input
|
|
878
811
|
.filter((e) => e != null)
|
|
@@ -881,183 +814,62 @@ const se_MetricData = (input, context) => {
|
|
|
881
814
|
});
|
|
882
815
|
};
|
|
883
816
|
const se_MetricDatum = (input, context) => {
|
|
884
|
-
return {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
};
|
|
892
|
-
};
|
|
893
|
-
const se_ModuleLoggingConfigurationInput = (input, context) => {
|
|
894
|
-
return {
|
|
895
|
-
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
896
|
-
...(input.LogLevel != null && { LogLevel: input.LogLevel }),
|
|
897
|
-
};
|
|
898
|
-
};
|
|
899
|
-
const se_NetworkConfiguration = (input, context) => {
|
|
900
|
-
return {
|
|
901
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
902
|
-
...(input.SubnetIds != null && { SubnetIds: se_SubnetList(input.SubnetIds, context) }),
|
|
903
|
-
};
|
|
904
|
-
};
|
|
905
|
-
const se_SecurityGroupList = (input, context) => {
|
|
906
|
-
return input
|
|
907
|
-
.filter((e) => e != null)
|
|
908
|
-
.map((entry) => {
|
|
909
|
-
return entry;
|
|
817
|
+
return (0, smithy_client_1.take)(input, {
|
|
818
|
+
Dimensions: smithy_client_1._json,
|
|
819
|
+
MetricName: [],
|
|
820
|
+
StatisticValues: (_) => se_StatisticSet(_, context),
|
|
821
|
+
Timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
822
|
+
Unit: [],
|
|
823
|
+
Value: smithy_client_1.serializeFloat,
|
|
910
824
|
});
|
|
911
825
|
};
|
|
912
826
|
const se_StatisticSet = (input, context) => {
|
|
913
|
-
return {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
};
|
|
919
|
-
};
|
|
920
|
-
const se_SubnetList = (input, context) => {
|
|
921
|
-
return input
|
|
922
|
-
.filter((e) => e != null)
|
|
923
|
-
.map((entry) => {
|
|
924
|
-
return entry;
|
|
827
|
+
return (0, smithy_client_1.take)(input, {
|
|
828
|
+
Maximum: smithy_client_1.serializeFloat,
|
|
829
|
+
Minimum: smithy_client_1.serializeFloat,
|
|
830
|
+
SampleCount: [],
|
|
831
|
+
Sum: smithy_client_1.serializeFloat,
|
|
925
832
|
});
|
|
926
833
|
};
|
|
927
|
-
const se_TagMap = (input, context) => {
|
|
928
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
929
|
-
if (value === null) {
|
|
930
|
-
return acc;
|
|
931
|
-
}
|
|
932
|
-
acc[key] = value;
|
|
933
|
-
return acc;
|
|
934
|
-
}, {});
|
|
935
|
-
};
|
|
936
|
-
const se_UpdateNetworkConfigurationInput = (input, context) => {
|
|
937
|
-
return {
|
|
938
|
-
...(input.SecurityGroupIds != null && { SecurityGroupIds: se_SecurityGroupList(input.SecurityGroupIds, context) }),
|
|
939
|
-
};
|
|
940
|
-
};
|
|
941
|
-
const de_AirflowConfigurationOptions = (output, context) => {
|
|
942
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
943
|
-
if (value === null) {
|
|
944
|
-
return acc;
|
|
945
|
-
}
|
|
946
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
947
|
-
return acc;
|
|
948
|
-
}, {});
|
|
949
|
-
};
|
|
950
834
|
const de_Environment = (output, context) => {
|
|
951
|
-
return {
|
|
952
|
-
AirflowConfigurationOptions:
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
WebserverUrl: (0, smithy_client_1.expectString)(output.WebserverUrl),
|
|
981
|
-
WeeklyMaintenanceWindowStart: (0, smithy_client_1.expectString)(output.WeeklyMaintenanceWindowStart),
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
const de_EnvironmentList = (output, context) => {
|
|
985
|
-
const retVal = (output || [])
|
|
986
|
-
.filter((e) => e != null)
|
|
987
|
-
.map((entry) => {
|
|
988
|
-
if (entry === null) {
|
|
989
|
-
return null;
|
|
990
|
-
}
|
|
991
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
835
|
+
return (0, smithy_client_1.take)(output, {
|
|
836
|
+
AirflowConfigurationOptions: smithy_client_1._json,
|
|
837
|
+
AirflowVersion: smithy_client_1.expectString,
|
|
838
|
+
Arn: smithy_client_1.expectString,
|
|
839
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
840
|
+
DagS3Path: smithy_client_1.expectString,
|
|
841
|
+
EnvironmentClass: smithy_client_1.expectString,
|
|
842
|
+
ExecutionRoleArn: smithy_client_1.expectString,
|
|
843
|
+
KmsKey: smithy_client_1.expectString,
|
|
844
|
+
LastUpdate: (_) => de_LastUpdate(_, context),
|
|
845
|
+
LoggingConfiguration: smithy_client_1._json,
|
|
846
|
+
MaxWorkers: smithy_client_1.expectInt32,
|
|
847
|
+
MinWorkers: smithy_client_1.expectInt32,
|
|
848
|
+
Name: smithy_client_1.expectString,
|
|
849
|
+
NetworkConfiguration: smithy_client_1._json,
|
|
850
|
+
PluginsS3ObjectVersion: smithy_client_1.expectString,
|
|
851
|
+
PluginsS3Path: smithy_client_1.expectString,
|
|
852
|
+
RequirementsS3ObjectVersion: smithy_client_1.expectString,
|
|
853
|
+
RequirementsS3Path: smithy_client_1.expectString,
|
|
854
|
+
Schedulers: smithy_client_1.expectInt32,
|
|
855
|
+
ServiceRoleArn: smithy_client_1.expectString,
|
|
856
|
+
SourceBucketArn: smithy_client_1.expectString,
|
|
857
|
+
StartupScriptS3ObjectVersion: smithy_client_1.expectString,
|
|
858
|
+
StartupScriptS3Path: smithy_client_1.expectString,
|
|
859
|
+
Status: smithy_client_1.expectString,
|
|
860
|
+
Tags: smithy_client_1._json,
|
|
861
|
+
WebserverAccessMode: smithy_client_1.expectString,
|
|
862
|
+
WebserverUrl: smithy_client_1.expectString,
|
|
863
|
+
WeeklyMaintenanceWindowStart: smithy_client_1.expectString,
|
|
992
864
|
});
|
|
993
|
-
return retVal;
|
|
994
865
|
};
|
|
995
866
|
const de_LastUpdate = (output, context) => {
|
|
996
|
-
return {
|
|
997
|
-
CreatedAt:
|
|
998
|
-
Error:
|
|
999
|
-
Source:
|
|
1000
|
-
Status:
|
|
1001
|
-
};
|
|
1002
|
-
};
|
|
1003
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
1004
|
-
return {
|
|
1005
|
-
DagProcessingLogs: output.DagProcessingLogs != null ? de_ModuleLoggingConfiguration(output.DagProcessingLogs, context) : undefined,
|
|
1006
|
-
SchedulerLogs: output.SchedulerLogs != null ? de_ModuleLoggingConfiguration(output.SchedulerLogs, context) : undefined,
|
|
1007
|
-
TaskLogs: output.TaskLogs != null ? de_ModuleLoggingConfiguration(output.TaskLogs, context) : undefined,
|
|
1008
|
-
WebserverLogs: output.WebserverLogs != null ? de_ModuleLoggingConfiguration(output.WebserverLogs, context) : undefined,
|
|
1009
|
-
WorkerLogs: output.WorkerLogs != null ? de_ModuleLoggingConfiguration(output.WorkerLogs, context) : undefined,
|
|
1010
|
-
};
|
|
1011
|
-
};
|
|
1012
|
-
const de_ModuleLoggingConfiguration = (output, context) => {
|
|
1013
|
-
return {
|
|
1014
|
-
CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
|
|
1015
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
1016
|
-
LogLevel: (0, smithy_client_1.expectString)(output.LogLevel),
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
const de_NetworkConfiguration = (output, context) => {
|
|
1020
|
-
return {
|
|
1021
|
-
SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupList(output.SecurityGroupIds, context) : undefined,
|
|
1022
|
-
SubnetIds: output.SubnetIds != null ? de_SubnetList(output.SubnetIds, context) : undefined,
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
const de_SecurityGroupList = (output, context) => {
|
|
1026
|
-
const retVal = (output || [])
|
|
1027
|
-
.filter((e) => e != null)
|
|
1028
|
-
.map((entry) => {
|
|
1029
|
-
if (entry === null) {
|
|
1030
|
-
return null;
|
|
1031
|
-
}
|
|
1032
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1033
|
-
});
|
|
1034
|
-
return retVal;
|
|
1035
|
-
};
|
|
1036
|
-
const de_SubnetList = (output, context) => {
|
|
1037
|
-
const retVal = (output || [])
|
|
1038
|
-
.filter((e) => e != null)
|
|
1039
|
-
.map((entry) => {
|
|
1040
|
-
if (entry === null) {
|
|
1041
|
-
return null;
|
|
1042
|
-
}
|
|
1043
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
867
|
+
return (0, smithy_client_1.take)(output, {
|
|
868
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
869
|
+
Error: smithy_client_1._json,
|
|
870
|
+
Source: smithy_client_1.expectString,
|
|
871
|
+
Status: smithy_client_1.expectString,
|
|
1044
872
|
});
|
|
1045
|
-
return retVal;
|
|
1046
|
-
};
|
|
1047
|
-
const de_TagMap = (output, context) => {
|
|
1048
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1049
|
-
if (value === null) {
|
|
1050
|
-
return acc;
|
|
1051
|
-
}
|
|
1052
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1053
|
-
return acc;
|
|
1054
|
-
}, {});
|
|
1055
|
-
};
|
|
1056
|
-
const de_UpdateError = (output, context) => {
|
|
1057
|
-
return {
|
|
1058
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1059
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1060
|
-
};
|
|
1061
873
|
};
|
|
1062
874
|
const deserializeMetadata = (output) => ({
|
|
1063
875
|
httpStatusCode: output.statusCode,
|