@aws-sdk/client-controltower 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
@@ -175,7 +175,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
175
175
  }, "resolveRuntimeExtensions");
176
176
 
177
177
  // src/ControlTowerClient.ts
178
- var _ControlTowerClient = class _ControlTowerClient extends import_smithy_client.Client {
178
+ var ControlTowerClient = class extends import_smithy_client.Client {
179
+ static {
180
+ __name(this, "ControlTowerClient");
181
+ }
182
+ /**
183
+ * The resolved configuration of ControlTowerClient class. This is resolved and normalized from the {@link ControlTowerClientConfig | constructor configuration interface}.
184
+ */
185
+ config;
179
186
  constructor(...[configuration]) {
180
187
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
181
188
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -185,7 +192,7 @@ var _ControlTowerClient = class _ControlTowerClient extends import_smithy_client
185
192
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
186
193
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
187
194
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
188
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
195
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
189
196
  super(_config_8);
190
197
  this.config = _config_8;
191
198
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -213,8 +220,6 @@ var _ControlTowerClient = class _ControlTowerClient extends import_smithy_client
213
220
  super.destroy();
214
221
  }
215
222
  };
216
- __name(_ControlTowerClient, "ControlTowerClient");
217
- var ControlTowerClient = _ControlTowerClient;
218
223
 
219
224
  // src/ControlTower.ts
220
225
 
@@ -231,7 +236,10 @@ var import_core2 = require("@aws-sdk/core");
231
236
 
232
237
  // src/models/ControlTowerServiceException.ts
233
238
 
234
- var _ControlTowerServiceException = class _ControlTowerServiceException extends import_smithy_client.ServiceException {
239
+ var ControlTowerServiceException = class _ControlTowerServiceException extends import_smithy_client.ServiceException {
240
+ static {
241
+ __name(this, "ControlTowerServiceException");
242
+ }
235
243
  /**
236
244
  * @internal
237
245
  */
@@ -240,11 +248,14 @@ var _ControlTowerServiceException = class _ControlTowerServiceException extends
240
248
  Object.setPrototypeOf(this, _ControlTowerServiceException.prototype);
241
249
  }
242
250
  };
243
- __name(_ControlTowerServiceException, "ControlTowerServiceException");
244
- var ControlTowerServiceException = _ControlTowerServiceException;
245
251
 
246
252
  // src/models/models_0.ts
247
- var _AccessDeniedException = class _AccessDeniedException extends ControlTowerServiceException {
253
+ var AccessDeniedException = class _AccessDeniedException extends ControlTowerServiceException {
254
+ static {
255
+ __name(this, "AccessDeniedException");
256
+ }
257
+ name = "AccessDeniedException";
258
+ $fault = "client";
248
259
  /**
249
260
  * @internal
250
261
  */
@@ -254,13 +265,9 @@ var _AccessDeniedException = class _AccessDeniedException extends ControlTowerSe
254
265
  $fault: "client",
255
266
  ...opts
256
267
  });
257
- this.name = "AccessDeniedException";
258
- this.$fault = "client";
259
268
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
260
269
  }
261
270
  };
262
- __name(_AccessDeniedException, "AccessDeniedException");
263
- var AccessDeniedException = _AccessDeniedException;
264
271
  var BaselineOperationType = {
265
272
  DISABLE_BASELINE: "DISABLE_BASELINE",
266
273
  ENABLE_BASELINE: "ENABLE_BASELINE",
@@ -272,7 +279,13 @@ var BaselineOperationStatus = {
272
279
  IN_PROGRESS: "IN_PROGRESS",
273
280
  SUCCEEDED: "SUCCEEDED"
274
281
  };
275
- var _InternalServerException = class _InternalServerException extends ControlTowerServiceException {
282
+ var InternalServerException = class _InternalServerException extends ControlTowerServiceException {
283
+ static {
284
+ __name(this, "InternalServerException");
285
+ }
286
+ name = "InternalServerException";
287
+ $fault = "server";
288
+ $retryable = {};
276
289
  /**
277
290
  * @internal
278
291
  */
@@ -282,15 +295,15 @@ var _InternalServerException = class _InternalServerException extends ControlTow
282
295
  $fault: "server",
283
296
  ...opts
284
297
  });
285
- this.name = "InternalServerException";
286
- this.$fault = "server";
287
- this.$retryable = {};
288
298
  Object.setPrototypeOf(this, _InternalServerException.prototype);
289
299
  }
290
300
  };
291
- __name(_InternalServerException, "InternalServerException");
292
- var InternalServerException = _InternalServerException;
293
- var _ResourceNotFoundException = class _ResourceNotFoundException extends ControlTowerServiceException {
301
+ var ResourceNotFoundException = class _ResourceNotFoundException extends ControlTowerServiceException {
302
+ static {
303
+ __name(this, "ResourceNotFoundException");
304
+ }
305
+ name = "ResourceNotFoundException";
306
+ $fault = "client";
294
307
  /**
295
308
  * @internal
296
309
  */
@@ -300,14 +313,33 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Contro
300
313
  $fault: "client",
301
314
  ...opts
302
315
  });
