DetectPiiEntities
Source:
src/AWS/Comprehend/DetectPiiEntities.ts
Runtime binding for comprehend:DetectPiiEntities — locate personally
identifiable information (names, addresses, bank account numbers, …) in
the input text, with entity type, score, and character offsets.
The binding takes no arguments and grants the action on * (the action
has no resource-level IAM). To only test whether a document contains
PII, use the cheaper ContainsPiiEntities.
Real-Time Analysis
Section titled “Real-Time Analysis”// initconst detectPiiEntities = yield* AWS.Comprehend.DetectPiiEntities();
// runtimeconst result = yield* detectPiiEntities({ Text: "My name is Jane Doe and my email is jane@example.com.", LanguageCode: "en",});// result.Entities: [{ Type: "NAME", BeginOffset: 11, … }, { Type: "EMAIL", … }]