nsxt.PolicyTransitGatewayNatRule
Explore with Pulumi AI
Create PolicyTransitGatewayNatRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyTransitGatewayNatRule(name: string, args: PolicyTransitGatewayNatRuleArgs, opts?: CustomResourceOptions);
@overload
def PolicyTransitGatewayNatRule(resource_name: str,
args: PolicyTransitGatewayNatRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyTransitGatewayNatRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
parent_path: Optional[str] = None,
action: Optional[str] = None,
logging: Optional[bool] = None,
enabled: Optional[bool] = None,
firewall_match: Optional[str] = None,
destination_network: Optional[str] = None,
nsx_id: Optional[str] = None,
description: Optional[str] = None,
policy_transit_gateway_nat_rule_id: Optional[str] = None,
sequence_number: Optional[float] = None,
source_network: Optional[str] = None,
tags: Optional[Sequence[PolicyTransitGatewayNatRuleTagArgs]] = None,
translated_network: Optional[str] = None)
func NewPolicyTransitGatewayNatRule(ctx *Context, name string, args PolicyTransitGatewayNatRuleArgs, opts ...ResourceOption) (*PolicyTransitGatewayNatRule, error)
public PolicyTransitGatewayNatRule(string name, PolicyTransitGatewayNatRuleArgs args, CustomResourceOptions? opts = null)
public PolicyTransitGatewayNatRule(String name, PolicyTransitGatewayNatRuleArgs args)
public PolicyTransitGatewayNatRule(String name, PolicyTransitGatewayNatRuleArgs args, CustomResourceOptions options)
type: nsxt:PolicyTransitGatewayNatRule
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 PolicyTransitGatewayNatRuleArgs
- 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 PolicyTransitGatewayNatRuleArgs
- 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 PolicyTransitGatewayNatRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyTransitGatewayNatRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyTransitGatewayNatRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var policyTransitGatewayNatRuleResource = new Nsxt.PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource", new()
{
DisplayName = "string",
ParentPath = "string",
Action = "string",
Logging = false,
Enabled = false,
FirewallMatch = "string",
DestinationNetwork = "string",
NsxId = "string",
Description = "string",
PolicyTransitGatewayNatRuleId = "string",
SequenceNumber = 0,
SourceNetwork = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyTransitGatewayNatRuleTagArgs
{
Scope = "string",
Tag = "string",
},
},
TranslatedNetwork = "string",
});
example, err := nsxt.NewPolicyTransitGatewayNatRule(ctx, "policyTransitGatewayNatRuleResource", &nsxt.PolicyTransitGatewayNatRuleArgs{
DisplayName: pulumi.String("string"),
ParentPath: pulumi.String("string"),
Action: pulumi.String("string"),
Logging: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
FirewallMatch: pulumi.String("string"),
DestinationNetwork: pulumi.String("string"),
NsxId: pulumi.String("string"),
Description: pulumi.String("string"),
PolicyTransitGatewayNatRuleId: pulumi.String("string"),
SequenceNumber: pulumi.Float64(0),
SourceNetwork: pulumi.String("string"),
Tags: nsxt.PolicyTransitGatewayNatRuleTagArray{
&nsxt.PolicyTransitGatewayNatRuleTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
TranslatedNetwork: pulumi.String("string"),
})
var policyTransitGatewayNatRuleResource = new PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource", PolicyTransitGatewayNatRuleArgs.builder()
.displayName("string")
.parentPath("string")
.action("string")
.logging(false)
.enabled(false)
.firewallMatch("string")
.destinationNetwork("string")
.nsxId("string")
.description("string")
.policyTransitGatewayNatRuleId("string")
.sequenceNumber(0.0)
.sourceNetwork("string")
.tags(PolicyTransitGatewayNatRuleTagArgs.builder()
.scope("string")
.tag("string")
.build())
.translatedNetwork("string")
.build());
policy_transit_gateway_nat_rule_resource = nsxt.PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource",
display_name="string",
parent_path="string",
action="string",
logging=False,
enabled=False,
firewall_match="string",
destination_network="string",
nsx_id="string",
description="string",
policy_transit_gateway_nat_rule_id="string",
sequence_number=0,
source_network="string",
tags=[{
"scope": "string",
"tag": "string",
}],
translated_network="string")
const policyTransitGatewayNatRuleResource = new nsxt.PolicyTransitGatewayNatRule("policyTransitGatewayNatRuleResource", {
displayName: "string",
parentPath: "string",
action: "string",
logging: false,
enabled: false,
firewallMatch: "string",
destinationNetwork: "string",
nsxId: "string",
description: "string",
policyTransitGatewayNatRuleId: "string",
sequenceNumber: 0,
sourceNetwork: "string",
tags: [{
scope: "string",
tag: "string",
}],
translatedNetwork: "string",
});
type: nsxt:PolicyTransitGatewayNatRule
properties:
action: string
description: string
destinationNetwork: string
displayName: string
enabled: false
firewallMatch: string
logging: false
nsxId: string
parentPath: string
policyTransitGatewayNatRuleId: string
sequenceNumber: 0
sourceNetwork: string
tags:
- scope: string
tag: string
translatedNetwork: string
PolicyTransitGatewayNatRule 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 PolicyTransitGatewayNatRule resource accepts the following input properties:
- Action string
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - Display
Name string - Display name of the resource.
- Parent
Path string - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - Description string
- Description of the resource.
- Destination
Network string - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - Enabled bool
- Flag for enabling the NAT rule, default is
true
. - Firewall
Match string - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - Logging bool
- Boolean flag to indicate whether logging is enabled. The default is
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Transit stringGateway Nat Rule Id - ID of the resource.
- Sequence
Number double - The sequence_number decides the rule_priority of a NAT rule.
- Source
Network string - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - List<Policy
Transit Gateway Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - Translated network address.
- Action string
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - Display
Name string - Display name of the resource.
- Parent
Path string - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - Description string
- Description of the resource.
- Destination
Network string - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - Enabled bool
- Flag for enabling the NAT rule, default is
true
. - Firewall
Match string - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - Logging bool
- Boolean flag to indicate whether logging is enabled. The default is
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Transit stringGateway Nat Rule Id - ID of the resource.
- Sequence
Number float64 - The sequence_number decides the rule_priority of a NAT rule.
- Source
Network string - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - []Policy
Transit Gateway Nat Rule Tag Args - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - Translated network address.
- action String
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - display
Name String - Display name of the resource.
- parent
Path String - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - description String
- Description of the resource.
- destination
Network String - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - enabled Boolean
- Flag for enabling the NAT rule, default is
true
. - firewall
Match String - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging Boolean
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Transit StringGateway Nat Rule Id - ID of the resource.
- sequence
Number Double - The sequence_number decides the rule_priority of a NAT rule.
- source
Network String - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - List<Policy
Transit Gateway Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- translated
Network String - Translated network address.
- action string
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - display
Name string - Display name of the resource.
- parent
Path string - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - description string
- Description of the resource.
- destination
Network string - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - enabled boolean
- Flag for enabling the NAT rule, default is
true
. - firewall
Match string - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging boolean
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Transit stringGateway Nat Rule Id - ID of the resource.
- sequence
Number number - The sequence_number decides the rule_priority of a NAT rule.
- source
Network string - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - Policy
Transit Gateway Nat Rule Tag[] - A list of scope + tag pairs to associate with this resource.
- translated
Network string - Translated network address.
- action str
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - display_
name str - Display name of the resource.
- parent_
path str - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - description str
- Description of the resource.
- destination_
network str - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - enabled bool
- Flag for enabling the NAT rule, default is
true
. - firewall_
match str - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging bool
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
transit_ strgateway_ nat_ rule_ id - ID of the resource.
- sequence_
number float - The sequence_number decides the rule_priority of a NAT rule.
- source_
network str - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - Sequence[Policy
Transit Gateway Nat Rule Tag Args] - A list of scope + tag pairs to associate with this resource.
- translated_
network str - Translated network address.
- action String
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - display
Name String - Display name of the resource.
- parent
Path String - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - description String
- Description of the resource.
- destination
Network String - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - enabled Boolean
- Flag for enabling the NAT rule, default is
true
. - firewall
Match String - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging Boolean
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Transit StringGateway Nat Rule Id - ID of the resource.
- sequence
Number Number - The sequence_number decides the rule_priority of a NAT rule.
- source
Network String - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- translated
Network String - Translated network address.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyTransitGatewayNatRule resource produces the following output properties:
Look up Existing PolicyTransitGatewayNatRule Resource
Get an existing PolicyTransitGatewayNatRule 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?: PolicyTransitGatewayNatRuleState, opts?: CustomResourceOptions): PolicyTransitGatewayNatRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
description: Optional[str] = None,
destination_network: Optional[str] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
firewall_match: Optional[str] = None,
logging: Optional[bool] = None,
nsx_id: Optional[str] = None,
parent_path: Optional[str] = None,
path: Optional[str] = None,
policy_transit_gateway_nat_rule_id: Optional[str] = None,
revision: Optional[float] = None,
sequence_number: Optional[float] = None,
source_network: Optional[str] = None,
tags: Optional[Sequence[PolicyTransitGatewayNatRuleTagArgs]] = None,
translated_network: Optional[str] = None) -> PolicyTransitGatewayNatRule
func GetPolicyTransitGatewayNatRule(ctx *Context, name string, id IDInput, state *PolicyTransitGatewayNatRuleState, opts ...ResourceOption) (*PolicyTransitGatewayNatRule, error)
public static PolicyTransitGatewayNatRule Get(string name, Input<string> id, PolicyTransitGatewayNatRuleState? state, CustomResourceOptions? opts = null)
public static PolicyTransitGatewayNatRule get(String name, Output<String> id, PolicyTransitGatewayNatRuleState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyTransitGatewayNatRule 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
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - Description string
- Description of the resource.
- Destination
Network string - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - Display
Name string - Display name of the resource.
- Enabled bool
- Flag for enabling the NAT rule, default is
true
. - Firewall
Match string - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - Logging bool
- Boolean flag to indicate whether logging is enabled. The default is
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Parent
Path string - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - Path string
- The NSX path of the policy resource.
- Policy
Transit stringGateway Nat Rule Id - ID of the resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence
Number double - The sequence_number decides the rule_priority of a NAT rule.
- Source
Network string - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - List<Policy
Transit Gateway Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - Translated network address.
- Action string
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - Description string
- Description of the resource.
- Destination
Network string - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - Display
Name string - Display name of the resource.
- Enabled bool
- Flag for enabling the NAT rule, default is
true
. - Firewall
Match string - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - Logging bool
- Boolean flag to indicate whether logging is enabled. The default is
false
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Parent
Path string - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - Path string
- The NSX path of the policy resource.
- Policy
Transit stringGateway Nat Rule Id - ID of the resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence
Number float64 - The sequence_number decides the rule_priority of a NAT rule.
- Source
Network string - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - []Policy
Transit Gateway Nat Rule Tag Args - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - Translated network address.
- action String
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - description String
- Description of the resource.
- destination
Network String - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - display
Name String - Display name of the resource.
- enabled Boolean
- Flag for enabling the NAT rule, default is
true
. - firewall
Match String - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging Boolean
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent
Path String - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - path String
- The NSX path of the policy resource.
- policy
Transit StringGateway Nat Rule Id - ID of the resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sequence
Number Double - The sequence_number decides the rule_priority of a NAT rule.
- source
Network String - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - List<Policy
Transit Gateway Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- translated
Network String - Translated network address.
- action string
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - description string
- Description of the resource.
- destination
Network string - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - display
Name string - Display name of the resource.
- enabled boolean
- Flag for enabling the NAT rule, default is
true
. - firewall
Match string - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging boolean
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent
Path string - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - path string
- The NSX path of the policy resource.
- policy
Transit stringGateway Nat Rule Id - ID of the resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sequence
Number number - The sequence_number decides the rule_priority of a NAT rule.
- source
Network string - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - Policy
Transit Gateway Nat Rule Tag[] - A list of scope + tag pairs to associate with this resource.
- translated
Network string - Translated network address.
- action str
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - description str
- Description of the resource.
- destination_
network str - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - display_
name str - Display name of the resource.
- enabled bool
- Flag for enabling the NAT rule, default is
true
. - firewall_
match str - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging bool
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent_
path str - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - path str
- The NSX path of the policy resource.
- policy_
transit_ strgateway_ nat_ rule_ id - ID of the resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sequence_
number float - The sequence_number decides the rule_priority of a NAT rule.
- source_
network str - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - Sequence[Policy
Transit Gateway Nat Rule Tag Args] - A list of scope + tag pairs to associate with this resource.
- translated_
network str - Translated network address.
- action String
- NAT action, one of
SNAT
(translates a source IP address into an outbound packet so that the packet appears to originate from a different network),DNAT
(translates the destination IP address of inbound packets so that packets are delivered to a target address into another network), andREFLEXIVE
(one-to-one mapping of source and destination IP addresses). - description String
- Description of the resource.
- destination
Network String - For
DNAT
rules, this is a required field, and represents the destination network for the incoming packets. For other type of rules, it may contain destination network of outgoing packets. - display
Name String - Display name of the resource.
- enabled Boolean
- Flag for enabling the NAT rule, default is
true
. - firewall
Match String - Indicates how the firewall matches the address after NATing if firewall
stage is not skipped, one of
MATCH_EXTERNAL_ADDRESS
,MATCH_INTERNAL_ADDRESS
orBYPASS
. Default isMATCH_INTERNAL_ADDRESS
. - logging Boolean
- Boolean flag to indicate whether logging is enabled. The default is
false
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent
Path String - Policy path of parent NAT object, typically reference to
path
innsxt.getPolicyTransitGatewayNat
data source. - path String
- The NSX path of the policy resource.
- policy
Transit StringGateway Nat Rule Id - ID of the resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- sequence
Number Number - The sequence_number decides the rule_priority of a NAT rule.
- source
Network String - Source network. For
SNAT
andREFLEXIVE
rules, this is a required field. ForDNAT
rules, it may contain source network for incoming packets. - List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- translated
Network String - Translated network address.
Supporting Types
PolicyTransitGatewayNatRuleTag, PolicyTransitGatewayNatRuleTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.