@aws-sdk/client-mwaa 3.716.0 → 3.723.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
@@ -158,7 +158,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
158
158
  }, "resolveRuntimeExtensions");
159
159
 
160
160
  // src/MWAAClient.ts
161
- var _MWAAClient = class _MWAAClient extends import_smithy_client.Client {
161
+ var MWAAClient = class extends import_smithy_client.Client {
162
+ static {
163
+ __name(this, "MWAAClient");
164
+ }
165
+ /**
166
+ * The resolved configuration of MWAAClient class. This is resolved and normalized from the {@link MWAAClientConfig | constructor configuration interface}.
167
+ */
168
+ config;
162
169
  constructor(...[configuration]) {
163
170
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
164
171
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -168,7 +175,7 @@ var _MWAAClient = class _MWAAClient extends import_smithy_client.Client {
168
175
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
169
176
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
170
177
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
171
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
178
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
172
179
  super(_config_8);
173
180
  this.config = _config_8;
174
181
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -196,8 +203,6 @@ var _MWAAClient = class _MWAAClient extends import_smithy_client.Client {
196
203
  super.destroy();
197
204
  }
198
205
  };
199
- __name(_MWAAClient, "MWAAClient");
200
- var MWAAClient = _MWAAClient;
201
206
 
202
207
  // src/MWAA.ts
203
208
 
@@ -212,7 +217,10 @@ var import_middleware_serde = require("@smithy/middleware-serde");
212
217
 
213
218
  // src/models/MWAAServiceException.ts
214
219
 
215
- var _MWAAServiceException = class _MWAAServiceException extends import_smithy_client.ServiceException {
220
+ var MWAAServiceException = class _MWAAServiceException extends import_smithy_client.ServiceException {
221
+ static {
222
+ __name(this, "MWAAServiceException");
223
+ }
216
224
  /**
217
225
  * @internal
218
226
  */
@@ -221,11 +229,15 @@ var _MWAAServiceException = class _MWAAServiceException extends import_smithy_cl
221
229
  Object.setPrototypeOf(this, _MWAAServiceException.prototype);
222
230
  }
223
231
  };
224
- __name(_MWAAServiceException, "MWAAServiceException");
225
- var MWAAServiceException = _MWAAServiceException;
226
232
 
227
233
  // src/models/models_0.ts
228
- var _AccessDeniedException = class _AccessDeniedException extends MWAAServiceException {
234
+ var AccessDeniedException = class _AccessDeniedException extends MWAAServiceException {
235
+ static {
236
+ __name(this, "AccessDeniedException");
237
+ }
238
+ name = "AccessDeniedException";
239
+ $fault = "client";
240
+ Message;
229
241
  /**
230
242
  * @internal
231
243
  */
@@ -235,15 +247,16 @@ var _AccessDeniedException = class _AccessDeniedException extends MWAAServiceExc
235
247
  $fault: "client",
236
248
  ...opts
237
249
  });
238
- this.name = "AccessDeniedException";
239
- this.$fault = "client";
240
250
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
241
251
  this.Message = opts.Message;
242
252
  }
243
253
  };
244
- __name(_AccessDeniedException, "AccessDeniedException");
245
- var AccessDeniedException = _AccessDeniedException;
246
- var _ResourceNotFoundException = class _ResourceNotFoundException extends MWAAServiceException {
254
+ var ResourceNotFoundException = class _ResourceNotFoundException extends MWAAServiceException {
255
+ static {
256
+ __name(this, "ResourceNotFoundException");
257
+ }
258
+ name = "ResourceNotFoundException";
259
+ $fault = "client";
247
260
  /**
248
261
  * @internal
249
262
  */
@@ -253,13 +266,9 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends MWAASe
253
266
  $fault: "client",
254
267
  ...opts
255
268
  });
256
- this.name = "ResourceNotFoundException";
257
- this.$fault = "client";
258
269
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
259
270
  }
260
271
  };
