nsxt.VpcNatRule
Explore with Pulumi AI
Create VpcNatRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcNatRule(name: string, args: VpcNatRuleArgs, opts?: CustomResourceOptions);
@overload
def VpcNatRule(resource_name: str,
args: VpcNatRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcNatRule(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,
sequence_number: Optional[float] = None,
source_network: Optional[str] = None,
tags: Optional[Sequence[VpcNatRuleTagArgs]] = None,
translated_network: Optional[str] = None,
vpc_nat_rule_id: Optional[str] = None)
func NewVpcNatRule(ctx *Context, name string, args VpcNatRuleArgs, opts ...ResourceOption) (*VpcNatRule, error)
public VpcNatRule(string name, VpcNatRuleArgs args, CustomResourceOptions? opts = null)
public VpcNatRule(String name, VpcNatRuleArgs args)
public VpcNatRule(String name, VpcNatRuleArgs args, CustomResourceOptions options)
type: nsxt:VpcNatRule
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 VpcNatRuleArgs
- 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 VpcNatRuleArgs
- 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 VpcNatRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcNatRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcNatRuleArgs
- 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 vpcNatRuleResource = new Nsxt.VpcNatRule("vpcNatRuleResource", new()
{
DisplayName = "string",
ParentPath = "string",
Action = "string",
Logging = false,
Enabled = false,
FirewallMatch = "string",
DestinationNetwork = "string",
NsxId = "string",
Description = "string",
SequenceNumber = 0,
SourceNetwork = "string",
Tags = new[]
{
new Nsxt.Inputs.VpcNatRuleTagArgs
{
Scope = "string",
Tag = "string",
},
},
TranslatedNetwork = "string",
VpcNatRuleId = "string",
});
example, err := nsxt.NewVpcNatRule(ctx, "vpcNatRuleResource", &nsxt.VpcNatRuleArgs{
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"),
SequenceNumber: pulumi.Float64(0),
SourceNetwork: pulumi.String("string"),
Tags: nsxt.VpcNatRuleTagArray{
&nsxt.VpcNatRuleTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
TranslatedNetwork: pulumi.String("string"),
VpcNatRuleId: pulumi.String("string"),
})
var vpcNatRuleResource = new VpcNatRule("vpcNatRuleResource", VpcNatRuleArgs.builder()
.displayName("string")
.parentPath("string")
.action("string")
.logging(false)
.enabled(false)
.firewallMatch("string")
.destinationNetwork("string")
.nsxId("string")
.description("string")
.sequenceNumber(0.0)
.sourceNetwork("string")
.tags(VpcNatRuleTagArgs.builder()
.scope("string")
.tag("string")
.build())
.translatedNetwork("string")
.vpcNatRuleId("string")
.build());
vpc_nat_rule_resource = nsxt.VpcNatRule("vpcNatRuleResource",
display_name="string",
parent_path="string",
action="string",
logging=False,
enabled=False,
firewall_match="string",
destination_network="string",
nsx_id="string",
description="string",
sequence_number=0,
source_network="string",
tags=[{
"scope": "string",
"tag": "string",
}],
translated_network="string",
vpc_nat_rule_id="string")
const vpcNatRuleResource = new nsxt.VpcNatRule("vpcNatRuleResource", {
displayName: "string",
parentPath: "string",
action: "string",
logging: false,
enabled: false,
firewallMatch: "string",
destinationNetwork: "string",
nsxId: "string",
description: "string",
sequenceNumber: 0,
sourceNetwork: "string",
tags: [{
scope: "string",
tag: "string",
}],
translatedNetwork: "string",
vpcNatRuleId: "string",
});
type: nsxt:VpcNatRule
properties:
action: string
description: string
destinationNetwork: string
displayName: string
enabled: false
firewallMatch: string
logging: false
nsxId: string
parentPath: string
sequenceNumber: 0
sourceNetwork: string
tags:
- scope: string
tag: string
translatedNetwork: string
vpcNatRuleId: string
VpcNatRule 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 VpcNatRule 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.getVpcNat
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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.
- 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<Vpc
Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - Vpc
Nat stringRule Id - ID of the resource.
- 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.getVpcNat
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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.
- 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. - []Vpc
Nat Rule Tag Args - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - Vpc
Nat stringRule Id - ID of the resource.
- 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.getVpcNat
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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.
- 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<Vpc
Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- translated
Network String - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc
Nat StringRule Id - ID of the resource.
- 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.getVpcNat
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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.
- 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. - Vpc
Nat Rule Tag[] - A list of scope + tag pairs to associate with this resource.
- translated
Network string - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc
Nat stringRule Id - ID of the resource.
- 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.getVpcNat
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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.
- 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[Vpc
Nat Rule Tag Args] - A list of scope + tag pairs to associate with this resource.
- translated_
network str - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc_
nat_ strrule_ id - ID of the resource.
- 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.getVpcNat
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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.
- 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 - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc
Nat StringRule Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcNatRule resource produces the following output properties:
Look up Existing VpcNatRule Resource
Get an existing VpcNatRule 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?: VpcNatRuleState, opts?: CustomResourceOptions): VpcNatRule
@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,
revision: Optional[float] = None,
sequence_number: Optional[float] = None,
source_network: Optional[str] = None,
tags: Optional[Sequence[VpcNatRuleTagArgs]] = None,
translated_network: Optional[str] = None,
vpc_nat_rule_id: Optional[str] = None) -> VpcNatRule
func GetVpcNatRule(ctx *Context, name string, id IDInput, state *VpcNatRuleState, opts ...ResourceOption) (*VpcNatRule, error)
public static VpcNatRule Get(string name, Input<string> id, VpcNatRuleState? state, CustomResourceOptions? opts = null)
public static VpcNatRule get(String name, Output<String> id, VpcNatRuleState state, CustomResourceOptions options)
resources: _: type: nsxt:VpcNatRule 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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.getVpcNat
data source. - Path string
- The NSX path of the policy 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<Vpc
Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - Vpc
Nat stringRule Id - ID of the resource.
- 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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.getVpcNat
data source. - Path string
- The NSX path of the policy 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. - []Vpc
Nat Rule Tag Args - A list of scope + tag pairs to associate with this resource.
- Translated
Network string - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - Vpc
Nat stringRule Id - ID of the resource.
- 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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.getVpcNat
data source. - path String
- The NSX path of the policy 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<Vpc
Nat Rule Tag> - A list of scope + tag pairs to associate with this resource.
- translated
Network String - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc
Nat StringRule Id - ID of the resource.
- 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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.getVpcNat
data source. - path string
- The NSX path of the policy 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. - Vpc
Nat Rule Tag[] - A list of scope + tag pairs to associate with this resource.
- translated
Network string - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc
Nat stringRule Id - ID of the resource.
- 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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.getVpcNat
data source. - path str
- The NSX path of the policy 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[Vpc
Nat Rule Tag Args] - A list of scope + tag pairs to associate with this resource.
- translated_
network str - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc_
nat_ strrule_ id - ID of the resource.
- 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. In case ofDNAT
rule, destination network address should be IPv4 address allocated from External Block associated with VPC. - 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.getVpcNat
data source. - path String
- The NSX path of the policy 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 - For
SNAT
,DNAT
andREFLEXIVE
rules, this ia a required field, which represents the translated network address. In case ofSNAT
andREFLEXIVE
rule, translated network address should be single IPv4 address allocated from External Block associated with VPC. - vpc
Nat StringRule Id - ID of the resource.
Supporting Types
VpcNatRuleTag, VpcNatRuleTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.