volcengine.waf.AclRule
Explore with Pulumi AI
Provides a resource to manage waf acl rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.waf.AclRule("foo", {
accurateGroup: {
accurateRules: [{
httpObj: "request.uri",
objType: 1,
opretar: 2,
property: 0,
valueString: "GET",
}],
logic: 1,
},
aclType: "Allow",
action: "block",
advanced: 1,
description: "tf-test",
enable: 1,
hostAddType: 3,
hostLists: ["www.tf-test.com"],
ipAddType: 3,
ipLists: [
"1.2.2.2",
"1.2.3.30",
],
projectName: "default",
url: "/",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.waf.AclRule("foo",
accurate_group=volcengine.waf.AclRuleAccurateGroupArgs(
accurate_rules=[volcengine.waf.AclRuleAccurateGroupAccurateRuleArgs(
http_obj="request.uri",
obj_type=1,
opretar=2,
property=0,
value_string="GET",
)],
logic=1,
),
acl_type="Allow",
action="block",
advanced=1,
description="tf-test",
enable=1,
host_add_type=3,
host_lists=["www.tf-test.com"],
ip_add_type=3,
ip_lists=[
"1.2.2.2",
"1.2.3.30",
],
project_name="default",
url="/")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/waf"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.NewAclRule(ctx, "foo", &waf.AclRuleArgs{
AccurateGroup: &waf.AclRuleAccurateGroupArgs{
AccurateRules: waf.AclRuleAccurateGroupAccurateRuleArray{
&waf.AclRuleAccurateGroupAccurateRuleArgs{
HttpObj: pulumi.String("request.uri"),
ObjType: pulumi.Int(1),
Opretar: pulumi.Int(2),
Property: pulumi.Int(0),
ValueString: pulumi.String("GET"),
},
},
Logic: pulumi.Int(1),
},
AclType: pulumi.String("Allow"),
Action: pulumi.String("block"),
Advanced: pulumi.Int(1),
Description: pulumi.String("tf-test"),
Enable: pulumi.Int(1),
HostAddType: pulumi.Int(3),
HostLists: pulumi.StringArray{
pulumi.String("www.tf-test.com"),
},
IpAddType: pulumi.Int(3),
IpLists: pulumi.StringArray{
pulumi.String("1.2.2.2"),
pulumi.String("1.2.3.30"),
},
ProjectName: pulumi.String("default"),
Url: pulumi.String("/"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Waf.AclRule("foo", new()
{
AccurateGroup = new Volcengine.Waf.Inputs.AclRuleAccurateGroupArgs
{
AccurateRules = new[]
{
new Volcengine.Waf.Inputs.AclRuleAccurateGroupAccurateRuleArgs
{
HttpObj = "request.uri",
ObjType = 1,
Opretar = 2,
Property = 0,
ValueString = "GET",
},
},
Logic = 1,
},
AclType = "Allow",
Action = "block",
Advanced = 1,
Description = "tf-test",
Enable = 1,
HostAddType = 3,
HostLists = new[]
{
"www.tf-test.com",
},
IpAddType = 3,
IpLists = new[]
{
"1.2.2.2",
"1.2.3.30",
},
ProjectName = "default",
Url = "/",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.waf.AclRule;
import com.pulumi.volcengine.waf.AclRuleArgs;
import com.pulumi.volcengine.waf.inputs.AclRuleAccurateGroupArgs;
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 foo = new AclRule("foo", AclRuleArgs.builder()
.accurateGroup(AclRuleAccurateGroupArgs.builder()
.accurateRules(AclRuleAccurateGroupAccurateRuleArgs.builder()
.httpObj("request.uri")
.objType(1)
.opretar(2)
.property(0)
.valueString("GET")
.build())
.logic(1)
.build())
.aclType("Allow")
.action("block")
.advanced(1)
.description("tf-test")
.enable(1)
.hostAddType(3)
.hostLists("www.tf-test.com")
.ipAddType(3)
.ipLists(
"1.2.2.2",
"1.2.3.30")
.projectName("default")
.url("/")
.build());
}
}
resources:
foo:
type: volcengine:waf:AclRule
properties:
accurateGroup:
accurateRules:
- httpObj: request.uri
objType: 1
opretar: 2
property: 0
valueString: GET
logic: 1
aclType: Allow
action: block
advanced: 1
description: tf-test
enable: 1
hostAddType: 3
hostLists:
- www.tf-test.com
ipAddType: 3
ipLists:
- 1.2.2.2
- 1.2.3.30
projectName: default
url: /
Create AclRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AclRule(name: string, args: AclRuleArgs, opts?: CustomResourceOptions);
@overload
def AclRule(resource_name: str,
args: AclRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AclRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable: Optional[int] = None,
acl_type: Optional[str] = None,
url: Optional[str] = None,
ip_add_type: Optional[int] = None,
host_add_type: Optional[int] = None,
host_lists: Optional[Sequence[str]] = None,
description: Optional[str] = None,
host_group_ids: Optional[Sequence[int]] = None,
accurate_group: Optional[AclRuleAccurateGroupArgs] = None,
advanced: Optional[int] = None,
ip_group_ids: Optional[Sequence[int]] = None,
ip_lists: Optional[Sequence[str]] = None,
ip_location_countries: Optional[Sequence[str]] = None,
ip_location_subregions: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project_name: Optional[str] = None,
action: Optional[str] = None)
func NewAclRule(ctx *Context, name string, args AclRuleArgs, opts ...ResourceOption) (*AclRule, error)
public AclRule(string name, AclRuleArgs args, CustomResourceOptions? opts = null)
public AclRule(String name, AclRuleArgs args)
public AclRule(String name, AclRuleArgs args, CustomResourceOptions options)
type: volcengine:waf:AclRule
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 AclRuleArgs
- 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 AclRuleArgs
- 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 AclRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AclRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AclRuleArgs
- 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 aclRuleResource = new Volcengine.Waf.AclRule("aclRuleResource", new()
{
Enable = 0,
AclType = "string",
Url = "string",
IpAddType = 0,
HostAddType = 0,
HostLists = new[]
{
"string",
},
Description = "string",
HostGroupIds = new[]
{
0,
},
AccurateGroup = new Volcengine.Waf.Inputs.AclRuleAccurateGroupArgs
{
AccurateRules = new[]
{
new Volcengine.Waf.Inputs.AclRuleAccurateGroupAccurateRuleArgs
{
HttpObj = "string",
ObjType = 0,
Opretar = 0,
Property = 0,
ValueString = "string",
},
},
Logic = 0,
},
Advanced = 0,
IpGroupIds = new[]
{
0,
},
IpLists = new[]
{
"string",
},
IpLocationCountries = new[]
{
"string",
},
IpLocationSubregions = new[]
{
"string",
},
Name = "string",
ProjectName = "string",
Action = "string",
});
example, err := waf.NewAclRule(ctx, "aclRuleResource", &waf.AclRuleArgs{
Enable: pulumi.Int(0),
AclType: pulumi.String("string"),
Url: pulumi.String("string"),
IpAddType: pulumi.Int(0),
HostAddType: pulumi.Int(0),
HostLists: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
HostGroupIds: pulumi.IntArray{
pulumi.Int(0),
},
AccurateGroup: &waf.AclRuleAccurateGroupArgs{
AccurateRules: waf.AclRuleAccurateGroupAccurateRuleArray{
&waf.AclRuleAccurateGroupAccurateRuleArgs{
HttpObj: pulumi.String("string"),
ObjType: pulumi.Int(0),
Opretar: pulumi.Int(0),
Property: pulumi.Int(0),
ValueString: pulumi.String("string"),
},
},
Logic: pulumi.Int(0),
},
Advanced: pulumi.Int(0),
IpGroupIds: pulumi.IntArray{
pulumi.Int(0),
},
IpLists: pulumi.StringArray{
pulumi.String("string"),
},
IpLocationCountries: pulumi.StringArray{
pulumi.String("string"),
},
IpLocationSubregions: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Action: pulumi.String("string"),
})
var aclRuleResource = new AclRule("aclRuleResource", AclRuleArgs.builder()
.enable(0)
.aclType("string")
.url("string")
.ipAddType(0)
.hostAddType(0)
.hostLists("string")
.description("string")
.hostGroupIds(0)
.accurateGroup(AclRuleAccurateGroupArgs.builder()
.accurateRules(AclRuleAccurateGroupAccurateRuleArgs.builder()
.httpObj("string")
.objType(0)
.opretar(0)
.property(0)
.valueString("string")
.build())
.logic(0)
.build())
.advanced(0)
.ipGroupIds(0)
.ipLists("string")
.ipLocationCountries("string")
.ipLocationSubregions("string")
.name("string")
.projectName("string")
.action("string")
.build());
acl_rule_resource = volcengine.waf.AclRule("aclRuleResource",
enable=0,
acl_type="string",
url="string",
ip_add_type=0,
host_add_type=0,
host_lists=["string"],
description="string",
host_group_ids=[0],
accurate_group={
"accurate_rules": [{
"http_obj": "string",
"obj_type": 0,
"opretar": 0,
"property": 0,
"value_string": "string",
}],
"logic": 0,
},
advanced=0,
ip_group_ids=[0],
ip_lists=["string"],
ip_location_countries=["string"],
ip_location_subregions=["string"],
name="string",
project_name="string",
action="string")
const aclRuleResource = new volcengine.waf.AclRule("aclRuleResource", {
enable: 0,
aclType: "string",
url: "string",
ipAddType: 0,
hostAddType: 0,
hostLists: ["string"],
description: "string",
hostGroupIds: [0],
accurateGroup: {
accurateRules: [{
httpObj: "string",
objType: 0,
opretar: 0,
property: 0,
valueString: "string",
}],
logic: 0,
},
advanced: 0,
ipGroupIds: [0],
ipLists: ["string"],
ipLocationCountries: ["string"],
ipLocationSubregions: ["string"],
name: "string",
projectName: "string",
action: "string",
});
type: volcengine:waf:AclRule
properties:
accurateGroup:
accurateRules:
- httpObj: string
objType: 0
opretar: 0
property: 0
valueString: string
logic: 0
aclType: string
action: string
advanced: 0
description: string
enable: 0
hostAddType: 0
hostGroupIds:
- 0
hostLists:
- string
ipAddType: 0
ipGroupIds:
- 0
ipLists:
- string
ipLocationCountries:
- string
ipLocationSubregions:
- string
name: string
projectName: string
url: string
AclRule 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 AclRule resource accepts the following input properties:
- Acl
Type string - The type of access control rules.
- Enable int
- Whether to enable the rule.
- Host
Add intType - Type of domain name addition.
- Ip
Add intType - Type of IP address addition.
- Url string
- The path of Matching.
- Accurate
Group AclRule Accurate Group - Advanced conditions.
- Action string
- Action to be taken on requests that match the rule.
- Advanced int
- Whether to set advanced conditions.
- Description string
- Rule description.
- Host
Group List<int>Ids - The ID of the domain group.
- Host
Lists List<string> - Required if HostAddType = 3. Single or multiple domain names are supported.
- Ip
Group List<int>Ids - Required if IpAddType = 2.
- Ip
Lists List<string> - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- Ip
Location List<string>Countries - Country or region code.
- Ip
Location List<string>Subregions - Domestic region code.
- Name string
- Rule name.
- Project
Name string - The name of the project to which your domain names belong.
- Acl
Type string - The type of access control rules.
- Enable int
- Whether to enable the rule.
- Host
Add intType - Type of domain name addition.
- Ip
Add intType - Type of IP address addition.
- Url string
- The path of Matching.
- Accurate
Group AclRule Accurate Group Args - Advanced conditions.
- Action string
- Action to be taken on requests that match the rule.
- Advanced int
- Whether to set advanced conditions.
- Description string
- Rule description.
- Host
Group []intIds - The ID of the domain group.
- Host
Lists []string - Required if HostAddType = 3. Single or multiple domain names are supported.
- Ip
Group []intIds - Required if IpAddType = 2.
- Ip
Lists []string - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- Ip
Location []stringCountries - Country or region code.
- Ip
Location []stringSubregions - Domestic region code.
- Name string
- Rule name.
- Project
Name string - The name of the project to which your domain names belong.
- acl
Type String - The type of access control rules.
- enable Integer
- Whether to enable the rule.
- host
Add IntegerType - Type of domain name addition.
- ip
Add IntegerType - Type of IP address addition.
- url String
- The path of Matching.
- accurate
Group AclRule Accurate Group - Advanced conditions.
- action String
- Action to be taken on requests that match the rule.
- advanced Integer
- Whether to set advanced conditions.
- description String
- Rule description.
- host
Group List<Integer>Ids - The ID of the domain group.
- host
Lists List<String> - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip
Group List<Integer>Ids - Required if IpAddType = 2.
- ip
Lists List<String> - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip
Location List<String>Countries - Country or region code.
- ip
Location List<String>Subregions - Domestic region code.
- name String
- Rule name.
- project
Name String - The name of the project to which your domain names belong.
- acl
Type string - The type of access control rules.
- enable number
- Whether to enable the rule.
- host
Add numberType - Type of domain name addition.
- ip
Add numberType - Type of IP address addition.
- url string
- The path of Matching.
- accurate
Group AclRule Accurate Group - Advanced conditions.
- action string
- Action to be taken on requests that match the rule.
- advanced number
- Whether to set advanced conditions.
- description string
- Rule description.
- host
Group number[]Ids - The ID of the domain group.
- host
Lists string[] - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip
Group number[]Ids - Required if IpAddType = 2.
- ip
Lists string[] - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip
Location string[]Countries - Country or region code.
- ip
Location string[]Subregions - Domestic region code.
- name string
- Rule name.
- project
Name string - The name of the project to which your domain names belong.
- acl_
type str - The type of access control rules.
- enable int
- Whether to enable the rule.
- host_
add_ inttype - Type of domain name addition.
- ip_
add_ inttype - Type of IP address addition.
- url str
- The path of Matching.
- accurate_
group AclRule Accurate Group Args - Advanced conditions.
- action str
- Action to be taken on requests that match the rule.
- advanced int
- Whether to set advanced conditions.
- description str
- Rule description.
- host_
group_ Sequence[int]ids - The ID of the domain group.
- host_
lists Sequence[str] - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip_
group_ Sequence[int]ids - Required if IpAddType = 2.
- ip_
lists Sequence[str] - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip_
location_ Sequence[str]countries - Country or region code.
- ip_
location_ Sequence[str]subregions - Domestic region code.
- name str
- Rule name.
- project_
name str - The name of the project to which your domain names belong.
- acl
Type String - The type of access control rules.
- enable Number
- Whether to enable the rule.
- host
Add NumberType - Type of domain name addition.
- ip
Add NumberType - Type of IP address addition.
- url String
- The path of Matching.
- accurate
Group Property Map - Advanced conditions.
- action String
- Action to be taken on requests that match the rule.
- advanced Number
- Whether to set advanced conditions.
- description String
- Rule description.
- host
Group List<Number>Ids - The ID of the domain group.
- host
Lists List<String> - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip
Group List<Number>Ids - Required if IpAddType = 2.
- ip
Lists List<String> - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip
Location List<String>Countries - Country or region code.
- ip
Location List<String>Subregions - Domestic region code.
- name String
- Rule name.
- project
Name String - The name of the project to which your domain names belong.
Outputs
All input properties are implicitly available as output properties. Additionally, the AclRule resource produces the following output properties:
- Client
Ip string - IP address.
- Host
Groups List<AclRule Host Group> - The list of domain name groups.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Groups List<AclRule Ip Group> - The list of domain name groups.
- Rule
Tag string - Rule unique identifier.
- Update
Time string - Update time of the rule.
- Client
Ip string - IP address.
- Host
Groups []AclRule Host Group - The list of domain name groups.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Groups []AclRule Ip Group - The list of domain name groups.
- Rule
Tag string - Rule unique identifier.
- Update
Time string - Update time of the rule.
- client
Ip String - IP address.
- host
Groups List<AclRule Host Group> - The list of domain name groups.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Groups List<AclRule Ip Group> - The list of domain name groups.
- rule
Tag String - Rule unique identifier.
- update
Time String - Update time of the rule.
- client
Ip string - IP address.
- host
Groups AclRule Host Group[] - The list of domain name groups.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Groups AclRule Ip Group[] - The list of domain name groups.
- rule
Tag string - Rule unique identifier.
- update
Time string - Update time of the rule.
- client_
ip str - IP address.
- host_
groups Sequence[AclRule Host Group] - The list of domain name groups.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
groups Sequence[AclRule Ip Group] - The list of domain name groups.
- rule_
tag str - Rule unique identifier.
- update_
time str - Update time of the rule.
- client
Ip String - IP address.
- host
Groups List<Property Map> - The list of domain name groups.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Groups List<Property Map> - The list of domain name groups.
- rule
Tag String - Rule unique identifier.
- update
Time String - Update time of the rule.
Look up Existing AclRule Resource
Get an existing AclRule 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?: AclRuleState, opts?: CustomResourceOptions): AclRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accurate_group: Optional[AclRuleAccurateGroupArgs] = None,
acl_type: Optional[str] = None,
action: Optional[str] = None,
advanced: Optional[int] = None,
client_ip: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[int] = None,
host_add_type: Optional[int] = None,
host_group_ids: Optional[Sequence[int]] = None,
host_groups: Optional[Sequence[AclRuleHostGroupArgs]] = None,
host_lists: Optional[Sequence[str]] = None,
ip_add_type: Optional[int] = None,
ip_group_ids: Optional[Sequence[int]] = None,
ip_groups: Optional[Sequence[AclRuleIpGroupArgs]] = None,
ip_lists: Optional[Sequence[str]] = None,
ip_location_countries: Optional[Sequence[str]] = None,
ip_location_subregions: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project_name: Optional[str] = None,
rule_tag: Optional[str] = None,
update_time: Optional[str] = None,
url: Optional[str] = None) -> AclRule
func GetAclRule(ctx *Context, name string, id IDInput, state *AclRuleState, opts ...ResourceOption) (*AclRule, error)
public static AclRule Get(string name, Input<string> id, AclRuleState? state, CustomResourceOptions? opts = null)
public static AclRule get(String name, Output<String> id, AclRuleState state, CustomResourceOptions options)
resources: _: type: volcengine:waf:AclRule 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.
- Accurate
Group AclRule Accurate Group - Advanced conditions.
- Acl
Type string - The type of access control rules.
- Action string
- Action to be taken on requests that match the rule.
- Advanced int
- Whether to set advanced conditions.
- Client
Ip string - IP address.
- Description string
- Rule description.
- Enable int
- Whether to enable the rule.
- Host
Add intType - Type of domain name addition.
- Host
Group List<int>Ids - The ID of the domain group.
- Host
Groups List<AclRule Host Group> - The list of domain name groups.
- Host
Lists List<string> - Required if HostAddType = 3. Single or multiple domain names are supported.
- Ip
Add intType - Type of IP address addition.
- Ip
Group List<int>Ids - Required if IpAddType = 2.
- Ip
Groups List<AclRule Ip Group> - The list of domain name groups.
- Ip
Lists List<string> - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- Ip
Location List<string>Countries - Country or region code.
- Ip
Location List<string>Subregions - Domestic region code.
- Name string
- Rule name.
- Project
Name string - The name of the project to which your domain names belong.
- Rule
Tag string - Rule unique identifier.
- Update
Time string - Update time of the rule.
- Url string
- The path of Matching.
- Accurate
Group AclRule Accurate Group Args - Advanced conditions.
- Acl
Type string - The type of access control rules.
- Action string
- Action to be taken on requests that match the rule.
- Advanced int
- Whether to set advanced conditions.
- Client
Ip string - IP address.
- Description string
- Rule description.
- Enable int
- Whether to enable the rule.
- Host
Add intType - Type of domain name addition.
- Host
Group []intIds - The ID of the domain group.
- Host
Groups []AclRule Host Group Args - The list of domain name groups.
- Host
Lists []string - Required if HostAddType = 3. Single or multiple domain names are supported.
- Ip
Add intType - Type of IP address addition.
- Ip
Group []intIds - Required if IpAddType = 2.
- Ip
Groups []AclRule Ip Group Args - The list of domain name groups.
- Ip
Lists []string - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- Ip
Location []stringCountries - Country or region code.
- Ip
Location []stringSubregions - Domestic region code.
- Name string
- Rule name.
- Project
Name string - The name of the project to which your domain names belong.
- Rule
Tag string - Rule unique identifier.
- Update
Time string - Update time of the rule.
- Url string
- The path of Matching.
- accurate
Group AclRule Accurate Group - Advanced conditions.
- acl
Type String - The type of access control rules.
- action String
- Action to be taken on requests that match the rule.
- advanced Integer
- Whether to set advanced conditions.
- client
Ip String - IP address.
- description String
- Rule description.
- enable Integer
- Whether to enable the rule.
- host
Add IntegerType - Type of domain name addition.
- host
Group List<Integer>Ids - The ID of the domain group.
- host
Groups List<AclRule Host Group> - The list of domain name groups.
- host
Lists List<String> - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip
Add IntegerType - Type of IP address addition.
- ip
Group List<Integer>Ids - Required if IpAddType = 2.
- ip
Groups List<AclRule Ip Group> - The list of domain name groups.
- ip
Lists List<String> - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip
Location List<String>Countries - Country or region code.
- ip
Location List<String>Subregions - Domestic region code.
- name String
- Rule name.
- project
Name String - The name of the project to which your domain names belong.
- rule
Tag String - Rule unique identifier.
- update
Time String - Update time of the rule.
- url String
- The path of Matching.
- accurate
Group AclRule Accurate Group - Advanced conditions.
- acl
Type string - The type of access control rules.
- action string
- Action to be taken on requests that match the rule.
- advanced number
- Whether to set advanced conditions.
- client
Ip string - IP address.
- description string
- Rule description.
- enable number
- Whether to enable the rule.
- host
Add numberType - Type of domain name addition.
- host
Group number[]Ids - The ID of the domain group.
- host
Groups AclRule Host Group[] - The list of domain name groups.
- host
Lists string[] - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip
Add numberType - Type of IP address addition.
- ip
Group number[]Ids - Required if IpAddType = 2.
- ip
Groups AclRule Ip Group[] - The list of domain name groups.
- ip
Lists string[] - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip
Location string[]Countries - Country or region code.
- ip
Location string[]Subregions - Domestic region code.
- name string
- Rule name.
- project
Name string - The name of the project to which your domain names belong.
- rule
Tag string - Rule unique identifier.
- update
Time string - Update time of the rule.
- url string
- The path of Matching.
- accurate_
group AclRule Accurate Group Args - Advanced conditions.
- acl_
type str - The type of access control rules.
- action str
- Action to be taken on requests that match the rule.
- advanced int
- Whether to set advanced conditions.
- client_
ip str - IP address.
- description str
- Rule description.
- enable int
- Whether to enable the rule.
- host_
add_ inttype - Type of domain name addition.
- host_
group_ Sequence[int]ids - The ID of the domain group.
- host_
groups Sequence[AclRule Host Group Args] - The list of domain name groups.
- host_
lists Sequence[str] - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip_
add_ inttype - Type of IP address addition.
- ip_
group_ Sequence[int]ids - Required if IpAddType = 2.
- ip_
groups Sequence[AclRule Ip Group Args] - The list of domain name groups.
- ip_
lists Sequence[str] - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip_
location_ Sequence[str]countries - Country or region code.
- ip_
location_ Sequence[str]subregions - Domestic region code.
- name str
- Rule name.
- project_
name str - The name of the project to which your domain names belong.
- rule_
tag str - Rule unique identifier.
- update_
time str - Update time of the rule.
- url str
- The path of Matching.
- accurate
Group Property Map - Advanced conditions.
- acl
Type String - The type of access control rules.
- action String
- Action to be taken on requests that match the rule.
- advanced Number
- Whether to set advanced conditions.
- client
Ip String - IP address.
- description String
- Rule description.
- enable Number
- Whether to enable the rule.
- host
Add NumberType - Type of domain name addition.
- host
Group List<Number>Ids - The ID of the domain group.
- host
Groups List<Property Map> - The list of domain name groups.
- host
Lists List<String> - Required if HostAddType = 3. Single or multiple domain names are supported.
- ip
Add NumberType - Type of IP address addition.
- ip
Group List<Number>Ids - Required if IpAddType = 2.
- ip
Groups List<Property Map> - The list of domain name groups.
- ip
Lists List<String> - Required if IpAddType = 3. Single or multiple IP addresses are supported.
- ip
Location List<String>Countries - Country or region code.
- ip
Location List<String>Subregions - Domestic region code.
- name String
- Rule name.
- project
Name String - The name of the project to which your domain names belong.
- rule
Tag String - Rule unique identifier.
- update
Time String - Update time of the rule.
- url String
- The path of Matching.
Supporting Types
AclRuleAccurateGroup, AclRuleAccurateGroupArgs
- Accurate
Rules List<AclRule Accurate Group Accurate Rule> - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- Accurate
Rules []AclRule Accurate Group Accurate Rule - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<AclRule Accurate Group Accurate Rule> - Details of advanced conditions.
- logic Integer
- The logical relationship of advanced conditions.
- accurate
Rules AclRule Accurate Group Accurate Rule[] - Details of advanced conditions.
- logic number
- The logical relationship of advanced conditions.
- accurate_
rules Sequence[AclRule Accurate Group Accurate Rule] - Details of advanced conditions.
- logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<Property Map> - Details of advanced conditions.
- logic Number
- The logical relationship of advanced conditions.
AclRuleAccurateGroupAccurateRule, AclRuleAccurateGroupAccurateRuleArgs
- Http
Obj string - The HTTP object to be added to the advanced conditions.
- Obj
Type int - The matching field for HTTP objects.
- Opretar int
- The logical operator for the condition.
- Property int
- Operate the properties of the http object.
- Value
String string - The value to be matched.
- Http
Obj string - The HTTP object to be added to the advanced conditions.
- Obj
Type int - The matching field for HTTP objects.
- Opretar int
- The logical operator for the condition.
- Property int
- Operate the properties of the http object.
- Value
String string - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Integer - The matching field for HTTP objects.
- opretar Integer
- The logical operator for the condition.
- property Integer
- Operate the properties of the http object.
- value
String String - The value to be matched.
- http
Obj string - The HTTP object to be added to the advanced conditions.
- obj
Type number - The matching field for HTTP objects.
- opretar number
- The logical operator for the condition.
- property number
- Operate the properties of the http object.
- value
String string - The value to be matched.
- http_
obj str - The HTTP object to be added to the advanced conditions.
- obj_
type int - The matching field for HTTP objects.
- opretar int
- The logical operator for the condition.
- property int
- Operate the properties of the http object.
- value_
string str - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Number - The matching field for HTTP objects.
- opretar Number
- The logical operator for the condition.
- property Number
- Operate the properties of the http object.
- value
String String - The value to be matched.
AclRuleHostGroup, AclRuleHostGroupArgs
- Host
Group intId - The ID of the domain group.
- Name string
- Rule name.
- Host
Group intId - The ID of the domain group.
- Name string
- Rule name.
- host
Group IntegerId - The ID of the domain group.
- name String
- Rule name.
- host
Group numberId - The ID of the domain group.
- name string
- Rule name.
- host_
group_ intid - The ID of the domain group.
- name str
- Rule name.
- host
Group NumberId - The ID of the domain group.
- name String
- Rule name.
AclRuleIpGroup, AclRuleIpGroupArgs
- ip_
group_ intid - Required if IpAddType = 2.
- name str
- Rule name.
Import
WafAclRule can be imported using the id, e.g.
$ pulumi import volcengine:waf/aclRule:AclRule default resource_id:AclType
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.