Struct aws_sdk_ec2::model::ClientVpnConnection
source · #[non_exhaustive]pub struct ClientVpnConnection { /* private fields */ }
Expand description
Describes a client connection.
Implementations§
source§impl ClientVpnConnection
impl ClientVpnConnection
sourcepub fn client_vpn_endpoint_id(&self) -> Option<&str>
pub fn client_vpn_endpoint_id(&self) -> Option<&str>
The ID of the Client VPN endpoint to which the client is connected.
sourcepub fn connection_id(&self) -> Option<&str>
pub fn connection_id(&self) -> Option<&str>
The ID of the client connection.
sourcepub fn username(&self) -> Option<&str>
pub fn username(&self) -> Option<&str>
The username of the client who established the client connection. This information is only provided if Active Directory client authentication is used.
sourcepub fn connection_established_time(&self) -> Option<&str>
pub fn connection_established_time(&self) -> Option<&str>
The date and time the client connection was established.
sourcepub fn ingress_bytes(&self) -> Option<&str>
pub fn ingress_bytes(&self) -> Option<&str>
The number of bytes sent by the client.
sourcepub fn egress_bytes(&self) -> Option<&str>
pub fn egress_bytes(&self) -> Option<&str>
The number of bytes received by the client.
sourcepub fn ingress_packets(&self) -> Option<&str>
pub fn ingress_packets(&self) -> Option<&str>
The number of packets sent by the client.
sourcepub fn egress_packets(&self) -> Option<&str>
pub fn egress_packets(&self) -> Option<&str>
The number of packets received by the client.
sourcepub fn common_name(&self) -> Option<&str>
pub fn common_name(&self) -> Option<&str>
The common name associated with the client. This is either the name of the client certificate, or the Active Directory user name.
sourcepub fn status(&self) -> Option<&ClientVpnConnectionStatus>
pub fn status(&self) -> Option<&ClientVpnConnectionStatus>
The current state of the client connection.
sourcepub fn connection_end_time(&self) -> Option<&str>
pub fn connection_end_time(&self) -> Option<&str>
The date and time the client connection was terminated.
sourcepub fn posture_compliance_statuses(&self) -> Option<&[String]>
pub fn posture_compliance_statuses(&self) -> Option<&[String]>
The statuses returned by the client connect handler for posture compliance, if applicable.
source§impl ClientVpnConnection
impl ClientVpnConnection
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ClientVpnConnection
.
Examples found in repository?
43531 43532 43533 43534 43535 43536 43537 43538 43539 43540 43541 43542 43543 43544 43545 43546 43547 43548 43549 43550 43551 43552 43553 43554 43555 43556 43557 43558 43559 43560 43561 43562 43563 43564 43565 43566 43567 43568 43569 43570 43571 43572 43573 43574 43575 43576 43577 43578 43579 43580 43581 43582 43583 43584 43585 43586 43587 43588 43589 43590 43591 43592 43593 43594 43595 43596 43597 43598 43599 43600 43601 43602 43603 43604 43605 43606 43607 43608 43609 43610 43611 43612 43613 43614 43615 43616 43617 43618 43619 43620 43621 43622 43623 43624 43625 43626 43627 43628 43629 43630 43631 43632 43633 43634 43635 43636 43637 43638 43639 43640 43641 43642 43643 43644 43645 43646 43647 43648 43649 43650 43651 43652 43653 43654 43655 43656 43657 43658 43659 43660 43661 43662 43663 43664 43665 43666 43667 43668 43669 43670 43671 43672 43673 43674 43675 43676 43677 43678 43679 43680 43681 43682 43683 43684 43685 43686 43687 43688 43689 43690 43691 43692 43693 43694 43695 43696 43697 43698 43699 43700 43701 43702 43703 43704 43705 43706 43707 43708 43709 43710 43711 43712 43713 43714 43715 43716 43717 43718
pub fn deser_structure_crate_model_client_vpn_connection(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ClientVpnConnection, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ClientVpnConnection::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#ClientVpnConnection$ClientVpnEndpointId */ => {
let var_1886 =
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_client_vpn_endpoint_id(var_1886);
}
,
s if s.matches("timestamp") /* Timestamp com.amazonaws.ec2#ClientVpnConnection$Timestamp */ => {
let var_1887 =
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_timestamp(var_1887);
}
,
s if s.matches("connectionId") /* ConnectionId com.amazonaws.ec2#ClientVpnConnection$ConnectionId */ => {
let var_1888 =
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_connection_id(var_1888);
}
,
s if s.matches("username") /* Username com.amazonaws.ec2#ClientVpnConnection$Username */ => {
let var_1889 =
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_username(var_1889);
}
,
s if s.matches("connectionEstablishedTime") /* ConnectionEstablishedTime com.amazonaws.ec2#ClientVpnConnection$ConnectionEstablishedTime */ => {
let var_1890 =
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_connection_established_time(var_1890);
}
,
s if s.matches("ingressBytes") /* IngressBytes com.amazonaws.ec2#ClientVpnConnection$IngressBytes */ => {
let var_1891 =
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_ingress_bytes(var_1891);
}
,
s if s.matches("egressBytes") /* EgressBytes com.amazonaws.ec2#ClientVpnConnection$EgressBytes */ => {
let var_1892 =
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_egress_bytes(var_1892);
}
,
s if s.matches("ingressPackets") /* IngressPackets com.amazonaws.ec2#ClientVpnConnection$IngressPackets */ => {
let var_1893 =
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_ingress_packets(var_1893);
}
,
s if s.matches("egressPackets") /* EgressPackets com.amazonaws.ec2#ClientVpnConnection$EgressPackets */ => {
let var_1894 =
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_egress_packets(var_1894);
}
,
s if s.matches("clientIp") /* ClientIp com.amazonaws.ec2#ClientVpnConnection$ClientIp */ => {
let var_1895 =
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_client_ip(var_1895);
}
,
s if s.matches("commonName") /* CommonName com.amazonaws.ec2#ClientVpnConnection$CommonName */ => {
let var_1896 =
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_common_name(var_1896);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#ClientVpnConnection$Status */ => {
let var_1897 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_connection_status(&mut tag)
?
)
;
builder = builder.set_status(var_1897);
}
,
s if s.matches("connectionEndTime") /* ConnectionEndTime com.amazonaws.ec2#ClientVpnConnection$ConnectionEndTime */ => {
let var_1898 =
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_connection_end_time(var_1898);
}
,
s if s.matches("postureComplianceStatusSet") /* PostureComplianceStatuses com.amazonaws.ec2#ClientVpnConnection$PostureComplianceStatuses */ => {
let var_1899 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_value_string_list(&mut tag)
?
)
;
builder = builder.set_posture_compliance_statuses(var_1899);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ClientVpnConnection
impl Clone for ClientVpnConnection
source§fn clone(&self) -> ClientVpnConnection
fn clone(&self) -> ClientVpnConnection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more