pulumi_wasm_providers_gcp_mini::compute::vpn_tunnel

Struct VPNTunnelArgsBuilder

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

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

Implementations§

source§

impl<S: State> VPNTunnelArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<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.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VPNTunnelArgsBuilder<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.

source

pub fn ike_version( self, value: impl Into<Output<Option<i32>>>, ) -> VPNTunnelArgsBuilder<SetIkeVersion<S>>
where S::IkeVersion: IsUnset,

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

IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

source

pub fn maybe_ike_version( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> VPNTunnelArgsBuilder<SetIkeVersion<S>>
where S::IkeVersion: IsUnset,

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

IKE protocol version to use when establishing the VPN tunnel with peer VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2.

source

pub fn labels( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> VPNTunnelArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> VPNTunnelArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Labels to apply to this VpnTunnel. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

source

pub fn local_traffic_selectors( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> VPNTunnelArgsBuilder<SetLocalTrafficSelectors<S>>
where S::LocalTrafficSelectors: IsUnset,

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

Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

source

pub fn maybe_local_traffic_selectors( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> VPNTunnelArgsBuilder<SetLocalTrafficSelectors<S>>
where S::LocalTrafficSelectors: IsUnset,

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

Local traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

source

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

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

Name of 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>>>>, ) -> VPNTunnelArgsBuilder<SetName<S>>
where S::Name: IsUnset,

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

Name of 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 peer_external_gateway( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<SetPeerExternalGateway<S>>
where S::PeerExternalGateway: IsUnset,

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

URL of the peer side external VPN gateway to which this VPN tunnel is connected.

source

pub fn maybe_peer_external_gateway( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VPNTunnelArgsBuilder<SetPeerExternalGateway<S>>
where S::PeerExternalGateway: IsUnset,

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

URL of the peer side external VPN gateway to which this VPN tunnel is connected.

source

pub fn peer_external_gateway_interface( self, value: impl Into<Output<Option<i32>>>, ) -> VPNTunnelArgsBuilder<SetPeerExternalGatewayInterface<S>>
where S::PeerExternalGatewayInterface: IsUnset,

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

The interface ID of the external VPN gateway to which this VPN tunnel is connected.

source

pub fn maybe_peer_external_gateway_interface( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> VPNTunnelArgsBuilder<SetPeerExternalGatewayInterface<S>>
where S::PeerExternalGatewayInterface: IsUnset,

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

The interface ID of the external VPN gateway to which this VPN tunnel is connected.

source

pub fn peer_gcp_gateway( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<SetPeerGcpGateway<S>>
where S::PeerGcpGateway: IsUnset,

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

URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

source

pub fn maybe_peer_gcp_gateway( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VPNTunnelArgsBuilder<SetPeerGcpGateway<S>>
where S::PeerGcpGateway: IsUnset,

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

URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. This field must reference a gcp.compute.HaVpnGateway resource.

source

pub fn peer_ip( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<SetPeerIp<S>>
where S::PeerIp: IsUnset,

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

IP address of the peer VPN gateway. Only IPv4 is supported.

source

pub fn maybe_peer_ip( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VPNTunnelArgsBuilder<SetPeerIp<S>>
where S::PeerIp: IsUnset,

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

IP address of the peer VPN gateway. Only IPv4 is supported.

source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<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>>>>, ) -> VPNTunnelArgsBuilder<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 region( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<SetRegion<S>>
where S::Region: IsUnset,

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

The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

source

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

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

The region where the tunnel is located. If unset, is set to the region of target_vpn_gateway.

source

pub fn remote_traffic_selectors( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> VPNTunnelArgsBuilder<SetRemoteTrafficSelectors<S>>
where S::RemoteTrafficSelectors: IsUnset,

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

Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

source

pub fn maybe_remote_traffic_selectors( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> VPNTunnelArgsBuilder<SetRemoteTrafficSelectors<S>>
where S::RemoteTrafficSelectors: IsUnset,

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

Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.

source

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

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

URL of router resource to be used for dynamic routing.

source

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

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

URL of router resource to be used for dynamic routing.

source

pub fn shared_secret( self, value: impl Into<Output<String>>, ) -> VPNTunnelArgsBuilder<SetSharedSecret<S>>
where S::SharedSecret: IsUnset,

Required.

Shared secret used to set the secure session between the Cloud VPN gateway and the peer VPN gateway. Note: This property is sensitive and will not be displayed in the plan.


source

pub fn target_vpn_gateway( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<SetTargetVpnGateway<S>>
where S::TargetVpnGateway: IsUnset,

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

URL of the Target VPN gateway with which this VPN tunnel is associated.

source

pub fn maybe_target_vpn_gateway( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VPNTunnelArgsBuilder<SetTargetVpnGateway<S>>
where S::TargetVpnGateway: IsUnset,

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

URL of the Target VPN gateway with which this VPN tunnel is associated.

source

pub fn vpn_gateway( self, value: impl Into<Output<Option<String>>>, ) -> VPNTunnelArgsBuilder<SetVpnGateway<S>>
where S::VpnGateway: IsUnset,

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

URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

source

pub fn maybe_vpn_gateway( self, value: Option<impl Into<Output<Option<String>>>>, ) -> VPNTunnelArgsBuilder<SetVpnGateway<S>>
where S::VpnGateway: IsUnset,

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

URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. This field must reference a gcp.compute.HaVpnGateway resource.

source

pub fn vpn_gateway_interface( self, value: impl Into<Output<Option<i32>>>, ) -> VPNTunnelArgsBuilder<SetVpnGatewayInterface<S>>
where S::VpnGatewayInterface: IsUnset,

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

The interface ID of the VPN gateway with which this VPN tunnel is associated.

source

pub fn maybe_vpn_gateway_interface( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> VPNTunnelArgsBuilder<SetVpnGatewayInterface<S>>
where S::VpnGatewayInterface: IsUnset,

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

The interface ID of the VPN gateway with which this VPN tunnel is associated.

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.