@aws-sdk/client-amp 3.721.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
@@ -178,7 +178,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
178
178
  }, "resolveRuntimeExtensions");
179
179
 
180
180
  // src/AmpClient.ts
181
- var _AmpClient = class _AmpClient extends import_smithy_client.Client {
181
+ var AmpClient = class extends import_smithy_client.Client {
182
+ static {
183
+ __name(this, "AmpClient");
184
+ }
185
+ /**
186
+ * The resolved configuration of AmpClient class. This is resolved and normalized from the {@link AmpClientConfig | constructor configuration interface}.
187
+ */
188
+ config;
182
189
  constructor(...[configuration]) {
183
190
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
184
191
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -188,7 +195,7 @@ var _AmpClient = class _AmpClient extends import_smithy_client.Client {
188
195
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
189
196
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
190
197
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
191
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
198
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
192
199
  super(_config_8);
193
200
  this.config = _config_8;
194
201
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -216,8 +223,6 @@ var _AmpClient = class _AmpClient extends import_smithy_client.Client {
216
223
  super.destroy();
217
224
  }
218
225
  };
219
- __name(_AmpClient, "AmpClient");
220
- var AmpClient = _AmpClient;
221
226
 
222
227
  // src/Amp.ts
223
228
 
@@ -235,7 +240,10 @@ var import_uuid = require("uuid");
235
240
 
236
241
  // src/models/AmpServiceException.ts
237
242
 
238
- var _AmpServiceException = class _AmpServiceException extends import_smithy_client.ServiceException {
243
+ var AmpServiceException = class _AmpServiceException extends import_smithy_client.ServiceException {
244
+ static {
245
+ __name(this, "AmpServiceException");
246
+ }
239
247
  /**
240
248
  * @internal
241
249
  */
@@ -244,11 +252,14 @@ var _AmpServiceException = class _AmpServiceException extends import_smithy_clie
244
252
  Object.setPrototypeOf(this, _AmpServiceException.prototype);
245
253
  }
246
254
  };
247
- __name(_AmpServiceException, "AmpServiceException");
248
- var AmpServiceException = _AmpServiceException;
249
255
 
250
256
  // src/models/models_0.ts
251
- var _AccessDeniedException = class _AccessDeniedException extends AmpServiceException {
257
+ var AccessDeniedException = class _AccessDeniedException extends AmpServiceException {
258
+ static {
259
+ __name(this, "AccessDeniedException");
260
+ }
261
+ name = "AccessDeniedException";
262
+ $fault = "client";
252
263
  /**
253
264
  * @internal
254
265
  */
@@ -258,14 +269,25 @@ var _AccessDeniedException = class _AccessDeniedException extends AmpServiceExce
258
269
  $fault: "client",
259
270
  ...opts
260
271
  });
261
- this.name = "AccessDeniedException";
262
- this.$fault = "client";
263
272
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
264
273
  }
265
274
  };
266
- __name(_AccessDeniedException, "AccessDeniedException");
267
- var AccessDeniedException = _AccessDeniedException;
268
- var _ConflictException = class _ConflictException extends AmpServiceException {
275
+ var ConflictException = class _ConflictException extends AmpServiceException {
276
+ static {
277
+ __name(this, "ConflictException");
278
+ }
279
+ name = "ConflictException";
280
+ $fault = "client";
281
+ /**
282
+ * <p>Identifier of the resource affected.</p>
283
+ * @public
284
+ */
285
+ resourceId;
286
+ /**
287
+ * <p>Type of the resource affected.</p>
288
+ * @public
289
+ */
290
+ resourceType;
269
291
  /**
270
292
  * @internal
271
293
  */
@@ -275,15 +297,11 @@ var _ConflictException = class _ConflictException extends AmpServiceException {
275
297
  $fault: "client",
276
298
  ...opts
277
299
  });
278
- this.name = "ConflictException";
279
- this.$fault = "client";
280
300
  Object.setPrototypeOf(this, _ConflictException.prototype);
281
301
  this.resourceId = opts.resourceId;
282
302
  this.resourceType = opts.resourceType;
283
303
  }
284
304
  };
285
- __name(_ConflictException, "ConflictException");
286
- var ConflictException = _ConflictException;
287
305
  var AlertManagerDefinitionStatusCode = {
288
306
  /**
289
307
  * Definition has been created/updated. Update/Deletion is disallowed until definition is ACTIVE and workspace status is ACTIVE.
@@ -310,7 +328,18 @@ var AlertManagerDefinitionStatusCode = {
310
328
  */
311
329
  UPDATING: "UPDATING"
312
330
  };
313
- var _InternalServerException = class _InternalServerException extends AmpServiceException {
331
+ var InternalServerException = class _InternalServerException extends AmpServiceException {
332
+ static {
333
+ __name(this, "InternalServerException");
334
+ }
335
+ name = "InternalServerException";
336
+ $fault = "server";
337
+ $retryable = {};
338
+ /**
339
+ * <p>Advice to clients on when the call can be safely retried.</p>
340
+ * @public
341
+ */
342
+ retryAfterSeconds;
314
343
  /**
315
344
  * @internal
316
345
  */
@@ -320,16 +349,26 @@ var _InternalServerException = class _InternalServerException extends AmpService
320
349
  $fault: "server",
321
350
  ...opts
322
351
  });
323
- this.name = "InternalServerException";
324
- this.$fault = "server";
325
- this.$retryable = {};
326
352
  Object.setPrototypeOf(this, _InternalServerException.prototype);
327
353
  this.retryAfterSeconds = opts.retryAfterSeconds;
328
354
  }
329
355
  };
330
- __name(_InternalServerException, "InternalServerException");
331
- var InternalServerException = _InternalServerException;
332
- var _ResourceNotFoundException = class _ResourceNotFoundException extends AmpServiceException {
356
+ var ResourceNotFoundException = class _ResourceNotFoundException extends AmpServiceException {
357
+ static {
358
+ __name(this, "ResourceNotFoundException");
359
+ }
360
+ name = "ResourceNotFoundException";
361
+ $fault = "client";
362
+ /**
363
+ * <p>Identifier of the resource affected.</p>
364
+ * @public
365
+ */
366
+ resourceId;
367
+ /**
368
+ * <p>Type of the resource affected.</p>
369
+ * @public
370
+ */
371
+ resourceType;
333
372
  /**
334
373
  * @internal
335
374
  */
@@ -339,16 +378,37 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends AmpSer
339
378
  $fault: "client",
340
379
  ...opts
341
380
  });
342
- this.name = "ResourceNotFoundException";
343
- this.$fault = "client";
344
381
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
345
382
  this.resourceId = opts.resourceId;
346
383
  this.resourceType = opts.resourceType;
347
384
  }
348
385
  };
349
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
350
- var ResourceNotFoundException = _ResourceNotFoundException;
351
- var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AmpServiceException {
386
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AmpServiceException {
387
+ static {
388
+ __name(this, "ServiceQuotaExceededException");
389
+ }
390
+ name = "ServiceQuotaExceededException";
391
+ $fault = "client";
392
+ /**
393
+ * <p>Identifier of the resource affected.</p>
394
+ * @public
395
+ */
396
+ resourceId;
397
+ /**
398
+ * <p>Type of the resource affected.</p>
399
+ * @public
400
+ */
401
+ resourceType;
402
+ /**
403
+ * <p>Service quotas code for the originating service.</p>
404
+ * @public
405
+ */
406
+ serviceCode;
407
+ /**
408
+ * <p>Service quotas code of the originating quota.</p>
409
+ * @public
410
+ */
411
+ quotaCode;
352
412
  /**
353
413
  * @internal
354
414
  */
@@ -358,8 +418,6 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
358
418
  $fault: "client",
359
419
  ...opts
360
420
  });
361
- this.name = "ServiceQuotaExceededException";
362
- this.$fault = "client";
363
421
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
364
422
  this.resourceId = opts.resourceId;
365
423
  this.resourceType = opts.resourceType;
@@ -367,9 +425,28 @@ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extend
367
425
  this.quotaCode = opts.quotaCode;
368
426
  }
369
427
  };
370
- __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
371
- var ServiceQuotaExceededException = _ServiceQuotaExceededException;
372
- var _ThrottlingException = class _ThrottlingException extends AmpServiceException {
428
+ var ThrottlingException = class _ThrottlingException extends AmpServiceException {
429
+ static {
430
+ __name(this, "ThrottlingException");
431
+ }
432
+ name = "ThrottlingException";
433
+ $fault = "client";
434
+ $retryable = {};
435
+ /**
436
+ * <p>Service quotas code for the originating service.</p>
437
+ * @public
438
+ */
439
+ serviceCode;
440
+ /**
441
+ * <p>Service quotas code for the originating quota.</p>
442
+ * @public
443
+ */
444
+ quotaCode;
445
+ /**
446
+ * <p>Advice to clients on when the call can be safely retried.</p>
447
+ * @public
448
+ */
449
+ retryAfterSeconds;
373
450
  /**
374
451
  * @internal
375
452
  */
@@ -379,24 +456,34 @@ var _ThrottlingException = class _ThrottlingException extends AmpServiceExceptio
379
456
  $fault: "client",
380
457
  ...opts
381
458
  });
382
- this.name = "ThrottlingException";
383
- this.$fault = "client";
384
- this.$retryable = {};
385
459
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
386
460
  this.serviceCode = opts.serviceCode;
387
461
  this.quotaCode = opts.quotaCode;
388
462
  this.retryAfterSeconds = opts.retryAfterSeconds;
389
463
  }
390
464
  };
391
- __name(_ThrottlingException, "ThrottlingException");
392
- var ThrottlingException = _ThrottlingException;
393
465
  var ValidationExceptionReason = {
394
466
  CANNOT_PARSE: "CANNOT_PARSE",
395
467
  FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
396
468
  OTHER: "OTHER",
397
469
  UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
398
470
  };
399
- var _ValidationException = class _ValidationException extends AmpServiceException {
471
+ var ValidationException = class _ValidationException extends AmpServiceException {
472
+ static {
473
+ __name(this, "ValidationException");
474
+ }
475
+ name = "ValidationException";
476
+ $fault = "client";
477
+ /**
478
+ * <p>Reason the request failed validation.</p>
479
+ * @public
480
+ */
481
+ reason;
482
+ /**
483
+ * <p>The field that caused the error, if applicable.</p>
484
+ * @public
485
+ */
486
+ fieldList;
400
487
  /**
401
488
  * @internal
402
489
  */
@@ -406,15 +493,11 @@ var _ValidationException = class _ValidationException extends AmpServiceExceptio
406
493
  $fault: "client",
407
494
  ...opts
408
495
  });
