Struct aws_sdk_glue::types::CustomEntityType
source · #[non_exhaustive]pub struct CustomEntityType {
pub name: String,
pub regex_string: String,
pub context_words: Option<Vec<String>>,
}
Expand description
An object representing a custom pattern for detecting sensitive data across the columns and rows of your structured data.
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: String
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
regex_string: String
A regular expression string that is used for detecting sensitive data in a custom pattern.
context_words: Option<Vec<String>>
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
Implementations§
source§impl CustomEntityType
impl CustomEntityType
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
A name for the custom pattern that allows it to be retrieved or deleted later. This name must be unique per Amazon Web Services account.
sourcepub fn regex_string(&self) -> &str
pub fn regex_string(&self) -> &str
A regular expression string that is used for detecting sensitive data in a custom pattern.
sourcepub fn context_words(&self) -> &[String]
pub fn context_words(&self) -> &[String]
A list of context words. If none of these context words are found within the vicinity of the regular expression the data will not be detected as sensitive data.
If no context words are passed only a regular expression is checked.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .context_words.is_none()
.
source§impl CustomEntityType
impl CustomEntityType
sourcepub fn builder() -> CustomEntityTypeBuilder
pub fn builder() -> CustomEntityTypeBuilder
Creates a new builder-style object to manufacture CustomEntityType
.
Trait Implementations§
source§impl Clone for CustomEntityType
impl Clone for CustomEntityType
source§fn clone(&self) -> CustomEntityType
fn clone(&self) -> CustomEntityType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomEntityType
impl Debug for CustomEntityType
source§impl PartialEq for CustomEntityType
impl PartialEq for CustomEntityType
source§fn eq(&self, other: &CustomEntityType) -> bool
fn eq(&self, other: &CustomEntityType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomEntityType
Auto Trait Implementations§
impl Freeze for CustomEntityType
impl RefUnwindSafe for CustomEntityType
impl Send for CustomEntityType
impl Sync for CustomEntityType
impl Unpin for CustomEntityType
impl UnwindSafe for CustomEntityType
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