AutoSnapshotPolicy

class AutoSnapshotPolicy : KotlinCustomResource

Provides a ECS Auto Snapshot Policy resource. For information about ECS Auto Snapshot Policy and how to use it, see What is Auto Snapshot Policy.

NOTE: Available in v1.117.0+.

Example Usage

Basic Usage No Java example available.

Import

ECS Auto Snapshot Policy can be imported using the id, e.g.

$ pulumi import alicloud:ecs/autoSnapshotPolicy:AutoSnapshotPolicy example <id>

Properties

Link copied to clipboard

The retention period of the snapshot copied across regions.

Link copied to clipboard

Specifies whether to enable the system to automatically copy snapshots across regions.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The snapshot policy name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val repeatWeekdays: Output<List<String>>

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>

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

Link copied to clipboard
val status: Output<String>

The status of Auto Snapshot Policy.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard

The destination region to which the snapshot is copied. You can set a destination region.

Link copied to clipboard
val timePoints: Output<List<String>>

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.

Link copied to clipboard
val urn: Output<String>