#[non_exhaustive]
pub struct TrafficMirrorFilter { /* private fields */ }
Expand description

Describes the Traffic Mirror filter.

Implementations§

The ID of the Traffic Mirror filter.

Information about the ingress rules that are associated with the Traffic Mirror filter.

Information about the egress rules that are associated with the Traffic Mirror filter.

The network service traffic that is associated with the Traffic Mirror filter.

The description of the Traffic Mirror filter.

The tags assigned to the Traffic Mirror filter.

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more