# FastRestoreRuleProperty

*[Custom snapshot policies only]* Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies.

You can enable fast snapshot restore based on either a count or a time interval.

- Source: Generated at build time
- Type last changed: v2.249.0 · 13 Apr 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_dlm as dlm } from 'aws-cdk-lib';
const fastRestoreRuleProperty: dlm.CfnLifecyclePolicy.FastRestoreRuleProperty = {
  availabilityZoneIds: ['availabilityZoneIds'],
  availabilityZones: ['availabilityZones'],
  count: 123,
  interval: 123,
  intervalUnit: 'intervalUnit',
};
```

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_dlm as dlm

fast_restore_rule_property = dlm.CfnLifecyclePolicy.FastRestoreRuleProperty(
    availability_zone_ids=["availabilityZoneIds"],
    availability_zones=["availabilityZones"],
    count=123,
    interval=123,
    interval_unit="intervalUnit"
)
```

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

FastRestoreRuleProperty fastRestoreRuleProperty = FastRestoreRuleProperty.builder()
        .availabilityZoneIds(List.of("availabilityZoneIds"))
        .availabilityZones(List.of("availabilityZones"))
        .count(123)
        .interval(123)
        .intervalUnit("intervalUnit")
        .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.DLM;

var fastRestoreRuleProperty = new FastRestoreRuleProperty {
    AvailabilityZoneIds = new [] { "availabilityZoneIds" },
    AvailabilityZones = new [] { "availabilityZones" },
    Count = 123,
    Interval = 123,
    IntervalUnit = "intervalUnit"
};
```

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"

fastRestoreRuleProperty := &FastRestoreRuleProperty{
	AvailabilityZoneIds: []*string{
		jsii.String("availabilityZoneIds"),
	},
	AvailabilityZones: []*string{
		jsii.String("availabilityZones"),
	},
	Count: jsii.Number(123),
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}
```

## Properties

- `availabilityZoneIds`: string[] — The Availability Zone IDs in which to enable fast snapshot restore.

- `availabilityZones`: string[] — The Availability Zones in which to enable fast snapshot restore.

- `count`: number — The number of snapshots to be enabled with fast snapshot restore.

- `interval`: number — The amount of time to enable fast snapshot restore.

  The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

- `intervalUnit`: string — The unit of time for enabling fast snapshot restore.
