Struct aws_sdk_macie2::operation::test_custom_data_identifier::TestCustomDataIdentifierInput
source · #[non_exhaustive]pub struct TestCustomDataIdentifierInput {
pub ignore_words: Option<Vec<String>>,
pub keywords: Option<Vec<String>>,
pub maximum_match_distance: Option<i32>,
pub regex: Option<String>,
pub sample_text: Option<String>,
}
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.ignore_words: Option<Vec<String>>
An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.
keywords: Option<Vec<String>>
An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.
maximum_match_distance: Option<i32>
The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.
regex: Option<String>
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
sample_text: Option<String>
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
Implementations§
source§impl TestCustomDataIdentifierInput
impl TestCustomDataIdentifierInput
sourcepub fn ignore_words(&self) -> &[String]
pub fn ignore_words(&self) -> &[String]
An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. The array can contain as many as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ignore_words.is_none()
.
sourcepub fn keywords(&self) -> &[String]
pub fn keywords(&self) -> &[String]
An array that lists specific character sequences (keywords), one of which must precede and be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .keywords.is_none()
.
sourcepub fn maximum_match_distance(&self) -> Option<i32>
pub fn maximum_match_distance(&self) -> Option<i32>
The maximum number of characters that can exist between the end of at least one complete character sequence specified by the keywords array and the end of the text that matches the regex pattern. If a complete keyword precedes all the text that matches the pattern and the keyword is within the specified distance, Amazon Macie includes the result. The distance can be 1-300 characters. The default value is 50.
sourcepub fn regex(&self) -> Option<&str>
pub fn regex(&self) -> Option<&str>
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
sourcepub fn sample_text(&self) -> Option<&str>
pub fn sample_text(&self) -> Option<&str>
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
source§impl TestCustomDataIdentifierInput
impl TestCustomDataIdentifierInput
sourcepub fn builder() -> TestCustomDataIdentifierInputBuilder
pub fn builder() -> TestCustomDataIdentifierInputBuilder
Creates a new builder-style object to manufacture TestCustomDataIdentifierInput
.
Trait Implementations§
source§impl Clone for TestCustomDataIdentifierInput
impl Clone for TestCustomDataIdentifierInput
source§fn clone(&self) -> TestCustomDataIdentifierInput
fn clone(&self) -> TestCustomDataIdentifierInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for TestCustomDataIdentifierInput
impl PartialEq for TestCustomDataIdentifierInput
source§fn eq(&self, other: &TestCustomDataIdentifierInput) -> bool
fn eq(&self, other: &TestCustomDataIdentifierInput) -> bool
self
and other
values to be equal, and is used
by ==
.