

# UpdatePolicy
<a name="API_UpdatePolicy"></a>

Specifies the infrastructure update policy for the Amazon EC2 compute environment. For more information about infrastructure updates, see [Updating compute environments](https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the * AWS Batch User Guide*.

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

 ** jobExecutionTimeoutMinutes **   <a name="Batch-Type-UpdatePolicy-jobExecutionTimeoutMinutes"></a>
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30.  
Type: Long  
Valid Range: Minimum value of 1. Maximum value of 360.  
Required: No

 ** terminateJobsOnUpdate **   <a name="Batch-Type-UpdatePolicy-terminateJobsOnUpdate"></a>
Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated. The default value is `false`.  
Type: Boolean  
Required: No

## See Also
<a name="API_UpdatePolicy_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/batch-2016-08-10/UpdatePolicy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/batch-2016-08-10/UpdatePolicy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/batch-2016-08-10/UpdatePolicy) 