aws-cdk-lib.aws_iotevents.CfnAlarmModel.SimpleRuleProperty

interface SimpleRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.CfnAlarmModel.SimpleRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnAlarmModel_SimpleRuleProperty
Javasoftware.amazon.awscdk.services.iotevents.CfnAlarmModel.SimpleRuleProperty
Pythonaws_cdk.aws_iotevents.CfnAlarmModel.SimpleRuleProperty
TypeScript aws-cdk-lib » aws_iotevents » CfnAlarmModel » SimpleRuleProperty

A rule that compares an input property value to a threshold value with a comparison operator.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const simpleRuleProperty: iotevents.CfnAlarmModel.SimpleRuleProperty = {
  comparisonOperator: 'comparisonOperator',
  inputProperty: 'inputProperty',
  threshold: 'threshold',
};

Properties

NameTypeDescription
comparisonOperatorstringThe comparison operator.
inputPropertystringThe value on the left side of the comparison operator.
thresholdstringThe value on the right side of the comparison operator.

comparisonOperator

Type: string

The comparison operator.


inputProperty

Type: string

The value on the left side of the comparison operator.

You can specify an AWS IoT Events input attribute as an input property.


threshold

Type: string

The value on the right side of the comparison operator.

You can enter a number or specify an AWS IoT Events input attribute.