#[non_exhaustive]pub struct StartTextTranslationJobInput {
pub job_name: Option<String>,
pub input_data_config: Option<InputDataConfig>,
pub output_data_config: Option<OutputDataConfig>,
pub data_access_role_arn: Option<String>,
pub source_language_code: Option<String>,
pub target_language_codes: Option<Vec<String>>,
pub terminology_names: Option<Vec<String>>,
pub parallel_data_names: Option<Vec<String>>,
pub client_token: Option<String>,
pub settings: Option<TranslationSettings>,
}Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.job_name: Option<String>The name of the batch translation job to be performed.
input_data_config: Option<InputDataConfig>Specifies the format and S3 location of the input documents for the translation job.
output_data_config: Option<OutputDataConfig>Specifies the S3 folder to which your job output will be saved.
data_access_role_arn: Option<String>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more information, see identity-and-access-management.
source_language_code: Option<String>The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
target_language_codes: Option<Vec<String>>The language code of the output language.
terminology_names: Option<Vec<String>>The name of a custom terminology resource to add to the translation job. This resource lists examples source terms and the desired translation for each term.
This parameter accepts only one custom terminology resource.
For a list of available custom terminology resources, use the ListTerminologies operation.
For more information, see how-custom-terminology.
parallel_data_names: Option<Vec<String>>The name of a parallel data resource to add to the translation job. This resource consists of examples that show how you want segments of text to be translated. When you add parallel data to a translation job, you create an Active Custom Translation job.
This parameter accepts only one parallel data resource.
Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more information, see Amazon Translate pricing.
For a list of available parallel data resources, use the ListParallelData operation.
For more information, see customizing-translations-parallel-data.
client_token: Option<String>A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
settings: Option<TranslationSettings>Settings to configure your translation output, including the option to mask profane words and phrases.
Implementations
sourceimpl StartTextTranslationJobInput
impl StartTextTranslationJobInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartTextTranslationJob, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<StartTextTranslationJob, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<StartTextTranslationJob>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StartTextTranslationJobInput
sourceimpl StartTextTranslationJobInput
impl StartTextTranslationJobInput
sourcepub fn input_data_config(&self) -> Option<&InputDataConfig>
pub fn input_data_config(&self) -> Option<&InputDataConfig>
Specifies the format and S3 location of the input documents for the translation job.
sourcepub fn output_data_config(&self) -> Option<&OutputDataConfig>
pub fn output_data_config(&self) -> Option<&OutputDataConfig>
Specifies the S3 folder to which your job output will be saved.
sourcepub fn data_access_role_arn(&self) -> Option<&str>
pub fn data_access_role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that grants Amazon Translate read access to your input data. For more information, see identity-and-access-management.
sourcepub fn source_language_code(&self) -> Option<&str>
pub fn source_language_code(&self) -> Option<&str>
The language code of the input language. For a list of language codes, see what-is-languages.
Amazon Translate does not automatically detect a source language during batch translation jobs.
sourcepub fn target_language_codes(&self) -> Option<&[String]>
pub fn target_language_codes(&self) -> Option<&[String]>
The language code of the output language.
sourcepub fn terminology_names(&self) -> Option<&[String]>
pub fn terminology_names(&self) -> Option<&[String]>
The name of a custom terminology resource to add to the translation job. This resource lists examples source terms and the desired translation for each term.
This parameter accepts only one custom terminology resource.
For a list of available custom terminology resources, use the ListTerminologies operation.
For more information, see how-custom-terminology.
sourcepub fn parallel_data_names(&self) -> Option<&[String]>
pub fn parallel_data_names(&self) -> Option<&[String]>
The name of a parallel data resource to add to the translation job. This resource consists of examples that show how you want segments of text to be translated. When you add parallel data to a translation job, you create an Active Custom Translation job.
This parameter accepts only one parallel data resource.
Active Custom Translation jobs are priced at a higher rate than other jobs that don't use parallel data. For more information, see Amazon Translate pricing.
For a list of available parallel data resources, use the ListParallelData operation.
For more information, see customizing-translations-parallel-data.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique identifier for the request. This token is auto-generated when using the Amazon Translate SDK.
sourcepub fn settings(&self) -> Option<&TranslationSettings>
pub fn settings(&self) -> Option<&TranslationSettings>
Settings to configure your translation output, including the option to mask profane words and phrases.
Trait Implementations
sourceimpl Clone for StartTextTranslationJobInput
impl Clone for StartTextTranslationJobInput
sourcefn clone(&self) -> StartTextTranslationJobInput
fn clone(&self) -> StartTextTranslationJobInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StartTextTranslationJobInput
impl Debug for StartTextTranslationJobInput
sourceimpl PartialEq<StartTextTranslationJobInput> for StartTextTranslationJobInput
impl PartialEq<StartTextTranslationJobInput> for StartTextTranslationJobInput
sourcefn eq(&self, other: &StartTextTranslationJobInput) -> bool
fn eq(&self, other: &StartTextTranslationJobInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StartTextTranslationJobInput) -> bool
fn ne(&self, other: &StartTextTranslationJobInput) -> bool
This method tests for !=.
impl StructuralPartialEq for StartTextTranslationJobInput
Auto Trait Implementations
impl RefUnwindSafe for StartTextTranslationJobInput
impl Send for StartTextTranslationJobInput
impl Sync for StartTextTranslationJobInput
impl Unpin for StartTextTranslationJobInput
impl UnwindSafe for StartTextTranslationJobInput
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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