@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,129 @@
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 { CreateLogAnomalyDetectorRequest, CreateLogAnomalyDetectorResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateLogAnomalyDetectorCommand}.
14
+ */
15
+ export interface CreateLogAnomalyDetectorCommandInput extends CreateLogAnomalyDetectorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateLogAnomalyDetectorCommand}.
21
+ */
22
+ export interface CreateLogAnomalyDetectorCommandOutput extends CreateLogAnomalyDetectorResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates an <i>anomaly detector</i> that regularly scans one or more
27
+ * log groups and look for patterns
28
+ * and anomalies in the logs.</p>
29
+ * <p>An anomaly detector can help surface issues by automatically discovering anomalies in your log event traffic.
30
+ * An anomaly detector uses machine learning algorithms to scan log events and find <i>patterns</i>.
31
+ *
32
+ * A pattern is a shared text structure that recurs among your log fields. Patterns provide a useful tool for
33
+ * analyzing large sets of logs because a large number of log events can often be
34
+ * compressed into a few patterns.</p>
35
+ * <p>The anomaly detector uses pattern recognition to find <code>anomalies</code>, which are unusual log
36
+ * events. It uses the <code>evaluationFrequency</code> to compare current log events and patterns
37
+ * with trained baselines. </p>
38
+ * <p>Fields within a pattern are called <i>tokens</i>.
39
+ * Fields that vary within a pattern, such as a
40
+ * request ID or timestamp, are referred to as <i>dynamic tokens</i> and
41
+ * represented by <code><*></code>. </p>
42
+ * <p>The following is an example of a pattern:</p>
43
+ * <p>
44
+ * <code>[INFO] Request time: <*> ms</code>
45
+ * </p>
46
+ * <p>This pattern
47
+ * represents log events like <code>[INFO] Request time: 327 ms</code> and other similar log events
48
+ * that differ only by the number, in this csse 327. When the pattern is displayed, the different numbers are replaced
49
+ * by <code><*></code>
50
+ * </p>
51
+ * <note>
52
+ * <p>Any parts of log events that are masked as sensitive data are not scanned for anomalies. For more information
53
+ * about masking sensitive data, see
54
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html">Help protect sensitive log data with
55
+ * masking</a>.
56
+ * </p>
57
+ * </note>
58
+ * @example
59
+ * Use a bare-bones client and the command you need to make an API call.
60
+ * ```javascript
61
+ * import { CloudWatchLogsClient, CreateLogAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
62
+ * // const { CloudWatchLogsClient, CreateLogAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
63
+ * const client = new CloudWatchLogsClient(config);
64
+ * const input = { // CreateLogAnomalyDetectorRequest
65
+ * logGroupArnList: [ // LogGroupArnList // required
66
+ * "STRING_VALUE",
67
+ * ],
68
+ * detectorName: "STRING_VALUE",
69
+ * evaluationFrequency: "ONE_MIN" || "FIVE_MIN" || "TEN_MIN" || "FIFTEEN_MIN" || "THIRTY_MIN" || "ONE_HOUR",
70
+ * filterPattern: "STRING_VALUE",
71
+ * kmsKeyId: "STRING_VALUE",
72
+ * anomalyVisibilityTime: Number("long"),
73
+ * tags: { // Tags
74
+ * "<keys>": "STRING_VALUE",
75
+ * },
76
+ * };
77
+ * const command = new CreateLogAnomalyDetectorCommand(input);
78
+ * const response = await client.send(command);
79
+ * // { // CreateLogAnomalyDetectorResponse
80
+ * // anomalyDetectorArn: "STRING_VALUE",
81
+ * // };
82
+ *
83
+ * ```
84
+ *
85
+ * @param CreateLogAnomalyDetectorCommandInput - {@link CreateLogAnomalyDetectorCommandInput}
86
+ * @returns {@link CreateLogAnomalyDetectorCommandOutput}
87
+ * @see {@link CreateLogAnomalyDetectorCommandInput} for command's `input` shape.
88
+ * @see {@link CreateLogAnomalyDetectorCommandOutput} for command's `response` shape.
89
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
90
+ *
91
+ * @throws {@link InvalidParameterException} (client fault)
92
+ * <p>A parameter is specified incorrectly.</p>
93
+ *
94
+ * @throws {@link LimitExceededException} (client fault)
95
+ * <p>You have reached the maximum number of resources that can be created.</p>
96
+ *
97
+ * @throws {@link OperationAbortedException} (client fault)
98
+ * <p>Multiple concurrent requests to update the same resource were in conflict.</p>
99
+ *
100
+ * @throws {@link ResourceNotFoundException} (client fault)
101
+ * <p>The specified resource does not exist.</p>
102
+ *
103
+ * @throws {@link ServiceUnavailableException} (server fault)
104
+ * <p>The service cannot complete the request.</p>
105
+ *
106
+ * @throws {@link CloudWatchLogsServiceException}
107
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
108
+ *
109
+ */
110
+ export declare class CreateLogAnomalyDetectorCommand extends $Command<CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput, CloudWatchLogsClientResolvedConfig> {
111
+ readonly input: CreateLogAnomalyDetectorCommandInput;
112
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
113
+ /**
114
+ * @public
115
+ */
116
+ constructor(input: CreateLogAnomalyDetectorCommandInput);
117
+ /**
118
+ * @internal
119
+ */
120
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput>;
121
+ /**
122
+ * @internal
123
+ */
124
+ private serialize;
125
+ /**
126
+ * @internal
127
+ */
128
+ private deserialize;
129
+ }
@@ -64,6 +64,7 @@ export interface CreateLogGroupCommandOutput extends __MetadataBearer {
64
64
  * tags: { // Tags
65
65
  * "<keys>": "STRING_VALUE",
66
66
  * },
67
+ * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS",
67
68
  * };