261
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
262
- var ResourceNotFoundException = _ResourceNotFoundException;
263
272
  var EndpointManagement = {
264
273
  CUSTOMER: "CUSTOMER",
265
274
  SERVICE: "SERVICE"
@@ -275,7 +284,12 @@ var WebserverAccessMode = {
275
284
  PRIVATE_ONLY: "PRIVATE_ONLY",
276
285
  PUBLIC_ONLY: "PUBLIC_ONLY"
277
286
  };
278
- var _InternalServerException = class _InternalServerException extends MWAAServiceException {
287
+ var InternalServerException = class _InternalServerException extends MWAAServiceException {
288
+ static {
289
+ __name(this, "InternalServerException");
290
+ }
291
+ name = "InternalServerException";
292
+ $fault = "server";
279
293
  /**
280
294
  * @internal
281
295
  */
@@ -285,14 +299,15 @@ var _InternalServerException = class _InternalServerException extends MWAAServic
285
299
  $fault: "server",
286
300
  ...opts
287
301
  });
288
- this.name = "InternalServerException";
289
- this.$fault = "server";
290
302
  Object.setPrototypeOf(this, _InternalServerException.prototype);
291
303
  }
292
304
  };
293
- __name(_InternalServerException, "InternalServerException");
294
- var InternalServerException = _InternalServerException;
295
- var _ValidationException = class _ValidationException extends MWAAServiceException {
305
+ var ValidationException = class _ValidationException extends MWAAServiceException {
306
+ static {
307
+ __name(this, "ValidationException");
308
+ }
309
+ name = "ValidationException";
310
+ $fault = "client";
296
311
  /**
297
312
  * @internal
298
313
  */
@@ -302,13 +317,9 @@ var _ValidationException = class _ValidationException extends MWAAServiceExcepti
302
317
  $fault: "client",
303
318
  ...opts
304
319
  });
305
- this.name = "ValidationException";
306
- this.$fault = "client";
307
320
  Object.setPrototypeOf(this, _ValidationException.prototype);
308
321
  }
309
322
  };
310
- __name(_ValidationException, "ValidationException");
311
- var ValidationException = _ValidationException;
312
323
  var UpdateStatus = {
313
324
  FAILED: "FAILED",
314
325
  PENDING: "PENDING",
@@ -335,7 +346,23 @@ var RestApiMethod = {
335
346
  POST: "POST",
336
347
  PUT: "PUT"
337
348
  };
338
- var _RestApiClientException = class _RestApiClientException extends MWAAServiceException {
349
+ var RestApiClientException = class _RestApiClientException extends MWAAServiceException {
350
+ static {
351
+ __name(this, "RestApiClientException");
352
+ }
353
+ name = "RestApiClientException";
354
+ $fault = "client";
355
+ /**
356
+ * <p>The HTTP status code returned by the Apache Airflow REST API call.</p>
357
+ * @public
358
+ */
359
+ RestApiStatusCode;
360
+ /**
361
+ * <p>The error response data from the Apache Airflow REST API call, provided as a JSON
362
+ * object.</p>
363
+ * @public
364
+ */
365
+ RestApiResponse;
339
366
  /**
340
367
  * @internal
341
368
  */
@@ -345,16 +372,28 @@ var _RestApiClientException = class _RestApiClientException extends MWAAServiceE
345
372
  $fault: "client",
346
373
  ...opts
347
374
  });
348
- this.name = "RestApiClientException";
349
- this.$fault = "client";
350
375
  Object.setPrototypeOf(this, _RestApiClientException.prototype);
351
376
  this.RestApiStatusCode = opts.RestApiStatusCode;
352
377
  this.RestApiResponse = opts.RestApiResponse;
353
378
  }
354
379
  };
