types

package
v1.24.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppliedTerminology

type AppliedTerminology struct {

	// The name of the custom terminology applied to the input text by Amazon
	// Translate for the translated text response.
	Name *string

	// The specific terms of the custom terminology applied to the input text by
	// Amazon Translate for the translated text response. A maximum of 250 terms will
	// be returned, and the specific terms applied will be the first 250 terms in the
	// source text.
	Terms []Term
	// contains filtered or unexported fields
}

The custom terminology applied to the input text by Amazon Translate for the translated text response. This is optional in the response and will only be present if you specified terminology input in the request. Currently, only one terminology can be applied per TranslateText request.

type Brevity added in v1.20.0

type Brevity string
const (
	BrevityOn Brevity = "ON"
)

Enum values for Brevity

func (Brevity) Values added in v1.20.0

func (Brevity) Values() []Brevity

Values returns all known values for Brevity. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ConcurrentModificationException added in v0.31.0

type ConcurrentModificationException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Another modification is being made. That modification must complete before you can make your change.

func (*ConcurrentModificationException) Error added in v0.31.0

func (*ConcurrentModificationException) ErrorCode added in v0.31.0

func (e *ConcurrentModificationException) ErrorCode() string

func (*ConcurrentModificationException) ErrorFault added in v0.31.0

func (*ConcurrentModificationException) ErrorMessage added in v0.31.0

func (e *ConcurrentModificationException) ErrorMessage() string

type ConflictException added in v0.31.0

type ConflictException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

There was a conflict processing the request. Try your request again.

func (*ConflictException) Error added in v0.31.0

func (e *ConflictException) Error() string

func (*ConflictException) ErrorCode added in v0.31.0

func (e *ConflictException) ErrorCode() string

func (*ConflictException) ErrorFault added in v0.31.0

func (e *ConflictException) ErrorFault() smithy.ErrorFault

func (*ConflictException) ErrorMessage added in v0.31.0

func (e *ConflictException) ErrorMessage() string

type DetectedLanguageLowConfidenceException

type DetectedLanguageLowConfidenceException struct {
	Message *string

	ErrorCodeOverride *string

	DetectedLanguageCode *string
	// contains filtered or unexported fields
}

The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the DetectDominantLanguage (https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) operation in the Amazon Comprehend Developer Guide.

func (*DetectedLanguageLowConfidenceException) Error

func (*DetectedLanguageLowConfidenceException) ErrorCode

func (*DetectedLanguageLowConfidenceException) ErrorFault

func (*DetectedLanguageLowConfidenceException) ErrorMessage

type Directionality added in v1.7.0

type Directionality string
const (
	DirectionalityUni   Directionality = "UNI"
	DirectionalityMulti Directionality = "MULTI"
)

Enum values for Directionality

func (Directionality) Values added in v1.7.0

func (Directionality) Values() []Directionality

Values returns all known values for Directionality. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type DisplayLanguageCode added in v1.14.0

type DisplayLanguageCode string
const (
	DisplayLanguageCodeDe   DisplayLanguageCode = "de"
	DisplayLanguageCodeEn   DisplayLanguageCode = "en"
	DisplayLanguageCodeEs   DisplayLanguageCode = "es"
	DisplayLanguageCodeFr   DisplayLanguageCode = "fr"
	DisplayLanguageCodeIt   DisplayLanguageCode = "it"
	DisplayLanguageCodeJa   DisplayLanguageCode = "ja"
	DisplayLanguageCodeKo   DisplayLanguageCode = "ko"
	DisplayLanguageCodePt   DisplayLanguageCode = "pt"
	DisplayLanguageCodeZh   DisplayLanguageCode = "zh"
	DisplayLanguageCodeZhTw DisplayLanguageCode = "zh-TW"
)

Enum values for DisplayLanguageCode

func (DisplayLanguageCode) Values added in v1.14.0

Values returns all known values for DisplayLanguageCode. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Document added in v1.18.0

