#[non_exhaustive]pub struct RegexPatternSetReferenceStatement {
pub arn: Option<String>,
pub field_to_match: Option<FieldToMatch>,
pub text_transformations: Option<Vec<TextTransformation>>,
}Expand description
A rule statement used to search web request components for matches with regular expressions. To use this, create a RegexPatternSet that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set. To create a regex pattern set, see CreateRegexPatternSet.
Each regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, WAF automatically updates all rules that reference it.
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.arn: Option<String>The Amazon Resource Name (ARN) of the RegexPatternSet that this statement references.
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 RegexPatternSetReferenceStatement
impl RegexPatternSetReferenceStatement
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the RegexPatternSet that this statement references.
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 RegexPatternSetReferenceStatement
impl RegexPatternSetReferenceStatement
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RegexPatternSetReferenceStatement
Trait Implementations
sourceimpl Clone for RegexPatternSetReferenceStatement
impl Clone for RegexPatternSetReferenceStatement
sourcefn clone(&self) -> RegexPatternSetReferenceStatement
fn clone(&self) -> RegexPatternSetReferenceStatement
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 PartialEq<RegexPatternSetReferenceStatement> for RegexPatternSetReferenceStatement
impl PartialEq<RegexPatternSetReferenceStatement> for RegexPatternSetReferenceStatement
sourcefn eq(&self, other: &RegexPatternSetReferenceStatement) -> bool
fn eq(&self, other: &RegexPatternSetReferenceStatement) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RegexPatternSetReferenceStatement) -> bool
fn ne(&self, other: &RegexPatternSetReferenceStatement) -> bool
This method tests for !=.
impl StructuralPartialEq for RegexPatternSetReferenceStatement
Auto Trait Implementations
impl RefUnwindSafe for RegexPatternSetReferenceStatement
impl Send for RegexPatternSetReferenceStatement
impl Sync for RegexPatternSetReferenceStatement
impl Unpin for RegexPatternSetReferenceStatement
impl UnwindSafe for RegexPatternSetReferenceStatement
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