@aws-sdk/client-translate 3.35.0 → 3.38.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/Translate.js +0 -5
- package/dist-cjs/TranslateClient.js +0 -10
- package/dist-cjs/commands/CreateParallelDataCommand.js +0 -28
- package/dist-cjs/commands/DeleteParallelDataCommand.js +0 -25
- package/dist-cjs/commands/DeleteTerminologyCommand.js +0 -25
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +0 -26
- package/dist-cjs/commands/GetParallelDataCommand.js +0 -25
- package/dist-cjs/commands/GetTerminologyCommand.js +0 -25
- package/dist-cjs/commands/ImportTerminologyCommand.js +0 -32
- package/dist-cjs/commands/ListParallelDataCommand.js +0 -25
- package/dist-cjs/commands/ListTerminologiesCommand.js +0 -25
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +0 -25
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +0 -32
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +0 -31
- package/dist-cjs/commands/TranslateTextCommand.js +0 -26
- package/dist-cjs/commands/UpdateParallelDataCommand.js +0 -26
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -21
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -163
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListParallelDataPaginator.js +0 -11
- package/dist-cjs/pagination/ListTerminologiesPaginator.js +0 -11
- package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Translate.js +0 -1
- package/dist-es/TranslateClient.js +0 -1
- package/dist-es/commands/CreateParallelDataCommand.js +0 -1
- package/dist-es/commands/DeleteParallelDataCommand.js +0 -1
- package/dist-es/commands/DeleteTerminologyCommand.js +0 -1
- package/dist-es/commands/DescribeTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/GetParallelDataCommand.js +0 -1
- package/dist-es/commands/GetTerminologyCommand.js +0 -1
- package/dist-es/commands/ImportTerminologyCommand.js +0 -1
- package/dist-es/commands/ListParallelDataCommand.js +0 -1
- package/dist-es/commands/ListTerminologiesCommand.js +0 -1
- package/dist-es/commands/ListTextTranslationJobsCommand.js +0 -1
- package/dist-es/commands/StartTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/StopTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/TranslateTextCommand.js +0 -1
- package/dist-es/commands/UpdateParallelDataCommand.js +0 -1
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -21
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListParallelDataPaginator.js +0 -1
- package/dist-es/pagination/ListTerminologiesPaginator.js +0 -1
- package/dist-es/pagination/ListTextTranslationJobsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/index.d.ts +4 -20
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/Translate.d.ts +15 -72
- package/dist-types/ts3.4/TranslateClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/index.d.ts +4 -20
- package/dist-types/ts3.4/models/models_0.d.ts +220 -824
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- 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.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/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.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- 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/jest.config.js +0 -4
- package/src/Translate.ts +0 -553
- package/src/TranslateClient.ts +0 -291
- package/src/commands/CreateParallelDataCommand.ts +0 -98
- package/src/commands/DeleteParallelDataCommand.ts +0 -95
- package/src/commands/DeleteTerminologyCommand.ts +0 -95
- package/src/commands/DescribeTextTranslationJobCommand.ts +0 -99
- package/src/commands/GetParallelDataCommand.ts +0 -95
- package/src/commands/GetTerminologyCommand.ts +0 -95
- package/src/commands/ImportTerminologyCommand.ts +0 -102
- package/src/commands/ListParallelDataCommand.ts +0 -95
- package/src/commands/ListTerminologiesCommand.ts +0 -95
- package/src/commands/ListTextTranslationJobsCommand.ts +0 -95
- package/src/commands/StartTextTranslationJobCommand.ts +0 -102
- package/src/commands/StopTextTranslationJobCommand.ts +0 -101
- package/src/commands/TranslateTextCommand.ts +0 -96
- package/src/commands/UpdateParallelDataCommand.ts +0 -96
- package/src/endpoints.ts +0 -77
- package/src/index.ts +0 -21
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1625
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListParallelDataPaginator.ts +0 -59
- package/src/pagination/ListTerminologiesPaginator.ts +0 -59
- package/src/pagination/ListTextTranslationJobsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2523
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
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.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
12
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **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))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **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))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* 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))
|
|
46
|
+
* **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))
|
|
47
|
+
* **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))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
7
54
|
|
|
8
55
|
|
package/dist-cjs/Translate.js
CHANGED
|
@@ -16,10 +16,6 @@ const StopTextTranslationJobCommand_1 = require("./commands/StopTextTranslationJ
|
|
|
16
16
|
const TranslateTextCommand_1 = require("./commands/TranslateTextCommand");
|
|
17
17
|
const UpdateParallelDataCommand_1 = require("./commands/UpdateParallelDataCommand");
|
|
18
18
|
const TranslateClient_1 = require("./TranslateClient");
|
|
19
|
-
/**
|
|
20
|
-
* <p>Provides translation between one source language and another of the same set of
|
|
21
|
-
* languages.</p>
|
|
22
|
-
*/
|
|
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
|
|
@@ -10,10 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p>Provides translation between one source language and another of the same set of
|
|
15
|
-
* languages.</p>
|
|
16
|
-
*/
|
|
17
13
|
class TranslateClient extends smithy_client_1.Client {
|
|
18
14
|
constructor(configuration) {
|
|
19
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -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
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a parallel data resource in Amazon Translate by importing an input file from
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a parallel data resource in Amazon Translate.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>A synchronous action that deletes a custom terminology.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets the properties associated with an asycnhronous batch translation job including name,
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Provides information about a parallel data resource.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieves a custom terminology.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates or updates a custom terminology, depending on whether or not one already exists
|
|
10
|
-
* for the given terminology name. Importing a terminology with the same name as an existing one
|
|
11
|
-
* will merge the terminologies based on the chosen merge strategy. Currently, the only supported
|
|
12
|
-
* merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing
|
|
13
|
-
* terminology of the same name.</p>
|
|
14
|
-
* <p>If you import a terminology that overwrites an existing one, the new terminology take up
|
|
15
|
-
* to 10 minutes to fully propagate and be available for use in a translation due to cache
|
|
16
|
-
* policies with the DataPlane service that performs the translations.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { TranslateClient, ImportTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
21
|
-
* // const { TranslateClient, ImportTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
22
|
-
* const client = new TranslateClient(config);
|
|
23
|
-
* const command = new ImportTerminologyCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link ImportTerminologyCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link ImportTerminologyCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class ImportTerminologyCommand 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 ImportTerminologyCommand extends smithy_client_1.Command {
|
|
|
65
34
|
}
|
|
66
35
|
}
|
|
67
36
|
exports.ImportTerminologyCommand = ImportTerminologyCommand;
|
|
68
|
-
//# sourceMappingURL=ImportTerminologyCommand.js.map
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Provides a list of your parallel data resources in Amazon Translate.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Provides a list of custom terminologies associated with your account.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets a list of the batch translation jobs that you have submitted.</p>
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Starts an asynchronous batch translation job. Batch translation jobs can be used to
|
|
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
|
-
*/
|
|
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
|
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Stops an asynchronous batch translation job that is in progress.</p>
|
|
10
|
-
* <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and
|
|
11
|
-
* put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped,
|
|
12
|
-
* it is put into the <code>COMPLETED</code> state. Otherwise, the job is put into the
|
|
13
|
-
* <code>STOPPED</code> state.</p>
|
|
14
|
-
* <p>Asynchronous batch translation jobs are started with the <a>StartTextTranslationJob</a> operation. You can use the <a>DescribeTextTranslationJob</a> or <a>ListTextTranslationJobs</a>
|
|
15
|
-
* operations to get a batch translation job's <code>JobId</code>.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { TranslateClient, StopTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
20
|
-
* // const { TranslateClient, StopTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
21
|
-
* const client = new TranslateClient(config);
|
|
22
|
-
* const command = new StopTextTranslationJobCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link StopTextTranslationJobCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link StopTextTranslationJobCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class StopTextTranslationJobCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -64,4 +34,3 @@ class StopTextTranslationJobCommand extends smithy_client_1.Command {
|
|
|
64
34
|
}
|
|
65
35
|
}
|
|
66
36
|
exports.StopTextTranslationJobCommand = StopTextTranslationJobCommand;
|
|
67
|
-
//# sourceMappingURL=StopTextTranslationJobCommand.js.map
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Translates input text from the source language to the target language. For a list of
|
|
10
|
-
* available languages and language codes, see <a>what-is-languages</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { TranslateClient, TranslateTextCommand } from "@aws-sdk/client-translate"; // ES Modules import
|
|
15
|
-
* // const { TranslateClient, TranslateTextCommand } = require("@aws-sdk/client-translate"); // CommonJS import
|
|
16
|
-
* const client = new TranslateClient(config);
|
|
17
|
-
* const command = new TranslateTextCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link TranslateTextCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link TranslateTextCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class TranslateTextCommand 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 TranslateTextCommand extends smithy_client_1.Command {
|
|
|
59
34
|
}
|
|
60
35
|
}
|
|
61
36
|
exports.TranslateTextCommand = TranslateTextCommand;
|
|
62
|
-
//# sourceMappingURL=TranslateTextCommand.js.map
|