Struct aws_sdk_wafv2::types::RegexPatternSet
source · #[non_exhaustive]pub struct RegexPatternSet {
pub name: Option<String>,
pub id: Option<String>,
pub arn: Option<String>,
pub description: Option<String>,
pub regular_expression_list: Option<Vec<Regex>>,
}
Expand description
Contains one or more regular expressions.
WAF assigns an ARN to each RegexPatternSet
that you create. To use a set in a rule, you provide the ARN to the Rule
statement RegexPatternSetReferenceStatement
.
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.name: Option<String>
The name of the set. You cannot change the name after you create the set.
id: Option<String>
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
arn: Option<String>
The Amazon Resource Name (ARN) of the entity.
description: Option<String>
A description of the set that helps with identification.
regular_expression_list: Option<Vec<Regex>>
The regular expression patterns in the set.
Implementations§
source§impl RegexPatternSet
impl RegexPatternSet
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the set. You cannot change the name after you create the set.
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the set that helps with identification.
sourcepub fn regular_expression_list(&self) -> &[Regex]
pub fn regular_expression_list(&self) -> &[Regex]
The regular expression patterns in the set.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .regular_expression_list.is_none()
.
source§impl RegexPatternSet
impl RegexPatternSet
sourcepub fn builder() -> RegexPatternSetBuilder
pub fn builder() -> RegexPatternSetBuilder
Creates a new builder-style object to manufacture RegexPatternSet
.
Trait Implementations§
source§impl Clone for RegexPatternSet
impl Clone for RegexPatternSet
source§fn clone(&self) -> RegexPatternSet
fn clone(&self) -> RegexPatternSet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegexPatternSet
impl Debug for RegexPatternSet
source§impl PartialEq for RegexPatternSet
impl PartialEq for RegexPatternSet
source§fn eq(&self, other: &RegexPatternSet) -> bool
fn eq(&self, other: &RegexPatternSet) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegexPatternSet
Auto Trait Implementations§
impl Freeze for RegexPatternSet
impl RefUnwindSafe for RegexPatternSet
impl Send for RegexPatternSet
impl Sync for RegexPatternSet
impl Unpin for RegexPatternSet
impl UnwindSafe for RegexPatternSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more