Class NetworkArgs
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class NetworkArgs : ResourceArgs
Constructors
View SourceNetworkArgs()
Declaration
public NetworkArgs()
Properties
View SourceAutoCreateSubnetworks
When set to true, the network is created in "auto subnet mode" and
it will create a subnet for each region automatically across the
10.128.0.0/9 address range.
When set to false, the network is created in "custom subnet mode" so
the user can explicitly connect subnetwork resources.
Declaration
public Input<bool> AutoCreateSubnetworks { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
DeleteDefaultRoutesOnCreate
If set to true, default routes (0.0.0.0/0) will be deleted
immediately after network creation. Defaults to false.
Declaration
public Input<bool> DeleteDefaultRoutesOnCreate { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Description
An optional description of this resource. The resource must be recreated to modify this field.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
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.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<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> |
RoutingMode
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 to GLOBAL,
this network's cloud routers will advertise routes with all
subnetworks of this network, across regions.
Declaration
public Input<string> RoutingMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |