

# UpdateDetectorRequest


Information used to update the detector (instance).

## Contents


 ** detectorModelName **   <a name="iotevents-Type-iotevents-data_UpdateDetectorRequest-detectorModelName"></a>
The name of the detector model that created the detectors (instances).  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `^[a-zA-Z0-9_-]+$`   
Required: Yes

 ** messageId **   <a name="iotevents-Type-iotevents-data_UpdateDetectorRequest-messageId"></a>
The ID to assign to the detector update `"message"`. Each `"messageId"` must be unique within each batch sent.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `^[a-zA-Z0-9_-]+$`   
Required: Yes

 ** state **   <a name="iotevents-Type-iotevents-data_UpdateDetectorRequest-state"></a>
The new state, variable values, and timer settings of the detector (instance).  
Type: [DetectorStateDefinition](API_iotevents-data_DetectorStateDefinition.md) object  
Required: Yes

 ** keyValue **   <a name="iotevents-Type-iotevents-data_UpdateDetectorRequest-keyValue"></a>
The value of the input key attribute (identifying the device or system) that caused the creation of this detector (instance).  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `^[a-zA-Z0-9\-_:]+$`   
Required: No

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