@aws-sdk/client-cloudwatch-logs 3.451.0 → 3.458.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 +129 -73
- package/dist-cjs/CloudWatchLogs.js +14 -0
- package/dist-cjs/commands/CreateLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/DeleteLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/GetLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/ListAnomaliesCommand.js +51 -0
- package/dist-cjs/commands/ListLogAnomalyDetectorsCommand.js +51 -0
- package/dist-cjs/commands/UpdateAnomalyCommand.js +51 -0
- package/dist-cjs/commands/UpdateLogAnomalyDetectorCommand.js +51 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +39 -1
- package/dist-cjs/pagination/ListAnomaliesPaginator.js +29 -0
- package/dist-cjs/pagination/ListLogAnomalyDetectorsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +340 -3
- package/dist-es/CloudWatchLogs.js +14 -0
- package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/GetLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/ListAnomaliesCommand.js +47 -0
- package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +47 -0
- package/dist-es/commands/UpdateAnomalyCommand.js +47 -0
- package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +47 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/pagination/ListAnomaliesPaginator.js +25 -0
- package/dist-es/pagination/ListLogAnomalyDetectorsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +323 -0
- package/dist-types/CloudWatchLogs.d.ts +49 -0
- package/dist-types/CloudWatchLogsClient.d.ts +9 -2
- package/dist-types/commands/CreateDeliveryCommand.d.ts +1 -1
- package/dist-types/commands/CreateLogAnomalyDetectorCommand.d.ts +129 -0
- package/dist-types/commands/CreateLogGroupCommand.d.ts +1 -0
- package/dist-types/commands/DeleteLogAnomalyDetectorCommand.d.ts +83 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +2 -0
- package/dist-types/commands/GetLogAnomalyDetectorCommand.d.ts +95 -0
- package/dist-types/commands/ListAnomaliesCommand.d.ts +127 -0
- package/dist-types/commands/ListLogAnomalyDetectorsCommand.d.ts +103 -0
- package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +1 -1
- package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutDeliverySourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAnomalyCommand.d.ts +98 -0
- package/dist-types/commands/UpdateLogAnomalyDetectorCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +686 -4
- package/dist-types/pagination/ListAnomaliesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListLogAnomalyDetectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +119 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +44 -2
- package/dist-types/ts3.4/commands/CreateLogAnomalyDetectorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteLogAnomalyDetectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetLogAnomalyDetectorCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAnomaliesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListLogAnomalyDetectorsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAnomalyCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/UpdateLogAnomalyDetectorCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +158 -0
- package/dist-types/ts3.4/pagination/ListAnomaliesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLogAnomalyDetectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
- package/package.json +3 -3
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
5
|
+
import { UpdateAnomalyRequest } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAnomalyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAnomalyCommandInput extends UpdateAnomalyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAnomalyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAnomalyCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Use this operation to <i>suppress</i> anomaly detection for a specified anomaly or pattern. If you suppress
|
|
27
|
+
* an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't
|
|
28
|
+
* update that anomaly
|
|
29
|
+
* with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern.</p>
|
|
30
|
+
* <p>You must specify either <code>anomalyId</code> or <code>patternId</code>, but you can't specify both parameters in the
|
|
31
|
+
* same operation.</p>
|
|
32
|
+
* <p>If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause
|
|
33
|
+
* CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to
|
|
34
|
+
* stop suppressing, and omit the <code>suppressionType</code> and <code>suppressionPeriod</code> parameters.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { CloudWatchLogsClient, UpdateAnomalyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
39
|
+
* // const { CloudWatchLogsClient, UpdateAnomalyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
40
|
+
* const client = new CloudWatchLogsClient(config);
|
|
41
|
+
* const input = { // UpdateAnomalyRequest
|
|
42
|
+
* anomalyId: "STRING_VALUE",
|
|
43
|
+
* patternId: "STRING_VALUE",
|
|
44
|
+
* anomalyDetectorArn: "STRING_VALUE", // required
|
|
45
|
+
* suppressionType: "LIMITED" || "INFINITE",
|
|
46
|
+
* suppressionPeriod: { // SuppressionPeriod
|
|
47
|
+
* value: Number("int"),
|
|
48
|
+
* suppressionUnit: "SECONDS" || "MINUTES" || "HOURS",
|
|
49
|
+
* },
|
|
50
|
+
* };
|
|
51
|
+
* const command = new UpdateAnomalyCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // {};
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param UpdateAnomalyCommandInput - {@link UpdateAnomalyCommandInput}
|
|
58
|
+
* @returns {@link UpdateAnomalyCommandOutput}
|
|
59
|
+
* @see {@link UpdateAnomalyCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link UpdateAnomalyCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
64
|
+
* <p>A parameter is specified incorrectly.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link OperationAbortedException} (client fault)
|
|
67
|
+
* <p>Multiple concurrent requests to update the same resource were in conflict.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
70
|
+
* <p>The specified resource does not exist.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
73
|
+
* <p>The service cannot complete the request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link CloudWatchLogsServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
export declare class UpdateAnomalyCommand extends $Command<UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
80
|
+
readonly input: UpdateAnomalyCommandInput;
|
|
81
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
82
|
+
/**
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
constructor(input: UpdateAnomalyCommandInput);
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput>;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
private serialize;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
private deserialize;
|
|
98
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
5
|
+
import { UpdateLogAnomalyDetectorRequest } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateLogAnomalyDetectorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateLogAnomalyDetectorCommandInput extends UpdateLogAnomalyDetectorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateLogAnomalyDetectorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateLogAnomalyDetectorCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates an existing log anomaly detector.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CloudWatchLogsClient, UpdateLogAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
31
|
+
* // const { CloudWatchLogsClient, UpdateLogAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
32
|
+
* const client = new CloudWatchLogsClient(config);
|
|
33
|
+
* const input = { // UpdateLogAnomalyDetectorRequest
|
|
34
|
+
* anomalyDetectorArn: "STRING_VALUE", // required
|
|
35
|
+
* evaluationFrequency: "ONE_MIN" || "FIVE_MIN" || "TEN_MIN" || "FIFTEEN_MIN" || "THIRTY_MIN" || "ONE_HOUR",
|
|
36
|
+
* filterPattern: "STRING_VALUE",
|
|
37
|
+
* anomalyVisibilityTime: Number("long"),
|
|
38
|
+
* enabled: true || false, // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new UpdateLogAnomalyDetectorCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param UpdateLogAnomalyDetectorCommandInput - {@link UpdateLogAnomalyDetectorCommandInput}
|
|
47
|
+
* @returns {@link UpdateLogAnomalyDetectorCommandOutput}
|
|
48
|
+
* @see {@link UpdateLogAnomalyDetectorCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link UpdateLogAnomalyDetectorCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
53
|
+
* <p>A parameter is specified incorrectly.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link OperationAbortedException} (client fault)
|
|
56
|
+
* <p>Multiple concurrent requests to update the same resource were in conflict.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>The specified resource does not exist.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
62
|
+
* <p>The service cannot complete the request.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link CloudWatchLogsServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class UpdateLogAnomalyDetectorCommand extends $Command<UpdateLogAnomalyDetectorCommandInput, UpdateLogAnomalyDetectorCommandOutput, CloudWatchLogsClientResolvedConfig> {
|
|
69
|
+
readonly input: UpdateLogAnomalyDetectorCommandInput;
|
|
70
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
constructor(input: UpdateLogAnomalyDetectorCommandInput);
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateLogAnomalyDetectorCommandInput, UpdateLogAnomalyDetectorCommandOutput>;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
private serialize;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
private deserialize;
|
|
87
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./AssociateKmsKeyCommand";
|
|
|
2
2
|
export * from "./CancelExportTaskCommand";
|
|
3
3
|
export * from "./CreateDeliveryCommand";
|
|
4
4
|
export * from "./CreateExportTaskCommand";
|
|
5
|
+
export * from "./CreateLogAnomalyDetectorCommand";
|
|
5
6
|
export * from "./CreateLogGroupCommand";
|
|
6
7
|
export * from "./CreateLogStreamCommand";
|
|
7
8
|
export * from "./DeleteAccountPolicyCommand";
|
|
@@ -11,6 +12,7 @@ export * from "./DeleteDeliveryDestinationCommand";
|
|
|
11
12
|
export * from "./DeleteDeliveryDestinationPolicyCommand";
|
|
12
13
|
export * from "./DeleteDeliverySourceCommand";
|
|
13
14
|
export * from "./DeleteDestinationCommand";
|
|
15
|
+
export * from "./DeleteLogAnomalyDetectorCommand";
|
|
14
16
|
export * from "./DeleteLogGroupCommand";
|
|
15
17
|
export * from "./DeleteLogStreamCommand";
|
|
16
18
|
export * from "./DeleteMetricFilterCommand";
|
|
@@ -38,10 +40,13 @@ export * from "./GetDeliveryCommand";
|
|
|
38
40
|
export * from "./GetDeliveryDestinationCommand";
|
|
39
41
|
export * from "./GetDeliveryDestinationPolicyCommand";
|
|
40
42
|
export * from "./GetDeliverySourceCommand";
|
|
43
|
+
export * from "./GetLogAnomalyDetectorCommand";
|
|
41
44
|
export * from "./GetLogEventsCommand";
|
|
42
45
|
export * from "./GetLogGroupFieldsCommand";
|
|
43
46
|
export * from "./GetLogRecordCommand";
|
|
44
47
|
export * from "./GetQueryResultsCommand";
|
|
48
|
+
export * from "./ListAnomaliesCommand";
|
|
49
|
+
export * from "./ListLogAnomalyDetectorsCommand";
|
|
45
50
|
export * from "./ListTagsForResourceCommand";
|
|
46
51
|
export * from "./ListTagsLogGroupCommand";
|
|
47
52
|
export * from "./PutAccountPolicyCommand";
|
|
@@ -64,3 +69,5 @@ export * from "./TagResourceCommand";
|
|
|
64
69
|
export * from "./TestMetricFilterCommand";
|
|
65
70
|
export * from "./UntagLogGroupCommand";
|
|
66
71
|
export * from "./UntagResourceCommand";
|
|
72
|
+
export * from "./UpdateAnomalyCommand";
|
|
73
|
+
export * from "./UpdateLogAnomalyDetectorCommand";
|