@aws-sdk/client-amp 3.929.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.
package/dist-cjs/index.js CHANGED
@@ -246,30 +246,6 @@ let ValidationException$1 = class ValidationException extends AmpServiceExceptio
246
246
  this.fieldList = opts.fieldList;
247
247
  }
248
248
  };
249
- exports.Destination = void 0;
250
- (function (Destination) {
251
- Destination.visit = (value, visitor) => {
252
- if (value.ampConfiguration !== undefined)
253
- return visitor.ampConfiguration(value.ampConfiguration);
254
- return visitor._(value.$unknown[0], value.$unknown[1]);
255
- };
256
- })(exports.Destination || (exports.Destination = {}));
257
- exports.ScrapeConfiguration = void 0;
258
- (function (ScrapeConfiguration) {
259
- ScrapeConfiguration.visit = (value, visitor) => {
260
- if (value.configurationBlob !== undefined)
261
- return visitor.configurationBlob(value.configurationBlob);
262
- return visitor._(value.$unknown[0], value.$unknown[1]);
263
- };
264
- })(exports.ScrapeConfiguration || (exports.ScrapeConfiguration = {}));
265
- exports.Source = void 0;
266
- (function (Source) {
267
- Source.visit = (value, visitor) => {
268
- if (value.eksConfiguration !== undefined)
269
- return visitor.eksConfiguration(value.eksConfiguration);
270
- return visitor._(value.$unknown[0], value.$unknown[1]);
271
- };
272
- })(exports.Source || (exports.Source = {}));
273
249
  const ScraperStatusCode = {
274
250
  ACTIVE: "ACTIVE",
275
251
  CREATING: "CREATING",
@@ -279,14 +255,6 @@ const ScraperStatusCode = {
279
255
  UPDATE_FAILED: "UPDATE_FAILED",
280
256
  UPDATING: "UPDATING",
281
257
  };
282
- exports.ScraperLoggingDestination = void 0;
283
- (function (ScraperLoggingDestination) {
284
- ScraperLoggingDestination.visit = (value, visitor) => {
285
- if (value.cloudWatchLogs !== undefined)
286
- return visitor.cloudWatchLogs(value.cloudWatchLogs);
287
- return visitor._(value.$unknown[0], value.$unknown[1]);
288
- };
289
- })(exports.ScraperLoggingDestination || (exports.ScraperLoggingDestination = {}));
290
258
  const ScraperComponentType = {
291
259
  COLLECTOR: "COLLECTOR",
292
260
  EXPORTER: "EXPORTER",
@@ -300,34 +268,6 @@ const ScraperLoggingConfigurationStatusCode = {
300
268
  UPDATE_FAILED: "UPDATE_FAILED",
301
269
  UPDATING: "UPDATING",
302
270
  };
303
- exports.IgnoreNearExpected = void 0;
304
- (function (IgnoreNearExpected) {
305
- IgnoreNearExpected.visit = (value, visitor) => {
306
- if (value.amount !== undefined)
307
- return visitor.amount(value.amount);
308
- if (value.ratio !== undefined)
309
- return visitor.ratio(value.ratio);
310
- return visitor._(value.$unknown[0], value.$unknown[1]);
311
- };
312
- })(exports.IgnoreNearExpected || (exports.IgnoreNearExpected = {}));
313
- exports.AnomalyDetectorConfiguration = void 0;
314
- (function (AnomalyDetectorConfiguration) {
315
- AnomalyDetectorConfiguration.visit = (value, visitor) => {
316
- if (value.randomCutForest !== undefined)
317
- return visitor.randomCutForest(value.randomCutForest);
318
- return visitor._(value.$unknown[0], value.$unknown[1]);
319
- };
320
- })(exports.AnomalyDetectorConfiguration || (exports.AnomalyDetectorConfiguration = {}));
321
- exports.AnomalyDetectorMissingDataAction = void 0;
322
- (function (AnomalyDetectorMissingDataAction) {
323
- AnomalyDetectorMissingDataAction.visit = (value, visitor) => {
324
- if (value.markAsAnomaly !== undefined)
325
- return visitor.markAsAnomaly(value.markAsAnomaly);
326
- if (value.skip !== undefined)
327
- return visitor.skip(value.skip);
328
- return visitor._(value.$unknown[0], value.$unknown[1]);
329
- };
330
- })(exports.AnomalyDetectorMissingDataAction || (exports.AnomalyDetectorMissingDataAction = {}));
331
271
  const AnomalyDetectorStatusCode = {
332
272
  ACTIVE: "ACTIVE",
333
273
  CREATING: "CREATING",
@@ -551,6 +491,7 @@ const _UWAR = "UpdateWorkspaceAliasRequest";
551
491
  const _UWC = "UpdateWorkspaceConfiguration";
552
492
  const _UWCR = "UpdateWorkspaceConfigurationRequest";
553
493
  const _UWCRp = "UpdateWorkspaceConfigurationResponse";
494
+ const _VC = "VpcConfiguration";
554
495
  const _VE = "ValidationException";
555
496
  const _VEF = "ValidationExceptionField";
556
497
  const _VEFL = "ValidationExceptionFieldList";
@@ -651,6 +592,7 @@ const _t = "tags";
651
592
  const _tK = "tagKeys";
652
593
  const _tRA = "targetRoleArn";
653
594
  const _ty = "type";
595
+ const _vC = "vpcConfiguration";
654
596
  const _w = "workspace";
655
597
  const _wA = "workspaceArn";
656
598
  const _wC = "workspaceConfiguration";
@@ -1551,6 +1493,7 @@ var ValidationException = [
1551
1493
  ];
1552
1494
  schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
1553
1495
  var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
1496
+ var VpcConfiguration = [3, n0, _VC, 0, [_sGI, _sIu], [64 | 0, 64 | 0]];
1554
1497
  var WorkspaceConfigurationDescription = [
1555
1498
  3,
1556
1499
  n0,
@@ -1608,7 +1551,7 @@ var ScraperLoggingDestination = [
1608
1551
  [_cWL],
1609
1552
  [() => CloudWatchLogDestination],
1610
1553
  ];
1611
- var Source = [3, n0, _S, 0, [_eC], [() => EksConfiguration]];
1554
+ var Source = [3, n0, _S, 0, [_eC, _vC], [() => EksConfiguration, () => VpcConfiguration]];
1612
1555
  var CreateAlertManagerDefinition = [
1613
1556
  9,
1614
1557
  n0,
@@ -127,30 +127,6 @@ export class ValidationException extends __BaseException {
127
127
  this.fieldList = opts.fieldList;
128
128
  }
129
129
  }
130
- export var Destination;
131
- (function (Destination) {
132
- Destination.visit = (value, visitor) => {
133
- if (value.ampConfiguration !== undefined)
134
- return visitor.ampConfiguration(value.ampConfiguration);
135
- return visitor._(value.$unknown[0], value.$unknown[1]);
136
- };
137
- })(Destination || (Destination = {}));
138
- export var ScrapeConfiguration;
139
- (function (ScrapeConfiguration) {
140
- ScrapeConfiguration.visit = (value, visitor) => {
141
- if (value.configurationBlob !== undefined)
142
- return visitor.configurationBlob(value.configurationBlob);
143
- return visitor._(value.$unknown[0], value.$unknown[1]);
144
- };
145
- })(ScrapeConfiguration || (ScrapeConfiguration = {}));
146
- export var Source;
147
- (function (Source) {
148
- Source.visit = (value, visitor) => {
149
- if (value.eksConfiguration !== undefined)
150
- return visitor.eksConfiguration(value.eksConfiguration);
151
- return visitor._(value.$unknown[0], value.$unknown[1]);
152
- };
153
- })(Source || (Source = {}));
154
130
  export const ScraperStatusCode = {
155
131
  ACTIVE: "ACTIVE",
156
132
  CREATING: "CREATING",
@@ -160,14 +136,6 @@ export const ScraperStatusCode = {
160
136
  UPDATE_FAILED: "UPDATE_FAILED",
161
137
  UPDATING: "UPDATING",
162
138
  };
163
- export var ScraperLoggingDestination;
164
- (function (ScraperLoggingDestination) {
165
- ScraperLoggingDestination.visit = (value, visitor) => {
166
- if (value.cloudWatchLogs !== undefined)
167
- return visitor.cloudWatchLogs(value.cloudWatchLogs);
168
- return visitor._(value.$unknown[0], value.$unknown[1]);
169
- };
170
- })(ScraperLoggingDestination || (ScraperLoggingDestination = {}));
171
139
  export const ScraperComponentType = {
172
140
  COLLECTOR: "COLLECTOR",
173
141
  EXPORTER: "EXPORTER",
@@ -181,34 +149,6 @@ export const ScraperLoggingConfigurationStatusCode = {
181
149
  UPDATE_FAILED: "UPDATE_FAILED",
182
150
  UPDATING: "UPDATING",
183
151
  };
184
- export var IgnoreNearExpected;
185
- (function (IgnoreNearExpected) {
186
- IgnoreNearExpected.visit = (value, visitor) => {
187
- if (value.amount !== undefined)
188
- return visitor.amount(value.amount);
189
- if (value.ratio !== undefined)
190
- return visitor.ratio(value.ratio);
191
- return visitor._(value.$unknown[0], value.$unknown[1]);
192
- };
193
- })(IgnoreNearExpected || (IgnoreNearExpected = {}));
194
- export var AnomalyDetectorConfiguration;
195
- (function (AnomalyDetectorConfiguration) {
196
- AnomalyDetectorConfiguration.visit = (value, visitor) => {
197
- if (value.randomCutForest !== undefined)
198
- return visitor.randomCutForest(value.randomCutForest);
199
- return visitor._(value.$unknown[0], value.$unknown[1]);
200
- };
201
- })(AnomalyDetectorConfiguration || (AnomalyDetectorConfiguration = {}));
202
- export var AnomalyDetectorMissingDataAction;
203
- (function (AnomalyDetectorMissingDataAction) {
204
- AnomalyDetectorMissingDataAction.visit = (value, visitor) => {
205
- if (value.markAsAnomaly !== undefined)
206
- return visitor.markAsAnomaly(value.markAsAnomaly);
207
- if (value.skip !== undefined)
208
- return visitor.skip(value.skip);
209
- return visitor._(value.$unknown[0], value.$unknown[1]);
210
- };
211
- })(AnomalyDetectorMissingDataAction || (AnomalyDetectorMissingDataAction = {}));
212
152
  export const AnomalyDetectorStatusCode = {
213
153
  ACTIVE: "ACTIVE",
214
154
  CREATING: "CREATING",
@@ -169,6 +169,7 @@ const _UWAR = "UpdateWorkspaceAliasRequest";
169
169
  const _UWC = "UpdateWorkspaceConfiguration";
170
170
  const _UWCR = "UpdateWorkspaceConfigurationRequest";
171
171
  const _UWCRp = "UpdateWorkspaceConfigurationResponse";
172
+ const _VC = "VpcConfiguration";
172
173
  const _VE = "ValidationException";
173
174
  const _VEF = "ValidationExceptionField";
174
175
  const _VEFL = "ValidationExceptionFieldList";
@@ -269,6 +270,7 @@ const _t = "tags";
269
270
  const _tK = "tagKeys";
270
271
  const _tRA = "targetRoleArn";
271
272
  const _ty = "type";
273
+ const _vC = "vpcConfiguration";
272
274
  const _w = "workspace";
273
275
  const _wA = "workspaceArn";
274
276
  const _wC = "workspaceConfiguration";
@@ -1172,6 +1174,7 @@ export var ValidationException = [
1172
1174
  ];
1173
1175
  TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
1174
1176
  export var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
1177
+ export var VpcConfiguration = [3, n0, _VC, 0, [_sGI, _sIu], [64 | 0, 64 | 0]];
1175
1178
  export var WorkspaceConfigurationDescription = [
1176
1179
  3,
1177
1180
  n0,
@@ -1238,7 +1241,7 @@ export var ScraperLoggingDestination = [
1238
1241
  [_cWL],
1239
1242
  [() => CloudWatchLogDestination],
1240
1243
  ];
1241
- export var Source = [3, n0, _S, 0, [_eC], [() => EksConfiguration]];
1244
+ export var Source = [3, n0, _S, 0, [_eC, _vC], [() => EksConfiguration, () => VpcConfiguration]];
1242
1245
  export var CreateAlertManagerDefinition = [
1243
1246
  9,
1244
1247
  n0,
@@ -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
@@ -113,6 +113,7 @@ export declare var UpdateWorkspaceConfigurationRequest: StaticStructureSchema;
113
113
  export declare var UpdateWorkspaceConfigurationResponse: StaticStructureSchema;
114
114
  export declare var ValidationException: StaticErrorSchema;
115
115
  export declare var ValidationExceptionField: StaticStructureSchema;
116
+ export declare var VpcConfiguration: StaticStructureSchema;
116
117
  export declare var WorkspaceConfigurationDescription: StaticStructureSchema;
117
118
  export declare var WorkspaceConfigurationStatus: StaticStructureSchema;
118
119
  export declare var WorkspaceDescription: StaticStructureSchema;
@@ -150,7 +150,6 @@ export declare namespace Destination {
150
150
  ampConfiguration: (value: AmpConfiguration) => T;
151
151
  _: (name: string, value: any) => T;
152
152
  }
153
- const visit: <T>(value: Destination, visitor: Visitor<T>) => T;
154
153
  }
155
154
  export interface RoleConfiguration {
156
155
  sourceRoleArn?: string | undefined;
@@ -172,28 +171,41 @@ export declare namespace ScrapeConfiguration {
172
171
  configurationBlob: (value: Uint8Array) => T;
173
172
  _: (name: string, value: any) => T;
174
173
  }
175
- const visit: <T>(value: ScrapeConfiguration, visitor: Visitor<T>) => T;
176
174
  }
177
175
  export interface EksConfiguration {
178
176
  clusterArn: string | undefined;
179
177
  securityGroupIds?: string[] | undefined;
180
178
  subnetIds: string[] | undefined;
181
179
  }
182
- export type Source = Source.EksConfigurationMember | Source.$UnknownMember;
180
+ export interface VpcConfiguration {
181
+ securityGroupIds: string[] | undefined;
182
+ subnetIds: string[] | undefined;
183
+ }
184
+ export type Source =
185
+ | Source.EksConfigurationMember
186
+ | Source.VpcConfigurationMember
187
+ | Source.$UnknownMember;
183
188
  export declare namespace Source {
184
189
  interface EksConfigurationMember {
185
190
  eksConfiguration: EksConfiguration;
191
+ vpcConfiguration?: never;
192
+ $unknown?: never;
193
+ }
194
+ interface VpcConfigurationMember {
195
+ eksConfiguration?: never;
196
+ vpcConfiguration: VpcConfiguration;
186
197
  $unknown?: never;
187
198
  }
188
199
  interface $UnknownMember {
189
200
  eksConfiguration?: never;
201
+ vpcConfiguration?: never;
190
202
  $unknown: [string, any];
191
203
  }
192
204
  interface Visitor<T> {
193
205
  eksConfiguration: (value: EksConfiguration) => T;
206
+ vpcConfiguration: (value: VpcConfiguration) => T;
194
207
  _: (name: string, value: any) => T;
195
208
  }
196
- const visit: <T>(value: Source, visitor: Visitor<T>) => T;
197
209
  }
198
210
  export interface CreateScraperRequest {
199
211
  alias?: string | undefined;
@@ -302,7 +314,6 @@ export declare namespace ScraperLoggingDestination {
302
314
  cloudWatchLogs: (value: CloudWatchLogDestination) => T;
303
315
  _: (name: string, value: any) => T;
304
316
  }
305
- const visit: <T>(value: ScraperLoggingDestination, visitor: Visitor<T>) => T;
306
317
  }
307
318
  export interface ComponentConfig {
308
319
  options?: Record<string, string> | undefined;
@@ -396,7 +407,6 @@ export declare namespace IgnoreNearExpected {
396
407
  ratio: (value: number) => T;
397
408
  _: (name: string, value: any) => T;
398
409
  }
399
- const visit: <T>(value: IgnoreNearExpected, visitor: Visitor<T>) => T;
400
410
  }
401
411
  export interface RandomCutForestConfiguration {
402
412
  query: string | undefined;
@@ -421,10 +431,6 @@ export declare namespace AnomalyDetectorConfiguration {
421
431
  randomCutForest: (value: RandomCutForestConfiguration) => T;
422
432
  _: (name: string, value: any) => T;
423
433
  }
424
- const visit: <T>(
425
- value: AnomalyDetectorConfiguration,
426
- visitor: Visitor<T>
427
- ) => T;
428
434
  }
429
435
  export type AnomalyDetectorMissingDataAction =
430
436
  | AnomalyDetectorMissingDataAction.MarkAsAnomalyMember
@@ -451,10 +457,6 @@ export declare namespace AnomalyDetectorMissingDataAction {
451
457
  skip: (value: boolean) => T;
452
458
  _: (name: string, value: any) => T;
453
459
  }
454
- const visit: <T>(
455
- value: AnomalyDetectorMissingDataAction,
456
- visitor: Visitor<T>
457
- ) => T;
458
460
  }
459
461
  export interface CreateAnomalyDetectorRequest {
460
462
  workspaceId: string | undefined;
@@ -119,6 +119,7 @@ export declare var UpdateWorkspaceConfigurationRequest: StaticStructureSchema;
119
119
  export declare var UpdateWorkspaceConfigurationResponse: StaticStructureSchema;
120
120
  export declare var ValidationException: StaticErrorSchema;
121
121
  export declare var ValidationExceptionField: StaticStructureSchema;
122
+ export declare var VpcConfiguration: StaticStructureSchema;
122
123
  export declare var WorkspaceConfigurationDescription: StaticStructureSchema;
123
124
  export declare var WorkspaceConfigurationStatus: StaticStructureSchema;
124
125
  export declare var WorkspaceDescription: StaticStructureSchema;
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.929.0",
4
+ "version": "3.930.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,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.929.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
- "@smithy/util-waiter": "^4.2.4",
59
+ "@smithy/util-waiter": "^4.2.5",
60
60
  "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {