BackupPolicyArgs

data class BackupPolicyArgs(val backupRetentionPolicyOnClusterDeletion: Output<String>? = null, val dbClusterId: Output<String>? = 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
fun BackupPolicyArgs(backupRetentionPolicyOnClusterDeletion: Output<String>? = null, dbClusterId: Output<String>? = null, preferredBackupPeriods: Output<List<String>>? = null, preferredBackupTime: Output<String>? = null)

Functions

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

Properties

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 dbClusterId: Output<String>? = null

The Id of cluster that can run database.

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.