Struct aws_sdk_ec2::model::VpnConnection
source · #[non_exhaustive]pub struct VpnConnection { /* private fields */ }
Expand description
Describes a VPN connection.
Implementations§
source§impl VpnConnection
impl VpnConnection
sourcepub fn customer_gateway_configuration(&self) -> Option<&str>
pub fn customer_gateway_configuration(&self) -> Option<&str>
The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection
response; however, it's present in the DescribeVpnConnections
response only if the VPN connection is in the pending
or available
state.
sourcepub fn customer_gateway_id(&self) -> Option<&str>
pub fn customer_gateway_id(&self) -> Option<&str>
The ID of the customer gateway at your end of the VPN connection.
sourcepub fn category(&self) -> Option<&str>
pub fn category(&self) -> Option<&str>
The category of the VPN connection. A value of VPN
indicates an Amazon Web Services VPN connection. A value of VPN-Classic
indicates an Amazon Web Services Classic VPN connection.
sourcepub fn type(&self) -> Option<&GatewayType>
pub fn type(&self) -> Option<&GatewayType>
The type of VPN connection.
sourcepub fn vpn_connection_id(&self) -> Option<&str>
pub fn vpn_connection_id(&self) -> Option<&str>
The ID of the VPN connection.
sourcepub fn vpn_gateway_id(&self) -> Option<&str>
pub fn vpn_gateway_id(&self) -> Option<&str>
The ID of the virtual private gateway at the Amazon Web Services side of the VPN connection.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway associated with the VPN connection.
sourcepub fn core_network_arn(&self) -> Option<&str>
pub fn core_network_arn(&self) -> Option<&str>
The ARN of the core network.
sourcepub fn core_network_attachment_arn(&self) -> Option<&str>
pub fn core_network_attachment_arn(&self) -> Option<&str>
The ARN of the core network attachment.
sourcepub fn gateway_association_state(&self) -> Option<&GatewayAssociationState>
pub fn gateway_association_state(&self) -> Option<&GatewayAssociationState>
The current state of the gateway association.
sourcepub fn options(&self) -> Option<&VpnConnectionOptions>
pub fn options(&self) -> Option<&VpnConnectionOptions>
The VPN connection options.
sourcepub fn routes(&self) -> Option<&[VpnStaticRoute]>
pub fn routes(&self) -> Option<&[VpnStaticRoute]>
The static routes associated with the VPN connection.
Any tags assigned to the VPN connection.
sourcepub fn vgw_telemetry(&self) -> Option<&[VgwTelemetry]>
pub fn vgw_telemetry(&self) -> Option<&[VgwTelemetry]>
Information about the VPN tunnel.
source§impl VpnConnection
impl VpnConnection
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture VpnConnection
.
Examples found in repository?
32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278
pub fn deser_structure_crate_model_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::VpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::VpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("customerGatewayConfiguration") /* CustomerGatewayConfiguration com.amazonaws.ec2#VpnConnection$CustomerGatewayConfiguration */ => {
let var_1436 =
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_customer_gateway_configuration(var_1436);
}
,
s if s.matches("customerGatewayId") /* CustomerGatewayId com.amazonaws.ec2#VpnConnection$CustomerGatewayId */ => {
let var_1437 =
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_customer_gateway_id(var_1437);
}
,
s if s.matches("category") /* Category com.amazonaws.ec2#VpnConnection$Category */ => {
let var_1438 =
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_category(var_1438);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#VpnConnection$State */ => {
let var_1439 =
Some(
Result::<crate::model::VpnState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VpnState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1439);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#VpnConnection$Type */ => {
let var_1440 =
Some(
Result::<crate::model::GatewayType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1440);
}
,
s if s.matches("vpnConnectionId") /* VpnConnectionId com.amazonaws.ec2#VpnConnection$VpnConnectionId */ => {
let var_1441 =
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_vpn_connection_id(var_1441);
}
,
s if s.matches("vpnGatewayId") /* VpnGatewayId com.amazonaws.ec2#VpnConnection$VpnGatewayId */ => {
let var_1442 =
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_vpn_gateway_id(var_1442);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#VpnConnection$TransitGatewayId */ => {
let var_1443 =
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_transit_gateway_id(var_1443);
}
,
s if s.matches("coreNetworkArn") /* CoreNetworkArn com.amazonaws.ec2#VpnConnection$CoreNetworkArn */ => {
let var_1444 =
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_core_network_arn(var_1444);
}
,
s if s.matches("coreNetworkAttachmentArn") /* CoreNetworkAttachmentArn com.amazonaws.ec2#VpnConnection$CoreNetworkAttachmentArn */ => {
let var_1445 =
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_core_network_attachment_arn(var_1445);
}
,
s if s.matches("gatewayAssociationState") /* GatewayAssociationState com.amazonaws.ec2#VpnConnection$GatewayAssociationState */ => {
let var_1446 =
Some(
Result::<crate::model::GatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::GatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_gateway_association_state(var_1446);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#VpnConnection$Options */ => {
let var_1447 =
Some(
crate::xml_deser::deser_structure_crate_model_vpn_connection_options(&mut tag)
?
)
;
builder = builder.set_options(var_1447);
}
,
s if s.matches("routes") /* Routes com.amazonaws.ec2#VpnConnection$Routes */ => {
let var_1448 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vpn_static_route_list(&mut tag)
?
)
;
builder = builder.set_routes(var_1448);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#VpnConnection$Tags */ => {
let var_1449 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1449);
}
,
s if s.matches("vgwTelemetry") /* VgwTelemetry com.amazonaws.ec2#VpnConnection$VgwTelemetry */ => {
let var_1450 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_vgw_telemetry_list(&mut tag)
?
)
;
builder = builder.set_vgw_telemetry(var_1450);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for VpnConnection
impl Clone for VpnConnection
source§fn clone(&self) -> VpnConnection
fn clone(&self) -> VpnConnection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more