Struct aws_sdk_wafv2::model::XssMatchStatement
source · [−]#[non_exhaustive]pub struct XssMatchStatement {
pub field_to_match: Option<FieldToMatch>,
pub text_transformations: Option<Vec<TextTransformation>>,
}Expand description
A rule statement that defines a cross-site scripting (XSS) match search for WAF to apply to web requests. XSS attacks are those where the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers. The XSS match statement provides the location in requests that you want WAF to search and text transformations to use on the search area before WAF searches for character sequences that are likely to be malicious strings.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field_to_match: Option<FieldToMatch>The part of the web request that you want WAF to inspect. For more information, see FieldToMatch.
text_transformations: Option<Vec<TextTransformation>>Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.
Implementations
sourceimpl XssMatchStatement
impl XssMatchStatement
sourcepub fn field_to_match(&self) -> Option<&FieldToMatch>
pub fn field_to_match(&self) -> Option<&FieldToMatch>
The part of the web request that you want WAF to inspect. For more information, see FieldToMatch.
sourcepub fn text_transformations(&self) -> Option<&[TextTransformation]>
pub fn text_transformations(&self) -> Option<&[TextTransformation]>
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.
sourceimpl XssMatchStatement
impl XssMatchStatement
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture XssMatchStatement
Trait Implementations
sourceimpl Clone for XssMatchStatement
impl Clone for XssMatchStatement
sourcefn clone(&self) -> XssMatchStatement
fn clone(&self) -> XssMatchStatement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for XssMatchStatement
impl Debug for XssMatchStatement
sourceimpl PartialEq<XssMatchStatement> for XssMatchStatement
impl PartialEq<XssMatchStatement> for XssMatchStatement
sourcefn eq(&self, other: &XssMatchStatement) -> bool
fn eq(&self, other: &XssMatchStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &XssMatchStatement) -> bool
fn ne(&self, other: &XssMatchStatement) -> bool
This method tests for !=.
impl StructuralPartialEq for XssMatchStatement
Auto Trait Implementations
impl RefUnwindSafe for XssMatchStatement
impl Send for XssMatchStatement
impl Sync for XssMatchStatement
impl Unpin for XssMatchStatement
impl UnwindSafe for XssMatchStatement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more