Struct aws_sdk_glue::types::PiiDetection
source · #[non_exhaustive]pub struct PiiDetection {
pub name: String,
pub inputs: Vec<String>,
pub pii_type: PiiType,
pub entity_types_to_detect: Vec<String>,
pub output_column_name: Option<String>,
pub sample_fraction: Option<f64>,
pub threshold_fraction: Option<f64>,
pub mask_value: Option<String>,
}
Expand description
Specifies a transform that identifies, removes or masks PII 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
The name of the transform node.
inputs: Vec<String>
The node ID inputs to the transform.
pii_type: PiiType
Indicates the type of PIIDetection transform.
entity_types_to_detect: Vec<String>
Indicates the types of entities the PIIDetection transform will identify as PII data.
PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER, BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE, USA_MEDICARE_BENEFICIARY_IDENTIFIER, USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
output_column_name: Option<String>
Indicates the output column name that will contain any entity type detected in that row.
sample_fraction: Option<f64>
Indicates the fraction of the data to sample when scanning for PII entities.
threshold_fraction: Option<f64>
Indicates the fraction of the data that must be met in order for a column to be identified as PII data.
mask_value: Option<String>
Indicates the value that will replace the detected entity.
Implementations§
source§impl PiiDetection
impl PiiDetection
sourcepub fn entity_types_to_detect(&self) -> &[String]
pub fn entity_types_to_detect(&self) -> &[String]
Indicates the types of entities the PIIDetection transform will identify as PII data.
PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN, USA_PASSPORT_NUMBER, PHONE_NUMBER, BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS, USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE, USA_MEDICARE_BENEFICIARY_IDENTIFIER, USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
sourcepub fn output_column_name(&self) -> Option<&str>
pub fn output_column_name(&self) -> Option<&str>
Indicates the output column name that will contain any entity type detected in that row.
sourcepub fn sample_fraction(&self) -> Option<f64>
pub fn sample_fraction(&self) -> Option<f64>
Indicates the fraction of the data to sample when scanning for PII entities.
sourcepub fn threshold_fraction(&self) -> Option<f64>
pub fn threshold_fraction(&self) -> Option<f64>
Indicates the fraction of the data that must be met in order for a column to be identified as PII data.
sourcepub fn mask_value(&self) -> Option<&str>
pub fn mask_value(&self) -> Option<&str>
Indicates the value that will replace the detected entity.
source§impl PiiDetection
impl PiiDetection
sourcepub fn builder() -> PiiDetectionBuilder
pub fn builder() -> PiiDetectionBuilder
Creates a new builder-style object to manufacture PiiDetection
.
Trait Implementations§
source§impl Clone for PiiDetection
impl Clone for PiiDetection
source§fn clone(&self) -> PiiDetection
fn clone(&self) -> PiiDetection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PiiDetection
impl Debug for PiiDetection
source§impl PartialEq for PiiDetection
impl PartialEq for PiiDetection
source§fn eq(&self, other: &PiiDetection) -> bool
fn eq(&self, other: &PiiDetection) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PiiDetection
Auto Trait Implementations§
impl Freeze for PiiDetection
impl RefUnwindSafe for PiiDetection
impl Send for PiiDetection
impl Sync for PiiDetection
impl Unpin for PiiDetection
impl UnwindSafe for PiiDetection
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