tencentcloud.AntiddosPacketFilterConfig
Explore with Pulumi AI
Provides a resource to create a antiddos packet filter config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const packetFilterConfig = new tencentcloud.AntiddosPacketFilterConfig("packetFilterConfig", {
instanceId: "bgp-00000ry7",
packetFilterConfig: {
action: "drop",
depth: 1,
dportEnd: 80,
dportStart: 80,
isNot: 0,
matchBegin: "begin_l5",
matchType: "pcre",
offset: 1,
pktlenMax: 1400,
pktlenMin: 1400,
protocol: "all",
sportEnd: 8080,
sportStart: 8080,
str: "a",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
packet_filter_config = tencentcloud.AntiddosPacketFilterConfig("packetFilterConfig",
instance_id="bgp-00000ry7",
packet_filter_config={
"action": "drop",
"depth": 1,
"dport_end": 80,
"dport_start": 80,
"is_not": 0,
"match_begin": "begin_l5",
"match_type": "pcre",
"offset": 1,
"pktlen_max": 1400,
"pktlen_min": 1400,
"protocol": "all",
"sport_end": 8080,
"sport_start": 8080,
"str": "a",
})
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.NewAntiddosPacketFilterConfig(ctx, "packetFilterConfig", &tencentcloud.AntiddosPacketFilterConfigArgs{
InstanceId: pulumi.String("bgp-00000ry7"),
PacketFilterConfig: &tencentcloud.AntiddosPacketFilterConfigPacketFilterConfigArgs{
Action: pulumi.String("drop"),
Depth: pulumi.Float64(1),
DportEnd: pulumi.Float64(80),
DportStart: pulumi.Float64(80),
IsNot: pulumi.Float64(0),
MatchBegin: pulumi.String("begin_l5"),
MatchType: pulumi.String("pcre"),
Offset: pulumi.Float64(1),
PktlenMax: pulumi.Float64(1400),
PktlenMin: pulumi.Float64(1400),
Protocol: pulumi.String("all"),
SportEnd: pulumi.Float64(8080),
SportStart: pulumi.Float64(8080),
Str: pulumi.String("a"),
},
})
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 packetFilterConfig = new Tencentcloud.AntiddosPacketFilterConfig("packetFilterConfig", new()
{
InstanceId = "bgp-00000ry7",
PacketFilterConfig = new Tencentcloud.Inputs.AntiddosPacketFilterConfigPacketFilterConfigArgs
{
Action = "drop",
Depth = 1,
DportEnd = 80,
DportStart = 80,
IsNot = 0,
MatchBegin = "begin_l5",
MatchType = "pcre",
Offset = 1,
PktlenMax = 1400,
PktlenMin = 1400,
Protocol = "all",
SportEnd = 8080,
SportStart = 8080,
Str = "a",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AntiddosPacketFilterConfig;
import com.pulumi.tencentcloud.AntiddosPacketFilterConfigArgs;
import com.pulumi.tencentcloud.inputs.AntiddosPacketFilterConfigPacketFilterConfigArgs;
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 packetFilterConfig = new AntiddosPacketFilterConfig("packetFilterConfig", AntiddosPacketFilterConfigArgs.builder()
.instanceId("bgp-00000ry7")
.packetFilterConfig(AntiddosPacketFilterConfigPacketFilterConfigArgs.builder()
.action("drop")
.depth(1)
.dportEnd(80)
.dportStart(80)
.isNot(0)
.matchBegin("begin_l5")
.matchType("pcre")
.offset(1)
.pktlenMax(1400)
.pktlenMin(1400)
.protocol("all")
.sportEnd(8080)
.sportStart(8080)
.str("a")
.build())
.build());
}
}
resources:
packetFilterConfig:
type: tencentcloud:AntiddosPacketFilterConfig
properties:
instanceId: bgp-00000ry7
packetFilterConfig:
action: drop
depth: 1
dportEnd: 80
dportStart: 80
isNot: 0
matchBegin: begin_l5
matchType: pcre
offset: 1
pktlenMax: 1400
pktlenMin: 1400
protocol: all
sportEnd: 8080
sportStart: 8080
str: a
Create AntiddosPacketFilterConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AntiddosPacketFilterConfig(name: string, args: AntiddosPacketFilterConfigArgs, opts?: CustomResourceOptions);
@overload
def AntiddosPacketFilterConfig(resource_name: str,
args: AntiddosPacketFilterConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AntiddosPacketFilterConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
packet_filter_config: Optional[AntiddosPacketFilterConfigPacketFilterConfigArgs] = None,
antiddos_packet_filter_config_id: Optional[str] = None)
func NewAntiddosPacketFilterConfig(ctx *Context, name string, args AntiddosPacketFilterConfigArgs, opts ...ResourceOption) (*AntiddosPacketFilterConfig, error)
public AntiddosPacketFilterConfig(string name, AntiddosPacketFilterConfigArgs args, CustomResourceOptions? opts = null)
public AntiddosPacketFilterConfig(String name, AntiddosPacketFilterConfigArgs args)
public AntiddosPacketFilterConfig(String name, AntiddosPacketFilterConfigArgs args, CustomResourceOptions options)
type: tencentcloud:AntiddosPacketFilterConfig
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 AntiddosPacketFilterConfigArgs
- 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 AntiddosPacketFilterConfigArgs
- 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 AntiddosPacketFilterConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AntiddosPacketFilterConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AntiddosPacketFilterConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AntiddosPacketFilterConfig 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 AntiddosPacketFilterConfig resource accepts the following input properties:
- Instance
Id string - resource id.
- Packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config - Feature filtering configuration.
- Antiddos
Packet stringFilter Config Id - ID of the resource.
- Instance
Id string - resource id.
- Packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config Args - Feature filtering configuration.
- Antiddos
Packet stringFilter Config Id - ID of the resource.
- instance
Id String - resource id.
- packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config - Feature filtering configuration.
- antiddos
Packet StringFilter Config Id - ID of the resource.
- instance
Id string - resource id.
- packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config - Feature filtering configuration.
- antiddos
Packet stringFilter Config Id - ID of the resource.
- instance_
id str - resource id.
- packet_
filter_ Antiddosconfig Packet Filter Config Packet Filter Config Args - Feature filtering configuration.
- antiddos_
packet_ strfilter_ config_ id - ID of the resource.
- instance
Id String - resource id.
- packet
Filter Property MapConfig - Feature filtering configuration.
- antiddos
Packet StringFilter Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AntiddosPacketFilterConfig 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 AntiddosPacketFilterConfig Resource
Get an existing AntiddosPacketFilterConfig 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?: AntiddosPacketFilterConfigState, opts?: CustomResourceOptions): AntiddosPacketFilterConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
antiddos_packet_filter_config_id: Optional[str] = None,
instance_id: Optional[str] = None,
packet_filter_config: Optional[AntiddosPacketFilterConfigPacketFilterConfigArgs] = None) -> AntiddosPacketFilterConfig
func GetAntiddosPacketFilterConfig(ctx *Context, name string, id IDInput, state *AntiddosPacketFilterConfigState, opts ...ResourceOption) (*AntiddosPacketFilterConfig, error)
public static AntiddosPacketFilterConfig Get(string name, Input<string> id, AntiddosPacketFilterConfigState? state, CustomResourceOptions? opts = null)
public static AntiddosPacketFilterConfig get(String name, Output<String> id, AntiddosPacketFilterConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:AntiddosPacketFilterConfig 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.
- Antiddos
Packet stringFilter Config Id - ID of the resource.
- Instance
Id string - resource id.
- Packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config - Feature filtering configuration.
- Antiddos
Packet stringFilter Config Id - ID of the resource.
- Instance
Id string - resource id.
- Packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config Args - Feature filtering configuration.
- antiddos
Packet StringFilter Config Id - ID of the resource.
- instance
Id String - resource id.
- packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config - Feature filtering configuration.
- antiddos
Packet stringFilter Config Id - ID of the resource.
- instance
Id string - resource id.
- packet
Filter AntiddosConfig Packet Filter Config Packet Filter Config - Feature filtering configuration.
- antiddos_
packet_ strfilter_ config_ id - ID of the resource.
- instance_
id str - resource id.
- packet_
filter_ Antiddosconfig Packet Filter Config Packet Filter Config Args - Feature filtering configuration.
- antiddos
Packet StringFilter Config Id - ID of the resource.
- instance
Id String - resource id.
- packet
Filter Property MapConfig - Feature filtering configuration.
Supporting Types
AntiddosPacketFilterConfigPacketFilterConfig, AntiddosPacketFilterConfigPacketFilterConfigArgs
- Action string
- Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)].
- Dport
End double - end destination port, ranging from 0 to 65535.
- Dport
Start double - Starting destination port, ranging from 0 to 65535.
- Pktlen
Max double - The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
- Pktlen
Min double - Minimum message length, ranging from 1 to 1500.
- Protocol string
- Protocol, value [TCP udp icmp all].
- Sport
End double - End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
- Sport
Start double - Starting source port, ranging from 0 to 65535.
- Depth double
- The detection depth starting from the detection position, with a value of [0-1500].
- Depth2 double
- The second detection depth starting from the second detection position, with a value of [01500].
- Is
Not double - Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- Is
Not2 double - Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- Match
Begin string - Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
- Match
Begin2 string - Second detection position, value [begin_l5 (load) no_match (mismatch)].
- Match
Logic string - When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)].
- Match
Type string - Detection type, value [Sunday (keyword) pcre (regular expression)].
- Match
Type2 string - The second detection type, with a value of [Sunday (keyword) pcre (regular expression)].
- Offset double
- The offset from the detection position, with a value range of [0, Depth].
- Offset2 double
- The offset from the second detection position, with a value range of [0, Depth2].
- Pkt
Len doubleGt - Greater than message length, value 1+.
- Str string
- Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- Str2 string
- key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- Action string
- Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)].
- Dport
End float64 - end destination port, ranging from 0 to 65535.
- Dport
Start float64 - Starting destination port, ranging from 0 to 65535.
- Pktlen
Max float64 - The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
- Pktlen
Min float64 - Minimum message length, ranging from 1 to 1500.
- Protocol string
- Protocol, value [TCP udp icmp all].
- Sport
End float64 - End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
- Sport
Start float64 - Starting source port, ranging from 0 to 65535.
- Depth float64
- The detection depth starting from the detection position, with a value of [0-1500].
- Depth2 float64
- The second detection depth starting from the second detection position, with a value of [01500].
- Is
Not float64 - Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- Is
Not2 float64 - Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- Match
Begin string - Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
- Match
Begin2 string - Second detection position, value [begin_l5 (load) no_match (mismatch)].
- Match
Logic string - When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)].
- Match
Type string - Detection type, value [Sunday (keyword) pcre (regular expression)].
- Match
Type2 string - The second detection type, with a value of [Sunday (keyword) pcre (regular expression)].
- Offset float64
- The offset from the detection position, with a value range of [0, Depth].
- Offset2 float64
- The offset from the second detection position, with a value range of [0, Depth2].
- Pkt
Len float64Gt - Greater than message length, value 1+.
- Str string
- Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- Str2 string
- key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- action String
- Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)].
- dport
End Double - end destination port, ranging from 0 to 65535.
- dport
Start Double - Starting destination port, ranging from 0 to 65535.
- pktlen
Max Double - The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
- pktlen
Min Double - Minimum message length, ranging from 1 to 1500.
- protocol String
- Protocol, value [TCP udp icmp all].
- sport
End Double - End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
- sport
Start Double - Starting source port, ranging from 0 to 65535.
- depth Double
- The detection depth starting from the detection position, with a value of [0-1500].
- depth2 Double
- The second detection depth starting from the second detection position, with a value of [01500].
- is
Not Double - Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- is
Not2 Double - Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- match
Begin String - Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
- match
Begin2 String - Second detection position, value [begin_l5 (load) no_match (mismatch)].
- match
Logic String - When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)].
- match
Type String - Detection type, value [Sunday (keyword) pcre (regular expression)].
- match
Type2 String - The second detection type, with a value of [Sunday (keyword) pcre (regular expression)].
- offset Double
- The offset from the detection position, with a value range of [0, Depth].
- offset2 Double
- The offset from the second detection position, with a value range of [0, Depth2].
- pkt
Len DoubleGt - Greater than message length, value 1+.
- str String
- Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- str2 String
- key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- action string
- Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)].
- dport
End number - end destination port, ranging from 0 to 65535.
- dport
Start number - Starting destination port, ranging from 0 to 65535.
- pktlen
Max number - The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
- pktlen
Min number - Minimum message length, ranging from 1 to 1500.
- protocol string
- Protocol, value [TCP udp icmp all].
- sport
End number - End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
- sport
Start number - Starting source port, ranging from 0 to 65535.
- depth number
- The detection depth starting from the detection position, with a value of [0-1500].
- depth2 number
- The second detection depth starting from the second detection position, with a value of [01500].
- is
Not number - Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- is
Not2 number - Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- match
Begin string - Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
- match
Begin2 string - Second detection position, value [begin_l5 (load) no_match (mismatch)].
- match
Logic string - When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)].
- match
Type string - Detection type, value [Sunday (keyword) pcre (regular expression)].
- match
Type2 string - The second detection type, with a value of [Sunday (keyword) pcre (regular expression)].
- offset number
- The offset from the detection position, with a value range of [0, Depth].
- offset2 number
- The offset from the second detection position, with a value range of [0, Depth2].
- pkt
Len numberGt - Greater than message length, value 1+.
- str string
- Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- str2 string
- key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- action str
- Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)].
- dport_
end float - end destination port, ranging from 0 to 65535.
- dport_
start float - Starting destination port, ranging from 0 to 65535.
- pktlen_
max float - The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
- pktlen_
min float - Minimum message length, ranging from 1 to 1500.
- protocol str
- Protocol, value [TCP udp icmp all].
- sport_
end float - End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
- sport_
start float - Starting source port, ranging from 0 to 65535.
- depth float
- The detection depth starting from the detection position, with a value of [0-1500].
- depth2 float
- The second detection depth starting from the second detection position, with a value of [01500].
- is_
not float - Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- is_
not2 float - Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- match_
begin str - Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
- match_
begin2 str - Second detection position, value [begin_l5 (load) no_match (mismatch)].
- match_
logic str - When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)].
- match_
type str - Detection type, value [Sunday (keyword) pcre (regular expression)].
- match_
type2 str - The second detection type, with a value of [Sunday (keyword) pcre (regular expression)].
- offset float
- The offset from the detection position, with a value range of [0, Depth].
- offset2 float
- The offset from the second detection position, with a value range of [0, Depth2].
- pkt_
len_ floatgt - Greater than message length, value 1+.
- str str
- Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- str2 str
- key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- action String
- Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)].
- dport
End Number - end destination port, ranging from 0 to 65535.
- dport
Start Number - Starting destination port, ranging from 0 to 65535.
- pktlen
Max Number - The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
- pktlen
Min Number - Minimum message length, ranging from 1 to 1500.
- protocol String
- Protocol, value [TCP udp icmp all].
- sport
End Number - End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
- sport
Start Number - Starting source port, ranging from 0 to 65535.
- depth Number
- The detection depth starting from the detection position, with a value of [0-1500].
- depth2 Number
- The second detection depth starting from the second detection position, with a value of [01500].
- is
Not Number - Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- is
Not2 Number - Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
- match
Begin String - Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
- match
Begin2 String - Second detection position, value [begin_l5 (load) no_match (mismatch)].
- match
Logic String - When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)].
- match
Type String - Detection type, value [Sunday (keyword) pcre (regular expression)].
- match
Type2 String - The second detection type, with a value of [Sunday (keyword) pcre (regular expression)].
- offset Number
- The offset from the detection position, with a value range of [0, Depth].
- offset2 Number
- The offset from the second detection position, with a value range of [0, Depth2].
- pkt
Len NumberGt - Greater than message length, value 1+.
- str String
- Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
- str2 String
- key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;].
Import
antiddos packet_filter_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/antiddosPacketFilterConfig:AntiddosPacketFilterConfig packet_filter_config packet_filter_config_id
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.