@aws-sdk/client-translate 3.36.0 → 3.39.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Translate.js +0 -4
  3. package/dist-cjs/TranslateClient.js +0 -9
  4. package/dist-cjs/commands/CreateParallelDataCommand.js +0 -27
  5. package/dist-cjs/commands/DeleteParallelDataCommand.js +0 -24
  6. package/dist-cjs/commands/DeleteTerminologyCommand.js +0 -24
  7. package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +0 -25
  8. package/dist-cjs/commands/GetParallelDataCommand.js +0 -24
  9. package/dist-cjs/commands/GetTerminologyCommand.js +0 -24
  10. package/dist-cjs/commands/ImportTerminologyCommand.js +0 -31
  11. package/dist-cjs/commands/ListParallelDataCommand.js +0 -24
  12. package/dist-cjs/commands/ListTerminologiesCommand.js +0 -24
  13. package/dist-cjs/commands/ListTextTranslationJobsCommand.js +0 -24
  14. package/dist-cjs/commands/StartTextTranslationJobCommand.js +0 -31
  15. package/dist-cjs/commands/StopTextTranslationJobCommand.js +0 -30
  16. package/dist-cjs/commands/TranslateTextCommand.js +0 -25
  17. package/dist-cjs/commands/UpdateParallelDataCommand.js +0 -25
  18. package/dist-cjs/commands/index.js +17 -0
  19. package/dist-cjs/endpoints.js +6 -1
  20. package/dist-cjs/index.js +4 -20
  21. package/dist-cjs/models/models_0.js +0 -162
  22. package/dist-cjs/pagination/ListParallelDataPaginator.js +0 -10
  23. package/dist-cjs/pagination/ListTerminologiesPaginator.js +0 -10
  24. package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +0 -10
  25. package/dist-cjs/pagination/index.js +7 -0
  26. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  27. package/dist-cjs/runtimeConfig.browser.js +1 -5
  28. package/dist-cjs/runtimeConfig.js +1 -5
  29. package/dist-cjs/runtimeConfig.native.js +0 -3
  30. package/dist-cjs/runtimeConfig.shared.js +0 -3
  31. package/dist-es/commands/index.js +14 -0
  32. package/dist-es/endpoints.js +6 -1
  33. package/dist-es/index.js +4 -20
  34. package/dist-es/pagination/index.js +4 -0
  35. package/dist-types/commands/index.d.ts +14 -0
  36. package/dist-types/index.d.ts +4 -20
  37. package/dist-types/pagination/index.d.ts +4 -0
  38. package/dist-types/ts3.4/Translate.d.ts +15 -72
  39. package/dist-types/ts3.4/TranslateClient.d.ts +24 -90
  40. package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +2 -23
  41. package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +2 -20
  42. package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +2 -20
  43. package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +2 -21
  44. package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +2 -20
  45. package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +2 -20
  46. package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +2 -27
  47. package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +2 -20
  48. package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +2 -20
  49. package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +2 -20
  50. package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +2 -27
  51. package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +2 -26
  52. package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +2 -21
  53. package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  55. package/dist-types/ts3.4/index.d.ts +4 -20
  56. package/dist-types/ts3.4/models/models_0.d.ts +220 -824
  57. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  58. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  59. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  60. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  61. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  62. package/package.json +32 -32
package/CHANGELOG.md CHANGED
@@ -3,6 +3,48 @@
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.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-translate
9
+
10
+
11
+
12
+
13
+
14
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+ * **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))
21
+
22
+
23
+
24
+
25
+
26
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
27
+
28
+
29
+ ### Features
30
+
31
+ * **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))
32
+
33
+
34
+
35
+
36
+
37
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **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))
43
+
44
+
45
+
46
+
47
+
6
48
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
49
 
8
50
 
@@ -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);
@@ -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,11 +28,6 @@ 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
  }
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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>Updates a previously created parallel data resource by importing a new input file from
10
- * Amazon S3.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { TranslateClient, UpdateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
15
- * // const { TranslateClient, UpdateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
16
- * const client = new TranslateClient(config);
17
- * const command = new UpdateParallelDataCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link UpdateParallelDataCommandInput} for command's `input` shape.
22
- * @see {@link UpdateParallelDataCommandOutput} for command's `response` shape.
23
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class UpdateParallelDataCommand 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);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateParallelDataCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteParallelDataCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteTerminologyCommand"), exports);
7
+ tslib_1.__exportStar(require("./DescribeTextTranslationJobCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetParallelDataCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetTerminologyCommand"), exports);
10
+ tslib_1.__exportStar(require("./ImportTerminologyCommand"), exports);
11
+ tslib_1.__exportStar(require("./ListParallelDataCommand"), exports);
12
+ tslib_1.__exportStar(require("./ListTerminologiesCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListTextTranslationJobsCommand"), exports);
14
+ tslib_1.__exportStar(require("./StartTextTranslationJobCommand"), exports);
15
+ tslib_1.__exportStar(require("./StopTextTranslationJobCommand"), exports);
16
+ tslib_1.__exportStar(require("./TranslateTextCommand"), exports);
17
+ tslib_1.__exportStar(require("./UpdateParallelDataCommand"), exports);