Skip to content
v2.273.0

UpdatePolicyProperty Struct ​

Specifies the infrastructure update policy for the Amazon EC2 compute environment.

For more information about infrastructure updates, see Updating compute environments in the AWS Batch User Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const updatePolicyProperty: batch.CfnComputeEnvironment.UpdatePolicyProperty = {
  jobExecutionTimeoutMinutes: 123,
  terminateJobsOnUpdate: false,
};

Properties ​

jobExecutionTimeoutMinutesnumberjob_execution_timeout_minutesint | floatjobExecutionTimeoutMinutesNumberJobExecutionTimeoutMinutesdoubleJobExecutionTimeoutMinutes*float64= 30#
Specifies the job timeout (in minutes) when the compute environment infrastructure is updated.

The default value is 30.

terminateJobsOnUpdateboolean | IResolvableterminate_jobs_on_updatetyping.Union[bool, IResolvable]terminateJobsOnUpdateBooleanTerminateJobsOnUpdateboolTerminateJobsOnUpdateinterface{}= false#
Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated.

The default value is false .