Auto Snapshot Policy Args
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());
}
}
Content copied to clipboard
Import
Network Attached Storage (NAS) Auto Snapshot Policy can be imported using the id, e.g.
$ pulumi import alicloud:nas/autoSnapshotPolicy:AutoSnapshotPolicy example <id>
Content copied to clipboard