-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnLifecyclePolicy_CreateRuleProperty.go
78 lines (75 loc) · 4.71 KB
/
CfnLifecyclePolicy_CreateRuleProperty.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
package awsdlm
// *[Custom snapshot and AMI policies only]* Specifies when the policy should create snapshots or AMIs.
//
// > - You must specify either *CronExpression* , or *Interval* , *IntervalUnit* , and *Times* .
// > - If you need to specify an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) for the schedule, then you must specify a creation frequency of at least 28 days.
//
// 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"
//
// createRuleProperty := &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"),
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html
//
type CfnLifecyclePolicy_CreateRuleProperty struct {
// The schedule, as a Cron expression.
//
// The schedule interval must be between 1 hour and 1 year. For more information, see the [Cron expressions reference](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html) in the *Amazon EventBridge User Guide* .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-cronexpression
//
CronExpression *string `field:"optional" json:"cronExpression" yaml:"cronExpression"`
// The interval between snapshots.
//
// The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-interval
//
Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
// The interval unit.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-intervalunit
//
IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
// *[Custom snapshot policies only]* Specifies the destination for snapshots created by the policy.
//
// To create snapshots in the same Region as the source resource, specify `CLOUD` . To create snapshots on the same Outpost as the source resource, specify `OUTPOST_LOCAL` . If you omit this parameter, `CLOUD` is used by default.
//
// If the policy targets resources in an AWS Region , then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-location
//
Location *string `field:"optional" json:"location" yaml:"location"`
// *[Custom snapshot policies that target instances only]* Specifies pre and/or post scripts for a snapshot lifecycle policy that targets instances.
//
// This is useful for creating application-consistent snapshots, or for performing specific administrative tasks before or after Amazon Data Lifecycle Manager initiates snapshot creation.
//
// For more information, see [Automating application-consistent snapshots with pre and post scripts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/automate-app-consistent-backups.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-scripts
//
Scripts interface{} `field:"optional" json:"scripts" yaml:"scripts"`
// The time, in UTC, to start the operation. The supported format is hh:mm.
//
// The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-times
//
Times *[]*string `field:"optional" json:"times" yaml:"times"`
}