start_pii_entities_detection_job
¶
start_pii_entities_detection_job(
input_data_config: InputDataConfig,
output_data_config: OutputDataConfig,
mode: PiiEntitiesDetectionMode,
data_access_role_arn: IamRoleArn,
language_code: LanguageCode,
*,
config_overrides: Optional[ComprehendClientConfig] = None,
redaction_config: Optional[RedactionConfig] = None,
job_name: Optional[JobName] = None,
client_request_token: Optional[ClientRequestTokenString] = None,
tags: Optional[TagList] = None,
) -> StartPiiEntitiesDetectionJobResponse
Starts an asynchronous PII entity detection job for a collection of documents.
Parameters:
-
input_data_config(InputDataConfig) –The input properties for a PII entities detection job.
-
output_data_config(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.
-
redaction_config(Optional[RedactionConfig], default:None) –Provides configuration parameters for PII entity redaction.
This parameter is required if you set the
Modeparameter toONLY_REDACTION. In that case, you must provide aRedactionConfigdefinition that includes thePiiEntityTypesparameter. -
data_access_role_arn(IamRoleArn) –The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
-
job_name(Optional[JobName], default:None) –The identifier of the job.
-
language_code(LanguageCode) –The language of the input documents. Enter the language code for English (en) or Spanish (es).
-
client_request_token(Optional[ClientRequestTokenString], default:None) –A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
-
tags(Optional[TagList], default:None) –Tags to associate 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.
Raises:
-
InternalServerException–An internal server error occurred. Retry your request.
-
InvalidRequestException–The request is invalid.
-
KmsKeyValidationException–The KMS customer managed key (CMK) entered cannot be validated. Verify the key and re-enter it.
-
ResourceInUseException–The specified resource name is already in use. Use a different name and try your request again.
-
TooManyRequestsException–The number of requests exceeds the limit. Resubmit your request later.
-
TooManyTagsException–The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_comprehend/_services/comprehend.py
4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 | |