interface StateProperty
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.IoTEvents.CfnDetectorModel.StateProperty | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_StateProperty | 
  Java | software.amazon.awscdk.services.iotevents.CfnDetectorModel.StateProperty | 
  Python | aws_cdk.aws_iotevents.CfnDetectorModel.StateProperty | 
  TypeScript  | aws-cdk-lib » aws_iotevents » CfnDetectorModel » StateProperty | 
Information that defines a state of a detector.
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
| Name | Type | Description | 
|---|---|---|
| state | string | The name of the state. | 
| on | IResolvable | On | When entering this state, perform these actions if the condition is TRUE. | 
| on | IResolvable | On | When exiting this state, perform these actions if the specified condition is TRUE . | 
| on | IResolvable | On | When an input is received and the condition is TRUE, perform the specified actions . | 
stateName
Type:
string
The name of the state.
onEnter?
Type:
IResolvable | On
(optional)
When entering this state, perform these actions if the condition is TRUE.
onExit?
Type:
IResolvable | On
(optional)
When exiting this state, perform these actions if the specified condition is TRUE .
onInput?
Type:
IResolvable | On
(optional)
When an input is received and the condition is TRUE, perform the specified actions .

 .NET
 Go
 Java
 Python
 TypeScript