tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.DayuL4RuleV2
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Create DayuL4RuleV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DayuL4RuleV2(name: string, args: DayuL4RuleV2Args, opts?: CustomResourceOptions);
@overload
def DayuL4RuleV2(resource_name: str,
args: DayuL4RuleV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DayuL4RuleV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
business: Optional[str] = None,
resource_id: Optional[str] = None,
rules: Optional[DayuL4RuleV2RulesArgs] = None,
virtual_port: Optional[float] = None,
vpn: Optional[str] = None,
dayu_l4_rule_v2_id: Optional[str] = None)
func NewDayuL4RuleV2(ctx *Context, name string, args DayuL4RuleV2Args, opts ...ResourceOption) (*DayuL4RuleV2, error)
public DayuL4RuleV2(string name, DayuL4RuleV2Args args, CustomResourceOptions? opts = null)
public DayuL4RuleV2(String name, DayuL4RuleV2Args args)
public DayuL4RuleV2(String name, DayuL4RuleV2Args args, CustomResourceOptions options)
type: tencentcloud:DayuL4RuleV2
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 DayuL4RuleV2Args
- 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 DayuL4RuleV2Args
- 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 DayuL4RuleV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DayuL4RuleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DayuL4RuleV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DayuL4RuleV2 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 DayuL4RuleV2 resource accepts the following input properties:
- Business string
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Resource
Id string - Resource id.
- Rules
Dayu
L4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- Virtual
Port double - The virtual port of the layer 4 rule.
- Vpn string
- Resource vpn.
- Dayu
L4Rule stringV2Id
- Business string
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Resource
Id string - Resource id.
- Rules
Dayu
L4Rule V2Rules Args - A list of layer 4 rules. Each element contains the following attributes:
- Virtual
Port float64 - The virtual port of the layer 4 rule.
- Vpn string
- Resource vpn.
- Dayu
L4Rule stringV2Id
- business String
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource
Id String - Resource id.
- rules
Dayu
L4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port Double - The virtual port of the layer 4 rule.
- vpn String
- Resource vpn.
- dayu
L4Rule StringV2Id
- business string
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource
Id string - Resource id.
- rules
Dayu
L4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port number - The virtual port of the layer 4 rule.
- vpn string
- Resource vpn.
- dayu
L4Rule stringV2Id
- business str
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource_
id str - Resource id.
- rules
Dayu
L4Rule V2Rules Args - A list of layer 4 rules. Each element contains the following attributes:
- virtual_
port float - The virtual port of the layer 4 rule.
- vpn str
- Resource vpn.
- dayu_
l4_ strrule_ v2_ id
- business String
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource
Id String - Resource id.
- rules Property Map
- A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port Number - The virtual port of the layer 4 rule.
- vpn String
- Resource vpn.
- dayu
L4Rule StringV2Id
Outputs
All input properties are implicitly available as output properties. Additionally, the DayuL4RuleV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DayuL4RuleV2 Resource
Get an existing DayuL4RuleV2 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?: DayuL4RuleV2State, opts?: CustomResourceOptions): DayuL4RuleV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
business: Optional[str] = None,
dayu_l4_rule_v2_id: Optional[str] = None,
resource_id: Optional[str] = None,
rules: Optional[DayuL4RuleV2RulesArgs] = None,
virtual_port: Optional[float] = None,
vpn: Optional[str] = None) -> DayuL4RuleV2
func GetDayuL4RuleV2(ctx *Context, name string, id IDInput, state *DayuL4RuleV2State, opts ...ResourceOption) (*DayuL4RuleV2, error)
public static DayuL4RuleV2 Get(string name, Input<string> id, DayuL4RuleV2State? state, CustomResourceOptions? opts = null)
public static DayuL4RuleV2 get(String name, Output<String> id, DayuL4RuleV2State state, CustomResourceOptions options)
resources: _: type: tencentcloud:DayuL4RuleV2 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.
- Business string
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Dayu
L4Rule stringV2Id - Resource
Id string - Resource id.
- Rules
Dayu
L4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- Virtual
Port double - The virtual port of the layer 4 rule.
- Vpn string
- Resource vpn.
- Business string
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Dayu
L4Rule stringV2Id - Resource
Id string - Resource id.
- Rules
Dayu
L4Rule V2Rules Args - A list of layer 4 rules. Each element contains the following attributes:
- Virtual
Port float64 - The virtual port of the layer 4 rule.
- Vpn string
- Resource vpn.
- business String
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - dayu
L4Rule StringV2Id - resource
Id String - Resource id.
- rules
Dayu
L4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port Double - The virtual port of the layer 4 rule.
- vpn String
- Resource vpn.
- business string
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - dayu
L4Rule stringV2Id - resource
Id string - Resource id.
- rules
Dayu
L4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port number - The virtual port of the layer 4 rule.
- vpn string
- Resource vpn.
- business str
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - dayu_
l4_ strrule_ v2_ id - resource_
id str - Resource id.
- rules
Dayu
L4Rule V2Rules Args - A list of layer 4 rules. Each element contains the following attributes:
- virtual_
port float - The virtual port of the layer 4 rule.
- vpn str
- Resource vpn.
- business String
- Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - dayu
L4Rule StringV2Id - resource
Id String - Resource id.
- rules Property Map
- A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port Number - The virtual port of the layer 4 rule.
- vpn String
- Resource vpn.
Supporting Types
DayuL4RuleV2Rules, DayuL4RuleV2RulesArgs
- Keep
Enable bool - session hold switch.
- Keeptime double
- The keeptime of the layer 4 rule.
- Lb
Type double - LB type of the rule,
1
for weight cycling and2
for IP hash. - Protocol string
- Protocol of the rule.
- Region double
- Corresponding regional information.
- Remove
Switch bool - Remove the watermark state.
- Rule
Name string - Name of the rule.
- Source
Lists List<DayuL4Rule V2Rules Source List> - Source list of the rule.
- Source
Port double - The source port of the layer 4 rule.
- Source
Type double - Source type,
1
for source of host,2
for source of IP. - Virtual
Port double - The virtual port of the layer 4 rule.
- Keep
Enable bool - session hold switch.
- Keeptime float64
- The keeptime of the layer 4 rule.
- Lb
Type float64 - LB type of the rule,
1
for weight cycling and2
for IP hash. - Protocol string
- Protocol of the rule.
- Region float64
- Corresponding regional information.
- Remove
Switch bool - Remove the watermark state.
- Rule
Name string - Name of the rule.
- Source
Lists []DayuL4Rule V2Rules Source List - Source list of the rule.
- Source
Port float64 - The source port of the layer 4 rule.
- Source
Type float64 - Source type,
1
for source of host,2
for source of IP. - Virtual
Port float64 - The virtual port of the layer 4 rule.
- keep
Enable Boolean - session hold switch.
- keeptime Double
- The keeptime of the layer 4 rule.
- lb
Type Double - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol String
- Protocol of the rule.
- region Double
- Corresponding regional information.
- remove
Switch Boolean - Remove the watermark state.
- rule
Name String - Name of the rule.
- source
Lists List<DayuL4Rule V2Rules Source List> - Source list of the rule.
- source
Port Double - The source port of the layer 4 rule.
- source
Type Double - Source type,
1
for source of host,2
for source of IP. - virtual
Port Double - The virtual port of the layer 4 rule.
- keep
Enable boolean - session hold switch.
- keeptime number
- The keeptime of the layer 4 rule.
- lb
Type number - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol string
- Protocol of the rule.
- region number
- Corresponding regional information.
- remove
Switch boolean - Remove the watermark state.
- rule
Name string - Name of the rule.
- source
Lists DayuL4Rule V2Rules Source List[] - Source list of the rule.
- source
Port number - The source port of the layer 4 rule.
- source
Type number - Source type,
1
for source of host,2
for source of IP. - virtual
Port number - The virtual port of the layer 4 rule.
- keep_
enable bool - session hold switch.
- keeptime float
- The keeptime of the layer 4 rule.
- lb_
type float - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol str
- Protocol of the rule.
- region float
- Corresponding regional information.
- remove_
switch bool - Remove the watermark state.
- rule_
name str - Name of the rule.
- source_
lists Sequence[DayuL4Rule V2Rules Source List] - Source list of the rule.
- source_
port float - The source port of the layer 4 rule.
- source_
type float - Source type,
1
for source of host,2
for source of IP. - virtual_
port float - The virtual port of the layer 4 rule.
- keep
Enable Boolean - session hold switch.
- keeptime Number
- The keeptime of the layer 4 rule.
- lb
Type Number - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol String
- Protocol of the rule.
- region Number
- Corresponding regional information.
- remove
Switch Boolean - Remove the watermark state.
- rule
Name String - Name of the rule.
- source
Lists List<Property Map> - Source list of the rule.
- source
Port Number - The source port of the layer 4 rule.
- source
Type Number - Source type,
1
for source of host,2
for source of IP. - virtual
Port Number - The virtual port of the layer 4 rule.
DayuL4RuleV2RulesSourceList, DayuL4RuleV2RulesSourceListArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack