NetworkArgs class
The set of arguments for Network. The set of arguments for Network.
Constructors
-
NetworkArgs({Input<
bool?> ? autoCreateSubnetworks, Input<bool?> ? bgpAlwaysCompareMed, Input<String?> ? bgpBestPathSelectionMode, Input<String?> ? bgpInterRegionCost, Input<bool?> ? deleteBgpAlwaysCompareMed, Input<bool?> ? deleteDefaultRoutesOnCreate, Input<String?> ? deletionPolicy, Input<String?> ? description, Input<bool?> ? enableUlaInternalIpv6, Input<String?> ? internalIpv6Range, Input<int?> ? mtu, Input<String?> ? name, Input<String?> ? networkFirewallPolicyEnforcementOrder, Input<String?> ? networkProfile, Input<NetworkParams?> ? params, Input<String?> ? project, Input<String?> ? routingMode}) -
Creates a new NetworkArgs.
autoCreateSubnetworksWhen set totrue, the network is created in "auto subnet mode" andbgpAlwaysCompareMedEnables/disables the comparison of MED across routes with different Neighbor ASNs.bgpBestPathSelectionModeThe BGP best selection algorithm to be employed. MODE can be LEGACY or STANDARD.bgpInterRegionCostChoice of the behavior of inter-regional cost and MED in the BPS algorithm.deleteBgpAlwaysCompareMedIf set totrue, thebgpAlwaysCompareMedfield will be cleared.deleteDefaultRoutesOnCreateIf set totrue, default routes (0.0.0.0/0) will be deleteddeletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.descriptionAn optional description of this resource. The resource must beenableUlaInternalIpv6Enable ULA internal ipv6 on this network. Enabling this feature will assigninternalIpv6RangeWhen enabling ula internal ipv6, caller optionally can specify the /48 rangemtuMaximum Transmission Unit in bytes. The default value is 1460 bytes.nameName of the resource. Provided by the client when the resource isnetworkFirewallPolicyEnforcementOrderSet the order that Firewall Rules and Firewall Policies are evaluated.networkProfileA full or partial URL of the network profile to apply to this network.paramsAdditional params passed with the request, but not persisted as part of resource payloadprojectThe ID of the project in which the resource belongs.routingModeThe network-wide routing mode to use. If set toREGIONAL, thisconst -
NetworkArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
autoCreateSubnetworks
→ Input<
bool?> ? -
When set to
true, the network is created in "auto subnet mode" and it will create a subnet for each region automatically across the10.128.0.0/9address range. When set tofalse, the network is created in "custom subnet mode" so the user can explicitly connect subnetwork resources.final -
bgpAlwaysCompareMed
→ Input<
bool?> ? -
Enables/disables the comparison of MED across routes with different Neighbor ASNs.
This value can only be set if the --bgp-best-path-selection-mode is STANDARD
final
-
bgpBestPathSelectionMode
→ Input<
String?> ? -
The BGP best selection algorithm to be employed. MODE can be LEGACY or STANDARD.
Possible values are:
LEGACY,STANDARD.final -
bgpInterRegionCost
→ Input<
String?> ? -
Choice of the behavior of inter-regional cost and MED in the BPS algorithm.
Possible values are:
DEFAULT,ADD_COST_TO_MED.final -
deleteBgpAlwaysCompareMed
→ Input<
bool?> ? -
If set to
true, thebgpAlwaysCompareMedfield will be cleared. If set tofalse(the default),bgpAlwaysCompareMedwill be set to the value specified in the configuration.final -
deleteDefaultRoutesOnCreate
→ Input<
bool?> ? -
If set to
true, default routes (0.0.0.0/0) will be deleted immediately after network creation. Defaults tofalse.final -
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
description
→ Input<
String?> ? -
An optional description of this resource. The resource must be
recreated to modify this field.
final
-
enableUlaInternalIpv6
→ Input<
bool?> ? -
Enable ULA internal ipv6 on this network. Enabling this feature will assign
a /48 from google defined ULA prefix fd20::/20.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
internalIpv6Range
→ Input<
String?> ? -
When enabling ula internal ipv6, caller optionally can specify the /48 range
they want from the google defined ULA prefix fd20::/20. The input must be a
valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will
fail if the speficied /48 is already in used by another resource.
If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field.
final
-
mtu
→ Input<
int?> ? -
Maximum Transmission Unit in bytes. The default value is 1460 bytes.
The minimum value for this field is 1300 and the maximum value is 8896 bytes (jumbo frames).
Note that packets larger than 1500 bytes (standard Ethernet) can be subject to TCP-MSS clamping or dropped
with an ICMP
Fragmentation-Neededmessage if the packets are routed to the Internet or other VPCs with varying MTUs.final -
name
→ Input<
String?> ? -
Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.final -
networkFirewallPolicyEnforcementOrder
→ Input<
String?> ? -
Set the order that Firewall Rules and Firewall Policies are evaluated.
Default value is
AFTER_CLASSIC_FIREWALL. Possible values are:BEFORE_CLASSIC_FIREWALL,AFTER_CLASSIC_FIREWALL.final -
networkProfile
→ Input<
String?> ? -
A full or partial URL of the network profile to apply to this network.
This field can be set only at resource creation time. For example, the
following are valid URLs:
final
-
params
→ Input<
NetworkParams?> ? -
Additional params passed with the request, but not persisted as part of resource payload
Structure is documented below.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
-
routingMode
→ Input<
String?> ? -
The network-wide routing mode to use. If set to
REGIONAL, this network's cloud routers will only advertise routes with subnetworks of this network in the same region as the router. If set toGLOBAL, this network's cloud routers will advertise routes with all subnetworks of this network, across regions. Possible values are:REGIONAL,GLOBAL.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited