1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. WebLockConfig
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.threatdetection.WebLockConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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

    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 string
    Protection mode. Value:-block: Intercept-audit: Alarm
    Dir string
    Specify the protection directory.
    LocalBackupDir string
    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.
    ExclusiveDir 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 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 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 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 string
    Protection mode. Value:-block: Intercept-audit: Alarm
    Dir string
    Specify the protection directory.
    LocalBackupDir string
    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.
    ExclusiveDir 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 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 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 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 String
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir String
    Specify the protection directory.
    localBackupDir String
    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.
    exclusiveDir 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 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 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 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 string
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir string
    Specify the protection directory.
    localBackupDir string
    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.
    exclusiveDir 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 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 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 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 str
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir str
    Specify the protection directory.
    local_backup_dir str
    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_type 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 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 String
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir String
    Specify the protection directory.
    localBackupDir String
    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.
    exclusiveDir 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 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 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 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)
    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.
    The following state arguments are supported:
    DefenceMode string
    Protection mode. Value:-block: Intercept-audit: Alarm
    Dir string
    Specify the protection directory.
    ExclusiveDir 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 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 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 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 string
    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.
    DefenceMode string
    Protection mode. Value:-block: Intercept-audit: Alarm
    Dir string
    Specify the protection directory.
    ExclusiveDir 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 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 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 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 string
    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.
    defenceMode String
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir String
    Specify the protection directory.
    exclusiveDir 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 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 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 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 String
    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.
    defenceMode string
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir string
    Specify the protection directory.
    exclusiveDir 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 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 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 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 string
    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_type 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 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 str
    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.
    defenceMode String
    Protection mode. Value:-block: Intercept-audit: Alarm
    dir String
    Specify the protection directory.
    exclusiveDir 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 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 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 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 String
    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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi