Skip to content

Commit b889c42

Browse files
author
awstools
committed
feat(client-amp): Add QueryLoggingConfiguration APIs for Amazon Managed Prometheus
1 parent 4d7233a commit b889c42

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1824
-535
lines changed

clients/client-amp/README.md

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,7 @@
66

77
AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native.
88

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>
2710

2811
## Installing
2912

@@ -235,6 +218,14 @@ CreateLoggingConfiguration
235218

236219
[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/)
237220

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+
238229
</details>
239230
<details>
240231
<summary>
@@ -275,6 +266,14 @@ DeleteLoggingConfiguration
275266

276267
[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/)
277268

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+
278277
</details>
279278
<details>
280279
<summary>
@@ -315,6 +314,14 @@ DescribeLoggingConfiguration
315314

316315
[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/)
317316

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+
318325
</details>
319326
<details>
320327
<summary>
@@ -427,6 +434,14 @@ UpdateLoggingConfiguration
427434

428435
[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/)
429436

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+
430445
</details>
431446
<details>
432447
<summary>

clients/client-amp/src/Amp.ts

Lines changed: 93 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ import {
1313
CreateLoggingConfigurationCommandInput,
1414
CreateLoggingConfigurationCommandOutput,
1515
} from "./commands/CreateLoggingConfigurationCommand";
16+
import {
17+
CreateQueryLoggingConfigurationCommand,
18+
CreateQueryLoggingConfigurationCommandInput,
19+
CreateQueryLoggingConfigurationCommandOutput,
20+
} from "./commands/CreateQueryLoggingConfigurationCommand";
1621
import {
1722
CreateRuleGroupsNamespaceCommand,
1823
CreateRuleGroupsNamespaceCommandInput,
@@ -38,6 +43,11 @@ import {
3843
DeleteLoggingConfigurationCommandInput,
3944
DeleteLoggingConfigurationCommandOutput,
4045
} from "./commands/DeleteLoggingConfigurationCommand";
46+
import {
47+
DeleteQueryLoggingConfigurationCommand,
48+
DeleteQueryLoggingConfigurationCommandInput,
49+
DeleteQueryLoggingConfigurationCommandOutput,
50+
} from "./commands/DeleteQueryLoggingConfigurationCommand";
4151
import {
4252
DeleteRuleGroupsNamespaceCommand,
4353
DeleteRuleGroupsNamespaceCommandInput,
@@ -63,6 +73,11 @@ import {
6373
DescribeLoggingConfigurationCommandInput,
6474
DescribeLoggingConfigurationCommandOutput,
6575
} from "./commands/DescribeLoggingConfigurationCommand";
76+
import {
77+
DescribeQueryLoggingConfigurationCommand,
78+
DescribeQueryLoggingConfigurationCommandInput,
79+
DescribeQueryLoggingConfigurationCommandOutput,
80+
} from "./commands/DescribeQueryLoggingConfigurationCommand";
6681
import {
6782
DescribeRuleGroupsNamespaceCommand,
6883
DescribeRuleGroupsNamespaceCommandInput,
@@ -129,6 +144,11 @@ import {
129144
UpdateLoggingConfigurationCommandInput,
130145
UpdateLoggingConfigurationCommandOutput,
131146
} from "./commands/UpdateLoggingConfigurationCommand";
147+
import {
148+
UpdateQueryLoggingConfigurationCommand,
149+
UpdateQueryLoggingConfigurationCommandInput,
150+
UpdateQueryLoggingConfigurationCommandOutput,
151+
} from "./commands/UpdateQueryLoggingConfigurationCommand";
132152
import {
133153
UpdateScraperCommand,
134154
UpdateScraperCommandInput,
@@ -148,16 +168,19 @@ import {
148168
const commands = {
149169
CreateAlertManagerDefinitionCommand,
150170
CreateLoggingConfigurationCommand,
171+
CreateQueryLoggingConfigurationCommand,
151172
CreateRuleGroupsNamespaceCommand,
152173
CreateScraperCommand,
153174
CreateWorkspaceCommand,
154175
DeleteAlertManagerDefinitionCommand,
155176
DeleteLoggingConfigurationCommand,
177+
DeleteQueryLoggingConfigurationCommand,
156178
DeleteRuleGroupsNamespaceCommand,
157179
DeleteScraperCommand,
158180
DeleteWorkspaceCommand,
159181
DescribeAlertManagerDefinitionCommand,
160182
DescribeLoggingConfigurationCommand,
183+
DescribeQueryLoggingConfigurationCommand,
161184
DescribeRuleGroupsNamespaceCommand,
162185
DescribeScraperCommand,
163186
DescribeWorkspaceCommand,
@@ -172,6 +195,7 @@ const commands = {
172195
TagResourceCommand,
173196
UntagResourceCommand,
174197
UpdateLoggingConfigurationCommand,
198+
UpdateQueryLoggingConfigurationCommand,
175199
UpdateScraperCommand,
176200
UpdateWorkspaceAliasCommand,
177201
UpdateWorkspaceConfigurationCommand,
@@ -212,6 +236,23 @@ export interface Amp {
212236
cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void
213237
): void;
214238

239+
/**
240+
* @see {@link CreateQueryLoggingConfigurationCommand}
241+
*/
242+
createQueryLoggingConfiguration(
243+
args: CreateQueryLoggingConfigurationCommandInput,
244+
options?: __HttpHandlerOptions
245+
): Promise<CreateQueryLoggingConfigurationCommandOutput>;
246+
createQueryLoggingConfiguration(
247+
args: CreateQueryLoggingConfigurationCommandInput,
248+
cb: (err: any, data?: CreateQueryLoggingConfigurationCommandOutput) => void
249+
): void;
250+
createQueryLoggingConfiguration(
251+
args: CreateQueryLoggingConfigurationCommandInput,
252+
options: __HttpHandlerOptions,
253+
cb: (err: any, data?: CreateQueryLoggingConfigurationCommandOutput) => void
254+
): void;
255+
215256
/**
216257
* @see {@link CreateRuleGroupsNamespaceCommand}
217258
*/
@@ -289,6 +330,23 @@ export interface Amp {
289330
cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void
290331
): void;
291332

333+
/**
334+
* @see {@link DeleteQueryLoggingConfigurationCommand}
335+
*/
336+
deleteQueryLoggingConfiguration(
337+
args: DeleteQueryLoggingConfigurationCommandInput,
338+
options?: __HttpHandlerOptions
339+
): Promise<DeleteQueryLoggingConfigurationCommandOutput>;
340+
deleteQueryLoggingConfiguration(
341+
args: DeleteQueryLoggingConfigurationCommandInput,
342+
cb: (err: any, data?: DeleteQueryLoggingConfigurationCommandOutput) => void
343+
): void;
344+
deleteQueryLoggingConfiguration(
345+
args: DeleteQueryLoggingConfigurationCommandInput,
346+
options: __HttpHandlerOptions,
347+
cb: (err: any, data?: DeleteQueryLoggingConfigurationCommandOutput) => void
348+
): void;
349+
292350
/**
293351
* @see {@link DeleteRuleGroupsNamespaceCommand}
294352
*/
@@ -365,6 +423,23 @@ export interface Amp {
365423
cb: (err: any, data?: DescribeLoggingConfigurationCommandOutput) => void
366424
): void;
367425

426+
/**
427+
* @see {@link DescribeQueryLoggingConfigurationCommand}
428+
*/
429+
describeQueryLoggingConfiguration(
430+
args: DescribeQueryLoggingConfigurationCommandInput,
431+
options?: __HttpHandlerOptions
432+
): Promise<DescribeQueryLoggingConfigurationCommandOutput>;
433+
describeQueryLoggingConfiguration(
434+
args: DescribeQueryLoggingConfigurationCommandInput,
435+
cb: (err: any, data?: DescribeQueryLoggingConfigurationCommandOutput) => void
436+
): void;
437+
describeQueryLoggingConfiguration(
438+
args: DescribeQueryLoggingConfigurationCommandInput,
439+
options: __HttpHandlerOptions,
440+
cb: (err: any, data?: DescribeQueryLoggingConfigurationCommandOutput) => void
441+
): void;
442+
368443
/**
369444
* @see {@link DescribeRuleGroupsNamespaceCommand}
370445
*/
@@ -582,6 +657,23 @@ export interface Amp {
582657
cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void
583658
): void;
584659

660+
/**
661+
* @see {@link UpdateQueryLoggingConfigurationCommand}
662+
*/
663+
updateQueryLoggingConfiguration(
664+
args: UpdateQueryLoggingConfigurationCommandInput,
665+
options?: __HttpHandlerOptions
666+
): Promise<UpdateQueryLoggingConfigurationCommandOutput>;
667+
updateQueryLoggingConfiguration(
668+
args: UpdateQueryLoggingConfigurationCommandInput,
669+
cb: (err: any, data?: UpdateQueryLoggingConfigurationCommandOutput) => void
670+
): void;
671+
updateQueryLoggingConfiguration(
672+
args: UpdateQueryLoggingConfigurationCommandInput,
673+
options: __HttpHandlerOptions,
674+
cb: (err: any, data?: UpdateQueryLoggingConfigurationCommandOutput) => void
675+
): void;
676+
585677
/**
586678
* @see {@link UpdateScraperCommand}
587679
*/
@@ -629,24 +721,7 @@ export interface Amp {
629721
}
630722

631723
/**
632-
* <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for
633-
* container metrics that makes it easier to securely monitor container environments at
634-
* scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data
635-
* model and query language that you use today to monitor the performance of your
636-
* containerized workloads, and also enjoy improved scalability, availability, and security
637-
* without having to manage the underlying infrastructure.</p>
638-
* <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>
639-
* <p>Amazon Managed Service for Prometheus includes two APIs.</p>
640-
* <ul>
641-
* <li>
642-
* <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
643-
* managers.</p>
644-
* </li>
645-
* <li>
646-
* <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
647-
* workspace.</p>
648-
* </li>
649-
* </ul>
724+
* <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>
650725
* @public
651726
*/
652727
export class Amp extends AmpClient implements Amp {}

0 commit comments

Comments
 (0)