@aws-sdk/client-amp 3.928.0 → 3.930.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist-cjs/index.js +1780 -1955
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/AmpClient.js +2 -0
  4. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +3 -9
  5. package/dist-es/commands/CreateAnomalyDetectorCommand.js +3 -9
  6. package/dist-es/commands/CreateLoggingConfigurationCommand.js +3 -9
  7. package/dist-es/commands/CreateQueryLoggingConfigurationCommand.js +3 -9
  8. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +3 -9
  9. package/dist-es/commands/CreateScraperCommand.js +3 -9
  10. package/dist-es/commands/CreateWorkspaceCommand.js +3 -9
  11. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +3 -9
  12. package/dist-es/commands/DeleteAnomalyDetectorCommand.js +3 -9
  13. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +3 -9
  14. package/dist-es/commands/DeleteQueryLoggingConfigurationCommand.js +3 -9
  15. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  16. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +3 -9
  17. package/dist-es/commands/DeleteScraperCommand.js +3 -9
  18. package/dist-es/commands/DeleteScraperLoggingConfigurationCommand.js +3 -9
  19. package/dist-es/commands/DeleteWorkspaceCommand.js +3 -9
  20. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +3 -9
  21. package/dist-es/commands/DescribeAnomalyDetectorCommand.js +3 -9
  22. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +3 -9
  23. package/dist-es/commands/DescribeQueryLoggingConfigurationCommand.js +3 -9
  24. package/dist-es/commands/DescribeResourcePolicyCommand.js +3 -9
  25. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +3 -9
  26. package/dist-es/commands/DescribeScraperCommand.js +3 -9
  27. package/dist-es/commands/DescribeScraperLoggingConfigurationCommand.js +3 -9
  28. package/dist-es/commands/DescribeWorkspaceCommand.js +3 -9
  29. package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +3 -9
  30. package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +3 -9
  31. package/dist-es/commands/ListAnomalyDetectorsCommand.js +3 -9
  32. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +3 -9
  33. package/dist-es/commands/ListScrapersCommand.js +3 -9
  34. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  35. package/dist-es/commands/ListWorkspacesCommand.js +3 -9
  36. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +3 -9
  37. package/dist-es/commands/PutAnomalyDetectorCommand.js +3 -9
  38. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  39. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +3 -9
  40. package/dist-es/commands/TagResourceCommand.js +3 -9
  41. package/dist-es/commands/UntagResourceCommand.js +3 -9
  42. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +3 -9
  43. package/dist-es/commands/UpdateQueryLoggingConfigurationCommand.js +3 -9
  44. package/dist-es/commands/UpdateScraperCommand.js +3 -9
  45. package/dist-es/commands/UpdateScraperLoggingConfigurationCommand.js +3 -9
  46. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +3 -9
  47. package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +3 -9
  48. package/dist-es/models/models_0.js +0 -60
  49. package/dist-es/runtimeConfig.shared.js +2 -0
  50. package/dist-es/schemas/schemas_0.js +1684 -0
  51. package/dist-types/AmpClient.d.ts +10 -1
  52. package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +1 -1
  53. package/dist-types/commands/CreateScraperCommand.d.ts +53 -1
  54. package/dist-types/commands/DescribeScraperCommand.d.ts +8 -0
  55. package/dist-types/commands/ListScrapersCommand.d.ts +8 -0
  56. package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +1 -1
  57. package/dist-types/models/models_0.d.ts +58 -9
  58. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  59. package/dist-types/runtimeConfig.d.ts +1 -0
  60. package/dist-types/runtimeConfig.native.d.ts +1 -0
  61. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  62. package/dist-types/schemas/schemas_0.d.ts +191 -0
  63. package/dist-types/ts3.4/AmpClient.d.ts +4 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +16 -14
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  69. package/dist-types/ts3.4/schemas/schemas_0.d.ts +197 -0
  70. package/package.json +34 -35
  71. package/dist-es/protocols/Aws_restJson1.js +0 -1573
  72. package/dist-types/protocols/Aws_restJson1.d.ts +0 -398
  73. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -533
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput } from "./commands/CreateAlertManagerDefinitionCommand";
11
11
  import { CreateAnomalyDetectorCommandInput, CreateAnomalyDetectorCommandOutput } from "./commands/CreateAnomalyDetectorCommand";
@@ -185,6 +185,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
185
185
  * Optional extensions
186
186
  */
187
187
  extensions?: RuntimeExtension[];
188
+ /**
189
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
190
+ * may be overridden. A default will always be set by the client.
191
+ * Available options depend on the service's supported protocols and will not be validated by
192
+ * the client.
193
+ * @alpha
194
+ *
195
+ */
196
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
188
197
  /**
189
198
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
190
199
  */
@@ -27,7 +27,7 @@ declare const CreateRuleGroupsNamespaceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <p>Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use <code>PutRuleGroupsNamespace</code>.</p>
30
+ * <p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <important> <p>The combined length of a rule group namespace and a rule group name cannot exceed 721 UTF-8 bytes.</p> </important> <p>Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use <code>PutRuleGroupsNamespace</code>.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const CreateScraperCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>The <code>CreateScraper</code> operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. Scrapers are flexible, and can be configured to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more.</p> <p>An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup">Configuring your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> <p>The <code>scrapeConfiguration</code> parameter contains the base-64 encoded YAML configuration for the scraper.</p> <p>When creating a scraper, the service creates a <code>Network Interface</code> in each <b>Availability Zone</b> that are passed into <code>CreateScraper</code> through subnets. These network interfaces are used to connect to the Amazon EKS cluster within the VPC for scraping metrics.</p> <note> <p>For more information about collectors, including what metrics are collected, and how to configure the scraper, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html">Using an Amazon Web Services managed collector</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> </note>
30
+ * <p>The <code>CreateScraper</code> operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources and sends them to your Amazon Managed Service for Prometheus workspace. You can configure scrapers to collect metrics from Amazon EKS clusters, Amazon MSK clusters, or from VPC-based sources that support DNS-based service discovery. Scrapers are flexible, and can be configured to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more.</p> <p>An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your source. You must configure this role with a policy that allows it to scrape metrics from your source. For Amazon EKS sources, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup">Configuring your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> <p>The <code>scrapeConfiguration</code> parameter contains the base-64 encoded YAML configuration for the scraper.</p> <p>When creating a scraper, the service creates a <code>Network Interface</code> in each <b>Availability Zone</b> that are passed into <code>CreateScraper</code> through subnets. These network interfaces are used to connect to your source within the VPC for scraping metrics.</p> <note> <p>For more information about collectors, including what metrics are collected, and how to configure the scraper, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html">Using an Amazon Web Services managed collector</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> </note>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -51,6 +51,14 @@ declare const CreateScraperCommand_base: {
51
51
  * "STRING_VALUE",
52
52
  * ],
53
53
  * },
54
+ * vpcConfiguration: { // VpcConfiguration
55
+ * securityGroupIds: [ // required
56
+ * "STRING_VALUE",
57
+ * ],
58
+ * subnetIds: [ // required
59
+ * "STRING_VALUE",
60
+ * ],
61
+ * },
54
62
  * },
55
63
  * destination: { // Destination Union: only one key present
56
64
  * ampConfiguration: { // AmpConfiguration
@@ -157,6 +165,50 @@ declare const CreateScraperCommand_base: {
157
165
  * *\/
158
166
  * ```
159
167
  *
168
+ * @example CreateScraper with generic VPC config with mandatory securityGroupIds and subnetIds
169
+ * ```javascript
170
+ * //
171
+ * const input = {
172
+ * alias: "alias",
173
+ * clientToken: "token",
174
+ * destination: {
175
+ * ampConfiguration: {
176
+ * workspaceArn: "arn:aws:aps:us-west-2:123456789012:workspace/ws-ogh2u499-ce12-hg89-v6c7-123412341234"
177
+ * }
178
+ * },
179
+ * scrapeConfiguration: {
180
+ * configurationBlob: "blob"
181
+ * },
182
+ * source: {
183
+ * vpcConfiguration: {
184
+ * securityGroupIds: [
185
+ * "sg-abc123"
186
+ * ],
187
+ * subnetIds: [
188
+ * "subnet-abc123"
189
+ * ]
190
+ * }
191
+ * },
192
+ * tags: {
193
+ * exampleTag: "exampleValue"
194
+ * }
195
+ * };
196
+ * const command = new CreateScraperCommand(input);
197
+ * const response = await client.send(command);
198
+ * /* response is
199
+ * {
200
+ * arn: "arn:aws:aps:us-west-2:123456789012:scraper/scraper-123",
201
+ * scraperId: "scraper-123",
202
+ * status: {
203
+ * statusCode: "CREATING"
204
+ * },
205
+ * tags: {
206
+ * exampleTag: "exampleValue"
207
+ * }
208
+ * }
209
+ * *\/
210
+ * ```
211
+ *
160
212
  * @public
161
213
  */
162
214
  export declare class CreateScraperCommand extends CreateScraperCommand_base {
@@ -69,6 +69,14 @@ declare const DescribeScraperCommand_base: {
69
69
  * // "STRING_VALUE",
70
70
  * // ],
71
71
  * // },
72
+ * // vpcConfiguration: { // VpcConfiguration
73
+ * // securityGroupIds: [ // required
74
+ * // "STRING_VALUE",
75
+ * // ],
76
+ * // subnetIds: [ // required
77
+ * // "STRING_VALUE",
78
+ * // ],
79
+ * // },
72
80
  * // },
73
81
  * // destination: { // Destination Union: only one key present
74
82
  * // ampConfiguration: { // AmpConfiguration
@@ -73,6 +73,14 @@ declare const ListScrapersCommand_base: {
73
73
  * // "STRING_VALUE",
74
74
  * // ],
75
75
  * // },
76
+ * // vpcConfiguration: { // VpcConfiguration
77
+ * // securityGroupIds: [ // required
78
+ * // "STRING_VALUE",
79
+ * // ],
80
+ * // subnetIds: [ // required
81
+ * // "STRING_VALUE",
82
+ * // ],
83
+ * // },
76
84
  * // },
77
85
  * // destination: { // Destination Union: only one key present
78
86
  * // ampConfiguration: { // AmpConfiguration
@@ -27,7 +27,7 @@ declare const PutRuleGroupsNamespaceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <p>Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use <code>CreateRuleGroupsNamespace</code>.</p> <p>You can't use this operation to add tags to an existing rule groups namespace. Instead, use <code>TagResource</code>.</p>
30
+ * <p>Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <important> <p>The combined length of a rule group namespace and a rule group name cannot exceed 721 UTF-8 bytes.</p> </important> <p>Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use <code>CreateRuleGroupsNamespace</code>.</p> <p>You can't use this operation to add tags to an existing rule groups namespace. Instead, use <code>TagResource</code>.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -436,11 +436,14 @@ export declare namespace Destination {
436
436
  ampConfiguration?: never;
437
437
  $unknown: [string, any];
438
438
  }
439
+ /**
440
+ * @deprecated unused in schema-serde mode.
441
+ *
442
+ */
439
443
  interface Visitor<T> {
440
444
  ampConfiguration: (value: AmpConfiguration) => T;
441
445
  _: (name: string, value: any) => T;
442
446
  }
443
- const visit: <T>(value: Destination, visitor: Visitor<T>) => T;
444
447
  }
445
448
  /**
446
449
  * <p>Use this structure to enable cross-account access, so that you can use a target account to access Prometheus metrics from source accounts.</p>
@@ -482,11 +485,14 @@ export declare namespace ScrapeConfiguration {
482
485
  configurationBlob?: never;
483
486
  $unknown: [string, any];
484
487
  }
488
+ /**
489
+ * @deprecated unused in schema-serde mode.
490
+ *
491
+ */
485
492
  interface Visitor<T> {
486
493
  configurationBlob: (value: Uint8Array) => T;
487
494
  _: (name: string, value: any) => T;
488
495
  }
489
- const visit: <T>(value: ScrapeConfiguration, visitor: Visitor<T>) => T;
490
496
  }
491
497
  /**
492
498
  * <p>The <code>EksConfiguration</code> structure describes the connection to the Amazon EKS cluster from which a scraper collects metrics.</p>
@@ -509,11 +515,27 @@ export interface EksConfiguration {
509
515
  */
510
516
  subnetIds: string[] | undefined;
511
517
  }
518
+ /**
519
+ * <p>The Amazon VPC configuration that specifies the network settings for a Prometheus collector to securely connect to Amazon MSK clusters. This configuration includes the security groups and subnets that control network access and placement for the collector.</p>
520
+ * @public
521
+ */
522
+ export interface VpcConfiguration {
523
+ /**
524
+ * <p>The security group IDs that control network access for the Prometheus collector. These security groups must allow the collector to communicate with your Amazon MSK cluster on the required ports.</p>
525
+ * @public
526
+ */
527
+ securityGroupIds: string[] | undefined;
528
+ /**
529
+ * <p>The subnet IDs where the Prometheus collector will be deployed. The subnets must be in the same Amazon VPC as your Amazon MSK cluster and have network connectivity to the cluster.</p>
530
+ * @public
531
+ */
532
+ subnetIds: string[] | undefined;
533
+ }
512
534
  /**
513
535
  * <p>The source of collected metrics for a scraper.</p>
514
536
  * @public
515
537
  */
516
- export type Source = Source.EksConfigurationMember | Source.$UnknownMember;
538
+ export type Source = Source.EksConfigurationMember | Source.VpcConfigurationMember | Source.$UnknownMember;
517
539
  /**
518
540
  * @public
519
541
  */
@@ -524,6 +546,16 @@ export declare namespace Source {
524
546
  */
525
547
  interface EksConfigurationMember {
526
548
  eksConfiguration: EksConfiguration;
549
+ vpcConfiguration?: never;
550
+ $unknown?: never;
551
+ }
552
+ /**
553
+ * <p>The Amazon VPC configuration for the Prometheus collector when connecting to Amazon MSK clusters. This configuration enables secure, private network connectivity between the collector and your Amazon MSK cluster within your Amazon VPC.</p>
554
+ * @public
555
+ */
556
+ interface VpcConfigurationMember {
557
+ eksConfiguration?: never;
558
+ vpcConfiguration: VpcConfiguration;
527
559
  $unknown?: never;
528
560
  }
529
561
  /**
@@ -531,13 +563,18 @@ export declare namespace Source {
531
563
  */
532
564
  interface $UnknownMember {
533
565
  eksConfiguration?: never;
566
+ vpcConfiguration?: never;
534
567
  $unknown: [string, any];
535
568
  }
569
+ /**
570
+ * @deprecated unused in schema-serde mode.
571
+ *
572
+ */
536
573
  interface Visitor<T> {
537
574
  eksConfiguration: (value: EksConfiguration) => T;
575
+ vpcConfiguration: (value: VpcConfiguration) => T;
538
576
  _: (name: string, value: any) => T;
539
577
  }
540
- const visit: <T>(value: Source, visitor: Visitor<T>) => T;
541
578
  }
542
579
  /**
543
580
  * <p>Represents the input of a <code>CreateScraper</code> operation.</p>
@@ -555,7 +592,7 @@ export interface CreateScraperRequest {
555
592
  */
556
593
  scrapeConfiguration: ScrapeConfiguration | undefined;
557
594
  /**
558
- * <p>The Amazon EKS cluster from which the scraper will collect metrics.</p>
595
+ * <p>The Amazon EKS or Amazon Web Services cluster from which the scraper will collect metrics.</p>
559
596
  * @public
560
597
  */
561
598
  source: Source | undefined;
@@ -943,11 +980,14 @@ export declare namespace ScraperLoggingDestination {
943
980
  cloudWatchLogs?: never;
944
981
  $unknown: [string, any];
945
982
  }
983
+ /**
984
+ * @deprecated unused in schema-serde mode.
985
+ *
986
+ */
946
987
  interface Visitor<T> {
947
988
  cloudWatchLogs: (value: CloudWatchLogDestination) => T;
948
989
  _: (name: string, value: any) => T;
949
990
  }
950
- const visit: <T>(value: ScraperLoggingDestination, visitor: Visitor<T>) => T;
951
991
  }
952
992
  /**
953
993
  * <p>Configuration settings for a scraper component.</p>
@@ -1243,12 +1283,15 @@ export declare namespace IgnoreNearExpected {
1243
1283
  ratio?: never;
1244
1284
  $unknown: [string, any];
1245
1285
  }
1286
+ /**
1287
+ * @deprecated unused in schema-serde mode.
1288
+ *
1289
+ */
1246
1290
  interface Visitor<T> {
1247
1291
  amount: (value: number) => T;
1248
1292
  ratio: (value: number) => T;
1249
1293
  _: (name: string, value: any) => T;
1250
1294
  }
1251
- const visit: <T>(value: IgnoreNearExpected, visitor: Visitor<T>) => T;
1252
1295
  }
1253
1296
  /**
1254
1297
  * <p>Configuration for the Random Cut Forest algorithm used for anomaly detection in time-series data.</p>
@@ -1305,11 +1348,14 @@ export declare namespace AnomalyDetectorConfiguration {
1305
1348
  randomCutForest?: never;
1306
1349
  $unknown: [string, any];
1307
1350
  }
1351
+ /**
1352
+ * @deprecated unused in schema-serde mode.
1353
+ *
1354
+ */
1308
1355
  interface Visitor<T> {
1309
1356
  randomCutForest: (value: RandomCutForestConfiguration) => T;
1310
1357
  _: (name: string, value: any) => T;
1311
1358
  }
1312
- const visit: <T>(value: AnomalyDetectorConfiguration, visitor: Visitor<T>) => T;
1313
1359
  }
1314
1360
  /**
1315
1361
  * <p>Specifies the action to take when data is missing during anomaly detection evaluation.</p>
@@ -1346,12 +1392,15 @@ export declare namespace AnomalyDetectorMissingDataAction {
1346
1392
  skip?: never;
1347
1393
  $unknown: [string, any];
1348
1394
  }
1395
+ /**
1396
+ * @deprecated unused in schema-serde mode.
1397
+ *
1398
+ */
1349
1399
  interface Visitor<T> {
1350
1400
  markAsAnomaly: (value: boolean) => T;
1351
1401
  skip: (value: boolean) => T;
1352
1402
  _: (name: string, value: any) => T;
1353
1403
  }
