# UpdatePolicyProperty

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* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_batch as batch

update_policy_property = batch.CfnComputeEnvironment.UpdatePolicyProperty(
    job_execution_timeout_minutes=123,
    terminate_jobs_on_update=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.batch.*;

UpdatePolicyProperty updatePolicyProperty = UpdatePolicyProperty.builder()
        .jobExecutionTimeoutMinutes(123)
        .terminateJobsOnUpdate(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;

var updatePolicyProperty = new UpdatePolicyProperty {
    JobExecutionTimeoutMinutes = 123,
    TerminateJobsOnUpdate = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

updatePolicyProperty := &UpdatePolicyProperty{
	JobExecutionTimeoutMinutes: jsii.Number(123),
	TerminateJobsOnUpdate: jsii.Boolean(false),
}
```

## Properties

- `jobExecutionTimeoutMinutes`: number = 30 — Specifies the job timeout (in minutes) when the compute environment infrastructure is updated.

  The default value is 30.

- `terminateJobsOnUpdate`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Specifies whether jobs are automatically terminated when the compute environment infrastructure is updated.

  The default value is `false` .