type Document struct {

	// The Content field type is Binary large object (blob). This object contains the
	// document content converted into base64-encoded binary data. If you use one of
	// the AWS SDKs, the SDK performs the Base64-encoding on this field before sending
	// the request.
	//
	// This member is required.
	Content []byte

	// Describes the format of the document. You can specify one of the following:
	//   - text/html - The input data consists of HTML content. Amazon Translate
	//   translates only the text in the HTML element.
	//   - text/plain - The input data consists of unformatted text. Amazon Translate
	//   translates every character in the content.
	//   - application/vnd.openxmlformats-officedocument.wordprocessingml.document -
	//   The input data consists of a Word document (.docx).
	//
	// This member is required.
	ContentType *string
	// contains filtered or unexported fields
}

The content and content type of a document.

type EncryptionKey

type EncryptionKey struct {

	// The Amazon Resource Name (ARN) of the encryption key being used to encrypt this
	// object.
	//
	// This member is required.
	Id *string

	// The type of encryption key used by Amazon Translate to encrypt this object.
	//
	// This member is required.
	Type EncryptionKeyType
	// contains filtered or unexported fields
}

The encryption key used to encrypt this object.

type EncryptionKeyType

type EncryptionKeyType string
const (
	EncryptionKeyTypeKms EncryptionKeyType = "KMS"
)

Enum values for EncryptionKeyType

func (EncryptionKeyType) Values added in v0.29.0

Values returns all known values for EncryptionKeyType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Formality added in v1.12.0

type Formality string
const (
	FormalityFormal   Formality = "FORMAL"
	FormalityInformal Formality = "INFORMAL"
)

Enum values for Formality

func (Formality) Values added in v1.12.0

func (Formality) Values() []Formality

Values returns all known values for Formality. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type InputDataConfig

type InputDataConfig struct {

	// Describes the format of the data that you submit to Amazon Translate as input.
	// You can specify one of the following multipurpose internet mail extension (MIME)
	// types:
	//   - text/html : The input data consists of one or more HTML files. Amazon
	//   Translate translates only the text that resides in the html element in each
	//   file.
	//   - text/plain : The input data consists of one or more unformatted text files.
	//   Amazon Translate translates every character in this type of input.
	//   - application/vnd.openxmlformats-officedocument.wordprocessingml.document :
	//   The input data consists of one or more Word documents (.docx).
	//   - application/vnd.openxmlformats-officedocument.presentationml.presentation :
	//   The input data consists of one or more PowerPoint Presentation files (.pptx).
	//   - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet : The
	//   input data consists of one or more Excel Workbook files (.xlsx).
	//   - application/x-xliff+xml : The input data consists of one or more XML
	//   Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate
	//   supports only XLIFF version 1.2.
	// If you structure your input data as HTML, ensure that you set this parameter to
	// text/html . By doing so, you cut costs by limiting the translation to the
	// contents of the html element in each file. Otherwise, if you set this parameter
	// to text/plain , your costs will cover the translation of every character.
	//
	// This member is required.
	ContentType *string

	// The URI of the AWS S3 folder that contains the input files. Amazon Translate
	// translates all the files in the folder and all its sub-folders. The folder must
	// be in the same Region as the API endpoint you are calling.
	//
	// This member is required.
	S3Uri *string
	// contains filtered or unexported fields
}

The input configuration properties for requesting a batch translation job.

type InternalServerException

type InternalServerException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

An internal server error occurred. Retry your request.

func (*InternalServerException) Error

func (e *InternalServerException) Error() string

func (*InternalServerException) ErrorCode

func (e *InternalServerException) ErrorCode() string

func (*InternalServerException) ErrorFault

func (e *InternalServerException) ErrorFault() smithy.ErrorFault

func (*InternalServerException) ErrorMessage

func (e *InternalServerException) ErrorMessage() string

type InvalidFilterException

type InvalidFilterException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The filter specified for the operation is not valid. Specify a different filter.

func (*InvalidFilterException) Error

func (e *InvalidFilterException) Error() string

func (*InvalidFilterException) ErrorCode

func (e *InvalidFilterException) ErrorCode() string

func (*InvalidFilterException) ErrorFault

func (e *InvalidFilterException) ErrorFault() smithy.ErrorFault

func (*InvalidFilterException) ErrorMessage

func (e *InvalidFilterException) ErrorMessage() string

type InvalidParameterValueException

type InvalidParameterValueException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The value of the parameter is not valid. Review the value of the parameter you are using to correct it, and then retry your operation.

