@aws-sdk/client-amp 3.738.0 → 3.740.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 +4 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateScraperCommand.d.ts +4 -0
- package/dist-types/commands/DescribeScraperCommand.d.ts +4 -0
- package/dist-types/commands/ListScrapersCommand.d.ts +4 -0
- package/dist-types/commands/UpdateScraperCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -693,6 +693,7 @@ var se_CreateScraperCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
693
693
|
alias: [],
|
|
694
694
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
695
695
|
destination: (_) => (0, import_smithy_client._json)(_),
|
|
696
|
+
roleConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
696
697
|
scrapeConfiguration: (_) => se_ScrapeConfiguration(_, context),
|
|
697
698
|
source: (_) => (0, import_smithy_client._json)(_),
|
|
698
699
|
tags: (_) => (0, import_smithy_client._json)(_)
|
|
@@ -976,6 +977,7 @@ var se_UpdateScraperCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
976
977
|
alias: [],
|
|
977
978
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
978
979
|
destination: (_) => (0, import_smithy_client._json)(_),
|
|
980
|
+
roleConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
979
981
|
scrapeConfiguration: (_) => se_ScrapeConfiguration(_, context)
|
|
980
982
|
})
|
|
981
983
|
);
|
|
@@ -1580,6 +1582,7 @@ var de_ScraperDescription = /* @__PURE__ */ __name((output, context) => {
|
|
|
1580
1582
|
destination: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1581
1583
|
lastModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1582
1584
|
roleArn: import_smithy_client.expectString,
|
|
1585
|
+
roleConfiguration: import_smithy_client._json,
|
|
1583
1586
|
scrapeConfiguration: (_) => de_ScrapeConfiguration((0, import_core2.awsExpectUnion)(_), context),
|
|
1584
1587
|
scraperId: import_smithy_client.expectString,
|
|
1585
1588
|
source: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
@@ -1596,6 +1599,7 @@ var de_ScraperSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
1596
1599
|
destination: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1597
1600
|
lastModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1598
1601
|
roleArn: import_smithy_client.expectString,
|
|
1602
|
+
roleConfiguration: import_smithy_client._json,
|
|
1599
1603
|
scraperId: import_smithy_client.expectString,
|
|
1600
1604
|
source: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1601
1605
|
status: import_smithy_client._json,
|
|
@@ -62,6 +62,7 @@ export const se_CreateScraperCommand = async (input, context) => {
|
|
|
62
62
|
alias: [],
|
|
63
63
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
64
64
|
destination: (_) => _json(_),
|
|
65
|
+
roleConfiguration: (_) => _json(_),
|
|
65
66
|
scrapeConfiguration: (_) => se_ScrapeConfiguration(_, context),
|
|
66
67
|
source: (_) => _json(_),
|
|
67
68
|
tags: (_) => _json(_),
|
|
@@ -333,6 +334,7 @@ export const se_UpdateScraperCommand = async (input, context) => {
|
|
|
333
334
|
alias: [],
|
|
334
335
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
335
336
|
destination: (_) => _json(_),
|
|
337
|
+
roleConfiguration: (_) => _json(_),
|
|
336
338
|
scrapeConfiguration: (_) => se_ScrapeConfiguration(_, context),
|
|
337
339
|
}));
|
|
338
340
|
b.m("PUT").h(headers).b(body);
|
|
@@ -936,6 +938,7 @@ const de_ScraperDescription = (output, context) => {
|
|
|
936
938
|
destination: (_) => _json(__expectUnion(_)),
|
|
937
939
|
lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
938
940
|
roleArn: __expectString,
|
|
941
|
+
roleConfiguration: _json,
|
|
939
942
|
scrapeConfiguration: (_) => de_ScrapeConfiguration(__expectUnion(_), context),
|
|
940
943
|
scraperId: __expectString,
|
|
941
944
|
source: (_) => _json(__expectUnion(_)),
|
|
@@ -952,6 +955,7 @@ const de_ScraperSummary = (output, context) => {
|
|
|
952
955
|
destination: (_) => _json(__expectUnion(_)),
|
|
953
956
|
lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
954
957
|
roleArn: __expectString,
|
|
958
|
+
roleConfiguration: _json,
|
|
955
959
|
scraperId: __expectString,
|
|
956
960
|
source: (_) => _json(__expectUnion(_)),
|
|
957
961
|
status: _json,
|
|
@@ -72,6 +72,10 @@ declare const CreateScraperCommand_base: {
|
|
|
72
72
|
* workspaceArn: "STRING_VALUE", // required
|
|
73
73
|
* },
|
|
74
74
|
* },
|
|
75
|
+
* roleConfiguration: { // RoleConfiguration
|
|
76
|
+
* sourceRoleArn: "STRING_VALUE",
|
|
77
|
+
* targetRoleArn: "STRING_VALUE",
|
|
78
|
+
* },
|
|
75
79
|
* clientToken: "STRING_VALUE",
|
|
76
80
|
* tags: { // TagMap
|
|
77
81
|
* "<keys>": "STRING_VALUE",
|
|
@@ -74,6 +74,10 @@ declare const DescribeScraperCommand_base: {
|
|
|
74
74
|
* // workspaceArn: "STRING_VALUE", // required
|
|
75
75
|
* // },
|
|
76
76
|
* // },
|
|
77
|
+
* // roleConfiguration: { // RoleConfiguration
|
|
78
|
+
* // sourceRoleArn: "STRING_VALUE",
|
|
79
|
+
* // targetRoleArn: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
77
81
|
* // },
|
|
78
82
|
* // };
|
|
79
83
|
*
|
|
@@ -79,6 +79,10 @@ declare const ListScrapersCommand_base: {
|
|
|
79
79
|
* // workspaceArn: "STRING_VALUE", // required
|
|
80
80
|
* // },
|
|
81
81
|
* // },
|
|
82
|
+
* // roleConfiguration: { // RoleConfiguration
|
|
83
|
+
* // sourceRoleArn: "STRING_VALUE",
|
|
84
|
+
* // targetRoleArn: "STRING_VALUE",
|
|
85
|
+
* // },
|
|
82
86
|
* // },
|
|
83
87
|
* // ],
|
|
84
88
|
* // nextToken: "STRING_VALUE",
|
|
@@ -48,6 +48,10 @@ declare const UpdateScraperCommand_base: {
|
|
|
48
48
|
* workspaceArn: "STRING_VALUE", // required
|
|
49
49
|
* },
|
|
50
50
|
* },
|
|
51
|
+
* roleConfiguration: { // RoleConfiguration
|
|
52
|
+
* sourceRoleArn: "STRING_VALUE",
|
|
53
|
+
* targetRoleArn: "STRING_VALUE",
|
|
54
|
+
* },
|
|
51
55
|
* clientToken: "STRING_VALUE",
|
|
52
56
|
* };
|
|
53
57
|
* const command = new UpdateScraperCommand(input);
|
|
@@ -456,6 +456,22 @@ export declare namespace Destination {
|
|
|
456
456
|
}
|
|
457
457
|
const visit: <T>(value: Destination, visitor: Visitor<T>) => T;
|
|
458
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* <p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
export interface RoleConfiguration {
|
|
464
|
+
/**
|
|
465
|
+
* <p>A ARN identifying the source role configuration.</p>
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
468
|
+
sourceRoleArn?: string | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* <p>A ARN identifying the target role configuration.</p>
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
targetRoleArn?: string | undefined;
|
|
474
|
+
}
|
|
459
475
|
/**
|
|
460
476
|
* <p>A scrape configuration for a scraper, base 64 encoded. For more information, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration">Scraper configuration</a> in the <i>Amazon Managed Service for Prometheus User
|
|
461
477
|
* Guide</i>.</p>
|
|
@@ -566,6 +582,11 @@ export interface CreateScraperRequest {
|
|
|
566
582
|
* @public
|
|
567
583
|
*/
|
|
568
584
|
destination: Destination | undefined;
|
|
585
|
+
/**
|
|
586
|
+
* <p>The scraper role configuration for the workspace.</p>
|
|
587
|
+
* @public
|
|
588
|
+
*/
|
|
589
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
569
590
|
/**
|
|
570
591
|
* <p>(Optional) A unique, case-sensitive identifier that you can provide to ensure the
|
|
571
592
|
* idempotency of the request.</p>
|
|
@@ -767,6 +788,11 @@ export interface ScraperDescription {
|
|
|
767
788
|
* @public
|
|
768
789
|
*/
|
|
769
790
|
destination: Destination | undefined;
|
|
791
|
+
/**
|
|
792
|
+
* <p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>
|
|
793
|
+
* @public
|
|
794
|
+
*/
|
|
795
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
770
796
|
}
|
|
771
797
|
/**
|
|
772
798
|
* <p>Represents the output of a <code>DescribeScraper</code> operation.</p>
|
|
@@ -879,6 +905,11 @@ export interface ScraperSummary {
|
|
|
879
905
|
* @public
|
|
880
906
|
*/
|
|
881
907
|
destination: Destination | undefined;
|
|
908
|
+
/**
|
|
909
|
+
* <p>To configure roles that allows users to write to an Amazon Managed Service for Prometheus workspace in a different account.</p>
|
|
910
|
+
* @public
|
|
911
|
+
*/
|
|
912
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
882
913
|
}
|
|
883
914
|
/**
|
|
884
915
|
* <p>Represents the output of a <code>ListScrapers</code> operation.</p>
|
|
@@ -928,6 +959,11 @@ export interface UpdateScraperRequest {
|
|
|
928
959
|
* @public
|
|
929
960
|
*/
|
|
930
961
|
destination?: Destination | undefined;
|
|
962
|
+
/**
|
|
963
|
+
* <p>The scraper role configuration for the workspace.</p>
|
|
964
|
+
* @public
|
|
965
|
+
*/
|
|
966
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
931
967
|
/**
|
|
932
968
|
* <p>A unique identifier that you can provide to ensure the idempotency of the request.
|
|
933
969
|
* Case-sensitive.</p>
|
|
@@ -152,6 +152,10 @@ export declare namespace Destination {
|
|
|
152
152
|
}
|
|
153
153
|
const visit: <T>(value: Destination, visitor: Visitor<T>) => T;
|
|
154
154
|
}
|
|
155
|
+
export interface RoleConfiguration {
|
|
156
|
+
sourceRoleArn?: string | undefined;
|
|
157
|
+
targetRoleArn?: string | undefined;
|
|
158
|
+
}
|
|
155
159
|
export type ScrapeConfiguration =
|
|
156
160
|
| ScrapeConfiguration.ConfigurationBlobMember
|
|
157
161
|
| ScrapeConfiguration.$UnknownMember;
|
|
@@ -196,6 +200,7 @@ export interface CreateScraperRequest {
|
|
|
196
200
|
scrapeConfiguration: ScrapeConfiguration | undefined;
|
|
197
201
|
source: Source | undefined;
|
|
198
202
|
destination: Destination | undefined;
|
|
203
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
199
204
|
clientToken?: string | undefined;
|
|
200
205
|
tags?: Record<string, string> | undefined;
|
|
201
206
|
}
|
|
@@ -243,6 +248,7 @@ export interface ScraperDescription {
|
|
|
243
248
|
scrapeConfiguration: ScrapeConfiguration | undefined;
|
|
244
249
|
source: Source | undefined;
|
|
245
250
|
destination: Destination | undefined;
|
|
251
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
246
252
|
}
|
|
247
253
|
export interface DescribeScraperResponse {
|
|
248
254
|
scraper: ScraperDescription | undefined;
|
|
@@ -264,6 +270,7 @@ export interface ScraperSummary {
|
|
|
264
270
|
statusReason?: string | undefined;
|
|
265
271
|
source: Source | undefined;
|
|
266
272
|
destination: Destination | undefined;
|
|
273
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
267
274
|
}
|
|
268
275
|
export interface ListScrapersResponse {
|
|
269
276
|
scrapers: ScraperSummary[] | undefined;
|
|
@@ -274,6 +281,7 @@ export interface UpdateScraperRequest {
|
|
|
274
281
|
alias?: string | undefined;
|
|
275
282
|
scrapeConfiguration?: ScrapeConfiguration | undefined;
|
|
276
283
|
destination?: Destination | undefined;
|
|
284
|
+
roleConfiguration?: RoleConfiguration | undefined;
|
|
277
285
|
clientToken?: string | undefined;
|
|
278
286
|
}
|
|
279
287
|
export interface UpdateScraperResponse {
|
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.
|
|
4
|
+
"version": "3.740.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",
|