1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. WebLockConfig
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.threatdetection.WebLockConfig

Explore with Pulumi AI

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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.threatdetection.getAssets({
    machineTypes: "ecs",
});
const defaultWebLockConfig = new alicloud.threatdetection.WebLockConfig("default", {
    inclusiveFileType: "php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg",
    uuid: _default.then(_default => _default.ids?.[0]),
    mode: "whitelist",
    localBackupDir: "/usr/local/aegis/bak",
    dir: "/tmp/",
    defenceMode: "audit",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.threatdetection.get_assets(machine_types="ecs")
default_web_lock_config = alicloud.threatdetection.WebLockConfig("default",
    inclusive_file_type="php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg",
    uuid=default.ids[0],
    mode="whitelist",
    local_backup_dir="/usr/local/aegis/bak",
    dir="/tmp/",
    defence_mode="audit")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := threatdetection.GetAssets(ctx, &threatdetection.GetAssetsArgs{
			MachineTypes: pulumi.StringRef("ecs"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = threatdetection.NewWebLockConfig(ctx, "default", &threatdetection.WebLockConfigArgs{
			InclusiveFileType: pulumi.String("php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg"),
			Uuid:              pulumi.String(_default.Ids[0]),
			Mode:              pulumi.String("whitelist"),
			LocalBackupDir:    pulumi.String("/usr/local/aegis/bak"),
			Dir:               pulumi.String("/tmp/"),
			DefenceMode:       pulumi.String("audit"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.ThreatDetection.GetAssets.Invoke(new()
    {
        MachineTypes = "ecs",
    });

    var defaultWebLockConfig = new AliCloud.ThreatDetection.WebLockConfig("default", new()
    {
        InclusiveFileType = "php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg",
        Uuid = @default.Apply(@default => @default.Apply(getAssetsResult => getAssetsResult.Ids[0])),
        Mode = "whitelist",
        LocalBackupDir = "/usr/local/aegis/bak",
        Dir = "/tmp/",
        DefenceMode = "audit",
    });

});
Copy
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 default = 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(default_.ids()[0])
            .mode("whitelist")
            .localBackupDir("/usr/local/aegis/bak")
            .dir("/tmp/")
            .defenceMode("audit")
            .build());

    }
}
Copy
resources:
  defaultWebLockConfig:
    type: alicloud:threatdetection:WebLockConfig
    name: default
    properties:
      inclusiveFileType: php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg
      uuid: ${default.ids[0]}
      mode: whitelist
      localBackupDir: /usr/local/aegis/bak
      dir: /tmp/
      defenceMode: audit
variables:
  default:
    fn::invoke:
      function: alicloud:threatdetection:getAssets
      arguments:
        machineTypes: ecs
Copy

Create WebLockConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WebLockConfig(name: string, args: WebLockConfigArgs, opts?: CustomResourceOptions);
@overload
def WebLockConfig(resource_name: str,
                  args: WebLockConfigArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def WebLockConfig(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  defence_mode: Optional[str] = None,
                  dir: Optional[str] = None,
                  local_backup_dir: Optional[str] = None,
                  mode: Optional[str] = None,
                  uuid: Optional[str] = None,
                  exclusive_dir: Optional[str] = None,
                  exclusive_file: Optional[str] = None,
                  exclusive_file_type: Optional[str] = None,
                  inclusive_file_type: Optional[str] = None)
func NewWebLockConfig(ctx *Context, name string, args WebLockConfigArgs, opts ...ResourceOption) (*WebLockConfig, error)
public WebLockConfig(string name, WebLockConfigArgs args, CustomResourceOptions? opts = null)
public WebLockConfig(String name, WebLockConfigArgs args)
public WebLockConfig(String name, WebLockConfigArgs args, CustomResourceOptions options)
type: alicloud:threatdetection:WebLockConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WebLockConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WebLockConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WebLockConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WebLockConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WebLockConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var webLockConfigResource = new AliCloud.ThreatDetection.WebLockConfig("webLockConfigResource", new()
{
    DefenceMode = "string",
    Dir = "string",
    LocalBackupDir = "string",
    Mode = "string",
    Uuid = "string",
    ExclusiveDir = "string",
    ExclusiveFile = "string",
    ExclusiveFileType = "string",
    InclusiveFileType = "string",
});
Copy
example, err := threatdetection.NewWebLockConfig(ctx, "webLockConfigResource", &threatdetection.WebLockConfigArgs{
	DefenceMode:       pulumi.String("string"),
	Dir:               pulumi.String("string"),
	LocalBackupDir:    pulumi.String("string"),
	Mode:              pulumi.String("string"),
	Uuid:              pulumi.String("string"),
	ExclusiveDir:      pulumi.String("string"),
	ExclusiveFile:     pulumi.String("string"),
	ExclusiveFileType: pulumi.String("string"),
	InclusiveFileType: pulumi.String("string"),
})
Copy
var webLockConfigResource = new WebLockConfig("webLockConfigResource", WebLockConfigArgs.builder()
    .defenceMode("string")
    .dir("string")
    .localBackupDir("string")
    .mode("string")
    .uuid("string")
    .exclusiveDir("string")
    .exclusiveFile("string")
    .exclusiveFileType("string")
    .inclusiveFileType("string")
    .build());
Copy
web_lock_config_resource = alicloud.threatdetection.WebLockConfig("webLockConfigResource",
    defence_mode="string",
    dir="string",
    local_backup_dir="string",
    mode="string",
    uuid="string",
    exclusive_dir="string",
    exclusive_file="string",
    exclusive_file_type="string",
    inclusive_file_type="string")
Copy
const webLockConfigResource = new alicloud.threatdetection.WebLockConfig("webLockConfigResource", {
    defenceMode: "string",
    dir: "string",
    localBackupDir: "string",
    mode: "string",
    uuid: "string",
    exclusiveDir: "string",
    exclusiveFile: "string",
    exclusiveFileType: "string",
    inclusiveFileType: "string",
});
Copy
type: alicloud:threatdetection:WebLockConfig
properties:
    defenceMode: string
    dir: string
    exclusiveDir: string
    exclusiveFile: string
    exclusiveFileType: string
    inclusiveFileType: string
    localBackupDir: string
    mode: string
    uuid: string
Copy

WebLockConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The WebLockConfig resource accepts the following input properties:

DefenceMode
This property is required.
Changes to this property will trigger replacement.
string
Protection mode. Value:-block: Intercept-audit: Alarm
Dir
This property is required.
Changes to this property will trigger replacement.
string
Specify the protection directory.
LocalBackupDir
This property is required.
Changes to this property will trigger replacement.
string
The local backup path is used to protect the safe backup of the Directory.
Mode
This property is required.
Changes to this property will trigger replacement.
string
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.
Uuid
This property is required.
Changes to this property will trigger replacement.
string
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.
ExclusiveDir Changes to this property will trigger replacement. string
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.
ExclusiveFile Changes to this property will trigger replacement. string
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.
ExclusiveFileType Changes to this property will trigger replacement. string
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.
InclusiveFileType Changes to this property will trigger replacement. string
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.
DefenceMode
This property is required.
Changes to this property will trigger replacement.
string
Protection mode. Value:-block: Intercept-audit: Alarm
Dir
This property is required.
Changes to this property will trigger replacement.
string
Specify the protection directory.
LocalBackupDir
This property is required.
Changes to this property will trigger replacement.
string
The local backup path is used to protect the safe backup of the Directory.
Mode
This property is required.
Changes to this property will trigger replacement.
string
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.
Uuid
This property is required.
Changes to this property will trigger replacement.
string
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.
ExclusiveDir Changes to this property will trigger replacement. string
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.
ExclusiveFile Changes to this property will trigger replacement. string
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.
ExclusiveFileType Changes to this property will trigger replacement. string
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.
InclusiveFileType Changes to this property will trigger replacement. string
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.
defenceMode
This property is required.
Changes to this property will trigger replacement.
String
Protection mode. Value:-block: Intercept-audit: Alarm
dir
This property is required.
Changes to this property will trigger replacement.
String
Specify the protection directory.
localBackupDir
This property is required.
Changes to this property will trigger replacement.
String
The local backup path is used to protect the safe backup of the Directory.
mode
This property is required.
Changes to this property will trigger replacement.
String
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.
uuid
This property is required.
Changes to this property will trigger replacement.
String
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.
exclusiveDir Changes to this property will trigger replacement. String
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.
exclusiveFile Changes to this property will trigger replacement. String
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.
exclusiveFileType Changes to this property will trigger replacement. String
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.
inclusiveFileType Changes to this property will trigger replacement. String
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.
defenceMode
This property is required.
Changes to this property will trigger replacement.
string
Protection mode. Value:-block: Intercept-audit: Alarm
dir
This property is required.
Changes to this property will trigger replacement.
string
Specify the protection directory.
localBackupDir
This property is required.
Changes to this property will trigger replacement.
string
The local backup path is used to protect the safe backup of the Directory.
mode
This property is required.
Changes to this property will trigger replacement.
string
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.
uuid
This property is required.
Changes to this property will trigger replacement.
string
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.
exclusiveDir Changes to this property will trigger replacement. string
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.
exclusiveFile Changes to this property will trigger replacement. string
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.
exclusiveFileType Changes to this property will trigger replacement. string
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.
inclusiveFileType Changes to this property will trigger replacement. string
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.
defence_mode
This property is required.
Changes to this property will trigger replacement.
str
Protection mode. Value:-block: Intercept-audit: Alarm
dir
This property is required.
Changes to this property will trigger replacement.
str
Specify the protection directory.
local_backup_dir
This property is required.
Changes to this property will trigger replacement.
str
The local backup path is used to protect the safe backup of the Directory.
mode
This property is required.
Changes to this property will trigger replacement.
str
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.
uuid
This property is required.
Changes to this property will trigger replacement.
str
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.
exclusive_dir Changes to this property will trigger replacement. str
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.
exclusive_file Changes to this property will trigger replacement. str
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.
exclusive_file_type Changes to this property will trigger replacement. str
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.
inclusive_file_type Changes to this property will trigger replacement. str
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.
defenceMode
This property is required.
Changes to this property will trigger replacement.
String
Protection mode. Value:-block: Intercept-audit: Alarm
dir
This property is required.
Changes to this property will trigger replacement.
String
Specify the protection directory.
localBackupDir
This property is required.
Changes to this property will trigger replacement.
String
The local backup path is used to protect the safe backup of the Directory.
mode
This property is required.
Changes to this property will trigger replacement.
String
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.
uuid
This property is required.
Changes to this property will trigger replacement.
String
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.
exclusiveDir Changes to this property will trigger replacement. String
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.
exclusiveFile Changes to this property will trigger replacement. String
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.
exclusiveFileType Changes to this property will trigger replacement. String
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.
inclusiveFileType Changes to this property will trigger replacement. String
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.

Outputs

All input properties are implicitly available as output properties. Additionally, the WebLockConfig resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing WebLockConfig Resource

Get an existing WebLockConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: WebLockConfigState, opts?: CustomResourceOptions): WebLockConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        defence_mode: Optional[str] = None,
        dir: Optional[str] = None,
        exclusive_dir: Optional[str] = None,
        exclusive_file: Optional[str] = None,
        exclusive_file_type: Optional[str] = None,
        inclusive_file_type: Optional[str] = None,
        local_backup_dir: Optional[str] = None,
        mode: Optional[str] = None,
        uuid: Optional[str] = None) -> WebLockConfig
func GetWebLockConfig(ctx *Context, name string, id IDInput, state *WebLockConfigState, opts ...ResourceOption) (*WebLockConfig, error)
public static WebLockConfig Get(string name, Input<string> id, WebLockConfigState? state, CustomResourceOptions? opts = null)
public static WebLockConfig get(String name, Output<String> id, WebLockConfigState state, CustomResourceOptions options)
resources:  _:    type: alicloud:threatdetection:WebLockConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DefenceMode Changes to this property will trigger replacement. string
Protection mode. Value:-block: Intercept-audit: Alarm
Dir Changes to this property will trigger replacement. string
Specify the protection directory.
ExclusiveDir Changes to this property will trigger replacement. string
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.
ExclusiveFile Changes to this property will trigger replacement. string
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.
ExclusiveFileType Changes to this property will trigger replacement. string
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.
InclusiveFileType Changes to this property will trigger replacement. string
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.
LocalBackupDir Changes to this property will trigger replacement. string
The local backup path is used to protect the safe backup of the Directory.
Mode Changes to this property will trigger replacement. string
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.
Uuid Changes to this property will trigger replacement. string
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.
DefenceMode Changes to this property will trigger replacement. string
Protection mode. Value:-block: Intercept-audit: Alarm
Dir Changes to this property will trigger replacement. string
Specify the protection directory.
ExclusiveDir Changes to this property will trigger replacement. string
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.
ExclusiveFile Changes to this property will trigger replacement. string
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.
ExclusiveFileType Changes to this property will trigger replacement. string
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.
InclusiveFileType Changes to this property will trigger replacement. string
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.
LocalBackupDir Changes to this property will trigger replacement. string
The local backup path is used to protect the safe backup of the Directory.
Mode Changes to this property will trigger replacement. string
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.
Uuid Changes to this property will trigger replacement. string
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.
defenceMode Changes to this property will trigger replacement. String
Protection mode. Value:-block: Intercept-audit: Alarm
dir Changes to this property will trigger replacement. String
Specify the protection directory.
exclusiveDir Changes to this property will trigger replacement. String
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.
exclusiveFile Changes to this property will trigger replacement. String
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.
exclusiveFileType Changes to this property will trigger replacement. String
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.
inclusiveFileType Changes to this property will trigger replacement. String
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.
localBackupDir Changes to this property will trigger replacement. String
The local backup path is used to protect the safe backup of the Directory.
mode Changes to this property will trigger replacement. String
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.
uuid Changes to this property will trigger replacement. String
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.
defenceMode Changes to this property will trigger replacement. string
Protection mode. Value:-block: Intercept-audit: Alarm
dir Changes to this property will trigger replacement. string
Specify the protection directory.
exclusiveDir Changes to this property will trigger replacement. string
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.
exclusiveFile Changes to this property will trigger replacement. string
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.
exclusiveFileType Changes to this property will trigger replacement. string
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.
inclusiveFileType Changes to this property will trigger replacement. string
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.
localBackupDir Changes to this property will trigger replacement. string
The local backup path is used to protect the safe backup of the Directory.
mode Changes to this property will trigger replacement. string
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.
uuid Changes to this property will trigger replacement. string
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.
defence_mode Changes to this property will trigger replacement. str
Protection mode. Value:-block: Intercept-audit: Alarm
dir Changes to this property will trigger replacement. str
Specify the protection directory.
exclusive_dir Changes to this property will trigger replacement. str
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.
exclusive_file Changes to this property will trigger replacement. str
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.
exclusive_file_type Changes to this property will trigger replacement. str
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.
inclusive_file_type Changes to this property will trigger replacement. str
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.
local_backup_dir Changes to this property will trigger replacement. str
The local backup path is used to protect the safe backup of the Directory.
mode Changes to this property will trigger replacement. str
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.
uuid Changes to this property will trigger replacement. str
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.
defenceMode Changes to this property will trigger replacement. String
Protection mode. Value:-block: Intercept-audit: Alarm
dir Changes to this property will trigger replacement. String
Specify the protection directory.
exclusiveDir Changes to this property will trigger replacement. String
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.
exclusiveFile Changes to this property will trigger replacement. String
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.
exclusiveFileType Changes to this property will trigger replacement. String
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.
inclusiveFileType Changes to this property will trigger replacement. String
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.
localBackupDir Changes to this property will trigger replacement. String
The local backup path is used to protect the safe backup of the Directory.
mode Changes to this property will trigger replacement. String
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.
uuid Changes to this property will trigger replacement. String
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.

Import

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

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

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.