Skip to content
v2.275.0

ResourceRetentionPolicyProperty Struct ​

Specifies the resource retention policy settings for a job definition.

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 resourceRetentionPolicyProperty: batch.CfnJobDefinition.ResourceRetentionPolicyProperty = {
  skipDeregisterOnUpdate: false,
};

Properties ​

skipDeregisterOnUpdateoptionalboolean | IResolvableskip_deregister_on_updateoptionaltyping.Union[bool, IResolvable]skipDeregisterOnUpdateoptionalBooleanSkipDeregisterOnUpdateoptionalboolSkipDeregisterOnUpdateoptionalinterface{}= false#
Specifies whether the previous revision of the job definition is retained in an active status after UPDATE events for the resource.
notes

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.