- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ListMedicalScribeJobsCommand
Provides a list of Medical Scribe jobs that match the specified criteria. If no criteria are specified, all Medical Scribe jobs are returned.
To get detailed information about a specific Medical Scribe job, use the operation.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { TranscribeClient, ListMedicalScribeJobsCommand } from "@aws-sdk/client-transcribe"; // ES Modules import
// const { TranscribeClient, ListMedicalScribeJobsCommand } = require("@aws-sdk/client-transcribe"); // CommonJS import
const client = new TranscribeClient(config);
const input = { // ListMedicalScribeJobsRequest
Status: "QUEUED" || "IN_PROGRESS" || "FAILED" || "COMPLETED",
JobNameContains: "STRING_VALUE",
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListMedicalScribeJobsCommand(input);
const response = await client.send(command);
// { // ListMedicalScribeJobsResponse
// Status: "QUEUED" || "IN_PROGRESS" || "FAILED" || "COMPLETED",
// NextToken: "STRING_VALUE",
// MedicalScribeJobSummaries: [ // MedicalScribeJobSummaries
// { // MedicalScribeJobSummary
// MedicalScribeJobName: "STRING_VALUE",
// CreationTime: new Date("TIMESTAMP"),
// StartTime: new Date("TIMESTAMP"),
// CompletionTime: new Date("TIMESTAMP"),
// LanguageCode: "en-US",
// MedicalScribeJobStatus: "QUEUED" || "IN_PROGRESS" || "FAILED" || "COMPLETED",
// FailureReason: "STRING_VALUE",
// },
// ],
// };
ListMedicalScribeJobsCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
JobNameContains | string | undefined | Returns only the Medical Scribe jobs that contain the specified string. The search is not case sensitive. |
MaxResults | number | undefined | The maximum number of Medical Scribe jobs to return in each page of results. If there are fewer results than the value that you specify, only the actual results are returned. If you do not specify a value, a default of 5 is used. |
NextToken | string | undefined | If your |
Status | MedicalScribeJobStatus | undefined | Returns only Medical Scribe jobs with the specified status. Jobs are ordered by creation date, with the newest job first. If you do not include |
ListMedicalScribeJobsCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
MedicalScribeJobSummaries | MedicalScribeJobSummary[] | undefined | Provides a summary of information about each result. |
NextToken | string | undefined | If |
Status | MedicalScribeJobStatus | undefined | Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation date, with the newest job first. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
BadRequestException | client | Your request didn't pass one or more validation tests. This can occur when the entity you're trying to delete doesn't exist or if it's in a non-terminal state (such as |
InternalFailureException | server | There was an internal error. Check the error message, correct the issue, and try your request again. |
LimitExceededException | client | You've either sent too many requests or your input file is too long. Wait before retrying your request, or use a smaller file and try your request again. |
TranscribeServiceException | Base exception class for all service exceptions from Transcribe service. |