Skip to content
v2.278.0

LifecycleResourceTypeProperty Struct ​

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.

Example ​

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
# 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
// 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();
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
};
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 ​

deleteAfterDaysoptionalnumberdelete_after_daysoptionalint | floatdeleteAfterDaysoptionalNumberDeleteAfterDaysoptionaldoubleDeleteAfterDaysoptional*float64 #
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 .

moveToColdStorageAfterDaysoptionalnumbermove_to_cold_storage_after_daysoptionalint | floatmoveToColdStorageAfterDaysoptionalNumberMoveToColdStorageAfterDaysoptionaldoubleMoveToColdStorageAfterDaysoptional*float64 #
The number of days after creation that a recovery point is moved to cold storage.
optInToArchiveForSupportedResourcesoptionalboolean | IResolvableopt_in_to_archive_for_supported_resourcesoptionaltyping.Union[bool, IResolvable]optInToArchiveForSupportedResourcesoptionalBooleanOptInToArchiveForSupportedResourcesoptionalboolOptInToArchiveForSupportedResourcesoptionalinterface{} #
If the value is true, your backup plan transitions supported resources to archive (cold) storage tier in accordance with your lifecycle settings.