start_phi_detection_job
async
¶
start_phi_detection_job(
input_data_config: InputDataConfig,
output_data_config: OutputDataConfig,
data_access_role_arn: IamRoleArn,
language_code: LanguageCode,
*,
config_overrides: Optional[AsyncComprehendMedicalClientConfig] = 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/async_comprehend_medical.py
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 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 | |