@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
@@ -7,6 +7,7 @@ const AssociateKmsKeyCommand_1 = require("./commands/AssociateKmsKeyCommand");
7
7
  const CancelExportTaskCommand_1 = require("./commands/CancelExportTaskCommand");
8
8
  const CreateDeliveryCommand_1 = require("./commands/CreateDeliveryCommand");
9
9
  const CreateExportTaskCommand_1 = require("./commands/CreateExportTaskCommand");
10
+ const CreateLogAnomalyDetectorCommand_1 = require("./commands/CreateLogAnomalyDetectorCommand");
10
11
  const CreateLogGroupCommand_1 = require("./commands/CreateLogGroupCommand");
11
12
  const CreateLogStreamCommand_1 = require("./commands/CreateLogStreamCommand");
12
13
  const DeleteAccountPolicyCommand_1 = require("./commands/DeleteAccountPolicyCommand");
@@ -16,6 +17,7 @@ const DeleteDeliveryDestinationCommand_1 = require("./commands/DeleteDeliveryDes
16
17
  const DeleteDeliveryDestinationPolicyCommand_1 = require("./commands/DeleteDeliveryDestinationPolicyCommand");
17
18
  const DeleteDeliverySourceCommand_1 = require("./commands/DeleteDeliverySourceCommand");
18
19
  const DeleteDestinationCommand_1 = require("./commands/DeleteDestinationCommand");
20
+ const DeleteLogAnomalyDetectorCommand_1 = require("./commands/DeleteLogAnomalyDetectorCommand");
19
21
  const DeleteLogGroupCommand_1 = require("./commands/DeleteLogGroupCommand");
20
22
  const DeleteLogStreamCommand_1 = require("./commands/DeleteLogStreamCommand");
21
23
  const DeleteMetricFilterCommand_1 = require("./commands/DeleteMetricFilterCommand");
@@ -43,10 +45,13 @@ const GetDeliveryCommand_1 = require("./commands/GetDeliveryCommand");
43
45
  const GetDeliveryDestinationCommand_1 = require("./commands/GetDeliveryDestinationCommand");
44
46
  const GetDeliveryDestinationPolicyCommand_1 = require("./commands/GetDeliveryDestinationPolicyCommand");
45
47
  const GetDeliverySourceCommand_1 = require("./commands/GetDeliverySourceCommand");
48
+ const GetLogAnomalyDetectorCommand_1 = require("./commands/GetLogAnomalyDetectorCommand");
46
49
  const GetLogEventsCommand_1 = require("./commands/GetLogEventsCommand");
47
50
  const GetLogGroupFieldsCommand_1 = require("./commands/GetLogGroupFieldsCommand");
48
51
  const GetLogRecordCommand_1 = require("./commands/GetLogRecordCommand");
49
52
  const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
53
+ const ListAnomaliesCommand_1 = require("./commands/ListAnomaliesCommand");
54
+ const ListLogAnomalyDetectorsCommand_1 = require("./commands/ListLogAnomalyDetectorsCommand");
50
55
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
51
56
  const ListTagsLogGroupCommand_1 = require("./commands/ListTagsLogGroupCommand");
52
57
  const PutAccountPolicyCommand_1 = require("./commands/PutAccountPolicyCommand");
@@ -69,11 +74,14 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
69
74
  const TestMetricFilterCommand_1 = require("./commands/TestMetricFilterCommand");
70
75
  const UntagLogGroupCommand_1 = require("./commands/UntagLogGroupCommand");
71
76
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
77
+ const UpdateAnomalyCommand_1 = require("./commands/UpdateAnomalyCommand");
78
+ const UpdateLogAnomalyDetectorCommand_1 = require("./commands/UpdateLogAnomalyDetectorCommand");
72
79
  const commands = {
73
80
  AssociateKmsKeyCommand: AssociateKmsKeyCommand_1.AssociateKmsKeyCommand,
74
81
  CancelExportTaskCommand: CancelExportTaskCommand_1.CancelExportTaskCommand,
75
82
  CreateDeliveryCommand: CreateDeliveryCommand_1.CreateDeliveryCommand,
76
83
  CreateExportTaskCommand: CreateExportTaskCommand_1.CreateExportTaskCommand,
84
+ CreateLogAnomalyDetectorCommand: CreateLogAnomalyDetectorCommand_1.CreateLogAnomalyDetectorCommand,
77
85
  CreateLogGroupCommand: CreateLogGroupCommand_1.CreateLogGroupCommand,
78
86
  CreateLogStreamCommand: CreateLogStreamCommand_1.CreateLogStreamCommand,
79
87
  DeleteAccountPolicyCommand: DeleteAccountPolicyCommand_1.DeleteAccountPolicyCommand,
@@ -83,6 +91,7 @@ const commands = {
83
91
  DeleteDeliveryDestinationPolicyCommand: DeleteDeliveryDestinationPolicyCommand_1.DeleteDeliveryDestinationPolicyCommand,
84
92
  DeleteDeliverySourceCommand: DeleteDeliverySourceCommand_1.DeleteDeliverySourceCommand,
85
93
  DeleteDestinationCommand: DeleteDestinationCommand_1.DeleteDestinationCommand,
94
+ DeleteLogAnomalyDetectorCommand: DeleteLogAnomalyDetectorCommand_1.DeleteLogAnomalyDetectorCommand,
86
95
  DeleteLogGroupCommand: DeleteLogGroupCommand_1.DeleteLogGroupCommand,
87
96
  DeleteLogStreamCommand: DeleteLogStreamCommand_1.DeleteLogStreamCommand,
88
97
  DeleteMetricFilterCommand: DeleteMetricFilterCommand_1.DeleteMetricFilterCommand,
@@ -110,10 +119,13 @@ const commands = {
110
119
  GetDeliveryDestinationCommand: GetDeliveryDestinationCommand_1.GetDeliveryDestinationCommand,
111
120
  GetDeliveryDestinationPolicyCommand: GetDeliveryDestinationPolicyCommand_1.GetDeliveryDestinationPolicyCommand,
112
121
  GetDeliverySourceCommand: GetDeliverySourceCommand_1.GetDeliverySourceCommand,
122
+ GetLogAnomalyDetectorCommand: GetLogAnomalyDetectorCommand_1.GetLogAnomalyDetectorCommand,
113
123
  GetLogEventsCommand: GetLogEventsCommand_1.GetLogEventsCommand,
114
124
  GetLogGroupFieldsCommand: GetLogGroupFieldsCommand_1.GetLogGroupFieldsCommand,
115
125
  GetLogRecordCommand: GetLogRecordCommand_1.GetLogRecordCommand,
116
126
  GetQueryResultsCommand: GetQueryResultsCommand_1.GetQueryResultsCommand,
127
+ ListAnomaliesCommand: ListAnomaliesCommand_1.ListAnomaliesCommand,
128
+ ListLogAnomalyDetectorsCommand: ListLogAnomalyDetectorsCommand_1.ListLogAnomalyDetectorsCommand,
117
129
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
118
130
  ListTagsLogGroupCommand: ListTagsLogGroupCommand_1.ListTagsLogGroupCommand,
119
131
  PutAccountPolicyCommand: PutAccountPolicyCommand_1.PutAccountPolicyCommand,
@@ -136,6 +148,8 @@ const commands = {
136
148
  TestMetricFilterCommand: TestMetricFilterCommand_1.TestMetricFilterCommand,
137
149
  UntagLogGroupCommand: UntagLogGroupCommand_1.UntagLogGroupCommand,
138
150
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
151
+ UpdateAnomalyCommand: UpdateAnomalyCommand_1.UpdateAnomalyCommand,
152
+ UpdateLogAnomalyDetectorCommand: UpdateLogAnomalyDetectorCommand_1.UpdateLogAnomalyDetectorCommand,
139
153
  };
140
154
  class CloudWatchLogs extends CloudWatchLogsClient_1.CloudWatchLogsClient {
141
155
  }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateLogAnomalyDetectorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class CreateLogAnomalyDetectorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLogAnomalyDetectorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "CreateLogAnomalyDetectorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "CreateLogAnomalyDetector",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_CreateLogAnomalyDetectorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_CreateLogAnomalyDetectorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.CreateLogAnomalyDetectorCommand = CreateLogAnomalyDetectorCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteLogAnomalyDetectorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class DeleteLogAnomalyDetectorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLogAnomalyDetectorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "DeleteLogAnomalyDetectorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "DeleteLogAnomalyDetector",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_DeleteLogAnomalyDetectorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_DeleteLogAnomalyDetectorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DeleteLogAnomalyDetectorCommand = DeleteLogAnomalyDetectorCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetLogAnomalyDetectorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class GetLogAnomalyDetectorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetLogAnomalyDetectorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "GetLogAnomalyDetectorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "GetLogAnomalyDetector",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_GetLogAnomalyDetectorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_GetLogAnomalyDetectorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetLogAnomalyDetectorCommand = GetLogAnomalyDetectorCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListAnomaliesCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class ListAnomaliesCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAnomaliesCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "ListAnomaliesCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "ListAnomalies",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_ListAnomaliesCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_ListAnomaliesCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListAnomaliesCommand = ListAnomaliesCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListLogAnomalyDetectorsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class ListLogAnomalyDetectorsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListLogAnomalyDetectorsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "ListLogAnomalyDetectorsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "ListLogAnomalyDetectors",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_ListLogAnomalyDetectorsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_ListLogAnomalyDetectorsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListLogAnomalyDetectorsCommand = ListLogAnomalyDetectorsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAnomalyCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class UpdateAnomalyCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateAnomalyCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "UpdateAnomalyCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "UpdateAnomaly",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_UpdateAnomalyCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_UpdateAnomalyCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateAnomalyCommand = UpdateAnomalyCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateLogAnomalyDetectorCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
+ class UpdateLogAnomalyDetectorCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateLogAnomalyDetectorCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CloudWatchLogsClient";
29
+ const commandName = "UpdateLogAnomalyDetectorCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "Logs_20140328",
38
+ operation: "UpdateLogAnomalyDetector",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_1_1.se_UpdateLogAnomalyDetectorCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_1_1.de_UpdateLogAnomalyDetectorCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateLogAnomalyDetectorCommand = UpdateLogAnomalyDetectorCommand;
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./AssociateKmsKeyCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CancelExportTaskCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreateDeliveryCommand"), exports);
7
7
  tslib_1.__exportStar(require("./CreateExportTaskCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateLogAnomalyDetectorCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateLogGroupCommand"), exports);
9
10
  tslib_1.__exportStar(require("./CreateLogStreamCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteAccountPolicyCommand"), exports);
@@ -14,6 +15,7 @@ tslib_1.__exportStar(require("./DeleteDeliveryDestinationCommand"), exports);
14
15
  tslib_1.__exportStar(require("./DeleteDeliveryDestinationPolicyCommand"), exports);
15
16
  tslib_1.__exportStar(require("./DeleteDeliverySourceCommand"), exports);
16
17
  tslib_1.__exportStar(require("./DeleteDestinationCommand"), exports);
18
+ tslib_1.__exportStar(require("./DeleteLogAnomalyDetectorCommand"), exports);
17
19
  tslib_1.__exportStar(require("./DeleteLogGroupCommand"), exports);
18
20
  tslib_1.__exportStar(require("./DeleteLogStreamCommand"), exports);
19
21
  tslib_1.__exportStar(require("./DeleteMetricFilterCommand"), exports);
@@ -41,10 +43,13 @@ tslib_1.__exportStar(require("./GetDeliveryCommand"), exports);
41
43
  tslib_1.__exportStar(require("./GetDeliveryDestinationCommand"), exports);
42
44
  tslib_1.__exportStar(require("./GetDeliveryDestinationPolicyCommand"), exports);
43
45
  tslib_1.__exportStar(require("./GetDeliverySourceCommand"), exports);
46
+ tslib_1.__exportStar(require("./GetLogAnomalyDetectorCommand"), exports);
44
47
  tslib_1.__exportStar(require("./GetLogEventsCommand"), exports);
45
48
  tslib_1.__exportStar(require("./GetLogGroupFieldsCommand"), exports);
46
49
  tslib_1.__exportStar(require("./GetLogRecordCommand"), exports);
47
50
  tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
51
+ tslib_1.__exportStar(require("./ListAnomaliesCommand"), exports);
52
+ tslib_1.__exportStar(require("./ListLogAnomalyDetectorsCommand"), exports);
48
53
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
49
54
  tslib_1.__exportStar(require("./ListTagsLogGroupCommand"), exports);
50
55
  tslib_1.__exportStar(require("./PutAccountPolicyCommand"), exports);
@@ -67,3 +72,5 @@ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
67
72
  tslib_1.__exportStar(require("./TestMetricFilterCommand"), exports);
68
73
  tslib_1.__exportStar(require("./UntagLogGroupCommand"), exports);
69
74
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
75
+ tslib_1.__exportStar(require("./UpdateAnomalyCommand"), exports);
76
+ tslib_1.__exportStar(require("./UpdateLogAnomalyDetectorCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TooManyTagsException = exports.MalformedQueryException = exports.UnrecognizedClientException = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.InheritedProperty = exports.ExportTaskStatusCode = exports.OutputFormat = exports.DataProtectionStatus = exports.DataAlreadyAcceptedException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.DeliveryDestinationType = exports.ConflictException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.Scope = exports.PolicyType = exports.AccessDeniedException = void 0;
3
+ exports.SuppressionType = exports.SuppressionUnit = exports.TooManyTagsException = exports.MalformedQueryException = exports.UnrecognizedClientException = exports.SuppressionState = exports.InvalidSequenceTokenException = exports.Distribution = exports.QueryStatus = exports.StandardUnit = exports.OrderBy = exports.InheritedProperty = exports.ExportTaskStatusCode = exports.OutputFormat = exports.DataProtectionStatus = exports.DataAlreadyAcceptedException = exports.LogGroupClass = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.DeliveryDestinationType = exports.ConflictException = exports.InvalidOperationException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.OperationAbortedException = exports.InvalidParameterException = exports.EvaluationFrequency = exports.AnomalyDetectorStatus = exports.State = exports.Scope = exports.PolicyType = exports.AccessDeniedException = void 0;
4
4
  const CloudWatchLogsServiceException_1 = require("./CloudWatchLogsServiceException");
5
5
  class AccessDeniedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
6
6
  constructor(opts) {
@@ -21,6 +21,27 @@ exports.PolicyType = {
21
21
  exports.Scope = {
22
22
  ALL: "ALL",
23
23
  };
24
+ exports.State = {
25
+ Active: "Active",
26
+ Baseline: "Baseline",
27
+ Suppressed: "Suppressed",
28
+ };
29
+ exports.AnomalyDetectorStatus = {
30
+ ANALYZING: "ANALYZING",
31
+ DELETED: "DELETED",
32
+ FAILED: "FAILED",
33
+ INITIALIZING: "INITIALIZING",
34
+ PAUSED: "PAUSED",
35
+ TRAINING: "TRAINING",
36
+ };
37
+ exports.EvaluationFrequency = {
38
+ FIFTEEN_MIN: "FIFTEEN_MIN",
39
+ FIVE_MIN: "FIVE_MIN",
40
+ ONE_HOUR: "ONE_HOUR",
41
+ ONE_MIN: "ONE_MIN",
42
+ TEN_MIN: "TEN_MIN",
43
+ THIRTY_MIN: "THIRTY_MIN",
44
+ };
24
45
  class InvalidParameterException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
25
46
  constructor(opts) {
26
47
  super({
@@ -169,6 +190,10 @@ class ResourceAlreadyExistsException extends CloudWatchLogsServiceException_1.Cl
169
190
  }
170
191
  }
171
192
  exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
193
+ exports.LogGroupClass = {
194
+ INFREQUENT_ACCESS: "INFREQUENT_ACCESS",
195
+ STANDARD: "STANDARD",
196
+ };
172
197
  class DataAlreadyAcceptedException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
173
198
  constructor(opts) {
174
199
  super({
@@ -267,6 +292,10 @@ class InvalidSequenceTokenException extends CloudWatchLogsServiceException_1.Clo
267
292
  }
268
293
  }
269
294
  exports.InvalidSequenceTokenException = InvalidSequenceTokenException;
295
+ exports.SuppressionState = {
296
+ SUPPRESSED: "SUPPRESSED",
297
+ UNSUPPRESSED: "UNSUPPRESSED",
298
+ };
270
299
  class UnrecognizedClientException extends CloudWatchLogsServiceException_1.CloudWatchLogsServiceException {
271
300
  constructor(opts) {
272
301
  super({
@@ -308,3 +337,12 @@ class TooManyTagsException extends CloudWatchLogsServiceException_1.CloudWatchLo
308
337
  }
309
338
  }
310
339
  exports.TooManyTagsException = TooManyTagsException;
340
+ exports.SuppressionUnit = {
341
+ HOURS: "HOURS",
342
+ MINUTES: "MINUTES",
343
+ SECONDS: "SECONDS",
344
+ };
345
+ exports.SuppressionType = {
346
+ INFINITE: "INFINITE",
347
+ LIMITED: "LIMITED",
348
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListAnomalies = void 0;
4
+ const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
5
+ const ListAnomaliesCommand_1 = require("../commands/ListAnomaliesCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListAnomaliesCommand_1.ListAnomaliesCommand(input), ...args);
8
+ };
9
+ async function* paginateListAnomalies(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["limit"] = config.pageSize;
16
+ if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListAnomalies = paginateListAnomalies;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListLogAnomalyDetectors = void 0;
4
+ const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
5
+ const ListLogAnomalyDetectorsCommand_1 = require("../commands/ListLogAnomalyDetectorsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListLogAnomalyDetectorsCommand_1.ListLogAnomalyDetectorsCommand(input), ...args);
8
+ };
9
+ async function* paginateListLogAnomalyDetectors(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["limit"] = config.pageSize;
16
+ if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListLogAnomalyDetectors = paginateListLogAnomalyDetectors;
@@ -12,3 +12,5 @@ tslib_1.__exportStar(require("./DescribeSubscriptionFiltersPaginator"), exports)
12
12
  tslib_1.__exportStar(require("./FilterLogEventsPaginator"), exports);
13
13
  tslib_1.__exportStar(require("./GetLogEventsPaginator"), exports);
14
14
  tslib_1.__exportStar(require("./Interfaces"), exports);
15
+ tslib_1.__exportStar(require("./ListAnomaliesPaginator"), exports);
16
+ tslib_1.__exportStar(require("./ListLogAnomalyDetectorsPaginator"), exports);