-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnLifecyclePolicy_CrossRegionCopyDeprecateRuleProperty.go
32 lines (29 loc) · 1.69 KB
/
CfnLifecyclePolicy_CrossRegionCopyDeprecateRuleProperty.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
package awsdlm
// *[Custom AMI policies only]* Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
//
// 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"
//
// crossRegionCopyDeprecateRuleProperty := &CrossRegionCopyDeprecateRuleProperty{
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopydeprecaterule.html
//
type CfnLifecyclePolicy_CrossRegionCopyDeprecateRuleProperty struct {
// The period after which to deprecate the cross-Region AMI copies.
//
// The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopydeprecaterule.html#cfn-dlm-lifecyclepolicy-crossregioncopydeprecaterule-interval
//
Interval *float64 `field:"required" json:"interval" yaml:"interval"`
// The unit of time in which to measure the *Interval* .
//
// For example, to deprecate a cross-Region AMI copy after 3 months, specify `Interval=3` and `IntervalUnit=MONTHS` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopydeprecaterule.html#cfn-dlm-lifecyclepolicy-crossregioncopydeprecaterule-intervalunit
//
IntervalUnit *string `field:"required" json:"intervalUnit" yaml:"intervalUnit"`
}