-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnLifecyclePolicy_FastRestoreRuleProperty.go
44 lines (41 loc) · 2.22 KB
/
CfnLifecyclePolicy_FastRestoreRuleProperty.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
34
35
36
37
38
39
40
41
42
43
package awsdlm
// *[Custom snapshot policies only]* Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies.
//
// You can enable fast snapshot restore based on either a count or a time interval.
//
// 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"
//
// fastRestoreRuleProperty := &FastRestoreRuleProperty{
// AvailabilityZones: []*string{
// jsii.String("availabilityZones"),
// },
// Count: jsii.Number(123),
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html
//
type CfnLifecyclePolicy_FastRestoreRuleProperty struct {
// The Availability Zones in which to enable fast snapshot restore.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-availabilityzones
//
AvailabilityZones *[]*string `field:"optional" json:"availabilityZones" yaml:"availabilityZones"`
// The number of snapshots to be enabled with fast snapshot restore.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-count
//
Count *float64 `field:"optional" json:"count" yaml:"count"`
// The amount of time to enable fast snapshot restore.
//
// 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-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-interval
//
Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
// The unit of time for enabling fast snapshot restore.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-intervalunit
//
IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
}