1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. threatdetection
  5. WebLockConfig
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

alicloud.threatdetection.WebLockConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 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

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultAssets = AliCloud.ThreatDetection.GetAssets.Invoke(new()
        {
            MachineTypes = "ecs",
        });
    
        var defaultWebLockConfig = new AliCloud.ThreatDetection.WebLockConfig("defaultWebLockConfig", new()
        {
            InclusiveFileType = "php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg",
            Uuid = defaultAssets.Apply(getAssetsResult => getAssetsResult.Ids[0]),
            Mode = "whitelist",
            LocalBackupDir = "/usr/local/aegis/bak",
            Dir = "/tmp/",
            DefenceMode = "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 {
    		defaultAssets, err := threatdetection.GetAssets(ctx, &threatdetection.GetAssetsArgs{
    			MachineTypes: pulumi.StringRef("ecs"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = threatdetection.NewWebLockConfig(ctx, "defaultWebLockConfig", &threatdetection.WebLockConfigArgs{
    			InclusiveFileType: pulumi.String("php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg"),
    			Uuid:              *pulumi.String(defaultAssets.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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.threatdetection.ThreatdetectionFunctions;
    import com.pulumi.alicloud.threatdetection.inputs.GetAssetsArgs;
    import com.pulumi.alicloud.threatdetection.WebLockConfig;
    import com.pulumi.alicloud.threatdetection.WebLockConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var defaultAssets = ThreatdetectionFunctions.getAssets(GetAssetsArgs.builder()
                .machineTypes("ecs")
                .build());
    
            var defaultWebLockConfig = new WebLockConfig("defaultWebLockConfig", WebLockConfigArgs.builder()        
                .inclusiveFileType("php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg")
                .uuid(defaultAssets.applyValue(getAssetsResult -> getAssetsResult.ids()[0]))
                .mode("whitelist")
                .localBackupDir("/usr/local/aegis/bak")
                .dir("/tmp/")
                .defenceMode("audit")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_assets = alicloud.threatdetection.get_assets(machine_types="ecs")
    default_web_lock_config = alicloud.threatdetection.WebLockConfig("defaultWebLockConfig",
        inclusive_file_type="php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg",
        uuid=default_assets.ids[0],
        mode="whitelist",
        local_backup_dir="/usr/local/aegis/bak",
        dir="/tmp/",
        defence_mode="audit")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaultAssets = alicloud.threatdetection.getAssets({
        machineTypes: "ecs",
    });
    const defaultWebLockConfig = new alicloud.threatdetection.WebLockConfig("defaultWebLockConfig", {
        inclusiveFileType: "php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg",
        uuid: defaultAssets.then(defaultAssets => defaultAssets.ids?.[0]),
        mode: "whitelist",
        localBackupDir: "/usr/local/aegis/bak",
        dir: "/tmp/",
        defenceMode: "audit",
    });
    
    resources:
      defaultWebLockConfig:
        type: alicloud:threatdetection:WebLockConfig
        properties:
          inclusiveFileType: php;jsp;asp;aspx;js;cgi;html;htm;xml;shtml;shtm;jpg
          uuid: ${defaultAssets.ids[0]}
          mode: whitelist
          localBackupDir: /usr/local/aegis/bak
          dir: /tmp/
          defenceMode: audit
    variables:
      defaultAssets:
        fn::invoke:
          Function: alicloud:threatdetection:getAssets
          Arguments:
            machineTypes: ecs
    

    Create WebLockConfig Resource

    new WebLockConfig(name: string, args: WebLockConfigArgs, opts?: CustomResourceOptions);
    @overload
    def WebLockConfig(resource_name: 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)
    @overload
    def WebLockConfig(resource_name: str,
                      args: WebLockConfigArgs,
                      opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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:

    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>
    

    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.38.0 published on Friday, Jun 2, 2023 by Pulumi