Skip to content

/AWS1/CL_MA2RECORD

Specifies the location of an occurrence of sensitive data in an Apache Avro object container, Apache Parquet file, JSON file, or JSON Lines file.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_jsonpath TYPE /AWS1/MA2__STRING /AWS1/MA2__STRING

The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.

If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.

iv_recordindex TYPE /AWS1/MA2__LONG /AWS1/MA2__LONG

For an Avro object container or Parquet file, the record index, starting from 0, for the record that contains the sensitive data. For a JSON Lines file, the line index, starting from 0, for the line that contains the sensitive data. This value is always 0 for JSON files.


Queryable Attributes

jsonPath

The path, as a JSONPath expression, to the sensitive data. For an Avro object container or Parquet file, this is the path to the field in the record (recordIndex) that contains the data. For a JSON or JSON Lines file, this is the path to the field or array that contains the data. If the data is a value in an array, the path also indicates which value contains the data.

If Amazon Macie detects sensitive data in the name of any element in the path, Macie omits this field. If the name of an element exceeds 240 characters, Macie truncates the name by removing characters from the beginning of the name. If the resulting full path exceeds 250 characters, Macie also truncates the path, starting with the first element in the path, until the path contains 250 or fewer characters.

Accessible with the following methods

Method Description
GET_JSONPATH() Getter for JSONPATH, with configurable default
ASK_JSONPATH() Getter for JSONPATH w/ exceptions if field has no value
HAS_JSONPATH() Determine if JSONPATH has a value

recordIndex

For an Avro object container or Parquet file, the record index, starting from 0, for the record that contains the sensitive data. For a JSON Lines file, the line index, starting from 0, for the line that contains the sensitive data. This value is always 0 for JSON files.

Accessible with the following methods

Method Description
GET_RECORDINDEX() Getter for RECORDINDEX, with configurable default
ASK_RECORDINDEX() Getter for RECORDINDEX w/ exceptions if field has no value
HAS_RECORDINDEX() Determine if RECORDINDEX has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_RECORDS

TYPES TT_RECORDS TYPE STANDARD TABLE OF REF TO /AWS1/CL_MA2RECORD WITH DEFAULT KEY
.