@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.
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 +3 -3
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "../commands/ListAnomaliesCommand";
3
+ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListAnomalies(config: CloudWatchLogsPaginationConfiguration, input: ListAnomaliesCommandInput, ...additionalArguments: any): Paginator<ListAnomaliesCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "../commands/ListLogAnomalyDetectorsCommand";
3
+ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListLogAnomalyDetectors(config: CloudWatchLogsPaginationConfiguration, input: ListLogAnomalyDetectorsCommandInput, ...additionalArguments: any): Paginator<ListLogAnomalyDetectorsCommandOutput>;
@@ -9,3 +9,5 @@ export * from "./DescribeSubscriptionFiltersPaginator";
9
9
  export * from "./FilterLogEventsPaginator";
10
10
  export * from "./GetLogEventsPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./ListAnomaliesPaginator";
13
+ export * from "./ListLogAnomalyDetectorsPaginator";
@@ -4,6 +4,7 @@ import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "../co
4
4
  import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "../commands/CancelExportTaskCommand";
5
5
  import { CreateDeliveryCommandInput, CreateDeliveryCommandOutput } from "../commands/CreateDeliveryCommand";
6
6
  import { CreateExportTaskCommandInput, CreateExportTaskCommandOutput } from "../commands/CreateExportTaskCommand";
7
+ import { CreateLogAnomalyDetectorCommandInput, CreateLogAnomalyDetectorCommandOutput } from "../commands/CreateLogAnomalyDetectorCommand";
7
8
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput } from "../commands/CreateLogGroupCommand";
8
9
  import { CreateLogStreamCommandInput, CreateLogStreamCommandOutput } from "../commands/CreateLogStreamCommand";
9
10
  import { DeleteAccountPolicyCommandInput, DeleteAccountPolicyCommandOutput } from "../commands/DeleteAccountPolicyCommand";
