tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack
tencentcloud.DayuL4RuleV2
Explore with Pulumi AI
tencentcloud 1.81.182 published on Monday, Apr 14, 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
This property is required. string - The unique name of the resource.
- args
This property is required. DayuL4RuleV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. DayuL4RuleV2Args - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. DayuL4RuleV2Args - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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
This property is required. string - Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Resource
Id This property is required. string - Resource id.
- Rules
This property is required. DayuL4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- Virtual
Port This property is required. double - The virtual port of the layer 4 rule.
- Vpn
This property is required. string - Resource vpn.
- Dayu
L4Rule stringV2Id
- Business
This property is required. string - Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - Resource
Id This property is required. string - Resource id.
- Rules
This property is required. DayuL4Rule V2Rules Args - A list of layer 4 rules. Each element contains the following attributes:
- Virtual
Port This property is required. float64 - The virtual port of the layer 4 rule.
- Vpn
This property is required. string - Resource vpn.
- Dayu
L4Rule stringV2Id
- business
This property is required. String - Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource
Id This property is required. String - Resource id.
- rules
This property is required. DayuL4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port This property is required. Double - The virtual port of the layer 4 rule.
- vpn
This property is required. String - Resource vpn.
- dayu
L4Rule StringV2Id
- business
This property is required. string - Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource
Id This property is required. string - Resource id.
- rules
This property is required. DayuL4Rule V2Rules - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port This property is required. number - The virtual port of the layer 4 rule.
- vpn
This property is required. string - Resource vpn.
- dayu
L4Rule stringV2Id
- business
This property is required. str - Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource_
id This property is required. str - Resource id.
- rules
This property is required. DayuL4Rule V2Rules Args - A list of layer 4 rules. Each element contains the following attributes:
- virtual_
port This property is required. float - The virtual port of the layer 4 rule.
- vpn
This property is required. str - Resource vpn.
- dayu_
l4_ strrule_ v2_ id
- business
This property is required. String - Business of the resource that the layer 4 rule works for. Valid values:
bgpip
andnet
. - resource
Id This property is required. String - Resource id.
- rules
This property is required. Property Map - A list of layer 4 rules. Each element contains the following attributes:
- virtual
Port This property is required. Number - The virtual port of the layer 4 rule.
- vpn
This property is required. 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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:
- 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
, DayuL4RuleV2RulesArgs
- Keep
Enable This property is required. bool - session hold switch.
- Keeptime
This property is required. double - The keeptime of the layer 4 rule.
- Lb
Type This property is required. double - LB type of the rule,
1
for weight cycling and2
for IP hash. - Protocol
This property is required. string - Protocol of the rule.
- Region
This property is required. double - Corresponding regional information.
- Remove
Switch This property is required. bool - Remove the watermark state.
- Rule
Name This property is required. string - Name of the rule.
- Source
Lists This property is required. List<DayuL4Rule V2Rules Source List> - Source list of the rule.
- Source
Port This property is required. double - The source port of the layer 4 rule.
- Source
Type This property is required. double - Source type,
1
for source of host,2
for source of IP. - Virtual
Port This property is required. double - The virtual port of the layer 4 rule.
- Keep
Enable This property is required. bool - session hold switch.
- Keeptime
This property is required. float64 - The keeptime of the layer 4 rule.
- Lb
Type This property is required. float64 - LB type of the rule,
1
for weight cycling and2
for IP hash. - Protocol
This property is required. string - Protocol of the rule.
- Region
This property is required. float64 - Corresponding regional information.
- Remove
Switch This property is required. bool - Remove the watermark state.
- Rule
Name This property is required. string - Name of the rule.
- Source
Lists This property is required. []DayuL4Rule V2Rules Source List - Source list of the rule.
- Source
Port This property is required. float64 - The source port of the layer 4 rule.
- Source
Type This property is required. float64 - Source type,
1
for source of host,2
for source of IP. - Virtual
Port This property is required. float64 - The virtual port of the layer 4 rule.
- keep
Enable This property is required. Boolean - session hold switch.
- keeptime
This property is required. Double - The keeptime of the layer 4 rule.
- lb
Type This property is required. Double - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol
This property is required. String - Protocol of the rule.
- region
This property is required. Double - Corresponding regional information.
- remove
Switch This property is required. Boolean - Remove the watermark state.
- rule
Name This property is required. String - Name of the rule.
- source
Lists This property is required. List<DayuL4Rule V2Rules Source List> - Source list of the rule.
- source
Port This property is required. Double - The source port of the layer 4 rule.
- source
Type This property is required. Double - Source type,
1
for source of host,2
for source of IP. - virtual
Port This property is required. Double - The virtual port of the layer 4 rule.
- keep
Enable This property is required. boolean - session hold switch.
- keeptime
This property is required. number - The keeptime of the layer 4 rule.
- lb
Type This property is required. number - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol
This property is required. string - Protocol of the rule.
- region
This property is required. number - Corresponding regional information.
- remove
Switch This property is required. boolean - Remove the watermark state.
- rule
Name This property is required. string - Name of the rule.
- source
Lists This property is required. DayuL4Rule V2Rules Source List[] - Source list of the rule.
- source
Port This property is required. number - The source port of the layer 4 rule.
- source
Type This property is required. number - Source type,
1
for source of host,2
for source of IP. - virtual
Port This property is required. number - The virtual port of the layer 4 rule.
- keep_
enable This property is required. bool - session hold switch.
- keeptime
This property is required. float - The keeptime of the layer 4 rule.
- lb_
type This property is required. float - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol
This property is required. str - Protocol of the rule.
- region
This property is required. float - Corresponding regional information.
- remove_
switch This property is required. bool - Remove the watermark state.
- rule_
name This property is required. str - Name of the rule.
- source_
lists This property is required. Sequence[DayuL4Rule V2Rules Source List] - Source list of the rule.
- source_
port This property is required. float - The source port of the layer 4 rule.
- source_
type This property is required. float - Source type,
1
for source of host,2
for source of IP. - virtual_
port This property is required. float - The virtual port of the layer 4 rule.
- keep
Enable This property is required. Boolean - session hold switch.
- keeptime
This property is required. Number - The keeptime of the layer 4 rule.
- lb
Type This property is required. Number - LB type of the rule,
1
for weight cycling and2
for IP hash. - protocol
This property is required. String - Protocol of the rule.
- region
This property is required. Number - Corresponding regional information.
- remove
Switch This property is required. Boolean - Remove the watermark state.
- rule
Name This property is required. String - Name of the rule.
- source
Lists This property is required. List<Property Map> - Source list of the rule.
- source
Port This property is required. Number - The source port of the layer 4 rule.
- source
Type This property is required. Number - Source type,
1
for source of host,2
for source of IP. - virtual
Port This property is required. Number - The virtual port of the layer 4 rule.
DayuL4RuleV2RulesSourceList, DayuL4RuleV2RulesSourceListArgs
, DayuL4RuleV2RulesSourceListArgs
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack