aws-cdk-lib.aws_lookoutmetrics.CfnAlertProps

interface CfnAlertProps

LanguageType name
.NETAmazon.CDK.AWS.LookoutMetrics.CfnAlertProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslookoutmetrics#CfnAlertProps
Javasoftware.amazon.awscdk.services.lookoutmetrics.CfnAlertProps
Pythonaws_cdk.aws_lookoutmetrics.CfnAlertProps
TypeScript aws-cdk-lib » aws_lookoutmetrics » CfnAlertProps

Properties for defining a CfnAlert.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lookoutmetrics as lookoutmetrics } from 'aws-cdk-lib';
const cfnAlertProps: lookoutmetrics.CfnAlertProps = {
  action: {
    lambdaConfiguration: {
      lambdaArn: 'lambdaArn',
      roleArn: 'roleArn',
    },
    snsConfiguration: {
      roleArn: 'roleArn',
      snsTopicArn: 'snsTopicArn',
    },
  },
  alertSensitivityThreshold: 123,
  anomalyDetectorArn: 'anomalyDetectorArn',

  // the properties below are optional
  alertDescription: 'alertDescription',
  alertName: 'alertName',
};

Properties

NameTypeDescription
actionIResolvable | ActionPropertyAction that will be triggered when there is an alert.
alertSensitivityThresholdnumberAn integer from 0 to 100 specifying the alert sensitivity threshold.
anomalyDetectorArnstringThe ARN of the detector to which the alert is attached.
alertDescription?stringA description of the alert.
alertName?stringThe name of the alert.

action

Type: IResolvable | ActionProperty

Action that will be triggered when there is an alert.


alertSensitivityThreshold

Type: number

An integer from 0 to 100 specifying the alert sensitivity threshold.


anomalyDetectorArn

Type: string

The ARN of the detector to which the alert is attached.


alertDescription?

Type: string (optional)

A description of the alert.


alertName?

Type: string (optional)

The name of the alert.