@@ -13,6 +14,7 @@ import { DeleteDeliveryDestinationCommandInput, DeleteDeliveryDestinationCommand
13
14
  import { DeleteDeliveryDestinationPolicyCommandInput, DeleteDeliveryDestinationPolicyCommandOutput } from "../commands/DeleteDeliveryDestinationPolicyCommand";
14
15
  import { DeleteDeliverySourceCommandInput, DeleteDeliverySourceCommandOutput } from "../commands/DeleteDeliverySourceCommand";
15
16
  import { DeleteDestinationCommandInput, DeleteDestinationCommandOutput } from "../commands/DeleteDestinationCommand";
17
+ import { DeleteLogAnomalyDetectorCommandInput, DeleteLogAnomalyDetectorCommandOutput } from "../commands/DeleteLogAnomalyDetectorCommand";
16
18
  import { DeleteLogGroupCommandInput, DeleteLogGroupCommandOutput } from "../commands/DeleteLogGroupCommand";
17
19
  import { DeleteLogStreamCommandInput, DeleteLogStreamCommandOutput } from "../commands/DeleteLogStreamCommand";
18
20
  import { DeleteMetricFilterCommandInput, DeleteMetricFilterCommandOutput } from "../commands/DeleteMetricFilterCommand";
@@ -40,10 +42,13 @@ import { GetDeliveryCommandInput, GetDeliveryCommandOutput } from "../commands/G
40
42
  import { GetDeliveryDestinationCommandInput, GetDeliveryDestinationCommandOutput } from "../commands/GetDeliveryDestinationCommand";
41
43
  import { GetDeliveryDestinationPolicyCommandInput, GetDeliveryDestinationPolicyCommandOutput } from "../commands/GetDeliveryDestinationPolicyCommand";
42
44
  import { GetDeliverySourceCommandInput, GetDeliverySourceCommandOutput } from "../commands/GetDeliverySourceCommand";
45
+ import { GetLogAnomalyDetectorCommandInput, GetLogAnomalyDetectorCommandOutput } from "../commands/GetLogAnomalyDetectorCommand";
43
46
  import { GetLogEventsCommandInput, GetLogEventsCommandOutput } from "../commands/GetLogEventsCommand";
44
47
  import { GetLogGroupFieldsCommandInput, GetLogGroupFieldsCommandOutput } from "../commands/GetLogGroupFieldsCommand";
45
48
  import { GetLogRecordCommandInput, GetLogRecordCommandOutput } from "../commands/GetLogRecordCommand";
46
49
  import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "../commands/GetQueryResultsCommand";
50
+ import { ListAnomaliesCommandInput, ListAnomaliesCommandOutput } from "../commands/ListAnomaliesCommand";
51
+ import { ListLogAnomalyDetectorsCommandInput, ListLogAnomalyDetectorsCommandOutput } from "../commands/ListLogAnomalyDetectorsCommand";
47
52
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
48
53
  import { ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput } from "../commands/ListTagsLogGroupCommand";
49
54
  import { PutAccountPolicyCommandInput, PutAccountPolicyCommandOutput } from "../commands/PutAccountPolicyCommand";
@@ -66,6 +71,8 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/T
66
71
  import { TestMetricFilterCommandInput, TestMetricFilterCommandOutput } from "../commands/TestMetricFilterCommand";
67
72
  import { UntagLogGroupCommandInput, UntagLogGroupCommandOutput } from "../commands/UntagLogGroupCommand";
68
73
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
74
+ import { UpdateAnomalyCommandInput, UpdateAnomalyCommandOutput } from "../commands/UpdateAnomalyCommand";
75
+ import { UpdateLogAnomalyDetectorCommandInput, UpdateLogAnomalyDetectorCommandOutput } from "../commands/UpdateLogAnomalyDetectorCommand";
69
76
  /**
70
77
  * serializeAws_json1_1AssociateKmsKeyCommand
71
78
  */
@@ -82,6 +89,10 @@ export declare const se_CreateDeliveryCommand: (input: CreateDeliveryCommandInpu
82
89
  * serializeAws_json1_1CreateExportTaskCommand
83
90
  */
84
91
  export declare const se_CreateExportTaskCommand: (input: CreateExportTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
92
+ /**
93
+ * serializeAws_json1_1CreateLogAnomalyDetectorCommand
94
+ */
95
+ export declare const se_CreateLogAnomalyDetectorCommand: (input: CreateLogAnomalyDetectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
85
96
  /**
86
97
  * serializeAws_json1_1CreateLogGroupCommand
87
98
  */
@@ -118,6 +129,10 @@ export declare const se_DeleteDeliverySourceCommand: (input: DeleteDeliverySourc
118
129
  * serializeAws_json1_1DeleteDestinationCommand
119
130
  */
120
131
  export declare const se_DeleteDestinationCommand: (input: DeleteDestinationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
132
+ /**
133
+ * serializeAws_json1_1DeleteLogAnomalyDetectorCommand
134
+ */
135
+ export declare const se_DeleteLogAnomalyDetectorCommand: (input: DeleteLogAnomalyDetectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
121
136
  /**
122
137
  * serializeAws_json1_1DeleteLogGroupCommand
123
138
  */
@@ -226,6 +241,10 @@ export declare const se_GetDeliveryDestinationPolicyCommand: (input: GetDelivery
226
241
  * serializeAws_json1_1GetDeliverySourceCommand
227
242
  */
228
243
  export declare const se_GetDeliverySourceCommand: (input: GetDeliverySourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
244
+ /**
245
+ * serializeAws_json1_1GetLogAnomalyDetectorCommand
246
+ */
247
+ export declare const se_GetLogAnomalyDetectorCommand: (input: GetLogAnomalyDetectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
229
248
  /**
230
249
  * serializeAws_json1_1GetLogEventsCommand
231
250
  */
@@ -242,6 +261,14 @@ export declare const se_GetLogRecordCommand: (input: GetLogRecordCommandInput, c
242
261
  * serializeAws_json1_1GetQueryResultsCommand
243
262
  */
244
263
  export declare const se_GetQueryResultsCommand: (input: GetQueryResultsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
264
+ /**
265
+ * serializeAws_json1_1ListAnomaliesCommand
266
+ */
267
+ export declare const se_ListAnomaliesCommand: (input: ListAnomaliesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
268
+ /**
269
+ * serializeAws_json1_1ListLogAnomalyDetectorsCommand
270
+ */
271
+ export declare const se_ListLogAnomalyDetectorsCommand: (input: ListLogAnomalyDetectorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
245
272
  /**
246
273
  * serializeAws_json1_1ListTagsForResourceCommand
247
274
  */
@@ -330,6 +357,14 @@ export declare const se_UntagLogGroupCommand: (input: UntagLogGroupCommandInput,
330
357
  * serializeAws_json1_1UntagResourceCommand
331
358
  */
332
359
  export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
360
+ /**
361
+ * serializeAws_json1_1UpdateAnomalyCommand
362
+ */
363
+ export declare const se_UpdateAnomalyCommand: (input: UpdateAnomalyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
364
+ /**
365
+ * serializeAws_json1_1UpdateLogAnomalyDetectorCommand
366
+ */
367
+ export declare const se_UpdateLogAnomalyDetectorCommand: (input: UpdateLogAnomalyDetectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
333
368
  /**
334
369
  * deserializeAws_json1_1AssociateKmsKeyCommand
335
370
  */
@@ -346,6 +381,10 @@ export declare const de_CreateDeliveryCommand: (output: __HttpResponse, context:
346
381
  * deserializeAws_json1_1CreateExportTaskCommand
347
382
  */
348
383
  export declare const de_CreateExportTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateExportTaskCommandOutput>;
384
+ /**
385
+ * deserializeAws_json1_1CreateLogAnomalyDetectorCommand
386
+ */
387
+ export declare const de_CreateLogAnomalyDetectorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateLogAnomalyDetectorCommandOutput>;
349
388
  /**
350
389
  * deserializeAws_json1_1CreateLogGroupCommand
351
390
  */
@@ -382,6 +421,10 @@ export declare const de_DeleteDeliverySourceCommand: (output: __HttpResponse, co
382
421
  * deserializeAws_json1_1DeleteDestinationCommand
383
422
  */
384
423
  export declare const de_DeleteDestinationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDestinationCommandOutput>;
424
+ /**
425
+ * deserializeAws_json1_1DeleteLogAnomalyDetectorCommand
426
+ */
427
+ export declare const de_DeleteLogAnomalyDetectorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteLogAnomalyDetectorCommandOutput>;
385
428
  /**
386
429
  * deserializeAws_json1_1DeleteLogGroupCommand
387
430
  */
@@ -490,6 +533,10 @@ export declare const de_GetDeliveryDestinationPolicyCommand: (output: __HttpResp
490
533
  * deserializeAws_json1_1GetDeliverySourceCommand
491
534
  */
492
535
  export declare const de_GetDeliverySourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDeliverySourceCommandOutput>;
536
+ /**
537
+ * deserializeAws_json1_1GetLogAnomalyDetectorCommand
538
+ */
539
+ export declare const de_GetLogAnomalyDetectorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLogAnomalyDetectorCommandOutput>;
493
540
  /**
494
541
  * deserializeAws_json1_1GetLogEventsCommand
495
542
  */
@@ -506,6 +553,14 @@ export declare const de_GetLogRecordCommand: (output: __HttpResponse, context: _
506
553
  * deserializeAws_json1_1GetQueryResultsCommand
507
554
  */
508
555
  export declare const de_GetQueryResultsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetQueryResultsCommandOutput>;
556
+ /**
557
+ * deserializeAws_json1_1ListAnomaliesCommand
558
+ */
559
+ export declare const de_ListAnomaliesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAnomaliesCommandOutput>;
560
+ /**
561
+ * deserializeAws_json1_1ListLogAnomalyDetectorsCommand
562
+ */
563
+ export declare const de_ListLogAnomalyDetectorsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLogAnomalyDetectorsCommandOutput>;
509
564
  /**
510
565
  * deserializeAws_json1_1ListTagsForResourceCommand
511
566
  */
@@ -594,3 +649,11 @@ export declare const de_UntagLogGroupCommand: (output: __HttpResponse, context:
594
649
  * deserializeAws_json1_1UntagResourceCommand
595
650
  */
596
651
  export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
652
+ /**
653
+ * deserializeAws_json1_1UpdateAnomalyCommand
654
+ */
655
+ export declare const de_UpdateAnomalyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateAnomalyCommandOutput>;
656
+ /**
657
+ * deserializeAws_json1_1UpdateLogAnomalyDetectorCommand
658
+ */
659
+ export declare const de_UpdateLogAnomalyDetectorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateLogAnomalyDetectorCommandOutput>;
@@ -16,6 +16,10 @@ import {
16
16
  CreateExportTaskCommandInput,
17
17
  CreateExportTaskCommandOutput,
18
18
  } from "./commands/CreateExportTaskCommand";
19
+ import {
20
+ CreateLogAnomalyDetectorCommandInput,
21
+ CreateLogAnomalyDetectorCommandOutput,
22
+ } from "./commands/CreateLogAnomalyDetectorCommand";
19
23
  import {
20
24
  CreateLogGroupCommandInput,
21
25
  CreateLogGroupCommandOutput,
@@ -52,6 +56,10 @@ import {
52
56
  DeleteDestinationCommandInput,
53
57
  DeleteDestinationCommandOutput,
54
58
  } from "./commands/DeleteDestinationCommand";
59
+ import {
60
+ DeleteLogAnomalyDetectorCommandInput,
61
+ DeleteLogAnomalyDetectorCommandOutput,
62
+ } from "./commands/DeleteLogAnomalyDetectorCommand";
55
63
  import {
56
64
  DeleteLogGroupCommandInput,
57
65
  DeleteLogGroupCommandOutput,
@@ -160,6 +168,10 @@ import {
160
168
  GetDeliverySourceCommandInput,
161
169
  GetDeliverySourceCommandOutput,
162
170
  } from "./commands/GetDeliverySourceCommand";
171
+ import {
172
+ GetLogAnomalyDetectorCommandInput,
173
+ GetLogAnomalyDetectorCommandOutput,
174
+ } from "./commands/GetLogAnomalyDetectorCommand";
163
175
  import {
164
176
  GetLogEventsCommandInput,
165
177
  GetLogEventsCommandOutput,
@@ -176,6 +188,14 @@ import {
176
188
  GetQueryResultsCommandInput,
177
189
  GetQueryResultsCommandOutput,
178
190
  } from "./commands/GetQueryResultsCommand";
191
+ import {
192
+ ListAnomaliesCommandInput,
193
+ ListAnomaliesCommandOutput,
194
+ } from "./commands/ListAnomaliesCommand";
195
+ import {
196
+ ListLogAnomalyDetectorsCommandInput,
197
+ ListLogAnomalyDetectorsCommandOutput,
198
+ } from "./commands/ListLogAnomalyDetectorsCommand";
179
199
  import {
180
200
  ListTagsForResourceCommandInput,
181
201
  ListTagsForResourceCommandOutput,
@@ -264,6 +284,14 @@ import {
264
284
  UntagResourceCommandInput,
265
285
  UntagResourceCommandOutput,
266
286
  } from "./commands/UntagResourceCommand";
287
+ import {
288
+ UpdateAnomalyCommandInput,
289
+ UpdateAnomalyCommandOutput,
290
+ } from "./commands/UpdateAnomalyCommand";
291
+ import {
292
+ UpdateLogAnomalyDetectorCommandInput,
293
+ UpdateLogAnomalyDetectorCommandOutput,
294
+ } from "./commands/UpdateLogAnomalyDetectorCommand";
267
295
  export interface CloudWatchLogs {
268
296
  associateKmsKey(
269
297
  args: AssociateKmsKeyCommandInput,
@@ -317,6 +345,19 @@ export interface CloudWatchLogs {
317
345
  options: __HttpHandlerOptions,
318
346
  cb: (err: any, data?: CreateExportTaskCommandOutput) => void
319
347
  ): void;
348
+ createLogAnomalyDetector(
349
+ args: CreateLogAnomalyDetectorCommandInput,
350
+ options?: __HttpHandlerOptions
351
+ ): Promise<CreateLogAnomalyDetectorCommandOutput>;
352
+ createLogAnomalyDetector(
353
+ args: CreateLogAnomalyDetectorCommandInput,
354
+ cb: (err: any, data?: CreateLogAnomalyDetectorCommandOutput) => void
355
+ ): void;
356
+ createLogAnomalyDetector(
357
+ args: CreateLogAnomalyDetectorCommandInput,
358
+ options: __HttpHandlerOptions,
359
+ cb: (err: any, data?: CreateLogAnomalyDetectorCommandOutput) => void
360
+ ): void;
320
361
  createLogGroup(
321
362
  args: CreateLogGroupCommandInput,
322
363
  options?: __HttpHandlerOptions
@@ -434,6 +475,19 @@ export interface CloudWatchLogs {
434
475
  options: __HttpHandlerOptions,
435
476
  cb: (err: any, data?: DeleteDestinationCommandOutput) => void
436
477
  ): void;
478
+ deleteLogAnomalyDetector(
479
+ args: DeleteLogAnomalyDetectorCommandInput,
480
+ options?: __HttpHandlerOptions
481
+ ): Promise<DeleteLogAnomalyDetectorCommandOutput>;
482
+ deleteLogAnomalyDetector(
483
+ args: DeleteLogAnomalyDetectorCommandInput,
484
+ cb: (err: any, data?: DeleteLogAnomalyDetectorCommandOutput) => void
485
+ ): void;
486
+ deleteLogAnomalyDetector(
487
+ args: DeleteLogAnomalyDetectorCommandInput,
488
+ options: __HttpHandlerOptions,
489
+ cb: (err: any, data?: DeleteLogAnomalyDetectorCommandOutput) => void
490
+ ): void;
437
491
  deleteLogGroup(
438
492
  args: DeleteLogGroupCommandInput,
439
493
  options?: __HttpHandlerOptions
@@ -785,6 +839,19 @@ export interface CloudWatchLogs {
785
839
  options: __HttpHandlerOptions,
786
840
  cb: (err: any, data?: GetDeliverySourceCommandOutput) => void
787
841
  ): void;
842
+ getLogAnomalyDetector(
843
+ args: GetLogAnomalyDetectorCommandInput,
844
+ options?: __HttpHandlerOptions
845
+ ): Promise<GetLogAnomalyDetectorCommandOutput>;
846
+ getLogAnomalyDetector(
847
+ args: GetLogAnomalyDetectorCommandInput,
848
+ cb: (err: any, data?: GetLogAnomalyDetectorCommandOutput) => void
849
+ ): void;
850
+ getLogAnomalyDetector(
851
+ args: GetLogAnomalyDetectorCommandInput,
852
+ options: __HttpHandlerOptions,
853
+ cb: (err: any, data?: GetLogAnomalyDetectorCommandOutput) => void
854
+ ): void;
788
855
  getLogEvents(
789
856
  args: GetLogEventsCommandInput,
790
857
  options?: __HttpHandlerOptions
@@ -837,6 +904,32 @@ export interface CloudWatchLogs {
837
904
  options: __HttpHandlerOptions,
838
905
  cb: (err: any, data?: GetQueryResultsCommandOutput) => void
839
906
  ): void;
907
+ listAnomalies(
908
+ args: ListAnomaliesCommandInput,
909
+ options?: __HttpHandlerOptions
910
+ ): Promise<ListAnomaliesCommandOutput>;
911
+ listAnomalies(
912
+ args: ListAnomaliesCommandInput,
913
+ cb: (err: any, data?: ListAnomaliesCommandOutput) => void
914
+ ): void;
915
+ listAnomalies(
916
+ args: ListAnomaliesCommandInput,
917
+ options: __HttpHandlerOptions,
918
+ cb: (err: any, data?: ListAnomaliesCommandOutput) => void
919
+ ): void;
920
+ listLogAnomalyDetectors(
921
+ args: ListLogAnomalyDetectorsCommandInput,
922
+ options?: __HttpHandlerOptions
923
+ ): Promise<ListLogAnomalyDetectorsCommandOutput>;
924
+ listLogAnomalyDetectors(
925
+ args: ListLogAnomalyDetectorsCommandInput,
926
+ cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void
927
+ ): void;
928
+ listLogAnomalyDetectors(
929
+ args: ListLogAnomalyDetectorsCommandInput,
930
+ options: __HttpHandlerOptions,
931
+ cb: (err: any, data?: ListLogAnomalyDetectorsCommandOutput) => void
932
+ ): void;
840
933
  listTagsForResource(
841
934
  args: ListTagsForResourceCommandInput,
842
935
  options?: __HttpHandlerOptions
@@ -1123,6 +1216,32 @@ export interface CloudWatchLogs {
1123
1216
  options: __HttpHandlerOptions,
1124
1217
  cb: (err: any, data?: UntagResourceCommandOutput) => void
1125
1218
  ): void;
1219
+ updateAnomaly(
1220
+ args: UpdateAnomalyCommandInput,
1221
+ options?: __HttpHandlerOptions
1222
+ ): Promise<UpdateAnomalyCommandOutput>;
1223
+ updateAnomaly(
1224
+ args: UpdateAnomalyCommandInput,
1225
+ cb: (err: any, data?: UpdateAnomalyCommandOutput) => void
1226
+ ): void;
1227
+ updateAnomaly(
1228
+ args: UpdateAnomalyCommandInput,
1229
+ options: __HttpHandlerOptions,
1230
+ cb: (err: any, data?: UpdateAnomalyCommandOutput) => void
1231
+ ): void;
1232
+ updateLogAnomalyDetector(
1233
+ args: UpdateLogAnomalyDetectorCommandInput,
1234
+ options?: __HttpHandlerOptions
1235
+ ): Promise<UpdateLogAnomalyDetectorCommandOutput>;
1236
+ updateLogAnomalyDetector(
1237
+ args: UpdateLogAnomalyDetectorCommandInput,
1238
+ cb: (err: any, data?: UpdateLogAnomalyDetectorCommandOutput) => void
1239
+ ): void;
1240
+ updateLogAnomalyDetector(
1241
+ args: UpdateLogAnomalyDetectorCommandInput,
1242
+ options: __HttpHandlerOptions,
1243
+ cb: (err: any, data?: UpdateLogAnomalyDetectorCommandOutput) => void
1244
+ ): void;
1126
1245
  }
1127
1246
  export declare class CloudWatchLogs
1128
1247
  extends CloudWatchLogsClient
@@ -61,6 +61,10 @@ import {
61
61
  CreateExportTaskCommandInput,
62
62
  CreateExportTaskCommandOutput,
63
63
  } from "./commands/CreateExportTaskCommand";
64
+ import {
65
+ CreateLogAnomalyDetectorCommandInput,
66
+ CreateLogAnomalyDetectorCommandOutput,
67
+ } from "./commands/CreateLogAnomalyDetectorCommand";
64
68
  import {
65
69
  CreateLogGroupCommandInput,
66
70
  CreateLogGroupCommandOutput,
@@ -97,6 +101,10 @@ import {
97
101
  DeleteDestinationCommandInput,
98
102
  DeleteDestinationCommandOutput,
99
103
  } from "./commands/DeleteDestinationCommand";
104
+ import {
105
+ DeleteLogAnomalyDetectorCommandInput,
106
+ DeleteLogAnomalyDetectorCommandOutput,
107
+ } from "./commands/DeleteLogAnomalyDetectorCommand";
100
108
  import {
101
109
  DeleteLogGroupCommandInput,
102
110
  DeleteLogGroupCommandOutput,
@@ -205,6 +213,10 @@ import {
205
213
  GetDeliverySourceCommandInput,
206
214
  GetDeliverySourceCommandOutput,
207
215
  } from "./commands/GetDeliverySourceCommand";
216
+ import {
217
+ GetLogAnomalyDetectorCommandInput,
218
+ GetLogAnomalyDetectorCommandOutput,
219
+ } from "./commands/GetLogAnomalyDetectorCommand";
208
220
  import {
209
221
  GetLogEventsCommandInput,
210
222
  GetLogEventsCommandOutput,
@@ -221,6 +233,14 @@ import {
221
233
  GetQueryResultsCommandInput,
222
234
  GetQueryResultsCommandOutput,
223
235
  } from "./commands/GetQueryResultsCommand";
236
+ import {
237
+ ListAnomaliesCommandInput,
238
+ ListAnomaliesCommandOutput,
239
+ } from "./commands/ListAnomaliesCommand";
240
+ import {
241
+ ListLogAnomalyDetectorsCommandInput,
242
+ ListLogAnomalyDetectorsCommandOutput,
243
+ } from "./commands/ListLogAnomalyDetectorsCommand";
224
244
  import {
225
245
  ListTagsForResourceCommandInput,
226
246
  ListTagsForResourceCommandOutput,
@@ -309,6 +329,14 @@ import {
309
329
  UntagResourceCommandInput,
310
330
  UntagResourceCommandOutput,
311
331
  } from "./commands/UntagResourceCommand";
332
+ import {
333
+ UpdateAnomalyCommandInput,
334
+ UpdateAnomalyCommandOutput,
335
+ } from "./commands/UpdateAnomalyCommand";
336
+ import {
337
+ UpdateLogAnomalyDetectorCommandInput,
338
+ UpdateLogAnomalyDetectorCommandOutput,
339
+ } from "./commands/UpdateLogAnomalyDetectorCommand";
312
340
  import {
313
341
  ClientInputEndpointParameters,
314
342
  ClientResolvedEndpointParameters,
@@ -321,6 +349,7 @@ export type ServiceInputTypes =
321
349
  | CancelExportTaskCommandInput
322
350
  | CreateDeliveryCommandInput
323
351
  | CreateExportTaskCommandInput
352
+ | CreateLogAnomalyDetectorCommandInput
324
353
  | CreateLogGroupCommandInput
325
354
  | CreateLogStreamCommandInput
326
355
  | DeleteAccountPolicyCommandInput
@@ -330,6 +359,7 @@ export type ServiceInputTypes =
330
359
  | DeleteDeliveryDestinationPolicyCommandInput
331
360
  | DeleteDeliverySourceCommandInput
332
361
  | DeleteDestinationCommandInput
362
+ | DeleteLogAnomalyDetectorCommandInput
333
363
  | DeleteLogGroupCommandInput
334
364
  | DeleteLogStreamCommandInput
335
365
  | DeleteMetricFilterCommandInput
@@ -357,10 +387,13 @@ export type ServiceInputTypes =
357
387
  | GetDeliveryDestinationCommandInput
358
388
  | GetDeliveryDestinationPolicyCommandInput
359
389
  | GetDeliverySourceCommandInput
390
+ | GetLogAnomalyDetectorCommandInput
360
391
  | GetLogEventsCommandInput
361
392
  | GetLogGroupFieldsCommandInput
362
393
  | GetLogRecordCommandInput
363
394
  | GetQueryResultsCommandInput
395
+ | ListAnomaliesCommandInput
396
+ | ListLogAnomalyDetectorsCommandInput
364
397
  | ListTagsForResourceCommandInput
365
398
  | ListTagsLogGroupCommandInput
366
399
  | PutAccountPolicyCommandInput
@@ -382,12 +415,15 @@ export type ServiceInputTypes =
382
415
  | TagResourceCommandInput
383
416
  | TestMetricFilterCommandInput
384
417
  | UntagLogGroupCommandInput
385
- | UntagResourceCommandInput;
418
+ | UntagResourceCommandInput
419
+ | UpdateAnomalyCommandInput
420
+ | UpdateLogAnomalyDetectorCommandInput;
386
421
  export type ServiceOutputTypes =
387
422
  | AssociateKmsKeyCommandOutput
388
423
  | CancelExportTaskCommandOutput
389
424
  | CreateDeliveryCommandOutput
390
425
  | CreateExportTaskCommandOutput
426
+ | CreateLogAnomalyDetectorCommandOutput
391
427
  | CreateLogGroupCommandOutput
392
428
  | CreateLogStreamCommandOutput
393
429
  | DeleteAccountPolicyCommandOutput
@@ -397,6 +433,7 @@ export type ServiceOutputTypes =
397
433
  | DeleteDeliveryDestinationPolicyCommandOutput
398
434
  | DeleteDeliverySourceCommandOutput
399
435
  | DeleteDestinationCommandOutput
436
+ | DeleteLogAnomalyDetectorCommandOutput
400
437
  | DeleteLogGroupCommandOutput
401
438
  | DeleteLogStreamCommandOutput
402
439
  | DeleteMetricFilterCommandOutput
@@ -424,10 +461,13 @@ export type ServiceOutputTypes =
424
461
  | GetDeliveryDestinationCommandOutput
425
462
  | GetDeliveryDestinationPolicyCommandOutput
426
463
  | GetDeliverySourceCommandOutput
464
+ | GetLogAnomalyDetectorCommandOutput
427
465
  | GetLogEventsCommandOutput
428
466
  | GetLogGroupFieldsCommandOutput
429
467
  | GetLogRecordCommandOutput
430
468
  | GetQueryResultsCommandOutput
469
+ | ListAnomaliesCommandOutput
470
+ | ListLogAnomalyDetectorsCommandOutput
431
471
  | ListTagsForResourceCommandOutput
432
472
  | ListTagsLogGroupCommandOutput
433
473
  | PutAccountPolicyCommandOutput
@@ -449,7 +489,9 @@ export type ServiceOutputTypes =
449
489
  | TagResourceCommandOutput
450
490
  | TestMetricFilterCommandOutput
451
491
  | UntagLogGroupCommandOutput
452
- | UntagResourceCommandOutput;
492
+ | UntagResourceCommandOutput
493
+ | UpdateAnomalyCommandOutput
494
+ | UpdateLogAnomalyDetectorCommandOutput;
453
495
  export interface ClientDefaults
454
496
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
455
497
  requestHandler?: __HttpHandler;
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import {
15
+ CreateLogAnomalyDetectorRequest,
16
+ CreateLogAnomalyDetectorResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface CreateLogAnomalyDetectorCommandInput
20
+ extends CreateLogAnomalyDetectorRequest {}
21
+ export interface CreateLogAnomalyDetectorCommandOutput
22
+ extends CreateLogAnomalyDetectorResponse,
23
+ __MetadataBearer {}
24
+ export declare class CreateLogAnomalyDetectorCommand extends $Command<
25
+ CreateLogAnomalyDetectorCommandInput,
26
+ CreateLogAnomalyDetectorCommandOutput,
27
+ CloudWatchLogsClientResolvedConfig
28
+ > {
29
+ readonly input: CreateLogAnomalyDetectorCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: CreateLogAnomalyDetectorCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CloudWatchLogsClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ CreateLogAnomalyDetectorCommandInput,
38
+ CreateLogAnomalyDetectorCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import { DeleteLogAnomalyDetectorRequest } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface DeleteLogAnomalyDetectorCommandInput
17
+ extends DeleteLogAnomalyDetectorRequest {}
18
+ export interface DeleteLogAnomalyDetectorCommandOutput
19
+ extends __MetadataBearer {}
20
+ export declare class DeleteLogAnomalyDetectorCommand extends $Command<
21
+ DeleteLogAnomalyDetectorCommandInput,
22
+ DeleteLogAnomalyDetectorCommandOutput,
23
+ CloudWatchLogsClientResolvedConfig
24
+ > {
25
+ readonly input: DeleteLogAnomalyDetectorCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: DeleteLogAnomalyDetectorCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: CloudWatchLogsClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<
33
+ DeleteLogAnomalyDetectorCommandInput,
34
+ DeleteLogAnomalyDetectorCommandOutput
35
+ >;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import {
15
+ GetLogAnomalyDetectorRequest,
16
+ GetLogAnomalyDetectorResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetLogAnomalyDetectorCommandInput
20
+ extends GetLogAnomalyDetectorRequest {}
21
+ export interface GetLogAnomalyDetectorCommandOutput
22
+ extends GetLogAnomalyDetectorResponse,
23
+ __MetadataBearer {}
24
+ export declare class GetLogAnomalyDetectorCommand extends $Command<
25
+ GetLogAnomalyDetectorCommandInput,
26
+ GetLogAnomalyDetectorCommandOutput,
27
+ CloudWatchLogsClientResolvedConfig
28
+ > {
29
+ readonly input: GetLogAnomalyDetectorCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetLogAnomalyDetectorCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CloudWatchLogsClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ GetLogAnomalyDetectorCommandInput,
38
+ GetLogAnomalyDetectorCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CloudWatchLogsClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudWatchLogsClient";
14
+ import {
15
+ ListAnomaliesRequest,
16
+ ListAnomaliesResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface ListAnomaliesCommandInput extends ListAnomaliesRequest {}
20
+ export interface ListAnomaliesCommandOutput
21
+ extends ListAnomaliesResponse,
22
+ __MetadataBearer {}
23
+ export declare class ListAnomaliesCommand extends $Command<
24
+ ListAnomaliesCommandInput,
25
+ ListAnomaliesCommandOutput,
26
+ CloudWatchLogsClientResolvedConfig
27
+ > {
28
+ readonly input: ListAnomaliesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListAnomaliesCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: CloudWatchLogsClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<ListAnomaliesCommandInput, ListAnomaliesCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }