We recommend new projects start with resources from the AWS provider.
aws-native.logs.LogAnomalyDetector
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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.
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogAnomalyDetector resource accepts the following input properties:
- AccountId string
- Account ID for owner of detector
- AnomalyVisibility 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.
- DetectorName string
- Name of detector
- EvaluationFrequency Pulumi.Aws Native. Logs. Log Anomaly Detector Evaluation Frequency 
- How often log group is evaluated
- FilterPattern 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 .
- KmsKey stringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- LogGroup List<string>Arn List 
- List of Arns for the given log group
- AccountId string
- Account ID for owner of detector
- AnomalyVisibility 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.
- DetectorName string
- Name of detector
- EvaluationFrequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- FilterPattern 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 .
- KmsKey stringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- LogGroup []stringArn List 
- List of Arns for the given log group
- accountId String
- Account ID for owner of detector
- anomalyVisibility 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.
- detectorName String
- Name of detector
- evaluationFrequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- filterPattern 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 .
- kmsKey StringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- logGroup List<String>Arn List 
- List of Arns for the given log group
- accountId string
- Account ID for owner of detector
- anomalyVisibility 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.
- detectorName string
- Name of detector
- evaluationFrequency LogAnomaly Detector Evaluation Frequency 
- How often log group is evaluated
- filterPattern 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 .
- kmsKey stringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- logGroup string[]Arn List 
- List of Arns for the given log group
- account_id str
- Account ID for owner 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.
- 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.
- log_group_ Sequence[str]arn_ list 
- List of Arns for the given log group
- accountId String
- Account ID for owner of detector
- anomalyVisibility 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.
- detectorName String
- Name of detector
- evaluationFrequency "FIVE_MIN" | "TEN_MIN" | "FIFTEEN_MIN" | "THIRTY_MIN" | "ONE_HOUR"
- How often log group is evaluated
- filterPattern 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 .
- kmsKey StringId 
- The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
- logGroup List<String>Arn List 
- 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:
- AnomalyDetector stringArn 
- ARN of LogAnomalyDetector
- AnomalyDetector stringStatus 
- Current status of detector.
- CreationTime doubleStamp 
- When detector was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified doubleTime Stamp 
- When detector was lsat modified.
- AnomalyDetector stringArn 
- ARN of LogAnomalyDetector
- AnomalyDetector stringStatus 
- Current status of detector.
- CreationTime float64Stamp 
- When detector was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified float64Time Stamp 
- When detector was lsat modified.
- anomalyDetector StringArn 
- ARN of LogAnomalyDetector
- anomalyDetector StringStatus 
- Current status of detector.
- creationTime DoubleStamp 
- When detector was created.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified DoubleTime Stamp 
- When detector was lsat modified.
- anomalyDetector stringArn 
- ARN of LogAnomalyDetector
- anomalyDetector stringStatus 
- Current status of detector.
- creationTime numberStamp 
- When detector was created.
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified numberTime Stamp 
- When detector was lsat modified.
- anomaly_detector_ strarn 
- ARN of LogAnomalyDetector
- anomaly_detector_ strstatus 
- Current status of detector.
- creation_time_ floatstamp 
- When detector was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_modified_ floattime_ stamp 
- When detector was lsat modified.
- anomalyDetector StringArn 
- ARN of LogAnomalyDetector
- anomalyDetector StringStatus 
- Current status of detector.
- creationTime NumberStamp 
- When detector was created.
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified NumberTime Stamp 
- When detector was lsat modified.
Supporting Types
LogAnomalyDetectorEvaluationFrequency, LogAnomalyDetectorEvaluationFrequencyArgs          
- FiveMin 
- FIVE_MIN
- TenMin 
- TEN_MIN
- FifteenMin 
- FIFTEEN_MIN
- ThirtyMin 
- THIRTY_MIN
- OneHour 
- ONE_HOUR
- LogAnomaly Detector Evaluation Frequency Five Min 
- FIVE_MIN
- LogAnomaly Detector Evaluation Frequency Ten Min 
- TEN_MIN
- LogAnomaly Detector Evaluation Frequency Fifteen Min 
- FIFTEEN_MIN
- LogAnomaly Detector Evaluation Frequency Thirty Min 
- THIRTY_MIN
- LogAnomaly Detector Evaluation Frequency One Hour 
- 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
We recommend new projects start with resources from the AWS provider.