Web Lock Config Args
data class WebLockConfigArgs(val defenceMode: Output<String>? = null, val dir: Output<String>? = null, val exclusiveDir: Output<String>? = null, val exclusiveFile: Output<String>? = null, val exclusiveFileType: Output<String>? = null, val inclusiveFileType: Output<String>? = null, val localBackupDir: Output<String>? = null, val mode: Output<String>? = null, val uuid: Output<String>? = null) : ConvertibleToJava<WebLockConfigArgs>
Provides a Threat Detection Web Lock Config resource. For information about Threat Detection Web Lock Config and how to use it, see What is Web Lock Config.
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.WebLockConfig;
import com.pulumi.alicloud.threatdetection.WebLockConfigArgs;
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 defaultWebLockConfig = new WebLockConfig("defaultWebLockConfig", WebLockConfigArgs.builder()
.inclusiveFileType("php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg")
.uuid(defaultAssets.applyValue(getAssetsResult -> getAssetsResult.ids()[0]))
.mode("whitelist")
.localBackupDir("/usr/local/aegis/bak")
.dir("/tmp/")
.defenceMode("audit")
.build());
}
}
Content copied to clipboard
Import
Threat Detection Web Lock Config can be imported using the id, e.g.
$ pulumi import alicloud:threatdetection/webLockConfig:WebLockConfig example <id>
Content copied to clipboard
Constructors
Link copied to clipboard
fun WebLockConfigArgs(defenceMode: Output<String>? = null, dir: Output<String>? = null, exclusiveDir: Output<String>? = null, exclusiveFile: Output<String>? = null, exclusiveFileType: Output<String>? = null, inclusiveFileType: Output<String>? = null, localBackupDir: Output<String>? = null, mode: Output<String>? = null, uuid: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Specify the type of file that does not require Web tamper protection (that is, the type of excluded file). When there are multiple file types, use semicolons (;) separation. Value:-php-jsp-asp-aspx-js-cgi-html-htm-xml-shtml-shtm-jpg-gif-png The protection Mode Mode is set to blacklist, you need to configure this parameter.