RouterNatState constructor
- Input<
String?> ? autoNetworkTier, - Input<
String?> ? deletionPolicy, - Input<
List< ? drainNatIps,String> ?> - Input<
bool?> ? enableDynamicPortAllocation, - Input<
bool?> ? enableEndpointIndependentMapping, - Input<
List< ? endpointTypes,String> ?> - Input<
int?> ? icmpIdleTimeoutSec, - Input<
List< ? initialNatIps,String> ?> - Input<
RouterNatLogConfig?> ? logConfig, - Input<
int?> ? maxPortsPerVm, - Input<
int?> ? minPortsPerVm, - Input<
String?> ? name, - Input<
List< ? nat64Subnetworks,RouterNatNat64Subnetwork> ?> - Input<
String?> ? natIpAllocateOption, - Input<
List< ? natIps,String> ?> - Input<
String?> ? project, - Input<
String?> ? region, - Input<
String?> ? router, - Input<
List< ? rules,RouterNatRule> ?> - Input<
String?> ? sourceSubnetworkIpRangesToNat, - Input<
String?> ? sourceSubnetworkIpRangesToNat64, - Input<
List< ? subnetworks,RouterNatSubnetwork> ?> - Input<
int?> ? tcpEstablishedIdleTimeoutSec, - Input<
int?> ? tcpTimeWaitTimeoutSec, - Input<
int?> ? tcpTransitoryIdleTimeoutSec, - Input<
String?> ? type, - Input<
int?> ? udpIdleTimeoutSec,
Creates a new RouterNatState.
autoNetworkTier The network tier to use when automatically reserving NAT IP addresses.
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
drainNatIps A list of URLs of the IP resources to be drained. These IPs must be
enableDynamicPortAllocation Enable Dynamic Port Allocation.
enableEndpointIndependentMapping Enable endpoint independent mapping.
endpointTypes Specifies the endpoint Types supported by the NAT Gateway.
icmpIdleTimeoutSec Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
initialNatIps Self-links of NAT IPs to be used as initial value for creation alongside a RouterNatAddress resource.
logConfig Configuration for logging on NAT
maxPortsPerVm Maximum number of ports allocated to a VM from this NAT.
minPortsPerVm Minimum number of ports allocated to a VM from this NAT. Defaults to 64 for static port allocation and 32 dynamic port allocation if not set.
name Name of the NAT service. The name must be 1-63 characters long and
nat64Subnetworks One or more subnetwork NAT configurations whose traffic should be translated by NAT64 Gateway.
natIpAllocateOption How external IPs should be allocated for this NAT. Valid values are
natIps Self-links of NAT IPs. Only valid if natIpAllocateOption
project The ID of the project in which the resource belongs.
region Region where the router and NAT reside.
router The name of the Cloud Router in which this NAT will be configured.
rules A list of rules associated with this NAT.
sourceSubnetworkIpRangesToNat How NAT should be configured per Subnetwork.
sourceSubnetworkIpRangesToNat64 Specify the Nat option for NAT64, which can take one of the following values:
subnetworks One or more subnetwork NAT configurations. Only used if
tcpEstablishedIdleTimeoutSec Timeout (in seconds) for TCP established connections.
tcpTimeWaitTimeoutSec Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
tcpTransitoryIdleTimeoutSec Timeout (in seconds) for TCP transitory connections.
type Indicates whether this NAT is used for public or private IP translation.
udpIdleTimeoutSec Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
Implementation
const RouterNatState({
this.autoNetworkTier,
this.deletionPolicy,
this.drainNatIps,
this.enableDynamicPortAllocation,
this.enableEndpointIndependentMapping,
this.endpointTypes,
this.icmpIdleTimeoutSec,
this.initialNatIps,
this.logConfig,
this.maxPortsPerVm,
this.minPortsPerVm,
this.name,
this.nat64Subnetworks,
this.natIpAllocateOption,
this.natIps,
this.project,
this.region,
this.router,
this.rules,
this.sourceSubnetworkIpRangesToNat,
this.sourceSubnetworkIpRangesToNat64,
this.subnetworks,
this.tcpEstablishedIdleTimeoutSec,
this.tcpTimeWaitTimeoutSec,
this.tcpTransitoryIdleTimeoutSec,
this.type,
this.udpIdleTimeoutSec,
});