Struct aws_sdk_ec2::model::TrafficMirrorFilter
source · #[non_exhaustive]pub struct TrafficMirrorFilter { /* private fields */ }
Expand description
Describes the Traffic Mirror filter.
Implementations§
source§impl TrafficMirrorFilter
impl TrafficMirrorFilter
sourcepub fn traffic_mirror_filter_id(&self) -> Option<&str>
pub fn traffic_mirror_filter_id(&self) -> Option<&str>
The ID of the Traffic Mirror filter.
sourcepub fn ingress_filter_rules(&self) -> Option<&[TrafficMirrorFilterRule]>
pub fn ingress_filter_rules(&self) -> Option<&[TrafficMirrorFilterRule]>
Information about the ingress rules that are associated with the Traffic Mirror filter.
sourcepub fn egress_filter_rules(&self) -> Option<&[TrafficMirrorFilterRule]>
pub fn egress_filter_rules(&self) -> Option<&[TrafficMirrorFilterRule]>
Information about the egress rules that are associated with the Traffic Mirror filter.
sourcepub fn network_services(&self) -> Option<&[TrafficMirrorNetworkService]>
pub fn network_services(&self) -> Option<&[TrafficMirrorNetworkService]>
The network service traffic that is associated with the Traffic Mirror filter.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the Traffic Mirror filter.
The tags assigned to the Traffic Mirror filter.
source§impl TrafficMirrorFilter
impl TrafficMirrorFilter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TrafficMirrorFilter
.
Examples found in repository?
src/xml_deser.rs (line 30095)
30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 30119 30120 30121 30122 30123 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168
pub fn deser_structure_crate_model_traffic_mirror_filter(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TrafficMirrorFilter, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TrafficMirrorFilter::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("trafficMirrorFilterId") /* TrafficMirrorFilterId com.amazonaws.ec2#TrafficMirrorFilter$TrafficMirrorFilterId */ => {
let var_1296 =
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_traffic_mirror_filter_id(var_1296);
}
,
s if s.matches("ingressFilterRuleSet") /* IngressFilterRules com.amazonaws.ec2#TrafficMirrorFilter$IngressFilterRules */ => {
let var_1297 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_traffic_mirror_filter_rule_list(&mut tag)
?
)
;
builder = builder.set_ingress_filter_rules(var_1297);
}
,
s if s.matches("egressFilterRuleSet") /* EgressFilterRules com.amazonaws.ec2#TrafficMirrorFilter$EgressFilterRules */ => {
let var_1298 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_traffic_mirror_filter_rule_list(&mut tag)
?
)
;
builder = builder.set_egress_filter_rules(var_1298);
}
,
s if s.matches("networkServiceSet") /* NetworkServices com.amazonaws.ec2#TrafficMirrorFilter$NetworkServices */ => {
let var_1299 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_traffic_mirror_network_service_list(&mut tag)
?
)
;
builder = builder.set_network_services(var_1299);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#TrafficMirrorFilter$Description */ => {
let var_1300 =
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_description(var_1300);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TrafficMirrorFilter$Tags */ => {
let var_1301 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1301);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TrafficMirrorFilter
impl Clone for TrafficMirrorFilter
source§fn clone(&self) -> TrafficMirrorFilter
fn clone(&self) -> TrafficMirrorFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more