

# DetectorStateDefinition


The new state, variable values, and timer settings of the detector (instance).

## Contents


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

 ** timers **   <a name="iotevents-Type-iotevents-data_DetectorStateDefinition-timers"></a>
The new values of the detector's timers. Any timer whose value isn't specified is cleared, and its timeout event won't occur.  
Type: Array of [TimerDefinition](API_iotevents-data_TimerDefinition.md) objects  
Required: Yes

 ** variables **   <a name="iotevents-Type-iotevents-data_DetectorStateDefinition-variables"></a>
The new values of the detector's variables. Any variable whose value isn't specified is cleared.  
Type: Array of [VariableDefinition](API_iotevents-data_VariableDefinition.md) objects  
Required: Yes

## See Also


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/DetectorStateDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iotevents-data-2018-10-23/DetectorStateDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iotevents-data-2018-10-23/DetectorStateDefinition) 