409
- this.name = "ValidationException";
410
- this.$fault = "client";
411
496
  Object.setPrototypeOf(this, _ValidationException.prototype);
412
497
  this.reason = opts.reason;
413
498
  this.fieldList = opts.fieldList;
414
499
  }
415
500
  };
416
- __name(_ValidationException, "ValidationException");
417
- var ValidationException = _ValidationException;
418
501
  var Destination;
419
502
  ((Destination3) => {
420
503
  Destination3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1571,379 +1654,406 @@ var _ra = "retry-after";
1571
1654
  var _tK = "tagKeys";
1572
1655
 
1573
1656
  // src/commands/CreateAlertManagerDefinitionCommand.ts
1574
- var _CreateAlertManagerDefinitionCommand = class _CreateAlertManagerDefinitionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1657
+ var CreateAlertManagerDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1575
1658
  return [
1576
1659
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1577
1660
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1578
1661
  ];
1579
1662
  }).s("AmazonPrometheusService", "CreateAlertManagerDefinition", {}).n("AmpClient", "CreateAlertManagerDefinitionCommand").f(void 0, void 0).ser(se_CreateAlertManagerDefinitionCommand).de(de_CreateAlertManagerDefinitionCommand).build() {
1663
+ static {
1664
+ __name(this, "CreateAlertManagerDefinitionCommand");
1665
+ }
1580
1666
  };
1581
- __name(_CreateAlertManagerDefinitionCommand, "CreateAlertManagerDefinitionCommand");
1582
- var CreateAlertManagerDefinitionCommand = _CreateAlertManagerDefinitionCommand;
1583
1667
 
1584
1668
  // src/commands/CreateLoggingConfigurationCommand.ts
1585
1669
 
1586
1670
 
1587
1671
 
1588
- var _CreateLoggingConfigurationCommand = class _CreateLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1672
+ var CreateLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1589
1673
  return [
1590
1674
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1591
1675
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1592
1676
  ];
1593
1677
  }).s("AmazonPrometheusService", "CreateLoggingConfiguration", {}).n("AmpClient", "CreateLoggingConfigurationCommand").f(void 0, void 0).ser(se_CreateLoggingConfigurationCommand).de(de_CreateLoggingConfigurationCommand).build() {
1678
+ static {
1679
+ __name(this, "CreateLoggingConfigurationCommand");
1680
+ }
1594
1681
  };
1595
- __name(_CreateLoggingConfigurationCommand, "CreateLoggingConfigurationCommand");
1596
- var CreateLoggingConfigurationCommand = _CreateLoggingConfigurationCommand;
1597
1682
 
1598
1683
  // src/commands/CreateRuleGroupsNamespaceCommand.ts
1599
1684
 
1600
1685
 
1601
1686
 
1602
- var _CreateRuleGroupsNamespaceCommand = class _CreateRuleGroupsNamespaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1687
+ var CreateRuleGroupsNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1603
1688
  return [
1604
1689
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1605
1690
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1606
1691
  ];
1607
1692
  }).s("AmazonPrometheusService", "CreateRuleGroupsNamespace", {}).n("AmpClient", "CreateRuleGroupsNamespaceCommand").f(void 0, void 0).ser(se_CreateRuleGroupsNamespaceCommand).de(de_CreateRuleGroupsNamespaceCommand).build() {
1693
+ static {
1694
+ __name(this, "CreateRuleGroupsNamespaceCommand");
1695
+ }
1608
1696
  };
1609
- __name(_CreateRuleGroupsNamespaceCommand, "CreateRuleGroupsNamespaceCommand");
1610
- var CreateRuleGroupsNamespaceCommand = _CreateRuleGroupsNamespaceCommand;
1611
1697
 
1612
1698
  // src/commands/CreateScraperCommand.ts
1613
1699
 
1614
1700
 
1615
1701
 
1616
- var _CreateScraperCommand = class _CreateScraperCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1702
+ var CreateScraperCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1617
1703
  return [
1618
1704
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1619
1705
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1620
1706
  ];
1621
1707
  }).s("AmazonPrometheusService", "CreateScraper", {}).n("AmpClient", "CreateScraperCommand").f(void 0, void 0).ser(se_CreateScraperCommand).de(de_CreateScraperCommand).build() {
1708
+ static {
1709
+ __name(this, "CreateScraperCommand");
1710
+ }
1622
1711
  };
1623
- __name(_CreateScraperCommand, "CreateScraperCommand");
1624
- var CreateScraperCommand = _CreateScraperCommand;
1625
1712
 
1626
1713
  // src/commands/CreateWorkspaceCommand.ts
1627
1714
 
1628
1715
 
1629
1716
 
1630
- var _CreateWorkspaceCommand = class _CreateWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1717
+ var CreateWorkspaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1631
1718
  return [
1632
1719
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1633
1720
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1634
1721
  ];
1635
1722
  }).s("AmazonPrometheusService", "CreateWorkspace", {}).n("AmpClient", "CreateWorkspaceCommand").f(void 0, void 0).ser(se_CreateWorkspaceCommand).de(de_CreateWorkspaceCommand).build() {
1723
+ static {
1724
+ __name(this, "CreateWorkspaceCommand");
1725
+ }
1636
1726
  };
1637
- __name(_CreateWorkspaceCommand, "CreateWorkspaceCommand");
1638
- var CreateWorkspaceCommand = _CreateWorkspaceCommand;
1639
1727
 
