interface SimpleRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.IoTEvents.CfnAlarmModelPropsMixin.SimpleRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsiotevents#CfnAlarmModelPropsMixin_SimpleRuleProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.iotevents.CfnAlarmModelPropsMixin.SimpleRuleProperty |
Python | aws_cdk.cfn_property_mixins.aws_iotevents.CfnAlarmModelPropsMixin.SimpleRuleProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_iotevents » 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 { aws_iotevents as iotevents } from '@aws-cdk/cfn-property-mixins';
const simpleRuleProperty: iotevents.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