# LifecycleResourceTypeProperty

Specifies an object containing an array of `Transition` objects that determine how long in days before a recovery point transitions to cold storage or is deleted.

- Source: Generated at build time
- Type last changed: v2.124.0 · 26 Jan 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const lifecycleResourceTypeProperty: backup.CfnBackupPlan.LifecycleResourceTypeProperty = {
  deleteAfterDays: 123,
  moveToColdStorageAfterDays: 123,
  optInToArchiveForSupportedResources: 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_backup as backup

lifecycle_resource_type_property = backup.CfnBackupPlan.LifecycleResourceTypeProperty(
    delete_after_days=123,
    move_to_cold_storage_after_days=123,
    opt_in_to_archive_for_supported_resources=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.backup.*;

LifecycleResourceTypeProperty lifecycleResourceTypeProperty = LifecycleResourceTypeProperty.builder()
        .deleteAfterDays(123)
        .moveToColdStorageAfterDays(123)
        .optInToArchiveForSupportedResources(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.Backup;

var lifecycleResourceTypeProperty = new LifecycleResourceTypeProperty {
    DeleteAfterDays = 123,
    MoveToColdStorageAfterDays = 123,
    OptInToArchiveForSupportedResources = 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"

lifecycleResourceTypeProperty := &LifecycleResourceTypeProperty{
	DeleteAfterDays: jsii.Number(123),
	MoveToColdStorageAfterDays: jsii.Number(123),
	OptInToArchiveForSupportedResources: jsii.Boolean(false),
}
```

## Properties

- `deleteAfterDays`: number — The number of days after creation that a recovery point is deleted.

  This value must be at least 90 days after the number of days specified in `MoveToColdStorageAfterDays` .

- `moveToColdStorageAfterDays`: number — The number of days after creation that a recovery point is moved to cold storage.

- `optInToArchiveForSupportedResources`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