1640
1728
  // src/commands/DeleteAlertManagerDefinitionCommand.ts
1641
1729
 
1642
1730
 
1643
1731
 
1644
- var _DeleteAlertManagerDefinitionCommand = class _DeleteAlertManagerDefinitionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1732
+ var DeleteAlertManagerDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1645
1733
  return [
1646
1734
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1647
1735
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1648
1736
  ];
1649
1737
  }).s("AmazonPrometheusService", "DeleteAlertManagerDefinition", {}).n("AmpClient", "DeleteAlertManagerDefinitionCommand").f(void 0, void 0).ser(se_DeleteAlertManagerDefinitionCommand).de(de_DeleteAlertManagerDefinitionCommand).build() {
1738
+ static {
1739
+ __name(this, "DeleteAlertManagerDefinitionCommand");
1740
+ }
1650
1741
  };
1651
- __name(_DeleteAlertManagerDefinitionCommand, "DeleteAlertManagerDefinitionCommand");
1652
- var DeleteAlertManagerDefinitionCommand = _DeleteAlertManagerDefinitionCommand;
1653
1742
 
1654
1743
  // src/commands/DeleteLoggingConfigurationCommand.ts
1655
1744
 
1656
1745
 
1657
1746
 
1658
- var _DeleteLoggingConfigurationCommand = class _DeleteLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1747
+ var DeleteLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1659
1748
  return [
1660
1749
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1661
1750
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1662
1751
  ];
1663
1752
  }).s("AmazonPrometheusService", "DeleteLoggingConfiguration", {}).n("AmpClient", "DeleteLoggingConfigurationCommand").f(void 0, void 0).ser(se_DeleteLoggingConfigurationCommand).de(de_DeleteLoggingConfigurationCommand).build() {
1753
+ static {
1754
+ __name(this, "DeleteLoggingConfigurationCommand");
1755
+ }
1664
1756
  };
1665
- __name(_DeleteLoggingConfigurationCommand, "DeleteLoggingConfigurationCommand");
1666
- var DeleteLoggingConfigurationCommand = _DeleteLoggingConfigurationCommand;
1667
1757
 
1668
1758
  // src/commands/DeleteRuleGroupsNamespaceCommand.ts
1669
1759
 
1670
1760
 
1671
1761
 
1672
- var _DeleteRuleGroupsNamespaceCommand = class _DeleteRuleGroupsNamespaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1762
+ var DeleteRuleGroupsNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1673
1763
  return [
1674
1764
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1675
1765
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1676
1766
  ];
1677
1767
  }).s("AmazonPrometheusService", "DeleteRuleGroupsNamespace", {}).n("AmpClient", "DeleteRuleGroupsNamespaceCommand").f(void 0, void 0).ser(se_DeleteRuleGroupsNamespaceCommand).de(de_DeleteRuleGroupsNamespaceCommand).build() {
1768
+ static {
1769
+ __name(this, "DeleteRuleGroupsNamespaceCommand");
1770
+ }
1678
1771
  };
1679
- __name(_DeleteRuleGroupsNamespaceCommand, "DeleteRuleGroupsNamespaceCommand");
1680
- var DeleteRuleGroupsNamespaceCommand = _DeleteRuleGroupsNamespaceCommand;
1681
1772
 
1682
1773
  // src/commands/DeleteScraperCommand.ts
1683
1774
 
1684
1775
 
1685
1776
 
1686
- var _DeleteScraperCommand = class _DeleteScraperCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1777
+ var DeleteScraperCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1687
1778
  return [
1688
1779
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1689
1780
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1690
1781
  ];
1691
1782
  }).s("AmazonPrometheusService", "DeleteScraper", {}).n("AmpClient", "DeleteScraperCommand").f(void 0, void 0).ser(se_DeleteScraperCommand).de(de_DeleteScraperCommand).build() {
1783
+ static {
1784
+ __name(this, "DeleteScraperCommand");
1785
+ }
1692
1786
  };
1693
- __name(_DeleteScraperCommand, "DeleteScraperCommand");
1694
- var DeleteScraperCommand = _DeleteScraperCommand;
1695
1787
 
1696
1788
  // src/commands/DeleteWorkspaceCommand.ts
1697
1789
 
1698
1790
 
1699
1791
 
1700
- var _DeleteWorkspaceCommand = class _DeleteWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1792
+ var DeleteWorkspaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1701
1793
  return [
1702
1794
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1703
1795
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1704
1796
  ];
1705
1797
  }).s("AmazonPrometheusService", "DeleteWorkspace", {}).n("AmpClient", "DeleteWorkspaceCommand").f(void 0, void 0).ser(se_DeleteWorkspaceCommand).de(de_DeleteWorkspaceCommand).build() {
1798
+ static {
1799
+ __name(this, "DeleteWorkspaceCommand");
1800
+ }
1706
1801
  };
1707
- __name(_DeleteWorkspaceCommand, "DeleteWorkspaceCommand");
1708
- var DeleteWorkspaceCommand = _DeleteWorkspaceCommand;
1709
1802
 
1710
1803
  // src/commands/DescribeAlertManagerDefinitionCommand.ts
1711
1804
 
1712
1805
 
1713
1806
 
1714
- var _DescribeAlertManagerDefinitionCommand = class _DescribeAlertManagerDefinitionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1807
+ var DescribeAlertManagerDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1715
1808
  return [
1716
1809
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1717
1810
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1718
1811
  ];
