Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

comprehend_start_pii_entities_detection_job

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


Description

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

Usage

comprehend_start_pii_entities_detection_job(InputDataConfig,
  OutputDataConfig, Mode, RedactionConfig, DataAccessRoleArn, JobName,
  LanguageCode, ClientRequestToken)

Arguments

InputDataConfig

[required] The input properties for a PII entities detection job.

OutputDataConfig

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

Mode

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

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.

DataAccessRoleArn

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

JobName

The identifier of the job.

LanguageCode

[required] The language of the input documents.

ClientRequestToken

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

Value

A list with the following syntax:

list(
  JobId = "string",
  JobStatus = "SUBMITTED"|"IN_PROGRESS"|"COMPLETED"|"FAILED"|"STOP_REQUESTED"|"STOPPED"
)

Request syntax

svc$start_pii_entities_detection_job(
  InputDataConfig = list(
    S3Uri = "string",
    InputFormat = "ONE_DOC_PER_FILE"|"ONE_DOC_PER_LINE"
  ),
  OutputDataConfig = list(
    S3Uri = "string",
    KmsKeyId = "string"
  ),
  Mode = "ONLY_REDACTION"|"ONLY_OFFSETS",
  RedactionConfig = list(
    PiiEntityTypes = list(
      "BANK_ACCOUNT_NUMBER"|"BANK_ROUTING"|"CREDIT_DEBIT_NUMBER"|"CREDIT_DEBIT_CVV"|"CREDIT_DEBIT_EXPIRY"|"PIN"|"EMAIL"|"ADDRESS"|"NAME"|"PHONE"|"SSN"|"DATE_TIME"|"PASSPORT_NUMBER"|"DRIVER_ID"|"URL"|"AGE"|"USERNAME"|"PASSWORD"|"AWS_ACCESS_KEY"|"AWS_SECRET_KEY"|"IP_ADDRESS"|"MAC_ADDRESS"|"ALL"
    ),
    MaskMode = "MASK"|"REPLACE_WITH_PII_ENTITY_TYPE",
    MaskCharacter = "string"
  ),
  DataAccessRoleArn = "string",
  JobName = "string",
  LanguageCode = "en"|"es"|"fr"|"de"|"it"|"pt"|"ar"|"hi"|"ja"|"ko"|"zh"|"zh-TW",
  ClientRequestToken = "string"
)

paws.machine.learning

Amazon Web Services Machine Learning Services

v0.1.11
Apache License (>= 2.0)
Authors
David Kretch [aut, cre], Adam Banker [aut], Amazon.com, Inc. [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.