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

tencentcloud.DayuCcHttpPolicy

Explore with Pulumi AI

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

    Use this resource to create a dayu CC self-define http policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const testBgpip = new tencentcloud.DayuCcHttpPolicy("testBgpip", {
        action: "drop",
        resourceId: "bgpip-00000294",
        resourceType: "bgpip",
        ruleLists: [{
            operator: "include",
            skey: "host",
            value: "123",
        }],
        smode: "matching",
        "switch": true,
    });
    const testNet = new tencentcloud.DayuCcHttpPolicy("testNet", {
        action: "drop",
        resourceId: "net-0000007e",
        resourceType: "net",
        ruleLists: [{
            operator: "equal",
            skey: "cgi",
            value: "123",
        }],
        smode: "matching",
        "switch": true,
    });
    const testBgpmultip = new tencentcloud.DayuCcHttpPolicy("testBgpmultip", {
        action: "alg",
        ip: "111.230.178.25",
        resourceId: "bgp-0000008o",
        resourceType: "bgp-multip",
        ruleLists: [{
            operator: "not_include",
            skey: "referer",
            value: "123",
        }],
        smode: "matching",
        "switch": true,
    });
    const testBgp = new tencentcloud.DayuCcHttpPolicy("testBgp", {
        action: "alg",
        resourceId: "bgp-000006mq",
        resourceType: "bgp",
        ruleLists: [{
            operator: "not_include",
            skey: "ua",
            value: "123",
        }],
        smode: "matching",
        "switch": true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test_bgpip = tencentcloud.DayuCcHttpPolicy("testBgpip",
        action="drop",
        resource_id="bgpip-00000294",
        resource_type="bgpip",
        rule_lists=[{
            "operator": "include",
            "skey": "host",
            "value": "123",
        }],
        smode="matching",
        switch=True)
    test_net = tencentcloud.DayuCcHttpPolicy("testNet",
        action="drop",
        resource_id="net-0000007e",
        resource_type="net",
        rule_lists=[{
            "operator": "equal",
            "skey": "cgi",
            "value": "123",
        }],
        smode="matching",
        switch=True)
    test_bgpmultip = tencentcloud.DayuCcHttpPolicy("testBgpmultip",
        action="alg",
        ip="111.230.178.25",
        resource_id="bgp-0000008o",
        resource_type="bgp-multip",
        rule_lists=[{
            "operator": "not_include",
            "skey": "referer",
            "value": "123",
        }],
        smode="matching",
        switch=True)
    test_bgp = tencentcloud.DayuCcHttpPolicy("testBgp",
        action="alg",
        resource_id="bgp-000006mq",
        resource_type="bgp",
        rule_lists=[{
            "operator": "not_include",
            "skey": "ua",
            "value": "123",
        }],
        smode="matching",
        switch=True)
    
    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.NewDayuCcHttpPolicy(ctx, "testBgpip", &tencentcloud.DayuCcHttpPolicyArgs{
    			Action:       pulumi.String("drop"),
    			ResourceId:   pulumi.String("bgpip-00000294"),
    			ResourceType: pulumi.String("bgpip"),
    			RuleLists: tencentcloud.DayuCcHttpPolicyRuleListArray{
    				&tencentcloud.DayuCcHttpPolicyRuleListArgs{
    					Operator: pulumi.String("include"),
    					Skey:     pulumi.String("host"),
    					Value:    pulumi.String("123"),
    				},
    			},
    			Smode:  pulumi.String("matching"),
    			Switch: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewDayuCcHttpPolicy(ctx, "testNet", &tencentcloud.DayuCcHttpPolicyArgs{
    			Action:       pulumi.String("drop"),
    			ResourceId:   pulumi.String("net-0000007e"),
    			ResourceType: pulumi.String("net"),
    			RuleLists: tencentcloud.DayuCcHttpPolicyRuleListArray{
    				&tencentcloud.DayuCcHttpPolicyRuleListArgs{
    					Operator: pulumi.String("equal"),
    					Skey:     pulumi.String("cgi"),
    					Value:    pulumi.String("123"),
    				},
    			},
    			Smode:  pulumi.String("matching"),
    			Switch: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewDayuCcHttpPolicy(ctx, "testBgpmultip", &tencentcloud.DayuCcHttpPolicyArgs{
    			Action:       pulumi.String("alg"),
    			Ip:           pulumi.String("111.230.178.25"),
    			ResourceId:   pulumi.String("bgp-0000008o"),
    			ResourceType: pulumi.String("bgp-multip"),
    			RuleLists: tencentcloud.DayuCcHttpPolicyRuleListArray{
    				&tencentcloud.DayuCcHttpPolicyRuleListArgs{
    					Operator: pulumi.String("not_include"),
    					Skey:     pulumi.String("referer"),
    					Value:    pulumi.String("123"),
    				},
    			},
    			Smode:  pulumi.String("matching"),
    			Switch: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewDayuCcHttpPolicy(ctx, "testBgp", &tencentcloud.DayuCcHttpPolicyArgs{
    			Action:       pulumi.String("alg"),
    			ResourceId:   pulumi.String("bgp-000006mq"),
    			ResourceType: pulumi.String("bgp"),
    			RuleLists: tencentcloud.DayuCcHttpPolicyRuleListArray{
    				&tencentcloud.DayuCcHttpPolicyRuleListArgs{
    					Operator: pulumi.String("not_include"),
    					Skey:     pulumi.String("ua"),
    					Value:    pulumi.String("123"),
    				},
    			},
    			Smode:  pulumi.String("matching"),
    			Switch: pulumi.Bool(true),
    		})
    		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 testBgpip = new Tencentcloud.DayuCcHttpPolicy("testBgpip", new()
        {
            Action = "drop",
            ResourceId = "bgpip-00000294",
            ResourceType = "bgpip",
            RuleLists = new[]
            {
                new Tencentcloud.Inputs.DayuCcHttpPolicyRuleListArgs
                {
                    Operator = "include",
                    Skey = "host",
                    Value = "123",
                },
            },
            Smode = "matching",
            Switch = true,
        });
    
        var testNet = new Tencentcloud.DayuCcHttpPolicy("testNet", new()
        {
            Action = "drop",
            ResourceId = "net-0000007e",
            ResourceType = "net",
            RuleLists = new[]
            {
                new Tencentcloud.Inputs.DayuCcHttpPolicyRuleListArgs
                {
                    Operator = "equal",
                    Skey = "cgi",
                    Value = "123",
                },
            },
            Smode = "matching",
            Switch = true,
        });
    
        var testBgpmultip = new Tencentcloud.DayuCcHttpPolicy("testBgpmultip", new()
        {
            Action = "alg",
            Ip = "111.230.178.25",
            ResourceId = "bgp-0000008o",
            ResourceType = "bgp-multip",
            RuleLists = new[]
            {
                new Tencentcloud.Inputs.DayuCcHttpPolicyRuleListArgs
                {
                    Operator = "not_include",
                    Skey = "referer",
                    Value = "123",
                },
            },
            Smode = "matching",
            Switch = true,
        });
    
        var testBgp = new Tencentcloud.DayuCcHttpPolicy("testBgp", new()
        {
            Action = "alg",
            ResourceId = "bgp-000006mq",
            ResourceType = "bgp",
            RuleLists = new[]
            {
                new Tencentcloud.Inputs.DayuCcHttpPolicyRuleListArgs
                {
                    Operator = "not_include",
                    Skey = "ua",
                    Value = "123",
                },
            },
            Smode = "matching",
            Switch = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DayuCcHttpPolicy;
    import com.pulumi.tencentcloud.DayuCcHttpPolicyArgs;
    import com.pulumi.tencentcloud.inputs.DayuCcHttpPolicyRuleListArgs;
    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 testBgpip = new DayuCcHttpPolicy("testBgpip", DayuCcHttpPolicyArgs.builder()
                .action("drop")
                .resourceId("bgpip-00000294")
                .resourceType("bgpip")
                .ruleLists(DayuCcHttpPolicyRuleListArgs.builder()
                    .operator("include")
                    .skey("host")
                    .value("123")
                    .build())
                .smode("matching")
                .switch_(true)
                .build());
    
            var testNet = new DayuCcHttpPolicy("testNet", DayuCcHttpPolicyArgs.builder()
                .action("drop")
                .resourceId("net-0000007e")
                .resourceType("net")
                .ruleLists(DayuCcHttpPolicyRuleListArgs.builder()
                    .operator("equal")
                    .skey("cgi")
                    .value("123")
                    .build())
                .smode("matching")
                .switch_(true)
                .build());
    
            var testBgpmultip = new DayuCcHttpPolicy("testBgpmultip", DayuCcHttpPolicyArgs.builder()
                .action("alg")
                .ip("111.230.178.25")
                .resourceId("bgp-0000008o")
                .resourceType("bgp-multip")
                .ruleLists(DayuCcHttpPolicyRuleListArgs.builder()
                    .operator("not_include")
                    .skey("referer")
                    .value("123")
                    .build())
                .smode("matching")
                .switch_(true)
                .build());
    
            var testBgp = new DayuCcHttpPolicy("testBgp", DayuCcHttpPolicyArgs.builder()
                .action("alg")
                .resourceId("bgp-000006mq")
                .resourceType("bgp")
                .ruleLists(DayuCcHttpPolicyRuleListArgs.builder()
                    .operator("not_include")
                    .skey("ua")
                    .value("123")
                    .build())
                .smode("matching")
                .switch_(true)
                .build());
    
        }
    }
    
    resources:
      testBgpip:
        type: tencentcloud:DayuCcHttpPolicy
        properties:
          action: drop
          resourceId: bgpip-00000294
          resourceType: bgpip
          ruleLists:
            - operator: include
              skey: host
              value: '123'
          smode: matching
          switch: true
      testNet:
        type: tencentcloud:DayuCcHttpPolicy
        properties:
          action: drop
          resourceId: net-0000007e
          resourceType: net
          ruleLists:
            - operator: equal
              skey: cgi
              value: '123'
          smode: matching
          switch: true
      testBgpmultip:
        type: tencentcloud:DayuCcHttpPolicy
        properties:
          action: alg
          ip: 111.230.178.25
          resourceId: bgp-0000008o
          resourceType: bgp-multip
          ruleLists:
            - operator: not_include
              skey: referer
              value: '123'
          smode: matching
          switch: true
      testBgp:
        type: tencentcloud:DayuCcHttpPolicy
        properties:
          action: alg
          resourceId: bgp-000006mq
          resourceType: bgp
          ruleLists:
            - operator: not_include
              skey: ua
              value: '123'
          smode: matching
          switch: true
    

    Create DayuCcHttpPolicy Resource

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

    Constructor syntax

    new DayuCcHttpPolicy(name: string, args: DayuCcHttpPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def DayuCcHttpPolicy(resource_name: str,
                         args: DayuCcHttpPolicyArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DayuCcHttpPolicy(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         resource_id: Optional[str] = None,
                         resource_type: Optional[str] = None,
                         action: Optional[str] = None,
                         dayu_cc_http_policy_id: Optional[str] = None,
                         frequency: Optional[float] = None,
                         ip: Optional[str] = None,
                         name: Optional[str] = None,
                         rule_lists: Optional[Sequence[DayuCcHttpPolicyRuleListArgs]] = None,
                         smode: Optional[str] = None,
                         switch: Optional[bool] = None)
    func NewDayuCcHttpPolicy(ctx *Context, name string, args DayuCcHttpPolicyArgs, opts ...ResourceOption) (*DayuCcHttpPolicy, error)
    public DayuCcHttpPolicy(string name, DayuCcHttpPolicyArgs args, CustomResourceOptions? opts = null)
    public DayuCcHttpPolicy(String name, DayuCcHttpPolicyArgs args)
    public DayuCcHttpPolicy(String name, DayuCcHttpPolicyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DayuCcHttpPolicy
    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 DayuCcHttpPolicyArgs
    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 DayuCcHttpPolicyArgs
    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 DayuCcHttpPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DayuCcHttpPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DayuCcHttpPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ResourceId string
    ID of the resource that the CC self-define http policy works for.
    ResourceType string
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    Action string
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    DayuCcHttpPolicyId string
    ID of the resource.
    Frequency double
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    Ip string
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    Name string
    Name of the CC self-define http policy. Length should between 1 and 20.
    RuleLists List<DayuCcHttpPolicyRuleList>
    Rule list of the CC self-define http policy, only valid when smode is matching.
    Smode string
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    Switch bool
    Indicate the CC self-define http policy takes effect or not.
    ResourceId string
    ID of the resource that the CC self-define http policy works for.
    ResourceType string
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    Action string
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    DayuCcHttpPolicyId string
    ID of the resource.
    Frequency float64
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    Ip string
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    Name string
    Name of the CC self-define http policy. Length should between 1 and 20.
    RuleLists []DayuCcHttpPolicyRuleListArgs
    Rule list of the CC self-define http policy, only valid when smode is matching.
    Smode string
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    Switch bool
    Indicate the CC self-define http policy takes effect or not.
    resourceId String
    ID of the resource that the CC self-define http policy works for.
    resourceType String
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    action String
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    dayuCcHttpPolicyId String
    ID of the resource.
    frequency Double
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip String
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name String
    Name of the CC self-define http policy. Length should between 1 and 20.
    ruleLists List<DayuCcHttpPolicyRuleList>
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode String
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch_ Boolean
    Indicate the CC self-define http policy takes effect or not.
    resourceId string
    ID of the resource that the CC self-define http policy works for.
    resourceType string
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    action string
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    dayuCcHttpPolicyId string
    ID of the resource.
    frequency number
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip string
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name string
    Name of the CC self-define http policy. Length should between 1 and 20.
    ruleLists DayuCcHttpPolicyRuleList[]
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode string
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch boolean
    Indicate the CC self-define http policy takes effect or not.
    resource_id str
    ID of the resource that the CC self-define http policy works for.
    resource_type str
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    action str
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    dayu_cc_http_policy_id str
    ID of the resource.
    frequency float
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip str
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name str
    Name of the CC self-define http policy. Length should between 1 and 20.
    rule_lists Sequence[DayuCcHttpPolicyRuleListArgs]
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode str
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch bool
    Indicate the CC self-define http policy takes effect or not.
    resourceId String
    ID of the resource that the CC self-define http policy works for.
    resourceType String
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    action String
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    dayuCcHttpPolicyId String
    ID of the resource.
    frequency Number
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip String
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name String
    Name of the CC self-define http policy. Length should between 1 and 20.
    ruleLists List<Property Map>
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode String
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch Boolean
    Indicate the CC self-define http policy takes effect or not.

    Outputs

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

    CreateTime string
    Create time of the CC self-define http policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    Id of the CC self-define http policy.
    CreateTime string
    Create time of the CC self-define http policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyId string
    Id of the CC self-define http policy.
    createTime String
    Create time of the CC self-define http policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    Id of the CC self-define http policy.
    createTime string
    Create time of the CC self-define http policy.
    id string
    The provider-assigned unique ID for this managed resource.
    policyId string
    Id of the CC self-define http policy.
    create_time str
    Create time of the CC self-define http policy.
    id str
    The provider-assigned unique ID for this managed resource.
    policy_id str
    Id of the CC self-define http policy.
    createTime String
    Create time of the CC self-define http policy.
    id String
    The provider-assigned unique ID for this managed resource.
    policyId String
    Id of the CC self-define http policy.

    Look up Existing DayuCcHttpPolicy Resource

    Get an existing DayuCcHttpPolicy 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?: DayuCcHttpPolicyState, opts?: CustomResourceOptions): DayuCcHttpPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            create_time: Optional[str] = None,
            dayu_cc_http_policy_id: Optional[str] = None,
            frequency: Optional[float] = None,
            ip: Optional[str] = None,
            name: Optional[str] = None,
            policy_id: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_type: Optional[str] = None,
            rule_lists: Optional[Sequence[DayuCcHttpPolicyRuleListArgs]] = None,
            smode: Optional[str] = None,
            switch: Optional[bool] = None) -> DayuCcHttpPolicy
    func GetDayuCcHttpPolicy(ctx *Context, name string, id IDInput, state *DayuCcHttpPolicyState, opts ...ResourceOption) (*DayuCcHttpPolicy, error)
    public static DayuCcHttpPolicy Get(string name, Input<string> id, DayuCcHttpPolicyState? state, CustomResourceOptions? opts = null)
    public static DayuCcHttpPolicy get(String name, Output<String> id, DayuCcHttpPolicyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DayuCcHttpPolicy    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:
    Action string
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    CreateTime string
    Create time of the CC self-define http policy.
    DayuCcHttpPolicyId string
    ID of the resource.
    Frequency double
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    Ip string
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    Name string
    Name of the CC self-define http policy. Length should between 1 and 20.
    PolicyId string
    Id of the CC self-define http policy.
    ResourceId string
    ID of the resource that the CC self-define http policy works for.
    ResourceType string
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    RuleLists List<DayuCcHttpPolicyRuleList>
    Rule list of the CC self-define http policy, only valid when smode is matching.
    Smode string
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    Switch bool
    Indicate the CC self-define http policy takes effect or not.
    Action string
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    CreateTime string
    Create time of the CC self-define http policy.
    DayuCcHttpPolicyId string
    ID of the resource.
    Frequency float64
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    Ip string
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    Name string
    Name of the CC self-define http policy. Length should between 1 and 20.
    PolicyId string
    Id of the CC self-define http policy.
    ResourceId string
    ID of the resource that the CC self-define http policy works for.
    ResourceType string
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    RuleLists []DayuCcHttpPolicyRuleListArgs
    Rule list of the CC self-define http policy, only valid when smode is matching.
    Smode string
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    Switch bool
    Indicate the CC self-define http policy takes effect or not.
    action String
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    createTime String
    Create time of the CC self-define http policy.
    dayuCcHttpPolicyId String
    ID of the resource.
    frequency Double
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip String
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name String
    Name of the CC self-define http policy. Length should between 1 and 20.
    policyId String
    Id of the CC self-define http policy.
    resourceId String
    ID of the resource that the CC self-define http policy works for.
    resourceType String
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    ruleLists List<DayuCcHttpPolicyRuleList>
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode String
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch_ Boolean
    Indicate the CC self-define http policy takes effect or not.
    action string
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    createTime string
    Create time of the CC self-define http policy.
    dayuCcHttpPolicyId string
    ID of the resource.
    frequency number
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip string
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name string
    Name of the CC self-define http policy. Length should between 1 and 20.
    policyId string
    Id of the CC self-define http policy.
    resourceId string
    ID of the resource that the CC self-define http policy works for.
    resourceType string
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    ruleLists DayuCcHttpPolicyRuleList[]
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode string
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch boolean
    Indicate the CC self-define http policy takes effect or not.
    action str
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    create_time str
    Create time of the CC self-define http policy.
    dayu_cc_http_policy_id str
    ID of the resource.
    frequency float
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip str
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name str
    Name of the CC self-define http policy. Length should between 1 and 20.
    policy_id str
    Id of the CC self-define http policy.
    resource_id str
    ID of the resource that the CC self-define http policy works for.
    resource_type str
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    rule_lists Sequence[DayuCcHttpPolicyRuleListArgs]
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode str
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch bool
    Indicate the CC self-define http policy takes effect or not.
    action String
    Action mode, only valid when smode is matching. Valid values are alg and drop.
    createTime String
    Create time of the CC self-define http policy.
    dayuCcHttpPolicyId String
    ID of the resource.
    frequency Number
    Max frequency per minute, only valid when smode is speedlimit, the valid value ranges from 1 to 10000.
    ip String
    Ip of the CC self-define http policy, only valid when resource_type is bgp-multip. The num of list items can only be set one.
    name String
    Name of the CC self-define http policy. Length should between 1 and 20.
    policyId String
    Id of the CC self-define http policy.
    resourceId String
    ID of the resource that the CC self-define http policy works for.
    resourceType String
    Type of the resource that the CC self-define http policy works for, valid values are bgpip, bgp, bgp-multip and net.
    ruleLists List<Property Map>
    Rule list of the CC self-define http policy, only valid when smode is matching.
    smode String
    Match mode, and valid values are matching, speedlimit. Note: the speed limit type CC self-define policy can only set one.
    switch Boolean
    Indicate the CC self-define http policy takes effect or not.

    Supporting Types

    DayuCcHttpPolicyRuleList, DayuCcHttpPolicyRuleListArgs

    Operator string
    Operator of the rule. Valid values: include, not_include, equal.
    Skey string
    Key of the rule. Valid values: host, cgi, ua, referer.
    Value string
    Rule value, then length should be less than 31 bytes.
    Operator string
    Operator of the rule. Valid values: include, not_include, equal.
    Skey string
    Key of the rule. Valid values: host, cgi, ua, referer.
    Value string
    Rule value, then length should be less than 31 bytes.
    operator String
    Operator of the rule. Valid values: include, not_include, equal.
    skey String
    Key of the rule. Valid values: host, cgi, ua, referer.
    value String
    Rule value, then length should be less than 31 bytes.
    operator string
    Operator of the rule. Valid values: include, not_include, equal.
    skey string
    Key of the rule. Valid values: host, cgi, ua, referer.
    value string
    Rule value, then length should be less than 31 bytes.
    operator str
    Operator of the rule. Valid values: include, not_include, equal.
    skey str
    Key of the rule. Valid values: host, cgi, ua, referer.
    value str
    Rule value, then length should be less than 31 bytes.
    operator String
    Operator of the rule. Valid values: include, not_include, equal.
    skey String
    Key of the rule. Valid values: host, cgi, ua, referer.
    value String
    Rule value, then length should be less than 31 bytes.

    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