AutoSnapshotPolicyArgs

data class AutoSnapshotPolicyArgs(val autoSnapshotPolicyName: Output<String>? = null, val repeatWeekdays: Output<List<String>>? = null, val retentionDays: Output<Int>? = null, val timePoints: Output<List<String>>? = null) : ConvertibleToJava<AutoSnapshotPolicyArgs>

Provides a Network Attached Storage (NAS) Auto Snapshot Policy resource. For information about Network Attached Storage (NAS) Auto Snapshot Policy and how to use it, see What is Auto Snapshot Policy.

NOTE: Available in v1.153.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.AutoSnapshotPolicy;
import com.pulumi.alicloud.nas.AutoSnapshotPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AutoSnapshotPolicy("example", AutoSnapshotPolicyArgs.builder()
.autoSnapshotPolicyName("example_value")
.repeatWeekdays(
"3",
"4",
"5")
.retentionDays(30)
.timePoints(
"3",
"4",
"5")
.build());
}
}

Import

Network Attached Storage (NAS) Auto Snapshot Policy can be imported using the id, e.g.

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

Constructors

Link copied to clipboard
fun AutoSnapshotPolicyArgs(autoSnapshotPolicyName: Output<String>? = null, repeatWeekdays: Output<List<String>>? = null, retentionDays: Output<Int>? = null, timePoints: Output<List<String>>? = null)

Functions

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

Properties

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

The name of the automatic snapshot policy. Limits:

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

The day on which an auto snapshot is created.

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

The number of days for which you want to retain auto snapshots. Unit: days. Valid values:

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

The point in time at which an auto snapshot is created.