@aws-sdk/client-amp 3.812.0 → 3.817.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/README.md +33 -18
- package/dist-cjs/index.js +216 -0
- package/dist-cjs/runtimeConfig.js +4 -1
- package/dist-es/Amp.js +8 -0
- package/dist-es/commands/CreateQueryLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/DeleteQueryLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/DescribeQueryLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/UpdateQueryLoggingConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +112 -0
- package/dist-es/runtimeConfig.js +4 -1
- package/dist-types/Amp.d.ts +29 -18
- package/dist-types/AmpClient.d.ts +7 -20
- package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +2 -6
- package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +2 -5
- package/dist-types/commands/CreateQueryLoggingConfigurationCommand.d.ts +98 -0
- package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +2 -7
- package/dist-types/commands/CreateScraperCommand.d.ts +2 -20
- package/dist-types/commands/CreateWorkspaceCommand.d.ts +2 -5
- package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +1 -2
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +2 -3
- package/dist-types/commands/DeleteQueryLoggingConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +1 -2
- package/dist-types/commands/DeleteScraperCommand.d.ts +2 -4
- package/dist-types/commands/DeleteWorkspaceCommand.d.ts +2 -7
- package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +2 -4
- package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/DescribeQueryLoggingConfigurationCommand.d.ts +102 -0
- package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +2 -4
- package/dist-types/commands/DescribeScraperCommand.d.ts +2 -4
- package/dist-types/commands/DescribeWorkspaceCommand.d.ts +1 -2
- package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +1 -2
- package/dist-types/commands/ListScrapersCommand.d.ts +2 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -5
- package/dist-types/commands/ListWorkspacesCommand.d.ts +2 -4
- package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +2 -5
- package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +2 -9
- package/dist-types/commands/TagResourceCommand.d.ts +2 -9
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -4
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/UpdateQueryLoggingConfigurationCommand.d.ts +101 -0
- package/dist-types/commands/UpdateScraperCommand.d.ts +2 -6
- package/dist-types/commands/UpdateWorkspaceAliasCommand.d.ts +1 -2
- package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +2 -5
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/index.d.ts +1 -18
- package/dist-types/models/models_0.d.ts +294 -207
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Amp.d.ts +74 -0
- package/dist-types/ts3.4/AmpClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateQueryLoggingConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteQueryLoggingConfigurationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DescribeQueryLoggingConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateQueryLoggingConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +57 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,24 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for
|
|
10
|
-
container metrics that makes it easier to securely monitor container environments at
|
|
11
|
-
scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data
|
|
12
|
-
model and query language that you use today to monitor the performance of your
|
|
13
|
-
containerized workloads, and also enjoy improved scalability, availability, and security
|
|
14
|
-
without having to manage the underlying infrastructure.</p>
|
|
15
|
-
<p>For more information about Amazon Managed Service for Prometheus, see the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html">Amazon Managed Service for Prometheus</a> User Guide.</p>
|
|
16
|
-
<p>Amazon Managed Service for Prometheus includes two APIs.</p>
|
|
17
|
-
<ul>
|
|
18
|
-
<li>
|
|
19
|
-
<p>Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert
|
|
20
|
-
managers.</p>
|
|
21
|
-
</li>
|
|
22
|
-
<li>
|
|
23
|
-
<p>Use the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis">Prometheus-compatible API</a> to work within your Prometheus
|
|
24
|
-
workspace.</p>
|
|
25
|
-
</li>
|
|
26
|
-
</ul>
|
|
9
|
+
<p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for container metrics that makes it easier to securely monitor container environments at scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data model and query language that you use today to monitor the performance of your containerized workloads, and also enjoy improved scalability, availability, and security without having to manage the underlying infrastructure.</p> <p>For more information about Amazon Managed Service for Prometheus, see the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html">Amazon Managed Service for Prometheus</a> User Guide.</p> <p>Amazon Managed Service for Prometheus includes two APIs.</p> <ul> <li> <p>Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert managers.</p> </li> <li> <p>Use the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis">Prometheus-compatible API</a> to work within your Prometheus workspace.</p> </li> </ul>
|
|
27
10
|
|
|
28
11
|
## Installing
|
|
29
12
|
|
|
@@ -235,6 +218,14 @@ CreateLoggingConfiguration
|
|
|
235
218
|
|
|
236
219
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateLoggingConfigurationCommandOutput/)
|
|
237
220
|
|
|
221
|
+
</details>
|
|
222
|
+
<details>
|
|
223
|
+
<summary>
|
|
224
|
+
CreateQueryLoggingConfiguration
|
|
225
|
+
</summary>
|
|
226
|
+
|
|
227
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/CreateQueryLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateQueryLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/CreateQueryLoggingConfigurationCommandOutput/)
|
|
228
|
+
|
|
238
229
|
</details>
|
|
239
230
|
<details>
|
|
240
231
|
<summary>
|
|
@@ -275,6 +266,14 @@ DeleteLoggingConfiguration
|
|
|
275
266
|
|
|
276
267
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteLoggingConfigurationCommandOutput/)
|
|
277
268
|
|
|
269
|
+
</details>
|
|
270
|
+
<details>
|
|
271
|
+
<summary>
|
|
272
|
+
DeleteQueryLoggingConfiguration
|
|
273
|
+
</summary>
|
|
274
|
+
|
|
275
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DeleteQueryLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteQueryLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DeleteQueryLoggingConfigurationCommandOutput/)
|
|
276
|
+
|
|
278
277
|
</details>
|
|
279
278
|
<details>
|
|
280
279
|
<summary>
|
|
@@ -315,6 +314,14 @@ DescribeLoggingConfiguration
|
|
|
315
314
|
|
|
316
315
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeLoggingConfigurationCommandOutput/)
|
|
317
316
|
|
|
317
|
+
</details>
|
|
318
|
+
<details>
|
|
319
|
+
<summary>
|
|
320
|
+
DescribeQueryLoggingConfiguration
|
|
321
|
+
</summary>
|
|
322
|
+
|
|
323
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/DescribeQueryLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeQueryLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/DescribeQueryLoggingConfigurationCommandOutput/)
|
|
324
|
+
|
|
318
325
|
</details>
|
|
319
326
|
<details>
|
|
320
327
|
<summary>
|
|
@@ -427,6 +434,14 @@ UpdateLoggingConfiguration
|
|
|
427
434
|
|
|
428
435
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateLoggingConfigurationCommandOutput/)
|
|
429
436
|
|
|
437
|
+
</details>
|
|
438
|
+
<details>
|
|
439
|
+
<summary>
|
|
440
|
+
UpdateQueryLoggingConfiguration
|
|
441
|
+
</summary>
|
|
442
|
+
|
|
443
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/amp/command/UpdateQueryLoggingConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateQueryLoggingConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-amp/Interface/UpdateQueryLoggingConfigurationCommandOutput/)
|
|
444
|
+
|
|
430
445
|
</details>
|
|
431
446
|
<details>
|
|
432
447
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -29,16 +29,19 @@ __export(index_exports, {
|
|
|
29
29
|
ConflictException: () => ConflictException,
|
|
30
30
|
CreateAlertManagerDefinitionCommand: () => CreateAlertManagerDefinitionCommand,
|
|
31
31
|
CreateLoggingConfigurationCommand: () => CreateLoggingConfigurationCommand,
|
|
32
|
+
CreateQueryLoggingConfigurationCommand: () => CreateQueryLoggingConfigurationCommand,
|
|
32
33
|
CreateRuleGroupsNamespaceCommand: () => CreateRuleGroupsNamespaceCommand,
|
|
33
34
|
CreateScraperCommand: () => CreateScraperCommand,
|
|
34
35
|
CreateWorkspaceCommand: () => CreateWorkspaceCommand,
|
|
35
36
|
DeleteAlertManagerDefinitionCommand: () => DeleteAlertManagerDefinitionCommand,
|
|
36
37
|
DeleteLoggingConfigurationCommand: () => DeleteLoggingConfigurationCommand,
|
|
38
|
+
DeleteQueryLoggingConfigurationCommand: () => DeleteQueryLoggingConfigurationCommand,
|
|
37
39
|
DeleteRuleGroupsNamespaceCommand: () => DeleteRuleGroupsNamespaceCommand,
|
|
38
40
|
DeleteScraperCommand: () => DeleteScraperCommand,
|
|
39
41
|
DeleteWorkspaceCommand: () => DeleteWorkspaceCommand,
|
|
40
42
|
DescribeAlertManagerDefinitionCommand: () => DescribeAlertManagerDefinitionCommand,
|
|
41
43
|
DescribeLoggingConfigurationCommand: () => DescribeLoggingConfigurationCommand,
|
|
44
|
+
DescribeQueryLoggingConfigurationCommand: () => DescribeQueryLoggingConfigurationCommand,
|
|
42
45
|
DescribeRuleGroupsNamespaceCommand: () => DescribeRuleGroupsNamespaceCommand,
|
|
43
46
|
DescribeScraperCommand: () => DescribeScraperCommand,
|
|
44
47
|
DescribeWorkspaceCommand: () => DescribeWorkspaceCommand,
|
|
@@ -53,6 +56,7 @@ __export(index_exports, {
|
|
|
53
56
|
LoggingConfigurationStatusCode: () => LoggingConfigurationStatusCode,
|
|
54
57
|
PutAlertManagerDefinitionCommand: () => PutAlertManagerDefinitionCommand,
|
|
55
58
|
PutRuleGroupsNamespaceCommand: () => PutRuleGroupsNamespaceCommand,
|
|
59
|
+
QueryLoggingConfigurationStatusCode: () => QueryLoggingConfigurationStatusCode,
|
|
56
60
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
57
61
|
RuleGroupsNamespaceStatusCode: () => RuleGroupsNamespaceStatusCode,
|
|
58
62
|
ScrapeConfiguration: () => ScrapeConfiguration,
|
|
@@ -63,6 +67,7 @@ __export(index_exports, {
|
|
|
63
67
|
ThrottlingException: () => ThrottlingException,
|
|
64
68
|
UntagResourceCommand: () => UntagResourceCommand,
|
|
65
69
|
UpdateLoggingConfigurationCommand: () => UpdateLoggingConfigurationCommand,
|
|
70
|
+
UpdateQueryLoggingConfigurationCommand: () => UpdateQueryLoggingConfigurationCommand,
|
|
66
71
|
UpdateScraperCommand: () => UpdateScraperCommand,
|
|
67
72
|
UpdateWorkspaceAliasCommand: () => UpdateWorkspaceAliasCommand,
|
|
68
73
|
UpdateWorkspaceConfigurationCommand: () => UpdateWorkspaceConfigurationCommand,
|
|
@@ -599,6 +604,32 @@ var LoggingConfigurationStatusCode = {
|
|
|
599
604
|
*/
|
|
600
605
|
UPDATING: "UPDATING"
|
|
601
606
|
};
|
|
607
|
+
var QueryLoggingConfigurationStatusCode = {
|
|
608
|
+
/**
|
|
609
|
+
* Query logging configuration is active.
|
|
610
|
+
*/
|
|
611
|
+
ACTIVE: "ACTIVE",
|
|
612
|
+
/**
|
|
613
|
+
* Query logging configuration is being created.
|
|
614
|
+
*/
|
|
615
|
+
CREATING: "CREATING",
|
|
616
|
+
/**
|
|
617
|
+
* Query logging configuration creation failed.
|
|
618
|
+
*/
|
|
619
|
+
CREATION_FAILED: "CREATION_FAILED",
|
|
620
|
+
/**
|
|
621
|
+
* Query logging configuration is being deleted.
|
|
622
|
+
*/
|
|
623
|
+
DELETING: "DELETING",
|
|
624
|
+
/**
|
|
625
|
+
* Query logging configuration update failed.
|
|
626
|
+
*/
|
|
627
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
628
|
+
/**
|
|
629
|
+
* Query logging configuration is being updated.
|
|
630
|
+
*/
|
|
631
|
+
UPDATING: "UPDATING"
|
|
632
|
+
};
|
|
602
633
|
var RuleGroupsNamespaceStatusCode = {
|
|
603
634
|
/**
|
|
604
635
|
* Namespace has been created/updated. Update/Deletion is disallowed until namespace is ACTIVE and workspace status is ACTIVE.
|
|
@@ -675,6 +706,23 @@ var se_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input,
|
|
|
675
706
|
b.m("POST").h(headers).b(body);
|
|
676
707
|
return b.build();
|
|
677
708
|
}, "se_CreateLoggingConfigurationCommand");
|
|
709
|
+
var se_CreateQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
710
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
711
|
+
const headers = {
|
|
712
|
+
"content-type": "application/json"
|
|
713
|
+
};
|
|
714
|
+
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
715
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
716
|
+
let body;
|
|
717
|
+
body = JSON.stringify(
|
|
718
|
+
(0, import_smithy_client.take)(input, {
|
|
719
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
720
|
+
destinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinations")
|
|
721
|
+
})
|
|
722
|
+
);
|
|
723
|
+
b.m("POST").h(headers).b(body);
|
|
724
|
+
return b.build();
|
|
725
|
+
}, "se_CreateQueryLoggingConfigurationCommand");
|
|
678
726
|
var se_CreateRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
679
727
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
680
728
|
const headers = {
|
|
@@ -757,6 +805,18 @@ var se_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input,
|
|
|
757
805
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
758
806
|
return b.build();
|
|
759
807
|
}, "se_DeleteLoggingConfigurationCommand");
|
|
808
|
+
var se_DeleteQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
809
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
810
|
+
const headers = {};
|
|
811
|
+
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
812
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
813
|
+
const query = (0, import_smithy_client.map)({
|
|
814
|
+
[_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
|
|
815
|
+
});
|
|
816
|
+
let body;
|
|
817
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
818
|
+
return b.build();
|
|
819
|
+
}, "se_DeleteQueryLoggingConfigurationCommand");
|
|
760
820
|
var se_DeleteRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
761
821
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
762
822
|
const headers = {};
|
|
@@ -812,6 +872,15 @@ var se_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input
|
|
|
812
872
|
b.m("GET").h(headers).b(body);
|
|
813
873
|
return b.build();
|
|
814
874
|
}, "se_DescribeLoggingConfigurationCommand");
|
|
875
|
+
var se_DescribeQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
876
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
877
|
+
const headers = {};
|
|
878
|
+
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
879
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
880
|
+
let body;
|
|
881
|
+
b.m("GET").h(headers).b(body);
|
|
882
|
+
return b.build();
|
|
883
|
+
}, "se_DescribeQueryLoggingConfigurationCommand");
|
|
815
884
|
var se_DescribeRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
816
885
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
817
886
|
const headers = {};
|
|
@@ -986,6 +1055,23 @@ var se_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input,
|
|
|
986
1055
|
b.m("PUT").h(headers).b(body);
|
|
987
1056
|
return b.build();
|
|
988
1057
|
}, "se_UpdateLoggingConfigurationCommand");
|
|
1058
|
+
var se_UpdateQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1059
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1060
|
+
const headers = {
|
|
1061
|
+
"content-type": "application/json"
|
|
1062
|
+
};
|
|
1063
|
+
b.bp("/workspaces/{workspaceId}/logging/query");
|
|
1064
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1065
|
+
let body;
|
|
1066
|
+
body = JSON.stringify(
|
|
1067
|
+
(0, import_smithy_client.take)(input, {
|
|
1068
|
+
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1069
|
+
destinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinations")
|
|
1070
|
+
})
|
|
1071
|
+
);
|
|
1072
|
+
b.m("PUT").h(headers).b(body);
|
|
1073
|
+
return b.build();
|
|
1074
|
+
}, "se_UpdateQueryLoggingConfigurationCommand");
|
|
989
1075
|
var se_UpdateScraperCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
990
1076
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
991
1077
|
const headers = {
|
|
@@ -1069,6 +1155,20 @@ var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1069
1155
|
Object.assign(contents, doc);
|
|
1070
1156
|
return contents;
|
|
1071
1157
|
}, "de_CreateLoggingConfigurationCommand");
|
|
1158
|
+
var de_CreateQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1160
|
+
return de_CommandError(output, context);
|
|
1161
|
+
}
|
|
1162
|
+
const contents = (0, import_smithy_client.map)({
|
|
1163
|
+
$metadata: deserializeMetadata(output)
|
|
1164
|
+
});
|
|
1165
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1166
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1167
|
+
status: import_smithy_client._json
|
|
1168
|
+
});
|
|
1169
|
+
Object.assign(contents, doc);
|
|
1170
|
+
return contents;
|
|
1171
|
+
}, "de_CreateQueryLoggingConfigurationCommand");
|
|
1072
1172
|
var de_CreateRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
1173
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1074
1174
|
return de_CommandError(output, context);
|
|
@@ -1141,6 +1241,16 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1141
1241
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1142
1242
|
return contents;
|
|
1143
1243
|
}, "de_DeleteLoggingConfigurationCommand");
|
|
1244
|
+
var de_DeleteQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1245
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1246
|
+
return de_CommandError(output, context);
|
|
1247
|
+
}
|
|
1248
|
+
const contents = (0, import_smithy_client.map)({
|
|
1249
|
+
$metadata: deserializeMetadata(output)
|
|
1250
|
+
});
|
|
1251
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1252
|
+
return contents;
|
|
1253
|
+
}, "de_DeleteQueryLoggingConfigurationCommand");
|
|
1144
1254
|
var de_DeleteRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
1255
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1146
1256
|
return de_CommandError(output, context);
|
|
@@ -1204,6 +1314,20 @@ var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1204
1314
|
Object.assign(contents, doc);
|
|
1205
1315
|
return contents;
|
|
1206
1316
|
}, "de_DescribeLoggingConfigurationCommand");
|
|
1317
|
+
var de_DescribeQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1318
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
+
return de_CommandError(output, context);
|
|
1320
|
+
}
|
|
1321
|
+
const contents = (0, import_smithy_client.map)({
|
|
1322
|
+
$metadata: deserializeMetadata(output)
|
|
1323
|
+
});
|
|
1324
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1325
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1326
|
+
queryLoggingConfiguration: /* @__PURE__ */ __name((_) => de_QueryLoggingConfigurationMetadata(_, context), "queryLoggingConfiguration")
|
|
1327
|
+
});
|
|
1328
|
+
Object.assign(contents, doc);
|
|
1329
|
+
return contents;
|
|
1330
|
+
}, "de_DescribeQueryLoggingConfigurationCommand");
|
|
1207
1331
|
var de_DescribeRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1209
1333
|
return de_CommandError(output, context);
|
|
@@ -1398,6 +1522,20 @@ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1398
1522
|
Object.assign(contents, doc);
|
|
1399
1523
|
return contents;
|
|
1400
1524
|
}, "de_UpdateLoggingConfigurationCommand");
|
|
1525
|
+
var de_UpdateQueryLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1527
|
+
return de_CommandError(output, context);
|
|
1528
|
+
}
|
|
1529
|
+
const contents = (0, import_smithy_client.map)({
|
|
1530
|
+
$metadata: deserializeMetadata(output)
|
|
1531
|
+
});
|
|
1532
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1533
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1534
|
+
status: import_smithy_client._json
|
|
1535
|
+
});
|
|
1536
|
+
Object.assign(contents, doc);
|
|
1537
|
+
return contents;
|
|
1538
|
+
}, "de_UpdateQueryLoggingConfigurationCommand");
|
|
1401
1539
|
var de_UpdateScraperCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1402
1540
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1403
1541
|
return de_CommandError(output, context);
|
|
@@ -1607,6 +1745,15 @@ var de_LoggingConfigurationMetadata = /* @__PURE__ */ __name((output, context) =
|
|
|
1607
1745
|
workspace: import_smithy_client.expectString
|
|
1608
1746
|
});
|
|
1609
1747
|
}, "de_LoggingConfigurationMetadata");
|
|
1748
|
+
var de_QueryLoggingConfigurationMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
1749
|
+
return (0, import_smithy_client.take)(output, {
|
|
1750
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
1751
|
+
destinations: import_smithy_client._json,
|
|
1752
|
+
modifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modifiedAt"),
|
|
1753
|
+
status: import_smithy_client._json,
|
|
1754
|
+
workspace: import_smithy_client.expectString
|
|
1755
|
+
});
|
|
1756
|
+
}, "de_QueryLoggingConfigurationMetadata");
|
|
1610
1757
|
var de_RuleGroupsNamespaceDescription = /* @__PURE__ */ __name((output, context) => {
|
|
1611
1758
|
return (0, import_smithy_client.take)(output, {
|
|
1612
1759
|
arn: import_smithy_client.expectString,
|
|
@@ -1752,6 +1899,21 @@ var CreateLoggingConfigurationCommand = class extends import_smithy_client.Comma
|
|
|
1752
1899
|
}
|
|
1753
1900
|
};
|
|
1754
1901
|
|
|
1902
|
+
// src/commands/CreateQueryLoggingConfigurationCommand.ts
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
var CreateQueryLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1907
|
+
return [
|
|
1908
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1909
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1910
|
+
];
|
|
1911
|
+
}).s("AmazonPrometheusService", "CreateQueryLoggingConfiguration", {}).n("AmpClient", "CreateQueryLoggingConfigurationCommand").f(void 0, void 0).ser(se_CreateQueryLoggingConfigurationCommand).de(de_CreateQueryLoggingConfigurationCommand).build() {
|
|
1912
|
+
static {
|
|
1913
|
+
__name(this, "CreateQueryLoggingConfigurationCommand");
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1916
|
+
|
|
1755
1917
|
// src/commands/CreateRuleGroupsNamespaceCommand.ts
|
|
1756
1918
|
|
|
1757
1919
|
|
|
@@ -1827,6 +1989,21 @@ var DeleteLoggingConfigurationCommand = class extends import_smithy_client.Comma
|
|
|
1827
1989
|
}
|
|
1828
1990
|
};
|
|
1829
1991
|
|
|
1992
|
+
// src/commands/DeleteQueryLoggingConfigurationCommand.ts
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
var DeleteQueryLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1997
|
+
return [
|
|
1998
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1999
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2000
|
+
];
|
|
2001
|
+
}).s("AmazonPrometheusService", "DeleteQueryLoggingConfiguration", {}).n("AmpClient", "DeleteQueryLoggingConfigurationCommand").f(void 0, void 0).ser(se_DeleteQueryLoggingConfigurationCommand).de(de_DeleteQueryLoggingConfigurationCommand).build() {
|
|
2002
|
+
static {
|
|
2003
|
+
__name(this, "DeleteQueryLoggingConfigurationCommand");
|
|
2004
|
+
}
|
|
2005
|
+
};
|
|
2006
|
+
|
|
1830
2007
|
// src/commands/DeleteRuleGroupsNamespaceCommand.ts
|
|
1831
2008
|
|
|
1832
2009
|
|
|
@@ -1902,6 +2079,21 @@ var DescribeLoggingConfigurationCommand = class extends import_smithy_client.Com
|
|
|
1902
2079
|
}
|
|
1903
2080
|
};
|
|
1904
2081
|
|
|
2082
|
+
// src/commands/DescribeQueryLoggingConfigurationCommand.ts
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
|
|
2086
|
+
var DescribeQueryLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2087
|
+
return [
|
|
2088
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2089
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2090
|
+
];
|
|
2091
|
+
}).s("AmazonPrometheusService", "DescribeQueryLoggingConfiguration", {}).n("AmpClient", "DescribeQueryLoggingConfigurationCommand").f(void 0, void 0).ser(se_DescribeQueryLoggingConfigurationCommand).de(de_DescribeQueryLoggingConfigurationCommand).build() {
|
|
2092
|
+
static {
|
|
2093
|
+
__name(this, "DescribeQueryLoggingConfigurationCommand");
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
2096
|
+
|
|
1905
2097
|
// src/commands/DescribeRuleGroupsNamespaceCommand.ts
|
|
1906
2098
|
|
|
1907
2099
|
|
|
@@ -2112,6 +2304,21 @@ var UpdateLoggingConfigurationCommand = class extends import_smithy_client.Comma
|
|
|
2112
2304
|
}
|
|
2113
2305
|
};
|
|
2114
2306
|
|
|
2307
|
+
// src/commands/UpdateQueryLoggingConfigurationCommand.ts
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
|
|
2311
|
+
var UpdateQueryLoggingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
2312
|
+
return [
|
|
2313
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2314
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2315
|
+
];
|
|
2316
|
+
}).s("AmazonPrometheusService", "UpdateQueryLoggingConfiguration", {}).n("AmpClient", "UpdateQueryLoggingConfigurationCommand").f(void 0, void 0).ser(se_UpdateQueryLoggingConfigurationCommand).de(de_UpdateQueryLoggingConfigurationCommand).build() {
|
|
2317
|
+
static {
|
|
2318
|
+
__name(this, "UpdateQueryLoggingConfigurationCommand");
|
|
2319
|
+
}
|
|
2320
|
+
};
|
|
2321
|
+
|
|
2115
2322
|
// src/commands/UpdateScraperCommand.ts
|
|
2116
2323
|
|
|
2117
2324
|
|
|
@@ -2161,16 +2368,19 @@ var UpdateWorkspaceConfigurationCommand = class extends import_smithy_client.Com
|
|
|
2161
2368
|
var commands = {
|
|
2162
2369
|
CreateAlertManagerDefinitionCommand,
|
|
2163
2370
|
CreateLoggingConfigurationCommand,
|
|
2371
|
+
CreateQueryLoggingConfigurationCommand,
|
|
2164
2372
|
CreateRuleGroupsNamespaceCommand,
|
|
2165
2373
|
CreateScraperCommand,
|
|
2166
2374
|
CreateWorkspaceCommand,
|
|
2167
2375
|
DeleteAlertManagerDefinitionCommand,
|
|
2168
2376
|
DeleteLoggingConfigurationCommand,
|
|
2377
|
+
DeleteQueryLoggingConfigurationCommand,
|
|
2169
2378
|
DeleteRuleGroupsNamespaceCommand,
|
|
2170
2379
|
DeleteScraperCommand,
|
|
2171
2380
|
DeleteWorkspaceCommand,
|
|
2172
2381
|
DescribeAlertManagerDefinitionCommand,
|
|
2173
2382
|
DescribeLoggingConfigurationCommand,
|
|
2383
|
+
DescribeQueryLoggingConfigurationCommand,
|
|
2174
2384
|
DescribeRuleGroupsNamespaceCommand,
|
|
2175
2385
|
DescribeScraperCommand,
|
|
2176
2386
|
DescribeWorkspaceCommand,
|
|
@@ -2185,6 +2395,7 @@ var commands = {
|
|
|
2185
2395
|
TagResourceCommand,
|
|
2186
2396
|
UntagResourceCommand,
|
|
2187
2397
|
UpdateLoggingConfigurationCommand,
|
|
2398
|
+
UpdateQueryLoggingConfigurationCommand,
|
|
2188
2399
|
UpdateScraperCommand,
|
|
2189
2400
|
UpdateWorkspaceAliasCommand,
|
|
2190
2401
|
UpdateWorkspaceConfigurationCommand
|
|
@@ -2374,16 +2585,19 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2374
2585
|
$Command,
|
|
2375
2586
|
CreateAlertManagerDefinitionCommand,
|
|
2376
2587
|
CreateLoggingConfigurationCommand,
|
|
2588
|
+
CreateQueryLoggingConfigurationCommand,
|
|
2377
2589
|
CreateRuleGroupsNamespaceCommand,
|
|
2378
2590
|
CreateScraperCommand,
|
|
2379
2591
|
CreateWorkspaceCommand,
|
|
2380
2592
|
DeleteAlertManagerDefinitionCommand,
|
|
2381
2593
|
DeleteLoggingConfigurationCommand,
|
|
2594
|
+
DeleteQueryLoggingConfigurationCommand,
|
|
2382
2595
|
DeleteRuleGroupsNamespaceCommand,
|
|
2383
2596
|
DeleteScraperCommand,
|
|
2384
2597
|
DeleteWorkspaceCommand,
|
|
2385
2598
|
DescribeAlertManagerDefinitionCommand,
|
|
2386
2599
|
DescribeLoggingConfigurationCommand,
|
|
2600
|
+
DescribeQueryLoggingConfigurationCommand,
|
|
2387
2601
|
DescribeRuleGroupsNamespaceCommand,
|
|
2388
2602
|
DescribeScraperCommand,
|
|
2389
2603
|
DescribeWorkspaceCommand,
|
|
@@ -2398,6 +2612,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2398
2612
|
TagResourceCommand,
|
|
2399
2613
|
UntagResourceCommand,
|
|
2400
2614
|
UpdateLoggingConfigurationCommand,
|
|
2615
|
+
UpdateQueryLoggingConfigurationCommand,
|
|
2401
2616
|
UpdateScraperCommand,
|
|
2402
2617
|
UpdateWorkspaceAliasCommand,
|
|
2403
2618
|
UpdateWorkspaceConfigurationCommand,
|
|
@@ -2427,6 +2642,7 @@ var waitUntilWorkspaceDeleted = /* @__PURE__ */ __name(async (params, input) =>
|
|
|
2427
2642
|
ScraperStatusCode,
|
|
2428
2643
|
WorkspaceStatusCode,
|
|
2429
2644
|
LoggingConfigurationStatusCode,
|
|
2645
|
+
QueryLoggingConfigurationStatusCode,
|
|
2430
2646
|
RuleGroupsNamespaceStatusCode,
|
|
2431
2647
|
WorkspaceConfigurationStatusCode
|
|
2432
2648
|
});
|
|
@@ -23,7 +23,10 @@ const getRuntimeConfig = (config) => {
|
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
24
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
|
-
const loaderConfig = {
|
|
26
|
+
const loaderConfig = {
|
|
27
|
+
profile: config?.profile,
|
|
28
|
+
logger: clientSharedValues.logger,
|
|
29
|
+
};
|
|
27
30
|
return {
|
|
28
31
|
...clientSharedValues,
|
|
29
32
|
...config,
|
package/dist-es/Amp.js
CHANGED
|
@@ -2,16 +2,19 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
2
2
|
import { AmpClient } from "./AmpClient";
|
|
3
3
|
import { CreateAlertManagerDefinitionCommand, } from "./commands/CreateAlertManagerDefinitionCommand";
|
|
4
4
|
import { CreateLoggingConfigurationCommand, } from "./commands/CreateLoggingConfigurationCommand";
|
|
5
|
+
import { CreateQueryLoggingConfigurationCommand, } from "./commands/CreateQueryLoggingConfigurationCommand";
|
|
5
6
|
import { CreateRuleGroupsNamespaceCommand, } from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
6
7
|
import { CreateScraperCommand, } from "./commands/CreateScraperCommand";
|
|
7
8
|
import { CreateWorkspaceCommand, } from "./commands/CreateWorkspaceCommand";
|
|
8
9
|
import { DeleteAlertManagerDefinitionCommand, } from "./commands/DeleteAlertManagerDefinitionCommand";
|
|
9
10
|
import { DeleteLoggingConfigurationCommand, } from "./commands/DeleteLoggingConfigurationCommand";
|
|
11
|
+
import { DeleteQueryLoggingConfigurationCommand, } from "./commands/DeleteQueryLoggingConfigurationCommand";
|
|
10
12
|
import { DeleteRuleGroupsNamespaceCommand, } from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
11
13
|
import { DeleteScraperCommand, } from "./commands/DeleteScraperCommand";
|
|
12
14
|
import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
|
|
13
15
|
import { DescribeAlertManagerDefinitionCommand, } from "./commands/DescribeAlertManagerDefinitionCommand";
|
|
14
16
|
import { DescribeLoggingConfigurationCommand, } from "./commands/DescribeLoggingConfigurationCommand";
|
|
17
|
+
import { DescribeQueryLoggingConfigurationCommand, } from "./commands/DescribeQueryLoggingConfigurationCommand";
|
|
15
18
|
import { DescribeRuleGroupsNamespaceCommand, } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
16
19
|
import { DescribeScraperCommand, } from "./commands/DescribeScraperCommand";
|
|
17
20
|
import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
|
|
@@ -26,22 +29,26 @@ import { PutRuleGroupsNamespaceCommand, } from "./commands/PutRuleGroupsNamespac
|
|
|
26
29
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
27
30
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
28
31
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
32
|
+
import { UpdateQueryLoggingConfigurationCommand, } from "./commands/UpdateQueryLoggingConfigurationCommand";
|
|
29
33
|
import { UpdateScraperCommand, } from "./commands/UpdateScraperCommand";
|
|
30
34
|
import { UpdateWorkspaceAliasCommand, } from "./commands/UpdateWorkspaceAliasCommand";
|
|
31
35
|
import { UpdateWorkspaceConfigurationCommand, } from "./commands/UpdateWorkspaceConfigurationCommand";
|
|
32
36
|
const commands = {
|
|
33
37
|
CreateAlertManagerDefinitionCommand,
|
|
34
38
|
CreateLoggingConfigurationCommand,
|
|
39
|
+
CreateQueryLoggingConfigurationCommand,
|
|
35
40
|
CreateRuleGroupsNamespaceCommand,
|
|
36
41
|
CreateScraperCommand,
|
|
37
42
|
CreateWorkspaceCommand,
|
|
38
43
|
DeleteAlertManagerDefinitionCommand,
|
|
39
44
|
DeleteLoggingConfigurationCommand,
|
|
45
|
+
DeleteQueryLoggingConfigurationCommand,
|
|
40
46
|
DeleteRuleGroupsNamespaceCommand,
|
|
41
47
|
DeleteScraperCommand,
|
|
42
48
|
DeleteWorkspaceCommand,
|
|
43
49
|
DescribeAlertManagerDefinitionCommand,
|
|
44
50
|
DescribeLoggingConfigurationCommand,
|
|
51
|
+
DescribeQueryLoggingConfigurationCommand,
|
|
45
52
|
DescribeRuleGroupsNamespaceCommand,
|
|
46
53
|
DescribeScraperCommand,
|
|
47
54
|
DescribeWorkspaceCommand,
|
|
@@ -56,6 +63,7 @@ const commands = {
|
|
|
56
63
|
TagResourceCommand,
|
|
57
64
|
UntagResourceCommand,
|
|
58
65
|
UpdateLoggingConfigurationCommand,
|
|
66
|
+
UpdateQueryLoggingConfigurationCommand,
|
|
59
67
|
UpdateScraperCommand,
|
|
60
68
|
UpdateWorkspaceAliasCommand,
|
|
61
69
|
UpdateWorkspaceConfigurationCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_CreateQueryLoggingConfigurationCommand, se_CreateQueryLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateQueryLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "CreateQueryLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "CreateQueryLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CreateQueryLoggingConfigurationCommand)
|
|
20
|
+
.de(de_CreateQueryLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DeleteQueryLoggingConfigurationCommand, se_DeleteQueryLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteQueryLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "DeleteQueryLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "DeleteQueryLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DeleteQueryLoggingConfigurationCommand)
|
|
20
|
+
.de(de_DeleteQueryLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_DescribeQueryLoggingConfigurationCommand, se_DescribeQueryLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeQueryLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "DescribeQueryLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "DescribeQueryLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DescribeQueryLoggingConfigurationCommand)
|
|
20
|
+
.de(de_DescribeQueryLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateQueryLoggingConfigurationCommand, se_UpdateQueryLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateQueryLoggingConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonPrometheusService", "UpdateQueryLoggingConfiguration", {})
|
|
17
|
+
.n("AmpClient", "UpdateQueryLoggingConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateQueryLoggingConfigurationCommand)
|
|
20
|
+
.de(de_UpdateQueryLoggingConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|