pub struct SubnetworkArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> SubnetworkArgsBuilder<S>
impl<S: State> SubnetworkArgsBuilder<S>
sourcepub fn build_struct(self) -> SubnetworkArgswhere
S: IsComplete,
pub fn build_struct(self) -> SubnetworkArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn allow_subnet_cidr_routes_overlap(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetworkArgsBuilder<SetAllowSubnetCidrRoutesOverlap<S>>where
S::AllowSubnetCidrRoutesOverlap: IsUnset,
pub fn allow_subnet_cidr_routes_overlap(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetworkArgsBuilder<SetAllowSubnetCidrRoutesOverlap<S>>where
S::AllowSubnetCidrRoutesOverlap: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Typically packets destined to IPs within the subnetwork range that do not match existing resources are dropped and prevented from leaving the VPC. Setting this field to true will allow these packets to match dynamic routes injected via BGP even if their destinations match existing subnet ranges.
sourcepub fn maybe_allow_subnet_cidr_routes_overlap(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetworkArgsBuilder<SetAllowSubnetCidrRoutesOverlap<S>>where
S::AllowSubnetCidrRoutesOverlap: IsUnset,
pub fn maybe_allow_subnet_cidr_routes_overlap(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetworkArgsBuilder<SetAllowSubnetCidrRoutesOverlap<S>>where
S::AllowSubnetCidrRoutesOverlap: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Typically packets destined to IPs within the subnetwork range that do not match existing resources are dropped and prevented from leaving the VPC. Setting this field to true will allow these packets to match dynamic routes injected via BGP even if their destinations match existing subnet ranges.
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn external_ipv6_prefix(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetExternalIpv6Prefix<S>>where
S::ExternalIpv6Prefix: IsUnset,
pub fn external_ipv6_prefix(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetExternalIpv6Prefix<S>>where
S::ExternalIpv6Prefix: IsUnset,
sourcepub fn maybe_external_ipv6_prefix(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetExternalIpv6Prefix<S>>where
S::ExternalIpv6Prefix: IsUnset,
pub fn maybe_external_ipv6_prefix(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetExternalIpv6Prefix<S>>where
S::ExternalIpv6Prefix: IsUnset,
sourcepub fn ip_cidr_range(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetIpCidrRange<S>>where
S::IpCidrRange: IsUnset,
pub fn ip_cidr_range(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetIpCidrRange<S>>where
S::IpCidrRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The range of internal addresses that are owned by this subnetwork.
Provide this property when you create the subnetwork. For example,
10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and
non-overlapping within a network. Only IPv4 is supported.
Field is optional when reserved_internal_range
is defined, otherwise required.
sourcepub fn maybe_ip_cidr_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetIpCidrRange<S>>where
S::IpCidrRange: IsUnset,
pub fn maybe_ip_cidr_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetIpCidrRange<S>>where
S::IpCidrRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The range of internal addresses that are owned by this subnetwork.
Provide this property when you create the subnetwork. For example,
10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and
non-overlapping within a network. Only IPv4 is supported.
Field is optional when reserved_internal_range
is defined, otherwise required.
sourcepub fn ipv6_access_type(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetIpv6AccessType<S>>where
S::Ipv6AccessType: IsUnset,
pub fn ipv6_access_type(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetIpv6AccessType<S>>where
S::Ipv6AccessType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The access type of IPv6 address this subnet holds. It’s immutable and can only be specified during creation
or the first time the subnet is updated into IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet
cannot enable direct path.
Possible values are: EXTERNAL
, INTERNAL
.
sourcepub fn maybe_ipv6_access_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetIpv6AccessType<S>>where
S::Ipv6AccessType: IsUnset,
pub fn maybe_ipv6_access_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetIpv6AccessType<S>>where
S::Ipv6AccessType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The access type of IPv6 address this subnet holds. It’s immutable and can only be specified during creation
or the first time the subnet is updated into IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet
cannot enable direct path.
Possible values are: EXTERNAL
, INTERNAL
.
sourcepub fn log_config(
self,
value: impl Into<Output<Option<SubnetworkLogConfig>>>,
) -> SubnetworkArgsBuilder<SetLogConfig<S>>where
S::LogConfig: IsUnset,
pub fn log_config(
self,
value: impl Into<Output<Option<SubnetworkLogConfig>>>,
) -> SubnetworkArgsBuilder<SetLogConfig<S>>where
S::LogConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::SubnetworkLogConfig>,
> as Default>::default()
This field denotes the VPC flow logging options for this subnetwork. If
logging is enabled, logs are exported to Cloud Logging. Flow logging
isn’t supported if the subnet purpose
field is set to subnetwork is
REGIONAL_MANAGED_PROXY
or GLOBAL_MANAGED_PROXY
.
Structure is documented below.
sourcepub fn maybe_log_config(
self,
value: Option<impl Into<Output<Option<SubnetworkLogConfig>>>>,
) -> SubnetworkArgsBuilder<SetLogConfig<S>>where
S::LogConfig: IsUnset,
pub fn maybe_log_config(
self,
value: Option<impl Into<Output<Option<SubnetworkLogConfig>>>>,
) -> SubnetworkArgsBuilder<SetLogConfig<S>>where
S::LogConfig: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<super::super::types::compute::SubnetworkLogConfig>,
> as Default>::default()
This field denotes the VPC flow logging options for this subnetwork. If
logging is enabled, logs are exported to Cloud Logging. Flow logging
isn’t supported if the subnet purpose
field is set to subnetwork is
REGIONAL_MANAGED_PROXY
or GLOBAL_MANAGED_PROXY
.
Structure is documented below.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name of the resource, provided by the client when initially
creating the resource. 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>>>>,
) -> SubnetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetName<S>>where
S::Name: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The name of the resource, provided by the client when initially
creating the resource. 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(
self,
value: impl Into<Output<String>>,
) -> SubnetworkArgsBuilder<SetNetwork<S>>where
S::Network: IsUnset,
pub fn network(
self,
value: impl Into<Output<String>>,
) -> SubnetworkArgsBuilder<SetNetwork<S>>where
S::Network: IsUnset,
Required.
The network this subnet belongs to. Only networks that are in the distributed mode can have subnetworks.
sourcepub fn private_ip_google_access(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpGoogleAccess<S>>where
S::PrivateIpGoogleAccess: IsUnset,
pub fn private_ip_google_access(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpGoogleAccess<S>>where
S::PrivateIpGoogleAccess: IsUnset,
sourcepub fn maybe_private_ip_google_access(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpGoogleAccess<S>>where
S::PrivateIpGoogleAccess: IsUnset,
pub fn maybe_private_ip_google_access(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpGoogleAccess<S>>where
S::PrivateIpGoogleAccess: IsUnset,
sourcepub fn private_ipv6_google_access(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpv6GoogleAccess<S>>where
S::PrivateIpv6GoogleAccess: IsUnset,
pub fn private_ipv6_google_access(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpv6GoogleAccess<S>>where
S::PrivateIpv6GoogleAccess: IsUnset,
sourcepub fn maybe_private_ipv6_google_access(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpv6GoogleAccess<S>>where
S::PrivateIpv6GoogleAccess: IsUnset,
pub fn maybe_private_ipv6_google_access(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetPrivateIpv6GoogleAccess<S>>where
S::PrivateIpv6GoogleAccess: IsUnset,
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn purpose(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
pub fn purpose(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The purpose of the resource. This field can be either PRIVATE
, REGIONAL_MANAGED_PROXY
, GLOBAL_MANAGED_PROXY
, PRIVATE_SERVICE_CONNECT
or PRIVATE_NAT
.
A subnet with purpose set to REGIONAL_MANAGED_PROXY
is a user-created subnetwork that is reserved for regional Envoy-based load balancers.
A subnetwork in a given region with purpose set to GLOBAL_MANAGED_PROXY
is a proxy-only subnet and is shared between all the cross-regional Envoy-based load balancers.
A subnetwork with purpose set to PRIVATE_SERVICE_CONNECT
reserves the subnet for hosting a Private Service Connect published service.
A subnetwork with purpose set to PRIVATE_NAT
is used as source range for Private NAT gateways.
Note that REGIONAL_MANAGED_PROXY
is the preferred setting for all regional Envoy load balancers.
If unspecified, the purpose defaults to PRIVATE
.
sourcepub fn maybe_purpose(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
pub fn maybe_purpose(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The purpose of the resource. This field can be either PRIVATE
, REGIONAL_MANAGED_PROXY
, GLOBAL_MANAGED_PROXY
, PRIVATE_SERVICE_CONNECT
or PRIVATE_NAT
.
A subnet with purpose set to REGIONAL_MANAGED_PROXY
is a user-created subnetwork that is reserved for regional Envoy-based load balancers.
A subnetwork in a given region with purpose set to GLOBAL_MANAGED_PROXY
is a proxy-only subnet and is shared between all the cross-regional Envoy-based load balancers.
A subnetwork with purpose set to PRIVATE_SERVICE_CONNECT
reserves the subnet for hosting a Private Service Connect published service.
A subnetwork with purpose set to PRIVATE_NAT
is used as source range for Private NAT gateways.
Note that REGIONAL_MANAGED_PROXY
is the preferred setting for all regional Envoy load balancers.
If unspecified, the purpose defaults to PRIVATE
.
sourcepub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn reserved_internal_range(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetReservedInternalRange<S>>where
S::ReservedInternalRange: IsUnset,
pub fn reserved_internal_range(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetReservedInternalRange<S>>where
S::ReservedInternalRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of the reserved internal range. Must be prefixed with networkconnectivity.googleapis.com
E.g. networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}
sourcepub fn maybe_reserved_internal_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetReservedInternalRange<S>>where
S::ReservedInternalRange: IsUnset,
pub fn maybe_reserved_internal_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetReservedInternalRange<S>>where
S::ReservedInternalRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of the reserved internal range. Must be prefixed with networkconnectivity.googleapis.com
E.g. networkconnectivity.googleapis.com/projects/{project}/locations/global/internalRanges/{rangeId}
sourcepub fn role(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetRole<S>>where
S::Role: IsUnset,
pub fn role(
self,
value: impl Into<Output<Option<String>>>,
) -> SubnetworkArgsBuilder<SetRole<S>>where
S::Role: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The role of subnetwork.
Currently, this field is only used when purpose
is REGIONAL_MANAGED_PROXY
.
The value can be set to ACTIVE
or BACKUP
.
An ACTIVE
subnetwork is one that is currently being used for Envoy-based load balancers in a region.
A BACKUP
subnetwork is one that is ready to be promoted to ACTIVE
or is currently draining.
Possible values are: ACTIVE
, BACKUP
.
sourcepub fn maybe_role(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetRole<S>>where
S::Role: IsUnset,
pub fn maybe_role(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SubnetworkArgsBuilder<SetRole<S>>where
S::Role: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The role of subnetwork.
Currently, this field is only used when purpose
is REGIONAL_MANAGED_PROXY
.
The value can be set to ACTIVE
or BACKUP
.
An ACTIVE
subnetwork is one that is currently being used for Envoy-based load balancers in a region.
A BACKUP
subnetwork is one that is ready to be promoted to ACTIVE
or is currently draining.
Possible values are: ACTIVE
, BACKUP
.
sourcepub fn secondary_ip_ranges(
self,
value: impl Into<Output<Option<Vec<SubnetworkSecondaryIpRange>>>>,
) -> SubnetworkArgsBuilder<SetSecondaryIpRanges<S>>where
S::SecondaryIpRanges: IsUnset,
pub fn secondary_ip_ranges(
self,
value: impl Into<Output<Option<Vec<SubnetworkSecondaryIpRange>>>>,
) -> SubnetworkArgsBuilder<SetSecondaryIpRanges<S>>where
S::SecondaryIpRanges: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::compute::SubnetworkSecondaryIpRange>>,
> as Default>::default()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. Structure is documented below.
sourcepub fn maybe_secondary_ip_ranges(
self,
value: Option<impl Into<Output<Option<Vec<SubnetworkSecondaryIpRange>>>>>,
) -> SubnetworkArgsBuilder<SetSecondaryIpRanges<S>>where
S::SecondaryIpRanges: IsUnset,
pub fn maybe_secondary_ip_ranges(
self,
value: Option<impl Into<Output<Option<Vec<SubnetworkSecondaryIpRange>>>>>,
) -> SubnetworkArgsBuilder<SetSecondaryIpRanges<S>>where
S::SecondaryIpRanges: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::compute::SubnetworkSecondaryIpRange>>,
> as Default>::default()
An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. Structure is documented below.
sourcepub fn send_secondary_ip_range_if_empty(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetworkArgsBuilder<SetSendSecondaryIpRangeIfEmpty<S>>where
S::SendSecondaryIpRangeIfEmpty: IsUnset,
pub fn send_secondary_ip_range_if_empty(
self,
value: impl Into<Output<Option<bool>>>,
) -> SubnetworkArgsBuilder<SetSendSecondaryIpRangeIfEmpty<S>>where
S::SendSecondaryIpRangeIfEmpty: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Controls the removal behavior of secondary_ip_range. When false, removing secondary_ip_range from config will not produce a diff as the provider will default to the API’s value. When true, the provider will treat removing secondary_ip_range as sending an empty list of secondary IP ranges to the API. Defaults to false.
sourcepub fn maybe_send_secondary_ip_range_if_empty(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetworkArgsBuilder<SetSendSecondaryIpRangeIfEmpty<S>>where
S::SendSecondaryIpRangeIfEmpty: IsUnset,
pub fn maybe_send_secondary_ip_range_if_empty(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SubnetworkArgsBuilder<SetSendSecondaryIpRangeIfEmpty<S>>where
S::SendSecondaryIpRangeIfEmpty: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Controls the removal behavior of secondary_ip_range. When false, removing secondary_ip_range from config will not produce a diff as the provider will default to the API’s value. When true, the provider will treat removing secondary_ip_range as sending an empty list of secondary IP ranges to the API. Defaults to false.