WebLockConfigArgs

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());
}
}

Import

Threat Detection Web Lock Config can be imported using the id, e.g.

$ pulumi import alicloud:threatdetection/webLockConfig:WebLockConfig example <id>

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

Link copied to clipboard
open override fun toJava(): WebLockConfigArgs

Properties

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

Protection mode. Value:-block: Intercept-audit: Alarm

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

Specify the protection directory.

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

Specify a directory address that does not require Web tamper protection (I. E. Excluded directories).> The protection Mode Mode is set to blacklist, you need to configure this parameter.

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

Specify files that do not need to enable tamper protection for web pages (that is, exclude files).> The protection Mode Mode is set to blacklist, you need to configure this parameter.

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

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.

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

Specify the type of file that requires tamper protection. 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 whitelist, you need to configure this parameter.

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

The local backup path is used to protect the safe backup of the Directory.

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

Specify the protected directory mode. Value:-whitelist: whitelist mode, which protects the added protected directories and file types.-blacklist: blacklist mode, which protects all unexcluded subdirectories, file types, and specified files under the added protection directory.

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

Specify the UUID of the server to which you want to add a protection directory.> You can call the DescribeCloudCenterInstances interface to obtain the UUID of the server.