aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty

interface CrossRegionCopyRetainRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.DLM.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdlm#CfnLifecyclePolicy_CrossRegionCopyRetainRuleProperty
Javasoftware.amazon.awscdk.services.dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
Pythonaws_cdk.aws_dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty
TypeScript aws-cdk-lib » aws_dlm » CfnLifecyclePolicy » CrossRegionCopyRetainRuleProperty

Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies.

After the retention period expires, the cross-Region copy is deleted.

Example

// 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 crossRegionCopyRetainRuleProperty: dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty = {
  interval: 123,
  intervalUnit: 'intervalUnit',
};

Properties

NameTypeDescription
intervalnumberThe amount of time to retain a cross-Region snapshot or AMI copy.
intervalUnitstringThe unit of time for time-based retention.

interval

Type: number

The amount of time to retain a cross-Region snapshot or AMI copy.

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


intervalUnit

Type: string

The unit of time for time-based retention.

For example, to retain a cross-Region copy for 3 months, specify Interval=3 and IntervalUnit=MONTHS .