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>
impl<S: State> VPNTunnelArgsBuilder<S>
sourcepub fn build_struct(self) -> VPNTunnelArgswhere
S: IsComplete,
pub fn build_struct(self) -> VPNTunnelArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn ike_version(
self,
value: impl Into<Output<Option<i32>>>,
) -> VPNTunnelArgsBuilder<SetIkeVersion<S>>where
S::IkeVersion: IsUnset,
pub fn ike_version(
self,
value: impl Into<Output<Option<i32>>>,
) -> VPNTunnelArgsBuilder<SetIkeVersion<S>>where
S::IkeVersion: IsUnset,
sourcepub fn maybe_ike_version(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> VPNTunnelArgsBuilder<SetIkeVersion<S>>where
S::IkeVersion: IsUnset,
pub fn maybe_ike_version(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> VPNTunnelArgsBuilder<SetIkeVersion<S>>where
S::IkeVersion: IsUnset,
sourcepub fn labels(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> VPNTunnelArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
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.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> VPNTunnelArgsBuilder<SetLabels<S>>where
S::Labels: IsUnset,
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.
sourcepub fn local_traffic_selectors(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> VPNTunnelArgsBuilder<SetLocalTrafficSelectors<S>>where
S::LocalTrafficSelectors: IsUnset,
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.
sourcepub fn maybe_local_traffic_selectors(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> VPNTunnelArgsBuilder<SetLocalTrafficSelectors<S>>where
S::LocalTrafficSelectors: IsUnset,
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.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetName<S>>where
S::Name: IsUnset,
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.
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetName<S>>where
S::Name: IsUnset,
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.
sourcepub fn peer_external_gateway(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGateway<S>>where
S::PeerExternalGateway: IsUnset,
pub fn peer_external_gateway(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGateway<S>>where
S::PeerExternalGateway: IsUnset,
sourcepub fn maybe_peer_external_gateway(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGateway<S>>where
S::PeerExternalGateway: IsUnset,
pub fn maybe_peer_external_gateway(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGateway<S>>where
S::PeerExternalGateway: IsUnset,
sourcepub fn peer_external_gateway_interface(
self,
value: impl Into<Output<Option<i32>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGatewayInterface<S>>where
S::PeerExternalGatewayInterface: IsUnset,
pub fn peer_external_gateway_interface(
self,
value: impl Into<Output<Option<i32>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGatewayInterface<S>>where
S::PeerExternalGatewayInterface: IsUnset,
sourcepub fn maybe_peer_external_gateway_interface(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGatewayInterface<S>>where
S::PeerExternalGatewayInterface: IsUnset,
pub fn maybe_peer_external_gateway_interface(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> VPNTunnelArgsBuilder<SetPeerExternalGatewayInterface<S>>where
S::PeerExternalGatewayInterface: IsUnset,
sourcepub fn peer_gcp_gateway(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetPeerGcpGateway<S>>where
S::PeerGcpGateway: IsUnset,
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.
sourcepub fn maybe_peer_gcp_gateway(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetPeerGcpGateway<S>>where
S::PeerGcpGateway: IsUnset,
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.
sourcepub fn peer_ip(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetPeerIp<S>>where
S::PeerIp: IsUnset,
pub fn peer_ip(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetPeerIp<S>>where
S::PeerIp: IsUnset,
sourcepub fn maybe_peer_ip(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetPeerIp<S>>where
S::PeerIp: IsUnset,
pub fn maybe_peer_ip(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetPeerIp<S>>where
S::PeerIp: IsUnset,
sourcepub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetProject<S>>where
S::Project: IsUnset,
sourcepub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn region(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
pub fn maybe_region(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetRegion<S>>where
S::Region: IsUnset,
sourcepub fn remote_traffic_selectors(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> VPNTunnelArgsBuilder<SetRemoteTrafficSelectors<S>>where
S::RemoteTrafficSelectors: IsUnset,
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.
sourcepub fn maybe_remote_traffic_selectors(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> VPNTunnelArgsBuilder<SetRemoteTrafficSelectors<S>>where
S::RemoteTrafficSelectors: IsUnset,
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.
sourcepub fn router(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetRouter<S>>where
S::Router: IsUnset,
pub fn router(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetRouter<S>>where
S::Router: IsUnset,
sourcepub fn maybe_router(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetRouter<S>>where
S::Router: IsUnset,
pub fn maybe_router(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetRouter<S>>where
S::Router: 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.
sourcepub fn target_vpn_gateway(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetTargetVpnGateway<S>>where
S::TargetVpnGateway: IsUnset,
pub fn target_vpn_gateway(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetTargetVpnGateway<S>>where
S::TargetVpnGateway: IsUnset,
sourcepub fn maybe_target_vpn_gateway(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetTargetVpnGateway<S>>where
S::TargetVpnGateway: IsUnset,
pub fn maybe_target_vpn_gateway(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetTargetVpnGateway<S>>where
S::TargetVpnGateway: IsUnset,
sourcepub fn vpn_gateway(
self,
value: impl Into<Output<Option<String>>>,
) -> VPNTunnelArgsBuilder<SetVpnGateway<S>>where
S::VpnGateway: IsUnset,
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.
sourcepub fn maybe_vpn_gateway(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VPNTunnelArgsBuilder<SetVpnGateway<S>>where
S::VpnGateway: IsUnset,
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.