1719
1812
  }).s("AmazonPrometheusService", "DescribeAlertManagerDefinition", {}).n("AmpClient", "DescribeAlertManagerDefinitionCommand").f(void 0, void 0).ser(se_DescribeAlertManagerDefinitionCommand).de(de_DescribeAlertManagerDefinitionCommand).build() {
1813
+ static {
1814
+ __name(this, "DescribeAlertManagerDefinitionCommand");
1815
+ }
1720
1816
  };
1721
- __name(_DescribeAlertManagerDefinitionCommand, "DescribeAlertManagerDefinitionCommand");
1722
- var DescribeAlertManagerDefinitionCommand = _DescribeAlertManagerDefinitionCommand;
1723
1817
 
1724
1818
  // src/commands/DescribeLoggingConfigurationCommand.ts
1725
1819
 
1726
1820
 
1727
1821
 
1728
- var _DescribeLoggingConfigurationCommand = class _DescribeLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1822
+ var DescribeLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1729
1823
  return [
1730
1824
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1731
1825
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1732
1826
  ];
1733
1827
  }).s("AmazonPrometheusService", "DescribeLoggingConfiguration", {}).n("AmpClient", "DescribeLoggingConfigurationCommand").f(void 0, void 0).ser(se_DescribeLoggingConfigurationCommand).de(de_DescribeLoggingConfigurationCommand).build() {
1828
+ static {
1829
+ __name(this, "DescribeLoggingConfigurationCommand");
1830
+ }
1734
1831
  };
1735
- __name(_DescribeLoggingConfigurationCommand, "DescribeLoggingConfigurationCommand");
1736
- var DescribeLoggingConfigurationCommand = _DescribeLoggingConfigurationCommand;
1737
1832
 
1738
1833
  // src/commands/DescribeRuleGroupsNamespaceCommand.ts
1739
1834
 
1740
1835
 
1741
1836
 
1742
- var _DescribeRuleGroupsNamespaceCommand = class _DescribeRuleGroupsNamespaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1837
+ var DescribeRuleGroupsNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1743
1838
  return [
1744
1839
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1745
1840
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1746
1841
  ];
1747
1842
  }).s("AmazonPrometheusService", "DescribeRuleGroupsNamespace", {}).n("AmpClient", "DescribeRuleGroupsNamespaceCommand").f(void 0, void 0).ser(se_DescribeRuleGroupsNamespaceCommand).de(de_DescribeRuleGroupsNamespaceCommand).build() {
1843
+ static {
1844
+ __name(this, "DescribeRuleGroupsNamespaceCommand");
1845
+ }
1748
1846
  };
1749
- __name(_DescribeRuleGroupsNamespaceCommand, "DescribeRuleGroupsNamespaceCommand");
1750
- var DescribeRuleGroupsNamespaceCommand = _DescribeRuleGroupsNamespaceCommand;
1751
1847
 
1752
1848
  // src/commands/DescribeScraperCommand.ts
1753
1849
 
1754
1850
 
1755
1851
 
1756
- var _DescribeScraperCommand = class _DescribeScraperCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1852
+ var DescribeScraperCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1757
1853
  return [
1758
1854
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1759
1855
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1760
1856
  ];
1761
1857
  }).s("AmazonPrometheusService", "DescribeScraper", {}).n("AmpClient", "DescribeScraperCommand").f(void 0, void 0).ser(se_DescribeScraperCommand).de(de_DescribeScraperCommand).build() {
1858
+ static {
1859
+ __name(this, "DescribeScraperCommand");
1860
+ }
1762
1861
  };
1763
- __name(_DescribeScraperCommand, "DescribeScraperCommand");
1764
- var DescribeScraperCommand = _DescribeScraperCommand;
1765
1862
 
1766
1863
  // src/commands/DescribeWorkspaceCommand.ts
1767
1864
 
1768
1865
 
1769
1866
 
1770
- var _DescribeWorkspaceCommand = class _DescribeWorkspaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1867
+ var DescribeWorkspaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1771
1868
  return [
1772
1869
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1773
1870
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1774
1871
  ];
1775
1872
  }).s("AmazonPrometheusService", "DescribeWorkspace", {}).n("AmpClient", "DescribeWorkspaceCommand").f(void 0, void 0).ser(se_DescribeWorkspaceCommand).de(de_DescribeWorkspaceCommand).build() {
1873
+ static {
1874
+ __name(this, "DescribeWorkspaceCommand");
1875
+ }
1776
1876
  };
1777
- __name(_DescribeWorkspaceCommand, "DescribeWorkspaceCommand");
1778
- var DescribeWorkspaceCommand = _DescribeWorkspaceCommand;
1779
1877
 
1780
1878
  // src/commands/GetDefaultScraperConfigurationCommand.ts
1781
1879
 
1782
1880
 
1783
1881
 
1784
- var _GetDefaultScraperConfigurationCommand = class _GetDefaultScraperConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1882
+ var GetDefaultScraperConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1785
1883
  return [
1786
1884
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1787
1885
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1788
1886
  ];
1789
1887
  }).s("AmazonPrometheusService", "GetDefaultScraperConfiguration", {}).n("AmpClient", "GetDefaultScraperConfigurationCommand").f(void 0, void 0).ser(se_GetDefaultScraperConfigurationCommand).de(de_GetDefaultScraperConfigurationCommand).build() {
1888
+ static {
1889
+ __name(this, "GetDefaultScraperConfigurationCommand");
1890
+ }
1790
1891
  };
