# ResourceRetentionPolicyProperty

Specifies the resource retention policy settings for a job definition.

- Source: Generated at build time
- Type last changed: v2.223.0 · 10 Nov 2025

## 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 resourceRetentionPolicyProperty: batch.CfnJobDefinition.ResourceRetentionPolicyProperty = {
  skipDeregisterOnUpdate: 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

resource_retention_policy_property = batch.CfnJobDefinition.ResourceRetentionPolicyProperty(
    skip_deregister_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.*;

ResourceRetentionPolicyProperty resourceRetentionPolicyProperty = ResourceRetentionPolicyProperty.builder()
        .skipDeregisterOnUpdate(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 resourceRetentionPolicyProperty = new ResourceRetentionPolicyProperty {
    SkipDeregisterOnUpdate = 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"

resourceRetentionPolicyProperty := &ResourceRetentionPolicyProperty{
	SkipDeregisterOnUpdate: jsii.Boolean(false),
}
```

## Properties

- `skipDeregisterOnUpdate`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) = false — Specifies whether the previous revision of the job definition is retained in an active status after UPDATE events for the resource.

  The default value is `false` . When the property is set to `false` , the previous revision of the job definition is de-registered after a new revision is created. When the property is set to `true` , the previous revision of the job definition is not de-registered.
