@aws-sdk/client-translate 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/Translate.js +1 -6
- package/{dist/cjs → dist-cjs}/TranslateClient.js +8 -18
- package/{dist/cjs → dist-cjs}/commands/CreateParallelDataCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/DeleteParallelDataCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteTerminologyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeTextTranslationJobCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetParallelDataCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetTerminologyCommand.js +2 -27
- package/dist-cjs/commands/ImportTerminologyCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/ListParallelDataCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTerminologiesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTextTranslationJobsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StartTextTranslationJobCommand.js +2 -34
- package/{dist/cjs → dist-cjs}/commands/StopTextTranslationJobCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/TranslateTextCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/UpdateParallelDataCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -163
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListParallelDataPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListTerminologiesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListTextTranslationJobsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/Translate.js +1 -2
- package/{dist/es → dist-es}/TranslateClient.js +1 -2
- package/{dist/es → dist-es}/commands/CreateParallelDataCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteParallelDataCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteTerminologyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeTextTranslationJobCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetParallelDataCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetTerminologyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ImportTerminologyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListParallelDataCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTerminologiesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTextTranslationJobsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StartTextTranslationJobCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StopTextTranslationJobCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TranslateTextCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateParallelDataCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListParallelDataPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListTerminologiesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListTextTranslationJobsPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/Translate.d.ts +2 -2
- package/{dist/types → dist-types}/TranslateClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateParallelDataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteParallelDataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteTerminologyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeTextTranslationJobCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetParallelDataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTerminologyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ImportTerminologyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListParallelDataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTerminologiesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTextTranslationJobsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartTextTranslationJobCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StopTextTranslationJobCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TranslateTextCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateParallelDataCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListParallelDataPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTerminologiesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTextTranslationJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Translate.d.ts +17 -74
- package/{dist/types → dist-types}/ts3.4/TranslateClient.d.ts +32 -98
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DeleteParallelDataCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetParallelDataCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/GetTerminologyCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +700 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListParallelDataPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTerminologiesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTextTranslationJobsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/Translate.ts +0 -552
- package/TranslateClient.ts +0 -290
- package/commands/CreateParallelDataCommand.ts +0 -97
- package/commands/DeleteParallelDataCommand.ts +0 -94
- package/commands/DeleteTerminologyCommand.ts +0 -94
- package/commands/DescribeTextTranslationJobCommand.ts +0 -98
- package/commands/GetParallelDataCommand.ts +0 -94
- package/commands/GetTerminologyCommand.ts +0 -94
- package/commands/ImportTerminologyCommand.ts +0 -101
- package/commands/ListParallelDataCommand.ts +0 -94
- package/commands/ListTerminologiesCommand.ts +0 -94
- package/commands/ListTextTranslationJobsCommand.ts +0 -94
- package/commands/StartTextTranslationJobCommand.ts +0 -101
- package/commands/StopTextTranslationJobCommand.ts +0 -100
- package/commands/TranslateTextCommand.ts +0 -95
- package/commands/UpdateParallelDataCommand.ts +0 -95
- package/dist/cjs/Translate.js.map +0 -1
- package/dist/cjs/TranslateClient.js.map +0 -1
- package/dist/cjs/commands/CreateParallelDataCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteParallelDataCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTerminologyCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeTextTranslationJobCommand.js.map +0 -1
- package/dist/cjs/commands/GetParallelDataCommand.js.map +0 -1
- package/dist/cjs/commands/GetTerminologyCommand.js.map +0 -1
- package/dist/cjs/commands/ImportTerminologyCommand.js +0 -68
- package/dist/cjs/commands/ImportTerminologyCommand.js.map +0 -1
- package/dist/cjs/commands/ListParallelDataCommand.js.map +0 -1
- package/dist/cjs/commands/ListTerminologiesCommand.js.map +0 -1
- package/dist/cjs/commands/ListTextTranslationJobsCommand.js.map +0 -1
- package/dist/cjs/commands/StartTextTranslationJobCommand.js.map +0 -1
- package/dist/cjs/commands/StopTextTranslationJobCommand.js.map +0 -1
- package/dist/cjs/commands/TranslateTextCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateParallelDataCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListParallelDataPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTerminologiesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Translate.js.map +0 -1
- package/dist/es/TranslateClient.js.map +0 -1
- package/dist/es/commands/CreateParallelDataCommand.js.map +0 -1
- package/dist/es/commands/DeleteParallelDataCommand.js.map +0 -1
- package/dist/es/commands/DeleteTerminologyCommand.js.map +0 -1
- package/dist/es/commands/DescribeTextTranslationJobCommand.js.map +0 -1
- package/dist/es/commands/GetParallelDataCommand.js.map +0 -1
- package/dist/es/commands/GetTerminologyCommand.js.map +0 -1
- package/dist/es/commands/ImportTerminologyCommand.js.map +0 -1
- package/dist/es/commands/ListParallelDataCommand.js.map +0 -1
- package/dist/es/commands/ListTerminologiesCommand.js.map +0 -1
- package/dist/es/commands/ListTextTranslationJobsCommand.js.map +0 -1
- package/dist/es/commands/StartTextTranslationJobCommand.js.map +0 -1
- package/dist/es/commands/StopTextTranslationJobCommand.js.map +0 -1
- package/dist/es/commands/TranslateTextCommand.js.map +0 -1
- package/dist/es/commands/UpdateParallelDataCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -22
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListParallelDataPaginator.js.map +0 -1
- package/dist/es/pagination/ListTerminologiesPaginator.js.map +0 -1
- package/dist/es/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/CreateParallelDataCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DeleteTerminologyCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ImportTerminologyCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/ListParallelDataCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTerminologiesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/TranslateTextCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UpdateParallelDataCommand.d.ts +0 -36
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1304
- package/endpoints.ts +0 -77
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1625
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListParallelDataPaginator.ts +0 -58
- package/pagination/ListTerminologiesPaginator.ts +0 -58
- package/pagination/ListTextTranslationJobsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -2522
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
34
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
35
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
47
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
7
54
|
|
|
8
55
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Translate = void 0;
|
|
4
|
-
const TranslateClient_1 = require("./TranslateClient");
|
|
5
4
|
const CreateParallelDataCommand_1 = require("./commands/CreateParallelDataCommand");
|
|
6
5
|
const DeleteParallelDataCommand_1 = require("./commands/DeleteParallelDataCommand");
|
|
7
6
|
const DeleteTerminologyCommand_1 = require("./commands/DeleteTerminologyCommand");
|
|
@@ -16,10 +15,7 @@ const StartTextTranslationJobCommand_1 = require("./commands/StartTextTranslatio
|
|
|
16
15
|
const StopTextTranslationJobCommand_1 = require("./commands/StopTextTranslationJobCommand");
|
|
17
16
|
const TranslateTextCommand_1 = require("./commands/TranslateTextCommand");
|
|
18
17
|
const UpdateParallelDataCommand_1 = require("./commands/UpdateParallelDataCommand");
|
|
19
|
-
|
|
20
|
-
* <p>Provides translation between one source language and another of the same set of
|
|
21
|
-
* languages.</p>
|
|
22
|
-
*/
|
|
18
|
+
const TranslateClient_1 = require("./TranslateClient");
|
|
23
19
|
class Translate extends TranslateClient_1.TranslateClient {
|
|
24
20
|
createParallelData(args, optionsOrCb, cb) {
|
|
25
21
|
const command = new CreateParallelDataCommand_1.CreateParallelDataCommand(args);
|
|
@@ -219,4 +215,3 @@ class Translate extends TranslateClient_1.TranslateClient {
|
|
|
219
215
|
}
|
|
220
216
|
}
|
|
221
217
|
exports.Translate = Translate;
|
|
222
|
-
//# sourceMappingURL=Translate.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TranslateClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
@@ -10,19 +9,16 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
10
9
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
|
-
|
|
14
|
-
* <p>Provides translation between one source language and another of the same set of
|
|
15
|
-
* languages.</p>
|
|
16
|
-
*/
|
|
12
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
13
|
class TranslateClient extends smithy_client_1.Client {
|
|
18
14
|
constructor(configuration) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
+
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
+
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
26
22
|
super(_config_6);
|
|
27
23
|
this.config = _config_6;
|
|
28
24
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -32,14 +28,8 @@ class TranslateClient extends smithy_client_1.Client {
|
|
|
32
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
33
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
34
30
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
37
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
38
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
39
|
-
*/
|
|
40
31
|
destroy() {
|
|
41
32
|
super.destroy();
|
|
42
33
|
}
|
|
43
34
|
}
|
|
44
35
|
exports.TranslateClient = TranslateClient;
|
|
45
|
-
//# sourceMappingURL=TranslateClient.js.map
|
|
@@ -1,42 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateParallelDataCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Amazon S3. Parallel data files contain examples of source phrases and their translations from
|
|
11
|
-
* your translation memory. By adding parallel data, you can influence the style, tone, and word
|
|
12
|
-
* choice in your translation output.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { TranslateClient, CreateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
17
|
-
* // const { TranslateClient, CreateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
18
|
-
* const client = new TranslateClient(config);
|
|
19
|
-
* const command = new CreateParallelDataCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link CreateParallelDataCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link CreateParallelDataCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
28
8
|
class CreateParallelDataCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -61,4 +34,3 @@ class CreateParallelDataCommand extends smithy_client_1.Command {
|
|
|
61
34
|
}
|
|
62
35
|
}
|
|
63
36
|
exports.CreateParallelDataCommand = CreateParallelDataCommand;
|
|
64
|
-
//# sourceMappingURL=CreateParallelDataCommand.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteParallelDataCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, DeleteParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, DeleteParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new DeleteParallelDataCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteParallelDataCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class DeleteParallelDataCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class DeleteParallelDataCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.DeleteParallelDataCommand = DeleteParallelDataCommand;
|
|
61
|
-
//# sourceMappingURL=DeleteParallelDataCommand.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteTerminologyCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, DeleteTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, DeleteTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new DeleteTerminologyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DeleteTerminologyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class DeleteTerminologyCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class DeleteTerminologyCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.DeleteTerminologyCommand = DeleteTerminologyCommand;
|
|
61
|
-
//# sourceMappingURL=DeleteTerminologyCommand.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DescribeTextTranslationJobCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* ID, status, source and target languages, input/output S3 buckets, and so on.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, DescribeTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, DescribeTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new DescribeTextTranslationJobCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeTextTranslationJobCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
26
8
|
class DescribeTextTranslationJobCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -59,4 +34,3 @@ class DescribeTextTranslationJobCommand extends smithy_client_1.Command {
|
|
|
59
34
|
}
|
|
60
35
|
}
|
|
61
36
|
exports.DescribeTextTranslationJobCommand = DescribeTextTranslationJobCommand;
|
|
62
|
-
//# sourceMappingURL=DescribeTextTranslationJobCommand.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetParallelDataCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, GetParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, GetParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new GetParallelDataCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link GetParallelDataCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link GetParallelDataCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class GetParallelDataCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class GetParallelDataCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.GetParallelDataCommand = GetParallelDataCommand;
|
|
61
|
-
//# sourceMappingURL=GetParallelDataCommand.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetTerminologyCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, GetTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, GetTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new GetTerminologyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link GetTerminologyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link GetTerminologyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class GetTerminologyCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class GetTerminologyCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.GetTerminologyCommand = GetTerminologyCommand;
|
|
61
|
-
//# sourceMappingURL=GetTerminologyCommand.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImportTerminologyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ImportTerminologyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "TranslateClient";
|
|
18
|
+
const commandName = "ImportTerminologyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ImportTerminologyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ImportTerminologyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1ImportTerminologyCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1ImportTerminologyCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ImportTerminologyCommand = ImportTerminologyCommand;
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListParallelDataCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, ListParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, ListParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new ListParallelDataCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link ListParallelDataCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link ListParallelDataCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class ListParallelDataCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class ListParallelDataCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.ListParallelDataCommand = ListParallelDataCommand;
|
|
61
|
-
//# sourceMappingURL=ListParallelDataCommand.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListTerminologiesCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, ListTerminologiesCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, ListTerminologiesCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new ListTerminologiesCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link ListTerminologiesCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link ListTerminologiesCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class ListTerminologiesCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class ListTerminologiesCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.ListTerminologiesCommand = ListTerminologiesCommand;
|
|
61
|
-
//# sourceMappingURL=ListTerminologiesCommand.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListTextTranslationJobsCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { TranslateClient, ListTextTranslationJobsCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
14
|
-
* // const { TranslateClient, ListTextTranslationJobsCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
15
|
-
* const client = new TranslateClient(config);
|
|
16
|
-
* const command = new ListTextTranslationJobsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link ListTextTranslationJobsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link ListTextTranslationJobsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
25
8
|
class ListTextTranslationJobsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class ListTextTranslationJobsCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.ListTextTranslationJobsCommand = ListTextTranslationJobsCommand;
|
|
61
|
-
//# sourceMappingURL=ListTextTranslationJobsCommand.js.map
|
|
@@ -1,46 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StartTextTranslationJobCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* translate large volumes of text across multiple documents at once. For more information, see
|
|
11
|
-
* <a>async</a>.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>Batch translation jobs can be described with the <a>DescribeTextTranslationJob</a> operation, listed with the <a>ListTextTranslationJobs</a> operation, and stopped with the <a>StopTextTranslationJob</a> operation.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>Amazon Translate does not support batch translation of multiple source languages at once.</p>
|
|
16
|
-
* </note>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { TranslateClient, StartTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
21
|
-
* // const { TranslateClient, StartTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
22
|
-
* const client = new TranslateClient(config);
|
|
23
|
-
* const command = new StartTextTranslationJobCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link StartTextTranslationJobCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link StartTextTranslationJobCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
32
8
|
class StartTextTranslationJobCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -65,4 +34,3 @@ class StartTextTranslationJobCommand extends smithy_client_1.Command {
|
|
|
65
34
|
}
|
|
66
35
|
}
|
|
67
36
|
exports.StartTextTranslationJobCommand = StartTextTranslationJobCommand;
|
|
68
|
-
//# sourceMappingURL=StartTextTranslationJobCommand.js.map
|