1791
- __name(_GetDefaultScraperConfigurationCommand, "GetDefaultScraperConfigurationCommand");
1792
- var GetDefaultScraperConfigurationCommand = _GetDefaultScraperConfigurationCommand;
1793
1892
 
1794
1893
  // src/commands/ListRuleGroupsNamespacesCommand.ts
1795
1894
 
1796
1895
 
1797
1896
 
1798
- var _ListRuleGroupsNamespacesCommand = class _ListRuleGroupsNamespacesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1897
+ var ListRuleGroupsNamespacesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1799
1898
  return [
1800
1899
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1801
1900
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1802
1901
  ];
1803
1902
  }).s("AmazonPrometheusService", "ListRuleGroupsNamespaces", {}).n("AmpClient", "ListRuleGroupsNamespacesCommand").f(void 0, void 0).ser(se_ListRuleGroupsNamespacesCommand).de(de_ListRuleGroupsNamespacesCommand).build() {
1903
+ static {
1904
+ __name(this, "ListRuleGroupsNamespacesCommand");
1905
+ }
1804
1906
  };
1805
- __name(_ListRuleGroupsNamespacesCommand, "ListRuleGroupsNamespacesCommand");
1806
- var ListRuleGroupsNamespacesCommand = _ListRuleGroupsNamespacesCommand;
1807
1907
 
1808
1908
  // src/commands/ListScrapersCommand.ts
1809
1909
 
1810
1910
 
1811
1911
 
1812
- var _ListScrapersCommand = class _ListScrapersCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1912
+ var ListScrapersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1813
1913
  return [
1814
1914
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1815
1915
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1816
1916
  ];
1817
1917
  }).s("AmazonPrometheusService", "ListScrapers", {}).n("AmpClient", "ListScrapersCommand").f(void 0, void 0).ser(se_ListScrapersCommand).de(de_ListScrapersCommand).build() {
1918
+ static {
1919
+ __name(this, "ListScrapersCommand");
1920
+ }
1818
1921
  };
1819
- __name(_ListScrapersCommand, "ListScrapersCommand");
1820
- var ListScrapersCommand = _ListScrapersCommand;
1821
1922
 
1822
1923
  // src/commands/ListTagsForResourceCommand.ts
1823
1924
 
1824
1925
 
1825
1926
 
1826
- var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1927
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1827
1928
  return [
1828
1929
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1829
1930
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1830
1931
  ];
1831
1932
  }).s("AmazonPrometheusService", "ListTagsForResource", {}).n("AmpClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1933
+ static {
1934
+ __name(this, "ListTagsForResourceCommand");
1935
+ }
1832
1936
  };
1833
- __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
1834
- var ListTagsForResourceCommand = _ListTagsForResourceCommand;
1835
1937
 
1836
1938
  // src/commands/ListWorkspacesCommand.ts
1837
1939
 
1838
1940
 
1839
1941
 
1840
- var _ListWorkspacesCommand = class _ListWorkspacesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1942
+ var ListWorkspacesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1841
1943
  return [
1842
1944
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1843
1945
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1844
1946
  ];
1845
1947
  }).s("AmazonPrometheusService", "ListWorkspaces", {}).n("AmpClient", "ListWorkspacesCommand").f(void 0, void 0).ser(se_ListWorkspacesCommand).de(de_ListWorkspacesCommand).build() {
1948
+ static {
1949
+ __name(this, "ListWorkspacesCommand");
1950
+ }
1846
1951
  };
1847
- __name(_ListWorkspacesCommand, "ListWorkspacesCommand");
1848
- var ListWorkspacesCommand = _ListWorkspacesCommand;
1849
1952
 
1850
1953
  // src/commands/PutAlertManagerDefinitionCommand.ts
1851
1954
 
1852
1955
 
1853
1956
 
1854
- var _PutAlertManagerDefinitionCommand = class _PutAlertManagerDefinitionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1957
+ var PutAlertManagerDefinitionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1855
1958
  return [
1856
1959
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1857
1960
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1858
1961
  ];
1859
1962
  }).s("AmazonPrometheusService", "PutAlertManagerDefinition", {}).n("AmpClient", "PutAlertManagerDefinitionCommand").f(void 0, void 0).ser(se_PutAlertManagerDefinitionCommand).de(de_PutAlertManagerDefinitionCommand).build() {
1963
+ static {
1964
+ __name(this, "PutAlertManagerDefinitionCommand");
1965
+ }
1860
1966
  };
1861
- __name(_PutAlertManagerDefinitionCommand, "PutAlertManagerDefinitionCommand");
1862
- var PutAlertManagerDefinitionCommand = _PutAlertManagerDefinitionCommand;
1863
1967
 
1864
1968
  // src/commands/PutRuleGroupsNamespaceCommand.ts
1865
1969
 
1866
1970
 
1867
1971
 
1868
- var _PutRuleGroupsNamespaceCommand = class _PutRuleGroupsNamespaceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1972
+ var PutRuleGroupsNamespaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1869
1973
  return [
1870
1974
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1871
1975
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1872
1976
  ];
1873
1977
  }).s("AmazonPrometheusService", "PutRuleGroupsNamespace", {}).n("AmpClient", "PutRuleGroupsNamespaceCommand").f(void 0, void 0).ser(se_PutRuleGroupsNamespaceCommand).de(de_PutRuleGroupsNamespaceCommand).build() {
1978
+ static {
1979
+ __name(this, "PutRuleGroupsNamespaceCommand");
1980
+ }
1874
1981
  };
