Skip to content
v2.278.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,
};
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
// 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();
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
};
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 ​

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.