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.StartPiiEntitiesDetectionJob

Description

Starts an asynchronous PII entity detection job for a collection of documents.

Synopsis

Creating a Request

data StartPiiEntitiesDetectionJob Source #

See: newStartPiiEntitiesDetectionJob smart constructor.

Constructors

StartPiiEntitiesDetectionJob' 

Fields

  • jobName :: Maybe Text

    The identifier of the job.

  • redactionConfig :: Maybe RedactionConfig

    Provides configuration parameters for PII entity redaction.

    This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.

  • clientRequestToken :: Maybe Text

    A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

  • tags :: Maybe [Tag]

    Tags to be associated with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

  • inputDataConfig :: InputDataConfig

    The input properties for a PII entities detection job.

  • outputDataConfig :: OutputDataConfig

    Provides configuration parameters for the output of PII entity detection jobs.

  • mode :: PiiEntitiesDetectionMode

    Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

  • dataAccessRoleArn :: Text

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.

  • languageCode :: LanguageCode

    The language of the input documents.

Instances

Instances details
Eq StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Read StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Show StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Generic StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Associated Types

type Rep StartPiiEntitiesDetectionJob :: Type -> Type #

NFData StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Hashable StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

ToJSON StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

AWSRequest StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

ToHeaders StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

ToPath StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

ToQuery StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

type Rep StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

type AWSResponse StartPiiEntitiesDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

newStartPiiEntitiesDetectionJob Source #

Create a value of StartPiiEntitiesDetectionJob 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:jobName:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_jobName - The identifier of the job.

$sel:redactionConfig:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_redactionConfig - Provides configuration parameters for PII entity redaction.

This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.

$sel:clientRequestToken:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_clientRequestToken - A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

$sel:tags:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_tags - Tags to be associated with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

$sel:inputDataConfig:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_inputDataConfig - The input properties for a PII entities detection job.

$sel:outputDataConfig:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_outputDataConfig - Provides configuration parameters for the output of PII entity detection jobs.

$sel:mode:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_mode - Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

$sel:dataAccessRoleArn:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_dataAccessRoleArn - The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.

$sel:languageCode:StartPiiEntitiesDetectionJob', startPiiEntitiesDetectionJob_languageCode - The language of the input documents.

Request Lenses

startPiiEntitiesDetectionJob_redactionConfig :: Lens' StartPiiEntitiesDetectionJob (Maybe RedactionConfig) Source #

Provides configuration parameters for PII entity redaction.

This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.

startPiiEntitiesDetectionJob_clientRequestToken :: Lens' StartPiiEntitiesDetectionJob (Maybe Text) Source #

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

startPiiEntitiesDetectionJob_tags :: Lens' StartPiiEntitiesDetectionJob (Maybe [Tag]) Source #

Tags to be associated with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

startPiiEntitiesDetectionJob_outputDataConfig :: Lens' StartPiiEntitiesDetectionJob OutputDataConfig Source #

Provides configuration parameters for the output of PII entity detection jobs.

startPiiEntitiesDetectionJob_mode :: Lens' StartPiiEntitiesDetectionJob PiiEntitiesDetectionMode Source #

Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.

startPiiEntitiesDetectionJob_dataAccessRoleArn :: Lens' StartPiiEntitiesDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.

Destructuring the Response

data StartPiiEntitiesDetectionJobResponse Source #

Constructors

StartPiiEntitiesDetectionJobResponse' 

Fields

  • jobId :: Maybe Text

    The identifier generated for the job.

  • jobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the PII entity detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:

    arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

    The following is an example job ARN:

    arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
  • jobStatus :: Maybe JobStatus

    The status of the job.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StartPiiEntitiesDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Read StartPiiEntitiesDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Show StartPiiEntitiesDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

Generic StartPiiEntitiesDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

NFData StartPiiEntitiesDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

type Rep StartPiiEntitiesDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartPiiEntitiesDetectionJob

type Rep StartPiiEntitiesDetectionJobResponse = D1 ('MetaData "StartPiiEntitiesDetectionJobResponse" "Amazonka.Comprehend.StartPiiEntitiesDetectionJob" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "StartPiiEntitiesDetectionJobResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "jobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newStartPiiEntitiesDetectionJobResponse Source #

Create a value of StartPiiEntitiesDetectionJobResponse 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:jobId:StartPiiEntitiesDetectionJobResponse', startPiiEntitiesDetectionJobResponse_jobId - The identifier generated for the job.

$sel:jobArn:StartPiiEntitiesDetectionJobResponse', startPiiEntitiesDetectionJobResponse_jobArn - The Amazon Resource Name (ARN) of the PII entity detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

$sel:jobStatus:StartPiiEntitiesDetectionJobResponse', startPiiEntitiesDetectionJobResponse_jobStatus - The status of the job.

$sel:httpStatus:StartPiiEntitiesDetectionJobResponse', startPiiEntitiesDetectionJobResponse_httpStatus - The response's http status code.

Response Lenses

startPiiEntitiesDetectionJobResponse_jobArn :: Lens' StartPiiEntitiesDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the PII entity detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab