-
Notifications
You must be signed in to change notification settings - Fork 17
/
RetentionDays.go
92 lines (88 loc) · 2.9 KB
/
RetentionDays.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
package awslogs
// How long, in days, the log contents will be retained.
//
// Example:
// import logs "github.com/aws/aws-cdk-go/awscdk"
// var myLogsPublishingRole role
// var vpc vpc
//
//
// // Exporting logs from a cluster
// cluster := rds.NewDatabaseCluster(this, jsii.String("Database"), &DatabaseClusterProps{
// Engine: rds.DatabaseClusterEngine_Aurora(&AuroraClusterEngineProps{
// Version: rds.AuroraEngineVersion_VER_1_17_9(),
// }),
// Writer: rds.ClusterInstance_Provisioned(jsii.String("writer")),
// Vpc: Vpc,
// CloudwatchLogsExports: []*string{
// jsii.String("error"),
// jsii.String("general"),
// jsii.String("slowquery"),
// jsii.String("audit"),
// },
// // Export all available MySQL-based logs
// CloudwatchLogsRetention: logs.RetentionDays_THREE_MONTHS,
// // Optional - default is to never expire logs
// CloudwatchLogsRetentionRole: myLogsPublishingRole,
// })
//
// // Exporting logs from an instance
// instance := rds.NewDatabaseInstance(this, jsii.String("Instance"), &DatabaseInstanceProps{
// Engine: rds.DatabaseInstanceEngine_Postgres(&PostgresInstanceEngineProps{
// Version: rds.PostgresEngineVersion_VER_15_2(),
// }),
// Vpc: Vpc,
// CloudwatchLogsExports: []*string{
// jsii.String("postgresql"),
// },
// })
//
type RetentionDays string
const (
// 1 day.
RetentionDays_ONE_DAY RetentionDays = "ONE_DAY"
// 3 days.
RetentionDays_THREE_DAYS RetentionDays = "THREE_DAYS"
// 5 days.
RetentionDays_FIVE_DAYS RetentionDays = "FIVE_DAYS"
// 1 week.
RetentionDays_ONE_WEEK RetentionDays = "ONE_WEEK"
// 2 weeks.
RetentionDays_TWO_WEEKS RetentionDays = "TWO_WEEKS"
// 1 month.
RetentionDays_ONE_MONTH RetentionDays = "ONE_MONTH"
// 2 months.
RetentionDays_TWO_MONTHS RetentionDays = "TWO_MONTHS"
// 3 months.
RetentionDays_THREE_MONTHS RetentionDays = "THREE_MONTHS"
// 4 months.
RetentionDays_FOUR_MONTHS RetentionDays = "FOUR_MONTHS"
// 5 months.
RetentionDays_FIVE_MONTHS RetentionDays = "FIVE_MONTHS"
// 6 months.
RetentionDays_SIX_MONTHS RetentionDays = "SIX_MONTHS"
// 1 year.
RetentionDays_ONE_YEAR RetentionDays = "ONE_YEAR"
// 13 months.
RetentionDays_THIRTEEN_MONTHS RetentionDays = "THIRTEEN_MONTHS"
// 18 months.
RetentionDays_EIGHTEEN_MONTHS RetentionDays = "EIGHTEEN_MONTHS"
// 2 years.
RetentionDays_TWO_YEARS RetentionDays = "TWO_YEARS"
// 3 years.
RetentionDays_THREE_YEARS RetentionDays = "THREE_YEARS"
// 5 years.
RetentionDays_FIVE_YEARS RetentionDays = "FIVE_YEARS"
// 6 years.
RetentionDays_SIX_YEARS RetentionDays = "SIX_YEARS"
// 7 years.
RetentionDays_SEVEN_YEARS RetentionDays = "SEVEN_YEARS"
// 8 years.
RetentionDays_EIGHT_YEARS RetentionDays = "EIGHT_YEARS"
// 9 years.
RetentionDays_NINE_YEARS RetentionDays = "NINE_YEARS"
// 10 years.
RetentionDays_TEN_YEARS RetentionDays = "TEN_YEARS"
// Retain logs forever.
RetentionDays_INFINITE RetentionDays = "INFINITE"
)