-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnLifecyclePolicy_ScheduleProperty.go
162 lines (159 loc) · 7.89 KB
/
CfnLifecyclePolicy_ScheduleProperty.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package awsdlm
// *[Custom snapshot and AMI policies only]* Specifies a schedule for a snapshot or AMI lifecycle 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"
//
// scheduleProperty := &ScheduleProperty{
// ArchiveRule: &ArchiveRuleProperty{
// RetainRule: &ArchiveRetainRuleProperty{
// RetentionArchiveTier: &RetentionArchiveTierProperty{
// Count: jsii.Number(123),
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// },
// },
// },
// CopyTags: jsii.Boolean(false),
// CreateRule: &CreateRuleProperty{
// CronExpression: jsii.String("cronExpression"),
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// Location: jsii.String("location"),
// Scripts: []interface{}{
// &ScriptProperty{
// ExecuteOperationOnScriptFailure: jsii.Boolean(false),
// ExecutionHandler: jsii.String("executionHandler"),
// ExecutionHandlerService: jsii.String("executionHandlerService"),
// ExecutionTimeout: jsii.Number(123),
// MaximumRetryCount: jsii.Number(123),
// Stages: []*string{
// jsii.String("stages"),
// },
// },
// },
// Times: []*string{
// jsii.String("times"),
// },
// },
// CrossRegionCopyRules: []interface{}{
// &CrossRegionCopyRuleProperty{
// Encrypted: jsii.Boolean(false),
//
// // the properties below are optional
// CmkArn: jsii.String("cmkArn"),
// CopyTags: jsii.Boolean(false),
// DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// },
// RetainRule: &CrossRegionCopyRetainRuleProperty{
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// },
// Target: jsii.String("target"),
// TargetRegion: jsii.String("targetRegion"),
// },
// },
// DeprecateRule: &DeprecateRuleProperty{
// Count: jsii.Number(123),
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// },
// FastRestoreRule: &FastRestoreRuleProperty{
// AvailabilityZones: []*string{
// jsii.String("availabilityZones"),
// },
// Count: jsii.Number(123),
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// },
// Name: jsii.String("name"),
// RetainRule: &RetainRuleProperty{
// Count: jsii.Number(123),
// Interval: jsii.Number(123),
// IntervalUnit: jsii.String("intervalUnit"),
// },
// ShareRules: []interface{}{
// &ShareRuleProperty{
// TargetAccounts: []*string{
// jsii.String("targetAccounts"),
// },
// UnshareInterval: jsii.Number(123),
// UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
// },
// },
// TagsToAdd: []interface{}{
// &CfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// VariableTags: []interface{}{
// &CfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html
//
type CfnLifecyclePolicy_ScheduleProperty struct {
// *[Custom snapshot policies that target volumes only]* The snapshot archiving rule for the schedule.
//
// When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify.
//
// For more information about using snapshot archiving, see [Considerations for snapshot lifecycle policies](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-archiverule
//
ArchiveRule interface{} `field:"optional" json:"archiveRule" yaml:"archiveRule"`
// Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-copytags
//
CopyTags interface{} `field:"optional" json:"copyTags" yaml:"copyTags"`
// The creation rule.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-createrule
//
CreateRule interface{} `field:"optional" json:"createRule" yaml:"createRule"`
// Specifies a rule for copying snapshots or AMIs across regions.
//
// > You can't specify cross-Region copy rules for policies that create snapshots on an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-crossregioncopyrules
//
CrossRegionCopyRules interface{} `field:"optional" json:"crossRegionCopyRules" yaml:"crossRegionCopyRules"`
// *[Custom AMI policies only]* The AMI deprecation rule for the schedule.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-deprecaterule
//
DeprecateRule interface{} `field:"optional" json:"deprecateRule" yaml:"deprecateRule"`
// *[Custom snapshot policies only]* The rule for enabling fast snapshot restore.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-fastrestorerule
//
FastRestoreRule interface{} `field:"optional" json:"fastRestoreRule" yaml:"fastRestoreRule"`
// The name of the schedule.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-name
//
Name *string `field:"optional" json:"name" yaml:"name"`
// The retention rule for snapshots or AMIs created by the policy.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-retainrule
//
RetainRule interface{} `field:"optional" json:"retainRule" yaml:"retainRule"`
// *[Custom snapshot policies only]* The rule for sharing snapshots with other AWS accounts .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-sharerules
//
ShareRules interface{} `field:"optional" json:"shareRules" yaml:"shareRules"`
// The tags to apply to policy-created resources.
//
// These user-defined tags are in addition to the AWS -added lifecycle tags.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-tagstoadd
//
TagsToAdd interface{} `field:"optional" json:"tagsToAdd" yaml:"tagsToAdd"`
// *[AMI policies and snapshot policies that target instances only]* A collection of key/value pairs with values determined dynamically when the policy is executed.
//
// Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: `$(instance-id)` or `$(timestamp)` . Variable tags are only valid for EBS Snapshot Management – Instance policies.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-variabletags
//
VariableTags interface{} `field:"optional" json:"variableTags" yaml:"variableTags"`
}