We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
aws-native.logs.getLogAnomalyDetector
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
The AWS::Logs::LogAnomalyDetector resource specifies a CloudWatch Logs LogAnomalyDetector.
Using getLogAnomalyDetector
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLogAnomalyDetector(args: GetLogAnomalyDetectorArgs, opts?: InvokeOptions): Promise<GetLogAnomalyDetectorResult>
function getLogAnomalyDetectorOutput(args: GetLogAnomalyDetectorOutputArgs, opts?: InvokeOptions): Output<GetLogAnomalyDetectorResult>
def get_log_anomaly_detector(anomaly_detector_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLogAnomalyDetectorResult
def get_log_anomaly_detector_output(anomaly_detector_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLogAnomalyDetectorResult]
func LookupLogAnomalyDetector(ctx *Context, args *LookupLogAnomalyDetectorArgs, opts ...InvokeOption) (*LookupLogAnomalyDetectorResult, error)
func LookupLogAnomalyDetectorOutput(ctx *Context, args *LookupLogAnomalyDetectorOutputArgs, opts ...InvokeOption) LookupLogAnomalyDetectorResultOutput
> Note: This function is named LookupLogAnomalyDetector
in the Go SDK.
public static class GetLogAnomalyDetector
{
public static Task<GetLogAnomalyDetectorResult> InvokeAsync(GetLogAnomalyDetectorArgs args, InvokeOptions? opts = null)
public static Output<GetLogAnomalyDetectorResult> Invoke(GetLogAnomalyDetectorInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogAnomalyDetectorResult> getLogAnomalyDetector(GetLogAnomalyDetectorArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:logs:getLogAnomalyDetector
arguments:
# arguments dictionary
The following arguments are supported:
- Anomaly
Detector stringArn - ARN of LogAnomalyDetector
- Anomaly
Detector stringArn - ARN of LogAnomalyDetector
- anomaly
Detector StringArn - ARN of LogAnomalyDetector
- anomaly
Detector stringArn - ARN of LogAnomalyDetector
- anomaly_
detector_ strarn - ARN of LogAnomalyDetector
- anomaly
Detector StringArn - ARN of LogAnomalyDetector
getLogAnomalyDetector Result
The following output properties are available:
- Anomaly
Detector stringArn - ARN of LogAnomalyDetector
- Anomaly
Detector stringStatus - Current status of detector.
- Anomaly
Visibility doubleTime - 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. - Creation
Time doubleStamp - When detector was created.
- Detector
Name string - Name of detector
- Evaluation
Frequency Pulumi.Aws Native. Logs. Log Anomaly Detector Evaluation Frequency - How often log group is evaluated
- Filter
Pattern string - 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 .
- Kms
Key stringId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- Last
Modified doubleTime Stamp - When detector was lsat modified.
- Log
Group List<string>Arn List - List of Arns for the given log group
- Anomaly
Detector stringArn - ARN of LogAnomalyDetector
- Anomaly
Detector stringStatus - Current status of detector.
- Anomaly
Visibility float64Time - 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. - Creation
Time float64Stamp - When detector was created.
- Detector
Name string - Name of detector
- Evaluation
Frequency LogAnomaly Detector Evaluation Frequency - How often log group is evaluated
- Filter
Pattern string - 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 .
- Kms
Key stringId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- Last
Modified float64Time Stamp - When detector was lsat modified.
- Log
Group []stringArn List - List of Arns for the given log group
- anomaly
Detector StringArn - ARN of LogAnomalyDetector
- anomaly
Detector StringStatus - Current status of detector.
- anomaly
Visibility DoubleTime - 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. - creation
Time DoubleStamp - When detector was created.
- detector
Name String - Name of detector
- evaluation
Frequency LogAnomaly Detector Evaluation Frequency - How often log group is evaluated
- filter
Pattern String - 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 .
- kms
Key StringId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- last
Modified DoubleTime Stamp - When detector was lsat modified.
- log
Group List<String>Arn List - List of Arns for the given log group
- anomaly
Detector stringArn - ARN of LogAnomalyDetector
- anomaly
Detector stringStatus - Current status of detector.
- anomaly
Visibility numberTime - 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. - creation
Time numberStamp - When detector was created.
- detector
Name string - Name of detector
- evaluation
Frequency LogAnomaly Detector Evaluation Frequency - How often log group is evaluated
- filter
Pattern string - 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 .
- kms
Key stringId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- last
Modified numberTime Stamp - When detector was lsat modified.
- log
Group string[]Arn List - List of Arns for the given log group
- anomaly_
detector_ strarn - ARN of LogAnomalyDetector
- anomaly_
detector_ strstatus - Current status of detector.
- anomaly_
visibility_ floattime - 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. - creation_
time_ floatstamp - When detector was created.
- detector_
name str - Name of detector
- evaluation_
frequency LogAnomaly Detector Evaluation Frequency - How often log group is evaluated
- filter_
pattern str - 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 .
- kms_
key_ strid - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- last_
modified_ floattime_ stamp - When detector was lsat modified.
- log_
group_ Sequence[str]arn_ list - List of Arns for the given log group
- anomaly
Detector StringArn - ARN of LogAnomalyDetector
- anomaly
Detector StringStatus - Current status of detector.
- anomaly
Visibility NumberTime - 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. - creation
Time NumberStamp - When detector was created.
- detector
Name String - Name of detector
- evaluation
Frequency "FIVE_MIN" | "TEN_MIN" | "FIFTEEN_MIN" | "THIRTY_MIN" | "ONE_HOUR" - How often log group is evaluated
- filter
Pattern String - 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 .
- kms
Key StringId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- last
Modified NumberTime Stamp - When detector was lsat modified.
- log
Group List<String>Arn List - List of Arns for the given log group
Supporting Types
LogAnomalyDetectorEvaluationFrequency
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi