tencentcloud.WafAntiFake
Explore with Pulumi AI
Provides a resource to create a waf anti_fake
NOTE: Uri: Please configure static resources such as. html,. shtml,. txt,. js,. css,. jpg,. png, or access paths for static resources..
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafAntiFake("example", {
domain: "www.waf.com",
status: 1,
uri: "/anti_fake_url.html",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafAntiFake("example",
domain="www.waf.com",
status=1,
uri="/anti_fake_url.html")
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.NewWafAntiFake(ctx, "example", &tencentcloud.WafAntiFakeArgs{
Domain: pulumi.String("www.waf.com"),
Status: pulumi.Float64(1),
Uri: pulumi.String("/anti_fake_url.html"),
})
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.WafAntiFake("example", new()
{
Domain = "www.waf.com",
Status = 1,
Uri = "/anti_fake_url.html",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafAntiFake;
import com.pulumi.tencentcloud.WafAntiFakeArgs;
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 WafAntiFake("example", WafAntiFakeArgs.builder()
.domain("www.waf.com")
.status(1)
.uri("/anti_fake_url.html")
.build());
}
}
resources:
example:
type: tencentcloud:WafAntiFake
properties:
domain: www.waf.com
status: 1
uri: /anti_fake_url.html
Create WafAntiFake Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafAntiFake(name: string, args: WafAntiFakeArgs, opts?: CustomResourceOptions);
@overload
def WafAntiFake(resource_name: str,
args: WafAntiFakeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafAntiFake(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
uri: Optional[str] = None,
name: Optional[str] = None,
status: Optional[float] = None,
waf_anti_fake_id: Optional[str] = None)
func NewWafAntiFake(ctx *Context, name string, args WafAntiFakeArgs, opts ...ResourceOption) (*WafAntiFake, error)
public WafAntiFake(string name, WafAntiFakeArgs args, CustomResourceOptions? opts = null)
public WafAntiFake(String name, WafAntiFakeArgs args)
public WafAntiFake(String name, WafAntiFakeArgs args, CustomResourceOptions options)
type: tencentcloud:WafAntiFake
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 WafAntiFakeArgs
- 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 WafAntiFakeArgs
- 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 WafAntiFakeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafAntiFakeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafAntiFakeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafAntiFake 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 WafAntiFake resource accepts the following input properties:
- Domain string
- Domain.
- Uri string
- Uri.
- Name string
- Rule Name.
- Status double
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- Waf
Anti stringFake Id - ID of the resource.
- Domain string
- Domain.
- Uri string
- Uri.
- Name string
- Rule Name.
- Status float64
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- Waf
Anti stringFake Id - ID of the resource.
- domain String
- Domain.
- uri String
- Uri.
- name String
- Rule Name.
- status Double
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- waf
Anti StringFake Id - ID of the resource.
- domain string
- Domain.
- uri string
- Uri.
- name string
- Rule Name.
- status number
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- waf
Anti stringFake Id - ID of the resource.
- domain str
- Domain.
- uri str
- Uri.
- name str
- Rule Name.
- status float
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- waf_
anti_ strfake_ id - ID of the resource.
- domain String
- Domain.
- uri String
- Uri.
- name String
- Rule Name.
- status Number
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- waf
Anti StringFake Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafAntiFake resource produces the following output properties:
Look up Existing WafAntiFake Resource
Get an existing WafAntiFake 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?: WafAntiFakeState, opts?: CustomResourceOptions): WafAntiFake
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
rule_id: Optional[float] = None,
status: Optional[float] = None,
uri: Optional[str] = None,
waf_anti_fake_id: Optional[str] = None) -> WafAntiFake
func GetWafAntiFake(ctx *Context, name string, id IDInput, state *WafAntiFakeState, opts ...ResourceOption) (*WafAntiFake, error)
public static WafAntiFake Get(string name, Input<string> id, WafAntiFakeState? state, CustomResourceOptions? opts = null)
public static WafAntiFake get(String name, Output<String> id, WafAntiFakeState state, CustomResourceOptions options)
resources: _: type: tencentcloud:WafAntiFake 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.
- Domain string
- Domain.
- Name string
- Rule Name.
- Protocol string
- Protocol.
- Rule
Id double - Rule ID.
- Status double
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- Uri string
- Uri.
- Waf
Anti stringFake Id - ID of the resource.
- Domain string
- Domain.
- Name string
- Rule Name.
- Protocol string
- Protocol.
- Rule
Id float64 - Rule ID.
- Status float64
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- Uri string
- Uri.
- Waf
Anti stringFake Id - ID of the resource.
- domain String
- Domain.
- name String
- Rule Name.
- protocol String
- Protocol.
- rule
Id Double - Rule ID.
- status Double
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- uri String
- Uri.
- waf
Anti StringFake Id - ID of the resource.
- domain string
- Domain.
- name string
- Rule Name.
- protocol string
- Protocol.
- rule
Id number - Rule ID.
- status number
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- uri string
- Uri.
- waf
Anti stringFake Id - ID of the resource.
- domain str
- Domain.
- name str
- Rule Name.
- protocol str
- Protocol.
- rule_
id float - Rule ID.
- status float
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- uri str
- Uri.
- waf_
anti_ strfake_ id - ID of the resource.
- domain String
- Domain.
- name String
- Rule Name.
- protocol String
- Protocol.
- rule
Id Number - Rule ID.
- status Number
- Status. 0: Turn off rules and log switches, 1: Turn on the rule switch and Turn off the log switch; 2: Turn off the rule switch and turn on the log switch; 3: Turn on the rule switch and turn on the log switch.
- uri String
- Uri.
- waf
Anti StringFake Id - ID of the resource.
Import
waf anti_fake can be imported using the id, e.g.
$ pulumi import tencentcloud:index/wafAntiFake:WafAntiFake example 3200035516#www.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.