

# DetectorModelDefinition
<a name="API_DetectorModelDefinition"></a>

Information that defines how a detector operates.

## Contents
<a name="API_DetectorModelDefinition_Contents"></a>

 ** initialStateName **   <a name="iotevents-Type-DetectorModelDefinition-initialStateName"></a>
The state that is entered at the creation of each detector (instance).  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: Yes

 ** states **   <a name="iotevents-Type-DetectorModelDefinition-states"></a>
Information about the states of the detector.  
Type: Array of [State](API_State.md) objects  
Array Members: Minimum number of 1 item.  
Required: Yes

## See Also
<a name="API_DetectorModelDefinition_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iotevents-2018-07-27/DetectorModelDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-2018-07-27/DetectorModelDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-2018-07-27/DetectorModelDefinition) 