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 ==
.