ArchiveRuleProperty Struct
[Custom snapshot policies only] Specifies a snapshot archiving rule for a schedule.
| Source | |
|---|---|
| Type last changed |
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 archiveRuleProperty: dlm.CfnLifecyclePolicy.ArchiveRuleProperty = {
retainRule: {
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_rule_property = dlm.CfnLifecyclePolicy.ArchiveRuleProperty(
retain_rule=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.*;
ArchiveRuleProperty archiveRuleProperty = ArchiveRuleProperty.builder()
.retainRule(ArchiveRetainRuleProperty.builder()
.retentionArchiveTier(RetentionArchiveTierProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.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 archiveRuleProperty = new ArchiveRuleProperty {
RetainRule = 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"
archiveRuleProperty := &ArchiveRuleProperty{
RetainRule: &ArchiveRetainRuleProperty{
RetentionArchiveTier: &RetentionArchiveTierProperty{
Count: jsii.Number(123),
Interval: jsii.Number(123),
IntervalUnit: jsii.String("intervalUnit"),
},
},
}
Properties
retainRuleIResolvable | CfnLifecyclePolicy.retain_ruletyping.Union[IResolvable, ArchiveRetainRuleProperty]retainRuleIResolvableRetainRuleIResolvableRetainRuleinterface{} required #Information about the retention period for the snapshot archiving rule.