tencentcloud.WafModuleStatus
Explore with Pulumi AI
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:
- Access
Control double - ACL module status, 0:closed, 1:opened.
- Api
Protection double - API security module status, 0:closed, 1:opened.
- Cc
Protection double - CC module status, 0:closed, 1:opened.
- Domain string
- Domain.
- Web
Security double - WEB security module status, 0:closed, 1:opened.
- Anti
Leakage double - Anti leakage module status, 0:closed, 1:opened.
- Anti
Tamper double - Anti tamper module status, 0:closed, 1:opened.
- Waf
Module stringStatus Id - ID of the resource.
- Access
Control float64 - ACL module status, 0:closed, 1:opened.
- Api
Protection float64 - API security module status, 0:closed, 1:opened.
- Cc
Protection float64 - CC module status, 0:closed, 1:opened.
- Domain string
- Domain.
- Web
Security float64 - WEB security module status, 0:closed, 1:opened.
- Anti
Leakage float64 - Anti leakage module status, 0:closed, 1:opened.
- Anti
Tamper float64 - Anti tamper module status, 0:closed, 1:opened.
- Waf
Module stringStatus Id - ID of the resource.
- access
Control Double - ACL module status, 0:closed, 1:opened.
- api
Protection Double - API security module status, 0:closed, 1:opened.
- cc
Protection Double - CC module status, 0:closed, 1:opened.
- domain String
- Domain.
- web
Security Double - WEB security module status, 0:closed, 1:opened.
- anti
Leakage Double - Anti leakage module status, 0:closed, 1:opened.
- anti
Tamper Double - Anti tamper module status, 0:closed, 1:opened.
- waf
Module StringStatus Id - ID of the resource.
- access
Control number - ACL module status, 0:closed, 1:opened.
- api
Protection number - API security module status, 0:closed, 1:opened.
- cc
Protection number - CC module status, 0:closed, 1:opened.
- domain string
- Domain.
- web
Security number - WEB security module status, 0:closed, 1:opened.
- anti
Leakage number - Anti leakage module status, 0:closed, 1:opened.
- anti
Tamper number - Anti tamper module status, 0:closed, 1:opened.
- waf
Module stringStatus Id - 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_ strstatus_ id - ID of the resource.
- access
Control Number - ACL module status, 0:closed, 1:opened.
- api
Protection Number - API security module status, 0:closed, 1:opened.
- cc
Protection Number - CC module status, 0:closed, 1:opened.
- domain String
- Domain.
- web
Security Number - WEB security module status, 0:closed, 1:opened.
- anti
Leakage Number - Anti leakage module status, 0:closed, 1:opened.
- anti
Tamper Number - Anti tamper module status, 0:closed, 1:opened.
- waf
Module StringStatus Id - 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.
- Access
Control double - ACL module status, 0:closed, 1:opened.
- Anti
Leakage double - Anti leakage module status, 0:closed, 1:opened.
- Anti
Tamper double - Anti tamper module status, 0:closed, 1:opened.
- Api
Protection double - API security module status, 0:closed, 1:opened.
- Cc
Protection double - CC module status, 0:closed, 1:opened.
- Domain string
- Domain.
- Waf
Module stringStatus Id - ID of the resource.
- Web
Security double - WEB security module status, 0:closed, 1:opened.
- Access
Control float64 - ACL module status, 0:closed, 1:opened.
- Anti
Leakage float64 - Anti leakage module status, 0:closed, 1:opened.
- Anti
Tamper float64 - Anti tamper module status, 0:closed, 1:opened.
- Api
Protection float64 - API security module status, 0:closed, 1:opened.
- Cc
Protection float64 - CC module status, 0:closed, 1:opened.
- Domain string
- Domain.
- Waf
Module stringStatus Id - ID of the resource.
- Web
Security float64 - WEB security module status, 0:closed, 1:opened.
- access
Control Double - ACL module status, 0:closed, 1:opened.
- anti
Leakage Double - Anti leakage module status, 0:closed, 1:opened.
- anti
Tamper Double - Anti tamper module status, 0:closed, 1:opened.
- api
Protection Double - API security module status, 0:closed, 1:opened.
- cc
Protection Double - CC module status, 0:closed, 1:opened.
- domain String
- Domain.
- waf
Module StringStatus Id - ID of the resource.
- web
Security Double - WEB security module status, 0:closed, 1:opened.
- access
Control number - ACL module status, 0:closed, 1:opened.
- anti
Leakage number - Anti leakage module status, 0:closed, 1:opened.
- anti
Tamper number - Anti tamper module status, 0:closed, 1:opened.
- api
Protection number - API security module status, 0:closed, 1:opened.
- cc
Protection number - CC module status, 0:closed, 1:opened.
- domain string
- Domain.
- waf
Module stringStatus Id - ID of the resource.
- web
Security 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_ strstatus_ id - ID of the resource.
- web_
security float - WEB security module status, 0:closed, 1:opened.
- access
Control Number - ACL module status, 0:closed, 1:opened.
- anti
Leakage Number - Anti leakage module status, 0:closed, 1:opened.
- anti
Tamper Number - Anti tamper module status, 0:closed, 1:opened.
- api
Protection Number - API security module status, 0:closed, 1:opened.
- cc
Protection Number - CC module status, 0:closed, 1:opened.
- domain String
- Domain.
- waf
Module StringStatus Id - ID of the resource.
- web
Security 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.