func (*InvalidParameterValueException) Error

func (*InvalidParameterValueException) ErrorCode

func (e *InvalidParameterValueException) ErrorCode() string

func (*InvalidParameterValueException) ErrorFault

func (*InvalidParameterValueException) ErrorMessage

func (e *InvalidParameterValueException) ErrorMessage() string

type InvalidRequestException

type InvalidRequestException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request that you made is not valid. Check your request to determine why it's not valid and then retry the request.

func (*InvalidRequestException) Error

func (e *InvalidRequestException) Error() string

func (*InvalidRequestException) ErrorCode

func (e *InvalidRequestException) ErrorCode() string

func (*InvalidRequestException) ErrorFault

func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault

func (*InvalidRequestException) ErrorMessage

func (e *InvalidRequestException) ErrorMessage() string

type JobDetails

type JobDetails struct {

	// The number of documents that could not be processed during a translation job.
	DocumentsWithErrorsCount *int32

	// The number of documents used as input in a translation job.
	InputDocumentsCount *int32

	// The number of documents successfully processed during a translation job.
	TranslatedDocumentsCount *int32
	// contains filtered or unexported fields
}

The number of documents successfully and unsuccessfully processed during a translation job.

type JobStatus

type JobStatus string
const (
	JobStatusSubmitted          JobStatus = "SUBMITTED"
	JobStatusInProgress         JobStatus = "IN_PROGRESS"
	JobStatusCompleted          JobStatus = "COMPLETED"
	JobStatusCompletedWithError JobStatus = "COMPLETED_WITH_ERROR"
	JobStatusFailed             JobStatus = "FAILED"
	JobStatusStopRequested      JobStatus = "STOP_REQUESTED"
	JobStatusStopped            JobStatus = "STOPPED"
)

Enum values for JobStatus

func (JobStatus) Values added in v0.29.0

func (JobStatus) Values() []JobStatus

Values returns all known values for JobStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Language added in v1.14.0

type Language struct {

	// Language code for the supported language.
	//
	// This member is required.
	LanguageCode *string

	// Language name of the supported language.
	//
	// This member is required.
	LanguageName *string
	// contains filtered or unexported fields
}

A supported language.

type LimitExceededException

type LimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit.

func (*LimitExceededException) Error

func (e *LimitExceededException) Error() string

func (*LimitExceededException) ErrorCode

func (e *LimitExceededException) ErrorCode() string

func (*LimitExceededException) ErrorFault

func (e *LimitExceededException) ErrorFault() smithy.ErrorFault

func (*LimitExceededException) ErrorMessage

func (e *LimitExceededException) ErrorMessage() string

type MergeStrategy

type MergeStrategy string
const (
	MergeStrategyOverwrite MergeStrategy = "OVERWRITE"
)

Enum values for MergeStrategy

func (MergeStrategy) Values added in v0.29.0

func (MergeStrategy) Values() []MergeStrategy

Values returns all known values for MergeStrategy. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type OutputDataConfig

type OutputDataConfig struct {

	// The URI of the S3 folder that contains a translation job's output file. The
	// folder must be in the same Region as the API endpoint that you are calling.
	//
	// This member is required.
	S3Uri *string

	// The encryption key used to encrypt this object.
	EncryptionKey *EncryptionKey
	// contains filtered or unexported fields
}

The output configuration properties for a batch translation job.

type ParallelDataConfig added in v0.31.0

type ParallelDataConfig struct {

	// The format of the parallel data input file.
	Format ParallelDataFormat

	// The URI of the Amazon S3 folder that contains the parallel data input file. The
	// folder must be in the same Region as the API endpoint you are calling.
	S3Uri *string
	// contains filtered or unexported fields
}

Specifies the format and S3 location of the parallel data input file.

type ParallelDataDataLocation added in v0.31.0

type ParallelDataDataLocation struct {

	// The Amazon S3 location of the parallel data input file. The location is
	// returned as a presigned URL to that has a 30-minute expiration. Amazon Translate
	// doesn't scan all input files for the risk of CSV injection attacks. CSV
	// injection occurs when a .csv or .tsv file is altered so that a record contains
	// malicious code. The record begins with a special character, such as =, +, -, or
	// @. When the file is opened in a spreadsheet program, the program might interpret
	// the record as a formula and run the code within it. Before you download an input
	// file from Amazon S3, ensure that you recognize the file and trust its creator.
	//
	// This member is required.
	Location *string

	// Describes the repository that contains the parallel data input file.
	//
	// This member is required.
	RepositoryType *string
	// contains filtered or unexported fields
}

