我正在使用该StartEntitiesDetectionV2JobRequest
功能启动 Comprehend Medical Job Request。在文档中它说“要获取作业的状态,请使用带有 DescribeEntitiesDetectionV2Job 操作的 this(JobId) 标识符”,但是没有称为 的操作DescribeEntitiesDetectionV2Job
,只有DescribeEntitiesDetectionV2JobRequest
和DescribeEntitiesDetectionV2JobResponse
。
我如何调用DescribeEntitiesDetectionV2JobResponse
(或任何其他函数)来获取作业的状态?
我在想这样的事情会起作用:
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);
}