NatRule Class

Rule of type nat.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.network.v2020_06_01.models._models_py3.FirewallPolicyRule
NatRule

Constructor

NatRule(*, name: typing.Union[str, NoneType] = None, description: typing.Union[str, NoneType] = None, ip_protocols: typing.Union[typing.List[typing.Union[str, _ForwardRef('FirewallPolicyRuleNetworkProtocol')]], NoneType] = None, source_addresses: typing.Union[typing.List[str], NoneType] = None, destination_addresses: typing.Union[typing.List[str], NoneType] = None, destination_ports: typing.Union[typing.List[str], NoneType] = None, translated_address: typing.Union[str, NoneType] = None, translated_port: typing.Union[str, NoneType] = None, source_ip_groups: typing.Union[typing.List[str], NoneType] = None, **kwargs)

Parameters

name
str

Name of the rule.

description
str

Description of the rule.

rule_type
str or FirewallPolicyRuleType

Required. Rule Type.Constant filled by server. Possible values include: "ApplicationRule", "NetworkRule", "NatRule".

ip_protocols
list[str or FirewallPolicyRuleNetworkProtocol]

Array of FirewallPolicyRuleNetworkProtocols.

source_addresses
list[str]

List of source IP addresses for this rule.

destination_addresses
list[str]

List of destination IP addresses or Service Tags.

destination_ports
list[str]

List of destination ports.

translated_address
str

The translated address for this NAT rule.

translated_port
str

The translated port for this NAT rule.

source_ip_groups
list[str]

List of source IpGroups for this rule.