@aws-sdk/client-amp 3.1092.0 → 3.1093.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 +12 -3
- package/dist-es/schemas/schemas_0.js +10 -2
- package/dist-types/commands/CreateScraperCommand.d.ts +4 -1
- package/dist-types/commands/DescribeScraperCommand.d.ts +3 -0
- package/dist-types/commands/ListScrapersCommand.d.ts +3 -0
- package/dist-types/commands/UpdateScraperCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +28 -5
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +15 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1092.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -284,6 +284,7 @@ const _CS = "CreateScraper";
|
|
|
284
284
|
const _CSR = "CreateScraperRequest";
|
|
285
285
|
const _CSRr = "CreateScraperResponse";
|
|
286
286
|
const _CW = "CreateWorkspace";
|
|
287
|
+
const _CWC = "CloudWatchConfiguration";
|
|
287
288
|
const _CWLD = "CloudWatchLogDestination";
|
|
288
289
|
const _CWR = "CreateWorkspaceRequest";
|
|
289
290
|
const _CWRr = "CreateWorkspaceResponse";
|
|
@@ -447,10 +448,12 @@ const _cA = "createdAt";
|
|
|
447
448
|
const _cAl = "clusterArn";
|
|
448
449
|
const _cB = "configurationBlob";
|
|
449
450
|
const _cT = "clientToken";
|
|
451
|
+
const _cWC = "cloudWatchConfiguration";
|
|
450
452
|
const _cWL = "cloudWatchLogs";
|
|
451
453
|
const _co = "configuration";
|
|
452
454
|
const _con = "config";
|
|
453
455
|
const _d = "data";
|
|
456
|
+
const _dA = "datasetArn";
|
|
454
457
|
const _de = "destinations";
|
|
455
458
|
const _des = "destination";
|
|
456
459
|
const _e = "error";
|
|
@@ -614,6 +617,11 @@ var AnomalyDetectorSummary$ = [3, n0, _ADSn,
|
|
|
614
617
|
[_a, _aDI, _al, _st, _cA, _mA, _t],
|
|
615
618
|
[0, 0, 0, () => AnomalyDetectorStatus$, 4, 4, 128 | 0], 6
|
|
616
619
|
];
|
|
620
|
+
var CloudWatchConfiguration$ = [3, n0, _CWC,
|
|
621
|
+
0,
|
|
622
|
+
[_dA],
|
|
623
|
+
[0], 1
|
|
624
|
+
];
|
|
617
625
|
var CloudWatchLogDestination$ = [3, n0, _CWLD,
|
|
618
626
|
0,
|
|
619
627
|
[_lGA],
|
|
@@ -1186,8 +1194,8 @@ var AnomalyDetectorMissingDataAction$ = [4, n0, _ADMDA,
|
|
|
1186
1194
|
];
|
|
1187
1195
|
var Destination$ = [4, n0, _D,
|
|
1188
1196
|
0,
|
|
1189
|
-
[_aC],
|
|
1190
|
-
[() => AmpConfiguration$]
|
|
1197
|
+
[_aC, _cWC],
|
|
1198
|
+
[() => AmpConfiguration$, () => CloudWatchConfiguration$]
|
|
1191
1199
|
];
|
|
1192
1200
|
var IgnoreNearExpected$ = [4, n0, _INE,
|
|
1193
1201
|
0,
|
|
@@ -2034,6 +2042,7 @@ exports.AnomalyDetectorMissingDataAction$ = AnomalyDetectorMissingDataAction$;
|
|
|
2034
2042
|
exports.AnomalyDetectorStatus$ = AnomalyDetectorStatus$;
|
|
2035
2043
|
exports.AnomalyDetectorStatusCode = AnomalyDetectorStatusCode;
|
|
2036
2044
|
exports.AnomalyDetectorSummary$ = AnomalyDetectorSummary$;
|
|
2045
|
+
exports.CloudWatchConfiguration$ = CloudWatchConfiguration$;
|
|
2037
2046
|
exports.CloudWatchLogDestination$ = CloudWatchLogDestination$;
|
|
2038
2047
|
exports.ComponentConfig$ = ComponentConfig$;
|
|
2039
2048
|
exports.ConflictException = ConflictException;
|
|
@@ -29,6 +29,7 @@ const _CS = "CreateScraper";
|
|
|
29
29
|
const _CSR = "CreateScraperRequest";
|
|
30
30
|
const _CSRr = "CreateScraperResponse";
|
|
31
31
|
const _CW = "CreateWorkspace";
|
|
32
|
+
const _CWC = "CloudWatchConfiguration";
|
|
32
33
|
const _CWLD = "CloudWatchLogDestination";
|
|
33
34
|
const _CWR = "CreateWorkspaceRequest";
|
|
34
35
|
const _CWRr = "CreateWorkspaceResponse";
|
|
@@ -192,10 +193,12 @@ const _cA = "createdAt";
|
|
|
192
193
|
const _cAl = "clusterArn";
|
|
193
194
|
const _cB = "configurationBlob";
|
|
194
195
|
const _cT = "clientToken";
|
|
196
|
+
const _cWC = "cloudWatchConfiguration";
|
|
195
197
|
const _cWL = "cloudWatchLogs";
|
|
196
198
|
const _co = "configuration";
|
|
197
199
|
const _con = "config";
|
|
198
200
|
const _d = "data";
|
|
201
|
+
const _dA = "datasetArn";
|
|
199
202
|
const _de = "destinations";
|
|
200
203
|
const _des = "destination";
|
|
201
204
|
const _e = "error";
|
|
@@ -362,6 +365,11 @@ export var AnomalyDetectorSummary$ = [3, n0, _ADSn,
|
|
|
362
365
|
[_a, _aDI, _al, _st, _cA, _mA, _t],
|
|
363
366
|
[0, 0, 0, () => AnomalyDetectorStatus$, 4, 4, 128 | 0], 6
|
|
364
367
|
];
|
|
368
|
+
export var CloudWatchConfiguration$ = [3, n0, _CWC,
|
|
369
|
+
0,
|
|
370
|
+
[_dA],
|
|
371
|
+
[0], 1
|
|
372
|
+
];
|
|
365
373
|
export var CloudWatchLogDestination$ = [3, n0, _CWLD,
|
|
366
374
|
0,
|
|
367
375
|
[_lGA],
|
|
@@ -945,8 +953,8 @@ export var AnomalyDetectorMissingDataAction$ = [4, n0, _ADMDA,
|
|
|
945
953
|
];
|
|
946
954
|
export var Destination$ = [4, n0, _D,
|
|
947
955
|
0,
|
|
948
|
-
[_aC],
|
|
949
|
-
[() => AmpConfiguration$]
|
|
956
|
+
[_aC, _cWC],
|
|
957
|
+
[() => AmpConfiguration$, () => CloudWatchConfiguration$]
|
|
950
958
|
];
|
|
951
959
|
export var IgnoreNearExpected$ = [4, n0, _INE,
|
|
952
960
|
0,
|
|
@@ -24,7 +24,7 @@ declare const CreateScraperCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>
|
|
27
|
+
* <p>Creates a scraper to collect metrics from Prometheus-compatible sources. The scraper sends the collected metrics to Amazon Managed Service for Prometheus workspaces or CloudWatch datasets. 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. You can configure a scraper to control which metrics to collect, the frequency of collection, which transformations to apply 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>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -61,6 +61,9 @@ declare const CreateScraperCommand_base: {
|
|
|
61
61
|
* ampConfiguration: { // AmpConfiguration
|
|
62
62
|
* workspaceArn: "STRING_VALUE", // required
|
|
63
63
|
* },
|
|
64
|
+
* cloudWatchConfiguration: { // CloudWatchConfiguration
|
|
65
|
+
* datasetArn: "STRING_VALUE", // required
|
|
66
|
+
* },
|
|
64
67
|
* },
|
|
65
68
|
* roleConfiguration: { // RoleConfiguration
|
|
66
69
|
* sourceRoleArn: "STRING_VALUE",
|
|
@@ -79,6 +79,9 @@ declare const DescribeScraperCommand_base: {
|
|
|
79
79
|
* // ampConfiguration: { // AmpConfiguration
|
|
80
80
|
* // workspaceArn: "STRING_VALUE", // required
|
|
81
81
|
* // },
|
|
82
|
+
* // cloudWatchConfiguration: { // CloudWatchConfiguration
|
|
83
|
+
* // datasetArn: "STRING_VALUE", // required
|
|
84
|
+
* // },
|
|
82
85
|
* // },
|
|
83
86
|
* // roleConfiguration: { // RoleConfiguration
|
|
84
87
|
* // sourceRoleArn: "STRING_VALUE",
|
|
@@ -83,6 +83,9 @@ declare const ListScrapersCommand_base: {
|
|
|
83
83
|
* // ampConfiguration: { // AmpConfiguration
|
|
84
84
|
* // workspaceArn: "STRING_VALUE", // required
|
|
85
85
|
* // },
|
|
86
|
+
* // cloudWatchConfiguration: { // CloudWatchConfiguration
|
|
87
|
+
* // datasetArn: "STRING_VALUE", // required
|
|
88
|
+
* // },
|
|
86
89
|
* // },
|
|
87
90
|
* // roleConfiguration: { // RoleConfiguration
|
|
88
91
|
* // sourceRoleArn: "STRING_VALUE",
|
|
@@ -43,6 +43,9 @@ declare const UpdateScraperCommand_base: {
|
|
|
43
43
|
* ampConfiguration: { // AmpConfiguration
|
|
44
44
|
* workspaceArn: "STRING_VALUE", // required
|
|
45
45
|
* },
|
|
46
|
+
* cloudWatchConfiguration: { // CloudWatchConfiguration
|
|
47
|
+
* datasetArn: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
46
49
|
* },
|
|
47
50
|
* roleConfiguration: { // RoleConfiguration
|
|
48
51
|
* sourceRoleArn: "STRING_VALUE",
|
|
@@ -207,11 +207,22 @@ export interface AmpConfiguration {
|
|
|
207
207
|
*/
|
|
208
208
|
workspaceArn: string | undefined;
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* <p>The configuration identifies the CloudWatch dataset used as a scraper destination.</p>
|
|
212
|
+
* @public
|
|
213
|
+
*/
|
|
214
|
+
export interface CloudWatchConfiguration {
|
|
215
|
+
/**
|
|
216
|
+
* <p>The Amazon Resource Name (ARN) of the CloudWatch dataset. To use the default dataset, specify <code>arn:aws:cloudwatch:<region>:<account-id>:dataset/default</code>.</p>
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
datasetArn: string | undefined;
|
|
220
|
+
}
|
|
210
221
|
/**
|
|
211
222
|
* <p>Where to send the metrics from a scraper.</p>
|
|
212
223
|
* @public
|
|
213
224
|
*/
|
|
214
|
-
export type Destination = Destination.AmpConfigurationMember | Destination.$UnknownMember;
|
|
225
|
+
export type Destination = Destination.AmpConfigurationMember | Destination.CloudWatchConfigurationMember | Destination.$UnknownMember;
|
|
215
226
|
/**
|
|
216
227
|
* @public
|
|
217
228
|
*/
|
|
@@ -222,6 +233,16 @@ export declare namespace Destination {
|
|
|
222
233
|
*/
|
|
223
234
|
interface AmpConfigurationMember {
|
|
224
235
|
ampConfiguration: AmpConfiguration;
|
|
236
|
+
cloudWatchConfiguration?: never;
|
|
237
|
+
$unknown?: never;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* <p>The CloudWatch dataset to send metrics to.</p>
|
|
241
|
+
* @public
|
|
242
|
+
*/
|
|
243
|
+
interface CloudWatchConfigurationMember {
|
|
244
|
+
ampConfiguration?: never;
|
|
245
|
+
cloudWatchConfiguration: CloudWatchConfiguration;
|
|
225
246
|
$unknown?: never;
|
|
226
247
|
}
|
|
227
248
|
/**
|
|
@@ -229,6 +250,7 @@ export declare namespace Destination {
|
|
|
229
250
|
*/
|
|
230
251
|
interface $UnknownMember {
|
|
231
252
|
ampConfiguration?: never;
|
|
253
|
+
cloudWatchConfiguration?: never;
|
|
232
254
|
$unknown: [string, any];
|
|
233
255
|
}
|
|
234
256
|
/**
|
|
@@ -237,6 +259,7 @@ export declare namespace Destination {
|
|
|
237
259
|
*/
|
|
238
260
|
interface Visitor<T> {
|
|
239
261
|
ampConfiguration: (value: AmpConfiguration) => T;
|
|
262
|
+
cloudWatchConfiguration: (value: CloudWatchConfiguration) => T;
|
|
240
263
|
_: (name: string, value: any) => T;
|
|
241
264
|
}
|
|
242
265
|
}
|
|
@@ -392,7 +415,7 @@ export interface CreateScraperRequest {
|
|
|
392
415
|
*/
|
|
393
416
|
source: Source | undefined;
|
|
394
417
|
/**
|
|
395
|
-
* <p>The Amazon Managed Service for Prometheus
|
|
418
|
+
* <p>The destination where the scraper sends the collected metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.</p>
|
|
396
419
|
* @public
|
|
397
420
|
*/
|
|
398
421
|
destination: Destination | undefined;
|
|
@@ -553,7 +576,7 @@ export interface ScraperDescription {
|
|
|
553
576
|
*/
|
|
554
577
|
source: Source | undefined;
|
|
555
578
|
/**
|
|
556
|
-
* <p>The Amazon Managed Service for Prometheus
|
|
579
|
+
* <p>The destination where the scraper sends metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.</p>
|
|
557
580
|
* @public
|
|
558
581
|
*/
|
|
559
582
|
destination: Destination | undefined;
|
|
@@ -651,7 +674,7 @@ export interface ScraperSummary {
|
|
|
651
674
|
*/
|
|
652
675
|
source: Source | undefined;
|
|
653
676
|
/**
|
|
654
|
-
* <p>The Amazon Managed Service for Prometheus
|
|
677
|
+
* <p>The destination where the scraper sends metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.</p>
|
|
655
678
|
* @public
|
|
656
679
|
*/
|
|
657
680
|
destination: Destination | undefined;
|
|
@@ -869,7 +892,7 @@ export interface UpdateScraperRequest {
|
|
|
869
892
|
*/
|
|
870
893
|
scrapeConfiguration?: ScrapeConfiguration | undefined;
|
|
871
894
|
/**
|
|
872
|
-
* <p>The new Amazon Managed Service for Prometheus
|
|
895
|
+
* <p>The new destination where the scraper sends metrics. Valid destinations are Amazon Managed Service for Prometheus workspaces and CloudWatch datasets.</p>
|
|
873
896
|
* @public
|
|
874
897
|
*/
|
|
875
898
|
destination?: Destination | undefined;
|
|
@@ -20,6 +20,7 @@ export declare var AmpConfiguration$: StaticStructureSchema;
|
|
|
20
20
|
export declare var AnomalyDetectorDescription$: StaticStructureSchema;
|
|
21
21
|
export declare var AnomalyDetectorStatus$: StaticStructureSchema;
|
|
22
22
|
export declare var AnomalyDetectorSummary$: StaticStructureSchema;
|
|
23
|
+
export declare var CloudWatchConfiguration$: StaticStructureSchema;
|
|
23
24
|
export declare var CloudWatchLogDestination$: StaticStructureSchema;
|
|
24
25
|
export declare var ComponentConfig$: StaticStructureSchema;
|
|
25
26
|
export declare var CreateAlertManagerDefinitionRequest$: StaticStructureSchema;
|
|
@@ -64,18 +64,32 @@ export interface ListTagsForResourceResponse {
|
|
|
64
64
|
export interface AmpConfiguration {
|
|
65
65
|
workspaceArn: string | undefined;
|
|
66
66
|
}
|
|
67
|
-
export
|
|
67
|
+
export interface CloudWatchConfiguration {
|
|
68
|
+
datasetArn: string | undefined;
|
|
69
|
+
}
|
|
70
|
+
export type Destination =
|
|
71
|
+
| Destination.AmpConfigurationMember
|
|
72
|
+
| Destination.CloudWatchConfigurationMember
|
|
73
|
+
| Destination.$UnknownMember;
|
|
68
74
|
export declare namespace Destination {
|
|
69
75
|
interface AmpConfigurationMember {
|
|
70
76
|
ampConfiguration: AmpConfiguration;
|
|
77
|
+
cloudWatchConfiguration?: never;
|
|
78
|
+
$unknown?: never;
|
|
79
|
+
}
|
|
80
|
+
interface CloudWatchConfigurationMember {
|
|
81
|
+
ampConfiguration?: never;
|
|
82
|
+
cloudWatchConfiguration: CloudWatchConfiguration;
|
|
71
83
|
$unknown?: never;
|
|
72
84
|
}
|
|
73
85
|
interface $UnknownMember {
|
|
74
86
|
ampConfiguration?: never;
|
|
87
|
+
cloudWatchConfiguration?: never;
|
|
75
88
|
$unknown: [string, any];
|
|
76
89
|
}
|
|
77
90
|
interface Visitor<T> {
|
|
78
91
|
ampConfiguration: (value: AmpConfiguration) => T;
|
|
92
|
+
cloudWatchConfiguration: (value: CloudWatchConfiguration) => T;
|
|
79
93
|
_: (name: string, value: any) => T;
|
|
80
94
|
}
|
|
81
95
|
}
|
|
@@ -20,6 +20,7 @@ export declare var AmpConfiguration$: StaticStructureSchema;
|
|
|
20
20
|
export declare var AnomalyDetectorDescription$: StaticStructureSchema;
|
|
21
21
|
export declare var AnomalyDetectorStatus$: StaticStructureSchema;
|
|
22
22
|
export declare var AnomalyDetectorSummary$: StaticStructureSchema;
|
|
23
|
+
export declare var CloudWatchConfiguration$: StaticStructureSchema;
|
|
23
24
|
export declare var CloudWatchLogDestination$: StaticStructureSchema;
|
|
24
25
|
export declare var ComponentConfig$: StaticStructureSchema;
|
|
25
26
|
export declare var CreateAlertManagerDefinitionRequest$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1093.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-amp",
|
|
6
6
|
"license": "Apache-2.0",
|