|
113 | 113 | ],
|
114 | 114 | "documentation":"<p>Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.</p>"
|
115 | 115 | },
|
| 116 | + "ContainsPiiEntities":{ |
| 117 | + "name":"ContainsPiiEntities", |
| 118 | + "http":{ |
| 119 | + "method":"POST", |
| 120 | + "requestUri":"/" |
| 121 | + }, |
| 122 | + "input":{"shape":"ContainsPiiEntitiesRequest"}, |
| 123 | + "output":{"shape":"ContainsPiiEntitiesResponse"}, |
| 124 | + "errors":[ |
| 125 | + {"shape":"InvalidRequestException"}, |
| 126 | + {"shape":"TextSizeLimitExceededException"}, |
| 127 | + {"shape":"UnsupportedLanguageException"}, |
| 128 | + {"shape":"InternalServerException"} |
| 129 | + ], |
| 130 | + "documentation":"<p>Analyzes input text for the presence of personally identifiable information (PII) and returns the labels of identified PII entity types such as name, address, bank account number, or phone number.</p>" |
| 131 | + }, |
116 | 132 | "CreateDocumentClassifier":{
|
117 | 133 | "name":"CreateDocumentClassifier",
|
118 | 134 | "http":{
|
|
1429 | 1445 | "documentation":"<p>Concurrent modification of the tags associated with an Amazon Comprehend resource is not supported. </p>",
|
1430 | 1446 | "exception":true
|
1431 | 1447 | },
|
| 1448 | + "ContainsPiiEntitiesRequest":{ |
| 1449 | + "type":"structure", |
| 1450 | + "required":[ |
| 1451 | + "Text", |
| 1452 | + "LanguageCode" |
| 1453 | + ], |
| 1454 | + "members":{ |
| 1455 | + "Text":{ |
| 1456 | + "shape":"String", |
| 1457 | + "documentation":"<p>Creates a new document classification request to analyze a single document in real-time, returning personally identifiable information (PII) entity labels.</p>" |
| 1458 | + }, |
| 1459 | + "LanguageCode":{ |
| 1460 | + "shape":"LanguageCode", |
| 1461 | + "documentation":"<p>The language of the input documents.</p>" |
| 1462 | + } |
| 1463 | + } |
| 1464 | + }, |
| 1465 | + "ContainsPiiEntitiesResponse":{ |
| 1466 | + "type":"structure", |
| 1467 | + "members":{ |
| 1468 | + "Labels":{ |
| 1469 | + "shape":"ListOfEntityLabels", |
| 1470 | + "documentation":"<p>The labels used in the document being analyzed. Individual labels represent personally identifiable information (PII) entity types.</p>" |
| 1471 | + } |
| 1472 | + } |
| 1473 | + }, |
1432 | 1474 | "CreateDocumentClassifierRequest":{
|
1433 | 1475 | "type":"structure",
|
1434 | 1476 | "required":[
|
|
2538 | 2580 | },
|
2539 | 2581 | "documentation":"<p>Provides information about an entity. </p> <p> </p>"
|
2540 | 2582 | },
|
| 2583 | + "EntityLabel":{ |
| 2584 | + "type":"structure", |
| 2585 | + "members":{ |
| 2586 | + "Name":{ |
| 2587 | + "shape":"PiiEntityType", |
| 2588 | + "documentation":"<p>The name of the label.</p>" |
| 2589 | + }, |
| 2590 | + "Score":{ |
| 2591 | + "shape":"Float", |
| 2592 | + "documentation":"<p>The level of confidence that Amazon Comprehend has in the accuracy of the detection.</p>" |
| 2593 | + } |
| 2594 | + }, |
| 2595 | + "documentation":"<p>Specifies one of the label or labels that categorize the personally identifiable information (PII) entity being analyzed.</p>" |
| 2596 | + }, |
2541 | 2597 | "EntityRecognizerAnnotations":{
|
2542 | 2598 | "type":"structure",
|
2543 | 2599 | "required":["S3Uri"],
|
|
2783 | 2839 | "EntityTypeName":{
|
2784 | 2840 | "type":"string",
|
2785 | 2841 | "max":64,
|
2786 |
| - "pattern":"^(?:(?!\\\\n+|\\\\t+|\\\\r+|[\\r\\t\\n\\s,]).)+$" |
| 2842 | + "pattern":"^(?:(?!\\\\n+|\\\\t+|\\\\r+|[\\r\\t\\n,]).)+$" |
2787 | 2843 | },
|
2788 | 2844 | "EntityTypesEvaluationMetrics":{
|
2789 | 2845 | "type":"structure",
|
|
3399 | 3455 | "type":"list",
|
3400 | 3456 | "member":{"shape":"Entity"}
|
3401 | 3457 | },
|
| 3458 | + "ListOfEntityLabels":{ |
| 3459 | + "type":"list", |
| 3460 | + "member":{"shape":"EntityLabel"} |
| 3461 | + }, |
3402 | 3462 | "ListOfKeyPhrases":{
|
3403 | 3463 | "type":"list",
|
3404 | 3464 | "member":{"shape":"KeyPhrase"}
|
|
4800 | 4860 | "members":{
|
4801 | 4861 | "Message":{"shape":"String"}
|
4802 | 4862 | },
|
4803 |
| - "documentation":"<p>Amazon Comprehend can't process the language of the input text. For all custom entity recognition APIs (such as <code>CreateEntityRecognizer</code>), only English, Spanish, French, Italian, German, or Portuguese are accepted. For most other APIs, such as those for Custom Classification, Amazon Comprehend accepts text in all supported languages. For a list of supported languages, see <a>supported-languages</a>. </p>", |
| 4863 | + "documentation":"<p>Amazon Comprehend can't process the language of the input text. For custom entity recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are accepted. For a list of supported languages, see <a>supported-languages</a>. </p>", |
4804 | 4864 | "exception":true
|
4805 | 4865 | },
|
4806 | 4866 | "UntagResourceRequest":{
|
|
0 commit comments