UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

65 lines (64 loc) 2.58 kB
import * as pulumi from "@pulumi/pulumi"; import * as enums from "../types/enums"; /** * The AWS::Logs::LogAnomalyDetector resource specifies a CloudWatch Logs LogAnomalyDetector. */ export declare function getLogAnomalyDetector(args: GetLogAnomalyDetectorArgs, opts?: pulumi.InvokeOptions): Promise<GetLogAnomalyDetectorResult>; export interface GetLogAnomalyDetectorArgs { /** * ARN of LogAnomalyDetector */ anomalyDetectorArn: string; } export interface GetLogAnomalyDetectorResult { /** * ARN of LogAnomalyDetector */ readonly anomalyDetectorArn?: string; /** * Current status of detector. */ readonly anomalyDetectorStatus?: string; /** * 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. */ readonly anomalyVisibilityTime?: number; /** * When detector was created. */ readonly creationTimeStamp?: number; /** * Name of detector */ readonly detectorName?: string; /** * How often log group is evaluated */ readonly evaluationFrequency?: enums.logs.LogAnomalyDetectorEvaluationFrequency; /** * 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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) . */ readonly filterPattern?: string; /** * The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. */ readonly kmsKeyId?: string; /** * When detector was lsat modified. */ readonly lastModifiedTimeStamp?: number; /** * List of Arns for the given log group */ readonly logGroupArnList?: string[]; } /** * The AWS::Logs::LogAnomalyDetector resource specifies a CloudWatch Logs LogAnomalyDetector. */ export declare function getLogAnomalyDetectorOutput(args: GetLogAnomalyDetectorOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLogAnomalyDetectorResult>; export interface GetLogAnomalyDetectorOutputArgs { /** * ARN of LogAnomalyDetector */ anomalyDetectorArn: pulumi.Input<string>; }