start_phi_detection_job
¶
start_phi_detection_job(
input_data_config: InputDataConfig,
output_data_config: OutputDataConfig,
data_access_role_arn: IamRoleArn,
language_code: LanguageCode,
*,
config_overrides: Optional[ComprehendMedicalClientConfig] = None,
job_name: Optional[JobName] = None,
client_request_token: Optional[ClientRequestTokenString] = None,
kms_key: Optional[KMSKey] = None,
) -> StartPHIDetectionJobResponse
Starts an asynchronous job to detect protected health information (PHI). Use the DescribePHIDetectionJob operation to track the status of a job.
Parameters:
-
input_data_config(InputDataConfig) –Specifies the format and location of the input data for the job.
-
output_data_config(OutputDataConfig) –Specifies where to send the output files.
-
data_access_role_arn(IamRoleArn) –The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations.
-
job_name(Optional[JobName], default:None) –The identifier of the job.
-
client_request_token(Optional[ClientRequestTokenString], default:None) –A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical generates one.
-
kms_key(Optional[KMSKey], default:None) –An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are written in plain text.
-
language_code(LanguageCode) –The language of the input documents. All documents must be in the same language.
Raises:
-
InternalServerException–An internal server error occurred. Retry your request.
-
InvalidRequestException–The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.
-
ResourceNotFoundException–The resource identified by the specified Amazon Resource Name (ARN) was not found. Check the ARN and try your request again.
-
TooManyRequestsException–You have made too many requests within a short period of time. Wait for a short time and then try your request again. Contact customer support for more information about a service limit increase.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_comprehendmedical/_services/comprehend_medical.py
1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 | |