355
- __name(_RestApiClientException, "RestApiClientException");
356
- var RestApiClientException = _RestApiClientException;
357
- var _RestApiServerException = class _RestApiServerException extends MWAAServiceException {
380
+ var RestApiServerException = class _RestApiServerException extends MWAAServiceException {
381
+ static {
382
+ __name(this, "RestApiServerException");
383
+ }
384
+ name = "RestApiServerException";
385
+ $fault = "client";
386
+ /**
387
+ * <p>The HTTP status code returned by the Apache Airflow REST API call.</p>
388
+ * @public
389
+ */
390
+ RestApiStatusCode;
391
+ /**
392
+ * <p>The error response data from the Apache Airflow REST API call, provided as a JSON
393
+ * object.</p>
394
+ * @public
395
+ */
396
+ RestApiResponse;
358
397
  /**
359
398
  * @internal
360
399
  */
@@ -364,15 +403,11 @@ var _RestApiServerException = class _RestApiServerException extends MWAAServiceE
364
403
  $fault: "client",
365
404
  ...opts
366
405
  });
367
- this.name = "RestApiServerException";
368
- this.$fault = "client";
369
406
  Object.setPrototypeOf(this, _RestApiServerException.prototype);
370
407
  this.RestApiStatusCode = opts.RestApiStatusCode;
371
408
  this.RestApiResponse = opts.RestApiResponse;
372
409
  }
373
410
  };
374
- __name(_RestApiServerException, "RestApiServerException");
375
- var RestApiServerException = _RestApiServerException;
376
411
  var Unit = {
377
412
  BITS: "Bits",
378
413
  BITS_PER_SECOND: "Bits/Second",
@@ -1093,169 +1128,181 @@ var _NT = "NextToken";
1093
1128
  var _tK = "tagKeys";
1094
1129
 
1095
1130
  // src/commands/CreateCliTokenCommand.ts
1096
- var _CreateCliTokenCommand = class _CreateCliTokenCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1131
+ var CreateCliTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1097
1132
  return [
1098
1133
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1099
1134
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1100
1135
  ];
1101
1136
  }).s("AmazonMWAA", "CreateCliToken", {}).n("MWAAClient", "CreateCliTokenCommand").f(void 0, CreateCliTokenResponseFilterSensitiveLog).ser(se_CreateCliTokenCommand).de(de_CreateCliTokenCommand).build() {
1137
+ static {
1138
+ __name(this, "CreateCliTokenCommand");
1139
+ }
1102
1140
  };
1103
- __name(_CreateCliTokenCommand, "CreateCliTokenCommand");
1104
- var CreateCliTokenCommand = _CreateCliTokenCommand;
1105
1141
 
1106
1142
  // src/commands/CreateEnvironmentCommand.ts
1107
1143
 
1108
1144
 
1109
1145
 
1110
- var _CreateEnvironmentCommand = class _CreateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1146
+ var CreateEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1111
1147
  return [
1112
1148
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1113
1149
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1114
1150
  ];
1115
1151
  }).s("AmazonMWAA", "CreateEnvironment", {}).n("MWAAClient", "CreateEnvironmentCommand").f(CreateEnvironmentInputFilterSensitiveLog, void 0).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
1152
+ static {
1153
+ __name(this, "CreateEnvironmentCommand");
1154
+ }
1116
1155
  };
1117
- __name(_CreateEnvironmentCommand, "CreateEnvironmentCommand");
1118
- var CreateEnvironmentCommand = _CreateEnvironmentCommand;
1119
1156
 
1120
1157
  // src/commands/CreateWebLoginTokenCommand.ts
1121
1158
 
1122
1159
 
1123
1160
 
1124
- var _CreateWebLoginTokenCommand = class _CreateWebLoginTokenCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1161
+ var CreateWebLoginTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1125
1162
  return [
1126
1163
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1127
1164
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1128
1165
  ];
1129
1166
  }).s("AmazonMWAA", "CreateWebLoginToken", {}).n("MWAAClient", "CreateWebLoginTokenCommand").f(void 0, CreateWebLoginTokenResponseFilterSensitiveLog).ser(se_CreateWebLoginTokenCommand).de(de_CreateWebLoginTokenCommand).build() {
1167
+ static {
1168
+ __name(this, "CreateWebLoginTokenCommand");
1169
+ }
1130
1170
  };
