Skip to content
v2.278.0

ArchiveRetainRuleProperty Struct ​

[Custom snapshot policies only] Specifies information about the archive storage tier retention period.

Example ​

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 archiveRetainRuleProperty: dlm.CfnLifecyclePolicy.ArchiveRetainRuleProperty = {
  retentionArchiveTier: {
    count: 123,
    interval: 123,
    intervalUnit: 'intervalUnit',
  },
};
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

archive_retain_rule_property = dlm.CfnLifecyclePolicy.ArchiveRetainRuleProperty(
    retention_archive_tier=dlm.CfnLifecyclePolicy.RetentionArchiveTierProperty(
        count=123,
        interval=123,
        interval_unit="intervalUnit"
    )
)
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.*;

ArchiveRetainRuleProperty archiveRetainRuleProperty = ArchiveRetainRuleProperty.builder()
        .retentionArchiveTier(RetentionArchiveTierProperty.builder()
                .count(123)
                .interval(123)
                .intervalUnit("intervalUnit")
                .build())
        .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.DLM;

var archiveRetainRuleProperty = new ArchiveRetainRuleProperty {
    RetentionArchiveTier = new RetentionArchiveTierProperty {
        Count = 123,
        Interval = 123,
        IntervalUnit = "intervalUnit"
    }
};
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"

archiveRetainRuleProperty := &ArchiveRetainRuleProperty{
	RetentionArchiveTier: &RetentionArchiveTierProperty{
		Count: jsii.Number(123),
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
}

Properties ​

retentionArchiveTierIResolvable | CfnLifecyclePolicy.RetentionArchiveTierPropertyretention_archive_tiertyping.Union[IResolvable, RetentionArchiveTierProperty]retentionArchiveTierIResolvableRetentionArchiveTierIResolvableRetentionArchiveTierinterface{} required #
Information about retention period in the Amazon EBS Snapshots Archive.

For more information, see Archive Amazon EBS snapshots .