1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. AntiddosPacketFilterConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.AntiddosPacketFilterConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    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.
    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
    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.
    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 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 double
    end destination port, ranging from 0 to 65535.
    DportStart double
    Starting destination port, ranging from 0 to 65535.
    PktlenMax double
    The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
    PktlenMin double
    Minimum message length, ranging from 1 to 1500.
    Protocol string
    Protocol, value [TCP udp icmp all].
    SportEnd double
    End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
    SportStart 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 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 float64
    end destination port, ranging from 0 to 65535.
    DportStart float64
    Starting destination port, ranging from 0 to 65535.
    PktlenMax float64
    The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
    PktlenMin float64
    Minimum message length, ranging from 1 to 1500.
    Protocol string
    Protocol, value [TCP udp icmp all].
    SportEnd float64
    End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
    SportStart 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 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 Double
    end destination port, ranging from 0 to 65535.
    dportStart Double
    Starting destination port, ranging from 0 to 65535.
    pktlenMax Double
    The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
    pktlenMin Double
    Minimum message length, ranging from 1 to 1500.
    protocol String
    Protocol, value [TCP udp icmp all].
    sportEnd Double
    End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
    sportStart 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 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 number
    end destination port, ranging from 0 to 65535.
    dportStart number
    Starting destination port, ranging from 0 to 65535.
    pktlenMax number
    The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
    pktlenMin number
    Minimum message length, ranging from 1 to 1500.
    protocol string
    Protocol, value [TCP udp icmp all].
    sportEnd number
    End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
    sportStart 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 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_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 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 Number
    end destination port, ranging from 0 to 65535.
    dportStart Number
    Starting destination port, ranging from 0 to 65535.
    pktlenMax Number
    The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length.
    pktlenMin Number
    Minimum message length, ranging from 1 to 1500.
    protocol String
    Protocol, value [TCP udp icmp all].
    sportEnd Number
    End source port, values range from 1 to 65535, must be greater than or equal to the start source port.
    sportStart 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
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack