tencentcloud.DayuCcHttpPolicy
Explore with Pulumi AI
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:
- Resource
Id string - ID of the resource that the CC self-define http policy works for.
- Resource
Type string - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Action string
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - Dayu
Cc stringHttp Policy Id - ID of the resource.
- Frequency double
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - Ip string
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- Rule
Lists List<DayuCc Http Policy Rule List> - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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.
- Resource
Id string - ID of the resource that the CC self-define http policy works for.
- Resource
Type string - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Action string
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - Dayu
Cc stringHttp Policy Id - ID of the resource.
- Frequency float64
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - Ip string
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- Rule
Lists []DayuCc Http Policy Rule List Args - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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.
- resource
Id String - ID of the resource that the CC self-define http policy works for.
- resource
Type String - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - action String
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - dayu
Cc StringHttp Policy Id - ID of the resource.
- frequency Double
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip String
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- rule
Lists List<DayuCc Http Policy Rule List> - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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 string - ID of the resource that the CC self-define http policy works for.
- resource
Type string - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - action string
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - dayu
Cc stringHttp Policy Id - ID of the resource.
- frequency number
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip string
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- rule
Lists DayuCc Http Policy Rule List[] - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
andnet
. - action str
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - dayu_
cc_ strhttp_ policy_ id - ID of the resource.
- frequency float
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip str
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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[DayuCc Http Policy Rule List Args] - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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.
- resource
Id String - ID of the resource that the CC self-define http policy works for.
- resource
Type String - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - action String
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - dayu
Cc StringHttp Policy Id - ID of the resource.
- frequency Number
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip String
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- rule
Lists List<Property Map> - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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:
- Create
Time string - Create time of the CC self-define http policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Id string - Id of the CC self-define http policy.
- Create
Time string - Create time of the CC self-define http policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Policy
Id string - Id of the CC self-define http policy.
- create
Time String - Create time of the CC self-define http policy.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Id String - Id of the CC self-define http policy.
- create
Time string - Create time of the CC self-define http policy.
- id string
- The provider-assigned unique ID for this managed resource.
- policy
Id 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.
- create
Time String - Create time of the CC self-define http policy.
- id String
- The provider-assigned unique ID for this managed resource.
- policy
Id 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.
- Action string
- Action mode, only valid when
smode
ismatching
. Valid values arealg
anddrop
. - Create
Time string - Create time of the CC self-define http policy.
- Dayu
Cc stringHttp Policy Id - ID of the resource.
- Frequency double
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - Ip string
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- Policy
Id string - Id of the CC self-define http policy.
- Resource
Id string - ID of the resource that the CC self-define http policy works for.
- Resource
Type string - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Rule
Lists List<DayuCc Http Policy Rule List> - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
ismatching
. Valid values arealg
anddrop
. - Create
Time string - Create time of the CC self-define http policy.
- Dayu
Cc stringHttp Policy Id - ID of the resource.
- Frequency float64
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - Ip string
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- Policy
Id string - Id of the CC self-define http policy.
- Resource
Id string - ID of the resource that the CC self-define http policy works for.
- Resource
Type string - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - Rule
Lists []DayuCc Http Policy Rule List Args - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
ismatching
. Valid values arealg
anddrop
. - create
Time String - Create time of the CC self-define http policy.
- dayu
Cc StringHttp Policy Id - ID of the resource.
- frequency Double
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip String
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- policy
Id String - Id of the CC self-define http policy.
- resource
Id String - ID of the resource that the CC self-define http policy works for.
- resource
Type String - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - rule
Lists List<DayuCc Http Policy Rule List> - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
ismatching
. Valid values arealg
anddrop
. - create
Time string - Create time of the CC self-define http policy.
- dayu
Cc stringHttp Policy Id - ID of the resource.
- frequency number
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip string
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- policy
Id string - Id of the CC self-define http policy.
- resource
Id string - ID of the resource that the CC self-define http policy works for.
- resource
Type string - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - rule
Lists DayuCc Http Policy Rule List[] - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
ismatching
. Valid values arealg
anddrop
. - create_
time str - Create time of the CC self-define http policy.
- dayu_
cc_ strhttp_ policy_ id - ID of the resource.
- frequency float
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip str
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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
andnet
. - rule_
lists Sequence[DayuCc Http Policy Rule List Args] - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
ismatching
. Valid values arealg
anddrop
. - create
Time String - Create time of the CC self-define http policy.
- dayu
Cc StringHttp Policy Id - ID of the resource.
- frequency Number
- Max frequency per minute, only valid when
smode
isspeedlimit
, the valid value ranges from 1 to 10000. - ip String
- Ip of the CC self-define http policy, only valid when
resource_type
isbgp-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.
- policy
Id String - Id of the CC self-define http policy.
- resource
Id String - ID of the resource that the CC self-define http policy works for.
- resource
Type String - Type of the resource that the CC self-define http policy works for, valid values are
bgpip
,bgp
,bgp-multip
andnet
. - rule
Lists List<Property Map> - Rule list of the CC self-define http policy, only valid when
smode
ismatching
. - 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
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.