pub struct RouterInterfaceArgs {
pub interconnect_attachment: Output<Option<String>>,
pub ip_range: Output<Option<String>>,
pub ip_version: Output<Option<String>>,
pub name: Output<Option<String>>,
pub private_ip_address: Output<Option<String>>,
pub project: Output<Option<String>>,
pub redundant_interface: Output<Option<String>>,
pub region: Output<Option<String>>,
pub router: Output<String>,
pub subnetwork: Output<Option<String>>,
pub vpn_tunnel: Output<Option<String>>,
}
Fields§
§interconnect_attachment: Output<Option<String>>
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.
ip_range: Output<Option<String>>
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.
ip_version: Output<Option<String>>
IP version of this interface. Can be either IPV4 or IPV6.
name: Output<Option<String>>
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
private_ip_address: Output<Option<String>>
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.
project: Output<Option<String>>
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.
redundant_interface: Output<Option<String>>
The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
region: Output<Option<String>>
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.
router: Output<String>
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.
subnetwork: Output<Option<String>>
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.
vpn_tunnel: Output<Option<String>>
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.
Implementations§
source§impl RouterInterfaceArgs
impl RouterInterfaceArgs
sourcepub fn builder() -> RouterInterfaceArgsBuilder
pub fn builder() -> RouterInterfaceArgsBuilder
Create an instance of RouterInterfaceArgs
using the builder syntax
Trait Implementations§
source§impl Clone for RouterInterfaceArgs
impl Clone for RouterInterfaceArgs
source§fn clone(&self) -> RouterInterfaceArgs
fn clone(&self) -> RouterInterfaceArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RouterInterfaceArgs
impl RefUnwindSafe for RouterInterfaceArgs
impl Send for RouterInterfaceArgs
impl Sync for RouterInterfaceArgs
impl Unpin for RouterInterfaceArgs
impl UnwindSafe for RouterInterfaceArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)