303
- this.name = "ResourceNotFoundException";
304
- this.$fault = "client";
305
316
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
306
317
  }
307
318
  };
308
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
309
- var ResourceNotFoundException = _ResourceNotFoundException;
310
- var _ThrottlingException = class _ThrottlingException extends ControlTowerServiceException {
319
+ var ThrottlingException = class _ThrottlingException extends ControlTowerServiceException {
320
+ static {
321
+ __name(this, "ThrottlingException");
322
+ }
323
+ name = "ThrottlingException";
324
+ $fault = "client";
325
+ $retryable = {
326
+ throttling: true
327
+ };
328
+ /**
329
+ * <p>The ID of the service that is associated with the error.</p>
330
+ * @public
331
+ */
332
+ serviceCode;
333
+ /**
334
+ * <p>The ID of the service quota that was exceeded.</p>
335
+ * @public
336
+ */
337
+ quotaCode;
338
+ /**
339
+ * <p>The number of seconds the caller should wait before retrying.</p>
340
+ * @public
341
+ */
342
+ retryAfterSeconds;
311
343
  /**
312
344
  * @internal
313
345
  */
@@ -317,20 +349,18 @@ var _ThrottlingException = class _ThrottlingException extends ControlTowerServic
317
349
  $fault: "client",
318
350
  ...opts
319
351
  });
320
- this.name = "ThrottlingException";
321
- this.$fault = "client";
322
- this.$retryable = {
323
- throttling: true
324
- };
325
352
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
326
353
  this.serviceCode = opts.serviceCode;
327
354
  this.quotaCode = opts.quotaCode;
328
355
  this.retryAfterSeconds = opts.retryAfterSeconds;
329
356
  }
330
357
  };
331
- __name(_ThrottlingException, "ThrottlingException");
332
- var ThrottlingException = _ThrottlingException;
333
- var _ValidationException = class _ValidationException extends ControlTowerServiceException {
358
+ var ValidationException = class _ValidationException extends ControlTowerServiceException {
359
+ static {
360
+ __name(this, "ValidationException");
361
+ }
362
+ name = "ValidationException";
363
+ $fault = "client";
334
364
  /**
335
365
  * @internal
336
366
  */
@@ -340,13 +370,9 @@ var _ValidationException = class _ValidationException extends ControlTowerServic
340
370
  $fault: "client",
341
371
  ...opts
342
372
  });
343
- this.name = "ValidationException";
344
- this.$fault = "client";
345
373
  Object.setPrototypeOf(this, _ValidationException.prototype);
346
374
  }
347
375
  };
348
- __name(_ValidationException, "ValidationException");
349
- var ValidationException = _ValidationException;
350
376
  var ControlOperationType = {
351
377
  DISABLE_CONTROL: "DISABLE_CONTROL",
352
378
  ENABLE_CONTROL: "ENABLE_CONTROL",
@@ -358,7 +384,12 @@ var ControlOperationStatus = {
358
384
  IN_PROGRESS: "IN_PROGRESS",
359
385
  SUCCEEDED: "SUCCEEDED"
360
386
  };
361
- var _ConflictException = class _ConflictException extends ControlTowerServiceException {
387
+ var ConflictException = class _ConflictException extends ControlTowerServiceException {
388
+ static {
389
+ __name(this, "ConflictException");
390
+ }
391
+ name = "ConflictException";
392
+ $fault = "client";
362
393
  /**
363
394
  * @internal
364
395
  */
@@ -368,14 +399,15 @@ var _ConflictException = class _ConflictException extends ControlTowerServiceExc
368
399
  $fault: "client",
369
400
  ...opts
370
401
  });
371
- this.name = "ConflictException";
372
- this.$fault = "client";
373
402
  Object.setPrototypeOf(this, _ConflictException.prototype);
374
403
  }
375
404
  };
376
- __name(_ConflictException, "ConflictException");
377
- var ConflictException = _ConflictException;
378
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ControlTowerServiceException {
405
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ControlTowerServiceException {
406
+ static {
407
+ __name(this, "ServiceQuotaExceededException");
408
+ }
409
+ name = "ServiceQuotaExceededException";
410
+ $fault = "client";
379
411
  /**
380
412
  * @internal
381
413
  */
@@ -385,13 +417,9 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
385
417
  $fault: "client",
386
418
  ...opts
387
419
  });
388
- this.name = "ServiceQuotaExceededException";
389
- this.$fault = "client";
390
420
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
391
421
  }
392
422
  };
