Struct aws_sdk_ec2::model::VpnConnectionOptions
source · #[non_exhaustive]pub struct VpnConnectionOptions { /* private fields */ }
Expand description
Describes VPN connection options.
Implementations§
source§impl VpnConnectionOptions
impl VpnConnectionOptions
sourcepub fn enable_acceleration(&self) -> Option<bool>
pub fn enable_acceleration(&self) -> Option<bool>
Indicates whether acceleration is enabled for the VPN connection.
sourcepub fn static_routes_only(&self) -> Option<bool>
pub fn static_routes_only(&self) -> Option<bool>
Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP.
sourcepub fn local_ipv4_network_cidr(&self) -> Option<&str>
pub fn local_ipv4_network_cidr(&self) -> Option<&str>
The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.
sourcepub fn remote_ipv4_network_cidr(&self) -> Option<&str>
pub fn remote_ipv4_network_cidr(&self) -> Option<&str>
The IPv4 CIDR on the Amazon Web Services side of the VPN connection.
sourcepub fn local_ipv6_network_cidr(&self) -> Option<&str>
pub fn local_ipv6_network_cidr(&self) -> Option<&str>
The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.
sourcepub fn remote_ipv6_network_cidr(&self) -> Option<&str>
pub fn remote_ipv6_network_cidr(&self) -> Option<&str>
The IPv6 CIDR on the Amazon Web Services side of the VPN connection.
sourcepub fn outside_ip_address_type(&self) -> Option<&str>
pub fn outside_ip_address_type(&self) -> Option<&str>
The type of IPv4 address assigned to the outside interface of the customer gateway.
Valid values: PrivateIpv4
| PublicIpv4
Default: PublicIpv4
sourcepub fn transport_transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transport_transit_gateway_attachment_id(&self) -> Option<&str>
The transit gateway attachment ID in use for the VPN tunnel.
sourcepub fn tunnel_inside_ip_version(&self) -> Option<&TunnelInsideIpVersion>
pub fn tunnel_inside_ip_version(&self) -> Option<&TunnelInsideIpVersion>
Indicates whether the VPN tunnels process IPv4 or IPv6 traffic.
sourcepub fn tunnel_options(&self) -> Option<&[TunnelOption]>
pub fn tunnel_options(&self) -> Option<&[TunnelOption]>
Indicates the VPN tunnel options.
source§impl VpnConnectionOptions
impl VpnConnectionOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpnConnectionOptions
.
Examples found in repository?
42230 42231 42232 42233 42234 42235 42236 42237 42238 42239 42240 42241 42242 42243 42244 42245 42246 42247 42248 42249 42250 42251 42252 42253 42254 42255 42256 42257 42258 42259 42260 42261 42262 42263 42264 42265 42266 42267 42268 42269 42270 42271 42272 42273 42274 42275 42276 42277 42278 42279 42280 42281 42282 42283 42284 42285 42286 42287 42288 42289 42290 42291 42292 42293 42294 42295 42296 42297 42298 42299 42300 42301 42302 42303 42304 42305 42306 42307 42308 42309 42310 42311 42312 42313 42314 42315 42316 42317 42318 42319 42320 42321 42322 42323 42324 42325 42326 42327 42328 42329 42330 42331 42332 42333 42334 42335 42336 42337 42338 42339 42340 42341 42342 42343 42344 42345 42346 42347 42348 42349 42350 42351 42352 42353 42354 42355 42356 42357 42358 42359 42360 42361 42362 42363 42364 42365 42366 42367 42368 42369 42370 42371 42372 42373
pub fn deser_structure_crate_model_vpn_connection_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnectionOptions, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnectionOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("enableAcceleration") /* EnableAcceleration com.amazonaws.ec2#VpnConnectionOptions$EnableAcceleration */ => {
let var_1807 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_enable_acceleration(var_1807);
}
,
s if s.matches("staticRoutesOnly") /* StaticRoutesOnly com.amazonaws.ec2#VpnConnectionOptions$StaticRoutesOnly */ => {
let var_1808 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_static_routes_only(var_1808);
}
,
s if s.matches("localIpv4NetworkCidr") /* LocalIpv4NetworkCidr com.amazonaws.ec2#VpnConnectionOptions$LocalIpv4NetworkCidr */ => {
let var_1809 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_local_ipv4_network_cidr(var_1809);
}
,
s if s.matches("remoteIpv4NetworkCidr") /* RemoteIpv4NetworkCidr com.amazonaws.ec2#VpnConnectionOptions$RemoteIpv4NetworkCidr */ => {
let var_1810 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_remote_ipv4_network_cidr(var_1810);
}
,
s if s.matches("localIpv6NetworkCidr") /* LocalIpv6NetworkCidr com.amazonaws.ec2#VpnConnectionOptions$LocalIpv6NetworkCidr */ => {
let var_1811 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_local_ipv6_network_cidr(var_1811);
}
,
s if s.matches("remoteIpv6NetworkCidr") /* RemoteIpv6NetworkCidr com.amazonaws.ec2#VpnConnectionOptions$RemoteIpv6NetworkCidr */ => {
let var_1812 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_remote_ipv6_network_cidr(var_1812);
}
,
s if s.matches("outsideIpAddressType") /* OutsideIpAddressType com.amazonaws.ec2#VpnConnectionOptions$OutsideIpAddressType */ => {
let var_1813 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_outside_ip_address_type(var_1813);
}
,
s if s.matches("transportTransitGatewayAttachmentId") /* TransportTransitGatewayAttachmentId com.amazonaws.ec2#VpnConnectionOptions$TransportTransitGatewayAttachmentId */ => {
let var_1814 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_transport_transit_gateway_attachment_id(var_1814);
}
,
s if s.matches("tunnelInsideIpVersion") /* TunnelInsideIpVersion com.amazonaws.ec2#VpnConnectionOptions$TunnelInsideIpVersion */ => {
let var_1815 =
Some(
Result::<crate::model::TunnelInsideIpVersion, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TunnelInsideIpVersion::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_tunnel_inside_ip_version(var_1815);
}
,
s if s.matches("tunnelOptionSet") /* TunnelOptions com.amazonaws.ec2#VpnConnectionOptions$TunnelOptions */ => {
let var_1816 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tunnel_options_list(&mut tag)
?
)
;
builder = builder.set_tunnel_options(var_1816);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpnConnectionOptions
impl Clone for VpnConnectionOptions
source§fn clone(&self) -> VpnConnectionOptions
fn clone(&self) -> VpnConnectionOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more