BackupPolicyArgs

data class BackupPolicyArgs(val backupFrequency: Output<String>? = null, val backupRetentionPeriod: Output<String>? = null, val backupRetentionPolicyOnClusterDeletion: Output<String>? = null, val dataLevel1BackupFrequency: Output<String>? = null, val dataLevel1BackupPeriods: Output<List<String>>? = null, val dataLevel1BackupRetentionPeriod: Output<Int>? = null, val dataLevel1BackupTime: Output<String>? = null, val dataLevel2BackupAnotherRegionRegion: Output<String>? = null, val dataLevel2BackupAnotherRegionRetentionPeriod: Output<Int>? = null, val dataLevel2BackupPeriods: Output<List<String>>? = null, val dataLevel2BackupRetentionPeriod: Output<Int>? = null, val dbClusterId: Output<String>? = null, val logBackupAnotherRegionRegion: Output<String>? = null, val logBackupAnotherRegionRetentionPeriod: Output<Int>? = null, val logBackupRetentionPeriod: Output<Int>? = null, val preferredBackupPeriods: Output<List<String>>? = null, val preferredBackupTime: Output<String>? = null) : ConvertibleToJava<BackupPolicyArgs>

Import

PolarDB backup policy can be imported using the id or cluster id, e.g.

$ pulumi import alicloud:polardb/backupPolicy:BackupPolicy example "rm-12345678"

Constructors

Link copied to clipboard
constructor(backupFrequency: Output<String>? = null, backupRetentionPeriod: Output<String>? = null, backupRetentionPolicyOnClusterDeletion: Output<String>? = null, dataLevel1BackupFrequency: Output<String>? = null, dataLevel1BackupPeriods: Output<List<String>>? = null, dataLevel1BackupRetentionPeriod: Output<Int>? = null, dataLevel1BackupTime: Output<String>? = null, dataLevel2BackupAnotherRegionRegion: Output<String>? = null, dataLevel2BackupAnotherRegionRetentionPeriod: Output<Int>? = null, dataLevel2BackupPeriods: Output<List<String>>? = null, dataLevel2BackupRetentionPeriod: Output<Int>? = null, dbClusterId: Output<String>? = null, logBackupAnotherRegionRegion: Output<String>? = null, logBackupAnotherRegionRetentionPeriod: Output<Int>? = null, logBackupRetentionPeriod: Output<Int>? = null, preferredBackupPeriods: Output<List<String>>? = null, preferredBackupTime: Output<String>? = null)

Properties

Link copied to clipboard
val backupFrequency: Output<String>? = null

The backup frequency. Valid values are Normal, 2/24H, 3/24H, 4/24H.Default to Normal.

Link copied to clipboard
val backupRetentionPeriod: Output<String>? = null

Cluster backup retention days, Fixed for 7 days, not modified.

Link copied to clipboard

Specifies whether to retain backups when you delete a cluster. Valid values are ALL, LATEST, NONE. Default to NONE. Value options can refer to the latest docs ModifyBackupPolicy

Link copied to clipboard
val dataLevel1BackupFrequency: Output<String>? = null

The Id of cluster that can run database.The backup frequency. Valid values are Normal, 2/24H, 3/24H, 4/24H.Default to Normal.

Link copied to clipboard
val dataLevel1BackupPeriods: Output<List<String>>? = null

PolarDB Cluster of level-1 backup period. Valid values: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday".

Link copied to clipboard

The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.

Link copied to clipboard
val dataLevel1BackupTime: Output<String>? = null

The time period during which automatic backup is performed. The format is HH: MMZ HH: MMZ (UTC time), and the entered value must be an hour apart, such as 14:00z-15:00z.

Link copied to clipboard

PolarDB Cluster of level-2 backup is a cross regional backup area.

PolarDB Cluster of level-2 backup cross region backup retention period. Valid values are 0, 30 to 7300, -1. Default to 0.

Link copied to clipboard
val dataLevel2BackupPeriods: Output<List<String>>? = null

PolarDB Cluster of level-2 backup period. Valid values: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday".

Link copied to clipboard

The retention period of level-2 backups. Valid values are 0, 30 to 7300, -1. Default to 0.

Link copied to clipboard
val dbClusterId: Output<String>? = null

The Id of cluster that can run database.

Link copied to clipboard

The region in which you want to store cross-region log backups. For information about regions that support the cross-region backup feature, see Overview.

Link copied to clipboard

The retention period of cross-region log backups. Default value: OFF. Valid values are 0, 30 to 7300, -1.

Link copied to clipboard
val logBackupRetentionPeriod: Output<Int>? = null

The retention period of the log backups. Valid values are 3 to 7300, -1.

Link copied to clipboard
val preferredBackupPeriods: Output<List<String>>? = null

PolarDB Cluster backup period. Valid values: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday". Default to "Tuesday", "Thursday", "Saturday".

Link copied to clipboard
val preferredBackupTime: Output<String>? = null

PolarDB Cluster 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.

Functions

Link copied to clipboard
open override fun toJava(): BackupPolicyArgs