interface RetentionPeriodProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Rbin.CfnRulePropsMixin.RetentionPeriodProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsrbin#CfnRulePropsMixin_RetentionPeriodProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.rbin.CfnRulePropsMixin.RetentionPeriodProperty |
Python | aws_cdk.cfn_property_mixins.aws_rbin.CfnRulePropsMixin.RetentionPeriodProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_rbin » CfnRulePropsMixin » RetentionPeriodProperty |
Information about the retention period for which the retention rule is to retain resources.
Example
// 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/cfn-property-mixins';
const retentionPeriodProperty: rbin.CfnRulePropsMixin.RetentionPeriodProperty = {
retentionPeriodUnit: 'retentionPeriodUnit',
retentionPeriodValue: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| retention | string | The unit of time in which the retention period is measured. |
| retention | number | The period value for which the retention rule is to retain resources, measured in days. |
retentionPeriodUnit?
Type:
string
(optional)
The unit of time in which the retention period is measured.
Currently, only DAYS is supported.
retentionPeriodValue?
Type:
number
(optional)
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

.NET
Go
Java
Python
TypeScript