Class BackupPolicyState
Inherited Members
Namespace: Pulumi.AliCloud.Rds
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class BackupPolicyState : ResourceArgs
Constructors
View SourceBackupPolicyState()
Declaration
public BackupPolicyState()
Properties
View SourceArchiveBackupKeepCount
Instance archive backup keep count. Valid when the enable_backup_log is true and instance is mysql local disk. When archive_backup_keep_policy is ByMonth Valid values: [1-31]. When archive_backup_keep_policy is ByWeek Valid values: [1-7].
Declaration
public Input<int> ArchiveBackupKeepCount { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ArchiveBackupKeepPolicy
Instance archive backup keep policy. Valid when the enable_backup_log is true and instance is mysql local disk. Valid values are ByMonth, Disable, KeepAll.
Declaration
public Input<string> ArchiveBackupKeepPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ArchiveBackupRetentionPeriod
Instance archive backup retention days. Valid when the enable_backup_log is true and instance is mysql local disk. Valid values: [30-1095], and archive_backup_retention_period must larger than backup_retention_period 730.
Declaration
public Input<int> ArchiveBackupRetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
BackupPeriods
It has been deprecated from version 1.69.0, and use field 'preferred_backup_period' instead.
Declaration
[Obsolete("Attribute 'backup_period' has been deprecated from version 1.69.0. Use `preferred_backup_period` instead")]
public InputList<string> BackupPeriods { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
BackupRetentionPeriod
Instance backup retention days. Valid values: [7-730]. Default to 7. But mysql local disk is unlimited.
Declaration
public Input<int> BackupRetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
BackupTime
It has been deprecated from version 1.69.0, and use field 'preferred_backup_time' instead.
Declaration
public Input<string> BackupTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CompressType
The compress type of instance policy. Valid values are 1, 4, 8.
Declaration
public Input<string> CompressType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
EnableBackupLog
Whether to backup instance log. Valid values are true, false, Default to true. Note: The 'Basic Edition' category Rds instance does not support setting log backup. What is Basic Edition.
Declaration
public Input<bool> EnableBackupLog { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
HighSpaceUsageProtection
Instance high space usage protection policy. Valid when the enable_backup_log is true. Valid values are Enable, Disable.
Declaration
public Input<string> HighSpaceUsageProtection { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceId
The Id of instance that can run database.
Declaration
public Input<string> InstanceId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LocalLogRetentionHours
Instance log backup local retention hours. Valid when the enable_backup_log is true. Valid values: [0-7*24].
Declaration
public Input<int> LocalLogRetentionHours { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
LocalLogRetentionSpace
Instance log backup local retention space. Valid when the enable_backup_log is true. Valid values: [5-50].
Declaration
public Input<int> LocalLogRetentionSpace { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
LogBackup
It has been deprecated from version 1.68.0, and use field 'enable_backup_log' instead.
Declaration
public Input<bool> LogBackup { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
LogBackupFrequency
Instance log backup frequency. Valid when the instance engine is SQLServer. Valid values are LogInterval.
Declaration
public Input<string> LogBackupFrequency { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LogBackupRetentionPeriod
Instance log backup retention days. Valid when the enable_backup_log is 1. Valid values: [7-730]. Default to 7. It cannot be larger than backup_retention_period.
Declaration
public Input<int> LogBackupRetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
LogRetentionPeriod
It has been deprecated from version 1.69.0, and use field 'log_backup_retention_period' instead.
Declaration
public Input<int> LogRetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
PreferredBackupPeriods
DB Instance backup period. Please set at least two days to ensure backing up at least twice a week. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]. Default to ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
Declaration
public InputList<string> PreferredBackupPeriods { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
PreferredBackupTime
DB instance backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to "02:00Z-03:00Z". China time is 8 hours behind it.
Declaration
public Input<string> PreferredBackupTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RetentionPeriod
It has been deprecated from version 1.69.0, and use field 'backup_retention_period' instead.
Declaration
public Input<int> RetentionPeriod { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |