You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Comprehend::Types::RedactionConfig

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing RedactionConfig as input to an Aws::Client method, you can use a vanilla Hash:

{
  pii_entity_types: ["BANK_ACCOUNT_NUMBER"], # accepts BANK_ACCOUNT_NUMBER, BANK_ROUTING, CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, NAME, PHONE, SSN, DATE_TIME, PASSPORT_NUMBER, DRIVER_ID, URL, AGE, USERNAME, PASSWORD, AWS_ACCESS_KEY, AWS_SECRET_KEY, IP_ADDRESS, MAC_ADDRESS, ALL
  mask_mode: "MASK", # accepts MASK, REPLACE_WITH_PII_ENTITY_TYPE
  mask_character: "MaskCharacter",
}

Provides configuration parameters for PII entity redaction.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#mask_characterString

A character that replaces each character in the redacted PII entity.

Returns:

  • (String)

    A character that replaces each character in the redacted PII entity.

#mask_modeString

Specifies whether the PII entity is redacted with the mask character or the entity type.

Possible values:

  • MASK
  • REPLACE_WITH_PII_ENTITY_TYPE

Returns:

  • (String)

    Specifies whether the PII entity is redacted with the mask character or the entity type.

#pii_entity_typesArray<String>

An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.

Returns:

  • (Array<String>)

    An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.