@aws-sdk/client-translate 3.533.0 → 3.540.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +0 -3
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-types/Translate.d.ts +5 -1
- package/dist-types/TranslateClient.d.ts +1 -1
- package/dist-types/commands/CreateParallelDataCommand.d.ts +2 -1
- package/dist-types/commands/DeleteParallelDataCommand.d.ts +2 -1
- package/dist-types/commands/DeleteTerminologyCommand.d.ts +2 -1
- package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +2 -1
- package/dist-types/commands/GetParallelDataCommand.d.ts +2 -1
- package/dist-types/commands/GetTerminologyCommand.d.ts +2 -1
- package/dist-types/commands/ImportTerminologyCommand.d.ts +2 -1
- package/dist-types/commands/ListLanguagesCommand.d.ts +2 -1
- package/dist-types/commands/ListParallelDataCommand.d.ts +2 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ListTerminologiesCommand.d.ts +2 -1
- package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +2 -1
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +2 -1
- package/dist-types/commands/StopTextTranslationJobCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/TranslateDocumentCommand.d.ts +2 -1
- package/dist-types/commands/TranslateTextCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateParallelDataCommand.d.ts +2 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +220 -220
- package/dist-types/ts3.4/Translate.d.ts +4 -0
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListLanguagesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/TranslateDocumentCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/package.json +40 -40
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
+
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
5
6
|
const ruleset_1 = require("./ruleset");
|
|
6
7
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
|
-
return (0,
|
|
8
|
+
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
8
9
|
endpointParams: endpointParams,
|
|
9
10
|
logger: context.logger,
|
|
10
11
|
});
|
|
11
12
|
};
|
|
12
13
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
|
+
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1787,9 +1787,6 @@ var paginateListTerminologies = (0, import_core.createPaginator)(TranslateClient
|
|
|
1787
1787
|
// src/pagination/ListTextTranslationJobsPaginator.ts
|
|
1788
1788
|
|
|
1789
1789
|
var paginateListTextTranslationJobs = (0, import_core.createPaginator)(TranslateClient, ListTextTranslationJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1790
|
-
|
|
1791
|
-
// src/index.ts
|
|
1792
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1793
1790
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1794
1791
|
|
|
1795
1792
|
0 && (module.exports = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
3
|
import { ruleSet } from "./ruleset";
|
|
3
4
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
5
|
return resolveEndpoint(ruleSet, {
|
|
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
|
6
7
|
logger: context.logger,
|
|
7
8
|
});
|
|
8
9
|
};
|
|
10
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-es/index.js
CHANGED
|
@@ -65,12 +65,14 @@ export interface Translate {
|
|
|
65
65
|
/**
|
|
66
66
|
* @see {@link ListLanguagesCommand}
|
|
67
67
|
*/
|
|
68
|
+
listLanguages(): Promise<ListLanguagesCommandOutput>;
|
|
68
69
|
listLanguages(args: ListLanguagesCommandInput, options?: __HttpHandlerOptions): Promise<ListLanguagesCommandOutput>;
|
|
69
70
|
listLanguages(args: ListLanguagesCommandInput, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
|
|
70
71
|
listLanguages(args: ListLanguagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
|
|
71
72
|
/**
|
|
72
73
|
* @see {@link ListParallelDataCommand}
|
|
73
74
|
*/
|
|
75
|
+
listParallelData(): Promise<ListParallelDataCommandOutput>;
|
|
74
76
|
listParallelData(args: ListParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<ListParallelDataCommandOutput>;
|
|
75
77
|
listParallelData(args: ListParallelDataCommandInput, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
|
|
76
78
|
listParallelData(args: ListParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
|
|
@@ -83,12 +85,14 @@ export interface Translate {
|
|
|
83
85
|
/**
|
|
84
86
|
* @see {@link ListTerminologiesCommand}
|
|
85
87
|
*/
|
|
88
|
+
listTerminologies(): Promise<ListTerminologiesCommandOutput>;
|
|
86
89
|
listTerminologies(args: ListTerminologiesCommandInput, options?: __HttpHandlerOptions): Promise<ListTerminologiesCommandOutput>;
|
|
87
90
|
listTerminologies(args: ListTerminologiesCommandInput, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
|
|
88
91
|
listTerminologies(args: ListTerminologiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
|
|
89
92
|
/**
|
|
90
93
|
* @see {@link ListTextTranslationJobsCommand}
|
|
91
94
|
*/
|
|
95
|
+
listTextTranslationJobs(): Promise<ListTextTranslationJobsCommandOutput>;
|
|
92
96
|
listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListTextTranslationJobsCommandOutput>;
|
|
93
97
|
listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
|
|
94
98
|
listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
|
|
@@ -136,8 +140,8 @@ export interface Translate {
|
|
|
136
140
|
updateParallelData(args: UpdateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
|
|
137
141
|
}
|
|
138
142
|
/**
|
|
139
|
-
* @public
|
|
140
143
|
* <p>Provides translation of the input content from the source language to the target language.</p>
|
|
144
|
+
* @public
|
|
141
145
|
*/
|
|
142
146
|
export declare class Translate extends TranslateClient implements Translate {
|
|
143
147
|
}
|
|
@@ -170,8 +170,8 @@ export type TranslateClientResolvedConfigType = __SmithyResolvedConfiguration<__
|
|
|
170
170
|
export interface TranslateClientResolvedConfig extends TranslateClientResolvedConfigType {
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
* @public
|
|
174
173
|
* <p>Provides translation of the input content from the source language to the target language.</p>
|
|
174
|
+
* @public
|
|
175
175
|
*/
|
|
176
176
|
export declare class TranslateClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig> {
|
|
177
177
|
/**
|
|
@@ -22,10 +22,10 @@ export interface CreateParallelDataCommandOutput extends CreateParallelDataRespo
|
|
|
22
22
|
}
|
|
23
23
|
declare const CreateParallelDataCommand_base: {
|
|
24
24
|
new (input: CreateParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<CreateParallelDataCommandInput, CreateParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: CreateParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<CreateParallelDataCommandInput, CreateParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Creates a parallel data resource in Amazon Translate by importing an input file from
|
|
30
30
|
* Amazon S3. Parallel data files contain examples that show how you want segments of text to be
|
|
31
31
|
* translated. By adding parallel data, you can influence the style, tone, and word choice in
|
|
@@ -102,6 +102,7 @@ declare const CreateParallelDataCommand_base: {
|
|
|
102
102
|
* @throws {@link TranslateServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
104
104
|
*
|
|
105
|
+
* @public
|
|
105
106
|
*/
|
|
106
107
|
export declare class CreateParallelDataCommand extends CreateParallelDataCommand_base {
|
|
107
108
|
}
|
|
@@ -22,10 +22,10 @@ export interface DeleteParallelDataCommandOutput extends DeleteParallelDataRespo
|
|
|
22
22
|
}
|
|
23
23
|
declare const DeleteParallelDataCommand_base: {
|
|
24
24
|
new (input: DeleteParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DeleteParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Deletes a parallel data resource in Amazon Translate.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -70,6 +70,7 @@ declare const DeleteParallelDataCommand_base: {
|
|
|
70
70
|
* @throws {@link TranslateServiceException}
|
|
71
71
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
72
72
|
*
|
|
73
|
+
* @public
|
|
73
74
|
*/
|
|
74
75
|
export declare class DeleteParallelDataCommand extends DeleteParallelDataCommand_base {
|
|
75
76
|
}
|
|
@@ -22,10 +22,10 @@ export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
|
|
|
22
22
|
}
|
|
23
23
|
declare const DeleteTerminologyCommand_base: {
|
|
24
24
|
new (input: DeleteTerminologyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DeleteTerminologyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>A synchronous action that deletes a custom terminology.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -67,6 +67,7 @@ declare const DeleteTerminologyCommand_base: {
|
|
|
67
67
|
* @throws {@link TranslateServiceException}
|
|
68
68
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
69
69
|
*
|
|
70
|
+
* @public
|
|
70
71
|
*/
|
|
71
72
|
export declare class DeleteTerminologyCommand extends DeleteTerminologyCommand_base {
|
|
72
73
|
}
|
|
@@ -22,10 +22,10 @@ export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTra
|
|
|
22
22
|
}
|
|
23
23
|
declare const DescribeTextTranslationJobCommand_base: {
|
|
24
24
|
new (input: DescribeTextTranslationJobCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: DescribeTextTranslationJobCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Gets the properties associated with an asynchronous batch translation job including name,
|
|
30
30
|
* ID, status, source and target languages, input/output S3 buckets, and so on.</p>
|
|
31
31
|
* @example
|
|
@@ -105,6 +105,7 @@ declare const DescribeTextTranslationJobCommand_base: {
|
|
|
105
105
|
* @throws {@link TranslateServiceException}
|
|
106
106
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
107
107
|
*
|
|
108
|
+
* @public
|
|
108
109
|
*/
|
|
109
110
|
export declare class DescribeTextTranslationJobCommand extends DescribeTextTranslationJobCommand_base {
|
|
110
111
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetParallelDataCommandOutput extends GetParallelDataResponse, _
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetParallelDataCommand_base: {
|
|
24
24
|
new (input: GetParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetParallelDataCommandInput, GetParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetParallelDataCommandInput, GetParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Provides information about a parallel data resource.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -107,6 +107,7 @@ declare const GetParallelDataCommand_base: {
|
|
|
107
107
|
* @throws {@link TranslateServiceException}
|
|
108
108
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
109
109
|
*
|
|
110
|
+
* @public
|
|
110
111
|
*/
|
|
111
112
|
export declare class GetParallelDataCommand extends GetParallelDataCommand_base {
|
|
112
113
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetTerminologyCommandOutput extends GetTerminologyResponse, __M
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetTerminologyCommand_base: {
|
|
24
24
|
new (input: GetTerminologyCommandInput): import("@smithy/smithy-client").CommandImpl<GetTerminologyCommandInput, GetTerminologyCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetTerminologyCommandInput): import("@smithy/smithy-client").CommandImpl<GetTerminologyCommandInput, GetTerminologyCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Retrieves a custom terminology.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -98,6 +98,7 @@ declare const GetTerminologyCommand_base: {
|
|
|
98
98
|
* @throws {@link TranslateServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
100
100
|
*
|
|
101
|
+
* @public
|
|
101
102
|
*/
|
|
102
103
|
export declare class GetTerminologyCommand extends GetTerminologyCommand_base {
|
|
103
104
|
}
|
|
@@ -22,10 +22,10 @@ export interface ImportTerminologyCommandOutput extends ImportTerminologyRespons
|
|
|
22
22
|
}
|
|
23
23
|
declare const ImportTerminologyCommand_base: {
|
|
24
24
|
new (input: ImportTerminologyCommandInput): import("@smithy/smithy-client").CommandImpl<ImportTerminologyCommandInput, ImportTerminologyCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ImportTerminologyCommandInput): import("@smithy/smithy-client").CommandImpl<ImportTerminologyCommandInput, ImportTerminologyCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Creates or updates a custom terminology, depending on whether one already exists for the
|
|
30
30
|
* given terminology name. Importing a terminology with the same name as an existing one will
|
|
31
31
|
* merge the terminologies based on the chosen merge strategy. The only supported merge strategy
|
|
@@ -123,6 +123,7 @@ declare const ImportTerminologyCommand_base: {
|
|
|
123
123
|
* @throws {@link TranslateServiceException}
|
|
124
124
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
125
125
|
*
|
|
126
|
+
* @public
|
|
126
127
|
*/
|
|
127
128
|
export declare class ImportTerminologyCommand extends ImportTerminologyCommand_base {
|
|
128
129
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListLanguagesCommandOutput extends ListLanguagesResponse, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListLanguagesCommand_base: {
|
|
24
24
|
new (input: ListLanguagesCommandInput): import("@smithy/smithy-client").CommandImpl<ListLanguagesCommandInput, ListLanguagesCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListLanguagesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListLanguagesCommandInput, ListLanguagesCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -76,6 +76,7 @@ declare const ListLanguagesCommand_base: {
|
|
|
76
76
|
* @throws {@link TranslateServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
78
78
|
*
|
|
79
|
+
* @public
|
|
79
80
|
*/
|
|
80
81
|
export declare class ListLanguagesCommand extends ListLanguagesCommand_base {
|
|
81
82
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListParallelDataCommandOutput extends ListParallelDataResponse,
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListParallelDataCommand_base: {
|
|
24
24
|
new (input: ListParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<ListParallelDataCommandInput, ListParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListParallelDataCommandInput]): import("@smithy/smithy-client").CommandImpl<ListParallelDataCommandInput, ListParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Provides a list of your parallel data resources in Amazon Translate.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -94,6 +94,7 @@ declare const ListParallelDataCommand_base: {
|
|
|
94
94
|
* @throws {@link TranslateServiceException}
|
|
95
95
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
96
96
|
*
|
|
97
|
+
* @public
|
|
97
98
|
*/
|
|
98
99
|
export declare class ListParallelDataCommand extends ListParallelDataCommand_base {
|
|
99
100
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListTagsForResourceCommand_base: {
|
|
24
24
|
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Lists all tags associated with a given Amazon Translate resource.
|
|
30
30
|
* For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/tagging.html">
|
|
31
31
|
* Tagging your resources</a>.</p>
|
|
@@ -72,6 +72,7 @@ declare const ListTagsForResourceCommand_base: {
|
|
|
72
72
|
* @throws {@link TranslateServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
74
74
|
*
|
|
75
|
+
* @public
|
|
75
76
|
*/
|
|
76
77
|
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
77
78
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListTerminologiesCommandOutput extends ListTerminologiesRespons
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListTerminologiesCommand_base: {
|
|
24
24
|
new (input: ListTerminologiesCommandInput): import("@smithy/smithy-client").CommandImpl<ListTerminologiesCommandInput, ListTerminologiesCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListTerminologiesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListTerminologiesCommandInput, ListTerminologiesCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Provides a list of custom terminologies associated with your account.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -88,6 +88,7 @@ declare const ListTerminologiesCommand_base: {
|
|
|
88
88
|
* @throws {@link TranslateServiceException}
|
|
89
89
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
90
90
|
*
|
|
91
|
+
* @public
|
|
91
92
|
*/
|
|
92
93
|
export declare class ListTerminologiesCommand extends ListTerminologiesCommand_base {
|
|
93
94
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListTextTranslationJobsCommandOutput extends ListTextTranslatio
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListTextTranslationJobsCommand_base: {
|
|
24
24
|
new (input: ListTextTranslationJobsCommandInput): import("@smithy/smithy-client").CommandImpl<ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [ListTextTranslationJobsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListTextTranslationJobsCommandInput, ListTextTranslationJobsCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Gets a list of the batch translation jobs that you have submitted.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -116,6 +116,7 @@ declare const ListTextTranslationJobsCommand_base: {
|
|
|
116
116
|
* @throws {@link TranslateServiceException}
|
|
117
117
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
118
118
|
*
|
|
119
|
+
* @public
|
|
119
120
|
*/
|
|
120
121
|
export declare class ListTextTranslationJobsCommand extends ListTextTranslationJobsCommand_base {
|
|
121
122
|
}
|
|
@@ -22,10 +22,10 @@ export interface StartTextTranslationJobCommandOutput extends StartTextTranslati
|
|
|
22
22
|
}
|
|
23
23
|
declare const StartTextTranslationJobCommand_base: {
|
|
24
24
|
new (input: StartTextTranslationJobCommandInput): import("@smithy/smithy-client").CommandImpl<StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: StartTextTranslationJobCommandInput): import("@smithy/smithy-client").CommandImpl<StartTextTranslationJobCommandInput, StartTextTranslationJobCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Starts an asynchronous batch translation job. Use batch translation jobs to
|
|
30
30
|
* translate large volumes of text across multiple documents at once.
|
|
31
31
|
* For batch translation, you can input documents with different source languages (specify <code>auto</code>
|
|
@@ -114,6 +114,7 @@ declare const StartTextTranslationJobCommand_base: {
|
|
|
114
114
|
* @throws {@link TranslateServiceException}
|
|
115
115
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
116
116
|
*
|
|
117
|
+
* @public
|
|
117
118
|
*/
|
|
118
119
|
export declare class StartTextTranslationJobCommand extends StartTextTranslationJobCommand_base {
|
|
119
120
|
}
|
|
@@ -22,10 +22,10 @@ export interface StopTextTranslationJobCommandOutput extends StopTextTranslation
|
|
|
22
22
|
}
|
|
23
23
|
declare const StopTextTranslationJobCommand_base: {
|
|
24
24
|
new (input: StopTextTranslationJobCommandInput): import("@smithy/smithy-client").CommandImpl<StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: StopTextTranslationJobCommandInput): import("@smithy/smithy-client").CommandImpl<StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Stops an asynchronous batch translation job that is in progress.</p>
|
|
30
30
|
* <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and
|
|
31
31
|
* put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped,
|
|
@@ -72,6 +72,7 @@ declare const StopTextTranslationJobCommand_base: {
|
|
|
72
72
|
* @throws {@link TranslateServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
74
74
|
*
|
|
75
|
+
* @public
|
|
75
76
|
*/
|
|
76
77
|
export declare class StopTextTranslationJobCommand extends StopTextTranslationJobCommand_base {
|
|
77
78
|
}
|
|
@@ -22,10 +22,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
22
22
|
}
|
|
23
23
|
declare const TagResourceCommand_base: {
|
|
24
24
|
new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Associates a specific tag with a resource. A tag is a key-value pair
|
|
30
30
|
* that adds as a metadata to a resource.
|
|
31
31
|
* For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/tagging.html">
|
|
@@ -79,6 +79,7 @@ declare const TagResourceCommand_base: {
|
|
|
79
79
|
* @throws {@link TranslateServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
81
81
|
*
|
|
82
|
+
* @public
|
|
82
83
|
*/
|
|
83
84
|
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
84
85
|
}
|
|
@@ -22,10 +22,10 @@ export interface TranslateDocumentCommandOutput extends TranslateDocumentRespons
|
|
|
22
22
|
}
|
|
23
23
|
declare const TranslateDocumentCommand_base: {
|
|
24
24
|
new (input: TranslateDocumentCommandInput): import("@smithy/smithy-client").CommandImpl<TranslateDocumentCommandInput, TranslateDocumentCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: TranslateDocumentCommandInput): import("@smithy/smithy-client").CommandImpl<TranslateDocumentCommandInput, TranslateDocumentCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Translates the input document from the source language to the target language.
|
|
30
30
|
* This synchronous operation supports text, HTML, or Word documents as the input document.
|
|
31
31
|
*
|
|
@@ -124,6 +124,7 @@ declare const TranslateDocumentCommand_base: {
|
|
|
124
124
|
* @throws {@link TranslateServiceException}
|
|
125
125
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
126
126
|
*
|
|
127
|
+
* @public
|
|
127
128
|
*/
|
|
128
129
|
export declare class TranslateDocumentCommand extends TranslateDocumentCommand_base {
|
|
129
130
|
}
|
|
@@ -22,10 +22,10 @@ export interface TranslateTextCommandOutput extends TranslateTextResponse, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const TranslateTextCommand_base: {
|
|
24
24
|
new (input: TranslateTextCommandInput): import("@smithy/smithy-client").CommandImpl<TranslateTextCommandInput, TranslateTextCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: TranslateTextCommandInput): import("@smithy/smithy-client").CommandImpl<TranslateTextCommandInput, TranslateTextCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Translates input text from the source language to the target language. For a list of
|
|
30
30
|
* available languages and language codes, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>.</p>
|
|
31
31
|
* @example
|
|
@@ -116,6 +116,7 @@ declare const TranslateTextCommand_base: {
|
|
|
116
116
|
* @throws {@link TranslateServiceException}
|
|
117
117
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
118
118
|
*
|
|
119
|
+
* @public
|
|
119
120
|
*/
|
|
120
121
|
export declare class TranslateTextCommand extends TranslateTextCommand_base {
|
|
121
122
|
}
|
|
@@ -22,10 +22,10 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
22
22
|
}
|
|
23
23
|
declare const UntagResourceCommand_base: {
|
|
24
24
|
new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Removes a specific tag associated with an Amazon Translate resource.
|
|
30
30
|
* For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/tagging.html">
|
|
31
31
|
* Tagging your resources</a>.</p>
|
|
@@ -72,6 +72,7 @@ declare const UntagResourceCommand_base: {
|
|
|
72
72
|
* @throws {@link TranslateServiceException}
|
|
73
73
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
74
74
|
*
|
|
75
|
+
* @public
|
|
75
76
|
*/
|
|
76
77
|
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
77
78
|
}
|
|
@@ -22,10 +22,10 @@ export interface UpdateParallelDataCommandOutput extends UpdateParallelDataRespo
|
|
|
22
22
|
}
|
|
23
23
|
declare const UpdateParallelDataCommand_base: {
|
|
24
24
|
new (input: UpdateParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: UpdateParallelDataCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput, TranslateClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Updates a previously created parallel data resource by importing a new input file from
|
|
30
30
|
* Amazon S3.</p>
|
|
31
31
|
* @example
|
|
@@ -94,6 +94,7 @@ declare const UpdateParallelDataCommand_base: {
|
|
|
94
94
|
* @throws {@link TranslateServiceException}
|
|
95
95
|
* <p>Base exception class for all service exceptions from Translate service.</p>
|
|
96
96
|
*
|
|
97
|
+
* @public
|
|
97
98
|
*/
|
|
98
99
|
export declare class UpdateParallelDataCommand extends UpdateParallelDataCommand_base {
|
|
99
100
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -11,5 +11,4 @@ export { TranslateExtensionConfiguration } from "./extensionConfiguration";
|
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
13
|
export * from "./models";
|
|
14
|
-
import "@aws-sdk/util-endpoints";
|
|
15
14
|
export { TranslateServiceException } from "./models/TranslateServiceException";
|