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

tencentcloud.DayuDdosPolicy

Explore with Pulumi AI

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

    Use this resource to create dayu DDoS policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const testPolicy = new tencentcloud.DayuDdosPolicy("testPolicy", {
        blackIps: ["1.1.1.1"],
        dropOptions: [{
            badConnThreshold: 100,
            checkSyncConn: true,
            connTimeout: 500,
            dConnLimit: 100,
            dNewLimit: 100,
            dropAbroad: true,
            dropIcmp: true,
            dropOther: true,
            dropTcp: true,
            dropUdp: true,
            icmpMbpsLimit: 100,
            nullConnEnable: true,
            otherMbpsLimit: 100,
            sConnLimit: 100,
            sNewLimit: 100,
            synLimit: 100,
            synRate: 50,
            tcpMbpsLimit: 100,
            udpMbpsLimit: 100,
        }],
        packetFilters: [{
            action: "drop",
            dEndPort: 1500,
            dStartPort: 1000,
            depth: 1000,
            isInclude: true,
            matchBegin: "begin_l5",
            matchType: "pcre",
            offset: 500,
            pktLengthMax: 1400,
            pktLengthMin: 1000,
            protocol: "tcp",
            sEndPort: 2500,
            sStartPort: 2000,
        }],
        portFilters: [{
            action: "drop",
            endPort: 2500,
            kind: 1,
            protocol: "all",
            startPort: 2000,
        }],
        resourceType: "bgpip",
        watermarkFilters: [{
            autoRemove: true,
            offset: 50,
            openSwitch: true,
            tcpPortLists: [
                "2000-3000",
                "3500-4000",
            ],
            udpPortLists: ["5000-6000"],
        }],
        whiteIps: ["2.2.2.2"],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test_policy = tencentcloud.DayuDdosPolicy("testPolicy",
        black_ips=["1.1.1.1"],
        drop_options=[{
            "bad_conn_threshold": 100,
            "check_sync_conn": True,
            "conn_timeout": 500,
            "d_conn_limit": 100,
            "d_new_limit": 100,
            "drop_abroad": True,
            "drop_icmp": True,
            "drop_other": True,
            "drop_tcp": True,
            "drop_udp": True,
            "icmp_mbps_limit": 100,
            "null_conn_enable": True,
            "other_mbps_limit": 100,
            "s_conn_limit": 100,
            "s_new_limit": 100,
            "syn_limit": 100,
            "syn_rate": 50,
            "tcp_mbps_limit": 100,
            "udp_mbps_limit": 100,
        }],
        packet_filters=[{
            "action": "drop",
            "d_end_port": 1500,
            "d_start_port": 1000,
            "depth": 1000,
            "is_include": True,
            "match_begin": "begin_l5",
            "match_type": "pcre",
            "offset": 500,
            "pkt_length_max": 1400,
            "pkt_length_min": 1000,
            "protocol": "tcp",
            "s_end_port": 2500,
            "s_start_port": 2000,
        }],
        port_filters=[{
            "action": "drop",
            "end_port": 2500,
            "kind": 1,
            "protocol": "all",
            "start_port": 2000,
        }],
        resource_type="bgpip",
        watermark_filters=[{
            "auto_remove": True,
            "offset": 50,
            "open_switch": True,
            "tcp_port_lists": [
                "2000-3000",
                "3500-4000",
            ],
            "udp_port_lists": ["5000-6000"],
        }],
        white_ips=["2.2.2.2"])
    
    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.NewDayuDdosPolicy(ctx, "testPolicy", &tencentcloud.DayuDdosPolicyArgs{
    			BlackIps: pulumi.StringArray{
    				pulumi.String("1.1.1.1"),
    			},
    			DropOptions: tencentcloud.DayuDdosPolicyDropOptionArray{
    				&tencentcloud.DayuDdosPolicyDropOptionArgs{
    					BadConnThreshold: pulumi.Float64(100),
    					CheckSyncConn:    pulumi.Bool(true),
    					ConnTimeout:      pulumi.Float64(500),
    					DConnLimit:       pulumi.Float64(100),
    					DNewLimit:        pulumi.Float64(100),
    					DropAbroad:       pulumi.Bool(true),
    					DropIcmp:         pulumi.Bool(true),
    					DropOther:        pulumi.Bool(true),
    					DropTcp:          pulumi.Bool(true),
    					DropUdp:          pulumi.Bool(true),
    					IcmpMbpsLimit:    pulumi.Float64(100),
    					NullConnEnable:   pulumi.Bool(true),
    					OtherMbpsLimit:   pulumi.Float64(100),
    					SConnLimit:       pulumi.Float64(100),
    					SNewLimit:        pulumi.Float64(100),
    					SynLimit:         pulumi.Float64(100),
    					SynRate:          pulumi.Float64(50),
    					TcpMbpsLimit:     pulumi.Float64(100),
    					UdpMbpsLimit:     pulumi.Float64(100),
    				},
    			},
    			PacketFilters: tencentcloud.DayuDdosPolicyPacketFilterArray{
    				&tencentcloud.DayuDdosPolicyPacketFilterArgs{
    					Action:       pulumi.String("drop"),
    					DEndPort:     pulumi.Float64(1500),
    					DStartPort:   pulumi.Float64(1000),
    					Depth:        pulumi.Float64(1000),
    					IsInclude:    pulumi.Bool(true),
    					MatchBegin:   pulumi.String("begin_l5"),
    					MatchType:    pulumi.String("pcre"),
    					Offset:       pulumi.Float64(500),
    					PktLengthMax: pulumi.Float64(1400),
    					PktLengthMin: pulumi.Float64(1000),
    					Protocol:     pulumi.String("tcp"),
    					SEndPort:     pulumi.Float64(2500),
    					SStartPort:   pulumi.Float64(2000),
    				},
    			},
    			PortFilters: tencentcloud.DayuDdosPolicyPortFilterArray{
    				&tencentcloud.DayuDdosPolicyPortFilterArgs{
    					Action:    pulumi.String("drop"),
    					EndPort:   pulumi.Float64(2500),
    					Kind:      pulumi.Float64(1),
    					Protocol:  pulumi.String("all"),
    					StartPort: pulumi.Float64(2000),
    				},
    			},
    			ResourceType: pulumi.String("bgpip"),
    			WatermarkFilters: tencentcloud.DayuDdosPolicyWatermarkFilterArray{
    				&tencentcloud.DayuDdosPolicyWatermarkFilterArgs{
    					AutoRemove: pulumi.Bool(true),
    					Offset:     pulumi.Float64(50),
    					OpenSwitch: pulumi.Bool(true),
    					TcpPortLists: pulumi.StringArray{
    						pulumi.String("2000-3000"),
    						pulumi.String("3500-4000"),
    					},
    					UdpPortLists: pulumi.StringArray{
    						pulumi.String("5000-6000"),
    					},
    				},
    			},
    			WhiteIps: pulumi.StringArray{
    				pulumi.String("2.2.2.2"),
    			},
    		})
    		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 testPolicy = new Tencentcloud.DayuDdosPolicy("testPolicy", new()
        {
            BlackIps = new[]
            {
                "1.1.1.1",
            },
            DropOptions = new[]
            {
                new Tencentcloud.Inputs.DayuDdosPolicyDropOptionArgs
                {
                    BadConnThreshold = 100,
                    CheckSyncConn = true,
                    ConnTimeout = 500,
                    DConnLimit = 100,
                    DNewLimit = 100,
                    DropAbroad = true,
                    DropIcmp = true,
                    DropOther = true,
                    DropTcp = true,
                    DropUdp = true,
                    IcmpMbpsLimit = 100,
                    NullConnEnable = true,
                    OtherMbpsLimit = 100,
                    SConnLimit = 100,
                    SNewLimit = 100,
                    SynLimit = 100,
                    SynRate = 50,
                    TcpMbpsLimit = 100,
                    UdpMbpsLimit = 100,
                },
            },
            PacketFilters = new[]
            {
                new Tencentcloud.Inputs.DayuDdosPolicyPacketFilterArgs
                {
                    Action = "drop",
                    DEndPort = 1500,
                    DStartPort = 1000,
                    Depth = 1000,
                    IsInclude = true,
                    MatchBegin = "begin_l5",
                    MatchType = "pcre",
                    Offset = 500,
                    PktLengthMax = 1400,
                    PktLengthMin = 1000,
                    Protocol = "tcp",
                    SEndPort = 2500,
                    SStartPort = 2000,
                },
            },
            PortFilters = new[]
            {
                new Tencentcloud.Inputs.DayuDdosPolicyPortFilterArgs
                {
                    Action = "drop",
                    EndPort = 2500,
                    Kind = 1,
                    Protocol = "all",
                    StartPort = 2000,
                },
            },
            ResourceType = "bgpip",
            WatermarkFilters = new[]
            {
                new Tencentcloud.Inputs.DayuDdosPolicyWatermarkFilterArgs
                {
                    AutoRemove = true,
                    Offset = 50,
                    OpenSwitch = true,
                    TcpPortLists = new[]
                    {
                        "2000-3000",
                        "3500-4000",
                    },
                    UdpPortLists = new[]
                    {
                        "5000-6000",
                    },
                },
            },
            WhiteIps = new[]
            {
                "2.2.2.2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DayuDdosPolicy;
    import com.pulumi.tencentcloud.DayuDdosPolicyArgs;
    import com.pulumi.tencentcloud.inputs.DayuDdosPolicyDropOptionArgs;
    import com.pulumi.tencentcloud.inputs.DayuDdosPolicyPacketFilterArgs;
    import com.pulumi.tencentcloud.inputs.DayuDdosPolicyPortFilterArgs;
    import com.pulumi.tencentcloud.inputs.DayuDdosPolicyWatermarkFilterArgs;
    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 testPolicy = new DayuDdosPolicy("testPolicy", DayuDdosPolicyArgs.builder()
                .blackIps("1.1.1.1")
                .dropOptions(DayuDdosPolicyDropOptionArgs.builder()
                    .badConnThreshold(100)
                    .checkSyncConn(true)
                    .connTimeout(500)
                    .dConnLimit(100)
                    .dNewLimit(100)
                    .dropAbroad(true)
                    .dropIcmp(true)
                    .dropOther(true)
                    .dropTcp(true)
                    .dropUdp(true)
                    .icmpMbpsLimit(100)
                    .nullConnEnable(true)
                    .otherMbpsLimit(100)
                    .sConnLimit(100)
                    .sNewLimit(100)
                    .synLimit(100)
                    .synRate(50)
                    .tcpMbpsLimit(100)
                    .udpMbpsLimit(100)
                    .build())
                .packetFilters(DayuDdosPolicyPacketFilterArgs.builder()
                    .action("drop")
                    .dEndPort(1500)
                    .dStartPort(1000)
                    .depth(1000)
                    .isInclude(true)
                    .matchBegin("begin_l5")
                    .matchType("pcre")
                    .offset(500)
                    .pktLengthMax(1400)
                    .pktLengthMin(1000)
                    .protocol("tcp")
                    .sEndPort(2500)
                    .sStartPort(2000)
                    .build())
                .portFilters(DayuDdosPolicyPortFilterArgs.builder()
                    .action("drop")
                    .endPort("2500")
                    .kind(1)
                    .protocol("all")
                    .startPort("2000")
                    .build())
                .resourceType("bgpip")
                .watermarkFilters(DayuDdosPolicyWatermarkFilterArgs.builder()
                    .autoRemove(true)
                    .offset(50)
                    .openSwitch(true)
                    .tcpPortLists(                
                        "2000-3000",
                        "3500-4000")
                    .udpPortLists("5000-6000")
                    .build())
                .whiteIps("2.2.2.2")
                .build());
    
        }
    }
    
    resources:
      testPolicy:
        type: tencentcloud:DayuDdosPolicy
        properties:
          blackIps:
            - 1.1.1.1
          dropOptions:
            - badConnThreshold: 100
              checkSyncConn: true
              connTimeout: 500
              dConnLimit: 100
              dNewLimit: 100
              dropAbroad: true
              dropIcmp: true
              dropOther: true
              dropTcp: true
              dropUdp: true
              icmpMbpsLimit: 100
              nullConnEnable: true
              otherMbpsLimit: 100
              sConnLimit: 100
              sNewLimit: 100
              synLimit: 100
              synRate: 50
              tcpMbpsLimit: 100
              udpMbpsLimit: 100
          packetFilters:
            - action: drop
              dEndPort: 1500
              dStartPort: 1000
              depth: 1000
              isInclude: true
              matchBegin: begin_l5
              matchType: pcre
              offset: 500
              pktLengthMax: 1400
              pktLengthMin: 1000
              protocol: tcp
              sEndPort: 2500
              sStartPort: 2000
          portFilters:
            - action: drop
              endPort: '2500'
              kind: 1
              protocol: all
              startPort: '2000'
          resourceType: bgpip
          watermarkFilters:
            - autoRemove: true
              offset: 50
              openSwitch: true
              tcpPortLists:
                - 2000-3000
                - 3500-4000
              udpPortLists:
                - 5000-6000
          whiteIps:
            - 2.2.2.2
    

    Create DayuDdosPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DayuDdosPolicy(name: string, args: DayuDdosPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def DayuDdosPolicy(resource_name: str,
                       args: DayuDdosPolicyArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DayuDdosPolicy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       drop_options: Optional[Sequence[DayuDdosPolicyDropOptionArgs]] = None,
                       resource_type: Optional[str] = None,
                       black_ips: Optional[Sequence[str]] = None,
                       dayu_ddos_policy_id: Optional[str] = None,
                       name: Optional[str] = None,
                       packet_filters: Optional[Sequence[DayuDdosPolicyPacketFilterArgs]] = None,
                       port_filters: Optional[Sequence[DayuDdosPolicyPortFilterArgs]] = None,
                       watermark_filters: Optional[Sequence[DayuDdosPolicyWatermarkFilterArgs]] = None,
                       white_ips: Optional[Sequence[str]] = None)
    func NewDayuDdosPolicy(ctx *Context, name string, args DayuDdosPolicyArgs, opts ...ResourceOption) (*DayuDdosPolicy, error)
    public DayuDdosPolicy(string name, DayuDdosPolicyArgs args, CustomResourceOptions? opts = null)
    public DayuDdosPolicy(String name, DayuDdosPolicyArgs args)
    public DayuDdosPolicy(String name, DayuDdosPolicyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DayuDdosPolicy
    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 DayuDdosPolicyArgs
    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 DayuDdosPolicyArgs
    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 DayuDdosPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DayuDdosPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DayuDdosPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DayuDdosPolicy 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 DayuDdosPolicy resource accepts the following input properties:

    DropOptions List<DayuDdosPolicyDropOption>
    Option list of abnormal check of the DDos policy, should set at least one policy.
    ResourceType string
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    BlackIps List<string>
    Black IP list.
    DayuDdosPolicyId string
    Id of the watermark.
    Name string
    Name of the DDoS policy. Length should between 1 and 32.
    PacketFilters List<DayuDdosPolicyPacketFilter>
    Message filter options list.
    PortFilters List<DayuDdosPolicyPortFilter>
    Port limits of abnormal check of the DDos policy.
    WatermarkFilters List<DayuDdosPolicyWatermarkFilter>
    Watermark policy options, and only support one watermark policy at most.
    WhiteIps List<string>
    White IP list.
    DropOptions []DayuDdosPolicyDropOptionArgs
    Option list of abnormal check of the DDos policy, should set at least one policy.
    ResourceType string
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    BlackIps []string
    Black IP list.
    DayuDdosPolicyId string
    Id of the watermark.
    Name string
    Name of the DDoS policy. Length should between 1 and 32.
    PacketFilters []DayuDdosPolicyPacketFilterArgs
    Message filter options list.
    PortFilters []DayuDdosPolicyPortFilterArgs
    Port limits of abnormal check of the DDos policy.
    WatermarkFilters []DayuDdosPolicyWatermarkFilterArgs
    Watermark policy options, and only support one watermark policy at most.
    WhiteIps []string
    White IP list.
    dropOptions List<DayuDdosPolicyDropOption>
    Option list of abnormal check of the DDos policy, should set at least one policy.
    resourceType String
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    blackIps List<String>
    Black IP list.
    dayuDdosPolicyId String
    Id of the watermark.
    name String
    Name of the DDoS policy. Length should between 1 and 32.
    packetFilters List<DayuDdosPolicyPacketFilter>
    Message filter options list.
    portFilters List<DayuDdosPolicyPortFilter>
    Port limits of abnormal check of the DDos policy.
    watermarkFilters List<DayuDdosPolicyWatermarkFilter>
    Watermark policy options, and only support one watermark policy at most.
    whiteIps List<String>
    White IP list.
    dropOptions DayuDdosPolicyDropOption[]
    Option list of abnormal check of the DDos policy, should set at least one policy.
    resourceType string
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    blackIps string[]
    Black IP list.
    dayuDdosPolicyId string
    Id of the watermark.
    name string
    Name of the DDoS policy. Length should between 1 and 32.
    packetFilters DayuDdosPolicyPacketFilter[]
    Message filter options list.
    portFilters DayuDdosPolicyPortFilter[]
    Port limits of abnormal check of the DDos policy.
    watermarkFilters DayuDdosPolicyWatermarkFilter[]
    Watermark policy options, and only support one watermark policy at most.
    whiteIps string[]
    White IP list.
    drop_options Sequence[DayuDdosPolicyDropOptionArgs]
    Option list of abnormal check of the DDos policy, should set at least one policy.
    resource_type str
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    black_ips Sequence[str]
    Black IP list.
    dayu_ddos_policy_id str
    Id of the watermark.
    name str
    Name of the DDoS policy. Length should between 1 and 32.
    packet_filters Sequence[DayuDdosPolicyPacketFilterArgs]
    Message filter options list.
    port_filters Sequence[DayuDdosPolicyPortFilterArgs]
    Port limits of abnormal check of the DDos policy.
    watermark_filters Sequence[DayuDdosPolicyWatermarkFilterArgs]
    Watermark policy options, and only support one watermark policy at most.
    white_ips Sequence[str]
    White IP list.
    dropOptions List<Property Map>
    Option list of abnormal check of the DDos policy, should set at least one policy.
    resourceType String
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    blackIps List<String>
    Black IP list.
    dayuDdosPolicyId String
    Id of the watermark.
    name String
    Name of the DDoS policy. Length should between 1 and 32.
    packetFilters List<Property Map>
    Message filter options list.
    portFilters List<Property Map>
    Port limits of abnormal check of the DDos policy.
    watermarkFilters List<Property Map>
    Watermark policy options, and only support one watermark policy at most.
    whiteIps List<String>
    White IP list.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DayuDdosPolicy resource produces the following output properties:

    CreateTime string
    Create time of the DDoS policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    Id of policy.
    SceneId string
    Id of policy case that the DDoS policy works for.
    WatermarkKeys List<DayuDdosPolicyWatermarkKey>
    Watermark content.
    CreateTime string
    Create time of the DDoS policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    Id of policy.
    SceneId string
    Id of policy case that the DDoS policy works for.
    WatermarkKeys []DayuDdosPolicyWatermarkKey
    Watermark content.
    createTime String
    Create time of the DDoS policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    Id of policy.
    sceneId String
    Id of policy case that the DDoS policy works for.
    watermarkKeys List<DayuDdosPolicyWatermarkKey>
    Watermark content.
    createTime string
    Create time of the DDoS policy.
    id string
    The provider-assigned unique ID for this managed resource.
    policyId string
    Id of policy.
    sceneId string
    Id of policy case that the DDoS policy works for.
    watermarkKeys DayuDdosPolicyWatermarkKey[]
    Watermark content.
    create_time str
    Create time of the DDoS policy.
    id str
    The provider-assigned unique ID for this managed resource.
    policy_id str
    Id of policy.
    scene_id str
    Id of policy case that the DDoS policy works for.
    watermark_keys Sequence[DayuDdosPolicyWatermarkKey]
    Watermark content.
    createTime String
    Create time of the DDoS policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    Id of policy.
    sceneId String
    Id of policy case that the DDoS policy works for.
    watermarkKeys List<Property Map>
    Watermark content.

    Look up Existing DayuDdosPolicy Resource

    Get an existing DayuDdosPolicy 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?: DayuDdosPolicyState, opts?: CustomResourceOptions): DayuDdosPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            black_ips: Optional[Sequence[str]] = None,
            create_time: Optional[str] = None,
            dayu_ddos_policy_id: Optional[str] = None,
            drop_options: Optional[Sequence[DayuDdosPolicyDropOptionArgs]] = None,
            name: Optional[str] = None,
            packet_filters: Optional[Sequence[DayuDdosPolicyPacketFilterArgs]] = None,
            policy_id: Optional[str] = None,
            port_filters: Optional[Sequence[DayuDdosPolicyPortFilterArgs]] = None,
            resource_type: Optional[str] = None,
            scene_id: Optional[str] = None,
            watermark_filters: Optional[Sequence[DayuDdosPolicyWatermarkFilterArgs]] = None,
            watermark_keys: Optional[Sequence[DayuDdosPolicyWatermarkKeyArgs]] = None,
            white_ips: Optional[Sequence[str]] = None) -> DayuDdosPolicy
    func GetDayuDdosPolicy(ctx *Context, name string, id IDInput, state *DayuDdosPolicyState, opts ...ResourceOption) (*DayuDdosPolicy, error)
    public static DayuDdosPolicy Get(string name, Input<string> id, DayuDdosPolicyState? state, CustomResourceOptions? opts = null)
    public static DayuDdosPolicy get(String name, Output<String> id, DayuDdosPolicyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DayuDdosPolicy    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:
    BlackIps List<string>
    Black IP list.
    CreateTime string
    Create time of the DDoS policy.
    DayuDdosPolicyId string
    Id of the watermark.
    DropOptions List<DayuDdosPolicyDropOption>
    Option list of abnormal check of the DDos policy, should set at least one policy.
    Name string
    Name of the DDoS policy. Length should between 1 and 32.
    PacketFilters List<DayuDdosPolicyPacketFilter>
    Message filter options list.
    PolicyId string
    Id of policy.
    PortFilters List<DayuDdosPolicyPortFilter>
    Port limits of abnormal check of the DDos policy.
    ResourceType string
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    SceneId string
    Id of policy case that the DDoS policy works for.
    WatermarkFilters List<DayuDdosPolicyWatermarkFilter>
    Watermark policy options, and only support one watermark policy at most.
    WatermarkKeys List<DayuDdosPolicyWatermarkKey>
    Watermark content.
    WhiteIps List<string>
    White IP list.
    BlackIps []string
    Black IP list.
    CreateTime string
    Create time of the DDoS policy.
    DayuDdosPolicyId string
    Id of the watermark.
    DropOptions []DayuDdosPolicyDropOptionArgs
    Option list of abnormal check of the DDos policy, should set at least one policy.
    Name string
    Name of the DDoS policy. Length should between 1 and 32.
    PacketFilters []DayuDdosPolicyPacketFilterArgs
    Message filter options list.
    PolicyId string
    Id of policy.
    PortFilters []DayuDdosPolicyPortFilterArgs
    Port limits of abnormal check of the DDos policy.
    ResourceType string
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    SceneId string
    Id of policy case that the DDoS policy works for.
    WatermarkFilters []DayuDdosPolicyWatermarkFilterArgs
    Watermark policy options, and only support one watermark policy at most.
    WatermarkKeys []DayuDdosPolicyWatermarkKeyArgs
    Watermark content.
    WhiteIps []string
    White IP list.
    blackIps List<String>
    Black IP list.
    createTime String
    Create time of the DDoS policy.
    dayuDdosPolicyId String
    Id of the watermark.
    dropOptions List<DayuDdosPolicyDropOption>
    Option list of abnormal check of the DDos policy, should set at least one policy.
    name String
    Name of the DDoS policy. Length should between 1 and 32.
    packetFilters List<DayuDdosPolicyPacketFilter>
    Message filter options list.
    policyId String
    Id of policy.
    portFilters List<DayuDdosPolicyPortFilter>
    Port limits of abnormal check of the DDos policy.
    resourceType String
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    sceneId String
    Id of policy case that the DDoS policy works for.
    watermarkFilters List<DayuDdosPolicyWatermarkFilter>
    Watermark policy options, and only support one watermark policy at most.
    watermarkKeys List<DayuDdosPolicyWatermarkKey>
    Watermark content.
    whiteIps List<String>
    White IP list.
    blackIps string[]
    Black IP list.
    createTime string
    Create time of the DDoS policy.
    dayuDdosPolicyId string
    Id of the watermark.
    dropOptions DayuDdosPolicyDropOption[]
    Option list of abnormal check of the DDos policy, should set at least one policy.
    name string
    Name of the DDoS policy. Length should between 1 and 32.
    packetFilters DayuDdosPolicyPacketFilter[]
    Message filter options list.
    policyId string
    Id of policy.
    portFilters DayuDdosPolicyPortFilter[]
    Port limits of abnormal check of the DDos policy.
    resourceType string
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    sceneId string
    Id of policy case that the DDoS policy works for.
    watermarkFilters DayuDdosPolicyWatermarkFilter[]
    Watermark policy options, and only support one watermark policy at most.
    watermarkKeys DayuDdosPolicyWatermarkKey[]
    Watermark content.
    whiteIps string[]
    White IP list.
    black_ips Sequence[str]
    Black IP list.
    create_time str
    Create time of the DDoS policy.
    dayu_ddos_policy_id str
    Id of the watermark.
    drop_options Sequence[DayuDdosPolicyDropOptionArgs]
    Option list of abnormal check of the DDos policy, should set at least one policy.
    name str
    Name of the DDoS policy. Length should between 1 and 32.
    packet_filters Sequence[DayuDdosPolicyPacketFilterArgs]
    Message filter options list.
    policy_id str
    Id of policy.
    port_filters Sequence[DayuDdosPolicyPortFilterArgs]
    Port limits of abnormal check of the DDos policy.
    resource_type str
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    scene_id str
    Id of policy case that the DDoS policy works for.
    watermark_filters Sequence[DayuDdosPolicyWatermarkFilterArgs]
    Watermark policy options, and only support one watermark policy at most.
    watermark_keys Sequence[DayuDdosPolicyWatermarkKeyArgs]
    Watermark content.
    white_ips Sequence[str]
    White IP list.
    blackIps List<String>
    Black IP list.
    createTime String
    Create time of the DDoS policy.
    dayuDdosPolicyId String
    Id of the watermark.
    dropOptions List<Property Map>
    Option list of abnormal check of the DDos policy, should set at least one policy.
    name String
    Name of the DDoS policy. Length should between 1 and 32.
    packetFilters List<Property Map>
    Message filter options list.
    policyId String
    Id of policy.
    portFilters List<Property Map>
    Port limits of abnormal check of the DDos policy.
    resourceType String
    Type of the resource that the DDoS policy works for. Valid values: bgpip, bgp, bgp-multip and net.
    sceneId String
    Id of policy case that the DDoS policy works for.
    watermarkFilters List<Property Map>
    Watermark policy options, and only support one watermark policy at most.
    watermarkKeys List<Property Map>
    Watermark content.
    whiteIps List<String>
    White IP list.

    Supporting Types

    DayuDdosPolicyDropOption, DayuDdosPolicyDropOptionArgs

    BadConnThreshold double
    The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
    CheckSyncConn bool
    Indicate whether to check null connection or not.
    ConnTimeout double
    Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
    DConnLimit double
    The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
    DNewLimit double
    The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
    DropAbroad bool
    Indicate whether to drop abroad traffic or not.
    DropIcmp bool
    Indicate whether to drop ICMP protocol or not.
    DropOther bool
    Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
    DropTcp bool
    Indicate whether to drop TCP protocol or not.
    DropUdp bool
    Indicate to drop UDP protocol or not.
    IcmpMbpsLimit double
    The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    NullConnEnable bool
    Indicate to enable null connection or not.
    OtherMbpsLimit double
    The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    SConnLimit double
    The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
    SNewLimit double
    The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
    SynLimit double
    The limit of syn of abnormal connection check. Valid value ranges: (0~100).
    TcpMbpsLimit double
    The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
    UdpMbpsLimit double
    The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    SynRate double
    The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
    BadConnThreshold float64
    The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
    CheckSyncConn bool
    Indicate whether to check null connection or not.
    ConnTimeout float64
    Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
    DConnLimit float64
    The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
    DNewLimit float64
    The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
    DropAbroad bool
    Indicate whether to drop abroad traffic or not.
    DropIcmp bool
    Indicate whether to drop ICMP protocol or not.
    DropOther bool
    Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
    DropTcp bool
    Indicate whether to drop TCP protocol or not.
    DropUdp bool
    Indicate to drop UDP protocol or not.
    IcmpMbpsLimit float64
    The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    NullConnEnable bool
    Indicate to enable null connection or not.
    OtherMbpsLimit float64
    The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    SConnLimit float64
    The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
    SNewLimit float64
    The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
    SynLimit float64
    The limit of syn of abnormal connection check. Valid value ranges: (0~100).
    TcpMbpsLimit float64
    The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
    UdpMbpsLimit float64
    The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    SynRate float64
    The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
    badConnThreshold Double
    The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
    checkSyncConn Boolean
    Indicate whether to check null connection or not.
    connTimeout Double
    Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
    dConnLimit Double
    The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
    dNewLimit Double
    The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
    dropAbroad Boolean
    Indicate whether to drop abroad traffic or not.
    dropIcmp Boolean
    Indicate whether to drop ICMP protocol or not.
    dropOther Boolean
    Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
    dropTcp Boolean
    Indicate whether to drop TCP protocol or not.
    dropUdp Boolean
    Indicate to drop UDP protocol or not.
    icmpMbpsLimit Double
    The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    nullConnEnable Boolean
    Indicate to enable null connection or not.
    otherMbpsLimit Double
    The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    sConnLimit Double
    The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
    sNewLimit Double
    The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
    synLimit Double
    The limit of syn of abnormal connection check. Valid value ranges: (0~100).
    tcpMbpsLimit Double
    The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
    udpMbpsLimit Double
    The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    synRate Double
    The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
    badConnThreshold number
    The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
    checkSyncConn boolean
    Indicate whether to check null connection or not.
    connTimeout number
    Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
    dConnLimit number
    The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
    dNewLimit number
    The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
    dropAbroad boolean
    Indicate whether to drop abroad traffic or not.
    dropIcmp boolean
    Indicate whether to drop ICMP protocol or not.
    dropOther boolean
    Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
    dropTcp boolean
    Indicate whether to drop TCP protocol or not.
    dropUdp boolean
    Indicate to drop UDP protocol or not.
    icmpMbpsLimit number
    The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    nullConnEnable boolean
    Indicate to enable null connection or not.
    otherMbpsLimit number
    The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    sConnLimit number
    The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
    sNewLimit number
    The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
    synLimit number
    The limit of syn of abnormal connection check. Valid value ranges: (0~100).
    tcpMbpsLimit number
    The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
    udpMbpsLimit number
    The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    synRate number
    The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
    bad_conn_threshold float
    The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
    check_sync_conn bool
    Indicate whether to check null connection or not.
    conn_timeout float
    Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
    d_conn_limit float
    The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
    d_new_limit float
    The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
    drop_abroad bool
    Indicate whether to drop abroad traffic or not.
    drop_icmp bool
    Indicate whether to drop ICMP protocol or not.
    drop_other bool
    Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
    drop_tcp bool
    Indicate whether to drop TCP protocol or not.
    drop_udp bool
    Indicate to drop UDP protocol or not.
    icmp_mbps_limit float
    The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    null_conn_enable bool
    Indicate to enable null connection or not.
    other_mbps_limit float
    The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    s_conn_limit float
    The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
    s_new_limit float
    The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
    syn_limit float
    The limit of syn of abnormal connection check. Valid value ranges: (0~100).
    tcp_mbps_limit float
    The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
    udp_mbps_limit float
    The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    syn_rate float
    The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
    badConnThreshold Number
    The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
    checkSyncConn Boolean
    Indicate whether to check null connection or not.
    connTimeout Number
    Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
    dConnLimit Number
    The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
    dNewLimit Number
    The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
    dropAbroad Boolean
    Indicate whether to drop abroad traffic or not.
    dropIcmp Boolean
    Indicate whether to drop ICMP protocol or not.
    dropOther Boolean
    Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
    dropTcp Boolean
    Indicate whether to drop TCP protocol or not.
    dropUdp Boolean
    Indicate to drop UDP protocol or not.
    icmpMbpsLimit Number
    The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    nullConnEnable Boolean
    Indicate to enable null connection or not.
    otherMbpsLimit Number
    The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    sConnLimit Number
    The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
    sNewLimit Number
    The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
    synLimit Number
    The limit of syn of abnormal connection check. Valid value ranges: (0~100).
    tcpMbpsLimit Number
    The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
    udpMbpsLimit Number
    The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
    synRate Number
    The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).

    DayuDdosPolicyPacketFilter, DayuDdosPolicyPacketFilterArgs

    Action string
    Action of port to take. Valid values: drop, drop_black,drop_rst,drop_black_rst,transmit.drop(drop the packet), drop_black(drop the packet and black the ip),drop_rst(drop the packet and disconnect),drop_black_rst(drop the packet, black the ip and disconnect),transmit(transmit the packet).
    DEndPort double
    End port of the destination. Valid value ranges: (0~65535). It must be greater than d_start_port.
    DStartPort double
    Start port of the destination. Valid value ranges: (0~65535).
    Depth double
    The depth of match. Valid value ranges: (0~1500).
    IsInclude bool
    Indicate whether to include the key word/regular expression or not.
    MatchBegin string
    Indicate whether to check load or not, begin_l5 means to match and no_match means not.
    MatchStr string
    The key word or regular expression.
    MatchType string
    Match type. Valid values: sunday and pcre. sunday means key word match while pcre means regular match.
    Offset double
    The offset of match. Valid value ranges: (0~1500).
    PktLengthMax double
    The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than pkt_length_min.
    PktLengthMin double
    The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
    Protocol string
    Protocol. Valid values: tcp, udp, icmp, all.
    SEndPort double
    End port of the source. Valid value ranges: (0~65535). It must be greater than s_start_port.
    SStartPort double
    Start port of the source. Valid value ranges: (0~65535).
    Action string
    Action of port to take. Valid values: drop, drop_black,drop_rst,drop_black_rst,transmit.drop(drop the packet), drop_black(drop the packet and black the ip),drop_rst(drop the packet and disconnect),drop_black_rst(drop the packet, black the ip and disconnect),transmit(transmit the packet).
    DEndPort float64
    End port of the destination. Valid value ranges: (0~65535). It must be greater than d_start_port.
    DStartPort float64
    Start port of the destination. Valid value ranges: (0~65535).
    Depth float64
    The depth of match. Valid value ranges: (0~1500).
    IsInclude bool
    Indicate whether to include the key word/regular expression or not.
    MatchBegin string
    Indicate whether to check load or not, begin_l5 means to match and no_match means not.
    MatchStr string
    The key word or regular expression.
    MatchType string
    Match type. Valid values: sunday and pcre. sunday means key word match while pcre means regular match.
    Offset float64
    The offset of match. Valid value ranges: (0~1500).
    PktLengthMax float64
    The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than pkt_length_min.
    PktLengthMin float64
    The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
    Protocol string
    Protocol. Valid values: tcp, udp, icmp, all.
    SEndPort float64
    End port of the source. Valid value ranges: (0~65535). It must be greater than s_start_port.
    SStartPort float64
    Start port of the source. Valid value ranges: (0~65535).
    action String
    Action of port to take. Valid values: drop, drop_black,drop_rst,drop_black_rst,transmit.drop(drop the packet), drop_black(drop the packet and black the ip),drop_rst(drop the packet and disconnect),drop_black_rst(drop the packet, black the ip and disconnect),transmit(transmit the packet).
    dEndPort Double
    End port of the destination. Valid value ranges: (0~65535). It must be greater than d_start_port.
    dStartPort Double
    Start port of the destination. Valid value ranges: (0~65535).
    depth Double
    The depth of match. Valid value ranges: (0~1500).
    isInclude Boolean
    Indicate whether to include the key word/regular expression or not.
    matchBegin String
    Indicate whether to check load or not, begin_l5 means to match and no_match means not.
    matchStr String
    The key word or regular expression.
    matchType String
    Match type. Valid values: sunday and pcre. sunday means key word match while pcre means regular match.
    offset Double
    The offset of match. Valid value ranges: (0~1500).
    pktLengthMax Double
    The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than pkt_length_min.
    pktLengthMin Double
    The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
    protocol String
    Protocol. Valid values: tcp, udp, icmp, all.
    sEndPort Double
    End port of the source. Valid value ranges: (0~65535). It must be greater than s_start_port.
    sStartPort Double
    Start port of the source. Valid value ranges: (0~65535).
    action string
    Action of port to take. Valid values: drop, drop_black,drop_rst,drop_black_rst,transmit.drop(drop the packet), drop_black(drop the packet and black the ip),drop_rst(drop the packet and disconnect),drop_black_rst(drop the packet, black the ip and disconnect),transmit(transmit the packet).
    dEndPort number
    End port of the destination. Valid value ranges: (0~65535). It must be greater than d_start_port.
    dStartPort number
    Start port of the destination. Valid value ranges: (0~65535).
    depth number
    The depth of match. Valid value ranges: (0~1500).
    isInclude boolean
    Indicate whether to include the key word/regular expression or not.
    matchBegin string
    Indicate whether to check load or not, begin_l5 means to match and no_match means not.
    matchStr string
    The key word or regular expression.
    matchType string
    Match type. Valid values: sunday and pcre. sunday means key word match while pcre means regular match.
    offset number
    The offset of match. Valid value ranges: (0~1500).
    pktLengthMax number
    The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than pkt_length_min.
    pktLengthMin number
    The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
    protocol string
    Protocol. Valid values: tcp, udp, icmp, all.
    sEndPort number
    End port of the source. Valid value ranges: (0~65535). It must be greater than s_start_port.
    sStartPort number
    Start port of the source. Valid value ranges: (0~65535).
    action str
    Action of port to take. Valid values: drop, drop_black,drop_rst,drop_black_rst,transmit.drop(drop the packet), drop_black(drop the packet and black the ip),drop_rst(drop the packet and disconnect),drop_black_rst(drop the packet, black the ip and disconnect),transmit(transmit the packet).
    d_end_port float
    End port of the destination. Valid value ranges: (0~65535). It must be greater than d_start_port.
    d_start_port float
    Start port of the destination. Valid value ranges: (0~65535).
    depth float
    The depth of match. Valid value ranges: (0~1500).
    is_include bool
    Indicate whether to include the key word/regular expression or not.
    match_begin str
    Indicate whether to check load or not, begin_l5 means to match and no_match means not.
    match_str str
    The key word or regular expression.
    match_type str
    Match type. Valid values: sunday and pcre. sunday means key word match while pcre means regular match.
    offset float
    The offset of match. Valid value ranges: (0~1500).
    pkt_length_max float
    The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than pkt_length_min.
    pkt_length_min float
    The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
    protocol str
    Protocol. Valid values: tcp, udp, icmp, all.
    s_end_port float
    End port of the source. Valid value ranges: (0~65535). It must be greater than s_start_port.
    s_start_port float
    Start port of the source. Valid value ranges: (0~65535).
    action String
    Action of port to take. Valid values: drop, drop_black,drop_rst,drop_black_rst,transmit.drop(drop the packet), drop_black(drop the packet and black the ip),drop_rst(drop the packet and disconnect),drop_black_rst(drop the packet, black the ip and disconnect),transmit(transmit the packet).
    dEndPort Number
    End port of the destination. Valid value ranges: (0~65535). It must be greater than d_start_port.
    dStartPort Number
    Start port of the destination. Valid value ranges: (0~65535).
    depth Number
    The depth of match. Valid value ranges: (0~1500).
    isInclude Boolean
    Indicate whether to include the key word/regular expression or not.
    matchBegin String
    Indicate whether to check load or not, begin_l5 means to match and no_match means not.
    matchStr String
    The key word or regular expression.
    matchType String
    Match type. Valid values: sunday and pcre. sunday means key word match while pcre means regular match.
    offset Number
    The offset of match. Valid value ranges: (0~1500).
    pktLengthMax Number
    The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than pkt_length_min.
    pktLengthMin Number
    The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
    protocol String
    Protocol. Valid values: tcp, udp, icmp, all.
    sEndPort Number
    End port of the source. Valid value ranges: (0~65535). It must be greater than s_start_port.
    sStartPort Number
    Start port of the source. Valid value ranges: (0~65535).

    DayuDdosPolicyPortFilter, DayuDdosPolicyPortFilterArgs

    Action string
    Action of port to take. Valid values: drop, transmit.
    EndPort double
    End port. Valid value ranges: (0~65535). It must be greater than start_port.
    Kind double
    The type of forbidden port. Valid values: 0, 1, 2. 0 for destination ports make effect, 1 for source ports make effect. 2 for both destination and source ports.
    Protocol string
    Protocol. Valid values are tcp, udp, icmp, all.
    StartPort double
    Start port. Valid value ranges: (0~65535).
    Action string
    Action of port to take. Valid values: drop, transmit.
    EndPort float64
    End port. Valid value ranges: (0~65535). It must be greater than start_port.
    Kind float64
    The type of forbidden port. Valid values: 0, 1, 2. 0 for destination ports make effect, 1 for source ports make effect. 2 for both destination and source ports.
    Protocol string
    Protocol. Valid values are tcp, udp, icmp, all.
    StartPort float64
    Start port. Valid value ranges: (0~65535).
    action String
    Action of port to take. Valid values: drop, transmit.
    endPort Double
    End port. Valid value ranges: (0~65535). It must be greater than start_port.
    kind Double
    The type of forbidden port. Valid values: 0, 1, 2. 0 for destination ports make effect, 1 for source ports make effect. 2 for both destination and source ports.
    protocol String
    Protocol. Valid values are tcp, udp, icmp, all.
    startPort Double
    Start port. Valid value ranges: (0~65535).
    action string
    Action of port to take. Valid values: drop, transmit.
    endPort number
    End port. Valid value ranges: (0~65535). It must be greater than start_port.
    kind number
    The type of forbidden port. Valid values: 0, 1, 2. 0 for destination ports make effect, 1 for source ports make effect. 2 for both destination and source ports.
    protocol string
    Protocol. Valid values are tcp, udp, icmp, all.
    startPort number
    Start port. Valid value ranges: (0~65535).
    action str
    Action of port to take. Valid values: drop, transmit.
    end_port float
    End port. Valid value ranges: (0~65535). It must be greater than start_port.
    kind float
    The type of forbidden port. Valid values: 0, 1, 2. 0 for destination ports make effect, 1 for source ports make effect. 2 for both destination and source ports.
    protocol str
    Protocol. Valid values are tcp, udp, icmp, all.
    start_port float
    Start port. Valid value ranges: (0~65535).
    action String
    Action of port to take. Valid values: drop, transmit.
    endPort Number
    End port. Valid value ranges: (0~65535). It must be greater than start_port.
    kind Number
    The type of forbidden port. Valid values: 0, 1, 2. 0 for destination ports make effect, 1 for source ports make effect. 2 for both destination and source ports.
    protocol String
    Protocol. Valid values are tcp, udp, icmp, all.
    startPort Number
    Start port. Valid value ranges: (0~65535).

    DayuDdosPolicyWatermarkFilter, DayuDdosPolicyWatermarkFilterArgs

    AutoRemove bool
    Indicate whether to auto-remove the watermark or not.
    Offset double
    The offset of watermark. Valid value ranges: (0~1500).
    OpenSwitch bool
    Indicate whether to open watermark or not. It muse be set true when any field of watermark was set.
    TcpPortLists List<string>
    Port range of TCP, the format is like 2000-3000.
    UdpPortLists List<string>
    Port range of TCP, the format is like 2000-3000.
    AutoRemove bool
    Indicate whether to auto-remove the watermark or not.
    Offset float64
    The offset of watermark. Valid value ranges: (0~1500).
    OpenSwitch bool
    Indicate whether to open watermark or not. It muse be set true when any field of watermark was set.
    TcpPortLists []string
    Port range of TCP, the format is like 2000-3000.
    UdpPortLists []string
    Port range of TCP, the format is like 2000-3000.
    autoRemove Boolean
    Indicate whether to auto-remove the watermark or not.
    offset Double
    The offset of watermark. Valid value ranges: (0~1500).
    openSwitch Boolean
    Indicate whether to open watermark or not. It muse be set true when any field of watermark was set.
    tcpPortLists List<String>
    Port range of TCP, the format is like 2000-3000.
    udpPortLists List<String>
    Port range of TCP, the format is like 2000-3000.
    autoRemove boolean
    Indicate whether to auto-remove the watermark or not.
    offset number
    The offset of watermark. Valid value ranges: (0~1500).
    openSwitch boolean
    Indicate whether to open watermark or not. It muse be set true when any field of watermark was set.
    tcpPortLists string[]
    Port range of TCP, the format is like 2000-3000.
    udpPortLists string[]
    Port range of TCP, the format is like 2000-3000.
    auto_remove bool
    Indicate whether to auto-remove the watermark or not.
    offset float
    The offset of watermark. Valid value ranges: (0~1500).
    open_switch bool
    Indicate whether to open watermark or not. It muse be set true when any field of watermark was set.
    tcp_port_lists Sequence[str]
    Port range of TCP, the format is like 2000-3000.
    udp_port_lists Sequence[str]
    Port range of TCP, the format is like 2000-3000.
    autoRemove Boolean
    Indicate whether to auto-remove the watermark or not.
    offset Number
    The offset of watermark. Valid value ranges: (0~1500).
    openSwitch Boolean
    Indicate whether to open watermark or not. It muse be set true when any field of watermark was set.
    tcpPortLists List<String>
    Port range of TCP, the format is like 2000-3000.
    udpPortLists List<String>
    Port range of TCP, the format is like 2000-3000.

    DayuDdosPolicyWatermarkKey, DayuDdosPolicyWatermarkKeyArgs

    Content string
    Content of the watermark.
    CreateTime string
    Create time of the DDoS policy.
    Id string
    Id of the watermark.
    OpenSwitch bool
    Indicate whether to auto-remove the watermark or not.
    Content string
    Content of the watermark.
    CreateTime string
    Create time of the DDoS policy.
    Id string
    Id of the watermark.
    OpenSwitch bool
    Indicate whether to auto-remove the watermark or not.
    content String
    Content of the watermark.
    createTime String
    Create time of the DDoS policy.
    id String
    Id of the watermark.
    openSwitch Boolean
    Indicate whether to auto-remove the watermark or not.
    content string
    Content of the watermark.
    createTime string
    Create time of the DDoS policy.
    id string
    Id of the watermark.
    openSwitch boolean
    Indicate whether to auto-remove the watermark or not.
    content str
    Content of the watermark.
    create_time str
    Create time of the DDoS policy.
    id str
    Id of the watermark.
    open_switch bool
    Indicate whether to auto-remove the watermark or not.
    content String
    Content of the watermark.
    createTime String
    Create time of the DDoS policy.
    id String
    Id of the watermark.
    openSwitch Boolean
    Indicate whether to auto-remove the watermark or not.

    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