-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnLifecyclePolicy_CrossRegionCopyRetainRuleProperty.go
34 lines (31 loc) · 1.67 KB
/
CfnLifecyclePolicy_CrossRegionCopyRetainRuleProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package awsdlm
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// crossRegionCopyRetainRuleProperty := &CrossRegionCopyRetainRuleProperty{
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html
//
type CfnLifecyclePolicy_CrossRegionCopyRetainRuleProperty struct {
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval
//
Interval *float64 `field:"required" json:"interval" yaml:"interval"`
// 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` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit
//
IntervalUnit *string `field:"required" json:"intervalUnit" yaml:"intervalUnit"`
}