1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. AntiddosPacketFilterConfig
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

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",
    },
});
Copy
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",
    })
Copy
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
	})
}
Copy
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",
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. AntiddosPacketFilterConfigArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. AntiddosPacketFilterConfigArgs
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. AntiddosPacketFilterConfigArgs
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. 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:

InstanceId This property is required. string
resource id.
PacketFilterConfig This property is required. AntiddosPacketFilterConfigPacketFilterConfig
Feature filtering configuration.
AntiddosPacketFilterConfigId string
ID of the resource.
InstanceId This property is required. string
resource id.
PacketFilterConfig This property is required. AntiddosPacketFilterConfigPacketFilterConfigArgs
Feature filtering configuration.
AntiddosPacketFilterConfigId string
ID of the resource.
instanceId This property is required. String
resource id.
packetFilterConfig This property is required. AntiddosPacketFilterConfigPacketFilterConfig
Feature filtering configuration.
antiddosPacketFilterConfigId String
ID of the resource.
instanceId This property is required. string
resource id.
packetFilterConfig This property is required. AntiddosPacketFilterConfigPacketFilterConfig
Feature filtering configuration.
antiddosPacketFilterConfigId string
ID of the resource.
instance_id This property is required. str
resource id.
packet_filter_config This property is required. AntiddosPacketFilterConfigPacketFilterConfigArgs
Feature filtering configuration.
antiddos_packet_filter_config_id str
ID of the resource.
instanceId This property is required. String
resource id.
packetFilterConfig This property is required. Property Map
Feature filtering configuration.
antiddosPacketFilterConfigId String
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 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.
The following state arguments are supported:
AntiddosPacketFilterConfigId string
ID of the resource.
InstanceId string
resource id.
PacketFilterConfig AntiddosPacketFilterConfigPacketFilterConfig
Feature filtering configuration.
AntiddosPacketFilterConfigId string
ID of the resource.
InstanceId string
resource id.
PacketFilterConfig AntiddosPacketFilterConfigPacketFilterConfigArgs
Feature filtering configuration.
antiddosPacketFilterConfigId String
ID of the resource.
instanceId String
resource id.
packetFilterConfig AntiddosPacketFilterConfigPacketFilterConfig
Feature filtering configuration.
antiddosPacketFilterConfigId string
ID of the resource.
instanceId string
resource id.
packetFilterConfig AntiddosPacketFilterConfigPacketFilterConfig
Feature filtering configuration.
antiddosPacketFilterConfigId String
ID of the resource.
instanceId String
resource id.
packetFilterConfig Property Map
Feature filtering configuration.

Supporting Types

AntiddosPacketFilterConfigPacketFilterConfig
, AntiddosPacketFilterConfigPacketFilterConfigArgs

Action This property is required. 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)].
DportEnd This property is required. double
end destination port, ranging from 0 to 65535.
DportStart This property is required. double
Starting destination port, ranging from 0 to 65535.
PktlenMax This property is required. double
The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
PktlenMin This property is required. double
Minimum message length, ranging from 1 to 1500.
Protocol This property is required. string
Protocol, value [TCP udp icmp all].
SportEnd This property is required. double
End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
SportStart This property is required. 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].
IsNot double
Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
IsNot2 double
Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
MatchBegin string
Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
MatchBegin2 string
Second detection position, value [begin_l5 (load) no_match (mismatch)].
MatchLogic 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)].
MatchType string
Detection type, value [Sunday (keyword) pcre (regular expression)].
MatchType2 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].
PktLenGt double
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 This property is required. 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)].
DportEnd This property is required. float64
end destination port, ranging from 0 to 65535.
DportStart This property is required. float64
Starting destination port, ranging from 0 to 65535.
PktlenMax This property is required. float64
The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
PktlenMin This property is required. float64
Minimum message length, ranging from 1 to 1500.
Protocol This property is required. string
Protocol, value [TCP udp icmp all].
SportEnd This property is required. float64
End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
SportStart This property is required. 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].
IsNot float64
Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
IsNot2 float64
Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
MatchBegin string
Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
MatchBegin2 string
Second detection position, value [begin_l5 (load) no_match (mismatch)].
MatchLogic 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)].
MatchType string
Detection type, value [Sunday (keyword) pcre (regular expression)].
MatchType2 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].
PktLenGt float64
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 This property is required. 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)].
dportEnd This property is required. Double
end destination port, ranging from 0 to 65535.
dportStart This property is required. Double
Starting destination port, ranging from 0 to 65535.
pktlenMax This property is required. Double
The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
pktlenMin This property is required. Double
Minimum message length, ranging from 1 to 1500.
protocol This property is required. String
Protocol, value [TCP udp icmp all].
sportEnd This property is required. Double
End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
sportStart This property is required. 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].
isNot Double
Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
isNot2 Double
Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
matchBegin String
Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
matchBegin2 String
Second detection position, value [begin_l5 (load) no_match (mismatch)].
matchLogic 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)].
matchType String
Detection type, value [Sunday (keyword) pcre (regular expression)].
matchType2 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].
pktLenGt Double
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 This property is required. 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)].
dportEnd This property is required. number
end destination port, ranging from 0 to 65535.
dportStart This property is required. number
Starting destination port, ranging from 0 to 65535.
pktlenMax This property is required. number
The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
pktlenMin This property is required. number
Minimum message length, ranging from 1 to 1500.
protocol This property is required. string
Protocol, value [TCP udp icmp all].
sportEnd This property is required. number
End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
sportStart This property is required. 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].
isNot number
Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
isNot2 number
Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
matchBegin string
Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
matchBegin2 string
Second detection position, value [begin_l5 (load) no_match (mismatch)].
matchLogic 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)].
matchType string
Detection type, value [Sunday (keyword) pcre (regular expression)].
matchType2 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].
pktLenGt number
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 This property is required. 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 This property is required. float
end destination port, ranging from 0 to 65535.
dport_start This property is required. float
Starting destination port, ranging from 0 to 65535.
pktlen_max This property is required. float
The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
pktlen_min This property is required. float
Minimum message length, ranging from 1 to 1500.
protocol This property is required. str
Protocol, value [TCP udp icmp all].
sport_end This property is required. float
End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
sport_start This property is required. 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_gt float
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 This property is required. 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)].
dportEnd This property is required. Number
end destination port, ranging from 0 to 65535.
dportStart This property is required. Number
Starting destination port, ranging from 0 to 65535.
pktlenMax This property is required. Number
The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
pktlenMin This property is required. Number
Minimum message length, ranging from 1 to 1500.
protocol This property is required. String
Protocol, value [TCP udp icmp all].
sportEnd This property is required. Number
End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
sportStart This property is required. 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].
isNot Number
Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)].
isNot2 Number
Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)].
matchBegin String
Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)].
matchBegin2 String
Second detection position, value [begin_l5 (load) no_match (mismatch)].
matchLogic 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)].
matchType String
Detection type, value [Sunday (keyword) pcre (regular expression)].
matchType2 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].
pktLenGt Number
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
Copy

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.