68
69
  * const command = new CreateLogGroupCommand(input);
69
70
  * const response = await client.send(command);
@@ -0,0 +1,83 @@
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 { DeleteLogAnomalyDetectorRequest } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteLogAnomalyDetectorCommand}.
14
+ */
15
+ export interface DeleteLogAnomalyDetectorCommandInput extends DeleteLogAnomalyDetectorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteLogAnomalyDetectorCommand}.
21
+ */
22
+ export interface DeleteLogAnomalyDetectorCommandOutput extends __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes the specified CloudWatch Logs 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, DeleteLogAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
31
+ * // const { CloudWatchLogsClient, DeleteLogAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
32
+ * const client = new CloudWatchLogsClient(config);
33
+ * const input = { // DeleteLogAnomalyDetectorRequest
34
+ * anomalyDetectorArn: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteLogAnomalyDetectorCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteLogAnomalyDetectorCommandInput - {@link DeleteLogAnomalyDetectorCommandInput}
43
+ * @returns {@link DeleteLogAnomalyDetectorCommandOutput}
44
+ * @see {@link DeleteLogAnomalyDetectorCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteLogAnomalyDetectorCommandOutput} for command's `response` shape.
46
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
47
+ *
48
+ * @throws {@link InvalidParameterException} (client fault)
49
+ * <p>A parameter is specified incorrectly.</p>
50
+ *
51
+ * @throws {@link OperationAbortedException} (client fault)
52
+ * <p>Multiple concurrent requests to update the same resource were in conflict.</p>
53
+ *
54
+ * @throws {@link ResourceNotFoundException} (client fault)
55
+ * <p>The specified resource does not exist.</p>
56
+ *
57
+ * @throws {@link ServiceUnavailableException} (server fault)
58
+ * <p>The service cannot complete the request.</p>
59
+ *
60
+ * @throws {@link CloudWatchLogsServiceException}
61
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
62
+ *
63
+ */
64
+ export declare class DeleteLogAnomalyDetectorCommand extends $Command<DeleteLogAnomalyDetectorCommandInput, DeleteLogAnomalyDetectorCommandOutput, CloudWatchLogsClientResolvedConfig> {
65
+ readonly input: DeleteLogAnomalyDetectorCommandInput;
66
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
67
+ /**
68
+ * @public
69
+ */
70
+ constructor(input: DeleteLogAnomalyDetectorCommandInput);
71
+ /**
72
+ * @internal
73
+ */
74
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteLogAnomalyDetectorCommandInput, DeleteLogAnomalyDetectorCommandOutput>;
75
+ /**
76
+ * @internal
77
+ */
78
+ private serialize;
79
+ /**
80
+ * @internal
81
+ */
82
+ private deserialize;
83
+ }
@@ -50,6 +50,7 @@ export interface DescribeLogGroupsCommandOutput extends DescribeLogGroupsRespons
50
50
  * nextToken: "STRING_VALUE",
51
51
  * limit: Number("int"),
52
52
  * includeLinkedAccounts: true || false,
53
+ * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS",
53
54
  * };
54
55
  * const command = new DescribeLogGroupsCommand(input);
55
56
  * const response = await client.send(command);
@@ -67,6 +68,7 @@ export interface DescribeLogGroupsCommandOutput extends DescribeLogGroupsRespons
67
68
  * // inheritedProperties: [ // InheritedProperties
68
69
  * // "ACCOUNT_DATA_PROTECTION",
69
70
  * // ],
71
+ * // logGroupClass: "STANDARD" || "INFREQUENT_ACCESS",
70
72
  * // },
71
73
  * // ],
72
74
  * // nextToken: "STRING_VALUE",
@@ -0,0 +1,95 @@
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 { GetLogAnomalyDetectorRequest, GetLogAnomalyDetectorResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetLogAnomalyDetectorCommand}.
14
+ */
15
+ export interface GetLogAnomalyDetectorCommandInput extends GetLogAnomalyDetectorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetLogAnomalyDetectorCommand}.
21
+ */
22
+ export interface GetLogAnomalyDetectorCommandOutput extends GetLogAnomalyDetectorResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves information about the log anomaly detector that you specify.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CloudWatchLogsClient, GetLogAnomalyDetectorCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
31
+ * // const { CloudWatchLogsClient, GetLogAnomalyDetectorCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
32
+ * const client = new CloudWatchLogsClient(config);
33
+ * const input = { // GetLogAnomalyDetectorRequest
34
+ * anomalyDetectorArn: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new GetLogAnomalyDetectorCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // GetLogAnomalyDetectorResponse
39
+ * // detectorName: "STRING_VALUE",
40
+ * // logGroupArnList: [ // LogGroupArnList
41
+ * // "STRING_VALUE",
42
+ * // ],
43
+ * // evaluationFrequency: "ONE_MIN" || "FIVE_MIN" || "TEN_MIN" || "FIFTEEN_MIN" || "THIRTY_MIN" || "ONE_HOUR",
44
+ * // filterPattern: "STRING_VALUE",
45
+ * // anomalyDetectorStatus: "INITIALIZING" || "TRAINING" || "ANALYZING" || "FAILED" || "DELETED" || "PAUSED",
46
+ * // kmsKeyId: "STRING_VALUE",
47
+ * // creationTimeStamp: Number("long"),
48
+ * // lastModifiedTimeStamp: Number("long"),
49
+ * // anomalyVisibilityTime: Number("long"),
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param GetLogAnomalyDetectorCommandInput - {@link GetLogAnomalyDetectorCommandInput}
55
+ * @returns {@link GetLogAnomalyDetectorCommandOutput}
56
+ * @see {@link GetLogAnomalyDetectorCommandInput} for command's `input` shape.
57
+ * @see {@link GetLogAnomalyDetectorCommandOutput} for command's `response` shape.
58
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
59
+ *
60
+ * @throws {@link InvalidParameterException} (client fault)
61
+ * <p>A parameter is specified incorrectly.</p>
62
+ *
63
+ * @throws {@link OperationAbortedException} (client fault)
64
+ * <p>Multiple concurrent requests to update the same resource were in conflict.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified resource does not exist.</p>
68
+ *
69
+ * @throws {@link ServiceUnavailableException} (server fault)
70
+ * <p>The service cannot complete the request.</p>
71
+ *
72
+ * @throws {@link CloudWatchLogsServiceException}
73
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
74
+ *
75
+ */
76
+ export declare class GetLogAnomalyDetectorCommand extends $Command<GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput, CloudWatchLogsClientResolvedConfig> {
77
+ readonly input: GetLogAnomalyDetectorCommandInput;
78
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
82
+ constructor(input: GetLogAnomalyDetectorCommandInput);
83
+ /**
84
+ * @internal
85
+ */
86
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
90
+ private serialize;
91
+ /**
92
+ * @internal
93
+ */
94
+ private deserialize;
95
+ }
@@ -0,0 +1,127 @@
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 { ListAnomaliesRequest, ListAnomaliesResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListAnomaliesCommand}.
14
+ */
15
+ export interface ListAnomaliesCommandInput extends ListAnomaliesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListAnomaliesCommand}.
21
+ */
22
+ export interface ListAnomaliesCommandOutput extends ListAnomaliesResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a list of anomalies that log anomaly detectors have found. For details about the structure format of
27
+ * each anomaly object that is returned, see the example in this section.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { CloudWatchLogsClient, ListAnomaliesCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
32
+ * // const { CloudWatchLogsClient, ListAnomaliesCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
33
+ * const client = new CloudWatchLogsClient(config);
34
+ * const input = { // ListAnomaliesRequest
35
+ * anomalyDetectorArn: "STRING_VALUE",
36
+ * suppressionState: "SUPPRESSED" || "UNSUPPRESSED",
37
+ * limit: Number("int"),
38
+ * nextToken: "STRING_VALUE",
39
+ * };
40
+ * const command = new ListAnomaliesCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListAnomaliesResponse
43
+ * // anomalies: [ // Anomalies
44
+ * // { // Anomaly
45
+ * // anomalyId: "STRING_VALUE", // required
46
+ * // patternId: "STRING_VALUE", // required
47
+ * // anomalyDetectorArn: "STRING_VALUE", // required
48
+ * // patternString: "STRING_VALUE", // required
49
+ * // patternRegex: "STRING_VALUE",
50
+ * // priority: "STRING_VALUE",
51
+ * // firstSeen: Number("long"), // required
52
+ * // lastSeen: Number("long"), // required
53
+ * // description: "STRING_VALUE", // required
54
+ * // active: true || false, // required
55
+ * // state: "Active" || "Suppressed" || "Baseline", // required
56
+ * // histogram: { // Histogram // required
57
+ * // "<keys>": Number("long"),
58
+ * // },
59
+ * // logSamples: [ // LogSamples // required
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // patternTokens: [ // PatternTokens // required
63
+ * // { // PatternToken
64
+ * // dynamicTokenPosition: Number("int"),
65
+ * // isDynamic: true || false,
66
+ * // tokenString: "STRING_VALUE",
67
+ * // enumerations: { // Enumerations
68
+ * // "<keys>": Number("long"),
69
+ * // },
70
+ * // },
71
+ * // ],
72
+ * // logGroupArnList: [ // LogGroupArnList // required
73
+ * // "STRING_VALUE",
74
+ * // ],
75
+ * // suppressed: true || false,
76
+ * // suppressedDate: Number("long"),
77
+ * // suppressedUntil: Number("long"),
78
+ * // isPatternLevelSuppression: true || false,
79
+ * // },
80
+ * // ],
81
+ * // nextToken: "STRING_VALUE",
82
+ * // };
83
+ *
84
+ * ```
85
+ *
86
+ * @param ListAnomaliesCommandInput - {@link ListAnomaliesCommandInput}
87
+ * @returns {@link ListAnomaliesCommandOutput}
88
+ * @see {@link ListAnomaliesCommandInput} for command's `input` shape.
89
+ * @see {@link ListAnomaliesCommandOutput} for command's `response` shape.
90
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
91
+ *
92
+ * @throws {@link InvalidParameterException} (client fault)
93
+ * <p>A parameter is specified incorrectly.</p>
94
+ *
95
+ * @throws {@link OperationAbortedException} (client fault)
96
+ * <p>Multiple concurrent requests to update the same resource were in conflict.</p>
97
+ *
98
+ * @throws {@link ResourceNotFoundException} (client fault)
99
+ * <p>The specified resource does not exist.</p>
100
+ *
101
+ * @throws {@link ServiceUnavailableException} (server fault)
102
+ * <p>The service cannot complete the request.</p>
103
+ *
104
+ * @throws {@link CloudWatchLogsServiceException}
105
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
106
+ *
107
+ */
108
+ export declare class ListAnomaliesCommand extends $Command<ListAnomaliesCommandInput, ListAnomaliesCommandOutput, CloudWatchLogsClientResolvedConfig> {
109
+ readonly input: ListAnomaliesCommandInput;
110
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
111
+ /**
112
+ * @public
113
+ */
114
+ constructor(input: ListAnomaliesCommandInput);
115
+ /**
116
+ * @internal
117
+ */
118
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAnomaliesCommandInput, ListAnomaliesCommandOutput>;
119
+ /**
120
+ * @internal
121
+ */
122
+ private serialize;
123
+ /**
124
+ * @internal
125
+ */
126
+ private deserialize;
127
+ }
@@ -0,0 +1,103 @@
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 { ListLogAnomalyDetectorsRequest, ListLogAnomalyDetectorsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListLogAnomalyDetectorsCommand}.
14
+ */
15
+ export interface ListLogAnomalyDetectorsCommandInput extends ListLogAnomalyDetectorsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListLogAnomalyDetectorsCommand}.
21
+ */
22
+ export interface ListLogAnomalyDetectorsCommandOutput extends ListLogAnomalyDetectorsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves a list of the log anomaly detectors in the account.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CloudWatchLogsClient, ListLogAnomalyDetectorsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
31
+ * // const { CloudWatchLogsClient, ListLogAnomalyDetectorsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
32
+ * const client = new CloudWatchLogsClient(config);
33
+ * const input = { // ListLogAnomalyDetectorsRequest
34
+ * filterLogGroupArn: "STRING_VALUE",
35
+ * limit: Number("int"),
36
+ * nextToken: "STRING_VALUE",
37
+ * };
38
+ * const command = new ListLogAnomalyDetectorsCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // ListLogAnomalyDetectorsResponse
41
+ * // anomalyDetectors: [ // AnomalyDetectors
42
+ * // { // AnomalyDetector
43
+ * // anomalyDetectorArn: "STRING_VALUE",
44
+ * // detectorName: "STRING_VALUE",
45
+ * // logGroupArnList: [ // LogGroupArnList
46
+ * // "STRING_VALUE",
47
+ * // ],
48
+ * // evaluationFrequency: "ONE_MIN" || "FIVE_MIN" || "TEN_MIN" || "FIFTEEN_MIN" || "THIRTY_MIN" || "ONE_HOUR",
49
+ * // filterPattern: "STRING_VALUE",
50
+ * // anomalyDetectorStatus: "INITIALIZING" || "TRAINING" || "ANALYZING" || "FAILED" || "DELETED" || "PAUSED",
51
+ * // kmsKeyId: "STRING_VALUE",
52
+ * // creationTimeStamp: Number("long"),
53
+ * // lastModifiedTimeStamp: Number("long"),
54
+ * // anomalyVisibilityTime: Number("long"),
55
+ * // },
56
+ * // ],
57
+ * // nextToken: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param ListLogAnomalyDetectorsCommandInput - {@link ListLogAnomalyDetectorsCommandInput}
63
+ * @returns {@link ListLogAnomalyDetectorsCommandOutput}
64
+ * @see {@link ListLogAnomalyDetectorsCommandInput} for command's `input` shape.
65
+ * @see {@link ListLogAnomalyDetectorsCommandOutput} for command's `response` shape.
66
+ * @see {@link CloudWatchLogsClientResolvedConfig | config} for CloudWatchLogsClient's `config` shape.
67
+ *
68
+ * @throws {@link InvalidParameterException} (client fault)
69
+ * <p>A parameter is specified incorrectly.</p>
70
+ *
71
+ * @throws {@link OperationAbortedException} (client fault)
72
+ * <p>Multiple concurrent requests to update the same resource were in conflict.</p>
73
+ *
74
+ * @throws {@link ResourceNotFoundException} (client fault)
75
+ * <p>The specified resource does not exist.</p>
76
+ *
77
+ * @throws {@link ServiceUnavailableException} (server fault)
78
+ * <p>The service cannot complete the request.</p>
79
+ *
80
+ * @throws {@link CloudWatchLogsServiceException}
81
+ * <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
82
+ *
83
+ */
84
+ export declare class ListLogAnomalyDetectorsCommand extends $Command<ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput, CloudWatchLogsClientResolvedConfig> {
85
+ readonly input: ListLogAnomalyDetectorsCommandInput;
86
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
87
+ /**
88
+ * @public
89
+ */
90
+ constructor(input: ListLogAnomalyDetectorsCommandInput);
91
+ /**
92
+ * @internal
93
+ */
94
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchLogsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput>;
95
+ /**
96
+ * @internal
97
+ */
98
+ private serialize;
99
+ /**
100
+ * @internal
101
+ */
102
+ private deserialize;
103
+ }
@@ -55,7 +55,7 @@ export interface PutDeliveryDestinationCommandOutput extends PutDeliveryDestinat
55
55
  * can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>
56
56
  * <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed
57
57
  * as <b>Supported [V2 Permissions]</b> in the table at
58
- * <a href="https://docs.aws.amazon.com/ AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions">Enabling
58
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
59
59
  * logging from Amazon Web Services services.</a>
60
60
  * </p>
61
61
  * <p>If you use this operation to update an existing delivery destination, all the current delivery destination parameters are overwritten
@@ -49,7 +49,7 @@ export interface PutDeliveryDestinationPolicyCommandOutput extends PutDeliveryDe
49
49
  * </ul>
50
50
  * <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed
51
51
  * as <b>Supported [V2 Permissions]</b> in the table at
52
- * <a href="https://docs.aws.amazon.com/ AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions">Enabling
52
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
53
53
  * logging from Amazon Web Services services.</a>
54
54
  * </p>
55
55
  * <p>The contents of the policy must include two statements. One statement enables general logs delivery, and the other
@@ -54,7 +54,7 @@ export interface PutDeliverySourceCommandOutput extends PutDeliverySourceRespons
54
54
  * can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.</p>
55
55
  * <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed
56
56
  * as <b>Supported [V2 Permissions]</b> in the table at
57
- * <a href="https://docs.aws.amazon.com/ AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html#AWS-vended-logs-permissions">Enabling
57
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
58
58
  * logging from Amazon Web Services services.</a>
59
59
  * </p>
60
60
  * <p>If you use this operation to update an existing delivery source, all the current delivery source parameters are overwritten