Class UpdatePolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UpdatePolicy.Builder,UpdatePolicy>
Specifies the infrastructure update policy for the Amazon EC2 compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdatePolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongSpecifies the job timeout (in minutes) when the compute environment infrastructure is updated.static Class<? extends UpdatePolicy.Builder>final BooleanSpecifies whether jobs are automatically terminated when the compute environment infrastructure is updated.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
terminateJobsOnUpdate
Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated. The default value is
false.- Returns:
- Specifies whether jobs are automatically terminated when the compute environment infrastructure is
updated. The default value is
false.
-
jobExecutionTimeoutMinutes
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30. The maximum value is 7200.
Increasing
jobExecutionTimeoutMinutesduring infrastructure updates delays the replacement of instances with new instances that include updates such as security patches, but provides more time for jobs to execute. Consider the security implications of this tradeoff when setting timeout values.- Returns:
- Specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The
default value is 30. The maximum value is 7200.
Increasing
jobExecutionTimeoutMinutesduring infrastructure updates delays the replacement of instances with new instances that include updates such as security patches, but provides more time for jobs to execute. Consider the security implications of this tradeoff when setting timeout values.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdatePolicy.Builder,UpdatePolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-