interface SimpleRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoTEvents.Mixins.CfnAlarmModelPropsMixin.SimpleRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiotevents/mixins#CfnAlarmModelPropsMixin_SimpleRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.iotevents.mixins.CfnAlarmModelPropsMixin.SimpleRuleProperty |
Python | aws_cdk.mixins_preview.aws_iotevents.mixins.CfnAlarmModelPropsMixin.SimpleRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iotevents » mixins » CfnAlarmModelPropsMixin » 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 { mixins as iotevents_mixins } from '@aws-cdk/mixins-preview/aws-iotevents';
const simpleRuleProperty: iotevents_mixins.CfnAlarmModelPropsMixin.SimpleRuleProperty = {
comparisonOperator: 'comparisonOperator',
inputProperty: 'inputProperty',
threshold: 'threshold',
};
Properties
| Name | Type | Description |
|---|---|---|
| comparison | string | The comparison operator. |
| input | string | The value on the left side of the comparison operator. |
| threshold? | string | The value on the right side of the comparison operator. |
comparisonOperator?
Type:
string
(optional)
The comparison operator.
inputProperty?
Type:
string
(optional)
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
(optional)
The value on the right side of the comparison operator.
You can enter a number or specify an AWS IoT Events input attribute.

.NET
Go
Java
Python
TypeScript