393
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
394
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
395
423
  var EnablementStatus = {
396
424
  FAILED: "FAILED",
397
425
  SUCCEEDED: "SUCCEEDED",
@@ -1551,393 +1579,421 @@ var _ra = "retry-after";
1551
1579
  var _tK = "tagKeys";
1552
1580
 
1553
1581
  // src/commands/CreateLandingZoneCommand.ts
1554
- var _CreateLandingZoneCommand = class _CreateLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1582
+ var CreateLandingZoneCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1555
1583
  return [
1556
1584
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1557
1585
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1558
1586
  ];
1559
1587
  }).s("AWSControlTowerApis", "CreateLandingZone", {}).n("ControlTowerClient", "CreateLandingZoneCommand").f(void 0, void 0).ser(se_CreateLandingZoneCommand).de(de_CreateLandingZoneCommand).build() {
1588
+ static {
1589
+ __name(this, "CreateLandingZoneCommand");
1590
+ }
1560
1591
  };
1561
- __name(_CreateLandingZoneCommand, "CreateLandingZoneCommand");
1562
- var CreateLandingZoneCommand = _CreateLandingZoneCommand;
1563
1592
 
1564
1593
  // src/commands/DeleteLandingZoneCommand.ts
1565
1594
 
1566
1595
 
1567
1596
 
1568
- var _DeleteLandingZoneCommand = class _DeleteLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1597
+ var DeleteLandingZoneCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1569
1598
  return [
1570
1599
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1571
1600
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1572
1601
  ];
1573
1602
  }).s("AWSControlTowerApis", "DeleteLandingZone", {}).n("ControlTowerClient", "DeleteLandingZoneCommand").f(void 0, void 0).ser(se_DeleteLandingZoneCommand).de(de_DeleteLandingZoneCommand).build() {
1603
+ static {
1604
+ __name(this, "DeleteLandingZoneCommand");
1605
+ }
1574
1606
  };
1575
- __name(_DeleteLandingZoneCommand, "DeleteLandingZoneCommand");
1576
- var DeleteLandingZoneCommand = _DeleteLandingZoneCommand;
1577
1607
 
1578
1608
  // src/commands/DisableBaselineCommand.ts
1579
1609
 
1580
1610
 
1581
1611
 
1582
- var _DisableBaselineCommand = class _DisableBaselineCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1612
+ var DisableBaselineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1583
1613
  return [
1584
1614
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1585
1615
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1586
1616
  ];
1587
1617
  }).s("AWSControlTowerApis", "DisableBaseline", {}).n("ControlTowerClient", "DisableBaselineCommand").f(void 0, void 0).ser(se_DisableBaselineCommand).de(de_DisableBaselineCommand).build() {
1618
+ static {
1619
+ __name(this, "DisableBaselineCommand");
1620
+ }
1588
1621
  };
1589
- __name(_DisableBaselineCommand, "DisableBaselineCommand");
1590
- var DisableBaselineCommand = _DisableBaselineCommand;
1591
1622
 
1592
1623
  // src/commands/DisableControlCommand.ts
1593
1624
 
1594
1625
 
1595
1626
 
1596
- var _DisableControlCommand = class _DisableControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1627
+ var DisableControlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1597
1628
  return [
1598
1629
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1599
1630
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1600
1631
  ];
1601
1632
  }).s("AWSControlTowerApis", "DisableControl", {}).n("ControlTowerClient", "DisableControlCommand").f(void 0, void 0).ser(se_DisableControlCommand).de(de_DisableControlCommand).build() {
1633
+ static {
1634
+ __name(this, "DisableControlCommand");
1635
+ }
1602
1636
  };
1603
- __name(_DisableControlCommand, "DisableControlCommand");
1604
- var DisableControlCommand = _DisableControlCommand;
1605
1637
 
1606
1638
  // src/commands/EnableBaselineCommand.ts
1607
1639
 
1608
1640
 
1609
1641
 
1610
- var _EnableBaselineCommand = class _EnableBaselineCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1642
+ var EnableBaselineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1611
1643
  return [
1612
1644
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1613
1645
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1614
1646
  ];
1615
1647
  }).s("AWSControlTowerApis", "EnableBaseline", {}).n("ControlTowerClient", "EnableBaselineCommand").f(void 0, void 0).ser(se_EnableBaselineCommand).de(de_EnableBaselineCommand).build() {
1648
+ static {
1649
+ __name(this, "EnableBaselineCommand");
1650
+ }
1616
1651
  };
1617
- __name(_EnableBaselineCommand, "EnableBaselineCommand");
1618
- var EnableBaselineCommand = _EnableBaselineCommand;
1619
1652
 
1620
1653
  // src/commands/EnableControlCommand.ts
1621
1654
 
1622
1655
 
1623
1656
 
1624
- var _EnableControlCommand = class _EnableControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1657
+ var EnableControlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1625
1658
  return [
1626
1659
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1627
1660
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1628
1661
  ];
1629
1662
  }).s("AWSControlTowerApis", "EnableControl", {}).n("ControlTowerClient", "EnableControlCommand").f(void 0, void 0).ser(se_EnableControlCommand).de(de_EnableControlCommand).build() {
1663
+ static {
1664
+ __name(this, "EnableControlCommand");
1665
+ }
1630
1666
  };
