@aws-sdk/client-amp 3.812.0 → 3.816.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-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-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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
4
|
+
import { UpdateQueryLoggingConfigurationRequest, UpdateQueryLoggingConfigurationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateQueryLoggingConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateQueryLoggingConfigurationCommandInput extends UpdateQueryLoggingConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateQueryLoggingConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateQueryLoggingConfigurationCommandOutput extends UpdateQueryLoggingConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateQueryLoggingConfigurationCommand_base: {
|
|
25
|
+
new (input: UpdateQueryLoggingConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateQueryLoggingConfigurationCommandInput, UpdateQueryLoggingConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateQueryLoggingConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateQueryLoggingConfigurationCommandInput, UpdateQueryLoggingConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates the query logging configuration for the specified workspace.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AmpClient, UpdateQueryLoggingConfigurationCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
35
|
+
* // const { AmpClient, UpdateQueryLoggingConfigurationCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
36
|
+
* const client = new AmpClient(config);
|
|
37
|
+
* const input = { // UpdateQueryLoggingConfigurationRequest
|
|
38
|
+
* workspaceId: "STRING_VALUE", // required
|
|
39
|
+
* destinations: [ // LoggingDestinations // required
|
|
40
|
+
* { // LoggingDestination
|
|
41
|
+
* cloudWatchLogs: { // CloudWatchLogDestination
|
|
42
|
+
* logGroupArn: "STRING_VALUE", // required
|
|
43
|
+
* },
|
|
44
|
+
* filters: { // LoggingFilter
|
|
45
|
+
* qspThreshold: Number("long"), // required
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* clientToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new UpdateQueryLoggingConfigurationCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // UpdateQueryLoggingConfigurationResponse
|
|
54
|
+
* // status: { // QueryLoggingConfigurationStatus
|
|
55
|
+
* // statusCode: "STRING_VALUE", // required
|
|
56
|
+
* // statusReason: "STRING_VALUE",
|
|
57
|
+
* // },
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param UpdateQueryLoggingConfigurationCommandInput - {@link UpdateQueryLoggingConfigurationCommandInput}
|
|
63
|
+
* @returns {@link UpdateQueryLoggingConfigurationCommandOutput}
|
|
64
|
+
* @see {@link UpdateQueryLoggingConfigurationCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link UpdateQueryLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
69
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ConflictException} (client fault)
|
|
72
|
+
* <p>The request would cause an inconsistent state.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>An unexpected error occurred during the processing of the request.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The request references a resources that doesn't exist.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AmpServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class UpdateQueryLoggingConfigurationCommand extends UpdateQueryLoggingConfigurationCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: UpdateQueryLoggingConfigurationRequest;
|
|
94
|
+
output: UpdateQueryLoggingConfigurationResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: UpdateQueryLoggingConfigurationCommandInput;
|
|
98
|
+
output: UpdateQueryLoggingConfigurationCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -27,10 +27,7 @@ declare const UpdateScraperCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Updates an existing scraper.</p>
|
|
31
|
-
* <p>You can't use this function to update the source from which the scraper is
|
|
32
|
-
* collecting metrics. To change the source, delete the scraper and create a new
|
|
33
|
-
* one.</p>
|
|
30
|
+
* <p>Updates an existing scraper.</p> <p>You can't use this function to update the source from which the scraper is collecting metrics. To change the source, delete the scraper and create a new one.</p>
|
|
34
31
|
* @example
|
|
35
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
33
|
* ```javascript
|
|
@@ -94,8 +91,7 @@ declare const UpdateScraperCommand_base: {
|
|
|
94
91
|
* <p>The request was denied due to request throttling.</p>
|
|
95
92
|
*
|
|
96
93
|
* @throws {@link ValidationException} (client fault)
|
|
97
|
-
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
98
|
-
* service.</p>
|
|
94
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
99
95
|
*
|
|
100
96
|
* @throws {@link AmpServiceException}
|
|
101
97
|
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
@@ -70,8 +70,7 @@ declare const UpdateWorkspaceAliasCommand_base: {
|
|
|
70
70
|
* <p>The request was denied due to request throttling.</p>
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link ValidationException} (client fault)
|
|
73
|
-
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
74
|
-
* service.</p>
|
|
73
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
75
74
|
*
|
|
76
75
|
* @throws {@link AmpServiceException}
|
|
77
76
|
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
@@ -27,9 +27,7 @@ declare const UpdateWorkspaceConfigurationCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Use this operation to create or update the label sets, label set limits, and retention period of a workspace.</p>
|
|
31
|
-
* <p>You must specify at least one of <code>limitsPerLabelSet</code> or <code>retentionPeriodInDays</code> for the
|
|
32
|
-
* request to be valid.</p>
|
|
30
|
+
* <p>Use this operation to create or update the label sets, label set limits, and retention period of a workspace.</p> <p>You must specify at least one of <code>limitsPerLabelSet</code> or <code>retentionPeriodInDays</code> for the request to be valid.</p>
|
|
33
31
|
* @example
|
|
34
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
33
|
* ```javascript
|
|
@@ -87,8 +85,7 @@ declare const UpdateWorkspaceConfigurationCommand_base: {
|
|
|
87
85
|
* <p>The request was denied due to request throttling.</p>
|
|
88
86
|
*
|
|
89
87
|
* @throws {@link ValidationException} (client fault)
|
|
90
|
-
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
91
|
-
* service.</p>
|
|
88
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
92
89
|
*
|
|
93
90
|
* @throws {@link AmpServiceException}
|
|
94
91
|
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export * from "./CreateAlertManagerDefinitionCommand";
|
|
2
2
|
export * from "./CreateLoggingConfigurationCommand";
|
|
3
|
+
export * from "./CreateQueryLoggingConfigurationCommand";
|
|
3
4
|
export * from "./CreateRuleGroupsNamespaceCommand";
|
|
4
5
|
export * from "./CreateScraperCommand";
|
|
5
6
|
export * from "./CreateWorkspaceCommand";
|
|
6
7
|
export * from "./DeleteAlertManagerDefinitionCommand";
|
|
7
8
|
export * from "./DeleteLoggingConfigurationCommand";
|
|
9
|
+
export * from "./DeleteQueryLoggingConfigurationCommand";
|
|
8
10
|
export * from "./DeleteRuleGroupsNamespaceCommand";
|
|
9
11
|
export * from "./DeleteScraperCommand";
|
|
10
12
|
export * from "./DeleteWorkspaceCommand";
|
|
11
13
|
export * from "./DescribeAlertManagerDefinitionCommand";
|
|
12
14
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
15
|
+
export * from "./DescribeQueryLoggingConfigurationCommand";
|
|
13
16
|
export * from "./DescribeRuleGroupsNamespaceCommand";
|
|
14
17
|
export * from "./DescribeScraperCommand";
|
|
15
18
|
export * from "./DescribeWorkspaceCommand";
|
|
@@ -24,6 +27,7 @@ export * from "./PutRuleGroupsNamespaceCommand";
|
|
|
24
27
|
export * from "./TagResourceCommand";
|
|
25
28
|
export * from "./UntagResourceCommand";
|
|
26
29
|
export * from "./UpdateLoggingConfigurationCommand";
|
|
30
|
+
export * from "./UpdateQueryLoggingConfigurationCommand";
|
|
27
31
|
export * from "./UpdateScraperCommand";
|
|
28
32
|
export * from "./UpdateWorkspaceAliasCommand";
|
|
29
33
|
export * from "./UpdateWorkspaceConfigurationCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for
|
|
3
|
-
* container metrics that makes it easier to securely monitor container environments at
|
|
4
|
-
* scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data
|
|
5
|
-
* model and query language that you use today to monitor the performance of your
|
|
6
|
-
* containerized workloads, and also enjoy improved scalability, availability, and security
|
|
7
|
-
* without having to manage the underlying infrastructure.</p>
|
|
8
|
-
* <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>
|
|
9
|
-
* <p>Amazon Managed Service for Prometheus includes two APIs.</p>
|
|
10
|
-
* <ul>
|
|
11
|
-
* <li>
|
|
12
|
-
* <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
|
|
13
|
-
* managers.</p>
|
|
14
|
-
* </li>
|
|
15
|
-
* <li>
|
|
16
|
-
* <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
|
|
17
|
-
* workspace.</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* </ul>
|
|
2
|
+
* <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>
|
|
20
3
|
*
|
|
21
4
|
* @packageDocumentation
|
|
22
5
|
*/
|