Skip to main content

phi_detection_jobs

Creates, updates, deletes, gets or lists a phi_detection_jobs resource.

Overview

Namephi_detection_jobs
TypeResource
Idaws.comprehendmedical.phi_detection_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_access_role_arnstringThe Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read access to your input data. (pattern: <code>arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+</code>)
end_timestring (date-time)The time that the detection job completed.
expiration_timestring (date-time)The date and time that job metadata is deleted from the server. Output files in your S3 bucket will not be deleted. After the metadata is deleted, the job will no longer appear in the results of the ListEntitiesDetectionV2Job or the ListPHIDetectionJobs operation.
input_data_configobjectThe input data configuration that you supplied when you created the detection job.
job_idstringThe identifier assigned to the detection job. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-%@]*)$</code>)
job_namestringThe name that you assigned to the detection job. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-%@]*)$</code>)
job_statusstringThe current status of the detection job. If the status is FAILED, the Message field shows the reason for the failure. (SUBMITTED, IN_PROGRESS, COMPLETED, PARTIAL_SUCCESS, FAILED, STOP_REQUESTED, STOPPED)
kms_keystringThe AWS Key Management Service key, if any, used to encrypt the output files. (pattern: <code>.*</code>)
language_codestringThe language code of the input documents. (en)
manifest_file_pathstringThe path to the file that describes the results of a batch job.
messagestringA description of the status of a job.
model_versionstringThe version of the model used to analyze the documents. The version number looks like X.X.X. You can use this information to track the model used for a particular batch of documents.
output_data_configobjectThe output data configuration that you supplied when you created the detection job.
submit_timestring (date-time)The time that the detection job was submitted for processing.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_phi_detection_jobselectregionGets the properties associated with a protected health information (PHI) detection job. Use this operation to get the status of a detection job.
list_phi_detection_jobsselectregionGets a list of protected health information (PHI) detection jobs you have submitted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the properties associated with a protected health information (PHI) detection job. Use this operation to get the status of a detection job.

SELECT
data_access_role_arn,
end_time,
expiration_time,
input_data_config,
job_id,
job_name,
job_status,
kms_key,
language_code,
manifest_file_path,
message,
model_version,
output_data_config,
submit_time
FROM aws.comprehendmedical.phi_detection_jobs
WHERE region = '{{ region }}' -- required
;