# PITPolicyRuleProperty

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_drs as drs } from 'aws-cdk-lib';
const pITPolicyRuleProperty: drs.CfnReplicationConfigurationTemplate.PITPolicyRuleProperty = {
  interval: 123,
  retentionDuration: 123,
  units: 'units',

  // the properties below are optional
  enabled: false,
  ruleId: 123,
};
```

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_drs as drs

p_it_policy_rule_property = drs.CfnReplicationConfigurationTemplate.PITPolicyRuleProperty(
    interval=123,
    retention_duration=123,
    units="units",

    # the properties below are optional
    enabled=False,
    rule_id=123
)
```

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

PITPolicyRuleProperty pITPolicyRuleProperty = PITPolicyRuleProperty.builder()
        .interval(123)
        .retentionDuration(123)
        .units("units")

        // the properties below are optional
        .enabled(false)
        .ruleId(123)
        .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.DRS;

var pITPolicyRuleProperty = new PITPolicyRuleProperty {
    Interval = 123,
    RetentionDuration = 123,
    Units = "units",

    // the properties below are optional
    Enabled = false,
    RuleId = 123
};
```

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"

pITPolicyRuleProperty := &PITPolicyRuleProperty{
	Interval: jsii.Number(123),
	RetentionDuration: jsii.Number(123),
	Units: jsii.String("units"),

	// the properties below are optional
	Enabled: jsii.Boolean(false),
	RuleId: jsii.Number(123),
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether this rule is enabled or not.

- `interval`: number (required) — How often, in the chosen units, a snapshot should be taken.

- `retentionDuration`: number (required) — The duration to retain a snapshot for, in the chosen units.

- `ruleId`: number — The ID of the rule.

- `units`: string (required) — The units used to measure the interval and retentionDuration.