1631
- __name(_EnableControlCommand, "EnableControlCommand");
1632
- var EnableControlCommand = _EnableControlCommand;
1633
1667
 
1634
1668
  // src/commands/GetBaselineCommand.ts
1635
1669
 
1636
1670
 
1637
1671
 
1638
- var _GetBaselineCommand = class _GetBaselineCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1672
+ var GetBaselineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1639
1673
  return [
1640
1674
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1641
1675
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1642
1676
  ];
1643
1677
  }).s("AWSControlTowerApis", "GetBaseline", {}).n("ControlTowerClient", "GetBaselineCommand").f(void 0, void 0).ser(se_GetBaselineCommand).de(de_GetBaselineCommand).build() {
1678
+ static {
1679
+ __name(this, "GetBaselineCommand");
1680
+ }
1644
1681
  };
1645
- __name(_GetBaselineCommand, "GetBaselineCommand");
1646
- var GetBaselineCommand = _GetBaselineCommand;
1647
1682
 
1648
1683
  // src/commands/GetBaselineOperationCommand.ts
1649
1684
 
1650
1685
 
1651
1686
 
1652
- var _GetBaselineOperationCommand = class _GetBaselineOperationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1687
+ var GetBaselineOperationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1653
1688
  return [
1654
1689
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1655
1690
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1656
1691
  ];
1657
1692
  }).s("AWSControlTowerApis", "GetBaselineOperation", {}).n("ControlTowerClient", "GetBaselineOperationCommand").f(void 0, void 0).ser(se_GetBaselineOperationCommand).de(de_GetBaselineOperationCommand).build() {
1693
+ static {
1694
+ __name(this, "GetBaselineOperationCommand");
1695
+ }
1658
1696
  };
1659
- __name(_GetBaselineOperationCommand, "GetBaselineOperationCommand");
1660
- var GetBaselineOperationCommand = _GetBaselineOperationCommand;
1661
1697
 
1662
1698
  // src/commands/GetControlOperationCommand.ts
1663
1699
 
1664
1700
 
1665
1701
 
1666
- var _GetControlOperationCommand = class _GetControlOperationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1702
+ var GetControlOperationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1667
1703
  return [
1668
1704
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1669
1705
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1670
1706
  ];
1671
1707
  }).s("AWSControlTowerApis", "GetControlOperation", {}).n("ControlTowerClient", "GetControlOperationCommand").f(void 0, void 0).ser(se_GetControlOperationCommand).de(de_GetControlOperationCommand).build() {
1708
+ static {
1709
+ __name(this, "GetControlOperationCommand");
1710
+ }
1672
1711
  };
1673
- __name(_GetControlOperationCommand, "GetControlOperationCommand");
1674
- var GetControlOperationCommand = _GetControlOperationCommand;
1675
1712
 
1676
1713
  // src/commands/GetEnabledBaselineCommand.ts
1677
1714
 
1678
1715
 
1679
1716
 
1680
- var _GetEnabledBaselineCommand = class _GetEnabledBaselineCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1717
+ var GetEnabledBaselineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1681
1718
  return [
1682
1719
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1683
1720
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1684
1721
  ];
1685
1722
  }).s("AWSControlTowerApis", "GetEnabledBaseline", {}).n("ControlTowerClient", "GetEnabledBaselineCommand").f(void 0, void 0).ser(se_GetEnabledBaselineCommand).de(de_GetEnabledBaselineCommand).build() {
1723
+ static {
1724
+ __name(this, "GetEnabledBaselineCommand");
1725
+ }
1686
1726
  };
1687
- __name(_GetEnabledBaselineCommand, "GetEnabledBaselineCommand");
1688
- var GetEnabledBaselineCommand = _GetEnabledBaselineCommand;
1689
1727
 
1690
1728
  // src/commands/GetEnabledControlCommand.ts
1691
1729
 
1692
1730
 
1693
1731
 
1694
- var _GetEnabledControlCommand = class _GetEnabledControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1732
+ var GetEnabledControlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1695
1733
  return [
1696
1734
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1697
1735
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1698
1736
  ];
1699
1737
  }).s("AWSControlTowerApis", "GetEnabledControl", {}).n("ControlTowerClient", "GetEnabledControlCommand").f(void 0, void 0).ser(se_GetEnabledControlCommand).de(de_GetEnabledControlCommand).build() {
1738
+ static {
1739
+ __name(this, "GetEnabledControlCommand");
1740
+ }
1700
1741
  };
1701
- __name(_GetEnabledControlCommand, "GetEnabledControlCommand");
1702
- var GetEnabledControlCommand = _GetEnabledControlCommand;
1703
1742
 
1704
1743
  // src/commands/GetLandingZoneCommand.ts
1705
1744
 
1706
1745
 
1707
1746
 
