

# 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 AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iotevents-data-2018-10-23/DetectorState) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-data-2018-10-23/DetectorState) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-data-2018-10-23/DetectorState) 