libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Comprehend.DetectPiiEntities

Description

Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.

Synopsis

Creating a Request

data DetectPiiEntities Source #

See: newDetectPiiEntities smart constructor.

Constructors

DetectPiiEntities' 

Fields

  • text :: Text

    A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

  • languageCode :: LanguageCode

    The language of the input documents.

Instances

Instances details
Eq DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Read DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Show DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Generic DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Associated Types

type Rep DetectPiiEntities :: Type -> Type #

NFData DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Methods

rnf :: DetectPiiEntities -> () #

Hashable DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

ToJSON DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

AWSRequest DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Associated Types

type AWSResponse DetectPiiEntities #

ToHeaders DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

ToPath DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

ToQuery DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

type Rep DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

type Rep DetectPiiEntities = D1 ('MetaData "DetectPiiEntities" "Amazonka.Comprehend.DetectPiiEntities" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "DetectPiiEntities'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LanguageCode)))
type AWSResponse DetectPiiEntities Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

newDetectPiiEntities Source #

Create a value of DetectPiiEntities with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:text:DetectPiiEntities', detectPiiEntities_text - A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

$sel:languageCode:DetectPiiEntities', detectPiiEntities_languageCode - The language of the input documents.

Request Lenses

detectPiiEntities_text :: Lens' DetectPiiEntities Text Source #

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

Destructuring the Response

data DetectPiiEntitiesResponse Source #

See: newDetectPiiEntitiesResponse smart constructor.

Constructors

DetectPiiEntitiesResponse' 

Fields

  • entities :: Maybe [PiiEntity]

    A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DetectPiiEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Read DetectPiiEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Show DetectPiiEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Generic DetectPiiEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

Associated Types

type Rep DetectPiiEntitiesResponse :: Type -> Type #

NFData DetectPiiEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

type Rep DetectPiiEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectPiiEntities

type Rep DetectPiiEntitiesResponse = D1 ('MetaData "DetectPiiEntitiesResponse" "Amazonka.Comprehend.DetectPiiEntities" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "DetectPiiEntitiesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PiiEntity])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDetectPiiEntitiesResponse Source #

Create a value of DetectPiiEntitiesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:entities:DetectPiiEntitiesResponse', detectPiiEntitiesResponse_entities - A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

$sel:httpStatus:DetectPiiEntitiesResponse', detectPiiEntitiesResponse_httpStatus - The response's http status code.

Response Lenses

detectPiiEntitiesResponse_entities :: Lens' DetectPiiEntitiesResponse (Maybe [PiiEntity]) Source #

A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.