The location of the most recent parallel data input file that was successfully imported into Amazon Translate.

type ParallelDataFormat added in v0.31.0

type ParallelDataFormat string
const (
	ParallelDataFormatTsv ParallelDataFormat = "TSV"
	ParallelDataFormatCsv ParallelDataFormat = "CSV"
	ParallelDataFormatTmx ParallelDataFormat = "TMX"
)

Enum values for ParallelDataFormat

func (ParallelDataFormat) Values added in v0.31.0

Values returns all known values for ParallelDataFormat. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ParallelDataProperties added in v0.31.0

type ParallelDataProperties struct {

	// The Amazon Resource Name (ARN) of the parallel data resource.
	Arn *string

	// The time at which the parallel data resource was created.
	CreatedAt *time.Time

	// The description assigned to the parallel data resource.
	Description *string

	// The encryption key used to encrypt this object.
	EncryptionKey *EncryptionKey

	// The number of records unsuccessfully imported from the parallel data input file.
	FailedRecordCount *int64

	// The number of UTF-8 characters that Amazon Translate imported from the parallel
	// data input file. This number includes only the characters in your translation
	// examples. It does not include characters that are used to format your file. For
	// example, if you provided a Translation Memory Exchange (.tmx) file, this number
	// does not include the tags.
	ImportedDataSize *int64

	// The number of records successfully imported from the parallel data input file.
	ImportedRecordCount *int64

	// The time at which the parallel data resource was last updated.
	LastUpdatedAt *time.Time

	// The time that the most recent update was attempted.
	LatestUpdateAttemptAt *time.Time

	// The status of the most recent update attempt for the parallel data resource.
	LatestUpdateAttemptStatus ParallelDataStatus

	// Additional information from Amazon Translate about the parallel data resource.
	Message *string

	// The custom name assigned to the parallel data resource.
	Name *string

	// Specifies the format and S3 location of the parallel data input file.
	ParallelDataConfig *ParallelDataConfig

	// The number of items in the input file that Amazon Translate skipped when you
	// created or updated the parallel data resource. For example, Amazon Translate
	// skips empty records, empty target texts, and empty lines.
	SkippedRecordCount *int64

	// The source language of the translations in the parallel data file.
	SourceLanguageCode *string

	// The status of the parallel data resource. When the parallel data is ready for
	// you to use, the status is ACTIVE .
	Status ParallelDataStatus

	// The language codes for the target languages available in the parallel data
	// file. All possible target languages are returned as an array.
	TargetLanguageCodes []string
	// contains filtered or unexported fields
}

The properties of a parallel data resource.

type ParallelDataStatus added in v0.31.0

type ParallelDataStatus string
const (
	ParallelDataStatusCreating ParallelDataStatus = "CREATING"
	ParallelDataStatusUpdating ParallelDataStatus = "UPDATING"
	ParallelDataStatusActive   ParallelDataStatus = "ACTIVE"
	ParallelDataStatusDeleting ParallelDataStatus = "DELETING"
	ParallelDataStatusFailed   ParallelDataStatus = "FAILED"
)

Enum values for ParallelDataStatus

func (ParallelDataStatus) Values added in v0.31.0

Values returns all known values for ParallelDataStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Profanity added in v1.8.0

type Profanity string
const (
	ProfanityMask Profanity = "MASK"
)

Enum values for Profanity

func (Profanity) Values added in v1.8.0

func (Profanity) Values() []Profanity

Values returns all known values for Profanity. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ResourceNotFoundException

type ResourceNotFoundException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The resource you are looking for has not been found. Review the resource you're looking for and see if a different resource will accomplish your needs before retrying the revised request.

func (*ResourceNotFoundException) Error

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorFault

func (*ResourceNotFoundException) ErrorMessage

func (e *ResourceNotFoundException) ErrorMessage() string

type ServiceUnavailableException

