Struct aws_sdk_transcribe::client::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for Amazon Transcribe Service
Client for invoking operations on Amazon Transcribe Service. Each operation on Amazon Transcribe Service is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_transcribe::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_transcribe::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_transcribe::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn create_call_analytics_category(&self) -> CreateCallAnalyticsCategory
pub fn create_call_analytics_category(&self) -> CreateCallAnalyticsCategory
Constructs a fluent builder for the CreateCallAnalyticsCategory operation.
- The fluent builder is configurable:
category_name(impl Into<String>)/set_category_name(Option<String>):A unique name, chosen by you, for your Call Analytics category. It’s helpful to use a detailed naming system that will make sense to you in the future. For example, it’s better to use
sentiment-positive-last30secondsfor a category over a generic name liketest-category.Category names are case sensitive.
rules(Vec<Rule>)/set_rules(Option<Vec<Rule>>):Rules define a Call Analytics category. When creating a new Call Analytics category, you must create between 1 and 20 rules for that category. For each rule, you specify a filter you want applied to the attributes of a call. For example, you can choose a sentiment filter that detects if a customer’s sentiment was positive during the last 30 seconds of the call.
- On success, responds with
CreateCallAnalyticsCategoryOutputwith field(s):category_properties(Option<CategoryProperties>):Provides you with the properties of your new category, including its associated rules.
- On failure, responds with
SdkError<CreateCallAnalyticsCategoryError>
sourcepub fn create_language_model(&self) -> CreateLanguageModel
pub fn create_language_model(&self) -> CreateLanguageModel
Constructs a fluent builder for the CreateLanguageModel operation.
- The fluent builder is configurable:
language_code(ClmLanguageCode)/set_language_code(Option<ClmLanguageCode>):The language code that represents the language of your model. Each language model must contain terms in only one language, and the language you select for your model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table. Note that U.S. English (
en-US) is the only language supported with Amazon Transcribe Medical.A custom language model can only be used to transcribe files in the same language as the model. For example, if you create a language model using US English (
en-US), you can only apply this model to files that contain English audio.base_model_name(BaseModelName)/set_base_model_name(Option<BaseModelName>):The Amazon Transcribe standard language model, or base model, used to create your custom language model. Amazon Transcribe offers two options for base models: Wideband and Narrowband.
If the audio you want to transcribe has a sample rate of 16,000 Hz or greater, choose
WideBand. To transcribe audio with a sample rate less than 16,000 Hz, chooseNarrowBand.model_name(impl Into<String>)/set_model_name(Option<String>):A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new language model with the same name as an existing language model, you get a
ConflictExceptionerror.input_data_config(InputDataConfig)/set_input_data_config(Option<InputDataConfig>):Contains the Amazon S3 location of the training data you want to use to create a new custom language model, and permissions to access this location.
When using
InputDataConfig, you must include these sub-parameters:S3Uri, which is the Amazon S3 location of your training data, andDataAccessRoleArn, which is the Amazon Resource Name (ARN) of the role that has permission to access your specified Amazon S3 location. You can optionally includeTuningDataS3Uri, which is the Amazon S3 location of your tuning data. If you specify different Amazon S3 locations for training and tuning data, the ARN you use must have permissions to access both locations.tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to a new custom language model at the time you create this new model.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
- On success, responds with
CreateLanguageModelOutputwith field(s):language_code(Option<ClmLanguageCode>):The language code you selected for your custom language model.
base_model_name(Option<BaseModelName>):The Amazon Transcribe standard language model, or base model, you specified when creating your custom language model.
model_name(Option<String>):The name of your custom language model.
input_data_config(Option<InputDataConfig>):Lists your data access role ARN (Amazon Resource Name) and the Amazon S3 locations you provided for your training (
S3Uri) and tuning (TuningDataS3Uri) data.model_status(Option<ModelStatus>):The status of your custom language model. When the status displays as
COMPLETED, your model is ready to use.
- On failure, responds with
SdkError<CreateLanguageModelError>
sourcepub fn create_medical_vocabulary(&self) -> CreateMedicalVocabulary
pub fn create_medical_vocabulary(&self) -> CreateMedicalVocabulary
Constructs a fluent builder for the CreateMedicalVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):A unique name, chosen by you, for your new custom medical vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new medical vocabulary with the same name as an existing medical vocabulary, you get a
ConflictExceptionerror.language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language of the entries in your custom vocabulary. US English (
en-US) is the only language supported with Amazon Transcribe Medical.vocabulary_file_uri(impl Into<String>)/set_vocabulary_file_uri(Option<String>):The Amazon S3 location (URI) of the text file that contains your custom medical vocabulary. The URI must be in the same Amazon Web Services Region as the resource you’re calling.
Here’s an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-file.txttags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to a new medical vocabulary at the time you create this new vocabulary.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
- On success, responds with
CreateMedicalVocabularyOutputwith field(s):vocabulary_name(Option<String>):The name you chose for your custom medical vocabulary.
language_code(Option<LanguageCode>):The language code you selected for your medical vocabulary. US English (
en-US) is the only language supported with Amazon Transcribe Medical.vocabulary_state(Option<VocabularyState>):The processing state of your custom medical vocabulary. If the state is
READY, you can use the vocabulary in aStartMedicalTranscriptionJobrequest.last_modified_time(Option<DateTime>):The date and time you created your custom medical vocabulary.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.failure_reason(Option<String>):If
VocabularyStateisFAILED,FailureReasoncontains information about why the medical transcription job request failed. See also: Common Errors.
- On failure, responds with
SdkError<CreateMedicalVocabularyError>
sourcepub fn create_vocabulary(&self) -> CreateVocabulary
pub fn create_vocabulary(&self) -> CreateVocabulary
Constructs a fluent builder for the CreateVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):A unique name, chosen by you, for your new custom vocabulary.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new vocabulary with the same name as an existing vocabulary, you get a
ConflictExceptionerror.language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language of the entries in your custom vocabulary. Each vocabulary must contain terms in only one language.
A custom vocabulary can only be used to transcribe files in the same language as the vocabulary. For example, if you create a vocabulary using US English (
en-US), you can only apply this vocabulary to files that contain English audio.For a list of supported languages and their associated language codes, refer to the Supported languages table.
phrases(Vec<String>)/set_phrases(Option<Vec<String>>):Use this parameter if you want to create your vocabulary by including all desired terms, as comma-separated values, within your request. The other option for creating your vocabulary is to save your entries in a text file and upload them to an Amazon S3 bucket, then specify the location of your file using the
VocabularyFileUriparameter.Note that if you include
Phrasesin your request, you cannot useVocabularyFileUri; you must choose one or the other.Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language.
vocabulary_file_uri(impl Into<String>)/set_vocabulary_file_uri(Option<String>):The Amazon S3 location of the text file that contains your custom vocabulary. The URI must be located in the same Amazon Web Services Region as the resource you’re calling.
Here’s an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-file.txtNote that if you include
VocabularyFileUriin your request, you cannot use thePhrasesflag; you must choose one or the other.tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to a new custom vocabulary at the time you create this new vocabulary.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
- On success, responds with
CreateVocabularyOutputwith field(s):vocabulary_name(Option<String>):The name you chose for your custom vocabulary.
language_code(Option<LanguageCode>):The language code you selected for your custom vocabulary.
vocabulary_state(Option<VocabularyState>):The processing state of your custom vocabulary. If the state is
READY, you can use the vocabulary in aStartTranscriptionJobrequest.last_modified_time(Option<DateTime>):The date and time you created your custom vocabulary.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.failure_reason(Option<String>):If
VocabularyStateisFAILED,FailureReasoncontains information about why the vocabulary request failed. See also: Common Errors.
- On failure, responds with
SdkError<CreateVocabularyError>
sourcepub fn create_vocabulary_filter(&self) -> CreateVocabularyFilter
pub fn create_vocabulary_filter(&self) -> CreateVocabularyFilter
Constructs a fluent builder for the CreateVocabularyFilter operation.
- The fluent builder is configurable:
vocabulary_filter_name(impl Into<String>)/set_vocabulary_filter_name(Option<String>):A unique name, chosen by you, for your new custom vocabulary filter.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new vocabulary filter with the same name as an existing vocabulary filter, you get a
ConflictExceptionerror.language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language of the entries in your vocabulary filter. Each vocabulary filter must contain terms in only one language.
A vocabulary filter can only be used to transcribe files in the same language as the filter. For example, if you create a vocabulary filter using US English (
en-US), you can only apply this filter to files that contain English audio.For a list of supported languages and their associated language codes, refer to the Supported languages table.
words(Vec<String>)/set_words(Option<Vec<String>>):Use this parameter if you want to create your vocabulary filter by including all desired terms, as comma-separated values, within your request. The other option for creating your vocabulary filter is to save your entries in a text file and upload them to an Amazon S3 bucket, then specify the location of your file using the
VocabularyFilterFileUriparameter.Note that if you include
Wordsin your request, you cannot useVocabularyFilterFileUri; you must choose one or the other.Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language.
vocabulary_filter_file_uri(impl Into<String>)/set_vocabulary_filter_file_uri(Option<String>):The Amazon S3 location of the text file that contains your custom vocabulary filter terms. The URI must be located in the same Amazon Web Services Region as the resource you’re calling.
Here’s an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-filter-file.txtNote that if you include
VocabularyFilterFileUriin your request, you cannot useWords; you must choose one or the other.tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to a new custom vocabulary filter at the time you create this new filter.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
- On success, responds with
CreateVocabularyFilterOutputwith field(s):vocabulary_filter_name(Option<String>):The name you chose for your custom vocabulary filter.
language_code(Option<LanguageCode>):The language code you selected for your vocabulary filter.
last_modified_time(Option<DateTime>):The date and time you created your vocabulary filter.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.
- On failure, responds with
SdkError<CreateVocabularyFilterError>
sourcepub fn delete_call_analytics_category(&self) -> DeleteCallAnalyticsCategory
pub fn delete_call_analytics_category(&self) -> DeleteCallAnalyticsCategory
Constructs a fluent builder for the DeleteCallAnalyticsCategory operation.
- The fluent builder is configurable:
category_name(impl Into<String>)/set_category_name(Option<String>):The name of the Call Analytics category you want to delete. Category names are case sensitive.
- On success, responds with
DeleteCallAnalyticsCategoryOutput - On failure, responds with
SdkError<DeleteCallAnalyticsCategoryError>
sourcepub fn delete_call_analytics_job(&self) -> DeleteCallAnalyticsJob
pub fn delete_call_analytics_job(&self) -> DeleteCallAnalyticsJob
Constructs a fluent builder for the DeleteCallAnalyticsJob operation.
- The fluent builder is configurable:
call_analytics_job_name(impl Into<String>)/set_call_analytics_job_name(Option<String>):The name of the Call Analytics job you want to delete. Job names are case sensitive.
- On success, responds with
DeleteCallAnalyticsJobOutput - On failure, responds with
SdkError<DeleteCallAnalyticsJobError>
sourcepub fn delete_language_model(&self) -> DeleteLanguageModel
pub fn delete_language_model(&self) -> DeleteLanguageModel
Constructs a fluent builder for the DeleteLanguageModel operation.
- The fluent builder is configurable:
model_name(impl Into<String>)/set_model_name(Option<String>):The name of the custom language model you want to delete. Model names are case sensitive.
- On success, responds with
DeleteLanguageModelOutput - On failure, responds with
SdkError<DeleteLanguageModelError>
sourcepub fn delete_medical_transcription_job(&self) -> DeleteMedicalTranscriptionJob
pub fn delete_medical_transcription_job(&self) -> DeleteMedicalTranscriptionJob
Constructs a fluent builder for the DeleteMedicalTranscriptionJob operation.
- The fluent builder is configurable:
medical_transcription_job_name(impl Into<String>)/set_medical_transcription_job_name(Option<String>):The name of the medical transcription job you want to delete. Job names are case sensitive.
- On success, responds with
DeleteMedicalTranscriptionJobOutput - On failure, responds with
SdkError<DeleteMedicalTranscriptionJobError>
sourcepub fn delete_medical_vocabulary(&self) -> DeleteMedicalVocabulary
pub fn delete_medical_vocabulary(&self) -> DeleteMedicalVocabulary
Constructs a fluent builder for the DeleteMedicalVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):The name of the custom medical vocabulary you want to delete. Vocabulary names are case sensitive.
- On success, responds with
DeleteMedicalVocabularyOutput - On failure, responds with
SdkError<DeleteMedicalVocabularyError>
sourcepub fn delete_transcription_job(&self) -> DeleteTranscriptionJob
pub fn delete_transcription_job(&self) -> DeleteTranscriptionJob
Constructs a fluent builder for the DeleteTranscriptionJob operation.
- The fluent builder is configurable:
transcription_job_name(impl Into<String>)/set_transcription_job_name(Option<String>):The name of the transcription job you want to delete. Job names are case sensitive.
- On success, responds with
DeleteTranscriptionJobOutput - On failure, responds with
SdkError<DeleteTranscriptionJobError>
sourcepub fn delete_vocabulary(&self) -> DeleteVocabulary
pub fn delete_vocabulary(&self) -> DeleteVocabulary
Constructs a fluent builder for the DeleteVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):The name of the custom vocabulary you want to delete. Vocabulary names are case sensitive.
- On success, responds with
DeleteVocabularyOutput - On failure, responds with
SdkError<DeleteVocabularyError>
sourcepub fn delete_vocabulary_filter(&self) -> DeleteVocabularyFilter
pub fn delete_vocabulary_filter(&self) -> DeleteVocabularyFilter
Constructs a fluent builder for the DeleteVocabularyFilter operation.
- The fluent builder is configurable:
vocabulary_filter_name(impl Into<String>)/set_vocabulary_filter_name(Option<String>):The name of the custom vocabulary filter you want to delete. Vocabulary filter names are case sensitive.
- On success, responds with
DeleteVocabularyFilterOutput - On failure, responds with
SdkError<DeleteVocabularyFilterError>
sourcepub fn describe_language_model(&self) -> DescribeLanguageModel
pub fn describe_language_model(&self) -> DescribeLanguageModel
Constructs a fluent builder for the DescribeLanguageModel operation.
- The fluent builder is configurable:
model_name(impl Into<String>)/set_model_name(Option<String>):The name of the custom language model you want information about. Model names are case sensitive.
- On success, responds with
DescribeLanguageModelOutputwith field(s):language_model(Option<LanguageModel>):Provides information about the specified custom language model.
This parameter also shows if the base language model you used to create your custom language model has been updated. If Amazon Transcribe has updated the base model, you can create a new custom language model using the updated base model.
If you tried to create a new custom language model and the request wasn’t successful, you can use this
DescribeLanguageModelto help identify the reason for this failure.
- On failure, responds with
SdkError<DescribeLanguageModelError>
sourcepub fn get_call_analytics_category(&self) -> GetCallAnalyticsCategory
pub fn get_call_analytics_category(&self) -> GetCallAnalyticsCategory
Constructs a fluent builder for the GetCallAnalyticsCategory operation.
- The fluent builder is configurable:
category_name(impl Into<String>)/set_category_name(Option<String>):The name of the Call Analytics category you want information about. Category names are case sensitive.
- On success, responds with
GetCallAnalyticsCategoryOutputwith field(s):category_properties(Option<CategoryProperties>):Provides you with the properties of the Call Analytics category you specified in your
GetCallAnalyticsCategoryrequest.
- On failure, responds with
SdkError<GetCallAnalyticsCategoryError>
sourcepub fn get_call_analytics_job(&self) -> GetCallAnalyticsJob
pub fn get_call_analytics_job(&self) -> GetCallAnalyticsJob
Constructs a fluent builder for the GetCallAnalyticsJob operation.
- The fluent builder is configurable:
call_analytics_job_name(impl Into<String>)/set_call_analytics_job_name(Option<String>):The name of the Call Analytics job you want information about. Job names are case sensitive.
- On success, responds with
GetCallAnalyticsJobOutputwith field(s):call_analytics_job(Option<CallAnalyticsJob>):Provides detailed information about the specified Call Analytics job, including job status and, if applicable, failure reason.
- On failure, responds with
SdkError<GetCallAnalyticsJobError>
sourcepub fn get_medical_transcription_job(&self) -> GetMedicalTranscriptionJob
pub fn get_medical_transcription_job(&self) -> GetMedicalTranscriptionJob
Constructs a fluent builder for the GetMedicalTranscriptionJob operation.
- The fluent builder is configurable:
medical_transcription_job_name(impl Into<String>)/set_medical_transcription_job_name(Option<String>):The name of the medical transcription job you want information about. Job names are case sensitive.
- On success, responds with
GetMedicalTranscriptionJobOutputwith field(s):medical_transcription_job(Option<MedicalTranscriptionJob>):Provides detailed information about the specified medical transcription job, including job status and, if applicable, failure reason.
- On failure, responds with
SdkError<GetMedicalTranscriptionJobError>
sourcepub fn get_medical_vocabulary(&self) -> GetMedicalVocabulary
pub fn get_medical_vocabulary(&self) -> GetMedicalVocabulary
Constructs a fluent builder for the GetMedicalVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):The name of the custom medical vocabulary you want information about. Vocabulary names are case sensitive.
- On success, responds with
GetMedicalVocabularyOutputwith field(s):vocabulary_name(Option<String>):The name of the custom medical vocabulary you requested information about.
language_code(Option<LanguageCode>):The language code you selected for your medical vocabulary. US English (
en-US) is the only language supported with Amazon Transcribe Medical.vocabulary_state(Option<VocabularyState>):The processing state of your custom medical vocabulary. If the state is
READY, you can use the vocabulary in aStartMedicalTranscriptionJobrequest.last_modified_time(Option<DateTime>):The date and time the specified custom medical vocabulary was last modified.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.failure_reason(Option<String>):If
VocabularyStateisFAILED,FailureReasoncontains information about why the medical vocabulary request failed. See also: Common Errors.download_uri(Option<String>):The S3 location where the specified medical vocabulary is stored; use this URI to view or download the vocabulary.
- On failure, responds with
SdkError<GetMedicalVocabularyError>
sourcepub fn get_transcription_job(&self) -> GetTranscriptionJob
pub fn get_transcription_job(&self) -> GetTranscriptionJob
Constructs a fluent builder for the GetTranscriptionJob operation.
- The fluent builder is configurable:
transcription_job_name(impl Into<String>)/set_transcription_job_name(Option<String>):The name of the transcription job you want information about. Job names are case sensitive.
- On success, responds with
GetTranscriptionJobOutputwith field(s):transcription_job(Option<TranscriptionJob>):Provides detailed information about the specified transcription job, including job status and, if applicable, failure reason.
- On failure, responds with
SdkError<GetTranscriptionJobError>
sourcepub fn get_vocabulary(&self) -> GetVocabulary
pub fn get_vocabulary(&self) -> GetVocabulary
Constructs a fluent builder for the GetVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):The name of the custom vocabulary you want information about. Vocabulary names are case sensitive.
- On success, responds with
GetVocabularyOutputwith field(s):vocabulary_name(Option<String>):The name of the custom vocabulary you requested information about.
language_code(Option<LanguageCode>):The language code you selected for your custom vocabulary.
vocabulary_state(Option<VocabularyState>):The processing state of your custom vocabulary. If the state is
READY, you can use the vocabulary in aStartTranscriptionJobrequest.last_modified_time(Option<DateTime>):The date and time the specified vocabulary was last modified.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.failure_reason(Option<String>):If
VocabularyStateisFAILED,FailureReasoncontains information about why the vocabulary request failed. See also: Common Errors.download_uri(Option<String>):The S3 location where the vocabulary is stored; use this URI to view or download the vocabulary.
- On failure, responds with
SdkError<GetVocabularyError>
sourcepub fn get_vocabulary_filter(&self) -> GetVocabularyFilter
pub fn get_vocabulary_filter(&self) -> GetVocabularyFilter
Constructs a fluent builder for the GetVocabularyFilter operation.
- The fluent builder is configurable:
vocabulary_filter_name(impl Into<String>)/set_vocabulary_filter_name(Option<String>):The name of the custom vocabulary filter you want information about. Vocabulary filter names are case sensitive.
- On success, responds with
GetVocabularyFilterOutputwith field(s):vocabulary_filter_name(Option<String>):The name of the custom vocabulary filter you requested information about.
language_code(Option<LanguageCode>):The language code you selected for your vocabulary filter.
last_modified_time(Option<DateTime>):The date and time the specified vocabulary filter was last modified.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.download_uri(Option<String>):The Amazon S3 location where the vocabulary filter is stored; use this URI to view or download the vocabulary filter.
- On failure, responds with
SdkError<GetVocabularyFilterError>
sourcepub fn list_call_analytics_categories(&self) -> ListCallAnalyticsCategories
pub fn list_call_analytics_categories(&self) -> ListCallAnalyticsCategories
Constructs a fluent builder for the ListCallAnalyticsCategories operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListCallAnalyticsCategoriesrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of Call Analytics categories to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
- On success, responds with
ListCallAnalyticsCategoriesOutputwith field(s):next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.categories(Option<Vec<CategoryProperties>>):Provides detailed information about your Call Analytics categories, including all the rules associated with each category.
- On failure, responds with
SdkError<ListCallAnalyticsCategoriesError>
sourcepub fn list_call_analytics_jobs(&self) -> ListCallAnalyticsJobs
pub fn list_call_analytics_jobs(&self) -> ListCallAnalyticsJobs
Constructs a fluent builder for the ListCallAnalyticsJobs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
status(CallAnalyticsJobStatus)/set_status(Option<CallAnalyticsJobStatus>):Returns only Call Analytics jobs with the specified status. Jobs are ordered by creation date, with the newest job first. If you don’t include
Status, all Call Analytics jobs are returned.job_name_contains(impl Into<String>)/set_job_name_contains(Option<String>):Returns only the Call Analytics jobs that contain the specified string. The search is not case sensitive.
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListCallAnalyticsJobsrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of Call Analytics jobs to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
- On success, responds with
ListCallAnalyticsJobsOutputwith field(s):status(Option<CallAnalyticsJobStatus>):Lists all Call Analytics jobs that have the status specified in your request. Jobs are ordered by creation date, with the newest job first.
next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.call_analytics_job_summaries(Option<Vec<CallAnalyticsJobSummary>>):Provides a summary of information about each result.
- On failure, responds with
SdkError<ListCallAnalyticsJobsError>
sourcepub fn list_language_models(&self) -> ListLanguageModels
pub fn list_language_models(&self) -> ListLanguageModels
Constructs a fluent builder for the ListLanguageModels operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
status_equals(ModelStatus)/set_status_equals(Option<ModelStatus>):Returns only custom language models with the specified status. Language models are ordered by creation date, with the newest model first. If you don’t include
StatusEquals, all custom language models are returned.name_contains(impl Into<String>)/set_name_contains(Option<String>):Returns only the custom language models that contain the specified string. The search is not case sensitive.
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListLanguageModelsrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of custom language models to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
- On success, responds with
ListLanguageModelsOutputwith field(s):next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.models(Option<Vec<LanguageModel>>):Provides information about the custom language models that match the criteria specified in your request.
- On failure, responds with
SdkError<ListLanguageModelsError>
sourcepub fn list_medical_transcription_jobs(&self) -> ListMedicalTranscriptionJobs
pub fn list_medical_transcription_jobs(&self) -> ListMedicalTranscriptionJobs
Constructs a fluent builder for the ListMedicalTranscriptionJobs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
status(TranscriptionJobStatus)/set_status(Option<TranscriptionJobStatus>):Returns only medical transcription jobs with the specified status. Jobs are ordered by creation date, with the newest job first. If you don’t include
Status, all medical transcription jobs are returned.job_name_contains(impl Into<String>)/set_job_name_contains(Option<String>):Returns only the medical transcription jobs that contain the specified string. The search is not case sensitive.
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListMedicalTranscriptionJobsrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of medical transcription jobs to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
- On success, responds with
ListMedicalTranscriptionJobsOutputwith field(s):status(Option<TranscriptionJobStatus>):Lists all medical transcription jobs that have the status specified in your request. Jobs are ordered by creation date, with the newest job first.
next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.medical_transcription_job_summaries(Option<Vec<MedicalTranscriptionJobSummary>>):Provides a summary of information about each result.
- On failure, responds with
SdkError<ListMedicalTranscriptionJobsError>
sourcepub fn list_medical_vocabularies(&self) -> ListMedicalVocabularies
pub fn list_medical_vocabularies(&self) -> ListMedicalVocabularies
Constructs a fluent builder for the ListMedicalVocabularies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListMedicalVocabulariesrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of custom medical vocabularies to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
state_equals(VocabularyState)/set_state_equals(Option<VocabularyState>):Returns only custom medical vocabularies with the specified state. Vocabularies are ordered by creation date, with the newest vocabulary first. If you don’t include
StateEquals, all custom medical vocabularies are returned.name_contains(impl Into<String>)/set_name_contains(Option<String>):Returns only the custom medical vocabularies that contain the specified string. The search is not case sensitive.
- On success, responds with
ListMedicalVocabulariesOutputwith field(s):status(Option<VocabularyState>):Lists all custom medical vocabularies that have the status specified in your request. Vocabularies are ordered by creation date, with the newest vocabulary first.
next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.vocabularies(Option<Vec<VocabularyInfo>>):Provides information about the custom medical vocabularies that match the criteria specified in your request.
- On failure, responds with
SdkError<ListMedicalVocabulariesError>
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):Returns a list of all tags associated with the specified Amazon Resource Name (ARN). ARNs have the format
arn:partition:service:region:account-id:resource-type/resource-id.For example,
arn:aws:transcribe:us-west-2:account-id:transcription-job/transcription-job-name.Valid values for
resource-typeare:transcription-job,medical-transcription-job,vocabulary,medical-vocabulary,vocabulary-filter, andlanguage-model.
- On success, responds with
ListTagsForResourceOutputwith field(s):resource_arn(Option<String>):The Amazon Resource Name (ARN) specified in your request.
tags(Option<Vec<Tag>>):Lists all tags associated with the given transcription job, vocabulary, model, or resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn list_transcription_jobs(&self) -> ListTranscriptionJobs
pub fn list_transcription_jobs(&self) -> ListTranscriptionJobs
Constructs a fluent builder for the ListTranscriptionJobs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
status(TranscriptionJobStatus)/set_status(Option<TranscriptionJobStatus>):Returns only transcription jobs with the specified status. Jobs are ordered by creation date, with the newest job first. If you don’t include
Status, all transcription jobs are returned.job_name_contains(impl Into<String>)/set_job_name_contains(Option<String>):Returns only the transcription jobs that contain the specified string. The search is not case sensitive.
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListTranscriptionJobsrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of transcription jobs to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
- On success, responds with
ListTranscriptionJobsOutputwith field(s):status(Option<TranscriptionJobStatus>):Lists all transcription jobs that have the status specified in your request. Jobs are ordered by creation date, with the newest job first.
next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.transcription_job_summaries(Option<Vec<TranscriptionJobSummary>>):Provides a summary of information about each result.
- On failure, responds with
SdkError<ListTranscriptionJobsError>
sourcepub fn list_vocabularies(&self) -> ListVocabularies
pub fn list_vocabularies(&self) -> ListVocabularies
Constructs a fluent builder for the ListVocabularies operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListVocabulariesrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of custom vocabularies to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
state_equals(VocabularyState)/set_state_equals(Option<VocabularyState>):Returns only custom vocabularies with the specified state. Vocabularies are ordered by creation date, with the newest vocabulary first. If you don’t include
StateEquals, all custom medical vocabularies are returned.name_contains(impl Into<String>)/set_name_contains(Option<String>):Returns only the custom vocabularies that contain the specified string. The search is not case sensitive.
- On success, responds with
ListVocabulariesOutputwith field(s):status(Option<VocabularyState>):Lists all custom vocabularies that have the status specified in your request. Vocabularies are ordered by creation date, with the newest vocabulary first.
next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.vocabularies(Option<Vec<VocabularyInfo>>):Provides information about the custom vocabularies that match the criteria specified in your request.
- On failure, responds with
SdkError<ListVocabulariesError>
sourcepub fn list_vocabulary_filters(&self) -> ListVocabularyFilters
pub fn list_vocabulary_filters(&self) -> ListVocabularyFilters
Constructs a fluent builder for the ListVocabularyFilters operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):If your
ListVocabularyFiltersrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.max_results(i32)/set_max_results(Option<i32>):The maximum number of custom vocabulary filters to return in each page of results. If there are fewer results than the value you specify, only the actual results are returned. If you don’t specify a value, a default of 5 is used.
name_contains(impl Into<String>)/set_name_contains(Option<String>):Returns only the custom vocabulary filters that contain the specified string. The search is not case sensitive.
- On success, responds with
ListVocabularyFiltersOutputwith field(s):next_token(Option<String>):If
NextTokenis present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with theNextTokenparameter in your results output, then run your request again includingNextTokenwith the value of the copied string. Repeat as needed to view all your results.vocabulary_filters(Option<Vec<VocabularyFilterInfo>>):Provides information about the custom vocabulary filters that match the criteria specified in your request.
- On failure, responds with
SdkError<ListVocabularyFiltersError>
sourcepub fn start_call_analytics_job(&self) -> StartCallAnalyticsJob
pub fn start_call_analytics_job(&self) -> StartCallAnalyticsJob
Constructs a fluent builder for the StartCallAnalyticsJob operation.
- The fluent builder is configurable:
call_analytics_job_name(impl Into<String>)/set_call_analytics_job_name(Option<String>):A unique name, chosen by you, for your Call Analytics job.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new job with the same name as an existing job, you get a
ConflictExceptionerror.media(Media)/set_media(Option<Media>):Describes the Amazon S3 location of the media file you want to use in your request.
output_location(impl Into<String>)/set_output_location(Option<String>):The Amazon S3 location where you want your Call Analytics transcription output stored. You can use any of the following formats to specify the output location:
-
s3://DOC-EXAMPLE-BUCKET
-
s3://DOC-EXAMPLE-BUCKET/my-output-folder/
-
s3://DOC-EXAMPLE-BUCKET/my-output-folder/my-call-analytics-job.json
Unless you specify a file name (option 3), the name of your output file has a default value that matches the name you specified for your transcription job using the
CallAnalyticsJobNameparameter.You can specify a KMS key to encrypt your output using the
OutputEncryptionKMSKeyIdparameter. If you don’t specify a KMS key, Amazon Transcribe uses the default Amazon S3 key for server-side encryption.If you don’t specify
OutputLocation, your transcript is placed in a service-managed Amazon S3 bucket and you are provided with a URI to access your transcript.-
output_encryption_kms_key_id(impl Into<String>)/set_output_encryption_kms_key_id(Option<String>):The KMS key you want to use to encrypt your Call Analytics output.
If using a key located in the current Amazon Web Services account, you can specify your KMS key in one of four ways:
-
Use the KMS key ID itself. For example,
1234abcd-12ab-34cd-56ef-1234567890ab. -
Use an alias for the KMS key ID. For example,
alias/ExampleAlias. -
Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If using a key located in a different Amazon Web Services account than the current Amazon Web Services account, you can specify your KMS key in one of two ways:
-
Use the ARN for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If you don’t specify an encryption key, your output is encrypted with the default Amazon S3 key (SSE-S3).
If you specify a KMS key to encrypt your output, you must also specify an output location using the
OutputLocationparameter.Note that the user making the request must have permission to use the specified KMS key.
-
data_access_role_arn(impl Into<String>)/set_data_access_role_arn(Option<String>):The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format
arn:partition:iam::account:role/role-name-with-path. For example:arn:aws:iam::111122223333:role/Admin.For more information, see IAM ARNs.
settings(CallAnalyticsJobSettings)/set_settings(Option<CallAnalyticsJobSettings>):Specify additional optional settings in your request, including content redaction; allows you to apply custom language models, vocabulary filters, and custom vocabularies to your Call Analytics job.
channel_definitions(Vec<ChannelDefinition>)/set_channel_definitions(Option<Vec<ChannelDefinition>>):Allows you to specify which speaker is on which channel. For example, if your agent is the first participant to speak, you would set
ChannelIdto0(to indicate the first channel) andParticipantRoletoAGENT(to indicate that it’s the agent speaking).
- On success, responds with
StartCallAnalyticsJobOutputwith field(s):call_analytics_job(Option<CallAnalyticsJob>):Provides detailed information about the current Call Analytics job, including job status and, if applicable, failure reason.
- On failure, responds with
SdkError<StartCallAnalyticsJobError>
sourcepub fn start_medical_transcription_job(&self) -> StartMedicalTranscriptionJob
pub fn start_medical_transcription_job(&self) -> StartMedicalTranscriptionJob
Constructs a fluent builder for the StartMedicalTranscriptionJob operation.
- The fluent builder is configurable:
medical_transcription_job_name(impl Into<String>)/set_medical_transcription_job_name(Option<String>):A unique name, chosen by you, for your medical transcription job. The name you specify is also used as the default name of your transcription output file. If you want to specify a different name for your transcription output, use the
OutputKeyparameter.This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new job with the same name as an existing job, you get a
ConflictExceptionerror.language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language spoken in the input media file. US English (
en-US) is the only valid value for medical transcription jobs. Any other value you enter for language code results in aBadRequestExceptionerror.media_sample_rate_hertz(i32)/set_media_sample_rate_hertz(Option<i32>):The sample rate, in Hertz, of the audio track in your input media file.
If you don’t specify the media sample rate, Amazon Transcribe Medical determines it for you. If you specify the sample rate, it must match the rate detected by Amazon Transcribe Medical; if there’s a mismatch between the value you specify and the value detected, your job fails. Therefore, in most cases, it’s advised to omit
MediaSampleRateHertzand let Amazon Transcribe Medical determine the sample rate.media_format(MediaFormat)/set_media_format(Option<MediaFormat>):Specify the format of your input media file.
media(Media)/set_media(Option<Media>):Describes the Amazon S3 location of the media file you want to use in your request.
output_bucket_name(impl Into<String>)/set_output_bucket_name(Option<String>):The name of the Amazon S3 bucket where you want your medical transcription output stored. Do not include the
S3://prefix of the specified bucket.If you want your output to go to a sub-folder of this bucket, specify it using the
OutputKeyparameter;OutputBucketNameonly accepts the name of a bucket.For example, if you want your output stored in
S3://DOC-EXAMPLE-BUCKET, setOutputBucketNametoDOC-EXAMPLE-BUCKET. However, if you want your output stored inS3://DOC-EXAMPLE-BUCKET/test-files/, setOutputBucketNametoDOC-EXAMPLE-BUCKETandOutputKeytotest-files/.Note that Amazon Transcribe must have permission to use the specified location. You can change Amazon S3 permissions using the Amazon Web Services Management Console. See also Permissions Required for IAM User Roles.
If you don’t specify
OutputBucketName, your transcript is placed in a service-managed Amazon S3 bucket and you are provided with a URI to access your transcript.output_key(impl Into<String>)/set_output_key(Option<String>):Use in combination with
OutputBucketNameto specify the output location of your transcript and, optionally, a unique name for your output file. The default name for your transcription output is the same as the name you specified for your medical transcription job (MedicalTranscriptionJobName).Here are some examples of how you can use
OutputKey:-
If you specify ‘DOC-EXAMPLE-BUCKET’ as the
OutputBucketNameand ‘my-transcript.json’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript.json. -
If you specify ‘my-first-transcription’ as the
MedicalTranscriptionJobName, ‘DOC-EXAMPLE-BUCKET’ as theOutputBucketName, and ‘my-transcript’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript/my-first-transcription.json. -
If you specify ‘DOC-EXAMPLE-BUCKET’ as the
OutputBucketNameand ‘test-files/my-transcript.json’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript.json. -
If you specify ‘my-first-transcription’ as the
MedicalTranscriptionJobName, ‘DOC-EXAMPLE-BUCKET’ as theOutputBucketName, and ‘test-files/my-transcript’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript/my-first-transcription.json.
If you specify the name of an Amazon S3 bucket sub-folder that doesn’t exist, one is created for you.
-
output_encryption_kms_key_id(impl Into<String>)/set_output_encryption_kms_key_id(Option<String>):The KMS key you want to use to encrypt your medical transcription output.
If using a key located in the current Amazon Web Services account, you can specify your KMS key in one of four ways:
-
Use the KMS key ID itself. For example,
1234abcd-12ab-34cd-56ef-1234567890ab. -
Use an alias for the KMS key ID. For example,
alias/ExampleAlias. -
Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If using a key located in a different Amazon Web Services account than the current Amazon Web Services account, you can specify your KMS key in one of two ways:
-
Use the ARN for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If you don’t specify an encryption key, your output is encrypted with the default Amazon S3 key (SSE-S3).
If you specify a KMS key to encrypt your output, you must also specify an output location using the
OutputLocationparameter.Note that the user making the request must have permission to use the specified KMS key.
-
kms_encryption_context(HashMap<String, String>)/set_kms_encryption_context(Option<HashMap<String, String>>):A map of plain text, non-secret key:value pairs, known as encryption context pairs, that provide an added layer of security for your data. For more information, see KMS encryption context and Asymmetric keys in KMS.
settings(MedicalTranscriptionSetting)/set_settings(Option<MedicalTranscriptionSetting>):Specify additional optional settings in your request, including channel identification, alternative transcriptions, and speaker labeling; allows you to apply custom vocabularies to your transcription job.
content_identification_type(MedicalContentIdentificationType)/set_content_identification_type(Option<MedicalContentIdentificationType>):Labels all personal health information (PHI) identified in your transcript. For more information, see Identifying personal health information (PHI) in a transcription.
specialty(Specialty)/set_specialty(Option<Specialty>):Specify the predominant medical specialty represented in your media. For batch transcriptions,
PRIMARYCAREis the only valid value. If you require additional specialties, refer to .r#type(Type)/set_type(Option<Type>):Specify whether your input media contains only one person (
DICTATION) or contains a conversation between two people (CONVERSATION).For example,
DICTATIONcould be used for a medical professional wanting to transcribe voice memos;CONVERSATIONcould be used for transcribing the doctor-patient dialogue during the patient’s office visit.tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to a new medical transcription job at the time you start this new job.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
- On success, responds with
StartMedicalTranscriptionJobOutputwith field(s):medical_transcription_job(Option<MedicalTranscriptionJob>):Provides detailed information about the current medical transcription job, including job status and, if applicable, failure reason.
- On failure, responds with
SdkError<StartMedicalTranscriptionJobError>
sourcepub fn start_transcription_job(&self) -> StartTranscriptionJob
pub fn start_transcription_job(&self) -> StartTranscriptionJob
Constructs a fluent builder for the StartTranscriptionJob operation.
- The fluent builder is configurable:
transcription_job_name(impl Into<String>)/set_transcription_job_name(Option<String>):A unique name, chosen by you, for your transcription job. The name you specify is also used as the default name of your transcription output file. If you want to specify a different name for your transcription output, use the
OutputKeyparameter.This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account. If you try to create a new job with the same name as an existing job, you get a
ConflictExceptionerror.language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language spoken in the input media file.
If you’re unsure of the language spoken in your media file, consider using
IdentifyLanguageorIdentifyMultipleLanguagesto enable automatic language identification.Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.For a list of supported languages and their associated language codes, refer to the Supported languages table.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.media_sample_rate_hertz(i32)/set_media_sample_rate_hertz(Option<i32>):The sample rate, in Hertz, of the audio track in your input media file.
If you don’t specify the media sample rate, Amazon Transcribe determines it for you. If you specify the sample rate, it must match the rate detected by Amazon Transcribe; if there’s a mismatch between the value you specify and the value detected, your job fails. Therefore, in most cases, it’s advised to omit
MediaSampleRateHertzand let Amazon Transcribe determine the sample rate.media_format(MediaFormat)/set_media_format(Option<MediaFormat>):Specify the format of your input media file.
media(Media)/set_media(Option<Media>):Describes the Amazon S3 location of the media file you want to use in your request.
output_bucket_name(impl Into<String>)/set_output_bucket_name(Option<String>):The name of the Amazon S3 bucket where you want your transcription output stored. Do not include the
S3://prefix of the specified bucket.If you want your output to go to a sub-folder of this bucket, specify it using the
OutputKeyparameter;OutputBucketNameonly accepts the name of a bucket.For example, if you want your output stored in
S3://DOC-EXAMPLE-BUCKET, setOutputBucketNametoDOC-EXAMPLE-BUCKET. However, if you want your output stored inS3://DOC-EXAMPLE-BUCKET/test-files/, setOutputBucketNametoDOC-EXAMPLE-BUCKETandOutputKeytotest-files/.Note that Amazon Transcribe must have permission to use the specified location. You can change Amazon S3 permissions using the Amazon Web Services Management Console. See also Permissions Required for IAM User Roles.
If you don’t specify
OutputBucketName, your transcript is placed in a service-managed Amazon S3 bucket and you are provided with a URI to access your transcript.output_key(impl Into<String>)/set_output_key(Option<String>):Use in combination with
OutputBucketNameto specify the output location of your transcript and, optionally, a unique name for your output file. The default name for your transcription output is the same as the name you specified for your transcription job (TranscriptionJobName).Here are some examples of how you can use
OutputKey:-
If you specify ‘DOC-EXAMPLE-BUCKET’ as the
OutputBucketNameand ‘my-transcript.json’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript.json. -
If you specify ‘my-first-transcription’ as the
TranscriptionJobName, ‘DOC-EXAMPLE-BUCKET’ as theOutputBucketName, and ‘my-transcript’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/my-transcript/my-first-transcription.json. -
If you specify ‘DOC-EXAMPLE-BUCKET’ as the
OutputBucketNameand ‘test-files/my-transcript.json’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript.json. -
If you specify ‘my-first-transcription’ as the
TranscriptionJobName, ‘DOC-EXAMPLE-BUCKET’ as theOutputBucketName, and ‘test-files/my-transcript’ as theOutputKey, your transcription output path iss3://DOC-EXAMPLE-BUCKET/test-files/my-transcript/my-first-transcription.json.
If you specify the name of an Amazon S3 bucket sub-folder that doesn’t exist, one is created for you.
-
output_encryption_kms_key_id(impl Into<String>)/set_output_encryption_kms_key_id(Option<String>):The KMS key you want to use to encrypt your transcription output.
If using a key located in the current Amazon Web Services account, you can specify your KMS key in one of four ways:
-
Use the KMS key ID itself. For example,
1234abcd-12ab-34cd-56ef-1234567890ab. -
Use an alias for the KMS key ID. For example,
alias/ExampleAlias. -
Use the Amazon Resource Name (ARN) for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If using a key located in a different Amazon Web Services account than the current Amazon Web Services account, you can specify your KMS key in one of two ways:
-
Use the ARN for the KMS key ID. For example,
arn:aws:kms:region:account-ID:key/1234abcd-12ab-34cd-56ef-1234567890ab. -
Use the ARN for the KMS key alias. For example,
arn:aws:kms:region:account-ID:alias/ExampleAlias.
If you don’t specify an encryption key, your output is encrypted with the default Amazon S3 key (SSE-S3).
If you specify a KMS key to encrypt your output, you must also specify an output location using the
OutputLocationparameter.Note that the user making the request must have permission to use the specified KMS key.
-
kms_encryption_context(HashMap<String, String>)/set_kms_encryption_context(Option<HashMap<String, String>>):A map of plain text, non-secret key:value pairs, known as encryption context pairs, that provide an added layer of security for your data. For more information, see KMS encryption context and Asymmetric keys in KMS.
settings(Settings)/set_settings(Option<Settings>):Specify additional optional settings in your request, including channel identification, alternative transcriptions, speaker labeling; allows you to apply custom vocabularies and vocabulary filters.
If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use
Settingswith theVocabularyNameorVocabularyFilterName(or both) sub-parameter.If you’re using automatic language identification with your request and want to include a custom language model, a custom vocabulary, or a custom vocabulary filter, use instead the
parameter with theLanguageModelName,VocabularyNameorVocabularyFilterNamesub-parameters.model_settings(ModelSettings)/set_model_settings(Option<ModelSettings>):Specify the custom language model you want to include with your transcription job. If you include
ModelSettingsin your request, you must include theLanguageModelNamesub-parameter.For more information, see Custom language models.
job_execution_settings(JobExecutionSettings)/set_job_execution_settings(Option<JobExecutionSettings>):Allows you to control how your transcription job is processed. Currently, the only
JobExecutionSettingsmodification you can choose is enabling job queueing using theAllowDeferredExecutionsub-parameter.If you include
JobExecutionSettingsin your request, you must also include the sub-parameters:AllowDeferredExecutionandDataAccessRoleArn.content_redaction(ContentRedaction)/set_content_redaction(Option<ContentRedaction>):Allows you to redact or flag specified personally identifiable information (PII) in your transcript. If you use
ContentRedaction, you must also include the sub-parameters:PiiEntityTypes,RedactionOutput, andRedactionType.identify_language(bool)/set_identify_language(Option<bool>):Enables automatic language identification in your transcription job request.
If you include
IdentifyLanguage, you can optionally include a list of language codes, usingLanguageOptions, that you think may be present in your media file. Including language options can improve transcription accuracy.If you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter to your automatic language identification request, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName).Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.identify_multiple_languages(bool)/set_identify_multiple_languages(Option<bool>):Enables automatic multi-language identification in your transcription job request. Use this parameter if your media file contains more than one language.
If you include
IdentifyMultipleLanguages, you can optionally include a list of language codes, usingLanguageOptions, that you think may be present in your media file. Including language options can improve transcription accuracy.If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic language identification request, include
LanguageIdSettingswith the relevant sub-parameters (VocabularyNameandVocabularyFilterName).Note that you must include one of
LanguageCode,IdentifyLanguage, orIdentifyMultipleLanguagesin your request. If you include more than one of these parameters, your transcription job fails.language_options(Vec<LanguageCode>)/set_language_options(Option<Vec<LanguageCode>>):You can specify two or more language codes that represent the languages you think may be present in your media; including more than five is not recommended. If you’re unsure what languages are present, do not include this parameter.
If you include
LanguageOptionsin your request, you must also includeIdentifyLanguage.For more information, refer to Supported languages.
To transcribe speech in Modern Standard Arabic (
ar-SA), your media file must be encoded at a sample rate of 16,000 Hz or higher.subtitles(Subtitles)/set_subtitles(Option<Subtitles>):Produces subtitle files for your input media. You can specify WebVTT (.vtt) and SubRip (.srt) formats.
tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to a new transcription job at the time you start this new job.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
language_id_settings(HashMap<LanguageCode, LanguageIdSettings>)/set_language_id_settings(Option<HashMap<LanguageCode, LanguageIdSettings>>):If using automatic language identification (
IdentifyLanguage) in your request and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary filter, includeLanguageIdSettingswith the relevant sub-parameters (VocabularyName,LanguageModelName, andVocabularyFilterName).You can specify two or more language codes that represent the languages you think may be present in your media; including more than five is not recommended. Each language code you include can have an associated custom language model, custom vocabulary, and custom vocabulary filter. The languages you specify must match the languages of the specified custom language models, custom vocabularies, and custom vocabulary filters.
To include language options using
IdentifyLanguagewithout including a custom language model, a custom vocabulary, or a custom vocabulary filter, useLanguageOptionsinstead ofLanguageIdSettings. Including language options can improve the accuracy of automatic language identification.If you want to include a custom language model with your request but do not want to use automatic language identification, use instead the
parameter with theLanguageModelNamesub-parameter.If you want to include a custom vocabulary or a custom vocabulary filter (or both) with your request but do not want to use automatic language identification, use instead the
parameter with theVocabularyNameorVocabularyFilterName(or both) sub-parameter.
- On success, responds with
StartTranscriptionJobOutputwith field(s):transcription_job(Option<TranscriptionJob>):Provides detailed information about the current transcription job, including job status and, if applicable, failure reason.
- On failure, responds with
SdkError<StartTranscriptionJobError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the resource you want to tag. ARNs have the format
arn:partition:service:region:account-id:resource-type/resource-id.For example,
arn:aws:transcribe:us-west-2:account-id:transcription-job/transcription-job-name.Valid values for
resource-typeare:transcription-job,medical-transcription-job,vocabulary,medical-vocabulary,vocabulary-filter, andlanguage-model.tags(Vec<Tag>)/set_tags(Option<Vec<Tag>>):Adds one or more custom tags, each in the form of a key:value pair, to the specified resource.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the Amazon Transcribe resource you want to remove tags from. ARNs have the format
arn:partition:service:region:account-id:resource-type/resource-id.For example,
arn:aws:transcribe:us-west-2:account-id:transcription-job/transcription-job-name.Valid values for
resource-typeare:transcription-job,medical-transcription-job,vocabulary,medical-vocabulary,vocabulary-filter, andlanguage-model.tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):Removes the specified tag keys from the specified Amazon Transcribe resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_call_analytics_category(&self) -> UpdateCallAnalyticsCategory
pub fn update_call_analytics_category(&self) -> UpdateCallAnalyticsCategory
Constructs a fluent builder for the UpdateCallAnalyticsCategory operation.
- The fluent builder is configurable:
category_name(impl Into<String>)/set_category_name(Option<String>):The name of the Call Analytics category you want to update. Category names are case sensitive.
rules(Vec<Rule>)/set_rules(Option<Vec<Rule>>):The rules used for the updated Call Analytics category. The rules you provide in this field replace the ones that are currently being used in the specified category.
- On success, responds with
UpdateCallAnalyticsCategoryOutputwith field(s):category_properties(Option<CategoryProperties>):Provides you with the properties of the Call Analytics category you specified in your
UpdateCallAnalyticsCategoryrequest.
- On failure, responds with
SdkError<UpdateCallAnalyticsCategoryError>
sourcepub fn update_medical_vocabulary(&self) -> UpdateMedicalVocabulary
pub fn update_medical_vocabulary(&self) -> UpdateMedicalVocabulary
Constructs a fluent builder for the UpdateMedicalVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):The name of the custom medical vocabulary you want to update. Vocabulary names are case sensitive.
language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language of the entries in the custom vocabulary you want to update. US English (
en-US) is the only language supported with Amazon Transcribe Medical.vocabulary_file_uri(impl Into<String>)/set_vocabulary_file_uri(Option<String>):The Amazon S3 location of the text file that contains your custom medical vocabulary. The URI must be located in the same Amazon Web Services Region as the resource you’re calling.
Here’s an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-file.txt
- On success, responds with
UpdateMedicalVocabularyOutputwith field(s):vocabulary_name(Option<String>):The name of the updated custom medical vocabulary.
language_code(Option<LanguageCode>):The language code you selected for your medical vocabulary. US English (
en-US) is the only language supported with Amazon Transcribe Medical.last_modified_time(Option<DateTime>):The date and time the specified custom medical vocabulary was last updated.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.vocabulary_state(Option<VocabularyState>):The processing state of your custom medical vocabulary. If the state is
READY, you can use the vocabulary in aStartMedicalTranscriptionJobrequest.
- On failure, responds with
SdkError<UpdateMedicalVocabularyError>
sourcepub fn update_vocabulary(&self) -> UpdateVocabulary
pub fn update_vocabulary(&self) -> UpdateVocabulary
Constructs a fluent builder for the UpdateVocabulary operation.
- The fluent builder is configurable:
vocabulary_name(impl Into<String>)/set_vocabulary_name(Option<String>):The name of the custom vocabulary you want to update. Vocabulary names are case sensitive.
language_code(LanguageCode)/set_language_code(Option<LanguageCode>):The language code that represents the language of the entries in the custom vocabulary you want to update. Each vocabulary must contain terms in only one language.
A custom vocabulary can only be used to transcribe files in the same language as the vocabulary. For example, if you create a vocabulary using US English (
en-US), you can only apply this vocabulary to files that contain English audio.For a list of supported languages and their associated language codes, refer to the Supported languages table.
phrases(Vec<String>)/set_phrases(Option<Vec<String>>):Use this parameter if you want to update your vocabulary by including all desired terms, as comma-separated values, within your request. The other option for updating your vocabulary is to save your entries in a text file and upload them to an Amazon S3 bucket, then specify the location of your file using the
VocabularyFileUriparameter.Note that if you include
Phrasesin your request, you cannot useVocabularyFileUri; you must choose one or the other.Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language.
vocabulary_file_uri(impl Into<String>)/set_vocabulary_file_uri(Option<String>):The Amazon S3 location of the text file that contains your custom vocabulary. The URI must be located in the same Amazon Web Services Region as the resource you’re calling.
Here’s an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-file.txtNote that if you include
VocabularyFileUriin your request, you cannot use thePhrasesflag; you must choose one or the other.
- On success, responds with
UpdateVocabularyOutputwith field(s):vocabulary_name(Option<String>):The name of the updated custom vocabulary.
language_code(Option<LanguageCode>):The language code you selected for your custom vocabulary.
last_modified_time(Option<DateTime>):The date and time the specified vocabulary was last updated.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.vocabulary_state(Option<VocabularyState>):The processing state of your custom vocabulary. If the state is
READY, you can use the vocabulary in aStartTranscriptionJobrequest.
- On failure, responds with
SdkError<UpdateVocabularyError>
sourcepub fn update_vocabulary_filter(&self) -> UpdateVocabularyFilter
pub fn update_vocabulary_filter(&self) -> UpdateVocabularyFilter
Constructs a fluent builder for the UpdateVocabularyFilter operation.
- The fluent builder is configurable:
vocabulary_filter_name(impl Into<String>)/set_vocabulary_filter_name(Option<String>):The name of the custom vocabulary filter you want to update. Vocabulary filter names are case sensitive.
words(Vec<String>)/set_words(Option<Vec<String>>):Use this parameter if you want to update your vocabulary filter by including all desired terms, as comma-separated values, within your request. The other option for updating your vocabulary filter is to save your entries in a text file and upload them to an Amazon S3 bucket, then specify the location of your file using the
VocabularyFilterFileUriparameter.Note that if you include
Wordsin your request, you cannot useVocabularyFilterFileUri; you must choose one or the other.Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language.
vocabulary_filter_file_uri(impl Into<String>)/set_vocabulary_filter_file_uri(Option<String>):The Amazon S3 location of the text file that contains your custom vocabulary filter terms. The URI must be located in the same Amazon Web Services Region as the resource you’re calling.
Here’s an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-filter-file.txtNote that if you include
VocabularyFilterFileUriin your request, you cannot useWords; you must choose one or the other.
- On success, responds with
UpdateVocabularyFilterOutputwith field(s):vocabulary_filter_name(Option<String>):The name of the updated custom vocabulary filter.
language_code(Option<LanguageCode>):The language code you selected for your vocabulary filter.
last_modified_time(Option<DateTime>):The date and time the specified vocabulary filter was last updated.
Timestamps are in the format
YYYY-MM-DD’T’HH:MM:SS.SSSSSS-UTC. For example,2022-05-04T12:32:58.761000-07:00represents 12:32 PM UTC-7 on May 4, 2022.
- On failure, responds with
SdkError<UpdateVocabularyFilterError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more