pulumi_wasm_providers_gcp_mini::compute::subnetwork

Struct SubnetworkArgsBuilder

source
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>

source

pub fn build_struct(self) -> SubnetworkArgs
where S: IsComplete,

Finish building and return the requested object

source

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.

source

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.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> SubnetworkArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetworkArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.

source

pub fn external_ipv6_prefix( self, value: impl Into<Output<Option<String>>>, ) -> SubnetworkArgsBuilder<SetExternalIpv6Prefix<S>>
where S::ExternalIpv6Prefix: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The range of external IPv6 addresses that are owned by this subnetwork.

source

pub fn maybe_external_ipv6_prefix( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetworkArgsBuilder<SetExternalIpv6Prefix<S>>
where S::ExternalIpv6Prefix: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The range of external IPv6 addresses that are owned by this subnetwork.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.


source

pub fn private_ip_google_access( self, value: impl Into<Output<Option<bool>>>, ) -> SubnetworkArgsBuilder<SetPrivateIpGoogleAccess<S>>
where S::PrivateIpGoogleAccess: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

When enabled, VMs in this subnetwork without external IP addresses can access Google APIs and services by using Private Google Access.

source

pub fn maybe_private_ip_google_access( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SubnetworkArgsBuilder<SetPrivateIpGoogleAccess<S>>
where S::PrivateIpGoogleAccess: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

When enabled, VMs in this subnetwork without external IP addresses can access Google APIs and services by using Private Google Access.

source

pub fn private_ipv6_google_access( self, value: impl Into<Output<Option<String>>>, ) -> SubnetworkArgsBuilder<SetPrivateIpv6GoogleAccess<S>>
where S::PrivateIpv6GoogleAccess: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The private IPv6 google access type for the VMs in this subnet.

source

pub fn maybe_private_ipv6_google_access( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetworkArgsBuilder<SetPrivateIpv6GoogleAccess<S>>
where S::PrivateIpv6GoogleAccess: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The private IPv6 google access type for the VMs in this subnet.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> SubnetworkArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetworkArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

source

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.

source

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.

source

pub fn region( self, value: impl Into<Output<Option<String>>>, ) -> SubnetworkArgsBuilder<SetRegion<S>>
where S::Region: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The GCP region for this subnetwork.

source

pub fn maybe_region( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetworkArgsBuilder<SetRegion<S>>
where S::Region: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The GCP region for this subnetwork.

source

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}

source

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}

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn stack_type( self, value: impl Into<Output<Option<String>>>, ) -> SubnetworkArgsBuilder<SetStackType<S>>
where S::StackType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be used. Possible values are: IPV4_ONLY, IPV4_IPV6.

source

pub fn maybe_stack_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SubnetworkArgsBuilder<SetStackType<S>>
where S::StackType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The stack type for this subnet to identify whether the IPv6 feature is enabled or not. If not specified IPV4_ONLY will be used. Possible values are: IPV4_ONLY, IPV4_IPV6.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.