Class RouterNatState
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class RouterNatState : ResourceArgs
Constructors
View SourceRouterNatState()
Declaration
public RouterNatState()
Properties
View SourceDrainNatIps
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT.
Declaration
public InputList<string> DrainNatIps { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
IcmpIdleTimeoutSec
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
Declaration
public Input<int> IcmpIdleTimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
LogConfig
Configuration for logging on NAT Structure is documented below.
Declaration
public Input<RouterNatLogConfigGetArgs> LogConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<RouterNatLogConfigGetArgs> |
MinPortsPerVm
Minimum number of ports allocated to a VM from this NAT.
Declaration
public Input<int> MinPortsPerVm { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Name
Self-link of subnetwork to NAT
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NatIpAllocateOption
How external IPs should be allocated for this NAT. Valid values are
AUTO_ONLY for only allowing NAT IPs allocated by Google Cloud
Platform, or MANUAL_ONLY for only user-allocated NAT IP addresses.
Declaration
public Input<string> NatIpAllocateOption { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NatIps
Self-links of NAT IPs. Only valid if natIpAllocateOption is set to MANUAL_ONLY.
Declaration
public InputList<string> NatIps { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Region
Region where the router and NAT reside.
Declaration
public Input<string> Region { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Router
The name of the Cloud Router in which this NAT will be configured.
Declaration
public Input<string> Router { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourceSubnetworkIpRangesToNat
How NAT should be configured per Subnetwork.
If ALL_SUBNETWORKS_ALL_IP_RANGES, all of the
IP ranges in every Subnetwork are allowed to Nat.
If ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, all of the primary IP
ranges in every Subnetwork are allowed to Nat.
LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat
(specified in the field subnetwork below). Note that if this field
contains ALL_SUBNETWORKS_ALL_IP_RANGES or
ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any
other RouterNat section in any Router for this network in this region.
Declaration
public Input<string> SourceSubnetworkIpRangesToNat { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Subnetworks
One or more subnetwork NAT configurations. Only used if
source_subnetwork_ip_ranges_to_nat is set to LIST_OF_SUBNETWORKS Structure is documented below.
Declaration
public InputList<RouterNatSubnetworkGetArgs> Subnetworks { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<RouterNatSubnetworkGetArgs> |
TcpEstablishedIdleTimeoutSec
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
Declaration
public Input<int> TcpEstablishedIdleTimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
TcpTransitoryIdleTimeoutSec
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
Declaration
public Input<int> TcpTransitoryIdleTimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
UdpIdleTimeoutSec
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
Declaration
public Input<int> UdpIdleTimeoutSec { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |