@aws-sdk/client-mwaa 3.490.0 → 3.495.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 (30) hide show
  1. package/dist-cjs/MWAA.js +1 -33
  2. package/dist-cjs/MWAAClient.js +1 -43
  3. package/dist-cjs/commands/CreateCliTokenCommand.js +1 -29
  4. package/dist-cjs/commands/CreateEnvironmentCommand.js +1 -29
  5. package/dist-cjs/commands/CreateWebLoginTokenCommand.js +1 -29
  6. package/dist-cjs/commands/DeleteEnvironmentCommand.js +1 -28
  7. package/dist-cjs/commands/GetEnvironmentCommand.js +1 -29
  8. package/dist-cjs/commands/ListEnvironmentsCommand.js +1 -28
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  10. package/dist-cjs/commands/PublishMetricsCommand.js +1 -28
  11. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  12. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  13. package/dist-cjs/commands/UpdateEnvironmentCommand.js +1 -29
  14. package/dist-cjs/commands/index.js +1 -14
  15. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  16. package/dist-cjs/extensionConfiguration.js +1 -2
  17. package/dist-cjs/index.js +1413 -11
  18. package/dist-cjs/models/MWAAServiceException.js +1 -12
  19. package/dist-cjs/models/index.js +1 -4
  20. package/dist-cjs/models/models_0.js +1 -150
  21. package/dist-cjs/pagination/Interfaces.js +1 -2
  22. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +1 -7
  23. package/dist-cjs/pagination/index.js +1 -5
  24. package/dist-cjs/protocols/Aws_restJson1.js +1 -866
  25. package/dist-cjs/runtimeExtensions.js +1 -22
  26. package/dist-es/protocols/Aws_restJson1.js +2 -0
  27. package/dist-types/commands/CreateWebLoginTokenCommand.d.ts +2 -0
  28. package/dist-types/models/models_0.d.ts +10 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  30. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1414 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MWAAServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./MWAAClient"), exports);
6
- tslib_1.__exportStar(require("./MWAA"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var MWAAServiceException_1 = require("./models/MWAAServiceException");
12
- Object.defineProperty(exports, "MWAAServiceException", { enumerable: true, get: function () { return MWAAServiceException_1.MWAAServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ CreateCliTokenCommand: () => CreateCliTokenCommand,
26
+ CreateCliTokenResponseFilterSensitiveLog: () => CreateCliTokenResponseFilterSensitiveLog,
27
+ CreateEnvironmentCommand: () => CreateEnvironmentCommand,
28
+ CreateEnvironmentInputFilterSensitiveLog: () => CreateEnvironmentInputFilterSensitiveLog,
29
+ CreateWebLoginTokenCommand: () => CreateWebLoginTokenCommand,
30
+ CreateWebLoginTokenResponseFilterSensitiveLog: () => CreateWebLoginTokenResponseFilterSensitiveLog,
31
+ DeleteEnvironmentCommand: () => DeleteEnvironmentCommand,
32
+ EndpointManagement: () => EndpointManagement,
33
+ EnvironmentFilterSensitiveLog: () => EnvironmentFilterSensitiveLog,
34
+ EnvironmentStatus: () => EnvironmentStatus,
35
+ GetEnvironmentCommand: () => GetEnvironmentCommand,
36
+ GetEnvironmentOutputFilterSensitiveLog: () => GetEnvironmentOutputFilterSensitiveLog,
37
+ InternalServerException: () => InternalServerException,
38
+ ListEnvironmentsCommand: () => ListEnvironmentsCommand,
39
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
40
+ LoggingLevel: () => LoggingLevel,
41
+ MWAA: () => MWAA,
42
+ MWAAClient: () => MWAAClient,
43
+ MWAAServiceException: () => MWAAServiceException,
44
+ PublishMetricsCommand: () => PublishMetricsCommand,
45
+ ResourceNotFoundException: () => ResourceNotFoundException,
46
+ TagResourceCommand: () => TagResourceCommand,
47
+ Unit: () => Unit,
48
+ UntagResourceCommand: () => UntagResourceCommand,
49
+ UpdateEnvironmentCommand: () => UpdateEnvironmentCommand,
50
+ UpdateEnvironmentInputFilterSensitiveLog: () => UpdateEnvironmentInputFilterSensitiveLog,
51
+ UpdateStatus: () => UpdateStatus,
52
+ ValidationException: () => ValidationException,
53
+ WebserverAccessMode: () => WebserverAccessMode,
54
+ __Client: () => import_smithy_client.Client,
55
+ paginateListEnvironments: () => paginateListEnvironments
56
+ });
57
+ module.exports = __toCommonJS(src_exports);
58
+
59
+ // src/MWAAClient.ts
60
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
61
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
62
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
63
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
64
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
65
+ var import_config_resolver = require("@smithy/config-resolver");
66
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
67
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
68
+ var import_middleware_retry = require("@smithy/middleware-retry");
69
+
70
+
71
+ // src/endpoint/EndpointParameters.ts
72
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
73
+ return {
74
+ ...options,
75
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
76
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
77
+ defaultSigningName: "airflow"
78
+ };
79
+ }, "resolveClientEndpointParameters");
80
+ var commonParams = {
81
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
82
+ Endpoint: { type: "builtInParams", name: "endpoint" },
83
+ Region: { type: "builtInParams", name: "region" },
84
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
85
+ };
86
+
87
+ // src/MWAAClient.ts
88
+ var import_runtimeConfig = require("././runtimeConfig");
89
+
90
+ // src/runtimeExtensions.ts
91
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
92
+ var import_protocol_http = require("@smithy/protocol-http");
93
+ var import_smithy_client = require("@smithy/smithy-client");
94
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
95
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
96
+ const extensionConfiguration = {
97
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
98
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
99
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
100
+ };
101
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
102
+ return {
103
+ ...runtimeConfig,
104
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
105
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
106
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
107
+ };
108
+ }, "resolveRuntimeExtensions");
109
+
110
+ // src/MWAAClient.ts
111
+ var _MWAAClient = class _MWAAClient extends import_smithy_client.Client {
112
+ constructor(...[configuration]) {
113
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
114
+ const _config_1 = resolveClientEndpointParameters(_config_0);
115
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
116
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
117
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
118
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
119
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
120
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
121
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
122
+ super(_config_8);
123
+ this.config = _config_8;
124
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
125
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
126
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
127
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
128
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
129
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
130
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
131
+ }
132
+ /**
133
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
134
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
135
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
136
+ */
137
+ destroy() {
138
+ super.destroy();
139
+ }
140
+ };
141
+ __name(_MWAAClient, "MWAAClient");
142
+ var MWAAClient = _MWAAClient;
143
+
144
+ // src/MWAA.ts
145
+
146
+
147
+ // src/commands/CreateCliTokenCommand.ts
148
+
149
+ var import_middleware_serde = require("@smithy/middleware-serde");
150
+
151
+ var import_types = require("@smithy/types");
152
+
153
+ // src/models/models_0.ts
154
+
155
+
156
+ // src/models/MWAAServiceException.ts
157
+
158
+ var _MWAAServiceException = class _MWAAServiceException extends import_smithy_client.ServiceException {
159
+ /**
160
+ * @internal
161
+ */
162
+ constructor(options) {
163
+ super(options);
164
+ Object.setPrototypeOf(this, _MWAAServiceException.prototype);
165
+ }
166
+ };
167
+ __name(_MWAAServiceException, "MWAAServiceException");
168
+ var MWAAServiceException = _MWAAServiceException;
169
+
170
+ // src/models/models_0.ts
171
+ var _AccessDeniedException = class _AccessDeniedException extends MWAAServiceException {
172
+ /**
173
+ * @internal
174
+ */
175
+ constructor(opts) {
176
+ super({
177
+ name: "AccessDeniedException",
178
+ $fault: "client",
179
+ ...opts
180
+ });
181
+ this.name = "AccessDeniedException";
182
+ this.$fault = "client";
183
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
184
+ this.Message = opts.Message;
185
+ }
186
+ };
187
+ __name(_AccessDeniedException, "AccessDeniedException");
188
+ var AccessDeniedException = _AccessDeniedException;
189
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends MWAAServiceException {
190
+ /**
191
+ * @internal
192
+ */
193
+ constructor(opts) {
194
+ super({
195
+ name: "ResourceNotFoundException",
196
+ $fault: "client",
197
+ ...opts
198
+ });
199
+ this.name = "ResourceNotFoundException";
200
+ this.$fault = "client";
201
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
202
+ }
203
+ };
204
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
205
+ var ResourceNotFoundException = _ResourceNotFoundException;
206
+ var EndpointManagement = {
207
+ CUSTOMER: "CUSTOMER",
208
+ SERVICE: "SERVICE"
209
+ };
210
+ var LoggingLevel = {
211
+ CRITICAL: "CRITICAL",
212
+ DEBUG: "DEBUG",
213
+ ERROR: "ERROR",
214
+ INFO: "INFO",
215
+ WARNING: "WARNING"
216
+ };
217
+ var WebserverAccessMode = {
218
+ PRIVATE_ONLY: "PRIVATE_ONLY",
219
+ PUBLIC_ONLY: "PUBLIC_ONLY"
220
+ };
221
+ var _InternalServerException = class _InternalServerException extends MWAAServiceException {
222
+ /**
223
+ * @internal
224
+ */
225
+ constructor(opts) {
226
+ super({
227
+ name: "InternalServerException",
228
+ $fault: "server",
229
+ ...opts
230
+ });
231
+ this.name = "InternalServerException";
232
+ this.$fault = "server";
233
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
234
+ }
235
+ };
236
+ __name(_InternalServerException, "InternalServerException");
237
+ var InternalServerException = _InternalServerException;
238
+ var _ValidationException = class _ValidationException extends MWAAServiceException {
239
+ /**
240
+ * @internal
241
+ */
242
+ constructor(opts) {
243
+ super({
244
+ name: "ValidationException",
245
+ $fault: "client",
246
+ ...opts
247
+ });
248
+ this.name = "ValidationException";
249
+ this.$fault = "client";
250
+ Object.setPrototypeOf(this, _ValidationException.prototype);
251
+ }
252
+ };
253
+ __name(_ValidationException, "ValidationException");
254
+ var ValidationException = _ValidationException;
255
+ var UpdateStatus = {
256
+ FAILED: "FAILED",
257
+ PENDING: "PENDING",
258
+ SUCCESS: "SUCCESS"
259
+ };
260
+ var EnvironmentStatus = {
261
+ AVAILABLE: "AVAILABLE",
262
+ CREATE_FAILED: "CREATE_FAILED",
263
+ CREATING: "CREATING",
264
+ CREATING_SNAPSHOT: "CREATING_SNAPSHOT",
265
+ DELETED: "DELETED",
266
+ DELETING: "DELETING",
267
+ PENDING: "PENDING",
268
+ ROLLING_BACK: "ROLLING_BACK",
269
+ UNAVAILABLE: "UNAVAILABLE",
270
+ UPDATE_FAILED: "UPDATE_FAILED",
271
+ UPDATING: "UPDATING"
272
+ };
273
+ var Unit = {
274
+ BITS: "Bits",
275
+ BITS_PER_SECOND: "Bits/Second",
276
+ BYTES: "Bytes",
277
+ BYTES_PER_SECOND: "Bytes/Second",
278
+ COUNT: "Count",
279
+ COUNT_PER_SECOND: "Count/Second",
280
+ GIGABITS: "Gigabits",
281
+ GIGABITS_PER_SECOND: "Gigabits/Second",
282
+ GIGABYTES: "Gigabytes",
283
+ GIGABYTES_PER_SECOND: "Gigabytes/Second",
284
+ KILOBITS: "Kilobits",
285
+ KILOBITS_PER_SECOND: "Kilobits/Second",
286
+ KILOBYTES: "Kilobytes",
287
+ KILOBYTES_PER_SECOND: "Kilobytes/Second",
288
+ MEGABITS: "Megabits",
289
+ MEGABITS_PER_SECOND: "Megabits/Second",
290
+ MEGABYTES: "Megabytes",
291
+ MEGABYTES_PER_SECOND: "Megabytes/Second",
292
+ MICROSECONDS: "Microseconds",
293
+ MILLISECONDS: "Milliseconds",
294
+ NONE: "None",
295
+ PERCENT: "Percent",
296
+ SECONDS: "Seconds",
297
+ TERABITS: "Terabits",
298
+ TERABITS_PER_SECOND: "Terabits/Second",
299
+ TERABYTES: "Terabytes",
300
+ TERABYTES_PER_SECOND: "Terabytes/Second"
301
+ };
302
+ var CreateCliTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
303
+ ...obj,
304
+ ...obj.CliToken && { CliToken: import_smithy_client.SENSITIVE_STRING }
305
+ }), "CreateCliTokenResponseFilterSensitiveLog");
306
+ var CreateEnvironmentInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
307
+ ...obj,
308
+ ...obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: import_smithy_client.SENSITIVE_STRING }
309
+ }), "CreateEnvironmentInputFilterSensitiveLog");
310
+ var CreateWebLoginTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
311
+ ...obj,
312
+ ...obj.WebToken && { WebToken: import_smithy_client.SENSITIVE_STRING }
313
+ }), "CreateWebLoginTokenResponseFilterSensitiveLog");
314
+ var EnvironmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
315
+ ...obj,
316
+ ...obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: import_smithy_client.SENSITIVE_STRING }
317
+ }), "EnvironmentFilterSensitiveLog");
318
+ var GetEnvironmentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
319
+ ...obj,
320
+ ...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
321
+ }), "GetEnvironmentOutputFilterSensitiveLog");
322
+ var UpdateEnvironmentInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
323
+ ...obj,
324
+ ...obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: import_smithy_client.SENSITIVE_STRING }
325
+ }), "UpdateEnvironmentInputFilterSensitiveLog");
326
+
327
+ // src/protocols/Aws_restJson1.ts
328
+ var import_core = require("@smithy/core");
329
+
330
+
331
+ var se_CreateCliTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
332
+ const b = (0, import_core.requestBuilder)(input, context);
333
+ const headers = {};
334
+ b.bp("/clitoken/{Name}");
335
+ b.p("Name", () => input.Name, "{Name}", false);
336
+ let body;
337
+ let { hostname: resolvedHostname } = await context.endpoint();
338
+ if (context.disableHostPrefix !== true) {
339
+ resolvedHostname = "env." + resolvedHostname;
340
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
341
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
342
+ }
343
+ }
344
+ b.hn(resolvedHostname);
345
+ b.m("POST").h(headers).b(body);
346
+ return b.build();
347
+ }, "se_CreateCliTokenCommand");
348
+ var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
349
+ const b = (0, import_core.requestBuilder)(input, context);
350
+ const headers = {
351
+ "content-type": "application/json"
352
+ };
353
+ b.bp("/environments/{Name}");
354
+ b.p("Name", () => input.Name, "{Name}", false);
355
+ let body;
356
+ body = JSON.stringify(
357
+ (0, import_smithy_client.take)(input, {
358
+ AirflowConfigurationOptions: (_) => (0, import_smithy_client._json)(_),
359
+ AirflowVersion: [],
360
+ DagS3Path: [],
361
+ EndpointManagement: [],
362
+ EnvironmentClass: [],
363
+ ExecutionRoleArn: [],
364
+ KmsKey: [],
365
+ LoggingConfiguration: (_) => (0, import_smithy_client._json)(_),
366
+ MaxWorkers: [],
367
+ MinWorkers: [],
368
+ NetworkConfiguration: (_) => (0, import_smithy_client._json)(_),
369
+ PluginsS3ObjectVersion: [],
370
+ PluginsS3Path: [],
371
+ RequirementsS3ObjectVersion: [],
372
+ RequirementsS3Path: [],
373
+ Schedulers: [],
374
+ SourceBucketArn: [],
375
+ StartupScriptS3ObjectVersion: [],
376
+ StartupScriptS3Path: [],
377
+ Tags: (_) => (0, import_smithy_client._json)(_),
378
+ WebserverAccessMode: [],
379
+ WeeklyMaintenanceWindowStart: []
380
+ })
381
+ );
382
+ let { hostname: resolvedHostname } = await context.endpoint();
383
+ if (context.disableHostPrefix !== true) {
384
+ resolvedHostname = "api." + resolvedHostname;
385
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
386
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
387
+ }
388
+ }
389
+ b.hn(resolvedHostname);
390
+ b.m("PUT").h(headers).b(body);
391
+ return b.build();
392
+ }, "se_CreateEnvironmentCommand");
393
+ var se_CreateWebLoginTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
394
+ const b = (0, import_core.requestBuilder)(input, context);
395
+ const headers = {};
396
+ b.bp("/webtoken/{Name}");
397
+ b.p("Name", () => input.Name, "{Name}", false);
398
+ let body;
399
+ let { hostname: resolvedHostname } = await context.endpoint();
400
+ if (context.disableHostPrefix !== true) {
401
+ resolvedHostname = "env." + resolvedHostname;
402
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
403
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
404
+ }
405
+ }
406
+ b.hn(resolvedHostname);
407
+ b.m("POST").h(headers).b(body);
408
+ return b.build();
409
+ }, "se_CreateWebLoginTokenCommand");
410
+ var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
411
+ const b = (0, import_core.requestBuilder)(input, context);
412
+ const headers = {};
413
+ b.bp("/environments/{Name}");
414
+ b.p("Name", () => input.Name, "{Name}", false);
415
+ let body;
416
+ let { hostname: resolvedHostname } = await context.endpoint();
417
+ if (context.disableHostPrefix !== true) {
418
+ resolvedHostname = "api." + resolvedHostname;
419
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
420
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
421
+ }
422
+ }
423
+ b.hn(resolvedHostname);
424
+ b.m("DELETE").h(headers).b(body);
425
+ return b.build();
426
+ }, "se_DeleteEnvironmentCommand");
427
+ var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
428
+ const b = (0, import_core.requestBuilder)(input, context);
429
+ const headers = {};
430
+ b.bp("/environments/{Name}");
431
+ b.p("Name", () => input.Name, "{Name}", false);
432
+ let body;
433
+ let { hostname: resolvedHostname } = await context.endpoint();
434
+ if (context.disableHostPrefix !== true) {
435
+ resolvedHostname = "api." + resolvedHostname;
436
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
437
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
438
+ }
439
+ }
440
+ b.hn(resolvedHostname);
441
+ b.m("GET").h(headers).b(body);
442
+ return b.build();
443
+ }, "se_GetEnvironmentCommand");
444
+ var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
445
+ const b = (0, import_core.requestBuilder)(input, context);
446
+ const headers = {};
447
+ b.bp("/environments");
448
+ const query = (0, import_smithy_client.map)({
449
+ [_NT]: [, input[_NT]],
450
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
451
+ });
452
+ let body;
453
+ let { hostname: resolvedHostname } = await context.endpoint();
454
+ if (context.disableHostPrefix !== true) {
455
+ resolvedHostname = "api." + resolvedHostname;
456
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
457
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
458
+ }
459
+ }
460
+ b.hn(resolvedHostname);
461
+ b.m("GET").h(headers).q(query).b(body);
462
+ return b.build();
463
+ }, "se_ListEnvironmentsCommand");
464
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
465
+ const b = (0, import_core.requestBuilder)(input, context);
466
+ const headers = {};
467
+ b.bp("/tags/{ResourceArn}");
468
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
469
+ let body;
470
+ let { hostname: resolvedHostname } = await context.endpoint();
471
+ if (context.disableHostPrefix !== true) {
472
+ resolvedHostname = "api." + resolvedHostname;
473
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
474
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
475
+ }
476
+ }
477
+ b.hn(resolvedHostname);
478
+ b.m("GET").h(headers).b(body);
479
+ return b.build();
480
+ }, "se_ListTagsForResourceCommand");
481
+ var se_PublishMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
482
+ const b = (0, import_core.requestBuilder)(input, context);
483
+ const headers = {
484
+ "content-type": "application/json"
485
+ };
486
+ b.bp("/metrics/environments/{EnvironmentName}");
487
+ b.p("EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
488
+ let body;
489
+ body = JSON.stringify(
490
+ (0, import_smithy_client.take)(input, {
491
+ MetricData: (_) => se_MetricData(_, context)
492
+ })
493
+ );
494
+ let { hostname: resolvedHostname } = await context.endpoint();
495
+ if (context.disableHostPrefix !== true) {
496
+ resolvedHostname = "ops." + resolvedHostname;
497
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
498
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
499
+ }
500
+ }
501
+ b.hn(resolvedHostname);
502
+ b.m("POST").h(headers).b(body);
503
+ return b.build();
504
+ }, "se_PublishMetricsCommand");
505
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
506
+ const b = (0, import_core.requestBuilder)(input, context);
507
+ const headers = {
508
+ "content-type": "application/json"
509
+ };
510
+ b.bp("/tags/{ResourceArn}");
511
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
512
+ let body;
513
+ body = JSON.stringify(
514
+ (0, import_smithy_client.take)(input, {
515
+ Tags: (_) => (0, import_smithy_client._json)(_)
516
+ })
517
+ );
518
+ let { hostname: resolvedHostname } = await context.endpoint();
519
+ if (context.disableHostPrefix !== true) {
520
+ resolvedHostname = "api." + resolvedHostname;
521
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
522
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
523
+ }
524
+ }
525
+ b.hn(resolvedHostname);
526
+ b.m("POST").h(headers).b(body);
527
+ return b.build();
528
+ }, "se_TagResourceCommand");
529
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
530
+ const b = (0, import_core.requestBuilder)(input, context);
531
+ const headers = {};
532
+ b.bp("/tags/{ResourceArn}");
533
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
534
+ const query = (0, import_smithy_client.map)({
535
+ [_tK]: [
536
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
537
+ () => (input[_tK] || []).map((_entry) => _entry)
538
+ ]
539
+ });
540
+ let body;
541
+ let { hostname: resolvedHostname } = await context.endpoint();
542
+ if (context.disableHostPrefix !== true) {
543
+ resolvedHostname = "api." + resolvedHostname;
544
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
545
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
546
+ }
547
+ }
548
+ b.hn(resolvedHostname);
549
+ b.m("DELETE").h(headers).q(query).b(body);
550
+ return b.build();
551
+ }, "se_UntagResourceCommand");
552
+ var se_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
553
+ const b = (0, import_core.requestBuilder)(input, context);
554
+ const headers = {
555
+ "content-type": "application/json"
556
+ };
557
+ b.bp("/environments/{Name}");
558
+ b.p("Name", () => input.Name, "{Name}", false);
559
+ let body;
560
+ body = JSON.stringify(
561
+ (0, import_smithy_client.take)(input, {
562
+ AirflowConfigurationOptions: (_) => (0, import_smithy_client._json)(_),
563
+ AirflowVersion: [],
564
+ DagS3Path: [],
565
+ EnvironmentClass: [],
566
+ ExecutionRoleArn: [],
567
+ LoggingConfiguration: (_) => (0, import_smithy_client._json)(_),
568
+ MaxWorkers: [],
569
+ MinWorkers: [],
570
+ NetworkConfiguration: (_) => (0, import_smithy_client._json)(_),
571
+ PluginsS3ObjectVersion: [],
572
+ PluginsS3Path: [],
573
+ RequirementsS3ObjectVersion: [],
574
+ RequirementsS3Path: [],
575
+ Schedulers: [],
576
+ SourceBucketArn: [],
577
+ StartupScriptS3ObjectVersion: [],
578
+ StartupScriptS3Path: [],
579
+ WebserverAccessMode: [],
580
+ WeeklyMaintenanceWindowStart: []
581
+ })
582
+ );
583
+ let { hostname: resolvedHostname } = await context.endpoint();
584
+ if (context.disableHostPrefix !== true) {
585
+ resolvedHostname = "api." + resolvedHostname;
586
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
587
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
588
+ }
589
+ }
590
+ b.hn(resolvedHostname);
591
+ b.m("PATCH").h(headers).b(body);
592
+ return b.build();
593
+ }, "se_UpdateEnvironmentCommand");
594
+ var de_CreateCliTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
595
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
596
+ return de_CreateCliTokenCommandError(output, context);
597
+ }
598
+ const contents = (0, import_smithy_client.map)({
599
+ $metadata: deserializeMetadata(output)
600
+ });
601
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
602
+ const doc = (0, import_smithy_client.take)(data, {
603
+ CliToken: import_smithy_client.expectString,
604
+ WebServerHostname: import_smithy_client.expectString
605
+ });
606
+ Object.assign(contents, doc);
607
+ return contents;
608
+ }, "de_CreateCliTokenCommand");
609
+ var de_CreateCliTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
610
+ const parsedOutput = {
611
+ ...output,
612
+ body: await parseErrorBody(output.body, context)
613
+ };
614
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
615
+ switch (errorCode) {
616
+ case "ResourceNotFoundException":
617
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
618
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
619
+ default:
620
+ const parsedBody = parsedOutput.body;
621
+ return throwDefaultError({
622
+ output,
623
+ parsedBody,
624
+ errorCode
625
+ });
626
+ }
627
+ }, "de_CreateCliTokenCommandError");
628
+ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
629
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
630
+ return de_CreateEnvironmentCommandError(output, context);
631
+ }
632
+ const contents = (0, import_smithy_client.map)({
633
+ $metadata: deserializeMetadata(output)
634
+ });
635
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
636
+ const doc = (0, import_smithy_client.take)(data, {
637
+ Arn: import_smithy_client.expectString
638
+ });
639
+ Object.assign(contents, doc);
640
+ return contents;
641
+ }, "de_CreateEnvironmentCommand");
642
+ var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
643
+ const parsedOutput = {
644
+ ...output,
645
+ body: await parseErrorBody(output.body, context)
646
+ };
647
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
648
+ switch (errorCode) {
649
+ case "InternalServerException":
650
+ case "com.amazonaws.mwaa#InternalServerException":
651
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
652
+ case "ValidationException":
653
+ case "com.amazonaws.mwaa#ValidationException":
654
+ throw await de_ValidationExceptionRes(parsedOutput, context);
655
+ default:
656
+ const parsedBody = parsedOutput.body;
657
+ return throwDefaultError({
658
+ output,
659
+ parsedBody,
660
+ errorCode
661
+ });
662
+ }
663
+ }, "de_CreateEnvironmentCommandError");
664
+ var de_CreateWebLoginTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
665
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
666
+ return de_CreateWebLoginTokenCommandError(output, context);
667
+ }
668
+ const contents = (0, import_smithy_client.map)({
669
+ $metadata: deserializeMetadata(output)
670
+ });
671
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
672
+ const doc = (0, import_smithy_client.take)(data, {
673
+ AirflowIdentity: import_smithy_client.expectString,
674
+ IamIdentity: import_smithy_client.expectString,
675
+ WebServerHostname: import_smithy_client.expectString,
676
+ WebToken: import_smithy_client.expectString
677
+ });
678
+ Object.assign(contents, doc);
679
+ return contents;
680
+ }, "de_CreateWebLoginTokenCommand");
681
+ var de_CreateWebLoginTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
682
+ const parsedOutput = {
683
+ ...output,
684
+ body: await parseErrorBody(output.body, context)
685
+ };
686
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
687
+ switch (errorCode) {
688
+ case "AccessDeniedException":
689
+ case "com.amazonaws.mwaa#AccessDeniedException":
690
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
691
+ case "InternalServerException":
692
+ case "com.amazonaws.mwaa#InternalServerException":
693
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
694
+ case "ResourceNotFoundException":
695
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
696
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
697
+ case "ValidationException":
698
+ case "com.amazonaws.mwaa#ValidationException":
699
+ throw await de_ValidationExceptionRes(parsedOutput, context);
700
+ default:
701
+ const parsedBody = parsedOutput.body;
702
+ return throwDefaultError({
703
+ output,
704
+ parsedBody,
705
+ errorCode
706
+ });
707
+ }
708
+ }, "de_CreateWebLoginTokenCommandError");
709
+ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
710
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
711
+ return de_DeleteEnvironmentCommandError(output, context);
712
+ }
713
+ const contents = (0, import_smithy_client.map)({
714
+ $metadata: deserializeMetadata(output)
715
+ });
716
+ await (0, import_smithy_client.collectBody)(output.body, context);
717
+ return contents;
718
+ }, "de_DeleteEnvironmentCommand");
719
+ var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
720
+ const parsedOutput = {
721
+ ...output,
722
+ body: await parseErrorBody(output.body, context)
723
+ };
724
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
725
+ switch (errorCode) {
726
+ case "InternalServerException":
727
+ case "com.amazonaws.mwaa#InternalServerException":
728
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
729
+ case "ResourceNotFoundException":
730
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
731
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
732
+ case "ValidationException":
733
+ case "com.amazonaws.mwaa#ValidationException":
734
+ throw await de_ValidationExceptionRes(parsedOutput, context);
735
+ default:
736
+ const parsedBody = parsedOutput.body;
737
+ return throwDefaultError({
738
+ output,
739
+ parsedBody,
740
+ errorCode
741
+ });
742
+ }
743
+ }, "de_DeleteEnvironmentCommandError");
744
+ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
745
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
746
+ return de_GetEnvironmentCommandError(output, context);
747
+ }
748
+ const contents = (0, import_smithy_client.map)({
749
+ $metadata: deserializeMetadata(output)
750
+ });
751
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
752
+ const doc = (0, import_smithy_client.take)(data, {
753
+ Environment: (_) => de_Environment(_, context)
754
+ });
755
+ Object.assign(contents, doc);
756
+ return contents;
757
+ }, "de_GetEnvironmentCommand");
758
+ var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
759
+ const parsedOutput = {
760
+ ...output,
761
+ body: await parseErrorBody(output.body, context)
762
+ };
763
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
764
+ switch (errorCode) {
765
+ case "InternalServerException":
766
+ case "com.amazonaws.mwaa#InternalServerException":
767
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
768
+ case "ResourceNotFoundException":
769
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
770
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
771
+ case "ValidationException":
772
+ case "com.amazonaws.mwaa#ValidationException":
773
+ throw await de_ValidationExceptionRes(parsedOutput, context);
774
+ default:
775
+ const parsedBody = parsedOutput.body;
776
+ return throwDefaultError({
777
+ output,
778
+ parsedBody,
779
+ errorCode
780
+ });
781
+ }
782
+ }, "de_GetEnvironmentCommandError");
783
+ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
784
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
785
+ return de_ListEnvironmentsCommandError(output, context);
786
+ }
787
+ const contents = (0, import_smithy_client.map)({
788
+ $metadata: deserializeMetadata(output)
789
+ });
790
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
791
+ const doc = (0, import_smithy_client.take)(data, {
792
+ Environments: import_smithy_client._json,
793
+ NextToken: import_smithy_client.expectString
794
+ });
795
+ Object.assign(contents, doc);
796
+ return contents;
797
+ }, "de_ListEnvironmentsCommand");
798
+ var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
799
+ const parsedOutput = {
800
+ ...output,
801
+ body: await parseErrorBody(output.body, context)
802
+ };
803
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
804
+ switch (errorCode) {
805
+ case "InternalServerException":
806
+ case "com.amazonaws.mwaa#InternalServerException":
807
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
808
+ case "ValidationException":
809
+ case "com.amazonaws.mwaa#ValidationException":
810
+ throw await de_ValidationExceptionRes(parsedOutput, context);
811
+ default:
812
+ const parsedBody = parsedOutput.body;
813
+ return throwDefaultError({
814
+ output,
815
+ parsedBody,
816
+ errorCode
817
+ });
818
+ }
819
+ }, "de_ListEnvironmentsCommandError");
820
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
821
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
822
+ return de_ListTagsForResourceCommandError(output, context);
823
+ }
824
+ const contents = (0, import_smithy_client.map)({
825
+ $metadata: deserializeMetadata(output)
826
+ });
827
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
828
+ const doc = (0, import_smithy_client.take)(data, {
829
+ Tags: import_smithy_client._json
830
+ });
831
+ Object.assign(contents, doc);
832
+ return contents;
833
+ }, "de_ListTagsForResourceCommand");
834
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
835
+ const parsedOutput = {
836
+ ...output,
837
+ body: await parseErrorBody(output.body, context)
838
+ };
839
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
840
+ switch (errorCode) {
841
+ case "InternalServerException":
842
+ case "com.amazonaws.mwaa#InternalServerException":
843
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
844
+ case "ResourceNotFoundException":
845
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
846
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
847
+ case "ValidationException":
848
+ case "com.amazonaws.mwaa#ValidationException":
849
+ throw await de_ValidationExceptionRes(parsedOutput, context);
850
+ default:
851
+ const parsedBody = parsedOutput.body;
852
+ return throwDefaultError({
853
+ output,
854
+ parsedBody,
855
+ errorCode
856
+ });
857
+ }
858
+ }, "de_ListTagsForResourceCommandError");
859
+ var de_PublishMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
860
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
861
+ return de_PublishMetricsCommandError(output, context);
862
+ }
863
+ const contents = (0, import_smithy_client.map)({
864
+ $metadata: deserializeMetadata(output)
865
+ });
866
+ await (0, import_smithy_client.collectBody)(output.body, context);
867
+ return contents;
868
+ }, "de_PublishMetricsCommand");
869
+ var de_PublishMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
870
+ const parsedOutput = {
871
+ ...output,
872
+ body: await parseErrorBody(output.body, context)
873
+ };
874
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
875
+ switch (errorCode) {
876
+ case "InternalServerException":
877
+ case "com.amazonaws.mwaa#InternalServerException":
878
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
879
+ case "ValidationException":
880
+ case "com.amazonaws.mwaa#ValidationException":
881
+ throw await de_ValidationExceptionRes(parsedOutput, context);
882
+ default:
883
+ const parsedBody = parsedOutput.body;
884
+ return throwDefaultError({
885
+ output,
886
+ parsedBody,
887
+ errorCode
888
+ });
889
+ }
890
+ }, "de_PublishMetricsCommandError");
891
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
892
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
893
+ return de_TagResourceCommandError(output, context);
894
+ }
895
+ const contents = (0, import_smithy_client.map)({
896
+ $metadata: deserializeMetadata(output)
897
+ });
898
+ await (0, import_smithy_client.collectBody)(output.body, context);
899
+ return contents;
900
+ }, "de_TagResourceCommand");
901
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
902
+ const parsedOutput = {
903
+ ...output,
904
+ body: await parseErrorBody(output.body, context)
905
+ };
906
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
907
+ switch (errorCode) {
908
+ case "InternalServerException":
909
+ case "com.amazonaws.mwaa#InternalServerException":
910
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
911
+ case "ResourceNotFoundException":
912
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
913
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
914
+ case "ValidationException":
915
+ case "com.amazonaws.mwaa#ValidationException":
916
+ throw await de_ValidationExceptionRes(parsedOutput, context);
917
+ default:
918
+ const parsedBody = parsedOutput.body;
919
+ return throwDefaultError({
920
+ output,
921
+ parsedBody,
922
+ errorCode
923
+ });
924
+ }
925
+ }, "de_TagResourceCommandError");
926
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
928
+ return de_UntagResourceCommandError(output, context);
929
+ }
930
+ const contents = (0, import_smithy_client.map)({
931
+ $metadata: deserializeMetadata(output)
932
+ });
933
+ await (0, import_smithy_client.collectBody)(output.body, context);
934
+ return contents;
935
+ }, "de_UntagResourceCommand");
936
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
937
+ const parsedOutput = {
938
+ ...output,
939
+ body: await parseErrorBody(output.body, context)
940
+ };
941
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
942
+ switch (errorCode) {
943
+ case "InternalServerException":
944
+ case "com.amazonaws.mwaa#InternalServerException":
945
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
946
+ case "ResourceNotFoundException":
947
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
948
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
949
+ case "ValidationException":
950
+ case "com.amazonaws.mwaa#ValidationException":
951
+ throw await de_ValidationExceptionRes(parsedOutput, context);
952
+ default:
953
+ const parsedBody = parsedOutput.body;
954
+ return throwDefaultError({
955
+ output,
956
+ parsedBody,
957
+ errorCode
958
+ });
959
+ }
960
+ }, "de_UntagResourceCommandError");
961
+ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
962
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
963
+ return de_UpdateEnvironmentCommandError(output, context);
964
+ }
965
+ const contents = (0, import_smithy_client.map)({
966
+ $metadata: deserializeMetadata(output)
967
+ });
968
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
969
+ const doc = (0, import_smithy_client.take)(data, {
970
+ Arn: import_smithy_client.expectString
971
+ });
972
+ Object.assign(contents, doc);
973
+ return contents;
974
+ }, "de_UpdateEnvironmentCommand");
975
+ var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
976
+ const parsedOutput = {
977
+ ...output,
978
+ body: await parseErrorBody(output.body, context)
979
+ };
980
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
981
+ switch (errorCode) {
982
+ case "InternalServerException":
983
+ case "com.amazonaws.mwaa#InternalServerException":
984
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
985
+ case "ResourceNotFoundException":
986
+ case "com.amazonaws.mwaa#ResourceNotFoundException":
987
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
988
+ case "ValidationException":
989
+ case "com.amazonaws.mwaa#ValidationException":
990
+ throw await de_ValidationExceptionRes(parsedOutput, context);
991
+ default:
992
+ const parsedBody = parsedOutput.body;
993
+ return throwDefaultError({
994
+ output,
995
+ parsedBody,
996
+ errorCode
997
+ });
998
+ }
999
+ }, "de_UpdateEnvironmentCommandError");
1000
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(MWAAServiceException);
1001
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1002
+ const contents = (0, import_smithy_client.map)({});
1003
+ const data = parsedOutput.body;
1004
+ const doc = (0, import_smithy_client.take)(data, {
1005
+ Message: import_smithy_client.expectString
1006
+ });
1007
+ Object.assign(contents, doc);
1008
+ const exception = new AccessDeniedException({
1009
+ $metadata: deserializeMetadata(parsedOutput),
1010
+ ...contents
1011
+ });
1012
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1013
+ }, "de_AccessDeniedExceptionRes");
1014
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1015
+ const contents = (0, import_smithy_client.map)({});
1016
+ const data = parsedOutput.body;
1017
+ const doc = (0, import_smithy_client.take)(data, {
1018
+ message: import_smithy_client.expectString
1019
+ });
1020
+ Object.assign(contents, doc);
1021
+ const exception = new InternalServerException({
1022
+ $metadata: deserializeMetadata(parsedOutput),
1023
+ ...contents
1024
+ });
1025
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1026
+ }, "de_InternalServerExceptionRes");
1027
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1028
+ const contents = (0, import_smithy_client.map)({});
1029
+ const data = parsedOutput.body;
1030
+ const doc = (0, import_smithy_client.take)(data, {
1031
+ message: import_smithy_client.expectString
1032
+ });
1033
+ Object.assign(contents, doc);
1034
+ const exception = new ResourceNotFoundException({
1035
+ $metadata: deserializeMetadata(parsedOutput),
1036
+ ...contents
1037
+ });
1038
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1039
+ }, "de_ResourceNotFoundExceptionRes");
1040
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1041
+ const contents = (0, import_smithy_client.map)({});
1042
+ const data = parsedOutput.body;
1043
+ const doc = (0, import_smithy_client.take)(data, {
1044
+ message: import_smithy_client.expectString
1045
+ });
1046
+ Object.assign(contents, doc);
1047
+ const exception = new ValidationException({
1048
+ $metadata: deserializeMetadata(parsedOutput),
1049
+ ...contents
1050
+ });
1051
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1052
+ }, "de_ValidationExceptionRes");
1053
+ var se_MetricData = /* @__PURE__ */ __name((input, context) => {
1054
+ return input.filter((e) => e != null).map((entry) => {
1055
+ return se_MetricDatum(entry, context);
1056
+ });
1057
+ }, "se_MetricData");
1058
+ var se_MetricDatum = /* @__PURE__ */ __name((input, context) => {
1059
+ return (0, import_smithy_client.take)(input, {
1060
+ Dimensions: import_smithy_client._json,
1061
+ MetricName: [],
1062
+ StatisticValues: (_) => se_StatisticSet(_, context),
1063
+ Timestamp: (_) => Math.round(_.getTime() / 1e3),
1064
+ Unit: [],
1065
+ Value: import_smithy_client.serializeFloat
1066
+ });
1067
+ }, "se_MetricDatum");
1068
+ var se_StatisticSet = /* @__PURE__ */ __name((input, context) => {
1069
+ return (0, import_smithy_client.take)(input, {
1070
+ Maximum: import_smithy_client.serializeFloat,
1071
+ Minimum: import_smithy_client.serializeFloat,
1072
+ SampleCount: [],
1073
+ Sum: import_smithy_client.serializeFloat
1074
+ });
1075
+ }, "se_StatisticSet");
1076
+ var de_Environment = /* @__PURE__ */ __name((output, context) => {
1077
+ return (0, import_smithy_client.take)(output, {
1078
+ AirflowConfigurationOptions: import_smithy_client._json,
1079
+ AirflowVersion: import_smithy_client.expectString,
1080
+ Arn: import_smithy_client.expectString,
1081
+ CeleryExecutorQueue: import_smithy_client.expectString,
1082
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1083
+ DagS3Path: import_smithy_client.expectString,
1084
+ DatabaseVpcEndpointService: import_smithy_client.expectString,
1085
+ EndpointManagement: import_smithy_client.expectString,
1086
+ EnvironmentClass: import_smithy_client.expectString,
1087
+ ExecutionRoleArn: import_smithy_client.expectString,
1088
+ KmsKey: import_smithy_client.expectString,
1089
+ LastUpdate: (_) => de_LastUpdate(_, context),
1090
+ LoggingConfiguration: import_smithy_client._json,
1091
+ MaxWorkers: import_smithy_client.expectInt32,
1092
+ MinWorkers: import_smithy_client.expectInt32,
1093
+ Name: import_smithy_client.expectString,
1094
+ NetworkConfiguration: import_smithy_client._json,
1095
+ PluginsS3ObjectVersion: import_smithy_client.expectString,
1096
+ PluginsS3Path: import_smithy_client.expectString,
1097
+ RequirementsS3ObjectVersion: import_smithy_client.expectString,
1098
+ RequirementsS3Path: import_smithy_client.expectString,
1099
+ Schedulers: import_smithy_client.expectInt32,
1100
+ ServiceRoleArn: import_smithy_client.expectString,
1101
+ SourceBucketArn: import_smithy_client.expectString,
1102
+ StartupScriptS3ObjectVersion: import_smithy_client.expectString,
1103
+ StartupScriptS3Path: import_smithy_client.expectString,
1104
+ Status: import_smithy_client.expectString,
1105
+ Tags: import_smithy_client._json,
1106
+ WebserverAccessMode: import_smithy_client.expectString,
1107
+ WebserverUrl: import_smithy_client.expectString,
1108
+ WebserverVpcEndpointService: import_smithy_client.expectString,
1109
+ WeeklyMaintenanceWindowStart: import_smithy_client.expectString
1110
+ });
1111
+ }, "de_Environment");
1112
+ var de_LastUpdate = /* @__PURE__ */ __name((output, context) => {
1113
+ return (0, import_smithy_client.take)(output, {
1114
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1115
+ Error: import_smithy_client._json,
1116
+ Source: import_smithy_client.expectString,
1117
+ Status: import_smithy_client.expectString
1118
+ });
1119
+ }, "de_LastUpdate");
1120
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1121
+ httpStatusCode: output.statusCode,
1122
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1123
+ extendedRequestId: output.headers["x-amz-id-2"],
1124
+ cfId: output.headers["x-amz-cf-id"]
1125
+ }), "deserializeMetadata");
1126
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1127
+ var _MR = "MaxResults";
1128
+ var _NT = "NextToken";
1129
+ var _tK = "tagKeys";
1130
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1131
+ if (encoded.length) {
1132
+ return JSON.parse(encoded);
1133
+ }
1134
+ return {};
1135
+ }), "parseBody");
1136
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1137
+ const value = await parseBody(errorBody, context);
1138
+ value.message = value.message ?? value.Message;
1139
+ return value;
1140
+ }, "parseErrorBody");
1141
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1142
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1143
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1144
+ let cleanValue = rawValue;
1145
+ if (typeof cleanValue === "number") {
1146
+ cleanValue = cleanValue.toString();
1147
+ }
1148
+ if (cleanValue.indexOf(",") >= 0) {
1149
+ cleanValue = cleanValue.split(",")[0];
1150
+ }
1151
+ if (cleanValue.indexOf(":") >= 0) {
1152
+ cleanValue = cleanValue.split(":")[0];
1153
+ }
1154
+ if (cleanValue.indexOf("#") >= 0) {
1155
+ cleanValue = cleanValue.split("#")[1];
1156
+ }
1157
+ return cleanValue;
1158
+ }, "sanitizeErrorCode");
1159
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1160
+ if (headerKey !== void 0) {
1161
+ return sanitizeErrorCode(output.headers[headerKey]);
1162
+ }
1163
+ if (data.code !== void 0) {
1164
+ return sanitizeErrorCode(data.code);
1165
+ }
1166
+ if (data["__type"] !== void 0) {
1167
+ return sanitizeErrorCode(data["__type"]);
1168
+ }
1169
+ }, "loadRestJsonErrorCode");
1170
+
1171
+ // src/commands/CreateCliTokenCommand.ts
1172
+ var _CreateCliTokenCommand = class _CreateCliTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1173
+ ...commonParams
1174
+ }).m(function(Command, cs, config, o) {
1175
+ return [
1176
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1177
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1178
+ ];
1179
+ }).s("AmazonMWAA", "CreateCliToken", {}).n("MWAAClient", "CreateCliTokenCommand").f(void 0, CreateCliTokenResponseFilterSensitiveLog).ser(se_CreateCliTokenCommand).de(de_CreateCliTokenCommand).build() {
1180
+ };
1181
+ __name(_CreateCliTokenCommand, "CreateCliTokenCommand");
1182
+ var CreateCliTokenCommand = _CreateCliTokenCommand;
1183
+
1184
+ // src/commands/CreateEnvironmentCommand.ts
1185
+
1186
+
1187
+
1188
+
1189
+ var _CreateEnvironmentCommand = class _CreateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1190
+ ...commonParams
1191
+ }).m(function(Command, cs, config, o) {
1192
+ return [
1193
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1194
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1195
+ ];
1196
+ }).s("AmazonMWAA", "CreateEnvironment", {}).n("MWAAClient", "CreateEnvironmentCommand").f(CreateEnvironmentInputFilterSensitiveLog, void 0).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
1197
+ };
1198
+ __name(_CreateEnvironmentCommand, "CreateEnvironmentCommand");
1199
+ var CreateEnvironmentCommand = _CreateEnvironmentCommand;
1200
+
1201
+ // src/commands/CreateWebLoginTokenCommand.ts
1202
+
1203
+
1204
+
1205
+
1206
+ var _CreateWebLoginTokenCommand = class _CreateWebLoginTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1207
+ ...commonParams
1208
+ }).m(function(Command, cs, config, o) {
1209
+ return [
1210
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1211
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1212
+ ];
1213
+ }).s("AmazonMWAA", "CreateWebLoginToken", {}).n("MWAAClient", "CreateWebLoginTokenCommand").f(void 0, CreateWebLoginTokenResponseFilterSensitiveLog).ser(se_CreateWebLoginTokenCommand).de(de_CreateWebLoginTokenCommand).build() {
1214
+ };
1215
+ __name(_CreateWebLoginTokenCommand, "CreateWebLoginTokenCommand");
1216
+ var CreateWebLoginTokenCommand = _CreateWebLoginTokenCommand;
1217
+
1218
+ // src/commands/DeleteEnvironmentCommand.ts
1219
+
1220
+
1221
+
1222
+
1223
+ var _DeleteEnvironmentCommand = class _DeleteEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1224
+ ...commonParams
1225
+ }).m(function(Command, cs, config, o) {
1226
+ return [
1227
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1228
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1229
+ ];
1230
+ }).s("AmazonMWAA", "DeleteEnvironment", {}).n("MWAAClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
1231
+ };
1232
+ __name(_DeleteEnvironmentCommand, "DeleteEnvironmentCommand");
1233
+ var DeleteEnvironmentCommand = _DeleteEnvironmentCommand;
1234
+
1235
+ // src/commands/GetEnvironmentCommand.ts
1236
+
1237
+
1238
+
1239
+
1240
+ var _GetEnvironmentCommand = class _GetEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1241
+ ...commonParams
1242
+ }).m(function(Command, cs, config, o) {
1243
+ return [
1244
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1245
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1246
+ ];
1247
+ }).s("AmazonMWAA", "GetEnvironment", {}).n("MWAAClient", "GetEnvironmentCommand").f(void 0, GetEnvironmentOutputFilterSensitiveLog).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
1248
+ };
1249
+ __name(_GetEnvironmentCommand, "GetEnvironmentCommand");
1250
+ var GetEnvironmentCommand = _GetEnvironmentCommand;
1251
+
1252
+ // src/commands/ListEnvironmentsCommand.ts
1253
+
1254
+
1255
+
1256
+
1257
+ var _ListEnvironmentsCommand = class _ListEnvironmentsCommand extends import_smithy_client.Command.classBuilder().ep({
1258
+ ...commonParams
1259
+ }).m(function(Command, cs, config, o) {
1260
+ return [
1261
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1262
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1263
+ ];
1264
+ }).s("AmazonMWAA", "ListEnvironments", {}).n("MWAAClient", "ListEnvironmentsCommand").f(void 0, void 0).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
1265
+ };
1266
+ __name(_ListEnvironmentsCommand, "ListEnvironmentsCommand");
1267
+ var ListEnvironmentsCommand = _ListEnvironmentsCommand;
1268
+
1269
+ // src/commands/ListTagsForResourceCommand.ts
1270
+
1271
+
1272
+
1273
+
1274
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1275
+ ...commonParams
1276
+ }).m(function(Command, cs, config, o) {
1277
+ return [
1278
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1279
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1280
+ ];
1281
+ }).s("AmazonMWAA", "ListTagsForResource", {}).n("MWAAClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1282
+ };
1283
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1284
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1285
+
1286
+ // src/commands/PublishMetricsCommand.ts
1287
+
1288
+
1289
+
1290
+
1291
+ var _PublishMetricsCommand = class _PublishMetricsCommand extends import_smithy_client.Command.classBuilder().ep({
1292
+ ...commonParams
1293
+ }).m(function(Command, cs, config, o) {
1294
+ return [
1295
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1296
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1297
+ ];
1298
+ }).s("AmazonMWAA", "PublishMetrics", {}).n("MWAAClient", "PublishMetricsCommand").f(void 0, void 0).ser(se_PublishMetricsCommand).de(de_PublishMetricsCommand).build() {
1299
+ };
1300
+ __name(_PublishMetricsCommand, "PublishMetricsCommand");
1301
+ var PublishMetricsCommand = _PublishMetricsCommand;
1302
+
1303
+ // src/commands/TagResourceCommand.ts
1304
+
1305
+
1306
+
1307
+
1308
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1309
+ ...commonParams
1310
+ }).m(function(Command, cs, config, o) {
1311
+ return [
1312
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1313
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1314
+ ];
1315
+ }).s("AmazonMWAA", "TagResource", {}).n("MWAAClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1316
+ };
1317
+ __name(_TagResourceCommand, "TagResourceCommand");
1318
+ var TagResourceCommand = _TagResourceCommand;
1319
+
1320
+ // src/commands/UntagResourceCommand.ts
1321
+
1322
+
1323
+
1324
+
1325
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1326
+ ...commonParams
1327
+ }).m(function(Command, cs, config, o) {
1328
+ return [
1329
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1330
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1331
+ ];
1332
+ }).s("AmazonMWAA", "UntagResource", {}).n("MWAAClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1333
+ };
1334
+ __name(_UntagResourceCommand, "UntagResourceCommand");
1335
+ var UntagResourceCommand = _UntagResourceCommand;
1336
+
1337
+ // src/commands/UpdateEnvironmentCommand.ts
1338
+
1339
+
1340
+
1341
+
1342
+ var _UpdateEnvironmentCommand = class _UpdateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1343
+ ...commonParams
1344
+ }).m(function(Command, cs, config, o) {
1345
+ return [
1346
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1347
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1348
+ ];
1349
+ }).s("AmazonMWAA", "UpdateEnvironment", {}).n("MWAAClient", "UpdateEnvironmentCommand").f(UpdateEnvironmentInputFilterSensitiveLog, void 0).ser(se_UpdateEnvironmentCommand).de(de_UpdateEnvironmentCommand).build() {
1350
+ };
1351
+ __name(_UpdateEnvironmentCommand, "UpdateEnvironmentCommand");
1352
+ var UpdateEnvironmentCommand = _UpdateEnvironmentCommand;
1353
+
1354
+ // src/MWAA.ts
1355
+ var commands = {
1356
+ CreateCliTokenCommand,
1357
+ CreateEnvironmentCommand,
1358
+ CreateWebLoginTokenCommand,
1359
+ DeleteEnvironmentCommand,
1360
+ GetEnvironmentCommand,
1361
+ ListEnvironmentsCommand,
1362
+ ListTagsForResourceCommand,
1363
+ PublishMetricsCommand,
1364
+ TagResourceCommand,
1365
+ UntagResourceCommand,
1366
+ UpdateEnvironmentCommand
1367
+ };
1368
+ var _MWAA = class _MWAA extends MWAAClient {
1369
+ };
1370
+ __name(_MWAA, "MWAA");
1371
+ var MWAA = _MWAA;
1372
+ (0, import_smithy_client.createAggregatedClient)(commands, MWAA);
1373
+
1374
+ // src/pagination/ListEnvironmentsPaginator.ts
1375
+
1376
+ var paginateListEnvironments = (0, import_core.createPaginator)(MWAAClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults");
1377
+
1378
+ // src/index.ts
1379
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1380
+ // Annotate the CommonJS export names for ESM import in node:
1381
+ 0 && (module.exports = {
1382
+ AccessDeniedException,
1383
+ CreateCliTokenCommand,
1384
+ CreateCliTokenResponseFilterSensitiveLog,
1385
+ CreateEnvironmentCommand,
1386
+ CreateEnvironmentInputFilterSensitiveLog,
1387
+ CreateWebLoginTokenCommand,
1388
+ CreateWebLoginTokenResponseFilterSensitiveLog,
1389
+ DeleteEnvironmentCommand,
1390
+ EndpointManagement,
1391
+ EnvironmentFilterSensitiveLog,
1392
+ EnvironmentStatus,
1393
+ GetEnvironmentCommand,
1394
+ GetEnvironmentOutputFilterSensitiveLog,
1395
+ InternalServerException,
1396
+ ListEnvironmentsCommand,
1397
+ ListTagsForResourceCommand,
1398
+ LoggingLevel,
1399
+ MWAA,
1400
+ MWAAClient,
1401
+ MWAAServiceException,
1402
+ PublishMetricsCommand,
1403
+ ResourceNotFoundException,
1404
+ TagResourceCommand,
1405
+ Unit,
1406
+ UntagResourceCommand,
1407
+ UpdateEnvironmentCommand,
1408
+ UpdateEnvironmentInputFilterSensitiveLog,
1409
+ UpdateStatus,
1410
+ ValidationException,
1411
+ WebserverAccessMode,
1412
+ __Client,
1413
+ paginateListEnvironments
1414
+ });