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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args WebLockConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args WebLockConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebLockConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
type: alicloud:threatdetection:WebLockConfig
properties:
defenceMode: string
dir: string
exclusiveDir: string
exclusiveFile: string
exclusiveFileType: string
inclusiveFileType: string
localBackupDir: string
mode: string
uuid: string
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
The WebLockConfig resource accepts the following input properties:
- Defence
Mode string - Protection mode. Value:-block: Intercept-audit: Alarm
- Dir string
- Specify the protection directory.
- Local
Backup stringDir - The local backup path is used to protect the safe backup of the Directory.
- Mode 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 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.
- Exclusive
Dir 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.
- Exclusive
File 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.
- Exclusive
File stringType - 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 stringType - 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 string - Protection mode. Value:-block: Intercept-audit: Alarm
- Dir string
- Specify the protection directory.
- Local
Backup stringDir - The local backup path is used to protect the safe backup of the Directory.
- Mode 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 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.
- Exclusive
Dir 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.
- Exclusive
File 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.
- Exclusive
File stringType - 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 stringType - 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 String - Protection mode. Value:-block: Intercept-audit: Alarm
- dir String
- Specify the protection directory.
- local
Backup StringDir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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.
- exclusive
Dir 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.
- exclusive
File 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.
- exclusive
File StringType - 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 StringType - 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 string - Protection mode. Value:-block: Intercept-audit: Alarm
- dir string
- Specify the protection directory.
- local
Backup stringDir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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.
- exclusive
Dir 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.
- exclusive
File 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.
- exclusive
File stringType - 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 stringType - 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 str - Protection mode. Value:-block: Intercept-audit: Alarm
- dir str
- Specify the protection directory.
- local_
backup_ strdir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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 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 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_ strtype - 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_ strtype - 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 String - Protection mode. Value:-block: Intercept-audit: Alarm
- dir String
- Specify the protection directory.
- local
Backup StringDir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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.
- exclusive
Dir 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.
- exclusive
File 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.
- exclusive
File StringType - 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 StringType - 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Defence
Mode string - Protection mode. Value:-block: Intercept-audit: Alarm
- Dir string
- Specify the protection directory.
- Exclusive
Dir 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.
- Exclusive
File 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.
- Exclusive
File stringType - 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 stringType - 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 stringDir - The local backup path is used to protect the safe backup of the Directory.
- Mode 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 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 string - Protection mode. Value:-block: Intercept-audit: Alarm
- Dir string
- Specify the protection directory.
- Exclusive
Dir 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.
- Exclusive
File 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.
- Exclusive
File stringType - 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 stringType - 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 stringDir - The local backup path is used to protect the safe backup of the Directory.
- Mode 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 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 String - Protection mode. Value:-block: Intercept-audit: Alarm
- dir String
- Specify the protection directory.
- exclusive
Dir 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.
- exclusive
File 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.
- exclusive
File StringType - 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 StringType - 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 StringDir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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 string - Protection mode. Value:-block: Intercept-audit: Alarm
- dir string
- Specify the protection directory.
- exclusive
Dir 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.
- exclusive
File 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.
- exclusive
File stringType - 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 stringType - 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 stringDir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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 str - Protection mode. Value:-block: Intercept-audit: Alarm
- dir str
- Specify the protection directory.
- exclusive_
dir 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 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_ strtype - 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_ strtype - 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_ strdir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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.
- defence
Mode String - Protection mode. Value:-block: Intercept-audit: Alarm
- dir String
- Specify the protection directory.
- exclusive
Dir 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.
- exclusive
File 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.
- exclusive
File StringType - 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 StringType - 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 StringDir - The local backup path is used to protect the safe backup of the Directory.
- mode 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 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>
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.