Skip to content
v2.275.0

RetentionPeriodProperty Struct ​

Information about the retention period for which the retention rule is to retain resources.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rbin as rbin } from 'aws-cdk-lib';
const retentionPeriodProperty: rbin.CfnRule.RetentionPeriodProperty = {
  retentionPeriodUnit: 'retentionPeriodUnit',
  retentionPeriodValue: 123,
};

Properties ​

retentionPeriodUnitstringretention_period_unitstrretentionPeriodUnitStringRetentionPeriodUnitstringRetentionPeriodUnit*stringrequired#
The unit of time in which the retention period is measured.

Currently, only DAYS is supported.

retentionPeriodValuenumberretention_period_valueint | floatretentionPeriodValueNumberRetentionPeriodValuedoubleRetentionPeriodValue*float64required#
The period value for which the retention rule is to retain resources, measured in days.

The supported retention periods are:

  • EBS volumes: 1 - 7 days
  • EBS snapshots and EBS-backed AMIs: 1 - 365 days