Struct aws_sdk_macie2::operation::test_custom_data_identifier::builders::TestCustomDataIdentifierFluentBuilder
source · pub struct TestCustomDataIdentifierFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to TestCustomDataIdentifier
.
Tests a custom data identifier.
Implementations§
source§impl TestCustomDataIdentifierFluentBuilder
impl TestCustomDataIdentifierFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<TestCustomDataIdentifier, AwsResponseRetryClassifier>, SdkError<TestCustomDataIdentifierError>>
pub async fn customize( self ) -> Result<CustomizableOperation<TestCustomDataIdentifier, AwsResponseRetryClassifier>, SdkError<TestCustomDataIdentifierError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<TestCustomDataIdentifierOutput, SdkError<TestCustomDataIdentifierError>>
pub async fn send( self ) -> Result<TestCustomDataIdentifierOutput, SdkError<TestCustomDataIdentifierError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn ignore_words(self, input: impl Into<String>) -> Self
pub fn ignore_words(self, input: impl Into<String>) -> Self
Appends an item to ignoreWords
.
To override the contents of this collection use set_ignore_words
.
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.
sourcepub fn set_ignore_words(self, input: Option<Vec<String>>) -> Self
pub fn set_ignore_words(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn keywords(self, input: impl Into<String>) -> Self
pub fn keywords(self, input: impl Into<String>) -> Self
Appends an item to keywords
.
To override the contents of this collection use set_keywords
.
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.
sourcepub fn set_keywords(self, input: Option<Vec<String>>) -> Self
pub fn set_keywords(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn maximum_match_distance(self, input: i32) -> Self
pub fn maximum_match_distance(self, input: i32) -> Self
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 set_maximum_match_distance(self, input: Option<i32>) -> Self
pub fn set_maximum_match_distance(self, input: Option<i32>) -> Self
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, input: impl Into<String>) -> Self
pub fn regex(self, input: impl Into<String>) -> Self
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
sourcepub fn set_regex(self, input: Option<String>) -> Self
pub fn set_regex(self, input: Option<String>) -> Self
The regular expression (regex) that defines the pattern to match. The expression can contain as many as 512 characters.
sourcepub fn sample_text(self, input: impl Into<String>) -> Self
pub fn sample_text(self, input: impl Into<String>) -> Self
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
sourcepub fn set_sample_text(self, input: Option<String>) -> Self
pub fn set_sample_text(self, input: Option<String>) -> Self
The sample text to inspect by using the custom data identifier. The text can contain as many as 1,000 characters.
Trait Implementations§
source§impl Clone for TestCustomDataIdentifierFluentBuilder
impl Clone for TestCustomDataIdentifierFluentBuilder
source§fn clone(&self) -> TestCustomDataIdentifierFluentBuilder
fn clone(&self) -> TestCustomDataIdentifierFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more