1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafModuleStatus
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.WafModuleStatus

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a waf module_status

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafModuleStatus("example", {
        accessControl: 0,
        antiLeakage: 0,
        antiTamper: 1,
        apiProtection: 1,
        ccProtection: 1,
        domain: "demo.waf.com",
        webSecurity: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafModuleStatus("example",
        access_control=0,
        anti_leakage=0,
        anti_tamper=1,
        api_protection=1,
        cc_protection=1,
        domain="demo.waf.com",
        web_security=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewWafModuleStatus(ctx, "example", &tencentcloud.WafModuleStatusArgs{
    			AccessControl: pulumi.Float64(0),
    			AntiLeakage:   pulumi.Float64(0),
    			AntiTamper:    pulumi.Float64(1),
    			ApiProtection: pulumi.Float64(1),
    			CcProtection:  pulumi.Float64(1),
    			Domain:        pulumi.String("demo.waf.com"),
    			WebSecurity:   pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafModuleStatus("example", new()
        {
            AccessControl = 0,
            AntiLeakage = 0,
            AntiTamper = 1,
            ApiProtection = 1,
            CcProtection = 1,
            Domain = "demo.waf.com",
            WebSecurity = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafModuleStatus;
    import com.pulumi.tencentcloud.WafModuleStatusArgs;
    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) {
            var example = new WafModuleStatus("example", WafModuleStatusArgs.builder()
                .accessControl(0)
                .antiLeakage(0)
                .antiTamper(1)
                .apiProtection(1)
                .ccProtection(1)
                .domain("demo.waf.com")
                .webSecurity(1)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafModuleStatus
        properties:
          accessControl: 0
          antiLeakage: 0
          antiTamper: 1
          apiProtection: 1
          ccProtection: 1
          domain: demo.waf.com
          webSecurity: 1
    

    Create WafModuleStatus Resource

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

    Constructor syntax

    new WafModuleStatus(name: string, args: WafModuleStatusArgs, opts?: CustomResourceOptions);
    @overload
    def WafModuleStatus(resource_name: str,
                        args: WafModuleStatusArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafModuleStatus(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        access_control: Optional[float] = None,
                        api_protection: Optional[float] = None,
                        cc_protection: Optional[float] = None,
                        domain: Optional[str] = None,
                        web_security: Optional[float] = None,
                        anti_leakage: Optional[float] = None,
                        anti_tamper: Optional[float] = None,
                        waf_module_status_id: Optional[str] = None)
    func NewWafModuleStatus(ctx *Context, name string, args WafModuleStatusArgs, opts ...ResourceOption) (*WafModuleStatus, error)
    public WafModuleStatus(string name, WafModuleStatusArgs args, CustomResourceOptions? opts = null)
    public WafModuleStatus(String name, WafModuleStatusArgs args)
    public WafModuleStatus(String name, WafModuleStatusArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafModuleStatus
    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 WafModuleStatusArgs
    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 WafModuleStatusArgs
    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 WafModuleStatusArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafModuleStatusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafModuleStatusArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccessControl double
    ACL module status, 0:closed, 1:opened.
    ApiProtection double
    API security module status, 0:closed, 1:opened.
    CcProtection double
    CC module status, 0:closed, 1:opened.
    Domain string
    Domain.
    WebSecurity double
    WEB security module status, 0:closed, 1:opened.
    AntiLeakage double
    Anti leakage module status, 0:closed, 1:opened.
    AntiTamper double
    Anti tamper module status, 0:closed, 1:opened.
    WafModuleStatusId string
    ID of the resource.
    AccessControl float64
    ACL module status, 0:closed, 1:opened.
    ApiProtection float64
    API security module status, 0:closed, 1:opened.
    CcProtection float64
    CC module status, 0:closed, 1:opened.
    Domain string
    Domain.
    WebSecurity float64
    WEB security module status, 0:closed, 1:opened.
    AntiLeakage float64
    Anti leakage module status, 0:closed, 1:opened.
    AntiTamper float64
    Anti tamper module status, 0:closed, 1:opened.
    WafModuleStatusId string
    ID of the resource.
    accessControl Double
    ACL module status, 0:closed, 1:opened.
    apiProtection Double
    API security module status, 0:closed, 1:opened.
    ccProtection Double
    CC module status, 0:closed, 1:opened.
    domain String
    Domain.
    webSecurity Double
    WEB security module status, 0:closed, 1:opened.
    antiLeakage Double
    Anti leakage module status, 0:closed, 1:opened.
    antiTamper Double
    Anti tamper module status, 0:closed, 1:opened.
    wafModuleStatusId String
    ID of the resource.
    accessControl number
    ACL module status, 0:closed, 1:opened.
    apiProtection number
    API security module status, 0:closed, 1:opened.
    ccProtection number
    CC module status, 0:closed, 1:opened.
    domain string
    Domain.
    webSecurity number
    WEB security module status, 0:closed, 1:opened.
    antiLeakage number
    Anti leakage module status, 0:closed, 1:opened.
    antiTamper number
    Anti tamper module status, 0:closed, 1:opened.
    wafModuleStatusId string
    ID of the resource.
    access_control float
    ACL module status, 0:closed, 1:opened.
    api_protection float
    API security module status, 0:closed, 1:opened.
    cc_protection float
    CC module status, 0:closed, 1:opened.
    domain str
    Domain.
    web_security float
    WEB security module status, 0:closed, 1:opened.
    anti_leakage float
    Anti leakage module status, 0:closed, 1:opened.
    anti_tamper float
    Anti tamper module status, 0:closed, 1:opened.
    waf_module_status_id str
    ID of the resource.
    accessControl Number
    ACL module status, 0:closed, 1:opened.
    apiProtection Number
    API security module status, 0:closed, 1:opened.
    ccProtection Number
    CC module status, 0:closed, 1:opened.
    domain String
    Domain.
    webSecurity Number
    WEB security module status, 0:closed, 1:opened.
    antiLeakage Number
    Anti leakage module status, 0:closed, 1:opened.
    antiTamper Number
    Anti tamper module status, 0:closed, 1:opened.
    wafModuleStatusId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WafModuleStatus 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 WafModuleStatus Resource

    Get an existing WafModuleStatus 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?: WafModuleStatusState, opts?: CustomResourceOptions): WafModuleStatus
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_control: Optional[float] = None,
            anti_leakage: Optional[float] = None,
            anti_tamper: Optional[float] = None,
            api_protection: Optional[float] = None,
            cc_protection: Optional[float] = None,
            domain: Optional[str] = None,
            waf_module_status_id: Optional[str] = None,
            web_security: Optional[float] = None) -> WafModuleStatus
    func GetWafModuleStatus(ctx *Context, name string, id IDInput, state *WafModuleStatusState, opts ...ResourceOption) (*WafModuleStatus, error)
    public static WafModuleStatus Get(string name, Input<string> id, WafModuleStatusState? state, CustomResourceOptions? opts = null)
    public static WafModuleStatus get(String name, Output<String> id, WafModuleStatusState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafModuleStatus    get:      id: ${id}
    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:
    AccessControl double
    ACL module status, 0:closed, 1:opened.
    AntiLeakage double
    Anti leakage module status, 0:closed, 1:opened.
    AntiTamper double
    Anti tamper module status, 0:closed, 1:opened.
    ApiProtection double
    API security module status, 0:closed, 1:opened.
    CcProtection double
    CC module status, 0:closed, 1:opened.
    Domain string
    Domain.
    WafModuleStatusId string
    ID of the resource.
    WebSecurity double
    WEB security module status, 0:closed, 1:opened.
    AccessControl float64
    ACL module status, 0:closed, 1:opened.
    AntiLeakage float64
    Anti leakage module status, 0:closed, 1:opened.
    AntiTamper float64
    Anti tamper module status, 0:closed, 1:opened.
    ApiProtection float64
    API security module status, 0:closed, 1:opened.
    CcProtection float64
    CC module status, 0:closed, 1:opened.
    Domain string
    Domain.
    WafModuleStatusId string
    ID of the resource.
    WebSecurity float64
    WEB security module status, 0:closed, 1:opened.
    accessControl Double
    ACL module status, 0:closed, 1:opened.
    antiLeakage Double
    Anti leakage module status, 0:closed, 1:opened.
    antiTamper Double
    Anti tamper module status, 0:closed, 1:opened.
    apiProtection Double
    API security module status, 0:closed, 1:opened.
    ccProtection Double
    CC module status, 0:closed, 1:opened.
    domain String
    Domain.
    wafModuleStatusId String
    ID of the resource.
    webSecurity Double
    WEB security module status, 0:closed, 1:opened.
    accessControl number
    ACL module status, 0:closed, 1:opened.
    antiLeakage number
    Anti leakage module status, 0:closed, 1:opened.
    antiTamper number
    Anti tamper module status, 0:closed, 1:opened.
    apiProtection number
    API security module status, 0:closed, 1:opened.
    ccProtection number
    CC module status, 0:closed, 1:opened.
    domain string
    Domain.
    wafModuleStatusId string
    ID of the resource.
    webSecurity number
    WEB security module status, 0:closed, 1:opened.
    access_control float
    ACL module status, 0:closed, 1:opened.
    anti_leakage float
    Anti leakage module status, 0:closed, 1:opened.
    anti_tamper float
    Anti tamper module status, 0:closed, 1:opened.
    api_protection float
    API security module status, 0:closed, 1:opened.
    cc_protection float
    CC module status, 0:closed, 1:opened.
    domain str
    Domain.
    waf_module_status_id str
    ID of the resource.
    web_security float
    WEB security module status, 0:closed, 1:opened.
    accessControl Number
    ACL module status, 0:closed, 1:opened.
    antiLeakage Number
    Anti leakage module status, 0:closed, 1:opened.
    antiTamper Number
    Anti tamper module status, 0:closed, 1:opened.
    apiProtection Number
    API security module status, 0:closed, 1:opened.
    ccProtection Number
    CC module status, 0:closed, 1:opened.
    domain String
    Domain.
    wafModuleStatusId String
    ID of the resource.
    webSecurity Number
    WEB security module status, 0:closed, 1:opened.

    Import

    waf module_status can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/wafModuleStatus:WafModuleStatus example demo.waf.com
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack