BackupArgs

data class BackupArgs(val backupId: Output<String>? = null, val backupPlanId: Output<String>? = null, val deleteLockDays: Output<Int>? = null, val description: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val retainDays: Output<Int>? = null) : ConvertibleToJava<BackupArgs>

Creates a Backup for the given BackupPlan. Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun BackupArgs(backupId: Output<String>? = null, backupPlanId: Output<String>? = null, deleteLockDays: Output<Int>? = null, description: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, project: Output<String>? = null, retainDays: Output<Int>? = null)

Functions

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

Properties

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

The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan

Link copied to clipboard
val backupPlanId: Output<String>? = null
Link copied to clipboard
val deleteLockDays: Output<Int>? = null

Minimum age for this Backup (in days). If this field is set to a non-zero value, the Backup will be "locked" against deletion (either manual or automatic deletion) for the number of days provided (measured from the creation time of the Backup). MUST be an integer value between 0-90 (inclusive). Defaults to parent BackupPlan's backup_delete_lock_days setting and may only be increased (either at creation time or in a subsequent update).

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

User specified descriptive string for this Backup.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

A set of custom labels supplied by user.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val retainDays: Output<Int>? = null

The age (in days) after which this Backup will be automatically deleted. Must be an integer value >= 0: - If 0, no automatic deletion will occur for this Backup. - If not 0, this must be >= delete_lock_days and <= 365. Once a Backup is created, this value may only be increased. Defaults to the parent BackupPlan's backup_retain_days value.