type ServiceUnavailableException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The Amazon Translate service is temporarily unavailable. Wait a bit and then retry your request.

func (*ServiceUnavailableException) Error

func (*ServiceUnavailableException) ErrorCode

func (e *ServiceUnavailableException) ErrorCode() string

func (*ServiceUnavailableException) ErrorFault

func (*ServiceUnavailableException) ErrorMessage

func (e *ServiceUnavailableException) ErrorMessage() string

type Tag added in v1.15.0

type Tag struct {

	// The initial part of a key-value pair that forms a tag associated with a given
	// resource.
	//
	// This member is required.
	Key *string

	// The second part of a key-value pair that forms a tag associated with a given
	// resource.
	//
	// This member is required.
	Value *string
	// contains filtered or unexported fields
}

A key-value pair that adds as a metadata to a resource used by Amazon Translate.

type Term

type Term struct {

	// The source text of the term being translated by the custom terminology.
	SourceText *string

	// The target text of the term being translated by the custom terminology.
	TargetText *string
	// contains filtered or unexported fields
}

The term being translated by the custom terminology.

type TerminologyData

type TerminologyData struct {

	// The file containing the custom terminology data. Your version of the AWS SDK
	// performs a Base64-encoding on this field before sending a request to the AWS
	// service. Users of the SDK should not perform Base64-encoding themselves.
	//
	// This member is required.
	File []byte

	// The data format of the custom terminology.
	//
	// This member is required.
	Format TerminologyDataFormat

	// The directionality of your terminology resource indicates whether it has one
	// source language (uni-directional) or multiple (multi-directional). UNI The
	// terminology resource has one source language (for example, the first column in a
	// CSV file), and all of its other languages are target languages. MULTI Any
	// language in the terminology resource can be the source language or a target
	// language. A single multi-directional terminology resource can be used for jobs
	// that translate different language pairs. For example, if the terminology
	// contains English and Spanish terms, it can be used for jobs that translate
	// English to Spanish and Spanish to English. When you create a custom terminology
	// resource without specifying the directionality, it behaves as uni-directional
	// terminology, although this parameter will have a null value.
	Directionality Directionality
	// contains filtered or unexported fields
}