1708
- var _GetLandingZoneCommand = class _GetLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1747
+ var GetLandingZoneCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1709
1748
  return [
1710
1749
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1711
1750
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1712
1751
  ];
1713
1752
  }).s("AWSControlTowerApis", "GetLandingZone", {}).n("ControlTowerClient", "GetLandingZoneCommand").f(void 0, void 0).ser(se_GetLandingZoneCommand).de(de_GetLandingZoneCommand).build() {
1753
+ static {
1754
+ __name(this, "GetLandingZoneCommand");
1755
+ }
1714
1756
  };
1715
- __name(_GetLandingZoneCommand, "GetLandingZoneCommand");
1716
- var GetLandingZoneCommand = _GetLandingZoneCommand;
1717
1757
 
1718
1758
  // src/commands/GetLandingZoneOperationCommand.ts
1719
1759
 
1720
1760
 
1721
1761
 
1722
- var _GetLandingZoneOperationCommand = class _GetLandingZoneOperationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1762
+ var GetLandingZoneOperationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1723
1763
  return [
1724
1764
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1725
1765
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1726
1766
  ];
1727
1767
  }).s("AWSControlTowerApis", "GetLandingZoneOperation", {}).n("ControlTowerClient", "GetLandingZoneOperationCommand").f(void 0, void 0).ser(se_GetLandingZoneOperationCommand).de(de_GetLandingZoneOperationCommand).build() {
1768
+ static {
1769
+ __name(this, "GetLandingZoneOperationCommand");
1770
+ }
1728
1771
  };
1729
- __name(_GetLandingZoneOperationCommand, "GetLandingZoneOperationCommand");
1730
- var GetLandingZoneOperationCommand = _GetLandingZoneOperationCommand;
1731
1772
 
1732
1773
  // src/commands/ListBaselinesCommand.ts
1733
1774
 
1734
1775
 
1735
1776
 
1736
- var _ListBaselinesCommand = class _ListBaselinesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1777
+ var ListBaselinesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1737
1778
  return [
1738
1779
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1739
1780
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1740
1781
  ];
1741
1782
  }).s("AWSControlTowerApis", "ListBaselines", {}).n("ControlTowerClient", "ListBaselinesCommand").f(void 0, void 0).ser(se_ListBaselinesCommand).de(de_ListBaselinesCommand).build() {
1783
+ static {
1784
+ __name(this, "ListBaselinesCommand");
1785
+ }
1742
1786
  };
1743
- __name(_ListBaselinesCommand, "ListBaselinesCommand");
1744
- var ListBaselinesCommand = _ListBaselinesCommand;
1745
1787
 
1746
1788
  // src/commands/ListControlOperationsCommand.ts
1747
1789
 
1748
1790
 
1749
1791
 
1750
- var _ListControlOperationsCommand = class _ListControlOperationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1792
+ var ListControlOperationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1751
1793
  return [
1752
1794
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1753
1795
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1754
1796
  ];
1755
1797
  }).s("AWSControlTowerApis", "ListControlOperations", {}).n("ControlTowerClient", "ListControlOperationsCommand").f(void 0, void 0).ser(se_ListControlOperationsCommand).de(de_ListControlOperationsCommand).build() {
1798
+ static {
1799
+ __name(this, "ListControlOperationsCommand");
1800
+ }
1756
1801
  };
1757
- __name(_ListControlOperationsCommand, "ListControlOperationsCommand");
1758
- var ListControlOperationsCommand = _ListControlOperationsCommand;
1759
1802
 
1760
1803
  // src/commands/ListEnabledBaselinesCommand.ts
1761
1804
 
1762
1805
 
1763
1806
 
1764
- var _ListEnabledBaselinesCommand = class _ListEnabledBaselinesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1807
+ var ListEnabledBaselinesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1765
1808
  return [
1766
1809
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1767
1810
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1768
1811
  ];
1769
1812
  }).s("AWSControlTowerApis", "ListEnabledBaselines", {}).n("ControlTowerClient", "ListEnabledBaselinesCommand").f(void 0, void 0).ser(se_ListEnabledBaselinesCommand).de(de_ListEnabledBaselinesCommand).build() {
1813
+ static {
1814
+ __name(this, "ListEnabledBaselinesCommand");
1815
+ }
1770
1816
  };
1771
- __name(_ListEnabledBaselinesCommand, "ListEnabledBaselinesCommand");
1772
- var ListEnabledBaselinesCommand = _ListEnabledBaselinesCommand;
1773
1817
 
1774
1818
  // src/commands/ListEnabledControlsCommand.ts
1775
1819
 
1776
1820
 
1777
1821
 
1778
- var _ListEnabledControlsCommand = class _ListEnabledControlsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1822
+ var ListEnabledControlsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1779
1823
  return [
1780
1824
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1781
1825
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1782
1826
  ];
1783
1827
  }).s("AWSControlTowerApis", "ListEnabledControls", {}).n("ControlTowerClient", "ListEnabledControlsCommand").f(void 0, void 0).ser(se_ListEnabledControlsCommand).de(de_ListEnabledControlsCommand).build() {
1828
+ static {
1829
+ __name(this, "ListEnabledControlsCommand");
1830
+ }
1784
1831
  };
1785
- __name(_ListEnabledControlsCommand, "ListEnabledControlsCommand");
1786
- var ListEnabledControlsCommand = _ListEnabledControlsCommand;
1787
1832
 
1788
1833
  // src/commands/ListLandingZoneOperationsCommand.ts
1789
1834
 
1790
1835
 
1791
1836
 
1792
- var _ListLandingZoneOperationsCommand = class _ListLandingZoneOperationsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1837
+ var ListLandingZoneOperationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1793
1838
  return [
1794
1839
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1795
1840
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1796
1841
  ];
1797
1842
  }).s("AWSControlTowerApis", "ListLandingZoneOperations", {}).n("ControlTowerClient", "ListLandingZoneOperationsCommand").f(void 0, void 0).ser(se_ListLandingZoneOperationsCommand).de(de_ListLandingZoneOperationsCommand).build() {
1843
+ static {
1844
+ __name(this, "ListLandingZoneOperationsCommand");
1845
+ }
1798
1846
  };
1799
- __name(_ListLandingZoneOperationsCommand, "ListLandingZoneOperationsCommand");
1800
- var ListLandingZoneOperationsCommand = _ListLandingZoneOperationsCommand;
1801
1847
 
1802
1848
  // src/commands/ListLandingZonesCommand.ts
1803
1849
 
1804
1850
 
1805
1851
 
1806
- var _ListLandingZonesCommand = class _ListLandingZonesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1852
+ var ListLandingZonesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1807
1853
  return [
1808
1854
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1809
1855
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1810
1856
  ];
1811
1857
  }).s("AWSControlTowerApis", "ListLandingZones", {}).n("ControlTowerClient", "ListLandingZonesCommand").f(void 0, void 0).ser(se_ListLandingZonesCommand).de(de_ListLandingZonesCommand).build() {
1858
+ static {
1859
+ __name(this, "ListLandingZonesCommand");
1860
+ }
1812
1861
  };
1813
- __name(_ListLandingZonesCommand, "ListLandingZonesCommand");
1814
- var ListLandingZonesCommand = _ListLandingZonesCommand;
1815
1862
 
1816
1863
  // src/commands/ListTagsForResourceCommand.ts
1817
1864
 
1818
1865
 
1819
1866
 
1820
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1867
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1821
1868
  return [
1822
1869
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1823
1870
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1824
1871
  ];
1825
1872
  }).s("AWSControlTowerApis", "ListTagsForResource", {}).n("ControlTowerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1873
+ static {
1874
+ __name(this, "ListTagsForResourceCommand");
1875
+ }
1826
1876
  };
1827
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1828
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1829
1877
 
1830
1878
  // src/commands/ResetEnabledBaselineCommand.ts
1831
1879
 
1832
1880
 
1833
1881
 
1834
- var _ResetEnabledBaselineCommand = class _ResetEnabledBaselineCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1882
+ var ResetEnabledBaselineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1835
1883
  return [
1836
1884
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1837
1885
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1838
1886
  ];
1839
1887
  }).s("AWSControlTowerApis", "ResetEnabledBaseline", {}).n("ControlTowerClient", "ResetEnabledBaselineCommand").f(void 0, void 0).ser(se_ResetEnabledBaselineCommand).de(de_ResetEnabledBaselineCommand).build() {
1888
+ static {
1889
+ __name(this, "ResetEnabledBaselineCommand");
1890
+ }
1840
1891
  };
1841
- __name(_ResetEnabledBaselineCommand, "ResetEnabledBaselineCommand");
1842
- var ResetEnabledBaselineCommand = _ResetEnabledBaselineCommand;
1843
1892
 
1844
1893
  // src/commands/ResetEnabledControlCommand.ts
1845
1894
 
1846
1895
 
1847
1896
 
1848
- var _ResetEnabledControlCommand = class _ResetEnabledControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1897
+ var ResetEnabledControlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1849
1898
  return [
1850
1899
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1851
1900
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1852
1901
  ];
1853
1902
  }).s("AWSControlTowerApis", "ResetEnabledControl", {}).n("ControlTowerClient", "ResetEnabledControlCommand").f(void 0, void 0).ser(se_ResetEnabledControlCommand).de(de_ResetEnabledControlCommand).build() {
1903
+ static {
1904
+ __name(this, "ResetEnabledControlCommand");
1905
+ }
1854
1906
  };
1855
- __name(_ResetEnabledControlCommand, "ResetEnabledControlCommand");
1856
- var ResetEnabledControlCommand = _ResetEnabledControlCommand;
1857
1907
 
1858
1908
  // src/commands/ResetLandingZoneCommand.ts
1859
1909
 
1860
1910
 
1861
1911
 
