The PII Detection action uses Amazon Comprehend to identify personally identifiable information (PII) within text and documents.
Use this action to detect sensitive information such as names, email addresses, telephone numbers, account numbers, identification numbers, and other personal data. The detected information can be used to support compliance requirements, document review processes, data protection workflows, and content classification. Amazon Comprehend performs the analysis and returns the detected PII entities together with confidence information.
The connector automatically selects the appropriate Amazon Comprehend processing method based on the size of the submitted content. For smaller documents, the analysis is performed synchronously and the results are returned immediately. For larger documents, Amazon Comprehend uses asynchronous processing. The connector uploads the content to Amazon S3, submits an analysis job, monitors the job status, retrieves the results, and removes temporary processing files after completion.
The returned data can be mapped to process variables and used by subsequent tasks, gateways, and integrations.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| confidenceLevel | String | Optional | The minimum confidence score required for an extracted entity to be included in the results. Specify a value between 0 and 1. Example: 0.95. |
| file | Array<content>, Content | Optional | The document to analyze. If multiple content objects are provided, only the first file is processed. File variables are typically populated by content actions or content-based trigger events. |
| maxEntities | Integer | Optional | The maximum number of entities to return in the analysis results. Example: 5. |
| mediaType | String | Optional | The media type of the content provided through the file parameter. Example: application/pdf or application/octet-stream. |
| text | String | Optional | The raw text content to analyze. |
| timeout | Integer | Optional | The maximum time, in milliseconds, that the connector waits for the analysis operation to complete. Example: 910000. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| awsResponse | JSON | Optional | The complete response returned by Amazon Comprehend. The contents depend on the type of analysis performed and may include entities, confidence scores, classification information, and other analysis metadata. |
| piiEntityTypes | Array<string> | Optional | A list of the PII entity types detected in the analyzed content. The returned values identify the categories of personally identifiable information found by Amazon Comprehend, such as names, email addresses, phone numbers, account numbers, or other supported PII types. |