1131
- __name(_CreateWebLoginTokenCommand, "CreateWebLoginTokenCommand");
1132
- var CreateWebLoginTokenCommand = _CreateWebLoginTokenCommand;
1133
1171
 
1134
1172
  // src/commands/DeleteEnvironmentCommand.ts
1135
1173
 
1136
1174
 
1137
1175
 
1138
- var _DeleteEnvironmentCommand = class _DeleteEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1176
+ var DeleteEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1139
1177
  return [
1140
1178
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1141
1179
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1142
1180
  ];
1143
1181
  }).s("AmazonMWAA", "DeleteEnvironment", {}).n("MWAAClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
1182
+ static {
1183
+ __name(this, "DeleteEnvironmentCommand");
1184
+ }
1144
1185
  };
1145
- __name(_DeleteEnvironmentCommand, "DeleteEnvironmentCommand");
1146
- var DeleteEnvironmentCommand = _DeleteEnvironmentCommand;
1147
1186
 
1148
1187
  // src/commands/GetEnvironmentCommand.ts
1149
1188
 
1150
1189
 
1151
1190
 
1152
- var _GetEnvironmentCommand = class _GetEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1191
+ var GetEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1153
1192
  return [
1154
1193
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1155
1194
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1156
1195
  ];
1157
1196
  }).s("AmazonMWAA", "GetEnvironment", {}).n("MWAAClient", "GetEnvironmentCommand").f(void 0, GetEnvironmentOutputFilterSensitiveLog).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
1197
+ static {
1198
+ __name(this, "GetEnvironmentCommand");
1199
+ }
1158
1200
  };
1159
- __name(_GetEnvironmentCommand, "GetEnvironmentCommand");
1160
- var GetEnvironmentCommand = _GetEnvironmentCommand;
1161
1201
 
1162
1202
  // src/commands/InvokeRestApiCommand.ts
1163
1203
 
1164
1204
 
1165
1205
 
1166
- var _InvokeRestApiCommand = class _InvokeRestApiCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1206
+ var InvokeRestApiCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1167
1207
  return [
1168
1208
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1169
1209
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1170
1210
  ];
1171
1211
  }).s("AmazonMWAA", "InvokeRestApi", {}).n("MWAAClient", "InvokeRestApiCommand").f(InvokeRestApiRequestFilterSensitiveLog, InvokeRestApiResponseFilterSensitiveLog).ser(se_InvokeRestApiCommand).de(de_InvokeRestApiCommand).build() {
1212
+ static {
1213
+ __name(this, "InvokeRestApiCommand");
1214
+ }
1172
1215
  };
1173
- __name(_InvokeRestApiCommand, "InvokeRestApiCommand");
1174
- var InvokeRestApiCommand = _InvokeRestApiCommand;
1175
1216
 
1176
1217
  // src/commands/ListEnvironmentsCommand.ts
1177
1218
 
1178
1219
 
1179
1220
 
1180
- var _ListEnvironmentsCommand = class _ListEnvironmentsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1221
+ var ListEnvironmentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1181
1222
  return [
1182
1223
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1183
1224
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1184
1225
  ];
1185
1226
  }).s("AmazonMWAA", "ListEnvironments", {}).n("MWAAClient", "ListEnvironmentsCommand").f(void 0, void 0).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
1227
+ static {
1228
+ __name(this, "ListEnvironmentsCommand");
1229
+ }
1186
1230
  };
1187
- __name(_ListEnvironmentsCommand, "ListEnvironmentsCommand");
1188
- var ListEnvironmentsCommand = _ListEnvironmentsCommand;
1189
1231
 
1190
1232
  // src/commands/ListTagsForResourceCommand.ts
1191
1233
 
1192
1234
 
1193
1235
 
1194
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1236
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1195
1237
  return [
1196
1238
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1197
1239
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1198
1240
  ];
1199
1241
  }).s("AmazonMWAA", "ListTagsForResource", {}).n("MWAAClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1242
+ static {
1243
+ __name(this, "ListTagsForResourceCommand");
1244
+ }
1200
1245
  };
1201
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1202
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1203
1246
 
1204
1247
  // src/commands/PublishMetricsCommand.ts
1205
1248
 
1206
1249
 
1207
1250
 
1208
- var _PublishMetricsCommand = class _PublishMetricsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1251
+ var PublishMetricsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1209
1252
  return [
1210
1253
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1211
1254
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1212
1255
  ];
1213
1256
  }).s("AmazonMWAA", "PublishMetrics", {}).n("MWAAClient", "PublishMetricsCommand").f(void 0, void 0).ser(se_PublishMetricsCommand).de(de_PublishMetricsCommand).build() {
1257
+ static {
1258
+ __name(this, "PublishMetricsCommand");
1259
+ }
1214
1260
  };
1215
- __name(_PublishMetricsCommand, "PublishMetricsCommand");
1216
- var PublishMetricsCommand = _PublishMetricsCommand;
1217
1261
 
1218
1262
  // src/commands/TagResourceCommand.ts
1219
1263
 
1220
1264
 
1221
1265
 
1222
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1266
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1223
1267
  return [
1224
1268
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1225
1269
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1226
1270
  ];
1227
1271
  }).s("AmazonMWAA", "TagResource", {}).n("MWAAClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1272
+ static {
1273
+ __name(this, "TagResourceCommand");
1274
+ }
1228
1275
  };
1229
- __name(_TagResourceCommand, "TagResourceCommand");
1230
- var TagResourceCommand = _TagResourceCommand;
1231
1276
 
1232
1277
  // src/commands/UntagResourceCommand.ts
1233
1278
 
1234
1279
 
1235
1280
 
1236
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1281
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1237
1282
  return [
1238
1283
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1239
1284
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1240
1285
  ];
1241
1286
  }).s("AmazonMWAA", "UntagResource", {}).n("MWAAClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1287
+ static {
1288
+ __name(this, "UntagResourceCommand");
1289
+ }
1242
1290
  };
1243
- __name(_UntagResourceCommand, "UntagResourceCommand");
1244
- var UntagResourceCommand = _UntagResourceCommand;
1245
1291
 
1246
1292
  // src/commands/UpdateEnvironmentCommand.ts
1247
1293
 
1248
1294
 
1249
1295
 
1250
- var _UpdateEnvironmentCommand = class _UpdateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1296
+ var UpdateEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1251
1297
  return [
1252
1298
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1253
1299
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1254
1300
  ];
1255
1301
  }).s("AmazonMWAA", "UpdateEnvironment", {}).n("MWAAClient", "UpdateEnvironmentCommand").f(UpdateEnvironmentInputFilterSensitiveLog, void 0).ser(se_UpdateEnvironmentCommand).de(de_UpdateEnvironmentCommand).build() {
1302
+ static {
1303
+ __name(this, "UpdateEnvironmentCommand");
1304
+ }
1256
1305
  };
1257
- __name(_UpdateEnvironmentCommand, "UpdateEnvironmentCommand");
1258
- var UpdateEnvironmentCommand = _UpdateEnvironmentCommand;
1259
1306
 
1260
1307
  // src/MWAA.ts
