AutoSnapshotPolicy

class AutoSnapshotPolicy : KotlinCustomResource

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>

Properties

Link copied to clipboard

The name of the automatic snapshot policy. Limits:

Link copied to clipboard
val id: Output<String>
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 day on which an auto snapshot is created.

Link copied to clipboard
val retentionDays: Output<Int>

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

Link copied to clipboard
val status: Output<String>

The status of the automatic snapshot policy.

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

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

Link copied to clipboard
val urn: Output<String>