

# AbortCriteria
<a name="API_AbortCriteria"></a>

The criteria that determine when and how a job abort takes place.

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

 ** action **   <a name="iot-Type-AbortCriteria-action"></a>
The type of job action to take to initiate the job abort.  
Type: String  
Valid Values: `CANCEL`   
Required: Yes

 ** failureType **   <a name="iot-Type-AbortCriteria-failureType"></a>
The type of job execution failures that can initiate a job abort.  
Type: String  
Valid Values: `FAILED | REJECTED | TIMED_OUT | ALL`   
Required: Yes

 ** minNumberOfExecutedThings **   <a name="iot-Type-AbortCriteria-minNumberOfExecutedThings"></a>
The minimum number of things which must receive job execution notifications before the job can be aborted.  
Type: Integer  
Valid Range: Minimum value of 1.  
Required: Yes

 ** thresholdPercentage **   <a name="iot-Type-AbortCriteria-thresholdPercentage"></a>
The minimum percentage of job execution failures that must occur to initiate the job abort.  
 Amazon IoT Core supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).  
Type: Double  
Valid Range: Maximum value of 100.  
Required: Yes

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/iot-2015-05-28/AbortCriteria) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/iot-2015-05-28/AbortCriteria) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/iot-2015-05-28/AbortCriteria) 