pulumi_wasm_providers_gcp_mini::compute::router_interface

Struct RouterInterfaceArgsBuilder

source
pub struct RouterInterfaceArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> RouterInterfaceArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn interconnect_attachment( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetInterconnectAttachment<S>>
where S::InterconnectAttachment: IsUnset,

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

The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.

source

pub fn maybe_interconnect_attachment( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetInterconnectAttachment<S>>
where S::InterconnectAttachment: IsUnset,

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

The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.

source

pub fn ip_range( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetIpRange<S>>
where S::IpRange: IsUnset,

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

IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.

source

pub fn maybe_ip_range( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetIpRange<S>>
where S::IpRange: IsUnset,

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

IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.

source

pub fn ip_version( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetIpVersion<S>>
where S::IpVersion: IsUnset,

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

IP version of this interface. Can be either IPV4 or IPV6.

source

pub fn maybe_ip_version( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetIpVersion<S>>
where S::IpVersion: IsUnset,

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

IP version of this interface. Can be either IPV4 or IPV6.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

A unique name for the interface, required by GCE. Changing this forces a new interface to be created.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

A unique name for the interface, required by GCE. Changing this forces a new interface to be created.

source

pub fn private_ip_address( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetPrivateIpAddress<S>>
where S::PrivateIpAddress: IsUnset,

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

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.

source

pub fn maybe_private_ip_address( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetPrivateIpAddress<S>>
where S::PrivateIpAddress: IsUnset,

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

The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<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 this interface’s routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<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 this interface’s routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.

source

pub fn redundant_interface( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetRedundantInterface<S>>
where S::RedundantInterface: IsUnset,

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

The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.

source

pub fn maybe_redundant_interface( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetRedundantInterface<S>>
where S::RedundantInterface: IsUnset,

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

The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.

source

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

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

The region this interface’s router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.

source

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

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

The region this interface’s router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.

source

pub fn router( self, value: impl Into<Output<String>>, ) -> RouterInterfaceArgsBuilder<SetRouter<S>>
where S::Router: IsUnset,

Required.

The name of the router this interface will be attached to. Changing this forces a new interface to be created.

In addition to the above required fields, a router interface must have specified either ip_range or exactly one of vpn_tunnel, interconnect_attachment or subnetwork, or both.


source

pub fn subnetwork( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetSubnetwork<S>>
where S::Subnetwork: IsUnset,

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

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.

source

pub fn maybe_subnetwork( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetSubnetwork<S>>
where S::Subnetwork: IsUnset,

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

The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.

source

pub fn vpn_tunnel( self, value: impl Into<Output<Option<String>>>, ) -> RouterInterfaceArgsBuilder<SetVpnTunnel<S>>
where S::VpnTunnel: IsUnset,

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

The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.

source

pub fn maybe_vpn_tunnel( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RouterInterfaceArgsBuilder<SetVpnTunnel<S>>
where S::VpnTunnel: IsUnset,

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

The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of vpn_tunnel, interconnect_attachment or subnetwork can be specified.

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.