pub struct NetworkArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> NetworkArgsBuilder<S>
impl<S: State> NetworkArgsBuilder<S>
sourcepub fn build_struct(self) -> NetworkArgswhere
S: IsComplete,
pub fn build_struct(self) -> NetworkArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn auto_create_subnetworks(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetAutoCreateSubnetworks<S>>where
S::AutoCreateSubnetworks: IsUnset,
pub fn auto_create_subnetworks(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetAutoCreateSubnetworks<S>>where
S::AutoCreateSubnetworks: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn maybe_auto_create_subnetworks(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetAutoCreateSubnetworks<S>>where
S::AutoCreateSubnetworks: IsUnset,
pub fn maybe_auto_create_subnetworks(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetAutoCreateSubnetworks<S>>where
S::AutoCreateSubnetworks: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn bgp_always_compare_med(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetBgpAlwaysCompareMed<S>>where
S::BgpAlwaysCompareMed: IsUnset,
pub fn bgp_always_compare_med(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetBgpAlwaysCompareMed<S>>where
S::BgpAlwaysCompareMed: IsUnset,
sourcepub fn maybe_bgp_always_compare_med(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetBgpAlwaysCompareMed<S>>where
S::BgpAlwaysCompareMed: IsUnset,
pub fn maybe_bgp_always_compare_med(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetBgpAlwaysCompareMed<S>>where
S::BgpAlwaysCompareMed: IsUnset,
sourcepub fn bgp_best_path_selection_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetBgpBestPathSelectionMode<S>>where
S::BgpBestPathSelectionMode: IsUnset,
pub fn bgp_best_path_selection_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetBgpBestPathSelectionMode<S>>where
S::BgpBestPathSelectionMode: IsUnset,
sourcepub fn maybe_bgp_best_path_selection_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetBgpBestPathSelectionMode<S>>where
S::BgpBestPathSelectionMode: IsUnset,
pub fn maybe_bgp_best_path_selection_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetBgpBestPathSelectionMode<S>>where
S::BgpBestPathSelectionMode: IsUnset,
sourcepub fn bgp_inter_region_cost(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetBgpInterRegionCost<S>>where
S::BgpInterRegionCost: IsUnset,
pub fn bgp_inter_region_cost(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetBgpInterRegionCost<S>>where
S::BgpInterRegionCost: IsUnset,
sourcepub fn maybe_bgp_inter_region_cost(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetBgpInterRegionCost<S>>where
S::BgpInterRegionCost: IsUnset,
pub fn maybe_bgp_inter_region_cost(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetBgpInterRegionCost<S>>where
S::BgpInterRegionCost: IsUnset,
sourcepub fn delete_default_routes_on_create(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetDeleteDefaultRoutesOnCreate<S>>where
S::DeleteDefaultRoutesOnCreate: IsUnset,
pub fn delete_default_routes_on_create(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetDeleteDefaultRoutesOnCreate<S>>where
S::DeleteDefaultRoutesOnCreate: IsUnset,
sourcepub fn maybe_delete_default_routes_on_create(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetDeleteDefaultRoutesOnCreate<S>>where
S::DeleteDefaultRoutesOnCreate: IsUnset,
pub fn maybe_delete_default_routes_on_create(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetDeleteDefaultRoutesOnCreate<S>>where
S::DeleteDefaultRoutesOnCreate: IsUnset,
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn enable_ula_internal_ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetEnableUlaInternalIpv6<S>>where
S::EnableUlaInternalIpv6: IsUnset,
pub fn enable_ula_internal_ipv6(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkArgsBuilder<SetEnableUlaInternalIpv6<S>>where
S::EnableUlaInternalIpv6: IsUnset,
sourcepub fn maybe_enable_ula_internal_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetEnableUlaInternalIpv6<S>>where
S::EnableUlaInternalIpv6: IsUnset,
pub fn maybe_enable_ula_internal_ipv6(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkArgsBuilder<SetEnableUlaInternalIpv6<S>>where
S::EnableUlaInternalIpv6: IsUnset,
sourcepub fn internal_ipv6_range(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetInternalIpv6Range<S>>where
S::InternalIpv6Range: IsUnset,
pub fn internal_ipv6_range(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetInternalIpv6Range<S>>where
S::InternalIpv6Range: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn maybe_internal_ipv6_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetInternalIpv6Range<S>>where
S::InternalIpv6Range: IsUnset,
pub fn maybe_internal_ipv6_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetInternalIpv6Range<S>>where
S::InternalIpv6Range: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn mtu(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkArgsBuilder<SetMtu<S>>where
S::Mtu: IsUnset,
pub fn mtu(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkArgsBuilder<SetMtu<S>>where
S::Mtu: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
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-Needed
message if the packets are routed to the Internet or other VPCs
with varying MTUs.
sourcepub fn maybe_mtu(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkArgsBuilder<SetMtu<S>>where
S::Mtu: IsUnset,
pub fn maybe_mtu(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkArgsBuilder<SetMtu<S>>where
S::Mtu: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
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-Needed
message if the packets are routed to the Internet or other VPCs
with varying MTUs.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn network_firewall_policy_enforcement_order(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetNetworkFirewallPolicyEnforcementOrder<S>>where
S::NetworkFirewallPolicyEnforcementOrder: IsUnset,
pub fn network_firewall_policy_enforcement_order(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetNetworkFirewallPolicyEnforcementOrder<S>>where
S::NetworkFirewallPolicyEnforcementOrder: IsUnset,
sourcepub fn maybe_network_firewall_policy_enforcement_order(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetNetworkFirewallPolicyEnforcementOrder<S>>where
S::NetworkFirewallPolicyEnforcementOrder: IsUnset,
pub fn maybe_network_firewall_policy_enforcement_order(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetNetworkFirewallPolicyEnforcementOrder<S>>where
S::NetworkFirewallPolicyEnforcementOrder: IsUnset,
sourcepub fn network_profile(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetNetworkProfile<S>>where
S::NetworkProfile: IsUnset,
pub fn network_profile(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetNetworkProfile<S>>where
S::NetworkProfile: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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:
- https://www.googleapis.com/compute/beta/projects/{projectId}/global/networkProfiles/{network_profile_name}
- projects/{projectId}/global/networkProfiles/{network_profile_name}
sourcepub fn maybe_network_profile(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetNetworkProfile<S>>where
S::NetworkProfile: IsUnset,
pub fn maybe_network_profile(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetNetworkProfile<S>>where
S::NetworkProfile: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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:
- https://www.googleapis.com/compute/beta/projects/{projectId}/global/networkProfiles/{network_profile_name}
- projects/{projectId}/global/networkProfiles/{network_profile_name}
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn routing_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetRoutingMode<S>>where
S::RoutingMode: IsUnset,
pub fn routing_mode(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkArgsBuilder<SetRoutingMode<S>>where
S::RoutingMode: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
Possible values are: REGIONAL
, GLOBAL
.
sourcepub fn maybe_routing_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetRoutingMode<S>>where
S::RoutingMode: IsUnset,
pub fn maybe_routing_mode(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkArgsBuilder<SetRoutingMode<S>>where
S::RoutingMode: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
Possible values are: REGIONAL
, GLOBAL
.