AWS Native is in preview. AWS Classic is fully supported.
aws-native.logs.LogAnomalyDetector
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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
The LogAnomalyDetector resource accepts the following input properties:
- Account
Id string - Account ID for owner 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. - 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.
- Log
Group List<string>Arn List - List of Arns for the given log group
- Account
Id string - Account ID for owner 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. - 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.
- Log
Group []stringArn List - List of Arns for the given log group
- account
Id String - Account ID for owner 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. - 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.
- log
Group List<String>Arn List - List of Arns for the given log group
- account
Id string - Account ID for owner 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. - 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.
- log
Group 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
- account
Id String - Account ID for owner 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. - 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.
- log
Group 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:
- Anomaly
Detector stringArn - ARN of LogAnomalyDetector
- Anomaly
Detector stringStatus - Current status of detector.
- Creation
Time doubleStamp - When detector was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified doubleTime Stamp - When detector was lsat modified.
- Anomaly
Detector stringArn - ARN of LogAnomalyDetector
- Anomaly
Detector stringStatus - Current status of detector.
- Creation
Time float64Stamp - When detector was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified float64Time Stamp - When detector was lsat modified.
- anomaly
Detector StringArn - ARN of LogAnomalyDetector
- anomaly
Detector StringStatus - Current status of detector.
- creation
Time DoubleStamp - When detector was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified DoubleTime Stamp - When detector was lsat modified.
- anomaly
Detector stringArn - ARN of LogAnomalyDetector
- anomaly
Detector stringStatus - Current status of detector.
- creation
Time numberStamp - When detector was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified 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.
- anomaly
Detector StringArn - ARN of LogAnomalyDetector
- anomaly
Detector StringStatus - Current status of detector.
- creation
Time NumberStamp - When detector was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified NumberTime Stamp - When detector was lsat modified.
Supporting Types
LogAnomalyDetectorEvaluationFrequency, LogAnomalyDetectorEvaluationFrequencyArgs
- Five
Min - FIVE_MIN
- Ten
Min - TEN_MIN
- Fifteen
Min - FIFTEEN_MIN
- Thirty
Min - THIRTY_MIN
- One
Hour - ONE_HOUR
- Log
Anomaly Detector Evaluation Frequency Five Min - FIVE_MIN
- Log
Anomaly Detector Evaluation Frequency Ten Min - TEN_MIN
- Log
Anomaly Detector Evaluation Frequency Fifteen Min - FIFTEEN_MIN
- Log
Anomaly Detector Evaluation Frequency Thirty Min - THIRTY_MIN
- Log
Anomaly Detector Evaluation Frequency One Hour - 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
- 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 is in preview. AWS Classic is fully supported.