## comprehend-logging-redact Sample project to demonstrate how to use AWS SDK for Amazon Comprehend to detect and redact PII data from logs generated by Java applications `SensitiveDataPolicy.java` uses AWS SDK to call Amazon Comprehend - ```java DetectPiiEntitiesRequest piiEntitiesRequest = DetectPiiEntitiesRequest.builder() .languageCode("en") .text(msg.getFormattedMessage()) .build(); DetectPiiEntitiesResponse piiEntitiesResponse = comprehendClient.detectPiiEntities(piiEntitiesRequest); ``` `log4j.xml` uses parameters to configure the appllication - ```yaml ``` All these parameters are custom to this application, feel free to create your own parameters and customize the `SensitiveDataPolicy`. The entity types `SSN,EMAIL` come from Amazon Comprehend documentation. ## Security See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. ## License This library is licensed under the MIT-0 License. See the LICENSE file.