1862
- var _ResetLandingZoneCommand = class _ResetLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1912
+ var ResetLandingZoneCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1863
1913
  return [
1864
1914
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1865
1915
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1866
1916
  ];
1867
1917
  }).s("AWSControlTowerApis", "ResetLandingZone", {}).n("ControlTowerClient", "ResetLandingZoneCommand").f(void 0, void 0).ser(se_ResetLandingZoneCommand).de(de_ResetLandingZoneCommand).build() {
1918
+ static {
1919
+ __name(this, "ResetLandingZoneCommand");
1920
+ }
1868
1921
  };
1869
- __name(_ResetLandingZoneCommand, "ResetLandingZoneCommand");
1870
- var ResetLandingZoneCommand = _ResetLandingZoneCommand;
1871
1922
 
1872
1923
  // src/commands/TagResourceCommand.ts
1873
1924
 
1874
1925
 
1875
1926
 
1876
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1927
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1877
1928
  return [
1878
1929
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1879
1930
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1880
1931
  ];
1881
1932
  }).s("AWSControlTowerApis", "TagResource", {}).n("ControlTowerClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1933
+ static {
1934
+ __name(this, "TagResourceCommand");
1935
+ }
1882
1936
  };
1883
- __name(_TagResourceCommand, "TagResourceCommand");
1884
- var TagResourceCommand = _TagResourceCommand;
1885
1937
 
1886
1938
  // src/commands/UntagResourceCommand.ts
1887
1939
 
1888
1940
 
1889
1941
 
1890
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1942
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1891
1943
  return [
1892
1944
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1893
1945
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1894
1946
  ];
1895
1947
  }).s("AWSControlTowerApis", "UntagResource", {}).n("ControlTowerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1948
+ static {
1949
+ __name(this, "UntagResourceCommand");
1950
+ }
1896
1951
  };
1897
- __name(_UntagResourceCommand, "UntagResourceCommand");
1898
- var UntagResourceCommand = _UntagResourceCommand;
1899
1952
 
1900
1953
  // src/commands/UpdateEnabledBaselineCommand.ts
1901
1954
 
1902
1955
 
1903
1956
 
1904
- var _UpdateEnabledBaselineCommand = class _UpdateEnabledBaselineCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1957
+ var UpdateEnabledBaselineCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1905
1958
  return [
1906
1959
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1907
1960
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1908
1961
  ];
1909
1962
  }).s("AWSControlTowerApis", "UpdateEnabledBaseline", {}).n("ControlTowerClient", "UpdateEnabledBaselineCommand").f(void 0, void 0).ser(se_UpdateEnabledBaselineCommand).de(de_UpdateEnabledBaselineCommand).build() {
1963
+ static {
1964
+ __name(this, "UpdateEnabledBaselineCommand");
1965
+ }
1910
1966
  };
1911
- __name(_UpdateEnabledBaselineCommand, "UpdateEnabledBaselineCommand");
1912
- var UpdateEnabledBaselineCommand = _UpdateEnabledBaselineCommand;
1913
1967
 
1914
1968
  // src/commands/UpdateEnabledControlCommand.ts
1915
1969
 
1916
1970
 
1917
1971
 
1918
- var _UpdateEnabledControlCommand = class _UpdateEnabledControlCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1972
+ var UpdateEnabledControlCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1919
1973
  return [
1920
1974
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1921
1975
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1922
1976
  ];
1923
1977
  }).s("AWSControlTowerApis", "UpdateEnabledControl", {}).n("ControlTowerClient", "UpdateEnabledControlCommand").f(void 0, void 0).ser(se_UpdateEnabledControlCommand).de(de_UpdateEnabledControlCommand).build() {
1978
+ static {
1979
+ __name(this, "UpdateEnabledControlCommand");
1980
+ }
1924
1981
  };
1925
- __name(_UpdateEnabledControlCommand, "UpdateEnabledControlCommand");
1926
- var UpdateEnabledControlCommand = _UpdateEnabledControlCommand;
1927
1982
 
1928
1983
  // src/commands/UpdateLandingZoneCommand.ts
1929
1984
 
1930
1985
 
1931
1986
 
1932
- var _UpdateLandingZoneCommand = class _UpdateLandingZoneCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1987
+ var UpdateLandingZoneCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1933
1988
  return [
1934
1989
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1935
1990
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1936
1991
  ];
1937
1992
  }).s("AWSControlTowerApis", "UpdateLandingZone", {}).n("ControlTowerClient", "UpdateLandingZoneCommand").f(void 0, void 0).ser(se_UpdateLandingZoneCommand).de(de_UpdateLandingZoneCommand).build() {
1993
+ static {
1994
+ __name(this, "UpdateLandingZoneCommand");
1995
+ }
1938
1996
  };
1939
- __name(_UpdateLandingZoneCommand, "UpdateLandingZoneCommand");
1940
- var UpdateLandingZoneCommand = _UpdateLandingZoneCommand;
1941
1997
 
1942
1998
  // src/ControlTower.ts
1943
1999
  var commands = {
@@ -1970,10 +2026,11 @@ var commands = {
1970
2026
  UpdateEnabledControlCommand,
1971
2027
  UpdateLandingZoneCommand
1972
2028
  };
1973
- var _ControlTower = class _ControlTower extends ControlTowerClient {
2029
+ var ControlTower = class extends ControlTowerClient {
2030
+ static {
2031
+ __name(this, "ControlTower");
2032
+ }
1974
2033
  };
1975
- __name(_ControlTower, "ControlTower");
1976
- var ControlTower = _ControlTower;
1977
2034
  (0, import_smithy_client.createAggregatedClient)(commands, ControlTower);
1978
2035
 
1979
2036
  // src/pagination/ListBaselinesPaginator.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 ControlTowerClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,13 +1,13 @@
1
1
  import { ControlTowerServiceException as __BaseException } from "./ControlTowerServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "AccessDeniedException",
6
8
  $fault: "client",
7
9
  ...opts,
8
10
  });
9
- this.name = "AccessDeniedException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
@@ -23,42 +23,45 @@ export const BaselineOperationStatus = {
23
23
  SUCCEEDED: "SUCCEEDED",
24
24
  };
25
25
  export class InternalServerException extends __BaseException {
26
+ name = "InternalServerException";
27
+ $fault = "server";
28
+ $retryable = {};
26
29
  constructor(opts) {
27
30
  super({
28
31
  name: "InternalServerException",
29
32
  $fault: "server",
30
33
  ...opts,
31
34
  });
32
- this.name = "InternalServerException";
33
- this.$fault = "server";
34
- this.$retryable = {};
35
35
  Object.setPrototypeOf(this, InternalServerException.prototype);
36
36
  }
37
37
  }
38
38
  export class ResourceNotFoundException extends __BaseException {
39
+ name = "ResourceNotFoundException";
40
+ $fault = "client";
39
41
  constructor(opts) {
40
42
  super({
41
43
  name: "ResourceNotFoundException",
42
44
  $fault: "client",
43
45
  ...opts,
44
46
  });
45
- this.name = "ResourceNotFoundException";
46
- this.$fault = "client";
47
47
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
48
48
  }
49
49
  }
50
50
  export class ThrottlingException extends __BaseException {
51
+ name = "ThrottlingException";
52
+ $fault = "client";
53
+ $retryable = {
54
+ throttling: true,
55
+ };
56
+ serviceCode;
57
+ quotaCode;
58
+ retryAfterSeconds;
51
59
  constructor(opts) {
52
60
  super({
53
61
  name: "ThrottlingException",
54
62
  $fault: "client",
55
63
  ...opts,
56
64
  });
57
- this.name = "ThrottlingException";
58
- this.$fault = "client";
59
- this.$retryable = {
60
- throttling: true,
61
- };
62
65
  Object.setPrototypeOf(this, ThrottlingException.prototype);
63
66
  this.serviceCode = opts.serviceCode;
64
67
  this.quotaCode = opts.quotaCode;
@@ -66,14 +69,14 @@ export class ThrottlingException extends __BaseException {
66
69
  }
67
70
  }
68
71
  export class ValidationException extends __BaseException {
72
+ name = "ValidationException";
73
+ $fault = "client";
69
74
  constructor(opts) {
70
75
  super({
71
76
  name: "ValidationException",
72
77
  $fault: "client",
73
78
  ...opts,
74
79
  });
75
- this.name = "ValidationException";
76
- this.$fault = "client";
77
80
  Object.setPrototypeOf(this, ValidationException.prototype);
78
81
  }
79
82
  }
@@ -89,26 +92,26 @@ export const ControlOperationStatus = {
89
92
  SUCCEEDED: "SUCCEEDED",
90
93
  };
91
94
  export class ConflictException extends __BaseException {
95
+ name = "ConflictException";
96
+ $fault = "client";
92
97
  constructor(opts) {
93
98
  super({
94
99
  name: "ConflictException",
95
100
  $fault: "client",
96
101
  ...opts,
97
102
  });
98
- this.name = "ConflictException";
99
- this.$fault = "client";
100
103
  Object.setPrototypeOf(this, ConflictException.prototype);
101
104
  }
102
105
  }
103
106
  export class ServiceQuotaExceededException extends __BaseException {
107
+ name = "ServiceQuotaExceededException";
108
+ $fault = "client";
104
109
  constructor(opts) {
105
110
  super({
106
111
  name: "ServiceQuotaExceededException",
107
112
  $fault: "client",
108
113
  ...opts,
109
114
  });
110
- this.name = "ServiceQuotaExceededException";
111
- this.$fault = "client";
112
115
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
113
116
  }
114
117
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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: ControlTowerClientConfig) => {
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-controltower",
3
3
  "description": "AWS SDK for JavaScript Controltower 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-controltower",
@@ -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": {