We recommend new projects start with resources from the AWS provider.
aws-native.lookoutmetrics.Alert
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::LookoutMetrics::Alert
Create Alert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);
@overload
def Alert(resource_name: str,
args: AlertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alert(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[AlertActionArgs] = None,
alert_sensitivity_threshold: Optional[int] = None,
anomaly_detector_arn: Optional[str] = None,
alert_description: Optional[str] = None,
alert_name: Optional[str] = None)
func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)
type: aws-native:lookoutmetrics:Alert
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 AlertArgs
- 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 AlertArgs
- 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 AlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Alert 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 Alert resource accepts the following input properties:
- Action
Pulumi.
Aws Native. Lookout Metrics. Inputs. Alert Action - The action to be taken by the alert when an anomaly is detected.
- Alert
Sensitivity intThreshold - A number between 0 and 100 (inclusive) that tunes the sensitivity of the alert.
- Anomaly
Detector stringArn - The Amazon resource name (ARN) of the Anomaly Detector to alert.
- Alert
Description string - A description for the alert.
- Alert
Name string - The name of the alert. If not provided, a name is generated automatically.
- Action
Alert
Action Args - The action to be taken by the alert when an anomaly is detected.
- Alert
Sensitivity intThreshold - A number between 0 and 100 (inclusive) that tunes the sensitivity of the alert.
- Anomaly
Detector stringArn - The Amazon resource name (ARN) of the Anomaly Detector to alert.
- Alert
Description string - A description for the alert.
- Alert
Name string - The name of the alert. If not provided, a name is generated automatically.
- action
Alert
Action - The action to be taken by the alert when an anomaly is detected.
- alert
Sensitivity IntegerThreshold - A number between 0 and 100 (inclusive) that tunes the sensitivity of the alert.
- anomaly
Detector StringArn - The Amazon resource name (ARN) of the Anomaly Detector to alert.
- alert
Description String - A description for the alert.
- alert
Name String - The name of the alert. If not provided, a name is generated automatically.
- action
Alert
Action - The action to be taken by the alert when an anomaly is detected.
- alert
Sensitivity numberThreshold - A number between 0 and 100 (inclusive) that tunes the sensitivity of the alert.
- anomaly
Detector stringArn - The Amazon resource name (ARN) of the Anomaly Detector to alert.
- alert
Description string - A description for the alert.
- alert
Name string - The name of the alert. If not provided, a name is generated automatically.
- action
Alert
Action Args - The action to be taken by the alert when an anomaly is detected.
- alert_
sensitivity_ intthreshold - A number between 0 and 100 (inclusive) that tunes the sensitivity of the alert.
- anomaly_
detector_ strarn - The Amazon resource name (ARN) of the Anomaly Detector to alert.
- alert_
description str - A description for the alert.
- alert_
name str - The name of the alert. If not provided, a name is generated automatically.
- action Property Map
- The action to be taken by the alert when an anomaly is detected.
- alert
Sensitivity NumberThreshold - A number between 0 and 100 (inclusive) that tunes the sensitivity of the alert.
- anomaly
Detector StringArn - The Amazon resource name (ARN) of the Anomaly Detector to alert.
- alert
Description String - A description for the alert.
- alert
Name String - The name of the alert. If not provided, a name is generated automatically.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:
Supporting Types
AlertAction, AlertActionArgs
- Lambda
Configuration Pulumi.Aws Native. Lookout Metrics. Inputs. Alert Lambda Configuration - A configuration for an AWS Lambda channel.
- Sns
Configuration Pulumi.Aws Native. Lookout Metrics. Inputs. Alert Sns Configuration - A configuration for an Amazon SNS channel.
- Lambda
Configuration AlertLambda Configuration - A configuration for an AWS Lambda channel.
- Sns
Configuration AlertSns Configuration - A configuration for an Amazon SNS channel.
- lambda
Configuration AlertLambda Configuration - A configuration for an AWS Lambda channel.
- sns
Configuration AlertSns Configuration - A configuration for an Amazon SNS channel.
- lambda
Configuration AlertLambda Configuration - A configuration for an AWS Lambda channel.
- sns
Configuration AlertSns Configuration - A configuration for an Amazon SNS channel.
- lambda_
configuration AlertLambda Configuration - A configuration for an AWS Lambda channel.
- sns_
configuration AlertSns Configuration - A configuration for an Amazon SNS channel.
- lambda
Configuration Property Map - A configuration for an AWS Lambda channel.
- sns
Configuration Property Map - A configuration for an Amazon SNS channel.
AlertLambdaConfiguration, AlertLambdaConfigurationArgs
- lambda_
arn str - ARN of a Lambda to send alert notifications to.
- role_
arn str - ARN of an IAM role that LookoutMetrics should assume to access the Lambda function.
AlertSnsConfiguration, AlertSnsConfigurationArgs
- Role
Arn string - ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.
- Sns
Topic stringArn - ARN of an SNS topic to send alert notifications to.
- Role
Arn string - ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.
- Sns
Topic stringArn - ARN of an SNS topic to send alert notifications to.
- role
Arn String - ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.
- sns
Topic StringArn - ARN of an SNS topic to send alert notifications to.
- role
Arn string - ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.
- sns
Topic stringArn - ARN of an SNS topic to send alert notifications to.
- role_
arn str - ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.
- sns_
topic_ strarn - ARN of an SNS topic to send alert notifications to.
- role
Arn String - ARN of an IAM role that LookoutMetrics should assume to access the SNS topic.
- sns
Topic StringArn - ARN of an SNS topic to send alert notifications to.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.