1. Packages
  2. AWS Native
  3. API Docs
  4. logs
  5. LogAnomalyDetector

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.logs.LogAnomalyDetector

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    The AWS::Logs::LogAnomalyDetector resource specifies a CloudWatch Logs LogAnomalyDetector.

    Create LogAnomalyDetector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogAnomalyDetector(name: string, args?: LogAnomalyDetectorArgs, opts?: CustomResourceOptions);
    @overload
    def LogAnomalyDetector(resource_name: str,
                           args: Optional[LogAnomalyDetectorArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogAnomalyDetector(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           account_id: Optional[str] = None,
                           anomaly_visibility_time: Optional[float] = None,
                           detector_name: Optional[str] = None,
                           evaluation_frequency: Optional[LogAnomalyDetectorEvaluationFrequency] = None,
                           filter_pattern: Optional[str] = None,
                           kms_key_id: Optional[str] = None,
                           log_group_arn_list: Optional[Sequence[str]] = None)
    func NewLogAnomalyDetector(ctx *Context, name string, args *LogAnomalyDetectorArgs, opts ...ResourceOption) (*LogAnomalyDetector, error)
    public LogAnomalyDetector(string name, LogAnomalyDetectorArgs? args = null, CustomResourceOptions? opts = null)
    public LogAnomalyDetector(String name, LogAnomalyDetectorArgs args)
    public LogAnomalyDetector(String name, LogAnomalyDetectorArgs args, CustomResourceOptions options)
    
    type: aws-native:logs:LogAnomalyDetector
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LogAnomalyDetectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LogAnomalyDetectorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LogAnomalyDetectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogAnomalyDetectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogAnomalyDetectorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const logAnomalyDetectorResource = new aws_native.logs.LogAnomalyDetector("logAnomalyDetectorResource", {
        accountId: "string",
        anomalyVisibilityTime: 0,
        detectorName: "string",
        evaluationFrequency: aws_native.logs.LogAnomalyDetectorEvaluationFrequency.FiveMin,
        filterPattern: "string",
        kmsKeyId: "string",
        logGroupArnList: ["string"],
    });
    
    Coming soon!
    

    LogAnomalyDetector Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LogAnomalyDetector resource accepts the following input properties:

    AccountId string
    Account ID for owner of detector
    AnomalyVisibilityTime double
    DetectorName string
    Name of detector
    EvaluationFrequency Pulumi.AwsNative.Logs.LogAnomalyDetectorEvaluationFrequency
    How often log group is evaluated
    FilterPattern string
    KmsKeyId string
    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
    LogGroupArnList List<string>
    List of Arns for the given log group
    AccountId string
    Account ID for owner of detector
    AnomalyVisibilityTime float64
    DetectorName string
    Name of detector
    EvaluationFrequency LogAnomalyDetectorEvaluationFrequency
    How often log group is evaluated
    FilterPattern string
    KmsKeyId string
    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
    LogGroupArnList []string
    List of Arns for the given log group
    accountId String
    Account ID for owner of detector
    anomalyVisibilityTime Double
    detectorName String
    Name of detector
    evaluationFrequency LogAnomalyDetectorEvaluationFrequency
    How often log group is evaluated
    filterPattern String
    kmsKeyId String
    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
    logGroupArnList List<String>
    List of Arns for the given log group
    accountId string
    Account ID for owner of detector
    anomalyVisibilityTime number
    detectorName string
    Name of detector
    evaluationFrequency LogAnomalyDetectorEvaluationFrequency
    How often log group is evaluated
    filterPattern string
    kmsKeyId string
    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
    logGroupArnList string[]
    List of Arns for the given log group
    account_id str
    Account ID for owner of detector
    anomaly_visibility_time float
    detector_name str
    Name of detector
    evaluation_frequency LogAnomalyDetectorEvaluationFrequency
    How often log group is evaluated
    filter_pattern str
    kms_key_id str
    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
    log_group_arn_list Sequence[str]
    List of Arns for the given log group
    accountId String
    Account ID for owner of detector
    anomalyVisibilityTime Number
    detectorName String
    Name of detector
    evaluationFrequency "FIVE_MIN" | "TEN_MIN" | "FIFTEEN_MIN" | "THIRTY_MIN" | "ONE_HOUR"
    How often log group is evaluated
    filterPattern String
    kmsKeyId String
    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
    logGroupArnList List<String>
    List of Arns for the given log group

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogAnomalyDetector resource produces the following output properties:

    AnomalyDetectorArn string
    ARN of LogAnomalyDetector
    AnomalyDetectorStatus string
    Current status of detector.
    CreationTimeStamp double
    When detector was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTimeStamp double
    When detector was lsat modified.
    AnomalyDetectorArn string
    ARN of LogAnomalyDetector
    AnomalyDetectorStatus string
    Current status of detector.
    CreationTimeStamp float64
    When detector was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTimeStamp float64
    When detector was lsat modified.
    anomalyDetectorArn String
    ARN of LogAnomalyDetector
    anomalyDetectorStatus String
    Current status of detector.
    creationTimeStamp Double
    When detector was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTimeStamp Double
    When detector was lsat modified.
    anomalyDetectorArn string
    ARN of LogAnomalyDetector
    anomalyDetectorStatus string
    Current status of detector.
    creationTimeStamp number
    When detector was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTimeStamp number
    When detector was lsat modified.
    anomaly_detector_arn str
    ARN of LogAnomalyDetector
    anomaly_detector_status str
    Current status of detector.
    creation_time_stamp float
    When detector was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time_stamp float
    When detector was lsat modified.
    anomalyDetectorArn String
    ARN of LogAnomalyDetector
    anomalyDetectorStatus String
    Current status of detector.
    creationTimeStamp Number
    When detector was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTimeStamp Number
    When detector was lsat modified.

    Supporting Types

    LogAnomalyDetectorEvaluationFrequency, LogAnomalyDetectorEvaluationFrequencyArgs

    FiveMin
    FIVE_MIN
    TenMin
    TEN_MIN
    FifteenMin
    FIFTEEN_MIN
    ThirtyMin
    THIRTY_MIN
    OneHour
    ONE_HOUR
    LogAnomalyDetectorEvaluationFrequencyFiveMin
    FIVE_MIN
    LogAnomalyDetectorEvaluationFrequencyTenMin
    TEN_MIN
    LogAnomalyDetectorEvaluationFrequencyFifteenMin
    FIFTEEN_MIN
    LogAnomalyDetectorEvaluationFrequencyThirtyMin
    THIRTY_MIN
    LogAnomalyDetectorEvaluationFrequencyOneHour
    ONE_HOUR
    FiveMin
    FIVE_MIN
    TenMin
    TEN_MIN
    FifteenMin
    FIFTEEN_MIN
    ThirtyMin
    THIRTY_MIN
    OneHour
    ONE_HOUR
    FiveMin
    FIVE_MIN
    TenMin
    TEN_MIN
    FifteenMin
    FIFTEEN_MIN
    ThirtyMin
    THIRTY_MIN
    OneHour
    ONE_HOUR
    FIVE_MIN
    FIVE_MIN
    TEN_MIN
    TEN_MIN
    FIFTEEN_MIN
    FIFTEEN_MIN
    THIRTY_MIN
    THIRTY_MIN
    ONE_HOUR
    ONE_HOUR
    "FIVE_MIN"
    FIVE_MIN
    "TEN_MIN"
    TEN_MIN
    "FIFTEEN_MIN"
    FIFTEEN_MIN
    "THIRTY_MIN"
    THIRTY_MIN
    "ONE_HOUR"
    ONE_HOUR

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi