ExAws.Translate.import_terminology
You're seeing just the function
import_terminology
, go back to ExAws.Translate module for more information.
Link to this function
import_terminology(name, terminology_data, merge_strategy, opts \\ [])
View SourceSpecs
import_terminology( name :: String.t(), terminology_data :: terminology_data(), merge_strategy :: String.t(), opts :: import_terminology_opts() ) :: ExAws.Operation.JSON.t()
Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.
Examples
iex> ExAws.Translate.import_terminology("terminology", %{file: "base64encodedbinary", format: "CSV"}, "OVERWRITE") |> ExAws.request()
{:ok,
%{
"TerminologyProperties" => %{
"Arn" => "arn:aws:translate:us-east-1:126427819807:terminology/terminology-test/LATEST",
"CreatedAt" => 1591997291.244,
"LastUpdatedAt" => 1591997291.244,
"Name" => "terminology-test",
"SizeBytes" => 24,
"SourceLanguageCode" => "en",
"TargetLanguageCodes" => ["fr"],
"TermCount" => 1
}
}
}
For more information visit the AWS Translate API Documentation for ImportTerminology.