SnapshotPolicyArgs

data class SnapshotPolicyArgs(val copiedSnapshotsRetentionDays: Output<Int>? = null, val enableCrossRegionCopy: Output<Boolean>? = null, val name: Output<String>? = null, val repeatWeekdays: Output<List<String>>? = null, val retentionDays: Output<Int>? = null, val tags: Output<Map<String, Any>>? = null, val targetCopyRegions: Output<List<String>>? = null, val timePoints: Output<List<String>>? = null) : ConvertibleToJava<SnapshotPolicyArgs>

DEPRECATED: This resource has been renamed to alicloud.ecs.AutoSnapshotPolicy from version 1.117.0. Provides an ECS snapshot policy resource. For information about snapshot policy and how to use it, see Snapshot. NOTE: Available in 1.42.0+.

Example Usage

No Java example available.

Import

Snapshot can be imported using the id, e.g.

$ pulumi import alicloud:ecs/snapshotPolicy:SnapshotPolicy snapshot sp-abc1234567890000

Constructors

Link copied to clipboard
fun SnapshotPolicyArgs(copiedSnapshotsRetentionDays: Output<Int>? = null, enableCrossRegionCopy: Output<Boolean>? = null, name: Output<String>? = null, repeatWeekdays: Output<List<String>>? = null, retentionDays: Output<Int>? = null, tags: Output<Map<String, Any>>? = null, targetCopyRegions: Output<List<String>>? = null, timePoints: Output<List<String>>? = null)

Functions

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

Properties

Link copied to clipboard
val copiedSnapshotsRetentionDays: Output<Int>? = null
Link copied to clipboard
val enableCrossRegionCopy: Output<Boolean>? = null
Link copied to clipboard
val name: Output<String>? = null

The snapshot policy name.

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

The automatic snapshot repetition dates. The unit of measurement is day and the repeating cycle is a week. Value range: 1, 7, which represents days starting from Monday to Sunday, for example 1 indicates Monday. When you want to schedule multiple automatic snapshot tasks for a disk in a week, you can set the RepeatWeekdays to an array.

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

The snapshot retention time, and the unit of measurement is day. Optional values:

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null
Link copied to clipboard
val targetCopyRegions: Output<List<String>>? = null
Link copied to clipboard
val timePoints: Output<List<String>>? = null

The automatic snapshot creation schedule, and the unit of measurement is hour. Value range: 0, 23, which represents from 00:00 to 24:00, for example 1 indicates 01:00. When you want to schedule multiple automatic snapshot tasks for a disk in a day, you can set the TimePoints to an array.