1354
- const visit: <T>(value: AnomalyDetectorMissingDataAction, visitor: Visitor<T>) => T;
1355
1404
  }
1356
1405
  /**
1357
1406
  * @public
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  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;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: AmpClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AmpHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,191 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AccessDeniedException: StaticErrorSchema;
3
+ export declare var AlertManagerDefinitionDescription: StaticStructureSchema;
4
+ export declare var AlertManagerDefinitionStatus: StaticStructureSchema;
5
+ export declare var AmpConfiguration: StaticStructureSchema;
6
+ export declare var AnomalyDetectorDescription: StaticStructureSchema;
7
+ export declare var AnomalyDetectorStatus: StaticStructureSchema;
8
+ export declare var AnomalyDetectorSummary: StaticStructureSchema;
9
+ export declare var CloudWatchLogDestination: StaticStructureSchema;
10
+ export declare var ComponentConfig: StaticStructureSchema;
11
+ export declare var ConflictException: StaticErrorSchema;
12
+ export declare var CreateAlertManagerDefinitionRequest: StaticStructureSchema;
13
+ export declare var CreateAlertManagerDefinitionResponse: StaticStructureSchema;
14
+ export declare var CreateAnomalyDetectorRequest: StaticStructureSchema;
15
+ export declare var CreateAnomalyDetectorResponse: StaticStructureSchema;
16
+ export declare var CreateLoggingConfigurationRequest: StaticStructureSchema;
17
+ export declare var CreateLoggingConfigurationResponse: StaticStructureSchema;
18
+ export declare var CreateQueryLoggingConfigurationRequest: StaticStructureSchema;
19
+ export declare var CreateQueryLoggingConfigurationResponse: StaticStructureSchema;
20
+ export declare var CreateRuleGroupsNamespaceRequest: StaticStructureSchema;
21
+ export declare var CreateRuleGroupsNamespaceResponse: StaticStructureSchema;
22
+ export declare var CreateScraperRequest: StaticStructureSchema;
23
+ export declare var CreateScraperResponse: StaticStructureSchema;
24
+ export declare var CreateWorkspaceRequest: StaticStructureSchema;
25
+ export declare var CreateWorkspaceResponse: StaticStructureSchema;
26
+ export declare var DeleteAlertManagerDefinitionRequest: StaticStructureSchema;
27
+ export declare var DeleteAnomalyDetectorRequest: StaticStructureSchema;
28
+ export declare var DeleteLoggingConfigurationRequest: StaticStructureSchema;
29
+ export declare var DeleteQueryLoggingConfigurationRequest: StaticStructureSchema;
30
+ export declare var DeleteResourcePolicyRequest: StaticStructureSchema;
31
+ export declare var DeleteRuleGroupsNamespaceRequest: StaticStructureSchema;
32
+ export declare var DeleteScraperLoggingConfigurationRequest: StaticStructureSchema;
33
+ export declare var DeleteScraperRequest: StaticStructureSchema;
34
+ export declare var DeleteScraperResponse: StaticStructureSchema;
35
+ export declare var DeleteWorkspaceRequest: StaticStructureSchema;
36
+ export declare var DescribeAlertManagerDefinitionRequest: StaticStructureSchema;
37
+ export declare var DescribeAlertManagerDefinitionResponse: StaticStructureSchema;
38
+ export declare var DescribeAnomalyDetectorRequest: StaticStructureSchema;
39
+ export declare var DescribeAnomalyDetectorResponse: StaticStructureSchema;
40
+ export declare var DescribeLoggingConfigurationRequest: StaticStructureSchema;
41
+ export declare var DescribeLoggingConfigurationResponse: StaticStructureSchema;
42
+ export declare var DescribeQueryLoggingConfigurationRequest: StaticStructureSchema;
43
+ export declare var DescribeQueryLoggingConfigurationResponse: StaticStructureSchema;
44
+ export declare var DescribeResourcePolicyRequest: StaticStructureSchema;
45
+ export declare var DescribeResourcePolicyResponse: StaticStructureSchema;
46
+ export declare var DescribeRuleGroupsNamespaceRequest: StaticStructureSchema;
47
+ export declare var DescribeRuleGroupsNamespaceResponse: StaticStructureSchema;
48
+ export declare var DescribeScraperLoggingConfigurationRequest: StaticStructureSchema;
49
+ export declare var DescribeScraperLoggingConfigurationResponse: StaticStructureSchema;
50
+ export declare var DescribeScraperRequest: StaticStructureSchema;
51
+ export declare var DescribeScraperResponse: StaticStructureSchema;
52
+ export declare var DescribeWorkspaceConfigurationRequest: StaticStructureSchema;
53
+ export declare var DescribeWorkspaceConfigurationResponse: StaticStructureSchema;
54
+ export declare var DescribeWorkspaceRequest: StaticStructureSchema;
55
+ export declare var DescribeWorkspaceResponse: StaticStructureSchema;
56
+ export declare var EksConfiguration: StaticStructureSchema;
57
+ export declare var GetDefaultScraperConfigurationRequest: StaticStructureSchema;
58
+ export declare var GetDefaultScraperConfigurationResponse: StaticStructureSchema;
59
+ export declare var InternalServerException: StaticErrorSchema;
60
+ export declare var LimitsPerLabelSet: StaticStructureSchema;
61
+ export declare var LimitsPerLabelSetEntry: StaticStructureSchema;
62
+ export declare var ListAnomalyDetectorsRequest: StaticStructureSchema;
63
+ export declare var ListAnomalyDetectorsResponse: StaticStructureSchema;
64
+ export declare var ListRuleGroupsNamespacesRequest: StaticStructureSchema;
65
+ export declare var ListRuleGroupsNamespacesResponse: StaticStructureSchema;
66
+ export declare var ListScrapersRequest: StaticStructureSchema;
67
+ export declare var ListScrapersResponse: StaticStructureSchema;
68
+ export declare var ListTagsForResourceRequest: StaticStructureSchema;
69
+ export declare var ListTagsForResourceResponse: StaticStructureSchema;
70
+ export declare var ListWorkspacesRequest: StaticStructureSchema;
71
+ export declare var ListWorkspacesResponse: StaticStructureSchema;
72
+ export declare var LoggingConfigurationMetadata: StaticStructureSchema;
73
+ export declare var LoggingConfigurationStatus: StaticStructureSchema;
74
+ export declare var LoggingDestination: StaticStructureSchema;
75
+ export declare var LoggingFilter: StaticStructureSchema;
76
+ export declare var PutAlertManagerDefinitionRequest: StaticStructureSchema;
77
+ export declare var PutAlertManagerDefinitionResponse: StaticStructureSchema;
78
+ export declare var PutAnomalyDetectorRequest: StaticStructureSchema;
79
+ export declare var PutAnomalyDetectorResponse: StaticStructureSchema;
80
+ export declare var PutResourcePolicyRequest: StaticStructureSchema;
81
+ export declare var PutResourcePolicyResponse: StaticStructureSchema;
82
+ export declare var PutRuleGroupsNamespaceRequest: StaticStructureSchema;
83
+ export declare var PutRuleGroupsNamespaceResponse: StaticStructureSchema;
84
+ export declare var QueryLoggingConfigurationMetadata: StaticStructureSchema;
85
+ export declare var QueryLoggingConfigurationStatus: StaticStructureSchema;
86
+ export declare var RandomCutForestConfiguration: StaticStructureSchema;
87
+ export declare var ResourceNotFoundException: StaticErrorSchema;
88
+ export declare var RoleConfiguration: StaticStructureSchema;
89
+ export declare var RuleGroupsNamespaceDescription: StaticStructureSchema;
90
+ export declare var RuleGroupsNamespaceStatus: StaticStructureSchema;
91
+ export declare var RuleGroupsNamespaceSummary: StaticStructureSchema;
92
+ export declare var ScraperComponent: StaticStructureSchema;
93
+ export declare var ScraperDescription: StaticStructureSchema;
94
+ export declare var ScraperLoggingConfigurationStatus: StaticStructureSchema;
95
+ export declare var ScraperStatus: StaticStructureSchema;
96
+ export declare var ScraperSummary: StaticStructureSchema;
97
+ export declare var ServiceQuotaExceededException: StaticErrorSchema;
98
+ export declare var TagResourceRequest: StaticStructureSchema;
99
+ export declare var TagResourceResponse: StaticStructureSchema;
100
+ export declare var ThrottlingException: StaticErrorSchema;
101
+ export declare var UntagResourceRequest: StaticStructureSchema;
102
+ export declare var UntagResourceResponse: StaticStructureSchema;
103
+ export declare var UpdateLoggingConfigurationRequest: StaticStructureSchema;
104
+ export declare var UpdateLoggingConfigurationResponse: StaticStructureSchema;
105
+ export declare var UpdateQueryLoggingConfigurationRequest: StaticStructureSchema;
106
+ export declare var UpdateQueryLoggingConfigurationResponse: StaticStructureSchema;
107
+ export declare var UpdateScraperLoggingConfigurationRequest: StaticStructureSchema;
108
+ export declare var UpdateScraperLoggingConfigurationResponse: StaticStructureSchema;
109
+ export declare var UpdateScraperRequest: StaticStructureSchema;
110
+ export declare var UpdateScraperResponse: StaticStructureSchema;
111
+ export declare var UpdateWorkspaceAliasRequest: StaticStructureSchema;
112
+ export declare var UpdateWorkspaceConfigurationRequest: StaticStructureSchema;
113
+ export declare var UpdateWorkspaceConfigurationResponse: StaticStructureSchema;
114
+ export declare var ValidationException: StaticErrorSchema;
115
+ export declare var ValidationExceptionField: StaticStructureSchema;
116
+ export declare var VpcConfiguration: StaticStructureSchema;
117
+ export declare var WorkspaceConfigurationDescription: StaticStructureSchema;
118
+ export declare var WorkspaceConfigurationStatus: StaticStructureSchema;
119
+ export declare var WorkspaceDescription: StaticStructureSchema;
120
+ export declare var WorkspaceStatus: StaticStructureSchema;
121
+ export declare var WorkspaceSummary: StaticStructureSchema;
122
+ export declare var __Unit: "unit";
123
+ export declare var AmpServiceException: StaticErrorSchema;
124
+ export declare var AnomalyDetectorSummaryList: StaticListSchema;
125
+ export declare var FilterValues: number;
126
+ export declare var LimitsPerLabelSetList: StaticListSchema;
127
+ export declare var LoggingDestinations: StaticListSchema;
128
+ export declare var RuleGroupsNamespaceSummaryList: StaticListSchema;
129
+ export declare var ScraperComponents: StaticListSchema;
130
+ export declare var ScraperSummaryList: StaticListSchema;
131
+ export declare var SecurityGroupIds: number;
132
+ export declare var SubnetIds: number;
133
+ export declare var TagKeys: number;
134
+ export declare var ValidationExceptionFieldList: StaticListSchema;
135
+ export declare var WorkspaceSummaryList: StaticListSchema;
136
+ export declare var LabelSet: number;
137
+ export declare var PrometheusMetricLabelMap: number;
138
+ export declare var ScraperFilters: StaticMapSchema;
139
+ export declare var StringMap: number;
140
+ export declare var TagMap: number;
141
+ export declare var AnomalyDetectorConfiguration: StaticStructureSchema;
142
+ export declare var AnomalyDetectorMissingDataAction: StaticStructureSchema;
143
+ export declare var Destination: StaticStructureSchema;
144
+ export declare var IgnoreNearExpected: StaticStructureSchema;
145
+ export declare var ScrapeConfiguration: StaticStructureSchema;
146
+ export declare var ScraperLoggingDestination: StaticStructureSchema;
147
+ export declare var Source: StaticStructureSchema;
148
+ export declare var CreateAlertManagerDefinition: StaticOperationSchema;
149
+ export declare var CreateAnomalyDetector: StaticOperationSchema;
150
+ export declare var CreateLoggingConfiguration: StaticOperationSchema;
151
+ export declare var CreateQueryLoggingConfiguration: StaticOperationSchema;
152
+ export declare var CreateRuleGroupsNamespace: StaticOperationSchema;
153
+ export declare var CreateScraper: StaticOperationSchema;
154
+ export declare var CreateWorkspace: StaticOperationSchema;
155
+ export declare var DeleteAlertManagerDefinition: StaticOperationSchema;
156
+ export declare var DeleteAnomalyDetector: StaticOperationSchema;
157
+ export declare var DeleteLoggingConfiguration: StaticOperationSchema;
158
+ export declare var DeleteQueryLoggingConfiguration: StaticOperationSchema;
159
+ export declare var DeleteResourcePolicy: StaticOperationSchema;
160
+ export declare var DeleteRuleGroupsNamespace: StaticOperationSchema;
161
+ export declare var DeleteScraper: StaticOperationSchema;
162
+ export declare var DeleteScraperLoggingConfiguration: StaticOperationSchema;
163
+ export declare var DeleteWorkspace: StaticOperationSchema;
164
+ export declare var DescribeAlertManagerDefinition: StaticOperationSchema;
165
+ export declare var DescribeAnomalyDetector: StaticOperationSchema;
166
+ export declare var DescribeLoggingConfiguration: StaticOperationSchema;
167
+ export declare var DescribeQueryLoggingConfiguration: StaticOperationSchema;
168
+ export declare var DescribeResourcePolicy: StaticOperationSchema;
169
+ export declare var DescribeRuleGroupsNamespace: StaticOperationSchema;
170
+ export declare var DescribeScraper: StaticOperationSchema;
171
+ export declare var DescribeScraperLoggingConfiguration: StaticOperationSchema;
172
+ export declare var DescribeWorkspace: StaticOperationSchema;
173
+ export declare var DescribeWorkspaceConfiguration: StaticOperationSchema;
174
+ export declare var GetDefaultScraperConfiguration: StaticOperationSchema;
175
+ export declare var ListAnomalyDetectors: StaticOperationSchema;
176
+ export declare var ListRuleGroupsNamespaces: StaticOperationSchema;
177
+ export declare var ListScrapers: StaticOperationSchema;
178
+ export declare var ListTagsForResource: StaticOperationSchema;
179
+ export declare var ListWorkspaces: StaticOperationSchema;
180
+ export declare var PutAlertManagerDefinition: StaticOperationSchema;
181
+ export declare var PutAnomalyDetector: StaticOperationSchema;
182
+ export declare var PutResourcePolicy: StaticOperationSchema;
183
+ export declare var PutRuleGroupsNamespace: StaticOperationSchema;
184
+ export declare var TagResource: StaticOperationSchema;
185
+ export declare var UntagResource: StaticOperationSchema;
186
+ export declare var UpdateLoggingConfiguration: StaticOperationSchema;
187
+ export declare var UpdateQueryLoggingConfiguration: StaticOperationSchema;
188
+ export declare var UpdateScraper: StaticOperationSchema;
189
+ export declare var UpdateScraperLoggingConfiguration: StaticOperationSchema;
190
+ export declare var UpdateWorkspaceAlias: StaticOperationSchema;
191
+ export declare var UpdateWorkspaceConfiguration: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -342,6 +345,7 @@ export interface ClientDefaults
342
345
  retryMode?: string | __Provider<string>;
343
346
  logger?: __Logger;
344
347
  extensions?: RuntimeExtension[];
348
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
345
349
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
346
350
  }
347
351
  export type AmpClientConfigType = Partial<