|
| 1 | +// smithy-typescript generated code |
| 2 | +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; |
| 3 | +import { getSerdePlugin } from "@smithy/middleware-serde"; |
| 4 | +import { Command as $Command } from "@smithy/smithy-client"; |
| 5 | +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; |
| 6 | + |
| 7 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 8 | +import { GetMedicalScribeStreamRequest, GetMedicalScribeStreamResponse } from "../models/models_0"; |
| 9 | +import { de_GetMedicalScribeStreamCommand, se_GetMedicalScribeStreamCommand } from "../protocols/Aws_restJson1"; |
| 10 | +import { |
| 11 | + ServiceInputTypes, |
| 12 | + ServiceOutputTypes, |
| 13 | + TranscribeStreamingClientResolvedConfig, |
| 14 | +} from "../TranscribeStreamingClient"; |
| 15 | + |
| 16 | +/** |
| 17 | + * @public |
| 18 | + */ |
| 19 | +export type { __MetadataBearer }; |
| 20 | +export { $Command }; |
| 21 | +/** |
| 22 | + * @public |
| 23 | + * |
| 24 | + * The input for {@link GetMedicalScribeStreamCommand}. |
| 25 | + */ |
| 26 | +export interface GetMedicalScribeStreamCommandInput extends GetMedicalScribeStreamRequest {} |
| 27 | +/** |
| 28 | + * @public |
| 29 | + * |
| 30 | + * The output of {@link GetMedicalScribeStreamCommand}. |
| 31 | + */ |
| 32 | +export interface GetMedicalScribeStreamCommandOutput extends GetMedicalScribeStreamResponse, __MetadataBearer {} |
| 33 | + |
| 34 | +/** |
| 35 | + * <p>Provides details about the specified Amazon Web Services HealthScribe streaming session. |
| 36 | + * To view the status of the streaming session, check the <code>StreamStatus</code> field in the response. To get the |
| 37 | + * details of post-stream analytics, including its status, check the <code>PostStreamAnalyticsResult</code> field in the response. |
| 38 | + * </p> |
| 39 | + * @example |
| 40 | + * Use a bare-bones client and the command you need to make an API call. |
| 41 | + * ```javascript |
| 42 | + * import { TranscribeStreamingClient, GetMedicalScribeStreamCommand } from "@aws-sdk/client-transcribe-streaming"; // ES Modules import |
| 43 | + * // const { TranscribeStreamingClient, GetMedicalScribeStreamCommand } = require("@aws-sdk/client-transcribe-streaming"); // CommonJS import |
| 44 | + * const client = new TranscribeStreamingClient(config); |
| 45 | + * const input = { // GetMedicalScribeStreamRequest |
| 46 | + * SessionId: "STRING_VALUE", // required |
| 47 | + * }; |
| 48 | + * const command = new GetMedicalScribeStreamCommand(input); |
| 49 | + * const response = await client.send(command); |
| 50 | + * // { // GetMedicalScribeStreamResponse |
| 51 | + * // MedicalScribeStreamDetails: { // MedicalScribeStreamDetails |
| 52 | + * // SessionId: "STRING_VALUE", |
| 53 | + * // StreamCreatedAt: new Date("TIMESTAMP"), |
| 54 | + * // StreamEndedAt: new Date("TIMESTAMP"), |
| 55 | + * // LanguageCode: "en-US", |
| 56 | + * // MediaSampleRateHertz: Number("int"), |
| 57 | + * // MediaEncoding: "pcm" || "ogg-opus" || "flac", |
| 58 | + * // VocabularyName: "STRING_VALUE", |
| 59 | + * // VocabularyFilterName: "STRING_VALUE", |
| 60 | + * // VocabularyFilterMethod: "remove" || "mask" || "tag", |
| 61 | + * // ResourceAccessRoleArn: "STRING_VALUE", |
| 62 | + * // ChannelDefinitions: [ // MedicalScribeChannelDefinitions |
| 63 | + * // { // MedicalScribeChannelDefinition |
| 64 | + * // ChannelId: Number("int"), // required |
| 65 | + * // ParticipantRole: "PATIENT" || "CLINICIAN", // required |
| 66 | + * // }, |
| 67 | + * // ], |
| 68 | + * // EncryptionSettings: { // MedicalScribeEncryptionSettings |
| 69 | + * // KmsEncryptionContext: { // KMSEncryptionContextMap |
| 70 | + * // "<keys>": "STRING_VALUE", |
| 71 | + * // }, |
| 72 | + * // KmsKeyId: "STRING_VALUE", // required |
| 73 | + * // }, |
| 74 | + * // StreamStatus: "IN_PROGRESS" || "PAUSED" || "FAILED" || "COMPLETED", |
| 75 | + * // PostStreamAnalyticsSettings: { // MedicalScribePostStreamAnalyticsSettings |
| 76 | + * // ClinicalNoteGenerationSettings: { // ClinicalNoteGenerationSettings |
| 77 | + * // OutputBucketName: "STRING_VALUE", // required |
| 78 | + * // }, |
| 79 | + * // }, |
| 80 | + * // PostStreamAnalyticsResult: { // MedicalScribePostStreamAnalyticsResult |
| 81 | + * // ClinicalNoteGenerationResult: { // ClinicalNoteGenerationResult |
| 82 | + * // ClinicalNoteOutputLocation: "STRING_VALUE", |
| 83 | + * // TranscriptOutputLocation: "STRING_VALUE", |
| 84 | + * // Status: "IN_PROGRESS" || "FAILED" || "COMPLETED", |
| 85 | + * // FailureReason: "STRING_VALUE", |
| 86 | + * // }, |
| 87 | + * // }, |
| 88 | + * // }, |
| 89 | + * // }; |
| 90 | + * |
| 91 | + * ``` |
| 92 | + * |
| 93 | + * @param GetMedicalScribeStreamCommandInput - {@link GetMedicalScribeStreamCommandInput} |
| 94 | + * @returns {@link GetMedicalScribeStreamCommandOutput} |
| 95 | + * @see {@link GetMedicalScribeStreamCommandInput} for command's `input` shape. |
| 96 | + * @see {@link GetMedicalScribeStreamCommandOutput} for command's `response` shape. |
| 97 | + * @see {@link TranscribeStreamingClientResolvedConfig | config} for TranscribeStreamingClient's `config` shape. |
| 98 | + * |
| 99 | + * @throws {@link BadRequestException} (client fault) |
| 100 | + * <p>One or more arguments to the <code>StartStreamTranscription</code>, |
| 101 | + * <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code> |
| 102 | + * operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code> |
| 103 | + * used unsupported values. Check the specified parameters and try your request again.</p> |
| 104 | + * |
| 105 | + * @throws {@link InternalFailureException} (server fault) |
| 106 | + * <p>A problem occurred while processing the audio. Amazon Transcribe terminated |
| 107 | + * processing.</p> |
| 108 | + * |
| 109 | + * @throws {@link LimitExceededException} (client fault) |
| 110 | + * <p>Your client has exceeded one of the Amazon Transcribe limits. This is typically the audio length |
| 111 | + * limit. Break your audio stream into smaller chunks and try your request again.</p> |
| 112 | + * |
| 113 | + * @throws {@link ResourceNotFoundException} (client fault) |
| 114 | + * <p>The request references a resource which doesn't exist.</p> |
| 115 | + * |
| 116 | + * @throws {@link TranscribeStreamingServiceException} |
| 117 | + * <p>Base exception class for all service exceptions from TranscribeStreaming service.</p> |
| 118 | + * |
| 119 | + * @public |
| 120 | + */ |
| 121 | +export class GetMedicalScribeStreamCommand extends $Command |
| 122 | + .classBuilder< |
| 123 | + GetMedicalScribeStreamCommandInput, |
| 124 | + GetMedicalScribeStreamCommandOutput, |
| 125 | + TranscribeStreamingClientResolvedConfig, |
| 126 | + ServiceInputTypes, |
| 127 | + ServiceOutputTypes |
| 128 | + >() |
| 129 | + .ep(commonParams) |
| 130 | + .m(function (this: any, Command: any, cs: any, config: TranscribeStreamingClientResolvedConfig, o: any) { |
| 131 | + return [ |
| 132 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 133 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 134 | + ]; |
| 135 | + }) |
| 136 | + .s("Transcribe", "GetMedicalScribeStream", {}) |
| 137 | + .n("TranscribeStreamingClient", "GetMedicalScribeStreamCommand") |
| 138 | + .f(void 0, void 0) |
| 139 | + .ser(se_GetMedicalScribeStreamCommand) |
| 140 | + .de(de_GetMedicalScribeStreamCommand) |
| 141 | + .build() { |
| 142 | + /** @internal type navigation helper, not in runtime. */ |
| 143 | + protected declare static __types: { |
| 144 | + api: { |
| 145 | + input: GetMedicalScribeStreamRequest; |
| 146 | + output: GetMedicalScribeStreamResponse; |
| 147 | + }; |
| 148 | + sdk: { |
| 149 | + input: GetMedicalScribeStreamCommandInput; |
| 150 | + output: GetMedicalScribeStreamCommandOutput; |
| 151 | + }; |
| 152 | + }; |
| 153 | +} |
0 commit comments