@aws-sdk/client-cloudwatch-logs 3.454.0 → 3.460.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.
Files changed (66) hide show
  1. package/README.md +129 -73
  2. package/dist-cjs/CloudWatchLogs.js +14 -0
  3. package/dist-cjs/commands/CreateLogAnomalyDetectorCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteLogAnomalyDetectorCommand.js +51 -0
  5. package/dist-cjs/commands/GetLogAnomalyDetectorCommand.js +51 -0
  6. package/dist-cjs/commands/ListAnomaliesCommand.js +51 -0
  7. package/dist-cjs/commands/ListLogAnomalyDetectorsCommand.js +51 -0
  8. package/dist-cjs/commands/UpdateAnomalyCommand.js +51 -0
  9. package/dist-cjs/commands/UpdateLogAnomalyDetectorCommand.js +51 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +39 -1
  12. package/dist-cjs/pagination/ListAnomaliesPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListLogAnomalyDetectorsPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +2 -0
  15. package/dist-cjs/protocols/Aws_json1_1.js +340 -3
  16. package/dist-es/CloudWatchLogs.js +14 -0
  17. package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +47 -0
  18. package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +47 -0
  19. package/dist-es/commands/GetLogAnomalyDetectorCommand.js +47 -0
  20. package/dist-es/commands/ListAnomaliesCommand.js +47 -0
  21. package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +47 -0
  22. package/dist-es/commands/UpdateAnomalyCommand.js +47 -0
  23. package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +47 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/models/models_0.js +38 -0
  26. package/dist-es/pagination/ListAnomaliesPaginator.js +25 -0
  27. package/dist-es/pagination/ListLogAnomalyDetectorsPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +2 -0
  29. package/dist-es/protocols/Aws_json1_1.js +323 -0
  30. package/dist-types/CloudWatchLogs.d.ts +49 -0
  31. package/dist-types/CloudWatchLogsClient.d.ts +9 -2
  32. package/dist-types/commands/CreateDeliveryCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateLogAnomalyDetectorCommand.d.ts +129 -0
  34. package/dist-types/commands/CreateLogGroupCommand.d.ts +1 -0
  35. package/dist-types/commands/DeleteLogAnomalyDetectorCommand.d.ts +83 -0
  36. package/dist-types/commands/DescribeLogGroupsCommand.d.ts +2 -0
  37. package/dist-types/commands/GetLogAnomalyDetectorCommand.d.ts +95 -0
  38. package/dist-types/commands/ListAnomaliesCommand.d.ts +127 -0
  39. package/dist-types/commands/ListLogAnomalyDetectorsCommand.d.ts +103 -0
  40. package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +1 -1
  41. package/dist-types/commands/PutDeliveryDestinationPolicyCommand.d.ts +1 -1
  42. package/dist-types/commands/PutDeliverySourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateAnomalyCommand.d.ts +98 -0
  44. package/dist-types/commands/UpdateLogAnomalyDetectorCommand.d.ts +87 -0
  45. package/dist-types/commands/index.d.ts +7 -0
  46. package/dist-types/models/models_0.d.ts +686 -4
  47. package/dist-types/pagination/ListAnomaliesPaginator.d.ts +7 -0
  48. package/dist-types/pagination/ListLogAnomalyDetectorsPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +2 -0
  50. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  51. package/dist-types/ts3.4/CloudWatchLogs.d.ts +119 -0
  52. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +44 -2
  53. package/dist-types/ts3.4/commands/CreateLogAnomalyDetectorCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/DeleteLogAnomalyDetectorCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/GetLogAnomalyDetectorCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/ListAnomaliesCommand.d.ts +38 -0
  57. package/dist-types/ts3.4/commands/ListLogAnomalyDetectorsCommand.d.ts +42 -0
  58. package/dist-types/ts3.4/commands/UpdateAnomalyCommand.d.ts +33 -0
  59. package/dist-types/ts3.4/commands/UpdateLogAnomalyDetectorCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +158 -0
  62. package/dist-types/ts3.4/pagination/ListAnomaliesPaginator.d.ts +11 -0
  63. package/dist-types/ts3.4/pagination/ListLogAnomalyDetectorsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  65. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  66. package/package.json +12 -12
@@ -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";