I am starting a Comprehend Medical Job Request using the StartEntitiesDetectionV2JobRequest
function.
In the documentation it says "To get the status of a job, use this(JobId) identifier with the DescribeEntitiesDetectionV2Job operation", however there is no operation called DescribeEntitiesDetectionV2Job
, only DescribeEntitiesDetectionV2JobRequest
and DescribeEntitiesDetectionV2JobResponse
.
How can I call DescribeEntitiesDetectionV2JobResponse
(or any other function) to get the status of the job?
I was thinking something like this would work:
ComprehendMedicalAsyncJobProperties jobProperties = new ComprehendMedicalAsyncJobProperties()
{
DataAccessRoleArn = "arn:aws:iam::1129587198257:role/role_name",
InputDataConfig = input,
OutputDataConfig = output
};
DescribeEntitiesDetectionV2JobResponse requestResponse = new DescribeEntitiesDetectionV2JobResponse()
{
ComprehendMedicalAsyncJobProperties = jobProperties
};
while(requestResponse.HttpStatusCode!=(*something that would indicate that the job is completed here*))
{
Thread.Sleep(500);
}