1261
1308
  var commands = {
@@ -1272,10 +1319,11 @@ var commands = {
1272
1319
  UntagResourceCommand,
1273
1320
  UpdateEnvironmentCommand
1274
1321
  };
1275
- var _MWAA = class _MWAA extends MWAAClient {
1322
+ var MWAA = class extends MWAAClient {
1323
+ static {
1324
+ __name(this, "MWAA");
1325
+ }
1276
1326
  };
1277
- __name(_MWAA, "MWAA");
1278
- var MWAA = _MWAA;
1279
1327
  (0, import_smithy_client.createAggregatedClient)(commands, MWAA);
1280
1328
 
1281
1329
  // src/pagination/ListEnvironmentsPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class MWAAClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,27 +1,28 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { MWAAServiceException as __BaseException } from "./MWAAServiceException";
3
3
  export class AccessDeniedException extends __BaseException {
4
+ name = "AccessDeniedException";
5
+ $fault = "client";
6
+ Message;
4
7
  constructor(opts) {
5
8
  super({
6
9
  name: "AccessDeniedException",
7
10
  $fault: "client",
8
11
  ...opts,
9
12
  });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
13
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
14
  this.Message = opts.Message;
14
15
  }
15
16
  }
16
17
  export class ResourceNotFoundException extends __BaseException {
18
+ name = "ResourceNotFoundException";
19
+ $fault = "client";
17
20
  constructor(opts) {
18
21
  super({
19
22
  name: "ResourceNotFoundException",
20
23
  $fault: "client",
21
24
  ...opts,
22
25
  });
23
- this.name = "ResourceNotFoundException";
24
- this.$fault = "client";
25
26
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
26
27
  }
27
28
  }
@@ -41,26 +42,26 @@ export const WebserverAccessMode = {
41
42
  PUBLIC_ONLY: "PUBLIC_ONLY",
42
43
  };
43
44
  export class InternalServerException extends __BaseException {
45
+ name = "InternalServerException";
46
+ $fault = "server";
44
47
  constructor(opts) {
45
48
  super({
46
49
  name: "InternalServerException",
47
50
  $fault: "server",
48
51
  ...opts,
49
52
  });
50
- this.name = "InternalServerException";
51
- this.$fault = "server";
52
53
  Object.setPrototypeOf(this, InternalServerException.prototype);
53
54
  }
54
55
  }
55
56
  export class ValidationException extends __BaseException {
57
+ name = "ValidationException";
58
+ $fault = "client";
56
59
  constructor(opts) {
57
60
  super({
58
61
  name: "ValidationException",
59
62
  $fault: "client",
60
63
  ...opts,
61
64
  });
62
- this.name = "ValidationException";
63
- this.$fault = "client";
64
65
  Object.setPrototypeOf(this, ValidationException.prototype);
65
66
  }
66
67
  }
@@ -91,28 +92,32 @@ export const RestApiMethod = {
91
92
  PUT: "PUT",
92
93
  };
93
94
  export class RestApiClientException extends __BaseException {
95
+ name = "RestApiClientException";
96
+ $fault = "client";
97
+ RestApiStatusCode;
98
+ RestApiResponse;
94
99
  constructor(opts) {
95
100
  super({
96
101
  name: "RestApiClientException",
97
102
  $fault: "client",
98
103
  ...opts,
99
104
  });
100
- this.name = "RestApiClientException";
101
- this.$fault = "client";
102
105
  Object.setPrototypeOf(this, RestApiClientException.prototype);
103
106
  this.RestApiStatusCode = opts.RestApiStatusCode;
104
107
  this.RestApiResponse = opts.RestApiResponse;
105
108
  }
106
109
  }
107
110
  export class RestApiServerException extends __BaseException {
111
+ name = "RestApiServerException";
112
+ $fault = "client";
113
+ RestApiStatusCode;
114
+ RestApiResponse;
108
115
  constructor(opts) {
109
116
  super({
110
117
  name: "RestApiServerException",
111
118
  $fault: "client",
112
119
  ...opts,
113
120
  });
114
- this.name = "RestApiServerException";
115
- this.$fault = "client";
116
121
  Object.setPrototypeOf(this, RestApiServerException.prototype);
117
122
  this.RestApiStatusCode = opts.RestApiStatusCode;
118
123
  this.RestApiResponse = opts.RestApiResponse;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: MWAAClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mwaa",
3
3
  "description": "AWS SDK for JavaScript Mwaa Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-mwaa",
@@ -20,56 +20,56 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {