@aws-sdk/client-mwaa 3.1075.0 → 3.1076.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/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultMWAAHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateCliToken$, CreateEnvironment$, CreateWebLoginToken$, DeleteEnvironment$, GetEnvironment$, InvokeRestApi$, ListEnvironments$, ListTagsForResource$, PublishMetrics$, TagResource$, UntagResource$, UpdateEnvironment$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { MWAAServiceException } = require("./models/MWAAServiceException");
18
- exports.MWAAServiceException = MWAAServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultMWAAHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "airflow",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultMWAAHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,662 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://airflow-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://airflow-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://airflow.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://airflow.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class MWAAServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, MWAAServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends MWAAServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class ResourceNotFoundException extends MWAAServiceException {
154
+ name = "ResourceNotFoundException";
155
+ $fault = "client";
156
+ constructor(opts) {
157
+ super({
158
+ name: "ResourceNotFoundException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
163
+ }
164
+ }
165
+ class InternalServerException extends MWAAServiceException {
166
+ name = "InternalServerException";
167
+ $fault = "server";
168
+ constructor(opts) {
169
+ super({
170
+ name: "InternalServerException",
171
+ $fault: "server",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, InternalServerException.prototype);
175
+ }
176
+ }
177
+ class ServiceUnavailableException extends MWAAServiceException {
178
+ name = "ServiceUnavailableException";
179
+ $fault = "server";
180
+ constructor(opts) {
181
+ super({
182
+ name: "ServiceUnavailableException",
183
+ $fault: "server",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
187
+ }
188
+ }
189
+ class ValidationException extends MWAAServiceException {
190
+ name = "ValidationException";
191
+ $fault = "client";
192
+ constructor(opts) {
193
+ super({
194
+ name: "ValidationException",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, ValidationException.prototype);
199
+ }
200
+ }
201
+ class RestApiClientException extends MWAAServiceException {
202
+ name = "RestApiClientException";
203
+ $fault = "client";
204
+ RestApiStatusCode;
205
+ RestApiResponse;
206
+ constructor(opts) {
207
+ super({
208
+ name: "RestApiClientException",
209
+ $fault: "client",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, RestApiClientException.prototype);
213
+ this.RestApiStatusCode = opts.RestApiStatusCode;
214
+ this.RestApiResponse = opts.RestApiResponse;
215
+ }
216
+ }
217
+ class RestApiServerException extends MWAAServiceException {
218
+ name = "RestApiServerException";
219
+ $fault = "client";
220
+ RestApiStatusCode;
221
+ RestApiResponse;
222
+ constructor(opts) {
223
+ super({
224
+ name: "RestApiServerException",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, RestApiServerException.prototype);
229
+ this.RestApiStatusCode = opts.RestApiStatusCode;
230
+ this.RestApiResponse = opts.RestApiResponse;
231
+ }
232
+ }
233
+
234
+ const _A = "Arn";
235
+ const _ACO = "AirflowConfigurationOptions";
236
+ const _ADE = "AccessDeniedException";
237
+ const _AI = "AirflowIdentity";
238
+ const _AV = "AirflowVersion";
239
+ const _B = "Body";
240
+ const _CA = "CreatedAt";
241
+ const _CCT = "CreateCliToken";
242
+ const _CCTR = "CreateCliTokenRequest";
243
+ const _CCTRr = "CreateCliTokenResponse";
244
+ const _CE = "CreateEnvironment";
245
+ const _CEI = "CreateEnvironmentInput";
246
+ const _CEO = "CreateEnvironmentOutput";
247
+ const _CEQ = "CeleryExecutorQueue";
248
+ const _CT = "CliToken";
249
+ const _CV = "ConfigValue";
250
+ const _CWLGA = "CloudWatchLogGroupArn";
251
+ const _CWLT = "CreateWebLoginToken";
252
+ const _CWLTR = "CreateWebLoginTokenRequest";
253
+ const _CWLTRr = "CreateWebLoginTokenResponse";
254
+ const _D = "Dimension";
255
+ const _DE = "DeleteEnvironment";
256
+ const _DEI = "DeleteEnvironmentInput";
257
+ const _DEO = "DeleteEnvironmentOutput";
258
+ const _DPL = "DagProcessingLogs";
259
+ const _DSP = "DagS3Path";
260
+ const _DVES = "DatabaseVpcEndpointService";
261
+ const _Di = "Dimensions";
262
+ const _E = "Environment";
263
+ const _EC = "EnvironmentClass";
264
+ const _ECr = "ErrorCode";
265
+ const _EM = "EndpointManagement";
266
+ const _EMr = "ErrorMessage";
267
+ const _EN = "EnvironmentName";
268
+ const _ERA = "ExecutionRoleArn";
269
+ const _En = "Environments";
270
+ const _Ena = "Enabled";
271
+ const _Er = "Error";
272
+ const _GE = "GetEnvironment";
273
+ const _GEI = "GetEnvironmentInput";
274
+ const _GEO = "GetEnvironmentOutput";
275
+ const _II = "IamIdentity";
276
+ const _IRA = "InvokeRestApi";
277
+ const _IRAR = "InvokeRestApiRequest";
278
+ const _IRARn = "InvokeRestApiResponse";
279
+ const _ISE = "InternalServerException";
280
+ const _KK = "KmsKey";
281
+ const _LC = "LoggingConfiguration";
282
+ const _LCI = "LoggingConfigurationInput";
283
+ const _LE = "ListEnvironments";
284
+ const _LEI = "ListEnvironmentsInput";
285
+ const _LEO = "ListEnvironmentsOutput";
286
+ const _LL = "LogLevel";
287
+ const _LTFR = "ListTagsForResource";
288
+ const _LTFRI = "ListTagsForResourceInput";
289
+ const _LTFRO = "ListTagsForResourceOutput";
290
+ const _LU = "LastUpdate";
291
+ const _M = "Message";
292
+ const _MD = "MetricDatum";
293
+ const _MDe = "MetricData";
294
+ const _MLC = "ModuleLoggingConfiguration";
295
+ const _MLCI = "ModuleLoggingConfigurationInput";
296
+ const _MN = "MetricName";
297
+ const _MR = "MaxResults";
298
+ const _MW = "MaxWorkers";
299
+ const _MWa = "MaxWebservers";
300
+ const _MWi = "MinWorkers";
301
+ const _MWin = "MinWebservers";
302
+ const _Ma = "Maximum";
303
+ const _Me = "Method";
304
+ const _Mi = "Minimum";
305
+ const _N = "Name";
306
+ const _NC = "NetworkConfiguration";
307
+ const _NT = "NextToken";
308
+ const _P = "Path";
309
+ const _PM = "PublishMetrics";
310
+ const _PMI = "PublishMetricsInput";
311
+ const _PMO = "PublishMetricsOutput";
312
+ const _PSOV = "PluginsS3ObjectVersion";
313
+ const _PSP = "PluginsS3Path";
314
+ const _QP = "QueryParameters";
315
+ const _RA = "ResourceArn";
316
+ const _RACE = "RestApiClientException";
317
+ const _RAR = "RestApiResponse";
318
+ const _RARB = "RestApiRequestBody";
319
+ const _RASC = "RestApiStatusCode";
320
+ const _RASE = "RestApiServerException";
321
+ const _RNFE = "ResourceNotFoundException";
322
+ const _RSOV = "RequirementsS3ObjectVersion";
323
+ const _RSP = "RequirementsS3Path";
324
+ const _S = "Schedulers";
325
+ const _SBA = "SourceBucketArn";
326
+ const _SC = "SampleCount";
327
+ const _SGI = "SecurityGroupIds";
328
+ const _SI = "SubnetIds";
329
+ const _SL = "SchedulerLogs";
330
+ const _SRA = "ServiceRoleArn";
331
+ const _SS = "StatisticSet";
332
+ const _SSSOV = "StartupScriptS3ObjectVersion";
333
+ const _SSSP = "StartupScriptS3Path";
334
+ const _SUE = "ServiceUnavailableException";
335
+ const _SV = "StatisticValues";
336
+ const _So = "Source";
337
+ const _St = "Status";
338
+ const _Su = "Sum";
339
+ const _T = "Token";
340
+ const _TL = "TaskLogs";
341
+ const _TR = "TagResource";
342
+ const _TRI = "TagResourceInput";
343
+ const _TRO = "TagResourceOutput";
344
+ const _Ta = "Tags";
345
+ const _Ti = "Timestamp";
346
+ const _U = "Unit";
347
+ const _UE = "UpdateError";
348
+ const _UEI = "UpdateEnvironmentInput";
349
+ const _UEO = "UpdateEnvironmentOutput";
350
+ const _UEp = "UpdateEnvironment";
351
+ const _UNCI = "UpdateNetworkConfigurationInput";
352
+ const _UR = "UntagResource";
353
+ const _URI = "UntagResourceInput";
354
+ const _URO = "UntagResourceOutput";
355
+ const _V = "Value";
356
+ const _VE = "ValidationException";
357
+ const _WAM = "WebserverAccessMode";
358
+ const _WL = "WebserverLogs";
359
+ const _WLo = "WorkerLogs";
360
+ const _WMWS = "WeeklyMaintenanceWindowStart";
361
+ const _WRS = "WorkerReplacementStrategy";
362
+ const _WSH = "WebServerHostname";
363
+ const _WT = "WebToken";
364
+ const _WU = "WebserverUrl";
365
+ const _WVES = "WebserverVpcEndpointService";
366
+ const _c = "client";
367
+ const _e = "error";
368
+ const _en = "endpoint";
369
+ const _h = "http";
370
+ const _hE = "httpError";
371
+ const _hQ = "httpQuery";
372
+ const _m = "message";
373
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mwaa";
374
+ const _se = "server";
375
+ const _tK = "tagKeys";
376
+ const n0 = "com.amazonaws.mwaa";
377
+ const _s_registry = TypeRegistry.for(_s);
378
+ var MWAAServiceException$ = [-3, _s, "MWAAServiceException", 0, [], []];
379
+ _s_registry.registerError(MWAAServiceException$, MWAAServiceException);
380
+ const n0_registry = TypeRegistry.for(n0);
381
+ var AccessDeniedException$ = [-3, n0, _ADE,
382
+ { [_e]: _c, [_hE]: 403 },
383
+ [_M],
384
+ [0]
385
+ ];
386
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
387
+ var InternalServerException$ = [-3, n0, _ISE,
388
+ { [_e]: _se, [_hE]: 500 },
389
+ [_m],
390
+ [0]
391
+ ];
392
+ n0_registry.registerError(InternalServerException$, InternalServerException);
393
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
394
+ { [_e]: _c, [_hE]: 404 },
395
+ [_m],
396
+ [0]
397
+ ];
398
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
399
+ var RestApiClientException$ = [-3, n0, _RACE,
400
+ { [_e]: _c, [_hE]: 400 },
401
+ [_RASC, _RAR],
402
+ [1, [() => RestApiResponse, 0]]
403
+ ];
404
+ n0_registry.registerError(RestApiClientException$, RestApiClientException);
405
+ var RestApiServerException$ = [-3, n0, _RASE,
406
+ { [_e]: _c, [_hE]: 400 },
407
+ [_RASC, _RAR],
408
+ [1, [() => RestApiResponse, 0]]
409
+ ];
410
+ n0_registry.registerError(RestApiServerException$, RestApiServerException);
411
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
412
+ { [_e]: _se, [_hE]: 503 },
413
+ [_m],
414
+ [0]
415
+ ];
416
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
417
+ var ValidationException$ = [-3, n0, _VE,
418
+ { [_e]: _c, [_hE]: 400 },
419
+ [_m],
420
+ [0]
421
+ ];
422
+ n0_registry.registerError(ValidationException$, ValidationException);
423
+ const errorTypeRegistries = [
424
+ _s_registry,
425
+ n0_registry,
426
+ ];
427
+ var ConfigValue = [0, n0, _CV, 8, 0];
428
+ var RestApiRequestBody = [0, n0, _RARB, 8, 15];
429
+ var RestApiResponse = [0, n0, _RAR, 8, 15];
430
+ var Token = [0, n0, _T, 8, 0];
431
+ var CreateCliTokenRequest$ = [3, n0, _CCTR,
432
+ 0,
433
+ [_N],
434
+ [[0, 1]], 1
435
+ ];
436
+ var CreateCliTokenResponse$ = [3, n0, _CCTRr,
437
+ 0,
438
+ [_CT, _WSH],
439
+ [[() => Token, 0], 0]
440
+ ];
441
+ var CreateEnvironmentInput$ = [3, n0, _CEI,
442
+ 0,
443
+ [_N, _ERA, _SBA, _DSP, _NC, _PSP, _PSOV, _RSP, _RSOV, _SSSP, _SSSOV, _ACO, _EC, _MW, _KK, _AV, _LC, _WMWS, _Ta, _WAM, _MWi, _S, _EM, _MWin, _MWa],
444
+ [[0, 1], 0, 0, 0, () => NetworkConfiguration$, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, 0, 0, () => LoggingConfigurationInput$, 0, 128 | 0, 0, 1, 1, 0, 1, 1], 5
445
+ ];
446
+ var CreateEnvironmentOutput$ = [3, n0, _CEO,
447
+ 0,
448
+ [_A],
449
+ [0]
450
+ ];
451
+ var CreateWebLoginTokenRequest$ = [3, n0, _CWLTR,
452
+ 0,
453
+ [_N],
454
+ [[0, 1]], 1
455
+ ];
456
+ var CreateWebLoginTokenResponse$ = [3, n0, _CWLTRr,
457
+ 0,
458
+ [_WT, _WSH, _II, _AI],
459
+ [[() => Token, 0], 0, 0, 0]
460
+ ];
461
+ var DeleteEnvironmentInput$ = [3, n0, _DEI,
462
+ 0,
463
+ [_N],
464
+ [[0, 1]], 1
465
+ ];
466
+ var DeleteEnvironmentOutput$ = [3, n0, _DEO,
467
+ 0,
468
+ [],
469
+ []
470
+ ];
471
+ var Dimension$ = [3, n0, _D,
472
+ 0,
473
+ [_N, _V],
474
+ [0, 0], 2
475
+ ];
476
+ var Environment$ = [3, n0, _E,
477
+ 0,
478
+ [_N, _St, _A, _CA, _WU, _ERA, _SRA, _KK, _AV, _SBA, _DSP, _PSP, _PSOV, _RSP, _RSOV, _SSSP, _SSSOV, _ACO, _EC, _MW, _NC, _LC, _LU, _WMWS, _Ta, _WAM, _MWi, _S, _WVES, _DVES, _CEQ, _EM, _MWin, _MWa],
479
+ [0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, () => NetworkConfiguration$, () => LoggingConfiguration$, () => LastUpdate$, 0, 128 | 0, 0, 1, 1, 0, 0, 0, 0, 1, 1]
480
+ ];
481
+ var GetEnvironmentInput$ = [3, n0, _GEI,
482
+ 0,
483
+ [_N],
484
+ [[0, 1]], 1
485
+ ];
486
+ var GetEnvironmentOutput$ = [3, n0, _GEO,
487
+ 0,
488
+ [_E],
489
+ [[() => Environment$, 0]]
490
+ ];
491
+ var InvokeRestApiRequest$ = [3, n0, _IRAR,
492
+ 0,
493
+ [_N, _P, _Me, _QP, _B],
494
+ [[0, 1], 0, 0, 15, [() => RestApiRequestBody, 0]], 3
495
+ ];
496
+ var InvokeRestApiResponse$ = [3, n0, _IRARn,
497
+ 0,
498
+ [_RASC, _RAR],
499
+ [1, [() => RestApiResponse, 0]]
500
+ ];
501
+ var LastUpdate$ = [3, n0, _LU,
502
+ 0,
503
+ [_St, _CA, _Er, _So, _WRS],
504
+ [0, 4, () => UpdateError$, 0, 0]
505
+ ];
506
+ var ListEnvironmentsInput$ = [3, n0, _LEI,
507
+ 0,
508
+ [_NT, _MR],
509
+ [[0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
510
+ ];
511
+ var ListEnvironmentsOutput$ = [3, n0, _LEO,
512
+ 0,
513
+ [_En, _NT],
514
+ [64 | 0, 0], 1
515
+ ];
516
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
517
+ 0,
518
+ [_RA],
519
+ [[0, 1]], 1
520
+ ];
521
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
522
+ 0,
523
+ [_Ta],
524
+ [128 | 0]
525
+ ];
526
+ var LoggingConfiguration$ = [3, n0, _LC,
527
+ 0,
528
+ [_DPL, _SL, _WL, _WLo, _TL],
529
+ [() => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$]
530
+ ];
531
+ var LoggingConfigurationInput$ = [3, n0, _LCI,
532
+ 0,
533
+ [_DPL, _SL, _WL, _WLo, _TL],
534
+ [() => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$]
535
+ ];
536
+ var MetricDatum$ = [3, n0, _MD,
537
+ 0,
538
+ [_MN, _Ti, _Di, _V, _U, _SV],
539
+ [0, 4, () => Dimensions, 1, 0, () => StatisticSet$], 2
540
+ ];
541
+ var ModuleLoggingConfiguration$ = [3, n0, _MLC,
542
+ 0,
543
+ [_Ena, _LL, _CWLGA],
544
+ [2, 0, 0]
545
+ ];
546
+ var ModuleLoggingConfigurationInput$ = [3, n0, _MLCI,
547
+ 0,
548
+ [_Ena, _LL],
549
+ [2, 0], 2
550
+ ];
551
+ var NetworkConfiguration$ = [3, n0, _NC,
552
+ 0,
553
+ [_SI, _SGI],
554
+ [64 | 0, 64 | 0]
555
+ ];
556
+ var PublishMetricsInput$ = [3, n0, _PMI,
557
+ 0,
558
+ [_EN, _MDe],
559
+ [[0, 1], () => MetricData], 2
560
+ ];
561
+ var PublishMetricsOutput$ = [3, n0, _PMO,
562
+ 0,
563
+ [],
564
+ []
565
+ ];
566
+ var StatisticSet$ = [3, n0, _SS,
567
+ 0,
568
+ [_SC, _Su, _Mi, _Ma],
569
+ [1, 1, 1, 1]
570
+ ];
571
+ var TagResourceInput$ = [3, n0, _TRI,
572
+ 0,
573
+ [_RA, _Ta],
574
+ [[0, 1], 128 | 0], 2
575
+ ];
576
+ var TagResourceOutput$ = [3, n0, _TRO,
577
+ 0,
578
+ [],
579
+ []
580
+ ];
581
+ var UntagResourceInput$ = [3, n0, _URI,
582
+ 0,
583
+ [_RA, _tK],
584
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
585
+ ];
586
+ var UntagResourceOutput$ = [3, n0, _URO,
587
+ 0,
588
+ [],
589
+ []
590
+ ];
591
+ var UpdateEnvironmentInput$ = [3, n0, _UEI,
592
+ 0,
593
+ [_N, _ERA, _ACO, _AV, _DSP, _EC, _LC, _MW, _MWi, _MWa, _MWin, _WRS, _NC, _PSP, _PSOV, _RSP, _RSOV, _S, _SBA, _SSSP, _SSSOV, _WAM, _WMWS],
594
+ [[0, 1], 0, [() => AirflowConfigurationOptions, 0], 0, 0, 0, () => LoggingConfigurationInput$, 1, 1, 1, 1, 0, () => UpdateNetworkConfigurationInput$, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], 1
595
+ ];
596
+ var UpdateEnvironmentOutput$ = [3, n0, _UEO,
597
+ 0,
598
+ [_A],
599
+ [0]
600
+ ];
601
+ var UpdateError$ = [3, n0, _UE,
602
+ 0,
603
+ [_ECr, _EMr],
604
+ [0, 0]
605
+ ];
606
+ var UpdateNetworkConfigurationInput$ = [3, n0, _UNCI,
607
+ 0,
608
+ [_SGI],
609
+ [64 | 0], 1
610
+ ];
611
+ var Dimensions = [1, n0, _Di,
612
+ 0, () => Dimension$
613
+ ];
614
+ var MetricData = [1, n0, _MDe,
615
+ 0, () => MetricDatum$
616
+ ];
617
+ var AirflowConfigurationOptions = [2, n0, _ACO,
618
+ 8, [0,
619
+ 0],
620
+ [() => ConfigValue,
621
+ 0]
622
+ ];
623
+ var CreateCliToken$ = [9, n0, _CCT,
624
+ { [_en]: ["env."], [_h]: ["POST", "/clitoken/{Name}", 200] }, () => CreateCliTokenRequest$, () => CreateCliTokenResponse$
625
+ ];
626
+ var CreateEnvironment$ = [9, n0, _CE,
627
+ { [_en]: ["api."], [_h]: ["PUT", "/environments/{Name}", 200] }, () => CreateEnvironmentInput$, () => CreateEnvironmentOutput$
628
+ ];
629
+ var CreateWebLoginToken$ = [9, n0, _CWLT,
630
+ { [_en]: ["env."], [_h]: ["POST", "/webtoken/{Name}", 200] }, () => CreateWebLoginTokenRequest$, () => CreateWebLoginTokenResponse$
631
+ ];
632
+ var DeleteEnvironment$ = [9, n0, _DE,
633
+ { [_en]: ["api."], [_h]: ["DELETE", "/environments/{Name}", 200] }, () => DeleteEnvironmentInput$, () => DeleteEnvironmentOutput$
634
+ ];
635
+ var GetEnvironment$ = [9, n0, _GE,
636
+ { [_en]: ["api."], [_h]: ["GET", "/environments/{Name}", 200] }, () => GetEnvironmentInput$, () => GetEnvironmentOutput$
637
+ ];
638
+ var InvokeRestApi$ = [9, n0, _IRA,
639
+ { [_en]: ["env."], [_h]: ["POST", "/restapi/{Name}", 200] }, () => InvokeRestApiRequest$, () => InvokeRestApiResponse$
640
+ ];
641
+ var ListEnvironments$ = [9, n0, _LE,
642
+ { [_en]: ["api."], [_h]: ["GET", "/environments", 200] }, () => ListEnvironmentsInput$, () => ListEnvironmentsOutput$
643
+ ];
644
+ var ListTagsForResource$ = [9, n0, _LTFR,
645
+ { [_en]: ["api."], [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
646
+ ];
647
+ var PublishMetrics$ = [9, n0, _PM,
648
+ { [_en]: ["ops."], [_h]: ["POST", "/metrics/environments/{EnvironmentName}", 200] }, () => PublishMetricsInput$, () => PublishMetricsOutput$
649
+ ];
650
+ var TagResource$ = [9, n0, _TR,
651
+ { [_en]: ["api."], [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$
652
+ ];
653
+ var UntagResource$ = [9, n0, _UR,
654
+ { [_en]: ["api."], [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
655
+ ];
656
+ var UpdateEnvironment$ = [9, n0, _UEp,
657
+ { [_en]: ["api."], [_h]: ["PATCH", "/environments/{Name}", 200] }, () => UpdateEnvironmentInput$, () => UpdateEnvironmentOutput$
658
+ ];
659
+
660
+ const getRuntimeConfig$1 = (config) => {
661
+ return {
662
+ apiVersion: "2020-07-01",
663
+ base64Decoder: config?.base64Decoder ?? fromBase64,
664
+ base64Encoder: config?.base64Encoder ?? toBase64,
665
+ disableHostPrefix: config?.disableHostPrefix ?? false,
666
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
667
+ extensions: config?.extensions ?? [],
668
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMWAAHttpAuthSchemeProvider,
669
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
670
+ {
671
+ schemeId: "aws.auth#sigv4",
672
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
673
+ signer: new AwsSdkSigV4Signer(),
674
+ },
675
+ ],
676
+ logger: config?.logger ?? new NoOpLogger(),
677
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
678
+ protocolSettings: config?.protocolSettings ?? {
679
+ defaultNamespace: "com.amazonaws.mwaa",
680
+ errorTypeRegistries,
681
+ version: "2020-07-01",
682
+ serviceTarget: "AmazonMWAA",
683
+ },
684
+ serviceId: config?.serviceId ?? "MWAA",
685
+ urlParser: config?.urlParser ?? parseUrl,
686
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
687
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
688
+ };
689
+ };
690
+
691
+ const getRuntimeConfig = (config) => {
692
+ emitWarningIfUnsupportedVersion(process.version);
693
+ const defaultsMode = resolveDefaultsModeConfig(config);
694
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
695
+ const clientSharedValues = getRuntimeConfig$1(config);
696
+ emitWarningIfUnsupportedVersion$1(process.version);
697
+ const loaderConfig = {
698
+ profile: config?.profile,
699
+ logger: clientSharedValues.logger,
700
+ };
701
+ return {
702
+ ...clientSharedValues,
703
+ ...config,
704
+ runtime: "node",
705
+ defaultsMode,
706
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
707
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
708
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
709
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
710
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
711
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
712
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
713
+ retryMode: config?.retryMode ??
714
+ loadConfig({
715
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
716
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
717
+ }, config),
718
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
719
+ streamCollector: config?.streamCollector ?? streamCollector,
720
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
721
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
722
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
723
+ };
724
+ };
725
+
34
726
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
727
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
728
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -354,26 +1046,91 @@ const Unit = {
354
1046
  TERABYTES_PER_SECOND: "Terabytes/Second",
355
1047
  };
356
1048
 
1049
+ exports.AccessDeniedException = AccessDeniedException;
1050
+ exports.AccessDeniedException$ = AccessDeniedException$;
1051
+ exports.CreateCliToken$ = CreateCliToken$;
357
1052
  exports.CreateCliTokenCommand = CreateCliTokenCommand;
1053
+ exports.CreateCliTokenRequest$ = CreateCliTokenRequest$;
1054
+ exports.CreateCliTokenResponse$ = CreateCliTokenResponse$;
1055
+ exports.CreateEnvironment$ = CreateEnvironment$;
358
1056
  exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
1057
+ exports.CreateEnvironmentInput$ = CreateEnvironmentInput$;
1058
+ exports.CreateEnvironmentOutput$ = CreateEnvironmentOutput$;
1059
+ exports.CreateWebLoginToken$ = CreateWebLoginToken$;
359
1060
  exports.CreateWebLoginTokenCommand = CreateWebLoginTokenCommand;
1061
+ exports.CreateWebLoginTokenRequest$ = CreateWebLoginTokenRequest$;
1062
+ exports.CreateWebLoginTokenResponse$ = CreateWebLoginTokenResponse$;
1063
+ exports.DeleteEnvironment$ = DeleteEnvironment$;
360
1064
  exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
1065
+ exports.DeleteEnvironmentInput$ = DeleteEnvironmentInput$;
1066
+ exports.DeleteEnvironmentOutput$ = DeleteEnvironmentOutput$;
1067
+ exports.Dimension$ = Dimension$;
361
1068
  exports.EndpointManagement = EndpointManagement;
1069
+ exports.Environment$ = Environment$;
362
1070
  exports.EnvironmentStatus = EnvironmentStatus;
1071
+ exports.GetEnvironment$ = GetEnvironment$;
363
1072
  exports.GetEnvironmentCommand = GetEnvironmentCommand;
1073
+ exports.GetEnvironmentInput$ = GetEnvironmentInput$;
1074
+ exports.GetEnvironmentOutput$ = GetEnvironmentOutput$;
1075
+ exports.InternalServerException = InternalServerException;
1076
+ exports.InternalServerException$ = InternalServerException$;
1077
+ exports.InvokeRestApi$ = InvokeRestApi$;
364
1078
  exports.InvokeRestApiCommand = InvokeRestApiCommand;
1079
+ exports.InvokeRestApiRequest$ = InvokeRestApiRequest$;
1080
+ exports.InvokeRestApiResponse$ = InvokeRestApiResponse$;
1081
+ exports.LastUpdate$ = LastUpdate$;
1082
+ exports.ListEnvironments$ = ListEnvironments$;
365
1083
  exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
1084
+ exports.ListEnvironmentsInput$ = ListEnvironmentsInput$;
1085
+ exports.ListEnvironmentsOutput$ = ListEnvironmentsOutput$;
1086
+ exports.ListTagsForResource$ = ListTagsForResource$;
366
1087
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1088
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1089
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
1090
+ exports.LoggingConfiguration$ = LoggingConfiguration$;
1091
+ exports.LoggingConfigurationInput$ = LoggingConfigurationInput$;
367
1092
  exports.LoggingLevel = LoggingLevel;
368
1093
  exports.MWAA = MWAA;
369
1094
  exports.MWAAClient = MWAAClient;
1095
+ exports.MWAAServiceException = MWAAServiceException;
1096
+ exports.MWAAServiceException$ = MWAAServiceException$;
1097
+ exports.MetricDatum$ = MetricDatum$;
1098
+ exports.ModuleLoggingConfiguration$ = ModuleLoggingConfiguration$;
1099
+ exports.ModuleLoggingConfigurationInput$ = ModuleLoggingConfigurationInput$;
1100
+ exports.NetworkConfiguration$ = NetworkConfiguration$;
1101
+ exports.PublishMetrics$ = PublishMetrics$;
370
1102
  exports.PublishMetricsCommand = PublishMetricsCommand;
1103
+ exports.PublishMetricsInput$ = PublishMetricsInput$;
1104
+ exports.PublishMetricsOutput$ = PublishMetricsOutput$;
1105
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1106
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1107
+ exports.RestApiClientException = RestApiClientException;
1108
+ exports.RestApiClientException$ = RestApiClientException$;
371
1109
  exports.RestApiMethod = RestApiMethod;
1110
+ exports.RestApiServerException = RestApiServerException;
1111
+ exports.RestApiServerException$ = RestApiServerException$;
1112
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1113
+ exports.ServiceUnavailableException$ = ServiceUnavailableException$;
1114
+ exports.StatisticSet$ = StatisticSet$;
1115
+ exports.TagResource$ = TagResource$;
372
1116
  exports.TagResourceCommand = TagResourceCommand;
1117
+ exports.TagResourceInput$ = TagResourceInput$;
1118
+ exports.TagResourceOutput$ = TagResourceOutput$;
373
1119
  exports.Unit = Unit;
1120
+ exports.UntagResource$ = UntagResource$;
374
1121
  exports.UntagResourceCommand = UntagResourceCommand;
1122
+ exports.UntagResourceInput$ = UntagResourceInput$;
1123
+ exports.UntagResourceOutput$ = UntagResourceOutput$;
1124
+ exports.UpdateEnvironment$ = UpdateEnvironment$;
375
1125
  exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;
1126
+ exports.UpdateEnvironmentInput$ = UpdateEnvironmentInput$;
1127
+ exports.UpdateEnvironmentOutput$ = UpdateEnvironmentOutput$;
1128
+ exports.UpdateError$ = UpdateError$;
1129
+ exports.UpdateNetworkConfigurationInput$ = UpdateNetworkConfigurationInput$;
376
1130
  exports.UpdateStatus = UpdateStatus;
1131
+ exports.ValidationException = ValidationException;
1132
+ exports.ValidationException$ = ValidationException$;
377
1133
  exports.WebserverAccessMode = WebserverAccessMode;
378
1134
  exports.WorkerReplacementStrategy = WorkerReplacementStrategy;
1135
+ exports.errorTypeRegistries = errorTypeRegistries;
379
1136
  exports.paginateListEnvironments = paginateListEnvironments;