

# StopInstanceOnIdleRequest
<a name="API_StopInstanceOnIdleRequest"></a>

Describes a request to create or edit the `StopInstanceOnIdle` add-on.

**Important**  
This add-on only applies to Lightsail for Research resources.

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

 ** duration **   <a name="Lightsail-Type-StopInstanceOnIdleRequest-duration"></a>
The amount of idle time in minutes after which your virtual computer will automatically stop.  
Type: String  
Required: No

 ** threshold **   <a name="Lightsail-Type-StopInstanceOnIdleRequest-threshold"></a>
The value to compare with the duration.  
Type: String  
Required: No

## See Also
<a name="API_StopInstanceOnIdleRequest_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/lightsail-2016-11-28/StopInstanceOnIdleRequest) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lightsail-2016-11-28/StopInstanceOnIdleRequest) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lightsail-2016-11-28/StopInstanceOnIdleRequest) 