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

alicloud.wafv3.DefenseTemplate

Explore with Pulumi AI

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

    Provides a WAFV3 Defense Template resource.

    For information about WAFV3 Defense Template and how to use it, see What is Defense Template.

    NOTE: Available since v1.218.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.wafv3.getInstances({});
    const defaultDefenseTemplate = new alicloud.wafv3.DefenseTemplate("default", {
        status: "1",
        instanceId: _default.then(_default => _default.ids?.[0]),
        defenseTemplateName: name,
        templateType: "user_custom",
        templateOrigin: "custom",
        defenseScene: "antiscan",
        resourceManagerResourceGroupId: "example",
        description: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.wafv3.get_instances()
    default_defense_template = alicloud.wafv3.DefenseTemplate("default",
        status="1",
        instance_id=default.ids[0],
        defense_template_name=name,
        template_type="user_custom",
        template_origin="custom",
        defense_scene="antiscan",
        resource_manager_resource_group_id="example",
        description=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/wafv3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := wafv3.GetInstances(ctx, &wafv3.GetInstancesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = wafv3.NewDefenseTemplate(ctx, "default", &wafv3.DefenseTemplateArgs{
    			Status:                         pulumi.String("1"),
    			InstanceId:                     pulumi.String(_default.Ids[0]),
    			DefenseTemplateName:            pulumi.String(name),
    			TemplateType:                   pulumi.String("user_custom"),
    			TemplateOrigin:                 pulumi.String("custom"),
    			DefenseScene:                   pulumi.String("antiscan"),
    			ResourceManagerResourceGroupId: pulumi.String("example"),
    			Description:                    pulumi.String(name),
    		})
    		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 config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.Wafv3.GetInstances.Invoke();
    
        var defaultDefenseTemplate = new AliCloud.Wafv3.DefenseTemplate("default", new()
        {
            Status = "1",
            InstanceId = @default.Apply(@default => @default.Apply(getInstancesResult => getInstancesResult.Ids[0])),
            DefenseTemplateName = name,
            TemplateType = "user_custom",
            TemplateOrigin = "custom",
            DefenseScene = "antiscan",
            ResourceManagerResourceGroupId = "example",
            Description = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.wafv3.Wafv3Functions;
    import com.pulumi.alicloud.wafv3.inputs.GetInstancesArgs;
    import com.pulumi.alicloud.wafv3.DefenseTemplate;
    import com.pulumi.alicloud.wafv3.DefenseTemplateArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = Wafv3Functions.getInstances();
    
            var defaultDefenseTemplate = new DefenseTemplate("defaultDefenseTemplate", DefenseTemplateArgs.builder()
                .status("1")
                .instanceId(default_.ids()[0])
                .defenseTemplateName(name)
                .templateType("user_custom")
                .templateOrigin("custom")
                .defenseScene("antiscan")
                .resourceManagerResourceGroupId("example")
                .description(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultDefenseTemplate:
        type: alicloud:wafv3:DefenseTemplate
        name: default
        properties:
          status: '1'
          instanceId: ${default.ids[0]}
          defenseTemplateName: ${name}
          templateType: user_custom
          templateOrigin: custom
          defenseScene: antiscan
          resourceManagerResourceGroupId: example
          description: ${name}
    variables:
      default:
        fn::invoke:
          Function: alicloud:wafv3:getInstances
          Arguments: {}
    

    Create DefenseTemplate Resource

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

    Constructor syntax

    new DefenseTemplate(name: string, args: DefenseTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def DefenseTemplate(resource_name: str,
                        args: DefenseTemplateArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefenseTemplate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        defense_scene: Optional[str] = None,
                        defense_template_name: Optional[str] = None,
                        instance_id: Optional[str] = None,
                        status: Optional[str] = None,
                        template_origin: Optional[str] = None,
                        template_type: Optional[str] = None,
                        description: Optional[str] = None,
                        resource_manager_resource_group_id: Optional[str] = None)
    func NewDefenseTemplate(ctx *Context, name string, args DefenseTemplateArgs, opts ...ResourceOption) (*DefenseTemplate, error)
    public DefenseTemplate(string name, DefenseTemplateArgs args, CustomResourceOptions? opts = null)
    public DefenseTemplate(String name, DefenseTemplateArgs args)
    public DefenseTemplate(String name, DefenseTemplateArgs args, CustomResourceOptions options)
    
    type: alicloud:wafv3:DefenseTemplate
    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 DefenseTemplateArgs
    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 DefenseTemplateArgs
    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 DefenseTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefenseTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefenseTemplateArgs
    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 defenseTemplateResource = new AliCloud.Wafv3.DefenseTemplate("defenseTemplateResource", new()
    {
        DefenseScene = "string",
        DefenseTemplateName = "string",
        InstanceId = "string",
        Status = "string",
        TemplateOrigin = "string",
        TemplateType = "string",
        Description = "string",
        ResourceManagerResourceGroupId = "string",
    });
    
    example, err := wafv3.NewDefenseTemplate(ctx, "defenseTemplateResource", &wafv3.DefenseTemplateArgs{
    	DefenseScene:                   pulumi.String("string"),
    	DefenseTemplateName:            pulumi.String("string"),
    	InstanceId:                     pulumi.String("string"),
    	Status:                         pulumi.String("string"),
    	TemplateOrigin:                 pulumi.String("string"),
    	TemplateType:                   pulumi.String("string"),
    	Description:                    pulumi.String("string"),
    	ResourceManagerResourceGroupId: pulumi.String("string"),
    })
    
    var defenseTemplateResource = new DefenseTemplate("defenseTemplateResource", DefenseTemplateArgs.builder()
        .defenseScene("string")
        .defenseTemplateName("string")
        .instanceId("string")
        .status("string")
        .templateOrigin("string")
        .templateType("string")
        .description("string")
        .resourceManagerResourceGroupId("string")
        .build());
    
    defense_template_resource = alicloud.wafv3.DefenseTemplate("defenseTemplateResource",
        defense_scene="string",
        defense_template_name="string",
        instance_id="string",
        status="string",
        template_origin="string",
        template_type="string",
        description="string",
        resource_manager_resource_group_id="string")
    
    const defenseTemplateResource = new alicloud.wafv3.DefenseTemplate("defenseTemplateResource", {
        defenseScene: "string",
        defenseTemplateName: "string",
        instanceId: "string",
        status: "string",
        templateOrigin: "string",
        templateType: "string",
        description: "string",
        resourceManagerResourceGroupId: "string",
    });
    
    type: alicloud:wafv3:DefenseTemplate
    properties:
        defenseScene: string
        defenseTemplateName: string
        description: string
        instanceId: string
        resourceManagerResourceGroupId: string
        status: string
        templateOrigin: string
        templateType: string
    

    DefenseTemplate 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 DefenseTemplate resource accepts the following input properties:

    DefenseScene string
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    DefenseTemplateName string
    The name of the protection rule template.
    InstanceId string
    The ID of the Web Application Firewall (WAF) instance. .
    Status string
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    TemplateOrigin string
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    TemplateType string
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    Description string
    The description of the protection rule template. .
    ResourceManagerResourceGroupId string
    The ID of the Alibaba Cloud resource group. .
    DefenseScene string
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    DefenseTemplateName string
    The name of the protection rule template.
    InstanceId string
    The ID of the Web Application Firewall (WAF) instance. .
    Status string
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    TemplateOrigin string
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    TemplateType string
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    Description string
    The description of the protection rule template. .
    ResourceManagerResourceGroupId string
    The ID of the Alibaba Cloud resource group. .
    defenseScene String
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defenseTemplateName String
    The name of the protection rule template.
    instanceId String
    The ID of the Web Application Firewall (WAF) instance. .
    status String
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    templateOrigin String
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    templateType String
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    description String
    The description of the protection rule template. .
    resourceManagerResourceGroupId String
    The ID of the Alibaba Cloud resource group. .
    defenseScene string
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defenseTemplateName string
    The name of the protection rule template.
    instanceId string
    The ID of the Web Application Firewall (WAF) instance. .
    status string
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    templateOrigin string
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    templateType string
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    description string
    The description of the protection rule template. .
    resourceManagerResourceGroupId string
    The ID of the Alibaba Cloud resource group. .
    defense_scene str
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defense_template_name str
    The name of the protection rule template.
    instance_id str
    The ID of the Web Application Firewall (WAF) instance. .
    status str
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    template_origin str
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    template_type str
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    description str
    The description of the protection rule template. .
    resource_manager_resource_group_id str
    The ID of the Alibaba Cloud resource group. .
    defenseScene String
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defenseTemplateName String
    The name of the protection rule template.
    instanceId String
    The ID of the Web Application Firewall (WAF) instance. .
    status String
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    templateOrigin String
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    templateType String
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    description String
    The description of the protection rule template. .
    resourceManagerResourceGroupId String
    The ID of the Alibaba Cloud resource group. .

    Outputs

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

    DefenseTemplateId int
    Template ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    DefenseTemplateId int
    Template ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    defenseTemplateId Integer
    Template ID.
    id String
    The provider-assigned unique ID for this managed resource.
    defenseTemplateId number
    Template ID.
    id string
    The provider-assigned unique ID for this managed resource.
    defense_template_id int
    Template ID.
    id str
    The provider-assigned unique ID for this managed resource.
    defenseTemplateId Number
    Template ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DefenseTemplate Resource

    Get an existing DefenseTemplate 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?: DefenseTemplateState, opts?: CustomResourceOptions): DefenseTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            defense_scene: Optional[str] = None,
            defense_template_id: Optional[int] = None,
            defense_template_name: Optional[str] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            resource_manager_resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            template_origin: Optional[str] = None,
            template_type: Optional[str] = None) -> DefenseTemplate
    func GetDefenseTemplate(ctx *Context, name string, id IDInput, state *DefenseTemplateState, opts ...ResourceOption) (*DefenseTemplate, error)
    public static DefenseTemplate Get(string name, Input<string> id, DefenseTemplateState? state, CustomResourceOptions? opts = null)
    public static DefenseTemplate get(String name, Output<String> id, DefenseTemplateState 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:
    DefenseScene string
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    DefenseTemplateId int
    Template ID.
    DefenseTemplateName string
    The name of the protection rule template.
    Description string
    The description of the protection rule template. .
    InstanceId string
    The ID of the Web Application Firewall (WAF) instance. .
    ResourceManagerResourceGroupId string
    The ID of the Alibaba Cloud resource group. .
    Status string
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    TemplateOrigin string
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    TemplateType string
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    DefenseScene string
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    DefenseTemplateId int
    Template ID.
    DefenseTemplateName string
    The name of the protection rule template.
    Description string
    The description of the protection rule template. .
    InstanceId string
    The ID of the Web Application Firewall (WAF) instance. .
    ResourceManagerResourceGroupId string
    The ID of the Alibaba Cloud resource group. .
    Status string
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    TemplateOrigin string
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    TemplateType string
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    defenseScene String
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defenseTemplateId Integer
    Template ID.
    defenseTemplateName String
    The name of the protection rule template.
    description String
    The description of the protection rule template. .
    instanceId String
    The ID of the Web Application Firewall (WAF) instance. .
    resourceManagerResourceGroupId String
    The ID of the Alibaba Cloud resource group. .
    status String
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    templateOrigin String
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    templateType String
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    defenseScene string
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defenseTemplateId number
    Template ID.
    defenseTemplateName string
    The name of the protection rule template.
    description string
    The description of the protection rule template. .
    instanceId string
    The ID of the Web Application Firewall (WAF) instance. .
    resourceManagerResourceGroupId string
    The ID of the Alibaba Cloud resource group. .
    status string
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    templateOrigin string
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    templateType string
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    defense_scene str
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defense_template_id int
    Template ID.
    defense_template_name str
    The name of the protection rule template.
    description str
    The description of the protection rule template. .
    instance_id str
    The ID of the Web Application Firewall (WAF) instance. .
    resource_manager_resource_group_id str
    The ID of the Alibaba Cloud resource group. .
    status str
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    template_origin str
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    template_type str
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.
    defenseScene String
    The module to which the protection rule that you want to create belongs. Value:

    • waf_group: the basic protection rule module.
    • antiscan: the scan protection module.
    • ip_blacklist: the IP address blacklist module.
    • custom_acl: the custom rule module.
    • whitelist: the whitelist module.
    • region_block: the region blacklist module.
    • custom_response: the custom response module.
    • cc: the HTTP flood protection module.
    • tamperproof: the website tamper-proofing module.
    • dlp: the data leakage prevention module.
    defenseTemplateId Number
    Template ID.
    defenseTemplateName String
    The name of the protection rule template.
    description String
    The description of the protection rule template. .
    instanceId String
    The ID of the Web Application Firewall (WAF) instance. .
    resourceManagerResourceGroupId String
    The ID of the Alibaba Cloud resource group. .
    status String
    The status of the protection rule template. Valid values:

    • 0: disabled.
    • 1: enabled.
    templateOrigin String
    The origin of the protection rule template that you want to create. Set the value to custom. The value specifies that the protection rule template is a custom template. .
    templateType String
    The type of the protection rule template. Valid values:

    • user_default: default template.
    • user_custom: custom template.

    Import

    WAFV3 Defense Template can be imported using the id, e.g.

    $ pulumi import alicloud:wafv3/defenseTemplate:DefenseTemplate example <instance_id>:<defense_template_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