tencentcloud.WafClbDomain
Explore with Pulumi AI
- Example Usage
- Create a basic waf clb domain
- Create a complete waf clb domain
- Create a complete waf tsegw domain
- Create a complete waf apisix domain
- Create WafClbDomain Resource
- Constructor syntax
- WafClbDomain Resource Properties
- Inputs
- Outputs
- Look up Existing WafClbDomain Resource
- Supporting Types
- Import
- Package Details
Provides a resource to create a waf clb_domain
Example Usage
Create a basic waf clb domain
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafClbDomain("example", {
albType: "clb",
domain: "test.com",
instanceId: "waf_2kxtlbky00b2v1fn",
loadBalancerSets: [{
listenerId: "lbl-nonkgvc2",
listenerName: "dsadasd",
loadBalancerId: "lb-5dnrkgry",
loadBalancerName: "keep-listener-clb",
loadBalancerType: "OPEN",
numericalVpcId: 5232945,
protocol: "HTTP",
region: "gz",
vip: "106.55.220.8",
vport: 80,
zone: "ap-guangzhou-6",
}],
region: "gz",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafClbDomain("example",
alb_type="clb",
domain="test.com",
instance_id="waf_2kxtlbky00b2v1fn",
load_balancer_sets=[{
"listener_id": "lbl-nonkgvc2",
"listener_name": "dsadasd",
"load_balancer_id": "lb-5dnrkgry",
"load_balancer_name": "keep-listener-clb",
"load_balancer_type": "OPEN",
"numerical_vpc_id": 5232945,
"protocol": "HTTP",
"region": "gz",
"vip": "106.55.220.8",
"vport": 80,
"zone": "ap-guangzhou-6",
}],
region="gz")
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.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
AlbType: pulumi.String("clb"),
Domain: pulumi.String("test.com"),
InstanceId: pulumi.String("waf_2kxtlbky00b2v1fn"),
LoadBalancerSets: tencentcloud.WafClbDomainLoadBalancerSetArray{
&tencentcloud.WafClbDomainLoadBalancerSetArgs{
ListenerId: pulumi.String("lbl-nonkgvc2"),
ListenerName: pulumi.String("dsadasd"),
LoadBalancerId: pulumi.String("lb-5dnrkgry"),
LoadBalancerName: pulumi.String("keep-listener-clb"),
LoadBalancerType: pulumi.String("OPEN"),
NumericalVpcId: pulumi.Float64(5232945),
Protocol: pulumi.String("HTTP"),
Region: pulumi.String("gz"),
Vip: pulumi.String("106.55.220.8"),
Vport: pulumi.Float64(80),
Zone: pulumi.String("ap-guangzhou-6"),
},
},
Region: pulumi.String("gz"),
})
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.WafClbDomain("example", new()
{
AlbType = "clb",
Domain = "test.com",
InstanceId = "waf_2kxtlbky00b2v1fn",
LoadBalancerSets = new[]
{
new Tencentcloud.Inputs.WafClbDomainLoadBalancerSetArgs
{
ListenerId = "lbl-nonkgvc2",
ListenerName = "dsadasd",
LoadBalancerId = "lb-5dnrkgry",
LoadBalancerName = "keep-listener-clb",
LoadBalancerType = "OPEN",
NumericalVpcId = 5232945,
Protocol = "HTTP",
Region = "gz",
Vip = "106.55.220.8",
Vport = 80,
Zone = "ap-guangzhou-6",
},
},
Region = "gz",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
import com.pulumi.tencentcloud.inputs.WafClbDomainLoadBalancerSetArgs;
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 WafClbDomain("example", WafClbDomainArgs.builder()
.albType("clb")
.domain("test.com")
.instanceId("waf_2kxtlbky00b2v1fn")
.loadBalancerSets(WafClbDomainLoadBalancerSetArgs.builder()
.listenerId("lbl-nonkgvc2")
.listenerName("dsadasd")
.loadBalancerId("lb-5dnrkgry")
.loadBalancerName("keep-listener-clb")
.loadBalancerType("OPEN")
.numericalVpcId("5232945")
.protocol("HTTP")
.region("gz")
.vip("106.55.220.8")
.vport("80")
.zone("ap-guangzhou-6")
.build())
.region("gz")
.build());
}
}
resources:
example:
type: tencentcloud:WafClbDomain
properties:
albType: clb
domain: test.com
instanceId: waf_2kxtlbky00b2v1fn
loadBalancerSets:
- listenerId: lbl-nonkgvc2
listenerName: dsadasd
loadBalancerId: lb-5dnrkgry
loadBalancerName: keep-listener-clb
loadBalancerType: OPEN
numericalVpcId: '5232945'
protocol: HTTP
region: gz
vip: 106.55.220.8
vport: '80'
zone: ap-guangzhou-6
region: gz
Create a complete waf clb domain
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafClbDomain("example", {
albType: "clb",
apiSafeStatus: 1,
botStatus: 1,
domain: "test.com",
engine: 21,
flowMode: 1,
instanceId: "waf_2kxtlbky00b2v1fn",
ipHeaders: [
"headers_1",
"headers_2",
"headers_3",
],
isCdn: 3,
loadBalancerSets: [{
listenerId: "lbl-nonkgvc2",
listenerName: "dsadasd",
loadBalancerId: "lb-5dnrkgry",
loadBalancerName: "keep-listener-clb",
loadBalancerType: "OPEN",
numericalVpcId: 5232945,
protocol: "HTTP",
region: "gz",
vip: "106.55.220.8",
vport: 80,
zone: "ap-guangzhou-6",
}],
region: "gz",
status: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafClbDomain("example",
alb_type="clb",
api_safe_status=1,
bot_status=1,
domain="test.com",
engine=21,
flow_mode=1,
instance_id="waf_2kxtlbky00b2v1fn",
ip_headers=[
"headers_1",
"headers_2",
"headers_3",
],
is_cdn=3,
load_balancer_sets=[{
"listener_id": "lbl-nonkgvc2",
"listener_name": "dsadasd",
"load_balancer_id": "lb-5dnrkgry",
"load_balancer_name": "keep-listener-clb",
"load_balancer_type": "OPEN",
"numerical_vpc_id": 5232945,
"protocol": "HTTP",
"region": "gz",
"vip": "106.55.220.8",
"vport": 80,
"zone": "ap-guangzhou-6",
}],
region="gz",
status=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.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
AlbType: pulumi.String("clb"),
ApiSafeStatus: pulumi.Float64(1),
BotStatus: pulumi.Float64(1),
Domain: pulumi.String("test.com"),
Engine: pulumi.Float64(21),
FlowMode: pulumi.Float64(1),
InstanceId: pulumi.String("waf_2kxtlbky00b2v1fn"),
IpHeaders: pulumi.StringArray{
pulumi.String("headers_1"),
pulumi.String("headers_2"),
pulumi.String("headers_3"),
},
IsCdn: pulumi.Float64(3),
LoadBalancerSets: tencentcloud.WafClbDomainLoadBalancerSetArray{
&tencentcloud.WafClbDomainLoadBalancerSetArgs{
ListenerId: pulumi.String("lbl-nonkgvc2"),
ListenerName: pulumi.String("dsadasd"),
LoadBalancerId: pulumi.String("lb-5dnrkgry"),
LoadBalancerName: pulumi.String("keep-listener-clb"),
LoadBalancerType: pulumi.String("OPEN"),
NumericalVpcId: pulumi.Float64(5232945),
Protocol: pulumi.String("HTTP"),
Region: pulumi.String("gz"),
Vip: pulumi.String("106.55.220.8"),
Vport: pulumi.Float64(80),
Zone: pulumi.String("ap-guangzhou-6"),
},
},
Region: pulumi.String("gz"),
Status: 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.WafClbDomain("example", new()
{
AlbType = "clb",
ApiSafeStatus = 1,
BotStatus = 1,
Domain = "test.com",
Engine = 21,
FlowMode = 1,
InstanceId = "waf_2kxtlbky00b2v1fn",
IpHeaders = new[]
{
"headers_1",
"headers_2",
"headers_3",
},
IsCdn = 3,
LoadBalancerSets = new[]
{
new Tencentcloud.Inputs.WafClbDomainLoadBalancerSetArgs
{
ListenerId = "lbl-nonkgvc2",
ListenerName = "dsadasd",
LoadBalancerId = "lb-5dnrkgry",
LoadBalancerName = "keep-listener-clb",
LoadBalancerType = "OPEN",
NumericalVpcId = 5232945,
Protocol = "HTTP",
Region = "gz",
Vip = "106.55.220.8",
Vport = 80,
Zone = "ap-guangzhou-6",
},
},
Region = "gz",
Status = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
import com.pulumi.tencentcloud.inputs.WafClbDomainLoadBalancerSetArgs;
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 WafClbDomain("example", WafClbDomainArgs.builder()
.albType("clb")
.apiSafeStatus(1)
.botStatus(1)
.domain("test.com")
.engine(21)
.flowMode(1)
.instanceId("waf_2kxtlbky00b2v1fn")
.ipHeaders(
"headers_1",
"headers_2",
"headers_3")
.isCdn(3)
.loadBalancerSets(WafClbDomainLoadBalancerSetArgs.builder()
.listenerId("lbl-nonkgvc2")
.listenerName("dsadasd")
.loadBalancerId("lb-5dnrkgry")
.loadBalancerName("keep-listener-clb")
.loadBalancerType("OPEN")
.numericalVpcId("5232945")
.protocol("HTTP")
.region("gz")
.vip("106.55.220.8")
.vport("80")
.zone("ap-guangzhou-6")
.build())
.region("gz")
.status(1)
.build());
}
}
resources:
example:
type: tencentcloud:WafClbDomain
properties:
albType: clb
apiSafeStatus: 1
botStatus: 1
domain: test.com
engine: 21
flowMode: 1
instanceId: waf_2kxtlbky00b2v1fn
ipHeaders:
- headers_1
- headers_2
- headers_3
isCdn: 3
loadBalancerSets:
- listenerId: lbl-nonkgvc2
listenerName: dsadasd
loadBalancerId: lb-5dnrkgry
loadBalancerName: keep-listener-clb
loadBalancerType: OPEN
numericalVpcId: '5232945'
protocol: HTTP
region: gz
vip: 106.55.220.8
vport: '80'
zone: ap-guangzhou-6
region: gz
status: 1
Create a complete waf tsegw domain
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafClbDomain("example", {
albType: "tsegw",
apiSafeStatus: 0,
botStatus: 0,
domain: "xxx.com",
engine: 12,
flowMode: 0,
instanceId: "waf_2kxtlbky00b2v1fn",
isCdn: 0,
region: "gz",
status: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafClbDomain("example",
alb_type="tsegw",
api_safe_status=0,
bot_status=0,
domain="xxx.com",
engine=12,
flow_mode=0,
instance_id="waf_2kxtlbky00b2v1fn",
is_cdn=0,
region="gz",
status=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.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
AlbType: pulumi.String("tsegw"),
ApiSafeStatus: pulumi.Float64(0),
BotStatus: pulumi.Float64(0),
Domain: pulumi.String("xxx.com"),
Engine: pulumi.Float64(12),
FlowMode: pulumi.Float64(0),
InstanceId: pulumi.String("waf_2kxtlbky00b2v1fn"),
IsCdn: pulumi.Float64(0),
Region: pulumi.String("gz"),
Status: 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.WafClbDomain("example", new()
{
AlbType = "tsegw",
ApiSafeStatus = 0,
BotStatus = 0,
Domain = "xxx.com",
Engine = 12,
FlowMode = 0,
InstanceId = "waf_2kxtlbky00b2v1fn",
IsCdn = 0,
Region = "gz",
Status = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
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 WafClbDomain("example", WafClbDomainArgs.builder()
.albType("tsegw")
.apiSafeStatus(0)
.botStatus(0)
.domain("xxx.com")
.engine(12)
.flowMode(0)
.instanceId("waf_2kxtlbky00b2v1fn")
.isCdn(0)
.region("gz")
.status(1)
.build());
}
}
resources:
example:
type: tencentcloud:WafClbDomain
properties:
albType: tsegw
apiSafeStatus: 0
botStatus: 0
domain: xxx.com
engine: 12
flowMode: 0
instanceId: waf_2kxtlbky00b2v1fn
isCdn: 0
region: gz
status: 1
Create a complete waf apisix domain
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.WafClbDomain("example", {
albType: "apisix",
apiSafeStatus: 0,
botStatus: 0,
domain: "xxx.com",
engine: 12,
flowMode: 0,
instanceId: "waf_2kxtlbky00b2v1fn",
isCdn: 0,
region: "gz",
status: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.WafClbDomain("example",
alb_type="apisix",
api_safe_status=0,
bot_status=0,
domain="xxx.com",
engine=12,
flow_mode=0,
instance_id="waf_2kxtlbky00b2v1fn",
is_cdn=0,
region="gz",
status=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.NewWafClbDomain(ctx, "example", &tencentcloud.WafClbDomainArgs{
AlbType: pulumi.String("apisix"),
ApiSafeStatus: pulumi.Float64(0),
BotStatus: pulumi.Float64(0),
Domain: pulumi.String("xxx.com"),
Engine: pulumi.Float64(12),
FlowMode: pulumi.Float64(0),
InstanceId: pulumi.String("waf_2kxtlbky00b2v1fn"),
IsCdn: pulumi.Float64(0),
Region: pulumi.String("gz"),
Status: 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.WafClbDomain("example", new()
{
AlbType = "apisix",
ApiSafeStatus = 0,
BotStatus = 0,
Domain = "xxx.com",
Engine = 12,
FlowMode = 0,
InstanceId = "waf_2kxtlbky00b2v1fn",
IsCdn = 0,
Region = "gz",
Status = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.WafClbDomain;
import com.pulumi.tencentcloud.WafClbDomainArgs;
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 WafClbDomain("example", WafClbDomainArgs.builder()
.albType("apisix")
.apiSafeStatus(0)
.botStatus(0)
.domain("xxx.com")
.engine(12)
.flowMode(0)
.instanceId("waf_2kxtlbky00b2v1fn")
.isCdn(0)
.region("gz")
.status(1)
.build());
}
}
resources:
example:
type: tencentcloud:WafClbDomain
properties:
albType: apisix
apiSafeStatus: 0
botStatus: 0
domain: xxx.com
engine: 12
flowMode: 0
instanceId: waf_2kxtlbky00b2v1fn
isCdn: 0
region: gz
status: 1
Create WafClbDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafClbDomain(name: string, args: WafClbDomainArgs, opts?: CustomResourceOptions);
@overload
def WafClbDomain(resource_name: str,
args: WafClbDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WafClbDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
region: Optional[str] = None,
instance_id: Optional[str] = None,
flow_mode: Optional[float] = None,
cls_status: Optional[float] = None,
engine: Optional[float] = None,
alb_type: Optional[str] = None,
bot_status: Optional[float] = None,
ip_headers: Optional[Sequence[str]] = None,
is_cdn: Optional[float] = None,
load_balancer_sets: Optional[Sequence[WafClbDomainLoadBalancerSetArgs]] = None,
api_safe_status: Optional[float] = None,
status: Optional[float] = None,
waf_clb_domain_id: Optional[str] = None)
func NewWafClbDomain(ctx *Context, name string, args WafClbDomainArgs, opts ...ResourceOption) (*WafClbDomain, error)
public WafClbDomain(string name, WafClbDomainArgs args, CustomResourceOptions? opts = null)
public WafClbDomain(String name, WafClbDomainArgs args)
public WafClbDomain(String name, WafClbDomainArgs args, CustomResourceOptions options)
type: tencentcloud:WafClbDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. WafClbDomainArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. WafClbDomainArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. WafClbDomainArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. WafClbDomainArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. WafClbDomainArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WafClbDomain 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 WafClbDomain resource accepts the following input properties:
- Domain
This property is required. string - Domain name.
- Instance
Id This property is required. string - Instance unique ID.
- Region
This property is required. string - Regions of LB bound by domain.
- Alb
Type string - Load balancer type: clb, apisix or tsegw, default clb.
- Api
Safe doubleStatus - Whether to enable api safe, 1 enable, 0 disable.
- Bot
Status double - Whether to enable bot, 1 enable, 0 disable.
- Cls
Status double - Whether to enable access logs, 1 enable, 0 disable.
- Engine double
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- Flow
Mode double - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- Ip
Headers List<string> - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- Is
Cdn double - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- Load
Balancer List<WafSets Clb Domain Load Balancer Set> - List of bound LB.
- Status double
- Binding status between waf and LB, 0:not bind, 1:binding.
- Waf
Clb stringDomain Id - ID of the resource.
- Domain
This property is required. string - Domain name.
- Instance
Id This property is required. string - Instance unique ID.
- Region
This property is required. string - Regions of LB bound by domain.
- Alb
Type string - Load balancer type: clb, apisix or tsegw, default clb.
- Api
Safe float64Status - Whether to enable api safe, 1 enable, 0 disable.
- Bot
Status float64 - Whether to enable bot, 1 enable, 0 disable.
- Cls
Status float64 - Whether to enable access logs, 1 enable, 0 disable.
- Engine float64
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- Flow
Mode float64 - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- Ip
Headers []string - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- Is
Cdn float64 - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- Load
Balancer []WafSets Clb Domain Load Balancer Set Args - List of bound LB.
- Status float64
- Binding status between waf and LB, 0:not bind, 1:binding.
- Waf
Clb stringDomain Id - ID of the resource.
- domain
This property is required. String - Domain name.
- instance
Id This property is required. String - Instance unique ID.
- region
This property is required. String - Regions of LB bound by domain.
- alb
Type String - Load balancer type: clb, apisix or tsegw, default clb.
- api
Safe DoubleStatus - Whether to enable api safe, 1 enable, 0 disable.
- bot
Status Double - Whether to enable bot, 1 enable, 0 disable.
- cls
Status Double - Whether to enable access logs, 1 enable, 0 disable.
- engine Double
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow
Mode Double - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- ip
Headers List<String> - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is
Cdn Double - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load
Balancer List<WafSets Clb Domain Load Balancer Set> - List of bound LB.
- status Double
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf
Clb StringDomain Id - ID of the resource.
- domain
This property is required. string - Domain name.
- instance
Id This property is required. string - Instance unique ID.
- region
This property is required. string - Regions of LB bound by domain.
- alb
Type string - Load balancer type: clb, apisix or tsegw, default clb.
- api
Safe numberStatus - Whether to enable api safe, 1 enable, 0 disable.
- bot
Status number - Whether to enable bot, 1 enable, 0 disable.
- cls
Status number - Whether to enable access logs, 1 enable, 0 disable.
- engine number
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow
Mode number - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- ip
Headers string[] - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is
Cdn number - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load
Balancer WafSets Clb Domain Load Balancer Set[] - List of bound LB.
- status number
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf
Clb stringDomain Id - ID of the resource.
- domain
This property is required. str - Domain name.
- instance_
id This property is required. str - Instance unique ID.
- region
This property is required. str - Regions of LB bound by domain.
- alb_
type str - Load balancer type: clb, apisix or tsegw, default clb.
- api_
safe_ floatstatus - Whether to enable api safe, 1 enable, 0 disable.
- bot_
status float - Whether to enable bot, 1 enable, 0 disable.
- cls_
status float - Whether to enable access logs, 1 enable, 0 disable.
- engine float
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow_
mode float - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- ip_
headers Sequence[str] - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is_
cdn float - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load_
balancer_ Sequence[Wafsets Clb Domain Load Balancer Set Args] - List of bound LB.
- status float
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf_
clb_ strdomain_ id - ID of the resource.
- domain
This property is required. String - Domain name.
- instance
Id This property is required. String - Instance unique ID.
- region
This property is required. String - Regions of LB bound by domain.
- alb
Type String - Load balancer type: clb, apisix or tsegw, default clb.
- api
Safe NumberStatus - Whether to enable api safe, 1 enable, 0 disable.
- bot
Status Number - Whether to enable bot, 1 enable, 0 disable.
- cls
Status Number - Whether to enable access logs, 1 enable, 0 disable.
- engine Number
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow
Mode Number - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- ip
Headers List<String> - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is
Cdn Number - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load
Balancer List<Property Map>Sets - List of bound LB.
- status Number
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf
Clb StringDomain Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafClbDomain resource produces the following output properties:
Look up Existing WafClbDomain Resource
Get an existing WafClbDomain 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?: WafClbDomainState, opts?: CustomResourceOptions): WafClbDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alb_type: Optional[str] = None,
api_safe_status: Optional[float] = None,
bot_status: Optional[float] = None,
cls_status: Optional[float] = None,
domain: Optional[str] = None,
domain_id: Optional[str] = None,
engine: Optional[float] = None,
flow_mode: Optional[float] = None,
instance_id: Optional[str] = None,
ip_headers: Optional[Sequence[str]] = None,
is_cdn: Optional[float] = None,
load_balancer_sets: Optional[Sequence[WafClbDomainLoadBalancerSetArgs]] = None,
region: Optional[str] = None,
status: Optional[float] = None,
waf_clb_domain_id: Optional[str] = None) -> WafClbDomain
func GetWafClbDomain(ctx *Context, name string, id IDInput, state *WafClbDomainState, opts ...ResourceOption) (*WafClbDomain, error)
public static WafClbDomain Get(string name, Input<string> id, WafClbDomainState? state, CustomResourceOptions? opts = null)
public static WafClbDomain get(String name, Output<String> id, WafClbDomainState state, CustomResourceOptions options)
resources: _: type: tencentcloud:WafClbDomain get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Alb
Type string - Load balancer type: clb, apisix or tsegw, default clb.
- Api
Safe doubleStatus - Whether to enable api safe, 1 enable, 0 disable.
- Bot
Status double - Whether to enable bot, 1 enable, 0 disable.
- Cls
Status double - Whether to enable access logs, 1 enable, 0 disable.
- Domain string
- Domain name.
- Domain
Id string - Domain id.
- Engine double
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- Flow
Mode double - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- Instance
Id string - Instance unique ID.
- Ip
Headers List<string> - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- Is
Cdn double - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- Load
Balancer List<WafSets Clb Domain Load Balancer Set> - List of bound LB.
- Region string
- Regions of LB bound by domain.
- Status double
- Binding status between waf and LB, 0:not bind, 1:binding.
- Waf
Clb stringDomain Id - ID of the resource.
- Alb
Type string - Load balancer type: clb, apisix or tsegw, default clb.
- Api
Safe float64Status - Whether to enable api safe, 1 enable, 0 disable.
- Bot
Status float64 - Whether to enable bot, 1 enable, 0 disable.
- Cls
Status float64 - Whether to enable access logs, 1 enable, 0 disable.
- Domain string
- Domain name.
- Domain
Id string - Domain id.
- Engine float64
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- Flow
Mode float64 - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- Instance
Id string - Instance unique ID.
- Ip
Headers []string - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- Is
Cdn float64 - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- Load
Balancer []WafSets Clb Domain Load Balancer Set Args - List of bound LB.
- Region string
- Regions of LB bound by domain.
- Status float64
- Binding status between waf and LB, 0:not bind, 1:binding.
- Waf
Clb stringDomain Id - ID of the resource.
- alb
Type String - Load balancer type: clb, apisix or tsegw, default clb.
- api
Safe DoubleStatus - Whether to enable api safe, 1 enable, 0 disable.
- bot
Status Double - Whether to enable bot, 1 enable, 0 disable.
- cls
Status Double - Whether to enable access logs, 1 enable, 0 disable.
- domain String
- Domain name.
- domain
Id String - Domain id.
- engine Double
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow
Mode Double - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- instance
Id String - Instance unique ID.
- ip
Headers List<String> - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is
Cdn Double - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load
Balancer List<WafSets Clb Domain Load Balancer Set> - List of bound LB.
- region String
- Regions of LB bound by domain.
- status Double
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf
Clb StringDomain Id - ID of the resource.
- alb
Type string - Load balancer type: clb, apisix or tsegw, default clb.
- api
Safe numberStatus - Whether to enable api safe, 1 enable, 0 disable.
- bot
Status number - Whether to enable bot, 1 enable, 0 disable.
- cls
Status number - Whether to enable access logs, 1 enable, 0 disable.
- domain string
- Domain name.
- domain
Id string - Domain id.
- engine number
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow
Mode number - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- instance
Id string - Instance unique ID.
- ip
Headers string[] - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is
Cdn number - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load
Balancer WafSets Clb Domain Load Balancer Set[] - List of bound LB.
- region string
- Regions of LB bound by domain.
- status number
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf
Clb stringDomain Id - ID of the resource.
- alb_
type str - Load balancer type: clb, apisix or tsegw, default clb.
- api_
safe_ floatstatus - Whether to enable api safe, 1 enable, 0 disable.
- bot_
status float - Whether to enable bot, 1 enable, 0 disable.
- cls_
status float - Whether to enable access logs, 1 enable, 0 disable.
- domain str
- Domain name.
- domain_
id str - Domain id.
- engine float
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow_
mode float - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- instance_
id str - Instance unique ID.
- ip_
headers Sequence[str] - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is_
cdn float - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load_
balancer_ Sequence[Wafsets Clb Domain Load Balancer Set Args] - List of bound LB.
- region str
- Regions of LB bound by domain.
- status float
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf_
clb_ strdomain_ id - ID of the resource.
- alb
Type String - Load balancer type: clb, apisix or tsegw, default clb.
- api
Safe NumberStatus - Whether to enable api safe, 1 enable, 0 disable.
- bot
Status Number - Whether to enable bot, 1 enable, 0 disable.
- cls
Status Number - Whether to enable access logs, 1 enable, 0 disable.
- domain String
- Domain name.
- domain
Id String - Domain id.
- engine Number
- Protection Status: 10: Rule Observation&&AI Off Mode, 11: Rule Observation&&AI Observation Mode, 12: Rule Observation&&AI Interception Mode, 20: Rule Interception&&AI Off Mode, 21: Rule Interception&&AI Observation Mode, 22: Rule Interception&&AI Interception Mode, Default 20.
- flow
Mode Number - WAF traffic mode, 1 cleaning mode, 0 mirroring mode.
- instance
Id String - Instance unique ID.
- ip
Headers List<String> - When is_cdn=3, this parameter needs to be filled in to indicate a custom header.
- is
Cdn Number - Whether a proxy has been enabled before WAF, 0 no deployment, 1 deployment and use first IP in X-Forwarded-For as client IP, 2 deployment and use remote_addr as client IP, 3 deployment and use values of custom headers as client IP.
- load
Balancer List<Property Map>Sets - List of bound LB.
- region String
- Regions of LB bound by domain.
- status Number
- Binding status between waf and LB, 0:not bind, 1:binding.
- waf
Clb StringDomain Id - ID of the resource.
Supporting Types
WafClbDomainLoadBalancerSet, WafClbDomainLoadBalancerSetArgs
- Listener
Id This property is required. string - Unique ID of listener in LB.
- Listener
Name This property is required. string - Listener name.
- Load
Balancer Id This property is required. string - LoadBalancer unique ID.
- Load
Balancer Name This property is required. string - LoadBalancer name.
- Protocol
This property is required. string - Protocol of listener, http or https.
- Region
This property is required. string - LoadBalancer region.
- Vip
This property is required. string - LoadBalancer IP.
- Vport
This property is required. double - LoadBalancer port.
- Zone
This property is required. string - LoadBalancer zone.
- Load
Balancer stringType - Network type for load balancer.
- Numerical
Vpc doubleId - VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
- Listener
Id This property is required. string - Unique ID of listener in LB.
- Listener
Name This property is required. string - Listener name.
- Load
Balancer Id This property is required. string - LoadBalancer unique ID.
- Load
Balancer Name This property is required. string - LoadBalancer name.
- Protocol
This property is required. string - Protocol of listener, http or https.
- Region
This property is required. string - LoadBalancer region.
- Vip
This property is required. string - LoadBalancer IP.
- Vport
This property is required. float64 - LoadBalancer port.
- Zone
This property is required. string - LoadBalancer zone.
- Load
Balancer stringType - Network type for load balancer.
- Numerical
Vpc float64Id - VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
- listener
Id This property is required. String - Unique ID of listener in LB.
- listener
Name This property is required. String - Listener name.
- load
Balancer Id This property is required. String - LoadBalancer unique ID.
- load
Balancer Name This property is required. String - LoadBalancer name.
- protocol
This property is required. String - Protocol of listener, http or https.
- region
This property is required. String - LoadBalancer region.
- vip
This property is required. String - LoadBalancer IP.
- vport
This property is required. Double - LoadBalancer port.
- zone
This property is required. String - LoadBalancer zone.
- load
Balancer StringType - Network type for load balancer.
- numerical
Vpc DoubleId - VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
- listener
Id This property is required. string - Unique ID of listener in LB.
- listener
Name This property is required. string - Listener name.
- load
Balancer Id This property is required. string - LoadBalancer unique ID.
- load
Balancer Name This property is required. string - LoadBalancer name.
- protocol
This property is required. string - Protocol of listener, http or https.
- region
This property is required. string - LoadBalancer region.
- vip
This property is required. string - LoadBalancer IP.
- vport
This property is required. number - LoadBalancer port.
- zone
This property is required. string - LoadBalancer zone.
- load
Balancer stringType - Network type for load balancer.
- numerical
Vpc numberId - VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
- listener_
id This property is required. str - Unique ID of listener in LB.
- listener_
name This property is required. str - Listener name.
- load_
balancer_ id This property is required. str - LoadBalancer unique ID.
- load_
balancer_ name This property is required. str - LoadBalancer name.
- protocol
This property is required. str - Protocol of listener, http or https.
- region
This property is required. str - LoadBalancer region.
- vip
This property is required. str - LoadBalancer IP.
- vport
This property is required. float - LoadBalancer port.
- zone
This property is required. str - LoadBalancer zone.
- load_
balancer_ strtype - Network type for load balancer.
- numerical_
vpc_ floatid - VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
- listener
Id This property is required. String - Unique ID of listener in LB.
- listener
Name This property is required. String - Listener name.
- load
Balancer Id This property is required. String - LoadBalancer unique ID.
- load
Balancer Name This property is required. String - LoadBalancer name.
- protocol
This property is required. String - Protocol of listener, http or https.
- region
This property is required. String - LoadBalancer region.
- vip
This property is required. String - LoadBalancer IP.
- vport
This property is required. Number - LoadBalancer port.
- zone
This property is required. String - LoadBalancer zone.
- load
Balancer StringType - Network type for load balancer.
- numerical
Vpc NumberId - VPCID for load balancer, public network is -1, and internal network is filled in according to actual conditions.
Import
waf clb_domain can be imported using the id, e.g.
$ pulumi import tencentcloud:index/wafClbDomain:WafClbDomain example waf_2kxtlbky00b2v1fn#test.com#waf-0FSehoRU
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.
- Example Usage
- Create a basic waf clb domain
- Create a complete waf clb domain
- Create a complete waf tsegw domain
- Create a complete waf apisix domain
- Create WafClbDomain Resource
- Constructor syntax
- WafClbDomain Resource Properties
- Inputs
- Outputs
- Look up Existing WafClbDomain Resource
- Supporting Types
- Import
- Package Details