AutoSnapShotPolicyArgs

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

Provides a Dbfs Auto Snap Shot Policy resource. For information about Dbfs Auto Snap Shot Policy and how to use it.

NOTE: Available since v1.202.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.databasefilesystem.AutoSnapShotPolicy;
import com.pulumi.alicloud.databasefilesystem.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 default_ = new AutoSnapShotPolicy("default", AutoSnapShotPolicyArgs.builder()
.policyName("tf-example")
.repeatWeekdays("2")
.retentionDays(1)
.timePoints("01")
.build());
}
}

Import

Dbfs Auto Snap Shot Policy can be imported using the id, e.g.

$ pulumi import alicloud:databasefilesystem/autoSnapShotPolicy:AutoSnapShotPolicy example <id>

Constructors

Link copied to clipboard
fun AutoSnapShotPolicyArgs(policyName: 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 policyName: Output<String>? = null

Automatic snapshot policy name

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

A collection of automatic snapshots performed on several days of the week. Value range: 1~7, for example, 1 means Monday.

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

Automatic snapshot retention days.

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

The set of times at which the snapshot is taken on the day the automatic snapshot is executed. Value range: 00 to 23, representing 24 time points from 00:00 to 23:00, for example, 01 indicates 01:00.