cdk-lambda-subminute 2.0.310 → 2.0.311

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 (141) hide show
  1. package/.jsii +3 -3
  2. package/lib/cdk-lambda-subminute.js +3 -3
  3. package/node_modules/aws-sdk/CHANGELOG.md +52 -1
  4. package/node_modules/aws-sdk/README.md +1 -3
  5. package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.min.json +423 -86
  6. package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.paginators.json +12 -0
  7. package/node_modules/aws-sdk/apis/amp-2020-08-01.min.json +320 -3
  8. package/node_modules/aws-sdk/apis/amp-2020-08-01.paginators.json +6 -0
  9. package/node_modules/aws-sdk/apis/amp-2020-08-01.waiters2.json +33 -0
  10. package/node_modules/aws-sdk/apis/appsync-2017-07-25.min.json +141 -6
  11. package/node_modules/aws-sdk/apis/b2bi-2022-06-23.examples.json +714 -0
  12. package/node_modules/aws-sdk/apis/b2bi-2022-06-23.min.json +1095 -0
  13. package/node_modules/aws-sdk/apis/b2bi-2022-06-23.paginators.json +28 -0
  14. package/node_modules/aws-sdk/apis/backup-2018-11-15.min.json +855 -84
  15. package/node_modules/aws-sdk/apis/backup-2018-11-15.paginators.json +18 -0
  16. package/node_modules/aws-sdk/apis/bcm-data-exports-2023-11-26.examples.json +5 -0
  17. package/node_modules/aws-sdk/apis/bcm-data-exports-2023-11-26.min.json +470 -0
  18. package/node_modules/aws-sdk/apis/bcm-data-exports-2023-11-26.paginators.json +22 -0
  19. package/node_modules/aws-sdk/apis/cloudtrail-2013-11-01.min.json +67 -24
  20. package/node_modules/aws-sdk/apis/codestar-connections-2019-12-01.min.json +590 -3
  21. package/node_modules/aws-sdk/apis/codestar-connections-2019-12-01.paginators.json +10 -0
  22. package/node_modules/aws-sdk/apis/compute-optimizer-2019-11-01.min.json +243 -39
  23. package/node_modules/aws-sdk/apis/config-2014-11-12.min.json +204 -169
  24. package/node_modules/aws-sdk/apis/controltower-2018-05-10.min.json +317 -13
  25. package/node_modules/aws-sdk/apis/controltower-2018-05-10.paginators.json +6 -0
  26. package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.examples.json +5 -0
  27. package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.min.json +757 -0
  28. package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.paginators.json +22 -0
  29. package/node_modules/aws-sdk/apis/detective-2018-10-26.min.json +294 -0
  30. package/node_modules/aws-sdk/apis/ecs-2014-11-13.min.json +108 -107
  31. package/node_modules/aws-sdk/apis/eks-2017-11-01.min.json +211 -4
  32. package/node_modules/aws-sdk/apis/eks-2017-11-01.paginators.json +12 -0
  33. package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.examples.json +5 -0
  34. package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.min.json +104 -0
  35. package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.paginators.json +4 -0
  36. package/node_modules/aws-sdk/apis/eks-auth-2023-11-26.waiters2.json +5 -0
  37. package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.min.json +71 -33
  38. package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.paginators.json +18 -3
  39. package/node_modules/aws-sdk/apis/elasticloadbalancingv2-2015-12-01.min.json +403 -75
  40. package/node_modules/aws-sdk/apis/elasticloadbalancingv2-2015-12-01.paginators.json +15 -0
  41. package/node_modules/aws-sdk/apis/fis-2020-12-01.min.json +366 -15
  42. package/node_modules/aws-sdk/apis/fis-2020-12-01.paginators.json +10 -0
  43. package/node_modules/aws-sdk/apis/freetier-2023-09-07.examples.json +5 -0
  44. package/node_modules/aws-sdk/apis/freetier-2023-09-07.min.json +105 -0
  45. package/node_modules/aws-sdk/apis/freetier-2023-09-07.paginators.json +10 -0
  46. package/node_modules/aws-sdk/apis/fsx-2018-03-01.min.json +259 -135
  47. package/node_modules/aws-sdk/apis/guardduty-2017-11-28.min.json +64 -0
  48. package/node_modules/aws-sdk/apis/iotfleetwise-2021-06-17.min.json +159 -33
  49. package/node_modules/aws-sdk/apis/lakeformation-2017-03-31.min.json +126 -35
  50. package/node_modules/aws-sdk/apis/logs-2014-03-28.min.json +310 -36
  51. package/node_modules/aws-sdk/apis/logs-2014-03-28.paginators.json +12 -0
  52. package/node_modules/aws-sdk/apis/managedblockchain-2018-09-24.min.json +58 -50
  53. package/node_modules/aws-sdk/apis/metadata.json +25 -0
  54. package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.min.json +633 -331
  55. package/node_modules/aws-sdk/apis/models.lex.v2-2020-08-07.paginators.json +5 -0
  56. package/node_modules/aws-sdk/apis/personalize-2018-05-22.min.json +85 -52
  57. package/node_modules/aws-sdk/apis/personalize-events-2018-03-22.min.json +97 -5
  58. package/node_modules/aws-sdk/apis/personalize-runtime-2018-05-22.min.json +68 -11
  59. package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +398 -268
  60. package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +14 -2
  61. package/node_modules/aws-sdk/apis/repostspace-2022-05-13.examples.json +5 -0
  62. package/node_modules/aws-sdk/apis/repostspace-2022-05-13.min.json +447 -0
  63. package/node_modules/aws-sdk/apis/repostspace-2022-05-13.paginators.json +10 -0
  64. package/node_modules/aws-sdk/apis/runtime.lex.v2-2020-08-07.min.json +25 -24
  65. package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +142 -142
  66. package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +45 -0
  67. package/node_modules/aws-sdk/apis/s3control-2018-08-20.min.json +1330 -314
  68. package/node_modules/aws-sdk/apis/s3control-2018-08-20.paginators.json +15 -0
  69. package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.min.json +111 -50
  70. package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.paginators.json +5 -0
  71. package/node_modules/aws-sdk/apis/securityhub-2018-10-26.examples.json +526 -10
  72. package/node_modules/aws-sdk/apis/securityhub-2018-10-26.min.json +1057 -352
  73. package/node_modules/aws-sdk/apis/securityhub-2018-10-26.paginators.json +12 -0
  74. package/node_modules/aws-sdk/apis/states-2016-11-23.min.json +85 -0
  75. package/node_modules/aws-sdk/apis/transcribe-2017-10-26.min.json +268 -70
  76. package/node_modules/aws-sdk/apis/transcribe-2017-10-26.paginators.json +5 -0
  77. package/node_modules/aws-sdk/apis/workspaces-2015-04-08.min.json +119 -96
  78. package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.examples.json +5 -0
  79. package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.min.json +777 -0
  80. package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.paginators.json +22 -0
  81. package/node_modules/aws-sdk/clients/accessanalyzer.d.ts +374 -5
  82. package/node_modules/aws-sdk/clients/all.d.ts +7 -0
  83. package/node_modules/aws-sdk/clients/all.js +8 -1
  84. package/node_modules/aws-sdk/clients/amp.d.ts +322 -0
  85. package/node_modules/aws-sdk/clients/appsync.d.ts +169 -0
  86. package/node_modules/aws-sdk/clients/b2bi.d.ts +1388 -0
  87. package/node_modules/aws-sdk/clients/b2bi.js +18 -0
  88. package/node_modules/aws-sdk/clients/backup.d.ts +848 -45
  89. package/node_modules/aws-sdk/clients/bcmdataexports.d.ts +589 -0
  90. package/node_modules/aws-sdk/clients/bcmdataexports.js +18 -0
  91. package/node_modules/aws-sdk/clients/cloudtrail.d.ts +76 -2
  92. package/node_modules/aws-sdk/clients/cloudwatchlogs.d.ts +413 -1
  93. package/node_modules/aws-sdk/clients/codestarconnections.d.ts +727 -0
  94. package/node_modules/aws-sdk/clients/computeoptimizer.d.ts +307 -6
  95. package/node_modules/aws-sdk/clients/configservice.d.ts +60 -11
  96. package/node_modules/aws-sdk/clients/controltower.d.ts +319 -25
  97. package/node_modules/aws-sdk/clients/costoptimizationhub.d.ts +1283 -0
  98. package/node_modules/aws-sdk/clients/costoptimizationhub.js +18 -0
  99. package/node_modules/aws-sdk/clients/detective.d.ts +469 -0
  100. package/node_modules/aws-sdk/clients/ecs.d.ts +10 -5
  101. package/node_modules/aws-sdk/clients/efs.d.ts +75 -33
  102. package/node_modules/aws-sdk/clients/eks.d.ts +237 -15
  103. package/node_modules/aws-sdk/clients/eksauth.d.ts +124 -0
  104. package/node_modules/aws-sdk/clients/eksauth.js +19 -0
  105. package/node_modules/aws-sdk/clients/elbv2.d.ts +433 -4
  106. package/node_modules/aws-sdk/clients/fis.d.ts +383 -3
  107. package/node_modules/aws-sdk/clients/freetier.d.ts +149 -0
  108. package/node_modules/aws-sdk/clients/freetier.js +18 -0
  109. package/node_modules/aws-sdk/clients/fsx.d.ts +194 -21
  110. package/node_modules/aws-sdk/clients/glue.d.ts +3 -3
  111. package/node_modules/aws-sdk/clients/guardduty.d.ts +82 -11
  112. package/node_modules/aws-sdk/clients/iotfleetwise.d.ts +198 -13
  113. package/node_modules/aws-sdk/clients/lakeformation.d.ts +118 -2
  114. package/node_modules/aws-sdk/clients/lexmodelsv2.d.ts +343 -2
  115. package/node_modules/aws-sdk/clients/lexruntimev2.d.ts +14 -9
  116. package/node_modules/aws-sdk/clients/managedblockchain.d.ts +26 -5
  117. package/node_modules/aws-sdk/clients/personalize.d.ts +65 -20
  118. package/node_modules/aws-sdk/clients/personalizeevents.d.ts +102 -12
  119. package/node_modules/aws-sdk/clients/personalizeruntime.d.ts +72 -2
  120. package/node_modules/aws-sdk/clients/quicksight.d.ts +124 -0
  121. package/node_modules/aws-sdk/clients/rds.d.ts +80 -80
  122. package/node_modules/aws-sdk/clients/redshift.d.ts +16 -0
  123. package/node_modules/aws-sdk/clients/repostspace.d.ts +458 -0
  124. package/node_modules/aws-sdk/clients/repostspace.js +18 -0
  125. package/node_modules/aws-sdk/clients/s3.d.ts +2 -2
  126. package/node_modules/aws-sdk/clients/s3control.d.ts +841 -13
  127. package/node_modules/aws-sdk/clients/secretsmanager.d.ts +94 -5
  128. package/node_modules/aws-sdk/clients/securityhub.d.ts +908 -15
  129. package/node_modules/aws-sdk/clients/stepfunctions.d.ts +153 -8
  130. package/node_modules/aws-sdk/clients/transcribeservice.d.ts +312 -46
  131. package/node_modules/aws-sdk/clients/workspaces.d.ts +43 -1
  132. package/node_modules/aws-sdk/clients/workspacesthinclient.d.ts +895 -0
  133. package/node_modules/aws-sdk/clients/workspacesthinclient.js +18 -0
  134. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +2 -2
  135. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +321 -55
  136. package/node_modules/aws-sdk/dist/aws-sdk.js +2045 -597
  137. package/node_modules/aws-sdk/dist/aws-sdk.min.js +104 -104
  138. package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +14 -0
  139. package/node_modules/aws-sdk/lib/core.js +1 -1
  140. package/node_modules/aws-sdk/package.json +1 -1
  141. package/package.json +3 -3