1875
- __name(_PutRuleGroupsNamespaceCommand, "PutRuleGroupsNamespaceCommand");
1876
- var PutRuleGroupsNamespaceCommand = _PutRuleGroupsNamespaceCommand;
1877
1982
 
1878
1983
  // src/commands/TagResourceCommand.ts
1879
1984
 
1880
1985
 
1881
1986
 
1882
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1987
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1883
1988
  return [
1884
1989
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1885
1990
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1886
1991
  ];
1887
1992
  }).s("AmazonPrometheusService", "TagResource", {}).n("AmpClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1993
+ static {
1994
+ __name(this, "TagResourceCommand");
1995
+ }
1888
1996
  };
1889
- __name(_TagResourceCommand, "TagResourceCommand");
1890
- var TagResourceCommand = _TagResourceCommand;
1891
1997
 
1892
1998
  // src/commands/UntagResourceCommand.ts
1893
1999
 
1894
2000
 
1895
2001
 
1896
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2002
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1897
2003
  return [
1898
2004
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1899
2005
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1900
2006
  ];
1901
2007
  }).s("AmazonPrometheusService", "UntagResource", {}).n("AmpClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2008
+ static {
2009
+ __name(this, "UntagResourceCommand");
2010
+ }
1902
2011
  };
1903
- __name(_UntagResourceCommand, "UntagResourceCommand");
1904
- var UntagResourceCommand = _UntagResourceCommand;
1905
2012
 
1906
2013
  // src/commands/UpdateLoggingConfigurationCommand.ts
1907
2014
 
1908
2015
 
1909
2016
 
1910
- var _UpdateLoggingConfigurationCommand = class _UpdateLoggingConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2017
+ var UpdateLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1911
2018
  return [
1912
2019
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1913
2020
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1914
2021
  ];
1915
2022
  }).s("AmazonPrometheusService", "UpdateLoggingConfiguration", {}).n("AmpClient", "UpdateLoggingConfigurationCommand").f(void 0, void 0).ser(se_UpdateLoggingConfigurationCommand).de(de_UpdateLoggingConfigurationCommand).build() {
2023
+ static {
2024
+ __name(this, "UpdateLoggingConfigurationCommand");
2025
+ }
1916
2026
  };
1917
- __name(_UpdateLoggingConfigurationCommand, "UpdateLoggingConfigurationCommand");
1918
- var UpdateLoggingConfigurationCommand = _UpdateLoggingConfigurationCommand;
1919
2027
 
1920
2028
  // src/commands/UpdateScraperCommand.ts
1921
2029
 
1922
2030
 
1923
2031
 
1924
- var _UpdateScraperCommand = class _UpdateScraperCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2032
+ var UpdateScraperCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1925
2033
  return [
1926
2034
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1927
2035
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1928
2036
  ];
1929
2037
  }).s("AmazonPrometheusService", "UpdateScraper", {}).n("AmpClient", "UpdateScraperCommand").f(void 0, void 0).ser(se_UpdateScraperCommand).de(de_UpdateScraperCommand).build() {
2038
+ static {
2039
+ __name(this, "UpdateScraperCommand");
2040
+ }
1930
2041
  };
1931
- __name(_UpdateScraperCommand, "UpdateScraperCommand");
1932
- var UpdateScraperCommand = _UpdateScraperCommand;
1933
2042
 
1934
2043
  // src/commands/UpdateWorkspaceAliasCommand.ts
1935
2044
 
1936
2045
 
1937
2046
 
1938
- var _UpdateWorkspaceAliasCommand = class _UpdateWorkspaceAliasCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2047
+ var UpdateWorkspaceAliasCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1939
2048
  return [
1940
2049
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1941
2050
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1942
2051
  ];
1943
2052
  }).s("AmazonPrometheusService", "UpdateWorkspaceAlias", {}).n("AmpClient", "UpdateWorkspaceAliasCommand").f(void 0, void 0).ser(se_UpdateWorkspaceAliasCommand).de(de_UpdateWorkspaceAliasCommand).build() {
2053
+ static {
2054
+ __name(this, "UpdateWorkspaceAliasCommand");
2055
+ }
1944
2056
  };
1945
- __name(_UpdateWorkspaceAliasCommand, "UpdateWorkspaceAliasCommand");
1946
- var UpdateWorkspaceAliasCommand = _UpdateWorkspaceAliasCommand;
1947
2057
 
1948
2058
  // src/Amp.ts
