start_entities_detection_v2_job
¶
start_entities_detection_v2_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,
) -> StartEntitiesDetectionV2JobResponse
Starts an asynchronous medical entity detection job for a collection of documents. Use the DescribeEntitiesDetectionV2Job operation to track the status of a job.
Parameters:
-
input_data_config(InputDataConfig) –The input configuration that specifies the format and location of the input data for the job.
-
output_data_config(OutputDataConfig) –The output configuration that 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 for you.
-
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. Amazon Comprehend Medical processes files in US English (en).
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
1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 | |