@@ -43,6 +43,14 @@ declare class CloudWatchLogs extends Service {
43
43
  * Creates an export task so that you can efficiently export data from a log group to an Amazon S3 bucket. When you perform a CreateExportTask operation, you must use credentials that have permission to write to the S3 bucket that you specify as the destination. Exporting log data to S3 buckets that are encrypted by KMS is supported. Exporting log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is also supported. Exporting to S3 buckets that are encrypted with AES-256 is supported. This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask. You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate log data for each export task, specify a prefix to be used as the Amazon S3 key prefix for all exported objects. Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the exported log field data by using Linux utilities.
44
44
  */
45
45
  createExportTask(callback?: (err: AWSError, data: CloudWatchLogs.Types.CreateExportTaskResponse) => void): Request<CloudWatchLogs.Types.CreateExportTaskResponse, AWSError>;
46
+ /**
47
+ * Creates an anomaly detector that regularly scans one or more log groups and look for patterns and anomalies in the logs. An anomaly detector can help surface issues by automatically discovering anomalies in your log event traffic. An anomaly detector uses machine learning algorithms to scan log events and find patterns. A pattern is a shared text structure that recurs among your log fields. Patterns provide a useful tool for analyzing large sets of logs because a large number of log events can often be compressed into a few patterns. The anomaly detector uses pattern recognition to find anomalies, which are unusual log events. It uses the evaluationFrequency to compare current log events and patterns with trained baselines. Fields within a pattern are called tokens. Fields that vary within a pattern, such as a request ID or timestamp, are referred to as dynamic tokens and represented by &lt;*&gt;. The following is an example of a pattern: [INFO] Request time: &lt;*&gt; ms This pattern represents log events like [INFO] Request time: 327 ms and other similar log events that differ only by the number, in this csse 327. When the pattern is displayed, the different numbers are replaced by &lt;*&gt; Any parts of log events that are masked as sensitive data are not scanned for anomalies. For more information about masking sensitive data, see Help protect sensitive log data with masking.
48
+ */
49
+ createLogAnomalyDetector(params: CloudWatchLogs.Types.CreateLogAnomalyDetectorRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.CreateLogAnomalyDetectorResponse) => void): Request<CloudWatchLogs.Types.CreateLogAnomalyDetectorResponse, AWSError>;
50
+ /**
51
+ * Creates an anomaly detector that regularly scans one or more log groups and look for patterns and anomalies in the logs. An anomaly detector can help surface issues by automatically discovering anomalies in your log event traffic. An anomaly detector uses machine learning algorithms to scan log events and find patterns. A pattern is a shared text structure that recurs among your log fields. Patterns provide a useful tool for analyzing large sets of logs because a large number of log events can often be compressed into a few patterns. The anomaly detector uses pattern recognition to find anomalies, which are unusual log events. It uses the evaluationFrequency to compare current log events and patterns with trained baselines. Fields within a pattern are called tokens. Fields that vary within a pattern, such as a request ID or timestamp, are referred to as dynamic tokens and represented by &lt;*&gt;. The following is an example of a pattern: [INFO] Request time: &lt;*&gt; ms This pattern represents log events like [INFO] Request time: 327 ms and other similar log events that differ only by the number, in this csse 327. When the pattern is displayed, the different numbers are replaced by &lt;*&gt; Any parts of log events that are masked as sensitive data are not scanned for anomalies. For more information about masking sensitive data, see Help protect sensitive log data with masking.
52
+ */
53
+ createLogAnomalyDetector(callback?: (err: AWSError, data: CloudWatchLogs.Types.CreateLogAnomalyDetectorResponse) => void): Request<CloudWatchLogs.Types.CreateLogAnomalyDetectorResponse, AWSError>;
46
54
  /**
47
55
  * Creates a log group with the specified name. You can create up to 1,000,000 log groups per Region per account. You must use the following guidelines when naming a log group: Log group names must be unique within a Region for an Amazon Web Services account. Log group names can be between 1 and 512 characters long. Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), '.' (period), and '#' (number sign) When you create a log group, by default the log events in the log group do not expire. To set a retention policy so that events expire and are deleted after a specified time, use PutRetentionPolicy. If you associate an KMS key with the log group, ingested data is encrypted using the KMS key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested. If you attempt to associate a KMS key with the log group but the KMS key does not exist or the KMS key is disabled, you receive an InvalidParameterException error. CloudWatch Logs supports only symmetric KMS keys. Do not associate an asymmetric KMS key with your log group. For more information, see Using Symmetric and Asymmetric Keys.
48
56
  */
@@ -115,6 +123,14 @@ declare class CloudWatchLogs extends Service {
115
123
  * Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.
116
124
  */
117
125
  deleteDestination(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
126
+ /**
127
+ * Deletes the specified CloudWatch Logs anomaly detector.
128
+ */
129
+ deleteLogAnomalyDetector(params: CloudWatchLogs.Types.DeleteLogAnomalyDetectorRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
130
+ /**
131
+ * Deletes the specified CloudWatch Logs anomaly detector.
132
+ */
133
+ deleteLogAnomalyDetector(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
118
134
  /**
119
135
  * Deletes the specified log group and permanently deletes all the archived log events associated with the log group.
120
136
  */
@@ -331,6 +347,14 @@ declare class CloudWatchLogs extends Service {
331
347
  * Retrieves complete information about one delivery source.
332
348
  */
333
349
  getDeliverySource(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetDeliverySourceResponse) => void): Request<CloudWatchLogs.Types.GetDeliverySourceResponse, AWSError>;
350
+ /**
351
+ * Retrieves information about the log anomaly detector that you specify.
352
+ */
353
+ getLogAnomalyDetector(params: CloudWatchLogs.Types.GetLogAnomalyDetectorRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogAnomalyDetectorResponse) => void): Request<CloudWatchLogs.Types.GetLogAnomalyDetectorResponse, AWSError>;
354
+ /**
355
+ * Retrieves information about the log anomaly detector that you specify.
356
+ */
357
+ getLogAnomalyDetector(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetLogAnomalyDetectorResponse) => void): Request<CloudWatchLogs.Types.GetLogAnomalyDetectorResponse, AWSError>;
334
358
  /**
335
359
  * Lists log events from the specified log stream. You can list all of the log events or filter using a time range. By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). You can get additional log events by specifying one of the tokens in a subsequent call. This operation can return empty results while there are more log events available through the token. If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability. You can specify the log group to search by using either logGroupIdentifier or logGroupName. You must include one of these two parameters, but you can't include both.
336
360
  */
@@ -363,6 +387,22 @@ declare class CloudWatchLogs extends Service {
363
387
  * Returns the results from the specified query. Only the fields requested in the query are returned, along with a @ptr field, which is the identifier for the log record. You can use the value of @ptr in a GetLogRecord operation to get the full log record. GetQueryResults does not start running a query. To run a query, use StartQuery. For more information about how long results of previous queries are available, see CloudWatch Logs quotas. If the value of the Status field in the output is Running, this operation returns only partial results. If you see a value of Scheduled or Running for the status, you can retry the operation later to see the final results. If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start queries in linked source accounts. For more information, see CloudWatch cross-account observability.
364
388
  */
365
389
  getQueryResults(callback?: (err: AWSError, data: CloudWatchLogs.Types.GetQueryResultsResponse) => void): Request<CloudWatchLogs.Types.GetQueryResultsResponse, AWSError>;
390
+ /**
391
+ * Returns a list of anomalies that log anomaly detectors have found. For details about the structure format of each anomaly object that is returned, see the example in this section.
392
+ */
393
+ listAnomalies(params: CloudWatchLogs.Types.ListAnomaliesRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.ListAnomaliesResponse) => void): Request<CloudWatchLogs.Types.ListAnomaliesResponse, AWSError>;
394
+ /**
395
+ * Returns a list of anomalies that log anomaly detectors have found. For details about the structure format of each anomaly object that is returned, see the example in this section.
396
+ */
397
+ listAnomalies(callback?: (err: AWSError, data: CloudWatchLogs.Types.ListAnomaliesResponse) => void): Request<CloudWatchLogs.Types.ListAnomaliesResponse, AWSError>;
398
+ /**
399
+ * Retrieves a list of the log anomaly detectors in the account.
400
+ */
401
+ listLogAnomalyDetectors(params: CloudWatchLogs.Types.ListLogAnomalyDetectorsRequest, callback?: (err: AWSError, data: CloudWatchLogs.Types.ListLogAnomalyDetectorsResponse) => void): Request<CloudWatchLogs.Types.ListLogAnomalyDetectorsResponse, AWSError>;
402
+ /**
403
+ * Retrieves a list of the log anomaly detectors in the account.
404
+ */
405
+ listLogAnomalyDetectors(callback?: (err: AWSError, data: CloudWatchLogs.Types.ListLogAnomalyDetectorsResponse) => void): Request<CloudWatchLogs.Types.ListLogAnomalyDetectorsResponse, AWSError>;
366
406
  /**
367
407
  * Displays the tags associated with a CloudWatch Logs resource. Currently, log groups and destinations support tagging.
368
408
  */
@@ -539,6 +579,22 @@ declare class CloudWatchLogs extends Service {
539
579
  * Removes one or more tags from the specified resource.
540
580
  */
541
581
  untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
582
+ /**
583
+ * Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern. You must specify either anomalyId or patternId, but you can't specify both parameters in the same operation. If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the suppressionType and suppressionPeriod parameters.
584
+ */
585
+ updateAnomaly(params: CloudWatchLogs.Types.UpdateAnomalyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
586
+ /**
587
+ * Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern. You must specify either anomalyId or patternId, but you can't specify both parameters in the same operation. If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the suppressionType and suppressionPeriod parameters.
588
+ */
589
+ updateAnomaly(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
590
+ /**
591
+ * Updates an existing log anomaly detector.
592
+ */
593
+ updateLogAnomalyDetector(params: CloudWatchLogs.Types.UpdateLogAnomalyDetectorRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
594
+ /**
595
+ * Updates an existing log anomaly detector.
596
+ */
597
+ updateLogAnomalyDetector(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
542
598
  }
543
599
  declare namespace CloudWatchLogs {
544
600
  export type AccessPolicy = string;
@@ -573,6 +629,129 @@ declare namespace CloudWatchLogs {
573
629
  }
574
630
  export type AccountPolicyDocument = string;
575
631
  export type AmazonResourceName = string;
632
+ export type Anomalies = Anomaly[];
633
+ export interface Anomaly {
634
+ /**
635
+ * The unique ID that CloudWatch Logs assigned to this anomaly.
636
+ */
637
+ anomalyId: AnomalyId;
638
+ /**
639
+ * The ID of the pattern used to help identify this anomaly.
640
+ */
641
+ patternId: PatternId;
642
+ /**
643
+ * The ARN of the anomaly detector that identified this anomaly.
644
+ */
645
+ anomalyDetectorArn: AnomalyDetectorArn;
646
+ /**
647
+ * The pattern used to help identify this anomaly, in string format.
648
+ */
649
+ patternString: PatternString;
650
+ /**
651
+ * The pattern used to help identify this anomaly, in regular expression format.
652
+ */
653
+ patternRegex?: PatternRegex;
654
+ /**
655
+ * The priority level of this anomaly, as determined by CloudWatch Logs. Priority is computed based on log severity labels such as FATAL and ERROR and the amount of deviation from the baseline. Possible values are HIGH, MEDIUM, and LOW.
656
+ */
657
+ priority?: Priority;
658
+ /**
659
+ * The date and time when the anomaly detector first saw this anomaly. It is specified as epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.
660
+ */
661
+ firstSeen: EpochMillis;
662
+ /**
663
+ * The date and time when the anomaly detector most recently saw this anomaly. It is specified as epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.
664
+ */
665
+ lastSeen: EpochMillis;
666
+ /**
667
+ * A human-readable description of the anomaly. This description is generated by CloudWatch Logs.
668
+ */
669
+ description: Description;
670
+ /**
671
+ * Specifies whether this anomaly is still ongoing.
672
+ */
673
+ active: Boolean;
674
+ /**
675
+ * Indicates the current state of this anomaly. If it is still being treated as an anomaly, the value is Active. If you have suppressed this anomaly by using the UpdateAnomaly operation, the value is Suppressed. If this behavior is now considered to be normal, the value is Baseline.
676
+ */
677
+ state: State;
678
+ /**
679
+ * A map showing times when the anomaly detector ran, and the number of occurrences of this anomaly that were detected at each of those runs. The times are specified in epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.
680
+ */
681
+ histogram: Histogram;
682
+ /**
683
+ * An array of sample log event messages that are considered to be part of this anomaly.
684
+ */
685
+ logSamples: LogSamples;
686
+ /**
687
+ * An array of structures where each structure contains information about one token that makes up the pattern.
688
+ */
689
+ patternTokens: PatternTokens;
690
+ /**
691
+ * An array of ARNS of the log groups that contained log events considered to be part of this anomaly.
692
+ */
693
+ logGroupArnList: LogGroupArnList;
694
+ /**
695
+ * Indicates whether this anomaly is currently suppressed. To suppress an anomaly, use UpdateAnomaly.
696
+ */
697
+ suppressed?: Boolean;
698
+ /**
699
+ * If the anomaly is suppressed, this indicates when it was suppressed.
700
+ */
701
+ suppressedDate?: EpochMillis;
702
+ /**
703
+ * If the anomaly is suppressed, this indicates when the suppression will end. If this value is 0, the anomaly was suppressed with no expiration, with the INFINITE value.
704
+ */
705
+ suppressedUntil?: EpochMillis;
706
+ /**
707
+ * If this anomaly is suppressed, this field is true if the suppression is because the pattern is suppressed. If false, then only this particular anomaly is suppressed.
708
+ */
709
+ isPatternLevelSuppression?: Boolean;
710
+ }
711
+ export interface AnomalyDetector {
712
+ /**
713
+ * The ARN of the anomaly detector.
714
+ */
715
+ anomalyDetectorArn?: AnomalyDetectorArn;
716
+ /**
717
+ * The name of the anomaly detector.
718
+ */
719
+ detectorName?: DetectorName;
720
+ /**
721
+ * A list of the ARNs of the log groups that this anomaly detector watches.
722
+ */
723
+ logGroupArnList?: LogGroupArnList;
724
+ /**
725
+ * Specifies how often the anomaly detector runs and look for anomalies.
726
+ */
727
+ evaluationFrequency?: EvaluationFrequency;
728
+ filterPattern?: FilterPattern;
729
+ /**
730
+ * Specifies the current status of the anomaly detector. To pause an anomaly detector, use the enabled parameter in the UpdateLogAnomalyDetector operation.
731
+ */
732
+ anomalyDetectorStatus?: AnomalyDetectorStatus;
733
+ /**
734
+ * The ID of the KMS key assigned to this anomaly detector, if any.
735
+ */
736
+ kmsKeyId?: KmsKeyId;
737
+ /**
738
+ * The date and time when this anomaly detector was created.
739
+ */
740
+ creationTimeStamp?: EpochMillis;
741
+ /**
742
+ * The date and time when this anomaly detector was most recently modified.
743
+ */
744
+ lastModifiedTimeStamp?: EpochMillis;
745
+ /**
746
+ * The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal.
747
+ */
748
+ anomalyVisibilityTime?: AnomalyVisibilityTime;
749
+ }
750
+ export type AnomalyDetectorArn = string;
751
+ export type AnomalyDetectorStatus = "INITIALIZING"|"TRAINING"|"ANALYZING"|"FAILED"|"DELETED"|"PAUSED"|string;
752
+ export type AnomalyDetectors = AnomalyDetector[];
753
+ export type AnomalyId = string;
754
+ export type AnomalyVisibilityTime = number;
576
755
  export type Arn = string;
577
756
  export interface AssociateKmsKeyRequest {
578
757
  /**
@@ -588,6 +767,7 @@ declare namespace CloudWatchLogs {
588
767
  */
589
768
  resourceIdentifier?: ResourceIdentifier;
590
769
  }
770
+ export type Boolean = boolean;
591
771
  export interface CancelExportTaskRequest {
592
772
  /**
593
773
  * The ID of the export task.
@@ -595,6 +775,7 @@ declare namespace CloudWatchLogs {
595
775
  taskId: ExportTaskId;
596
776
  }
597
777
  export type ClientToken = string;
778
+ export type Count = number;
598
779
  export interface CreateDeliveryRequest {
599
780
  /**
600
781
  * The name of the delivery source to use for this delivery.
@@ -651,9 +832,45 @@ declare namespace CloudWatchLogs {
651
832
  */
652
833
  taskId?: ExportTaskId;
653
834
  }
835
+ export interface CreateLogAnomalyDetectorRequest {
836
+ /**
837
+ * An array containing the ARNs of the log groups that this anomaly detector will watch. You must specify at least one ARN.
838
+ */
839
+ logGroupArnList: LogGroupArnList;
840
+ /**
841
+ * A name for this anomaly detector.
842
+ */
843
+ detectorName?: DetectorName;
844
+ /**
845
+ * Specifies how often the anomaly detector is to run and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then 15 minutes might be a good setting for evaluationFrequency .
846
+ */
847
+ evaluationFrequency?: EvaluationFrequency;
848
+ /**
849
+ * You can use this parameter to limit the anomaly detection model to examine only log events that match the pattern you specify here. For more information, see Filter and Pattern Syntax.
850
+ */
851
+ filterPattern?: FilterPattern;
852
+ /**
853
+ * Optionally assigns a KMS key to secure this anomaly detector and its findings. If a key is assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If a key is assigned to an anomaly detector, a user must have permissions for both this key and for the anomaly detector to retrieve information about the anomalies that it finds. For more information about using a KMS key and to see the required IAM policy, see Use a KMS key with an anomaly detector.
854
+ */
855
+ kmsKeyId?: KmsKeyId;
856
+ /**
857
+ * The number of days to have visibility on an anomaly. After this time period has elapsed for an anomaly, it will be automatically baselined and the anomaly detector will treat new occurrences of a similar anomaly as normal. Therefore, if you do not correct the cause of an anomaly during the time period specified in anomalyVisibilityTime, it will be considered normal going forward and will not be detected as an anomaly.
858
+ */
859
+ anomalyVisibilityTime?: AnomalyVisibilityTime;
860
+ /**
861
+ * An optional list of key-value pairs to associate with the resource. For more information about tagging, see Tagging Amazon Web Services resources
862
+ */
863
+ tags?: Tags;
864
+ }
865
+ export interface CreateLogAnomalyDetectorResponse {
866
+ /**
867
+ * The ARN of the log anomaly detector that you just created.
868
+ */
869
+ anomalyDetectorArn?: AnomalyDetectorArn;
870
+ }
654
871
  export interface CreateLogGroupRequest {
655
872
  /**
656
- * The name of the log group.
873
+ * A name for the log group.
657
874
  */
658
875
  logGroupName: LogGroupName;
659
876
  /**
@@ -664,6 +881,10 @@ declare namespace CloudWatchLogs {
664
881
  * The key-value pairs to use for the tags. You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the logs:TagResource or logs:TagLogGroup permission. For more information about tagging, see Tagging Amazon Web Services resources. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.
665
882
  */
666
883
  tags?: Tags;
884
+ /**
885
+ * Use this parameter to specify the log group class for this log group. There are two classes: The Standard log class supports all CloudWatch Logs features. The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs. If you omit this parameter, the default of STANDARD is used. For details about the features supported by each class, see Log classes
886
+ */
887
+ logGroupClass?: LogGroupClass;
667
888
  }
668
889
  export interface CreateLogStreamRequest {
669
890
  /**
@@ -725,6 +946,12 @@ declare namespace CloudWatchLogs {
725
946
  */
726
947
  destinationName: DestinationName;
727
948
  }
949
+ export interface DeleteLogAnomalyDetectorRequest {
950
+ /**
951
+ * The ARN of the anomaly detector to delete. You can find the ARNs of log anomaly detectors in your account by using the ListLogAnomalyDetectors operation.
952
+ */
953
+ anomalyDetectorArn: AnomalyDetectorArn;
954
+ }
728
955
  export interface DeleteLogGroupRequest {
729
956
  /**
730
957
  * The name of the log group.
@@ -1012,6 +1239,10 @@ declare namespace CloudWatchLogs {
1012
1239
  * If you are using a monitoring account, set this to True to have the operation return log groups in the accounts listed in accountIdentifiers. If this parameter is set to true and accountIdentifiers contains a null value, the operation returns all log groups in the monitoring account and all log groups in all source accounts that are linked to the monitoring account.
1013
1240
  */
1014
1241
  includeLinkedAccounts?: IncludeLinkedAccounts;
1242
+ /**
1243
+ * Specifies the log group class for this log group. There are two classes: The Standard log class supports all CloudWatch Logs features. The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs. For details about the features supported by each class, see Log classes
1244
+ */
1245
+ logGroupClass?: LogGroupClass;
1015
1246
  }
1016
1247
  export interface DescribeLogGroupsResponse {
1017
1248
  /**
@@ -1170,6 +1401,7 @@ declare namespace CloudWatchLogs {
1170
1401
  subscriptionFilters?: SubscriptionFilters;
1171
1402
  nextToken?: NextToken;
1172
1403
  }
1404
+ export type Description = string;
1173
1405
  export interface Destination {
1174
1406
  /**
1175
1407
  * The name of the destination.
@@ -1199,6 +1431,7 @@ declare namespace CloudWatchLogs {
1199
1431
  export type DestinationArn = string;
1200
1432
  export type DestinationName = string;
1201
1433
  export type Destinations = Destination[];
1434
+ export type DetectorName = string;
1202
1435
  export type Dimensions = {[key: string]: DimensionsValue};
1203
1436
  export type DimensionsKey = string;
1204
1437
  export type DimensionsValue = string;
@@ -1213,7 +1446,11 @@ declare namespace CloudWatchLogs {
1213
1446
  resourceIdentifier?: ResourceIdentifier;
1214
1447
  }
1215
1448
  export type Distribution = "Random"|"ByLogStream"|string;
1449
+ export type DynamicTokenPosition = number;
1216
1450
  export type EncryptionKey = string;
1451
+ export type Enumerations = {[key: string]: TokenValue};
1452
+ export type EpochMillis = number;
1453
+ export type EvaluationFrequency = "ONE_MIN"|"FIVE_MIN"|"TEN_MIN"|"FIFTEEN_MIN"|"THIRTY_MIN"|"ONE_HOUR"|string;
1217
1454
  export type EventId = string;
1218
1455
  export type EventMessage = string;
1219
1456
  export type EventNumber = number;
@@ -1440,6 +1677,47 @@ declare namespace CloudWatchLogs {
1440
1677
  */
1441
1678
  deliverySource?: DeliverySource;
1442
1679
  }
1680
+ export interface GetLogAnomalyDetectorRequest {
1681
+ /**
1682
+ * The ARN of the anomaly detector to retrieve information about. You can find the ARNs of log anomaly detectors in your account by using the ListLogAnomalyDetectors operation.
1683
+ */
1684
+ anomalyDetectorArn: AnomalyDetectorArn;
1685
+ }
1686
+ export interface GetLogAnomalyDetectorResponse {
1687
+ /**
1688
+ * The name of the log anomaly detector
1689
+ */
1690
+ detectorName?: DetectorName;
1691
+ /**
1692
+ * An array of structures, where each structure contains the ARN of a log group associated with this anomaly detector.
1693
+ */
1694
+ logGroupArnList?: LogGroupArnList;
1695
+ /**
1696
+ * Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency to FIFTEEN_MIN might be appropriate.
1697
+ */
1698
+ evaluationFrequency?: EvaluationFrequency;
1699
+ filterPattern?: FilterPattern;
1700
+ /**
1701
+ * Specifies whether the anomaly detector is currently active. To change its status, use the enabled parameter in the UpdateLogAnomalyDetector operation.
1702
+ */
1703
+ anomalyDetectorStatus?: AnomalyDetectorStatus;
1704
+ /**
1705
+ * The ID of the KMS key assigned to this anomaly detector, if any.
1706
+ */
1707
+ kmsKeyId?: KmsKeyId;
1708
+ /**
1709
+ * The date and time when this anomaly detector was created.
1710
+ */
1711
+ creationTimeStamp?: EpochMillis;
1712
+ /**
1713
+ * The date and time when this anomaly detector was most recently modified.
1714
+ */
1715
+ lastModifiedTimeStamp?: EpochMillis;
1716
+ /**
1717
+ * The number of days used as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal.
1718
+ */
1719
+ anomalyVisibilityTime?: AnomalyVisibilityTime;
1720
+ }
1443
1721
  export interface GetLogEventsRequest {
1444
1722
  /**
1445
1723
  * The name of the log group. You must include either logGroupIdentifier or logGroupName, but not both.
@@ -1552,6 +1830,7 @@ declare namespace CloudWatchLogs {
1552
1830
  */
1553
1831
  encryptionKey?: EncryptionKey;
1554
1832
  }
1833
+ export type Histogram = {[key: string]: Count};
1555
1834
  export type IncludeLinkedAccounts = boolean;
1556
1835
  export type InheritedProperties = InheritedProperty[];
1557
1836
  export type InheritedProperty = "ACCOUNT_DATA_PROTECTION"|string;
@@ -1567,8 +1846,51 @@ declare namespace CloudWatchLogs {
1567
1846
  }
1568
1847
  export type InputLogEvents = InputLogEvent[];
1569
1848
  export type InputLogStreamNames = LogStreamName[];
1849
+ export type Integer = number;
1570
1850
  export type Interleaved = boolean;
1571
1851
  export type KmsKeyId = string;
1852
+ export type ListAnomaliesLimit = number;
1853
+ export interface ListAnomaliesRequest {
1854
+ /**
1855
+ * Use this to optionally limit the results to only the anomalies found by a certain anomaly detector.
1856
+ */
1857
+ anomalyDetectorArn?: AnomalyDetectorArn;
1858
+ /**
1859
+ * You can specify this parameter if you want to the operation to return only anomalies that are currently either suppressed or unsuppressed.
1860
+ */
1861
+ suppressionState?: SuppressionState;
1862
+ /**
1863
+ * The maximum number of items to return. If you don't specify a value, the default maximum value of 50 items is used.
1864
+ */
1865
+ limit?: ListAnomaliesLimit;
1866
+ nextToken?: NextToken;
1867
+ }
1868
+ export interface ListAnomaliesResponse {
1869
+ /**
1870
+ * An array of structures, where each structure contains information about one anomaly that a log anomaly detector has found.
1871
+ */
1872
+ anomalies?: Anomalies;
1873
+ nextToken?: NextToken;
1874
+ }
1875
+ export type ListLogAnomalyDetectorsLimit = number;
1876
+ export interface ListLogAnomalyDetectorsRequest {
1877
+ /**
1878
+ * Use this to optionally filter the results to only include anomaly detectors that are associated with the specified log group.
1879
+ */
1880
+ filterLogGroupArn?: LogGroupArn;
1881
+ /**
1882
+ * The maximum number of items to return. If you don't specify a value, the default maximum value of 50 items is used.
1883
+ */
1884
+ limit?: ListLogAnomalyDetectorsLimit;
1885
+ nextToken?: NextToken;
1886
+ }
1887
+ export interface ListLogAnomalyDetectorsResponse {
1888
+ /**
1889
+ * An array of structures, where each structure in the array contains information about one anomaly detector.
1890
+ */
1891
+ anomalyDetectors?: AnomalyDetectors;
1892
+ nextToken?: NextToken;
1893
+ }
1572
1894
  export interface ListTagsForResourceRequest {
1573
1895
  /**
1574
1896
  * The ARN of the resource that you want to view tags for. The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name For more information about ARN format, see CloudWatch Logs resources and operations.
@@ -1593,6 +1915,7 @@ declare namespace CloudWatchLogs {
1593
1915
  */
1594
1916
  tags?: Tags;
1595
1917
  }
1918
+ export type LogEvent = string;
1596
1919
  export type LogEventIndex = number;
1597
1920
  export interface LogGroup {
1598
1921
  /**
@@ -1628,7 +1951,14 @@ declare namespace CloudWatchLogs {
1628
1951
  * Displays all the properties that this log group has inherited from account-level settings.
1629
1952
  */
1630
1953
  inheritedProperties?: InheritedProperties;
1954
+ /**
1955
+ * This specifies the log group class for this log group. There are two classes: The Standard log class supports all CloudWatch Logs features. The Infrequent Access log class supports a subset of CloudWatch Logs features and incurs lower costs. For details about the features supported by each class, see Log classes
1956
+ */
1957
+ logGroupClass?: LogGroupClass;
1631
1958
  }
1959
+ export type LogGroupArn = string;
1960
+ export type LogGroupArnList = LogGroupArn[];
1961
+ export type LogGroupClass = "STANDARD"|"INFREQUENT_ACCESS"|string;
1632
1962
  export interface LogGroupField {
1633
1963
  /**
1634
1964
  * The name of a log field.
@@ -1648,6 +1978,7 @@ declare namespace CloudWatchLogs {
1648
1978
  export type LogGroups = LogGroup[];
1649
1979
  export type LogRecord = {[key: string]: Value};
1650
1980
  export type LogRecordPointer = string;
1981
+ export type LogSamples = LogEvent[];
1651
1982
  export interface LogStream {
1652
1983
  /**
1653
1984
  * The name of the log stream.
@@ -1769,6 +2100,28 @@ declare namespace CloudWatchLogs {
1769
2100
  ingestionTime?: Timestamp;
1770
2101
  }
1771
2102
  export type OutputLogEvents = OutputLogEvent[];
2103
+ export type PatternId = string;
2104
+ export type PatternRegex = string;
2105
+ export type PatternString = string;
2106
+ export interface PatternToken {
2107
+ /**
2108
+ * For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens. The dynamic token that appears first has a value of 1, the one that appears second is 2, and so on.
2109
+ */
2110
+ dynamicTokenPosition?: DynamicTokenPosition;
2111
+ /**
2112
+ * Specifies whether this is a dynamic token.
2113
+ */
2114
+ isDynamic?: Boolean;
2115
+ /**
2116
+ * The string represented by this token. If this is a dynamic token, the value will be &lt;*&gt;
2117
+ */
2118
+ tokenString?: TokenString;
2119
+ /**
2120
+ * Contains the values found for a dynamic token, and the number of times each value was found.
2121
+ */
2122
+ enumerations?: Enumerations;
2123
+ }
2124
+ export type PatternTokens = PatternToken[];
1772
2125
  export type Percentage = number;
1773
2126
  export interface Policy {
1774
2127
  /**
@@ -1779,6 +2132,7 @@ declare namespace CloudWatchLogs {
1779
2132
  export type PolicyDocument = string;
1780
2133
  export type PolicyName = string;
1781
2134
  export type PolicyType = "DATA_PROTECTION_POLICY"|string;
2135
+ export type Priority = string;
1782
2136
  export interface PutAccountPolicyRequest {
1783
2137
  /**
1784
2138
  * A name for the policy. This must be unique within the account.
@@ -2214,6 +2568,7 @@ declare namespace CloudWatchLogs {
2214
2568
  */
2215
2569
  queryId?: QueryId;
2216
2570
  }
2571
+ export type State = "Active"|"Suppressed"|"Baseline"|string;
2217
2572
  export type StatsValue = number;
2218
2573
  export interface StopQueryRequest {
2219
2574
  /**
@@ -2254,6 +2609,19 @@ declare namespace CloudWatchLogs {
2254
2609
  }
2255
2610
  export type SubscriptionFilters = SubscriptionFilter[];
2256
2611
  export type Success = boolean;
2612
+ export interface SuppressionPeriod {
2613
+ /**
2614
+ * Specifies the number of seconds, minutes or hours to suppress this anomaly. There is no maximum.
2615
+ */
2616
+ value?: Integer;
2617
+ /**
2618
+ * Specifies whether the value of value is in seconds, minutes, or hours.
2619
+ */
2620
+ suppressionUnit?: SuppressionUnit;
2621
+ }
2622
+ export type SuppressionState = "SUPPRESSED"|"UNSUPPRESSED"|string;
2623
+ export type SuppressionType = "LIMITED"|"INFINITE"|string;
2624
+ export type SuppressionUnit = "SECONDS"|"MINUTES"|"HOURS"|string;
2257
2625
  export type TagKey = string;
2258
2626
  export type TagKeyList = TagKey[];
2259
2627
  export type TagList = TagKey[];
@@ -2294,8 +2662,11 @@ declare namespace CloudWatchLogs {
2294
2662
  */
2295
2663
  matches?: MetricFilterMatches;
2296
2664
  }
2665
+ export type Time = string;
2297
2666
  export type Timestamp = number;
2298
2667
  export type Token = string;
2668
+ export type TokenString = string;
2669
+ export type TokenValue = number;
2299
2670
  export type Unmask = boolean;
2300
2671
  export interface UntagLogGroupRequest {
2301
2672
  /**
@@ -2317,6 +2688,47 @@ declare namespace CloudWatchLogs {
2317
2688
  */
2318
2689
  tagKeys: TagKeyList;
2319
2690
  }
2691
+ export interface UpdateAnomalyRequest {
2692
+ /**
2693
+ * If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
2694
+ */
2695
+ anomalyId?: AnomalyId;
2696
+ /**
2697
+ * If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
2698
+ */
2699
+ patternId?: PatternId;
2700
+ /**
2701
+ * The ARN of the anomaly detector that this operation is to act on.
2702
+ */
2703
+ anomalyDetectorArn: AnomalyDetectorArn;
2704
+ /**
2705
+ * Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.
2706
+ */
2707
+ suppressionType?: SuppressionType;
2708
+ /**
2709
+ * If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
2710
+ */
2711
+ suppressionPeriod?: SuppressionPeriod;
2712
+ }
2713
+ export interface UpdateLogAnomalyDetectorRequest {
2714
+ /**
2715
+ * The ARN of the anomaly detector that you want to update.
2716
+ */
2717
+ anomalyDetectorArn: AnomalyDetectorArn;
2718
+ /**
2719
+ * Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency to FIFTEEN_MIN might be appropriate.
2720
+ */
2721
+ evaluationFrequency?: EvaluationFrequency;
2722
+ filterPattern?: FilterPattern;
2723
+ /**
2724
+ * The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.
2725
+ */
2726
+ anomalyVisibilityTime?: AnomalyVisibilityTime;
2727
+ /**
2728
+ * Use this parameter to pause or restart the anomaly detector.
2729
+ */
2730
+ enabled: Boolean;
2731
+ }
2320
2732
  export type Value = string;
2321
2733
  /**
2322
2734
  * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.