1949
2059
  var commands = {
@@ -1975,10 +2085,11 @@ var commands = {
1975
2085
  UpdateScraperCommand,
1976
2086
  UpdateWorkspaceAliasCommand
1977
2087
  };
1978
- var _Amp = class _Amp extends AmpClient {
2088
+ var Amp = class extends AmpClient {
2089
+ static {
2090
+ __name(this, "Amp");
2091
+ }
1979
2092
  };
1980
- __name(_Amp, "Amp");
1981
- var Amp = _Amp;
1982
2093
  (0, import_smithy_client.createAggregatedClient)(commands, Amp);
1983
2094
 
1984
2095
  // src/pagination/ListRuleGroupsNamespacesPaginator.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 AmpClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,25 +1,27 @@
1
1
  import { AmpServiceException as __BaseException } from "./AmpServiceException";
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
  }
14
14
  export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
15
19
  constructor(opts) {
16
20
  super({
17
21
  name: "ConflictException",
18
22
  $fault: "client",
19
23
  ...opts,
20
24
  });
21
- this.name = "ConflictException";
22
- this.$fault = "client";
23
25
  Object.setPrototypeOf(this, ConflictException.prototype);
24
26
  this.resourceId = opts.resourceId;
25
27
  this.resourceType = opts.resourceType;
@@ -34,42 +36,49 @@ export const AlertManagerDefinitionStatusCode = {
34
36
  UPDATING: "UPDATING",
35
37
  };
36
38
  export class InternalServerException extends __BaseException {
39
+ name = "InternalServerException";
40
+ $fault = "server";
41
+ $retryable = {};
42
+ retryAfterSeconds;
37
43
  constructor(opts) {
38
44
  super({
39
45
  name: "InternalServerException",
40
46
  $fault: "server",
41
47
  ...opts,
42
48
  });
43
- this.name = "InternalServerException";
44
- this.$fault = "server";
45
- this.$retryable = {};
46
49
  Object.setPrototypeOf(this, InternalServerException.prototype);
47
50
  this.retryAfterSeconds = opts.retryAfterSeconds;
48
51
  }
49
52
  }
50
53
  export class ResourceNotFoundException extends __BaseException {
54
+ name = "ResourceNotFoundException";
55
+ $fault = "client";
56
+ resourceId;
57
+ resourceType;
51
58
  constructor(opts) {
52
59
  super({
53
60
  name: "ResourceNotFoundException",
54
61
  $fault: "client",
55
62
  ...opts,
56
63
  });
57
- this.name = "ResourceNotFoundException";
58
- this.$fault = "client";
59
64
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
65
  this.resourceId = opts.resourceId;
61
66
  this.resourceType = opts.resourceType;
62
67
  }
63
68
  }
64
69
  export class ServiceQuotaExceededException extends __BaseException {
70
+ name = "ServiceQuotaExceededException";
71
+ $fault = "client";
72
+ resourceId;
73
+ resourceType;
74
+ serviceCode;
75
+ quotaCode;
65
76
  constructor(opts) {
66
77
  super({
67
78
  name: "ServiceQuotaExceededException",
68
79
  $fault: "client",
69
80
  ...opts,
70
81
  });
71
- this.name = "ServiceQuotaExceededException";
72
- this.$fault = "client";
73
82
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
74
83
  this.resourceId = opts.resourceId;
75
84
  this.resourceType = opts.resourceType;
@@ -78,15 +87,18 @@ export class ServiceQuotaExceededException extends __BaseException {
78
87
  }
79
88
  }
80
89
  export class ThrottlingException extends __BaseException {
90
+ name = "ThrottlingException";
91
+ $fault = "client";
92
+ $retryable = {};
93
+ serviceCode;
94
+ quotaCode;
95
+ retryAfterSeconds;
81
96
  constructor(opts) {
82
97
  super({
83
98
  name: "ThrottlingException",
84
99
  $fault: "client",
85
100
  ...opts,
86
101
  });
87
- this.name = "ThrottlingException";
88
- this.$fault = "client";
89
- this.$retryable = {};
90
102
  Object.setPrototypeOf(this, ThrottlingException.prototype);
91
103
  this.serviceCode = opts.serviceCode;
92
104
  this.quotaCode = opts.quotaCode;
@@ -100,14 +112,16 @@ export const ValidationExceptionReason = {
100
112
  UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
101
113
  };
102
114
  export class ValidationException extends __BaseException {
115
+ name = "ValidationException";
116
+ $fault = "client";
117
+ reason;
118
+ fieldList;
103
119
  constructor(opts) {
104
120
  super({
105
121
  name: "ValidationException",
106
122
  $fault: "client",
107
123
  ...opts,
108
124
  });
109
- this.name = "ValidationException";
110
- this.$fault = "client";
111
125
  Object.setPrototypeOf(this, ValidationException.prototype);
112
126
  this.reason = opts.reason;
113
127
  this.fieldList = opts.fieldList;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
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: AmpClientConfig) => {
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: AmpClientConfig) => {
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: AmpClientConfig) => {
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: AmpClientConfig) => {
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: AmpClientConfig) => {
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: AmpClientConfig) => {
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: AmpClientConfig) => {
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-amp",
3
3
  "description": "AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native",
4
- "version": "3.721.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-amp",
@@ -20,59 +20,59 @@
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.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.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.721.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.721.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",
61
- "@smithy/util-waiter": "^3.2.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
+ "@smithy/util-waiter": "^4.0.0",
62
62
  "@types/uuid": "^9.0.1",
63
63
  "tslib": "^2.6.2",
64
64
  "uuid": "^9.0.1"
65
65
  },
66
66
  "devDependencies": {
67
- "@tsconfig/node16": "16.1.3",
68
- "@types/node": "^16.18.96",
67
+ "@tsconfig/node18": "18.2.4",
68
+ "@types/node": "^18.19.69",
69
69
  "concurrently": "7.0.0",
70
70
  "downlevel-dts": "0.10.1",
71
71
  "rimraf": "3.0.2",
72
- "typescript": "~4.9.5"
72
+ "typescript": "~5.2.2"
73
73
  },
74
74
  "engines": {
75
- "node": ">=16.0.0"
75
+ "node": ">=18.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {