aws-sdk-transcribestreamingservice 1.73.0 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +263 -1
- data/lib/aws-sdk-transcribestreamingservice/client.rb +55 -1
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +189 -0
- data/lib/aws-sdk-transcribestreamingservice/endpoint_provider.rb +13 -17
- data/lib/aws-sdk-transcribestreamingservice/errors.rb +16 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +231 -6
- data/lib/aws-sdk-transcribestreamingservice/types.rb +797 -2
- data/lib/aws-sdk-transcribestreamingservice.rb +2 -2
- data/sig/client.rbs +29 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +147 -0
- metadata +2 -2
@@ -21,6 +21,7 @@ module Aws::TranscribeStreamingService
|
|
21
21
|
AudioStream = Shapes::StructureShape.new(name: 'AudioStream')
|
22
22
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
23
23
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
24
|
+
BucketName = Shapes::StringShape.new(name: 'BucketName')
|
24
25
|
CallAnalyticsEntity = Shapes::StructureShape.new(name: 'CallAnalyticsEntity')
|
25
26
|
CallAnalyticsEntityList = Shapes::ListShape.new(name: 'CallAnalyticsEntityList')
|
26
27
|
CallAnalyticsItem = Shapes::StructureShape.new(name: 'CallAnalyticsItem')
|
@@ -32,15 +33,22 @@ module Aws::TranscribeStreamingService
|
|
32
33
|
ChannelDefinitions = Shapes::ListShape.new(name: 'ChannelDefinitions')
|
33
34
|
ChannelId = Shapes::IntegerShape.new(name: 'ChannelId')
|
34
35
|
CharacterOffsets = Shapes::StructureShape.new(name: 'CharacterOffsets')
|
36
|
+
ClinicalNoteGenerationResult = Shapes::StructureShape.new(name: 'ClinicalNoteGenerationResult')
|
37
|
+
ClinicalNoteGenerationSettings = Shapes::StructureShape.new(name: 'ClinicalNoteGenerationSettings')
|
38
|
+
ClinicalNoteGenerationStatus = Shapes::StringShape.new(name: 'ClinicalNoteGenerationStatus')
|
35
39
|
Confidence = Shapes::FloatShape.new(name: 'Confidence')
|
36
40
|
ConfigurationEvent = Shapes::StructureShape.new(name: 'ConfigurationEvent')
|
37
41
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
38
42
|
ContentIdentificationType = Shapes::StringShape.new(name: 'ContentIdentificationType')
|
39
43
|
ContentRedactionOutput = Shapes::StringShape.new(name: 'ContentRedactionOutput')
|
40
44
|
ContentRedactionType = Shapes::StringShape.new(name: 'ContentRedactionType')
|
45
|
+
DateTime = Shapes::TimestampShape.new(name: 'DateTime')
|
41
46
|
Double = Shapes::FloatShape.new(name: 'Double')
|
42
47
|
Entity = Shapes::StructureShape.new(name: 'Entity')
|
43
48
|
EntityList = Shapes::ListShape.new(name: 'EntityList')
|
49
|
+
GetMedicalScribeStreamRequest = Shapes::StructureShape.new(name: 'GetMedicalScribeStreamRequest')
|
50
|
+
GetMedicalScribeStreamResponse = Shapes::StructureShape.new(name: 'GetMedicalScribeStreamResponse')
|
51
|
+
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
44
52
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
45
53
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
46
54
|
IssueDetected = Shapes::StructureShape.new(name: 'IssueDetected')
|
@@ -48,6 +56,8 @@ module Aws::TranscribeStreamingService
|
|
48
56
|
Item = Shapes::StructureShape.new(name: 'Item')
|
49
57
|
ItemList = Shapes::ListShape.new(name: 'ItemList')
|
50
58
|
ItemType = Shapes::StringShape.new(name: 'ItemType')
|
59
|
+
KMSEncryptionContextMap = Shapes::MapShape.new(name: 'KMSEncryptionContextMap')
|
60
|
+
KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
|
51
61
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
52
62
|
LanguageIdentification = Shapes::ListShape.new(name: 'LanguageIdentification')
|
53
63
|
LanguageOptions = Shapes::StringShape.new(name: 'LanguageOptions')
|
@@ -66,10 +76,36 @@ module Aws::TranscribeStreamingService
|
|
66
76
|
MedicalItemList = Shapes::ListShape.new(name: 'MedicalItemList')
|
67
77
|
MedicalResult = Shapes::StructureShape.new(name: 'MedicalResult')
|
68
78
|
MedicalResultList = Shapes::ListShape.new(name: 'MedicalResultList')
|
79
|
+
MedicalScribeAudioEvent = Shapes::StructureShape.new(name: 'MedicalScribeAudioEvent')
|
80
|
+
MedicalScribeChannelDefinition = Shapes::StructureShape.new(name: 'MedicalScribeChannelDefinition')
|
81
|
+
MedicalScribeChannelDefinitions = Shapes::ListShape.new(name: 'MedicalScribeChannelDefinitions')
|
82
|
+
MedicalScribeChannelId = Shapes::IntegerShape.new(name: 'MedicalScribeChannelId')
|
83
|
+
MedicalScribeConfigurationEvent = Shapes::StructureShape.new(name: 'MedicalScribeConfigurationEvent')
|
84
|
+
MedicalScribeEncryptionSettings = Shapes::StructureShape.new(name: 'MedicalScribeEncryptionSettings')
|
85
|
+
MedicalScribeInputStream = Shapes::StructureShape.new(name: 'MedicalScribeInputStream')
|
86
|
+
MedicalScribeLanguageCode = Shapes::StringShape.new(name: 'MedicalScribeLanguageCode')
|
87
|
+
MedicalScribeMediaEncoding = Shapes::StringShape.new(name: 'MedicalScribeMediaEncoding')
|
88
|
+
MedicalScribeMediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MedicalScribeMediaSampleRateHertz')
|
89
|
+
MedicalScribeParticipantRole = Shapes::StringShape.new(name: 'MedicalScribeParticipantRole')
|
90
|
+
MedicalScribePostStreamAnalyticsResult = Shapes::StructureShape.new(name: 'MedicalScribePostStreamAnalyticsResult')
|
91
|
+
MedicalScribePostStreamAnalyticsSettings = Shapes::StructureShape.new(name: 'MedicalScribePostStreamAnalyticsSettings')
|
92
|
+
MedicalScribeResultStream = Shapes::StructureShape.new(name: 'MedicalScribeResultStream')
|
93
|
+
MedicalScribeSessionControlEvent = Shapes::StructureShape.new(name: 'MedicalScribeSessionControlEvent')
|
94
|
+
MedicalScribeSessionControlEventType = Shapes::StringShape.new(name: 'MedicalScribeSessionControlEventType')
|
95
|
+
MedicalScribeStreamDetails = Shapes::StructureShape.new(name: 'MedicalScribeStreamDetails')
|
96
|
+
MedicalScribeStreamStatus = Shapes::StringShape.new(name: 'MedicalScribeStreamStatus')
|
97
|
+
MedicalScribeTranscriptEvent = Shapes::StructureShape.new(name: 'MedicalScribeTranscriptEvent')
|
98
|
+
MedicalScribeTranscriptItem = Shapes::StructureShape.new(name: 'MedicalScribeTranscriptItem')
|
99
|
+
MedicalScribeTranscriptItemList = Shapes::ListShape.new(name: 'MedicalScribeTranscriptItemList')
|
100
|
+
MedicalScribeTranscriptItemType = Shapes::StringShape.new(name: 'MedicalScribeTranscriptItemType')
|
101
|
+
MedicalScribeTranscriptSegment = Shapes::StructureShape.new(name: 'MedicalScribeTranscriptSegment')
|
102
|
+
MedicalScribeVocabularyFilterMethod = Shapes::StringShape.new(name: 'MedicalScribeVocabularyFilterMethod')
|
69
103
|
MedicalTranscript = Shapes::StructureShape.new(name: 'MedicalTranscript')
|
70
104
|
MedicalTranscriptEvent = Shapes::StructureShape.new(name: 'MedicalTranscriptEvent')
|
71
105
|
MedicalTranscriptResultStream = Shapes::StructureShape.new(name: 'MedicalTranscriptResultStream')
|
72
106
|
ModelName = Shapes::StringShape.new(name: 'ModelName')
|
107
|
+
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
108
|
+
NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
|
73
109
|
NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
|
74
110
|
PartialResultsStability = Shapes::StringShape.new(name: 'PartialResultsStability')
|
75
111
|
ParticipantRole = Shapes::StringShape.new(name: 'ParticipantRole')
|
@@ -77,6 +113,7 @@ module Aws::TranscribeStreamingService
|
|
77
113
|
PointsOfInterest = Shapes::StructureShape.new(name: 'PointsOfInterest')
|
78
114
|
PostCallAnalyticsSettings = Shapes::StructureShape.new(name: 'PostCallAnalyticsSettings')
|
79
115
|
RequestId = Shapes::StringShape.new(name: 'RequestId')
|
116
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
80
117
|
Result = Shapes::StructureShape.new(name: 'Result')
|
81
118
|
ResultList = Shapes::ListShape.new(name: 'ResultList')
|
82
119
|
Sentiment = Shapes::StringShape.new(name: 'Sentiment')
|
@@ -86,6 +123,8 @@ module Aws::TranscribeStreamingService
|
|
86
123
|
Stable = Shapes::BooleanShape.new(name: 'Stable')
|
87
124
|
StartCallAnalyticsStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartCallAnalyticsStreamTranscriptionRequest')
|
88
125
|
StartCallAnalyticsStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartCallAnalyticsStreamTranscriptionResponse')
|
126
|
+
StartMedicalScribeStreamRequest = Shapes::StructureShape.new(name: 'StartMedicalScribeStreamRequest')
|
127
|
+
StartMedicalScribeStreamResponse = Shapes::StructureShape.new(name: 'StartMedicalScribeStreamResponse')
|
89
128
|
StartMedicalStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionRequest')
|
90
129
|
StartMedicalStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionResponse')
|
91
130
|
StartStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartStreamTranscriptionRequest')
|
@@ -98,6 +137,7 @@ module Aws::TranscribeStreamingService
|
|
98
137
|
TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
|
99
138
|
TranscriptResultStream = Shapes::StructureShape.new(name: 'TranscriptResultStream')
|
100
139
|
Type = Shapes::StringShape.new(name: 'Type')
|
140
|
+
Uri = Shapes::StringShape.new(name: 'Uri')
|
101
141
|
UtteranceEvent = Shapes::StructureShape.new(name: 'UtteranceEvent')
|
102
142
|
VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
|
103
143
|
VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
|
@@ -166,6 +206,15 @@ module Aws::TranscribeStreamingService
|
|
166
206
|
CharacterOffsets.add_member(:end, Shapes::ShapeRef.new(shape: Integer, location_name: "End"))
|
167
207
|
CharacterOffsets.struct_class = Types::CharacterOffsets
|
168
208
|
|
209
|
+
ClinicalNoteGenerationResult.add_member(:clinical_note_output_location, Shapes::ShapeRef.new(shape: Uri, location_name: "ClinicalNoteOutputLocation"))
|
210
|
+
ClinicalNoteGenerationResult.add_member(:transcript_output_location, Shapes::ShapeRef.new(shape: Uri, location_name: "TranscriptOutputLocation"))
|
211
|
+
ClinicalNoteGenerationResult.add_member(:status, Shapes::ShapeRef.new(shape: ClinicalNoteGenerationStatus, location_name: "Status"))
|
212
|
+
ClinicalNoteGenerationResult.add_member(:failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "FailureReason"))
|
213
|
+
ClinicalNoteGenerationResult.struct_class = Types::ClinicalNoteGenerationResult
|
214
|
+
|
215
|
+
ClinicalNoteGenerationSettings.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "OutputBucketName"))
|
216
|
+
ClinicalNoteGenerationSettings.struct_class = Types::ClinicalNoteGenerationSettings
|
217
|
+
|
169
218
|
ConfigurationEvent.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: ChannelDefinitions, location_name: "ChannelDefinitions"))
|
170
219
|
ConfigurationEvent.add_member(:post_call_analytics_settings, Shapes::ShapeRef.new(shape: PostCallAnalyticsSettings, location_name: "PostCallAnalyticsSettings"))
|
171
220
|
ConfigurationEvent.struct_class = Types::ConfigurationEvent
|
@@ -183,6 +232,12 @@ module Aws::TranscribeStreamingService
|
|
183
232
|
|
184
233
|
EntityList.member = Shapes::ShapeRef.new(shape: Entity)
|
185
234
|
|
235
|
+
GetMedicalScribeStreamRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "SessionId"))
|
236
|
+
GetMedicalScribeStreamRequest.struct_class = Types::GetMedicalScribeStreamRequest
|
237
|
+
|
238
|
+
GetMedicalScribeStreamResponse.add_member(:medical_scribe_stream_details, Shapes::ShapeRef.new(shape: MedicalScribeStreamDetails, location_name: "MedicalScribeStreamDetails"))
|
239
|
+
GetMedicalScribeStreamResponse.struct_class = Types::GetMedicalScribeStreamResponse
|
240
|
+
|
186
241
|
InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
187
242
|
InternalFailureException.struct_class = Types::InternalFailureException
|
188
243
|
|
@@ -203,6 +258,9 @@ module Aws::TranscribeStreamingService
|
|
203
258
|
|
204
259
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
205
260
|
|
261
|
+
KMSEncryptionContextMap.key = Shapes::ShapeRef.new(shape: NonEmptyString)
|
262
|
+
KMSEncryptionContextMap.value = Shapes::ShapeRef.new(shape: NonEmptyString)
|
263
|
+
|
206
264
|
LanguageIdentification.member = Shapes::ShapeRef.new(shape: LanguageWithScore)
|
207
265
|
|
208
266
|
LanguageWithScore.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
@@ -251,6 +309,89 @@ module Aws::TranscribeStreamingService
|
|
251
309
|
|
252
310
|
MedicalResultList.member = Shapes::ShapeRef.new(shape: MedicalResult)
|
253
311
|
|
312
|
+
MedicalScribeAudioEvent.add_member(:audio_chunk, Shapes::ShapeRef.new(shape: AudioChunk, required: true, eventpayload: true, eventpayload_type: 'blob', location_name: "AudioChunk", metadata: {"eventpayload"=>true}))
|
313
|
+
MedicalScribeAudioEvent.struct_class = Types::MedicalScribeAudioEvent
|
314
|
+
|
315
|
+
MedicalScribeChannelDefinition.add_member(:channel_id, Shapes::ShapeRef.new(shape: MedicalScribeChannelId, required: true, location_name: "ChannelId"))
|
316
|
+
MedicalScribeChannelDefinition.add_member(:participant_role, Shapes::ShapeRef.new(shape: MedicalScribeParticipantRole, required: true, location_name: "ParticipantRole"))
|
317
|
+
MedicalScribeChannelDefinition.struct_class = Types::MedicalScribeChannelDefinition
|
318
|
+
|
319
|
+
MedicalScribeChannelDefinitions.member = Shapes::ShapeRef.new(shape: MedicalScribeChannelDefinition)
|
320
|
+
|
321
|
+
MedicalScribeConfigurationEvent.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
322
|
+
MedicalScribeConfigurationEvent.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
323
|
+
MedicalScribeConfigurationEvent.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: MedicalScribeVocabularyFilterMethod, location_name: "VocabularyFilterMethod"))
|
324
|
+
MedicalScribeConfigurationEvent.add_member(:resource_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "ResourceAccessRoleArn"))
|
325
|
+
MedicalScribeConfigurationEvent.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: MedicalScribeChannelDefinitions, location_name: "ChannelDefinitions"))
|
326
|
+
MedicalScribeConfigurationEvent.add_member(:encryption_settings, Shapes::ShapeRef.new(shape: MedicalScribeEncryptionSettings, location_name: "EncryptionSettings"))
|
327
|
+
MedicalScribeConfigurationEvent.add_member(:post_stream_analytics_settings, Shapes::ShapeRef.new(shape: MedicalScribePostStreamAnalyticsSettings, required: true, location_name: "PostStreamAnalyticsSettings"))
|
328
|
+
MedicalScribeConfigurationEvent.struct_class = Types::MedicalScribeConfigurationEvent
|
329
|
+
|
330
|
+
MedicalScribeEncryptionSettings.add_member(:kms_encryption_context, Shapes::ShapeRef.new(shape: KMSEncryptionContextMap, location_name: "KmsEncryptionContext"))
|
331
|
+
MedicalScribeEncryptionSettings.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, required: true, location_name: "KmsKeyId"))
|
332
|
+
MedicalScribeEncryptionSettings.struct_class = Types::MedicalScribeEncryptionSettings
|
333
|
+
|
334
|
+
MedicalScribeInputStream.add_member(:audio_event, Shapes::ShapeRef.new(shape: MedicalScribeAudioEvent, event: true, location_name: "AudioEvent"))
|
335
|
+
MedicalScribeInputStream.add_member(:session_control_event, Shapes::ShapeRef.new(shape: MedicalScribeSessionControlEvent, event: true, location_name: "SessionControlEvent"))
|
336
|
+
MedicalScribeInputStream.add_member(:configuration_event, Shapes::ShapeRef.new(shape: MedicalScribeConfigurationEvent, event: true, location_name: "ConfigurationEvent"))
|
337
|
+
MedicalScribeInputStream.struct_class = Types::MedicalScribeInputStream
|
338
|
+
|
339
|
+
MedicalScribePostStreamAnalyticsResult.add_member(:clinical_note_generation_result, Shapes::ShapeRef.new(shape: ClinicalNoteGenerationResult, location_name: "ClinicalNoteGenerationResult"))
|
340
|
+
MedicalScribePostStreamAnalyticsResult.struct_class = Types::MedicalScribePostStreamAnalyticsResult
|
341
|
+
|
342
|
+
MedicalScribePostStreamAnalyticsSettings.add_member(:clinical_note_generation_settings, Shapes::ShapeRef.new(shape: ClinicalNoteGenerationSettings, required: true, location_name: "ClinicalNoteGenerationSettings"))
|
343
|
+
MedicalScribePostStreamAnalyticsSettings.struct_class = Types::MedicalScribePostStreamAnalyticsSettings
|
344
|
+
|
345
|
+
MedicalScribeResultStream.add_member(:transcript_event, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptEvent, event: true, location_name: "TranscriptEvent"))
|
346
|
+
MedicalScribeResultStream.add_member(:bad_request_exception, Shapes::ShapeRef.new(shape: BadRequestException, event: true, location_name: "BadRequestException"))
|
347
|
+
MedicalScribeResultStream.add_member(:limit_exceeded_exception, Shapes::ShapeRef.new(shape: LimitExceededException, event: true, location_name: "LimitExceededException"))
|
348
|
+
MedicalScribeResultStream.add_member(:internal_failure_exception, Shapes::ShapeRef.new(shape: InternalFailureException, event: true, location_name: "InternalFailureException"))
|
349
|
+
MedicalScribeResultStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, event: true, location_name: "ConflictException"))
|
350
|
+
MedicalScribeResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
|
351
|
+
MedicalScribeResultStream.struct_class = Types::MedicalScribeResultStream
|
352
|
+
|
353
|
+
MedicalScribeSessionControlEvent.add_member(:type, Shapes::ShapeRef.new(shape: MedicalScribeSessionControlEventType, required: true, location_name: "Type"))
|
354
|
+
MedicalScribeSessionControlEvent.struct_class = Types::MedicalScribeSessionControlEvent
|
355
|
+
|
356
|
+
MedicalScribeStreamDetails.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "SessionId"))
|
357
|
+
MedicalScribeStreamDetails.add_member(:stream_created_at, Shapes::ShapeRef.new(shape: DateTime, location_name: "StreamCreatedAt"))
|
358
|
+
MedicalScribeStreamDetails.add_member(:stream_ended_at, Shapes::ShapeRef.new(shape: DateTime, location_name: "StreamEndedAt"))
|
359
|
+
MedicalScribeStreamDetails.add_member(:language_code, Shapes::ShapeRef.new(shape: MedicalScribeLanguageCode, location_name: "LanguageCode"))
|
360
|
+
MedicalScribeStreamDetails.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MedicalScribeMediaSampleRateHertz, location_name: "MediaSampleRateHertz"))
|
361
|
+
MedicalScribeStreamDetails.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MedicalScribeMediaEncoding, location_name: "MediaEncoding"))
|
362
|
+
MedicalScribeStreamDetails.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
363
|
+
MedicalScribeStreamDetails.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
364
|
+
MedicalScribeStreamDetails.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: MedicalScribeVocabularyFilterMethod, location_name: "VocabularyFilterMethod"))
|
365
|
+
MedicalScribeStreamDetails.add_member(:resource_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "ResourceAccessRoleArn"))
|
366
|
+
MedicalScribeStreamDetails.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: MedicalScribeChannelDefinitions, location_name: "ChannelDefinitions"))
|
367
|
+
MedicalScribeStreamDetails.add_member(:encryption_settings, Shapes::ShapeRef.new(shape: MedicalScribeEncryptionSettings, location_name: "EncryptionSettings"))
|
368
|
+
MedicalScribeStreamDetails.add_member(:stream_status, Shapes::ShapeRef.new(shape: MedicalScribeStreamStatus, location_name: "StreamStatus"))
|
369
|
+
MedicalScribeStreamDetails.add_member(:post_stream_analytics_settings, Shapes::ShapeRef.new(shape: MedicalScribePostStreamAnalyticsSettings, location_name: "PostStreamAnalyticsSettings"))
|
370
|
+
MedicalScribeStreamDetails.add_member(:post_stream_analytics_result, Shapes::ShapeRef.new(shape: MedicalScribePostStreamAnalyticsResult, location_name: "PostStreamAnalyticsResult"))
|
371
|
+
MedicalScribeStreamDetails.struct_class = Types::MedicalScribeStreamDetails
|
372
|
+
|
373
|
+
MedicalScribeTranscriptEvent.add_member(:transcript_segment, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptSegment, location_name: "TranscriptSegment"))
|
374
|
+
MedicalScribeTranscriptEvent.struct_class = Types::MedicalScribeTranscriptEvent
|
375
|
+
|
376
|
+
MedicalScribeTranscriptItem.add_member(:begin_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "BeginAudioTime"))
|
377
|
+
MedicalScribeTranscriptItem.add_member(:end_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndAudioTime"))
|
378
|
+
MedicalScribeTranscriptItem.add_member(:type, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptItemType, location_name: "Type"))
|
379
|
+
MedicalScribeTranscriptItem.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
|
380
|
+
MedicalScribeTranscriptItem.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
381
|
+
MedicalScribeTranscriptItem.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "VocabularyFilterMatch"))
|
382
|
+
MedicalScribeTranscriptItem.struct_class = Types::MedicalScribeTranscriptItem
|
383
|
+
|
384
|
+
MedicalScribeTranscriptItemList.member = Shapes::ShapeRef.new(shape: MedicalScribeTranscriptItem)
|
385
|
+
|
386
|
+
MedicalScribeTranscriptSegment.add_member(:segment_id, Shapes::ShapeRef.new(shape: String, location_name: "SegmentId"))
|
387
|
+
MedicalScribeTranscriptSegment.add_member(:begin_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "BeginAudioTime"))
|
388
|
+
MedicalScribeTranscriptSegment.add_member(:end_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndAudioTime"))
|
389
|
+
MedicalScribeTranscriptSegment.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
390
|
+
MedicalScribeTranscriptSegment.add_member(:items, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptItemList, location_name: "Items"))
|
391
|
+
MedicalScribeTranscriptSegment.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
|
392
|
+
MedicalScribeTranscriptSegment.add_member(:channel_id, Shapes::ShapeRef.new(shape: String, location_name: "ChannelId"))
|
393
|
+
MedicalScribeTranscriptSegment.struct_class = Types::MedicalScribeTranscriptSegment
|
394
|
+
|
254
395
|
MedicalTranscript.add_member(:results, Shapes::ShapeRef.new(shape: MedicalResultList, location_name: "Results"))
|
255
396
|
MedicalTranscript.struct_class = Types::MedicalTranscript
|
256
397
|
|
@@ -274,6 +415,9 @@ module Aws::TranscribeStreamingService
|
|
274
415
|
PostCallAnalyticsSettings.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "OutputEncryptionKMSKeyId"))
|
275
416
|
PostCallAnalyticsSettings.struct_class = Types::PostCallAnalyticsSettings
|
276
417
|
|
418
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
419
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
420
|
+
|
277
421
|
Result.add_member(:result_id, Shapes::ShapeRef.new(shape: String, location_name: "ResultId"))
|
278
422
|
Result.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
|
279
423
|
Result.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
@@ -326,6 +470,25 @@ module Aws::TranscribeStreamingService
|
|
326
470
|
StartCallAnalyticsStreamTranscriptionResponse[:payload] = :call_analytics_transcript_result_stream
|
327
471
|
StartCallAnalyticsStreamTranscriptionResponse[:payload_member] = StartCallAnalyticsStreamTranscriptionResponse.member(:call_analytics_transcript_result_stream)
|
328
472
|
|
473
|
+
StartMedicalScribeStreamRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
474
|
+
StartMedicalScribeStreamRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: MedicalScribeLanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
475
|
+
StartMedicalScribeStreamRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MedicalScribeMediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
476
|
+
StartMedicalScribeStreamRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MedicalScribeMediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
477
|
+
StartMedicalScribeStreamRequest.add_member(:input_stream, Shapes::ShapeRef.new(shape: MedicalScribeInputStream, required: true, eventstream: true, location_name: "InputStream"))
|
478
|
+
StartMedicalScribeStreamRequest.struct_class = Types::StartMedicalScribeStreamRequest
|
479
|
+
StartMedicalScribeStreamRequest[:payload] = :input_stream
|
480
|
+
StartMedicalScribeStreamRequest[:payload_member] = StartMedicalScribeStreamRequest.member(:input_stream)
|
481
|
+
|
482
|
+
StartMedicalScribeStreamResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
483
|
+
StartMedicalScribeStreamResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location: "header", location_name: "x-amzn-request-id"))
|
484
|
+
StartMedicalScribeStreamResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: MedicalScribeLanguageCode, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
485
|
+
StartMedicalScribeStreamResponse.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MedicalScribeMediaSampleRateHertz, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
486
|
+
StartMedicalScribeStreamResponse.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MedicalScribeMediaEncoding, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
487
|
+
StartMedicalScribeStreamResponse.add_member(:result_stream, Shapes::ShapeRef.new(shape: MedicalScribeResultStream, eventstream: true, location_name: "ResultStream"))
|
488
|
+
StartMedicalScribeStreamResponse.struct_class = Types::StartMedicalScribeStreamResponse
|
489
|
+
StartMedicalScribeStreamResponse[:payload] = :result_stream
|
490
|
+
StartMedicalScribeStreamResponse[:payload_member] = StartMedicalScribeStreamResponse.member(:result_stream)
|
491
|
+
|
329
492
|
StartMedicalStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
330
493
|
StartMedicalStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
331
494
|
StartMedicalStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
@@ -468,6 +631,18 @@ module Aws::TranscribeStreamingService
|
|
468
631
|
"uid" => "transcribe-streaming-2017-10-26",
|
469
632
|
}
|
470
633
|
|
634
|
+
api.add_operation(:get_medical_scribe_stream, Seahorse::Model::Operation.new.tap do |o|
|
635
|
+
o.name = "GetMedicalScribeStream"
|
636
|
+
o.http_method = "GET"
|
637
|
+
o.http_request_uri = "/medical-scribe-stream/{SessionId}"
|
638
|
+
o.input = Shapes::ShapeRef.new(shape: GetMedicalScribeStreamRequest)
|
639
|
+
o.output = Shapes::ShapeRef.new(shape: GetMedicalScribeStreamResponse)
|
640
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
641
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
642
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
643
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
644
|
+
end)
|
645
|
+
|
471
646
|
api.add_operation(:start_call_analytics_stream_transcription, Seahorse::Model::Operation.new.tap do |o|
|
472
647
|
o.name = "StartCallAnalyticsStreamTranscription"
|
473
648
|
o.http_method = "POST"
|
@@ -482,6 +657,20 @@ module Aws::TranscribeStreamingService
|
|
482
657
|
o.async = true
|
483
658
|
end)
|
484
659
|
|
660
|
+
api.add_operation(:start_medical_scribe_stream, Seahorse::Model::Operation.new.tap do |o|
|
661
|
+
o.name = "StartMedicalScribeStream"
|
662
|
+
o.http_method = "POST"
|
663
|
+
o.http_request_uri = "/medical-scribe-stream"
|
664
|
+
o.input = Shapes::ShapeRef.new(shape: StartMedicalScribeStreamRequest)
|
665
|
+
o.output = Shapes::ShapeRef.new(shape: StartMedicalScribeStreamResponse)
|
666
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
667
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
668
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
669
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
670
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
671
|
+
o.async = true
|
672
|
+
end)
|
673
|
+
|
485
674
|
api.add_operation(:start_medical_stream_transcription, Seahorse::Model::Operation.new.tap do |o|
|
486
675
|
o.name = "StartMedicalStreamTranscription"
|
487
676
|
o.http_method = "POST"
|
@@ -10,40 +10,36 @@
|
|
10
10
|
module Aws::TranscribeStreamingService
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
15
|
-
use_fips = parameters.use_fips
|
16
|
-
endpoint = parameters.endpoint
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
16
|
end
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
19
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
25
21
|
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
27
|
end
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
29
|
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
35
31
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
33
|
end
|
38
34
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
35
|
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
41
37
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
39
|
end
|
44
40
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
41
|
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
43
|
end
|
48
44
|
end
|
49
45
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -27,6 +27,7 @@ module Aws::TranscribeStreamingService
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {ResourceNotFoundException}
|
30
31
|
#
|
31
32
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
32
33
|
# if they are not defined above.
|
@@ -34,5 +35,20 @@ module Aws::TranscribeStreamingService
|
|
34
35
|
|
35
36
|
extend Aws::Errors::DynamicErrors
|
36
37
|
|
38
|
+
class ResourceNotFoundException < ServiceError
|
39
|
+
|
40
|
+
# @param [Seahorse::Client::RequestContext] context
|
41
|
+
# @param [String] message
|
42
|
+
# @param [Aws::TranscribeStreamingService::Types::ResourceNotFoundException] data
|
43
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
44
|
+
super(context, message, data)
|
45
|
+
end
|
46
|
+
|
47
|
+
# @return [String]
|
48
|
+
def message
|
49
|
+
@message || @data[:message]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
37
53
|
end
|
38
54
|
end
|