Documentation
¶
Overview ¶
Package translate provides the API client, operations, and parameter types for Amazon Translate.
Provides translation of the input content from the source language to the target language.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) CreateParallelData(ctx context.Context, params *CreateParallelDataInput, optFns ...func(*Options)) (*CreateParallelDataOutput, error)
- func (c *Client) DeleteParallelData(ctx context.Context, params *DeleteParallelDataInput, optFns ...func(*Options)) (*DeleteParallelDataOutput, error)
- func (c *Client) DeleteTerminology(ctx context.Context, params *DeleteTerminologyInput, optFns ...func(*Options)) (*DeleteTerminologyOutput, error)
- func (c *Client) DescribeTextTranslationJob(ctx context.Context, params *DescribeTextTranslationJobInput, ...) (*DescribeTextTranslationJobOutput, error)
- func (c *Client) GetParallelData(ctx context.Context, params *GetParallelDataInput, optFns ...func(*Options)) (*GetParallelDataOutput, error)
- func (c *Client) GetTerminology(ctx context.Context, params *GetTerminologyInput, optFns ...func(*Options)) (*GetTerminologyOutput, error)
- func (c *Client) ImportTerminology(ctx context.Context, params *ImportTerminologyInput, optFns ...func(*Options)) (*ImportTerminologyOutput, error)
- func (c *Client) ListLanguages(ctx context.Context, params *ListLanguagesInput, optFns ...func(*Options)) (*ListLanguagesOutput, error)
- func (c *Client) ListParallelData(ctx context.Context, params *ListParallelDataInput, optFns ...func(*Options)) (*ListParallelDataOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) ListTerminologies(ctx context.Context, params *ListTerminologiesInput, optFns ...func(*Options)) (*ListTerminologiesOutput, error)
- func (c *Client) ListTextTranslationJobs(ctx context.Context, params *ListTextTranslationJobsInput, ...) (*ListTextTranslationJobsOutput, error)
- func (c *Client) Options() Options
- func (c *Client) StartTextTranslationJob(ctx context.Context, params *StartTextTranslationJobInput, ...) (*StartTextTranslationJobOutput, error)
- func (c *Client) StopTextTranslationJob(ctx context.Context, params *StopTextTranslationJobInput, ...) (*StopTextTranslationJobOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) TranslateDocument(ctx context.Context, params *TranslateDocumentInput, optFns ...func(*Options)) (*TranslateDocumentOutput, error)
- func (c *Client) TranslateText(ctx context.Context, params *TranslateTextInput, optFns ...func(*Options)) (*TranslateTextOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateParallelData(ctx context.Context, params *UpdateParallelDataInput, optFns ...func(*Options)) (*UpdateParallelDataOutput, error)
- type CreateParallelDataInput
- type CreateParallelDataOutput
- type DeleteParallelDataInput
- type DeleteParallelDataOutput
- type DeleteTerminologyInput
- type DeleteTerminologyOutput
- type DescribeTextTranslationJobInput
- type DescribeTextTranslationJobOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetParallelDataInput
- type GetParallelDataOutput
- type GetTerminologyInput
- type GetTerminologyOutput
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ImportTerminologyInput
- type ImportTerminologyOutput
- type ListLanguagesAPIClient
- type ListLanguagesInput
- type ListLanguagesOutput
- type ListLanguagesPaginator
- type ListLanguagesPaginatorOptions
- type ListParallelDataAPIClient
- type ListParallelDataInput
- type ListParallelDataOutput
- type ListParallelDataPaginator
- type ListParallelDataPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTerminologiesAPIClient
- type ListTerminologiesInput
- type ListTerminologiesOutput
- type ListTerminologiesPaginator
- type ListTerminologiesPaginatorOptions
- type ListTextTranslationJobsAPIClient
- type ListTextTranslationJobsInput
- type ListTextTranslationJobsOutput
- type ListTextTranslationJobsPaginator
- type ListTextTranslationJobsPaginatorOptions
- type Options
- type ResolveEndpoint
- type StartTextTranslationJobInput
- type StartTextTranslationJobOutput
- type StopTextTranslationJobInput
- type StopTextTranslationJobOutput
- type TagResourceInput
- type TagResourceOutput
- type TranslateDocumentInput
- type TranslateDocumentOutput
- type TranslateTextInput
- type TranslateTextOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateParallelDataInput
- type UpdateParallelDataOutput
Constants ¶
const ServiceAPIVersion = "2017-07-01"
const ServiceID = "Translate"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶ added in v1.0.0
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.19.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.21.2
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.21.2
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.21.2
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.21.2
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon Translate.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateParallelData ¶ added in v0.31.0
func (c *Client) CreateParallelData(ctx context.Context, params *CreateParallelDataInput, optFns ...func(*Options)) (*CreateParallelDataOutput, error)
Creates a parallel data resource in Amazon Translate by importing an input file from Amazon S3. Parallel data files contain examples that show how you want segments of text to be translated. By adding parallel data, you can influence the style, tone, and word choice in your translation output.
func (*Client) DeleteParallelData ¶ added in v0.31.0
func (c *Client) DeleteParallelData(ctx context.Context, params *DeleteParallelDataInput, optFns ...func(*Options)) (*DeleteParallelDataOutput, error)
Deletes a parallel data resource in Amazon Translate.
func (*Client) DeleteTerminology ¶
func (c *Client) DeleteTerminology(ctx context.Context, params *DeleteTerminologyInput, optFns ...func(*Options)) (*DeleteTerminologyOutput, error)
A synchronous action that deletes a custom terminology.
func (*Client) DescribeTextTranslationJob ¶
func (c *Client) DescribeTextTranslationJob(ctx context.Context, params *DescribeTextTranslationJobInput, optFns ...func(*Options)) (*DescribeTextTranslationJobOutput, error)
Gets the properties associated with an asynchronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.
func (*Client) GetParallelData ¶ added in v0.31.0
func (c *Client) GetParallelData(ctx context.Context, params *GetParallelDataInput, optFns ...func(*Options)) (*GetParallelDataOutput, error)
Provides information about a parallel data resource.
func (*Client) GetTerminology ¶
func (c *Client) GetTerminology(ctx context.Context, params *GetTerminologyInput, optFns ...func(*Options)) (*GetTerminologyOutput, error)
Retrieves a custom terminology.
func (*Client) ImportTerminology ¶
func (c *Client) ImportTerminology(ctx context.Context, params *ImportTerminologyInput, optFns ...func(*Options)) (*ImportTerminologyOutput, error)
Creates or updates a custom terminology, depending on whether 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. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.
func (*Client) ListLanguages ¶ added in v1.14.0
func (c *Client) ListLanguages(ctx context.Context, params *ListLanguagesInput, optFns ...func(*Options)) (*ListLanguagesOutput, error)
Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.
func (*Client) ListParallelData ¶ added in v0.31.0
func (c *Client) ListParallelData(ctx context.Context, params *ListParallelDataInput, optFns ...func(*Options)) (*ListParallelDataOutput, error)
Provides a list of your parallel data resources in Amazon Translate.
func (*Client) ListTagsForResource ¶ added in v1.15.0
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Lists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.
func (*Client) ListTerminologies ¶
func (c *Client) ListTerminologies(ctx context.Context, params *ListTerminologiesInput, optFns ...func(*Options)) (*ListTerminologiesOutput, error)
Provides a list of custom terminologies associated with your account.
func (*Client) ListTextTranslationJobs ¶
func (c *Client) ListTextTranslationJobs(ctx context.Context, params *ListTextTranslationJobsInput, optFns ...func(*Options)) (*ListTextTranslationJobsOutput, error)
Gets a list of the batch translation jobs that you have submitted.
func (*Client) Options ¶ added in v1.22.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) StartTextTranslationJob ¶
func (c *Client) StartTextTranslationJob(ctx context.Context, params *StartTextTranslationJobInput, optFns ...func(*Options)) (*StartTextTranslationJobOutput, error)
Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text across multiple documents at once. For batch translation, you can input documents with different source languages (specify auto as the source language). You can specify one or more target languages. Batch translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing.
Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJoboperation.
func (*Client) StopTextTranslationJob ¶
func (c *Client) StopTextTranslationJob(ctx context.Context, params *StopTextTranslationJobInput, optFns ...func(*Options)) (*StopTextTranslationJobOutput, error)
Stops an asynchronous batch translation job that is in progress.
If the job's state is IN_PROGRESS , the job will be marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state. Otherwise, the job is put into the STOPPED state.
Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use the DescribeTextTranslationJobor ListTextTranslationJobs operations to get a batch translation job's JobId .
func (*Client) TagResource ¶ added in v1.15.0
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.
func (*Client) TranslateDocument ¶ added in v1.18.0
func (c *Client) TranslateDocument(ctx context.Context, params *TranslateDocumentInput, optFns ...func(*Options)) (*TranslateDocumentOutput, error)
Translates the input document from the source language to the target language. This synchronous operation supports text, HTML, or Word documents as the input document.
TranslateDocument supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English).
If you set the Formality parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
func (*Client) TranslateText ¶
func (c *Client) TranslateText(ctx context.Context, params *TranslateTextInput, optFns ...func(*Options)) (*TranslateTextOutput, error)
Translates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.
func (*Client) UntagResource ¶ added in v1.15.0
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.
func (*Client) UpdateParallelData ¶ added in v0.31.0
func (c *Client) UpdateParallelData(ctx context.Context, params *UpdateParallelDataInput, optFns ...func(*Options)) (*UpdateParallelDataOutput, error)
Updates a previously created parallel data resource by importing a new input file from Amazon S3.
type CreateParallelDataInput ¶ added in v0.31.0
type CreateParallelDataInput struct { // A unique identifier for the request. This token is automatically generated when // you use Amazon Translate through an AWS SDK. // // This member is required. ClientToken *string // A custom name for the parallel data resource in Amazon Translate. You must // assign a name that is unique in the account and region. // // This member is required. Name *string // Specifies the format and S3 location of the parallel data input file. // // This member is required. ParallelDataConfig *types.ParallelDataConfig // A custom description for the parallel data resource in Amazon Translate. Description *string // The encryption key used to encrypt this object. EncryptionKey *types.EncryptionKey // Tags to be associated with this resource. A tag is a key-value pair that adds // metadata to a resource. Each tag key for the resource must be unique. For more // information, see [Tagging your resources]. // // [Tagging your resources]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html Tags []types.Tag // contains filtered or unexported fields }
type CreateParallelDataOutput ¶ added in v0.31.0
type CreateParallelDataOutput struct { // The custom name that you assigned to the parallel data resource. Name *string // The status of the parallel data resource. When the resource is ready for you to // use, the status is ACTIVE . Status types.ParallelDataStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteParallelDataInput ¶ added in v0.31.0
type DeleteParallelDataInput struct { // The name of the parallel data resource that is being deleted. // // This member is required. Name *string // contains filtered or unexported fields }
type DeleteParallelDataOutput ¶ added in v0.31.0
type DeleteParallelDataOutput struct { // The name of the parallel data resource that is being deleted. Name *string // The status of the parallel data deletion. Status types.ParallelDataStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteTerminologyInput ¶
type DeleteTerminologyInput struct { // The name of the custom terminology being deleted. // // This member is required. Name *string // contains filtered or unexported fields }
type DeleteTerminologyOutput ¶
type DeleteTerminologyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DescribeTextTranslationJobInput ¶
type DescribeTextTranslationJobInput struct { // The identifier that Amazon Translate generated for the job. The StartTextTranslationJob operation // returns this identifier in its response. // // This member is required. JobId *string // contains filtered or unexported fields }
type DescribeTextTranslationJobOutput ¶
type DescribeTextTranslationJobOutput struct { // An object that contains the properties associated with an asynchronous batch // translation job. TextTranslationJobProperties *types.TextTranslationJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.19.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.19.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.19.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶ added in v1.1.0
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶ added in v0.29.0
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.19.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.19.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetParallelDataInput ¶ added in v0.31.0
type GetParallelDataInput struct { // The name of the parallel data resource that is being retrieved. // // This member is required. Name *string // contains filtered or unexported fields }
type GetParallelDataOutput ¶ added in v0.31.0
type GetParallelDataOutput struct { // The Amazon S3 location of a file that provides any errors or warnings that were // produced by your input file. This file was created when Amazon Translate // attempted to create a parallel data resource. The location is returned as a // presigned URL to that has a 30-minute expiration. AuxiliaryDataLocation *types.ParallelDataDataLocation // The Amazon S3 location of the most recent parallel data 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. DataLocation *types.ParallelDataDataLocation // The Amazon S3 location of a file that provides any errors or warnings that were // produced by your input file. This file was created when Amazon Translate // attempted to update a parallel data resource. The location is returned as a // presigned URL to that has a 30-minute expiration. LatestUpdateAttemptAuxiliaryDataLocation *types.ParallelDataDataLocation // The properties of the parallel data resource that is being retrieved. ParallelDataProperties *types.ParallelDataProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetTerminologyInput ¶
type GetTerminologyInput struct { // The name of the custom terminology being retrieved. // // This member is required. Name *string // The data format of the custom terminology being retrieved. // // If you don't specify this parameter, Amazon Translate returns a file with the // same format as the file that was imported to create the terminology. // // If you specify this parameter when you retrieve a multi-directional terminology // resource, you must specify the same format as the input file that was imported // to create it. Otherwise, Amazon Translate throws an error. TerminologyDataFormat types.TerminologyDataFormat // contains filtered or unexported fields }
type GetTerminologyOutput ¶
type GetTerminologyOutput struct { // The Amazon S3 location of a file that provides any errors or warnings that were // produced by your input file. This file was created when Amazon Translate // attempted to create a terminology resource. The location is returned as a // presigned URL to that has a 30-minute expiration. AuxiliaryDataLocation *types.TerminologyDataLocation // 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. TerminologyDataLocation *types.TerminologyDataLocation // The properties of the custom terminology being retrieved. TerminologyProperties *types.TerminologyProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ImportTerminologyInput ¶
type ImportTerminologyInput struct { // The merge strategy of the custom terminology being imported. Currently, only // the OVERWRITE merge strategy is supported. In this case, the imported // terminology will overwrite an existing terminology of the same name. // // This member is required. MergeStrategy types.MergeStrategy // The name of the custom terminology being imported. // // This member is required. Name *string // The terminology data for the custom terminology being imported. // // This member is required. TerminologyData *types.TerminologyData // The description of the custom terminology being imported. Description *string // The encryption key for the custom terminology being imported. EncryptionKey *types.EncryptionKey // Tags to be associated with this resource. A tag is a key-value pair that adds // metadata to a resource. Each tag key for the resource must be unique. For more // information, see [Tagging your resources]. // // [Tagging your resources]: https://docs.aws.amazon.com/translate/latest/dg/tagging.html Tags []types.Tag // contains filtered or unexported fields }
type ImportTerminologyOutput ¶
type ImportTerminologyOutput struct { // The Amazon S3 location of a file that provides any errors or warnings that were // produced by your input file. This file was created when Amazon Translate // attempted to create a terminology resource. The location is returned as a // presigned URL to that has a 30 minute expiration. AuxiliaryDataLocation *types.TerminologyDataLocation // The properties of the custom terminology being imported. TerminologyProperties *types.TerminologyProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListLanguagesAPIClient ¶ added in v1.14.0
type ListLanguagesAPIClient interface {
ListLanguages(context.Context, *ListLanguagesInput, ...func(*Options)) (*ListLanguagesOutput, error)
}
ListLanguagesAPIClient is a client that implements the ListLanguages operation.
type ListLanguagesInput ¶ added in v1.14.0
type ListLanguagesInput struct { // The language code for the language to use to display the language names in the // response. The language code is en by default. DisplayLanguageCode types.DisplayLanguageCode // The maximum number of results to return in each response. MaxResults *int32 // Include the NextToken value to fetch the next group of supported languages. NextToken *string // contains filtered or unexported fields }
type ListLanguagesOutput ¶ added in v1.14.0
type ListLanguagesOutput struct { // The language code passed in with the request. DisplayLanguageCode types.DisplayLanguageCode // The list of supported languages. Languages []types.Language // If the response does not include all remaining results, use the NextToken in // the next request to fetch the next group of supported languages. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListLanguagesPaginator ¶ added in v1.14.0
type ListLanguagesPaginator struct {
// contains filtered or unexported fields
}
ListLanguagesPaginator is a paginator for ListLanguages
func NewListLanguagesPaginator ¶ added in v1.14.0
func NewListLanguagesPaginator(client ListLanguagesAPIClient, params *ListLanguagesInput, optFns ...func(*ListLanguagesPaginatorOptions)) *ListLanguagesPaginator
NewListLanguagesPaginator returns a new ListLanguagesPaginator
func (*ListLanguagesPaginator) HasMorePages ¶ added in v1.14.0
func (p *ListLanguagesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListLanguagesPaginator) NextPage ¶ added in v1.14.0
func (p *ListLanguagesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLanguagesOutput, error)
NextPage retrieves the next ListLanguages page.
type ListLanguagesPaginatorOptions ¶ added in v1.14.0
type ListLanguagesPaginatorOptions struct { // The maximum number of results to return in each response. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListLanguagesPaginatorOptions is the paginator options for ListLanguages
type ListParallelDataAPIClient ¶ added in v0.31.0
type ListParallelDataAPIClient interface {
ListParallelData(context.Context, *ListParallelDataInput, ...func(*Options)) (*ListParallelDataOutput, error)
}
ListParallelDataAPIClient is a client that implements the ListParallelData operation.
type ListParallelDataInput ¶ added in v0.31.0
type ListParallelDataOutput ¶ added in v0.31.0
type ListParallelDataOutput struct { // The string to use in a subsequent request to get the next page of results in a // paginated response. This value is null if there are no additional pages. NextToken *string // The properties of the parallel data resources returned by this request. ParallelDataPropertiesList []types.ParallelDataProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListParallelDataPaginator ¶ added in v0.31.0
type ListParallelDataPaginator struct {
// contains filtered or unexported fields
}
ListParallelDataPaginator is a paginator for ListParallelData
func NewListParallelDataPaginator ¶ added in v0.31.0
func NewListParallelDataPaginator(client ListParallelDataAPIClient, params *ListParallelDataInput, optFns ...func(*ListParallelDataPaginatorOptions)) *ListParallelDataPaginator
NewListParallelDataPaginator returns a new ListParallelDataPaginator
func (*ListParallelDataPaginator) HasMorePages ¶ added in v0.31.0
func (p *ListParallelDataPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListParallelDataPaginator) NextPage ¶ added in v0.31.0
func (p *ListParallelDataPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListParallelDataOutput, error)
NextPage retrieves the next ListParallelData page.
type ListParallelDataPaginatorOptions ¶ added in v0.31.0
type ListParallelDataPaginatorOptions struct { // The maximum number of parallel data resources returned for each request. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListParallelDataPaginatorOptions is the paginator options for ListParallelData
type ListTagsForResourceInput ¶ added in v1.15.0
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the given Amazon Translate resource you are // querying. // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶ added in v1.15.0
type ListTagsForResourceOutput struct { // Tags associated with the Amazon Translate resource being queried. A tag is a // key-value pair that adds as a metadata to a resource used by Amazon Translate. // For example, a tag with "Sales" as the key might be added to a resource to // indicate its use by the sales department. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTerminologiesAPIClient ¶ added in v0.30.0
type ListTerminologiesAPIClient interface {
ListTerminologies(context.Context, *ListTerminologiesInput, ...func(*Options)) (*ListTerminologiesOutput, error)
}
ListTerminologiesAPIClient is a client that implements the ListTerminologies operation.
type ListTerminologiesInput ¶
type ListTerminologiesInput struct { // The maximum number of custom terminologies returned per list request. MaxResults *int32 // If the result of the request to ListTerminologies was truncated, include the // NextToken to fetch the next group of custom terminologies. NextToken *string // contains filtered or unexported fields }
type ListTerminologiesOutput ¶
type ListTerminologiesOutput struct { // If the response to the ListTerminologies was truncated, the NextToken fetches // the next group of custom terminologies. NextToken *string // The properties list of the custom terminologies returned on the list request. TerminologyPropertiesList []types.TerminologyProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTerminologiesPaginator ¶ added in v0.30.0
type ListTerminologiesPaginator struct {
// contains filtered or unexported fields
}
ListTerminologiesPaginator is a paginator for ListTerminologies
func NewListTerminologiesPaginator ¶ added in v0.30.0
func NewListTerminologiesPaginator(client ListTerminologiesAPIClient, params *ListTerminologiesInput, optFns ...func(*ListTerminologiesPaginatorOptions)) *ListTerminologiesPaginator
NewListTerminologiesPaginator returns a new ListTerminologiesPaginator
func (*ListTerminologiesPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListTerminologiesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListTerminologiesPaginator) NextPage ¶ added in v0.30.0
func (p *ListTerminologiesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTerminologiesOutput, error)
NextPage retrieves the next ListTerminologies page.
type ListTerminologiesPaginatorOptions ¶ added in v0.30.0
type ListTerminologiesPaginatorOptions struct { // The maximum number of custom terminologies returned per list request. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListTerminologiesPaginatorOptions is the paginator options for ListTerminologies
type ListTextTranslationJobsAPIClient ¶ added in v0.30.0
type ListTextTranslationJobsAPIClient interface {
ListTextTranslationJobs(context.Context, *ListTextTranslationJobsInput, ...func(*Options)) (*ListTextTranslationJobsOutput, error)
}
ListTextTranslationJobsAPIClient is a client that implements the ListTextTranslationJobs operation.
type ListTextTranslationJobsInput ¶
type ListTextTranslationJobsInput struct { // The parameters that specify which batch translation jobs to retrieve. Filters // include job name, job status, and submission time. You can only set one filter // at a time. Filter *types.TextTranslationJobFilter // The maximum number of results to return in each page. The default value is 100. MaxResults *int32 // The token to request the next page of results. NextToken *string // contains filtered or unexported fields }
type ListTextTranslationJobsOutput ¶
type ListTextTranslationJobsOutput struct { // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. NextToken *string // A list containing the properties of each job that is returned. TextTranslationJobPropertiesList []types.TextTranslationJobProperties // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListTextTranslationJobsPaginator ¶ added in v0.30.0
type ListTextTranslationJobsPaginator struct {
// contains filtered or unexported fields
}
ListTextTranslationJobsPaginator is a paginator for ListTextTranslationJobs
func NewListTextTranslationJobsPaginator ¶ added in v0.30.0
func NewListTextTranslationJobsPaginator(client ListTextTranslationJobsAPIClient, params *ListTextTranslationJobsInput, optFns ...func(*ListTextTranslationJobsPaginatorOptions)) *ListTextTranslationJobsPaginator
NewListTextTranslationJobsPaginator returns a new ListTextTranslationJobsPaginator
func (*ListTextTranslationJobsPaginator) HasMorePages ¶ added in v0.30.0
func (p *ListTextTranslationJobsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListTextTranslationJobsPaginator) NextPage ¶ added in v0.30.0
func (p *ListTextTranslationJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTextTranslationJobsOutput, error)
NextPage retrieves the next ListTextTranslationJobs page.
type ListTextTranslationJobsPaginatorOptions ¶ added in v0.30.0
type ListTextTranslationJobsPaginatorOptions struct { // The maximum number of results to return in each page. The default value is 100. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListTextTranslationJobsPaginatorOptions is the paginator options for ListTextTranslationJobs
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // The client meter provider. MeterProvider metrics.MeterProvider // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The client tracer provider. TracerProvider tracing.TracerProvider // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.21.2
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type StartTextTranslationJobInput ¶
type StartTextTranslationJobInput struct { // A unique identifier for the request. This token is generated for you when using // the Amazon Translate SDK. // // This member is required. ClientToken *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]. // // [Identity and access management]: https://docs.aws.amazon.com/translate/latest/dg/identity-and-access-management.html // // This member is required. DataAccessRoleArn *string // Specifies the format and location of the input documents for the translation // job. // // This member is required. InputDataConfig *types.InputDataConfig // Specifies the S3 folder to which your job output will be saved. // // This member is required. OutputDataConfig *types.OutputDataConfig // The language code of the input language. Specify the language if all input // documents share the same language. If you don't know the language of the source // files, or your input documents contains different source languages, select auto // . Amazon Translate auto detects the source language for each input document. For // a list of supported language codes, see [Supported languages]. // // [Supported languages]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html // // This member is required. SourceLanguageCode *string // The target languages of the translation job. Enter up to 10 language codes. // Each input file is translated into each target language. // // Each language code is 2 or 5 characters long. For a list of language codes, see [Supported languages] // . // // [Supported languages]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html // // This member is required. TargetLanguageCodes []string // The name of the batch translation job to be performed. JobName *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. If you specify multiple target languages for the job, the parallel // data file must include translations for all the target languages. // // 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 your translations with parallel data]. // // [Customizing your translations with parallel data]: https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-parallel-data.html // [Amazon Translate pricing]: http://aws.amazon.com/translate/pricing/ ParallelDataNames []string // Settings to configure your translation output. You can configure the following // options: // // - Brevity: not supported. // // - Formality: sets the formality level of the output text. // // - Profanity: masks profane words and phrases in your translation output. Settings *types.TranslationSettings // 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. // // If you specify multiple target languages for the job, translate uses the // designated terminology for each requested target language that has an entry for // the source term in the terminology file. // // For a list of available custom terminology resources, use the ListTerminologies operation. // // For more information, see [Custom terminology]. // // [Custom terminology]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html TerminologyNames []string // contains filtered or unexported fields }
type StartTextTranslationJobOutput ¶
type StartTextTranslationJobOutput struct { // The identifier generated for the job. To get the status of a job, use this ID // with the DescribeTextTranslationJoboperation. JobId *string // The status of the job. Possible values include: // // - SUBMITTED - The job has been received and is queued for processing. // // - IN_PROGRESS - Amazon Translate is processing the job. // // - COMPLETED - The job was successfully completed and the output is available. // // - COMPLETED_WITH_ERROR - The job was completed with errors. The errors can be // analyzed in the job's output. // // - FAILED - The job did not complete. To get details, use the DescribeTextTranslationJoboperation. // // - STOP_REQUESTED - The user who started the job has requested that it be // stopped. // // - STOPPED - The job has been stopped. JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type StopTextTranslationJobInput ¶
type StopTextTranslationJobInput struct { // The job ID of the job to be stopped. // // This member is required. JobId *string // contains filtered or unexported fields }
type StopTextTranslationJobOutput ¶
type StopTextTranslationJobOutput struct { // The job ID of the stopped batch translation job. JobId *string // The status of the designated job. Upon successful completion, the job's status // will be STOPPED . JobStatus types.JobStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TagResourceInput ¶ added in v1.15.0
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the given Amazon Translate resource to which // you want to associate the tags. // // This member is required. ResourceArn *string // Tags being associated with a specific Amazon Translate resource. There can be a // maximum of 50 tags (both existing and pending) associated with a specific // resource. // // This member is required. Tags []types.Tag // contains filtered or unexported fields }
type TagResourceOutput ¶ added in v1.15.0
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TranslateDocumentInput ¶ added in v1.18.0
type TranslateDocumentInput struct { // The content and content type for the document to be translated. The document // size must not exceed 100 KB. // // This member is required. Document *types.Document // The language code for the language of the source text. For a list of supported // language codes, see [Supported languages]. // // To have Amazon Translate determine the source language of your text, you can // specify auto in the SourceLanguageCode field. If you specify auto , Amazon // Translate will call [Amazon Comprehend]to determine the source language. // // If you specify auto , you must send the TranslateDocument request in a region // that supports Amazon Comprehend. Otherwise, the request returns an error // indicating that autodetect is not supported. // // [Supported languages]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html // [Amazon Comprehend]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html // // This member is required. SourceLanguageCode *string // The language code requested for the translated document. For a list of // supported language codes, see [Supported languages]. // // [Supported languages]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html // // This member is required. TargetLanguageCode *string // Settings to configure your translation output. You can configure the following // options: // // - Brevity: not supported. // // - Formality: sets the formality level of the output text. // // - Profanity: masks profane words and phrases in your translation output. Settings *types.TranslationSettings // The name of a terminology list file to add to the translation job. This file // provides source terms and the desired translation for each term. A terminology // list can contain a maximum of 256 terms. You can use one custom terminology // resource in your translation request. // // Use the ListTerminologies operation to get the available terminology lists. // // For more information about custom terminology lists, see [Custom terminology]. // // [Custom terminology]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html TerminologyNames []string // contains filtered or unexported fields }
type TranslateDocumentOutput ¶ added in v1.18.0
type TranslateDocumentOutput struct { // The language code of the source document. // // This member is required. SourceLanguageCode *string // The language code of the translated document. // // This member is required. TargetLanguageCode *string // The document containing the translated content. The document format matches the // source document format. // // This member is required. TranslatedDocument *types.TranslatedDocument // 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. AppliedSettings *types.TranslationSettings // The names of the custom terminologies applied to the input text by Amazon // Translate to produce the translated text document. AppliedTerminologies []types.AppliedTerminology // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type TranslateTextInput ¶
type TranslateTextInput struct { // The language code for the language of the source text. For a list of language // codes, see [Supported languages]. // // To have Amazon Translate determine the source language of your text, you can // specify auto in the SourceLanguageCode field. If you specify auto , Amazon // Translate will call [Amazon Comprehend]to determine the source language. // // If you specify auto , you must send the TranslateText request in a region that // supports Amazon Comprehend. Otherwise, the request returns an error indicating // that autodetect is not supported. // // [Supported languages]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html // [Amazon Comprehend]: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html // // This member is required. SourceLanguageCode *string // The language code requested for the language of the target text. For a list of // language codes, see [Supported languages]. // // [Supported languages]: https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html // // This member is required. TargetLanguageCode *string // The text to translate. The text string can be a maximum of 10,000 bytes long. // Depending on your character set, this may be fewer than 10,000 characters. // // This member is required. Text *string // Settings to configure your translation output. You can configure the following // options: // // - Brevity: reduces the length of the translated output for most translations. // // - Formality: sets the formality level of the output text. // // - Profanity: masks profane words and phrases in your translation output. Settings *types.TranslationSettings // The name of a terminology list file to add to the translation job. This file // provides source terms and the desired translation for each term. A terminology // list can contain a maximum of 256 terms. You can use one custom terminology // resource in your translation request. // // Use the ListTerminologies operation to get the available terminology lists. // // For more information about custom terminology lists, see [Custom terminology]. // // [Custom terminology]: https://docs.aws.amazon.com/translate/latest/dg/how-custom-terminology.html TerminologyNames []string // contains filtered or unexported fields }
type TranslateTextOutput ¶
type TranslateTextOutput struct { // The language code for the language of the source text. // // This member is required. SourceLanguageCode *string // The language code for the language of the target text. // // This member is required. TargetLanguageCode *string // The translated text. // // This member is required. TranslatedText *string // Optional settings that modify the translation output. AppliedSettings *types.TranslationSettings // The names of the custom terminologies applied to the input text by Amazon // Translate for the translated text response. AppliedTerminologies []types.AppliedTerminology // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶ added in v1.15.0
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the given Amazon Translate resource from // which you want to remove the tags. // // This member is required. ResourceArn *string // The initial part of a key-value pair that forms a tag being removed from a // given resource. Keys must be unique and cannot be duplicated for a particular // resource. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶ added in v1.15.0
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateParallelDataInput ¶ added in v0.31.0
type UpdateParallelDataInput struct { // A unique identifier for the request. This token is automatically generated when // you use Amazon Translate through an AWS SDK. // // This member is required. ClientToken *string // The name of the parallel data resource being updated. // // This member is required. Name *string // Specifies the format and S3 location of the parallel data input file. // // This member is required. ParallelDataConfig *types.ParallelDataConfig // A custom description for the parallel data resource in Amazon Translate. Description *string // contains filtered or unexported fields }
type UpdateParallelDataOutput ¶ added in v0.31.0
type UpdateParallelDataOutput struct { // The time that the most recent update was attempted. LatestUpdateAttemptAt *time.Time // The status of the parallel data update attempt. When the updated parallel data // resource is ready for you to use, the status is ACTIVE . LatestUpdateAttemptStatus types.ParallelDataStatus // The name of the parallel data resource being updated. Name *string // The status of the parallel data resource that you are attempting to update. // Your update request is accepted only if this status is either ACTIVE or FAILED . Status types.ParallelDataStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files
¶
- api_client.go
- api_op_CreateParallelData.go
- api_op_DeleteParallelData.go
- api_op_DeleteTerminology.go
- api_op_DescribeTextTranslationJob.go
- api_op_GetParallelData.go
- api_op_GetTerminology.go
- api_op_ImportTerminology.go
- api_op_ListLanguages.go
- api_op_ListParallelData.go
- api_op_ListTagsForResource.go
- api_op_ListTerminologies.go
- api_op_ListTextTranslationJobs.go
- api_op_StartTextTranslationJob.go
- api_op_StopTextTranslationJob.go
- api_op_TagResource.go
- api_op_TranslateDocument.go
- api_op_TranslateText.go
- api_op_UntagResource.go
- api_op_UpdateParallelData.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go