The data associated with the custom terminology. For information about the custom terminology file, see Creating a Custom Terminology (https://docs.aws.amazon.com/translate/latest/dg/creating-custom-terminology.html) .

type TerminologyDataFormat

type TerminologyDataFormat string
const (
	TerminologyDataFormatCsv TerminologyDataFormat = "CSV"
	TerminologyDataFormatTmx TerminologyDataFormat = "TMX"
	TerminologyDataFormatTsv TerminologyDataFormat = "TSV"
)

Enum values for TerminologyDataFormat

func (TerminologyDataFormat) Values added in v0.29.0

Values returns all known values for TerminologyDataFormat. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type TerminologyDataLocation

type TerminologyDataLocation struct {

	// The Amazon S3 location of the most recent custom terminology input file that
	// was successfully imported into Amazon Translate. The location is returned as a
	// presigned URL that has a 30-minute expiration . Amazon Translate doesn't scan
	// all input files for the risk of CSV injection attacks. CSV injection occurs when
	// a .csv or .tsv file is altered so that a record contains malicious code. The
	// record begins with a special character, such as =, +, -, or @. When the file is
	// opened in a spreadsheet program, the program might interpret the record as a
	// formula and run the code within it. Before you download an input file from
	// Amazon S3, ensure that you recognize the file and trust its creator.
	//
	// This member is required.
	Location *string

	// The repository type for the custom terminology data.
	//
	// This member is required.
	RepositoryType *string
	// contains filtered or unexported fields
}

The location of the custom terminology data.

type TerminologyProperties

type TerminologyProperties struct {

	// The Amazon Resource Name (ARN) of the custom terminology.
	Arn *string

	// The time at which the custom terminology was created, based on the timestamp.
	CreatedAt *time.Time

	// The description of the custom terminology properties.
	Description *string

	// The directionality of your terminology resource indicates whether it has one
	// source language (uni-directional) or multiple (multi-directional). UNI The
	// terminology resource has one source language (the first column in a CSV file),
	// and all of its other languages are target languages. MULTI Any language in the
	// terminology resource can be the source language.
	Directionality Directionality

	// The encryption key for the custom terminology.
	EncryptionKey *EncryptionKey

	// The format of the custom terminology input file.
	Format TerminologyDataFormat

	// The time at which the custom terminology was last update, based on the
	// timestamp.
	LastUpdatedAt *time.Time

	// Additional information from Amazon Translate about the terminology resource.
	Message *string

	// The name of the custom terminology.
	Name *string

	// The size of the file used when importing a custom terminology.
	SizeBytes *int32

	// The number of terms in the input file that Amazon Translate skipped when you
	// created or updated the terminology resource.
	SkippedTermCount *int32

	// The language code for the source text of the translation request for which the
	// custom terminology is being used.
	SourceLanguageCode *string

	// The language codes for the target languages available with the custom
	// terminology resource. All possible target languages are returned in array.
	TargetLanguageCodes []string

	// The number of terms included in the custom terminology.
	TermCount *int32
	// contains filtered or unexported fields
}

The properties of the custom terminology.

type TextSizeLimitExceededException

type TextSizeLimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request.

func (*TextSizeLimitExceededException) Error

func (*TextSizeLimitExceededException) ErrorCode

func (e *TextSizeLimitExceededException) ErrorCode() string

func (*TextSizeLimitExceededException) ErrorFault

func (*TextSizeLimitExceededException) ErrorMessage

func (e *TextSizeLimitExceededException) ErrorMessage() string

type TextTranslationJobFilter

type TextTranslationJobFilter struct {

	// Filters the list of jobs by name.
	JobName *string

	// Filters the list of jobs based by job status.
	JobStatus JobStatus

	// Filters the list of jobs based on the time that the job was submitted for
	// processing and returns only the jobs submitted after the specified time. Jobs
	// are returned in descending order, newest to oldest.
	SubmittedAfterTime *time.Time

	// Filters the list of jobs based on the time that the job was submitted for
	// processing and returns only the jobs submitted before the specified time. Jobs
	// are returned in ascending order, oldest to newest.
	SubmittedBeforeTime *time.Time
	// contains filtered or unexported fields
}

Provides information for filtering a list of translation jobs. For more information, see ListTextTranslationJobs .

type TextTranslationJobProperties

type TextTranslationJobProperties struct {

	// The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM)
	// role that granted Amazon Translate read access to the job's input data.
	DataAccessRoleArn *string

	// The time at which the translation job ended.
	EndTime *time.Time

	// The input configuration properties that were specified when the job was
	// requested.
	InputDataConfig *InputDataConfig

	// The number of documents successfully and unsuccessfully processed during the
	// translation job.
	JobDetails *JobDetails

	// The ID of the translation job.
	JobId *string

	// The user-defined name of the translation job.
	JobName *string

	// The status of the translation job.
	JobStatus JobStatus

	// An explanation of any errors that may have occurred during the translation job.
	Message *string

	// The output configuration properties that were specified when the job was
	// requested.
	OutputDataConfig *OutputDataConfig

	// A list containing the names of the parallel data resources applied to the
	// translation job.
	ParallelDataNames []string

	// Settings that modify the translation output.
	Settings *TranslationSettings

	// The language code of the language of the source text. The language must be a
	// language supported by Amazon Translate.
	SourceLanguageCode *string

	// The time at which the translation job was submitted.
	SubmittedTime *time.Time

	// The language code of the language of the target text. The language must be a
	// language supported by Amazon Translate.
	TargetLanguageCodes []string

	// A list containing the names of the terminologies applied to a translation job.
	// Only one terminology can be applied per StartTextTranslationJob request at this
	// time.
	TerminologyNames []string
	// contains filtered or unexported fields
}

Provides information about a translation job.

type TooManyRequestsException

type TooManyRequestsException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You have made too many requests within a short period of time. Wait for a short time and then try your request again.

func (*TooManyRequestsException) Error

func (e *TooManyRequestsException) Error() string

func (*TooManyRequestsException) ErrorCode

func (e *TooManyRequestsException) ErrorCode() string

func (*TooManyRequestsException) ErrorFault

func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault

func (*TooManyRequestsException) ErrorMessage

func (e *TooManyRequestsException) ErrorMessage() string

type TooManyTagsException added in v1.15.0

type TooManyTagsException struct {
	Message *string

	ErrorCodeOverride *string

	ResourceArn *string
	// contains filtered or unexported fields
}

You have added too many tags to this resource. The maximum is 50 tags.

func (*TooManyTagsException) Error added in v1.15.0

func (e *TooManyTagsException) Error() string

func (*TooManyTagsException) ErrorCode added in v1.15.0

func (e *TooManyTagsException) ErrorCode() string

func (*TooManyTagsException) ErrorFault added in v1.15.0

func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault

func (*TooManyTagsException) ErrorMessage added in v1.15.0

func (e *TooManyTagsException) ErrorMessage() string

type TranslatedDocument added in v1.18.0

type TranslatedDocument struct {

	// The document containing the translated content.
	//
	// This member is required.
	Content []byte
	// contains filtered or unexported fields
}

The translated content.

type TranslationSettings added in v1.8.0

type TranslationSettings struct {

	// When you turn on brevity, Amazon Translate reduces the length of the
	// translation output for most translations (when compared with the same
	// translation with brevity turned off). By default, brevity is turned off. If you
	// turn on brevity for a translation request with an unsupported language pair, the
	// translation proceeds with the brevity setting turned off. For the language pairs
	// that brevity supports, see Using brevity (https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-brevity)
	// in the Amazon Translate Developer Guide.
	Brevity Brevity

	// You can specify the desired level of formality for translations to supported
	// target languages. The formality setting controls the level of formal language
	// usage (also known as register (https://en.wikipedia.org/wiki/Register_(sociolinguistics))
	// ) in the translation output. You can set the value to informal or formal. If you
	// don't specify a value for formality, or if the target language doesn't support
	// formality, the translation will ignore the formality setting. If you specify
	// multiple target languages for the job, translate ignores the formality setting
	// for any unsupported target language. For a list of target languages that support
	// formality, see Supported languages (https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-formality.html#customizing-translations-formality-languages)
	// in the Amazon Translate Developer Guide.
	Formality Formality

	// You can enable the profanity setting if you want to mask profane words and
	// phrases in your translation output. To mask profane words and phrases, Amazon
	// Translate replaces them with the grawlix string “?$#@$“. This 5-character
	// sequence is used for each profane word or phrase, regardless of the length or
	// number of words. Amazon Translate doesn't detect profanity in all of its
	// supported languages. For languages that don't support profanity detection, see
	// Unsupported languages (https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-profanity.html#customizing-translations-profanity-languages)
	// in the Amazon Translate Developer Guide. If you specify multiple target
	// languages for the job, all the target languages must support profanity masking.
	// If any of the target languages don't support profanity masking, the translation
	// job won't mask profanity for any target language.
	Profanity Profanity
	// contains filtered or unexported fields
}

Settings to configure your translation output. You can configure the following options:

  • Brevity: reduces the length of the translation output for most translations. Available for TranslateText only.
  • Formality: sets the formality level of the translation output.
  • Profanity: masks profane words and phrases in the translation output.

type UnsupportedDisplayLanguageCodeException added in v1.14.0

type UnsupportedDisplayLanguageCodeException struct {
	Message *string

	ErrorCodeOverride *string

	DisplayLanguageCode *string
	// contains filtered or unexported fields
}

Requested display language code is not supported.

func (*UnsupportedDisplayLanguageCodeException) Error added in v1.14.0

func (*UnsupportedDisplayLanguageCodeException) ErrorCode added in v1.14.0

func (*UnsupportedDisplayLanguageCodeException) ErrorFault added in v1.14.0

func (*UnsupportedDisplayLanguageCodeException) ErrorMessage added in v1.14.0

type UnsupportedLanguagePairException

type UnsupportedLanguagePairException struct {
	Message *string

	ErrorCodeOverride *string

	SourceLanguageCode *string
	TargetLanguageCode *string
	// contains filtered or unexported fields
}

Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see Supported languages (https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html) .

func (*UnsupportedLanguagePairException) Error

func (*UnsupportedLanguagePairException) ErrorCode

func (*UnsupportedLanguagePairException) ErrorFault

func (*UnsupportedLanguagePairException) ErrorMessage

func (e *UnsupportedLanguagePairException) ErrorMessage() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL