Backup Policy Args
data class BackupPolicyArgs(val backupPolicyName: Output<String>? = null, val policy: Output<String>? = null, val policyRegionId: Output<String>? = null, val policyVersion: Output<String>? = null, val uuidLists: Output<List<String>>? = null) : ConvertibleToJava<BackupPolicyArgs>
Provides a Threat Detection Backup Policy resource. For information about Threat Detection Backup Policy and how to use it, see What is Backup Policy.
NOTE: Available in v1.195.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.threatdetection.ThreatdetectionFunctions;
import com.pulumi.alicloud.threatdetection.inputs.GetAssetsArgs;
import com.pulumi.alicloud.threatdetection.BackupPolicy;
import com.pulumi.alicloud.threatdetection.BackupPolicyArgs;
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) {
final var defaultAssets = ThreatdetectionFunctions.getAssets(GetAssetsArgs.builder()
.machineTypes("ecs")
.build());
var defaultBackupPolicy = new BackupPolicy("defaultBackupPolicy", BackupPolicyArgs.builder()
.backupPolicyName("tf-example-name")
.policy("{\"Exclude\":[\"/bin/\",\"/usr/bin/\",\"/sbin/\",\"/boot/\",\"/proc/\",\"/sys/\",\"/srv/\",\"/lib/\",\"/selinux/\",\"/usr/sbin/\",\"/run/\",\"/lib32/\",\"/lib64/\",\"/lost+found/\",\"/var/lib/kubelet/\",\"/var/lib/ntp/proc\",\"/var/lib/container\"],\"ExcludeSystemPath\":true,\"Include\":[],\"IsDefault\":1,\"Retention\":7,\"Schedule\":\"I|1668703620|PT24H\",\"Source\":[],\"SpeedLimiter\":\"\",\"UseVss\":true}")
.policyVersion("2.0.0")
.uuidLists(defaultAssets.applyValue(getAssetsResult -> getAssetsResult.ids()[0]))
.build());
}
}
Content copied to clipboard
Import
Threat Detection Backup Policy can be imported using the id, e.g.
$ pulumi import alicloud:threatdetection/backupPolicy:BackupPolicy example <id>
Content copied to clipboard
Constructors
Functions
Properties
Link copied to clipboard
Link copied to clipboard
The Specified Protection Policies of the Specific Configuration. see how to use it.
Link copied to clipboard
The region ID of the non-Alibaba cloud server. You can call the DescribeSupportRegion interface to view the region supported by anti-ransomware, and then select the region supported by anti-ransomware according to the region where your non-Alibaba cloud server is located.
Link copied to clipboard