

# DetectorState
<a name="API_iotevents-data_DetectorState"></a>

Information about the current state of the detector instance.

## Contents
<a name="API_iotevents-data_DetectorState_Contents"></a>

 ** stateName **   <a name="iotevents-Type-iotevents-data_DetectorState-stateName"></a>
The name of the state.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: Yes

 ** timers **   <a name="iotevents-Type-iotevents-data_DetectorState-timers"></a>
The current state of the detector's timers.  
Type: Array of [Timer](API_iotevents-data_Timer.md) objects  
Required: Yes

 ** variables **   <a name="iotevents-Type-iotevents-data_DetectorState-variables"></a>
The current values of the detector's variables.  
Type: Array of [Variable](API_iotevents-data_Variable.md) objects  
Required: Yes

## See Also
<a name="API_iotevents-data_DetectorState_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/iotevents-data-2018-10-23/DetectorState) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/iotevents-data-2018-10-23/DetectorState) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/iotevents-data-2018-10-23/DetectorState) 