@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
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,14 @@
1
+ export * from "./CreateParallelDataCommand";
2
+ export * from "./DeleteParallelDataCommand";
3
+ export * from "./DeleteTerminologyCommand";
4
+ export * from "./DescribeTextTranslationJobCommand";
5
+ export * from "./GetParallelDataCommand";
6
+ export * from "./GetTerminologyCommand";
7
+ export * from "./ImportTerminologyCommand";
8
+ export * from "./ListParallelDataCommand";
9
+ export * from "./ListTerminologiesCommand";
10
+ export * from "./ListTextTranslationJobsCommand";
11
+ export * from "./StartTextTranslationJobCommand";
12
+ export * from "./StopTextTranslationJobCommand";
13
+ export * from "./TranslateTextCommand";
14
+ export * from "./UpdateParallelDataCommand";
@@ -46,22 +46,27 @@ var partitionHash = {
46
46
  "us-west-2",
47
47
  "us-west-2-fips",
48
48
  ],
49
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
49
50
  hostname: "translate.{region}.amazonaws.com",
50
51
  },
51
52
  "aws-cn": {
52
53
  regions: ["cn-north-1", "cn-northwest-1"],
54
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
53
55
  hostname: "translate.{region}.amazonaws.com.cn",
54
56
  },
55
57
  "aws-iso": {
56
- regions: ["us-iso-east-1"],
58
+ regions: ["us-iso-east-1", "us-iso-west-1"],
59
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
57
60
  hostname: "translate.{region}.c2s.ic.gov",
58
61
  },
59
62
  "aws-iso-b": {
60
63
  regions: ["us-isob-east-1"],
64
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
61
65
  hostname: "translate.{region}.sc2s.sgov.gov",
62
66
  },
63
67
  "aws-us-gov": {
64
68
  regions: ["us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
69
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
65
70
  hostname: "translate.{region}.amazonaws.com",
66
71
  },
67
72
  };
package/dist-es/index.js CHANGED
@@ -1,21 +1,5 @@
1
- export * from "./TranslateClient";
2
1
  export * from "./Translate";
3
- export * from "./commands/CreateParallelDataCommand";
4
- export * from "./commands/DeleteParallelDataCommand";
5
- export * from "./commands/DeleteTerminologyCommand";
6
- export * from "./commands/DescribeTextTranslationJobCommand";
7
- export * from "./commands/GetParallelDataCommand";
8
- export * from "./commands/GetTerminologyCommand";
9
- export * from "./commands/ImportTerminologyCommand";
10
- export * from "./commands/ListParallelDataCommand";
11
- export * from "./pagination/ListParallelDataPaginator";
12
- export * from "./commands/ListTerminologiesCommand";
13
- export * from "./pagination/ListTerminologiesPaginator";
14
- export * from "./commands/ListTextTranslationJobsCommand";
15
- export * from "./pagination/ListTextTranslationJobsPaginator";
16
- export * from "./commands/StartTextTranslationJobCommand";
17
- export * from "./commands/StopTextTranslationJobCommand";
18
- export * from "./commands/TranslateTextCommand";
19
- export * from "./commands/UpdateParallelDataCommand";
20
- export * from "./pagination/Interfaces";
21
- export * from "./models/index";
2
+ export * from "./TranslateClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListParallelDataPaginator";
3
+ export * from "./ListTerminologiesPaginator";
4
+ export * from "./ListTextTranslationJobsPaginator";
@@ -0,0 +1,14 @@
1
+ export * from "./CreateParallelDataCommand";
2
+ export * from "./DeleteParallelDataCommand";
3
+ export * from "./DeleteTerminologyCommand";
4
+ export * from "./DescribeTextTranslationJobCommand";
5
+ export * from "./GetParallelDataCommand";
6
+ export * from "./GetTerminologyCommand";
7
+ export * from "./ImportTerminologyCommand";
8
+ export * from "./ListParallelDataCommand";
9
+ export * from "./ListTerminologiesCommand";
10
+ export * from "./ListTextTranslationJobsCommand";
11
+ export * from "./StartTextTranslationJobCommand";
12
+ export * from "./StopTextTranslationJobCommand";
13
+ export * from "./TranslateTextCommand";
14
+ export * from "./UpdateParallelDataCommand";
@@ -1,21 +1,5 @@
1
- export * from "./TranslateClient";
2
1
  export * from "./Translate";
3
- export * from "./commands/CreateParallelDataCommand";
4
- export * from "./commands/DeleteParallelDataCommand";
5
- export * from "./commands/DeleteTerminologyCommand";
6
- export * from "./commands/DescribeTextTranslationJobCommand";
7
- export * from "./commands/GetParallelDataCommand";
8
- export * from "./commands/GetTerminologyCommand";
9
- export * from "./commands/ImportTerminologyCommand";
10
- export * from "./commands/ListParallelDataCommand";
11
- export * from "./pagination/ListParallelDataPaginator";
12
- export * from "./commands/ListTerminologiesCommand";
13
- export * from "./pagination/ListTerminologiesPaginator";
14
- export * from "./commands/ListTextTranslationJobsCommand";
15
- export * from "./pagination/ListTextTranslationJobsPaginator";
16
- export * from "./commands/StartTextTranslationJobCommand";
17
- export * from "./commands/StopTextTranslationJobCommand";
18
- export * from "./commands/TranslateTextCommand";
19
- export * from "./commands/UpdateParallelDataCommand";
20
- export * from "./pagination/Interfaces";
21
- export * from "./models/index";
2
+ export * from "./TranslateClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListParallelDataPaginator";
3
+ export * from "./ListTerminologiesPaginator";
4
+ export * from "./ListTextTranslationJobsPaginator";
@@ -14,118 +14,61 @@ import { StopTextTranslationJobCommandInput, StopTextTranslationJobCommandOutput
14
14
  import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./commands/TranslateTextCommand";
15
15
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
16
16
  import { TranslateClient } from "./TranslateClient";
17
- /**
18
- * <p>Provides translation between one source language and another of the same set of
19
- * languages.</p>
20
- */
17
+
21
18
  export declare class Translate extends TranslateClient {
22
- /**
23
- * <p>Creates a parallel data resource in Amazon Translate by importing an input file from
24
- * Amazon S3. Parallel data files contain examples of source phrases and their translations from
25
- * your translation memory. By adding parallel data, you can influence the style, tone, and word
26
- * choice in your translation output.</p>
27
- */
19
+
28
20
  createParallelData(args: CreateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<CreateParallelDataCommandOutput>;
29
21
  createParallelData(args: CreateParallelDataCommandInput, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
30
22
  createParallelData(args: CreateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
31
- /**
32
- * <p>Deletes a parallel data resource in Amazon Translate.</p>
33
- */
23
+
34
24
  deleteParallelData(args: DeleteParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<DeleteParallelDataCommandOutput>;
35
25
  deleteParallelData(args: DeleteParallelDataCommandInput, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
36
26
  deleteParallelData(args: DeleteParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
37
- /**
38
- * <p>A synchronous action that deletes a custom terminology.</p>
39
- */
27
+
40
28
  deleteTerminology(args: DeleteTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTerminologyCommandOutput>;
41
29
  deleteTerminology(args: DeleteTerminologyCommandInput, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
42
30
  deleteTerminology(args: DeleteTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
43
- /**
44
- * <p>Gets the properties associated with an asycnhronous batch translation job including name,
45
- * ID, status, source and target languages, input/output S3 buckets, and so on.</p>
46
- */
31
+
47
32
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTextTranslationJobCommandOutput>;
48
33
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
49
34
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
50
- /**
51
- * <p>Provides information about a parallel data resource.</p>
52
- */
35
+
53
36
  getParallelData(args: GetParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<GetParallelDataCommandOutput>;
54
37
  getParallelData(args: GetParallelDataCommandInput, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
55
38
  getParallelData(args: GetParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
56
- /**
57
- * <p>Retrieves a custom terminology.</p>
58
- */
39
+
59
40
  getTerminology(args: GetTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<GetTerminologyCommandOutput>;
60
41
  getTerminology(args: GetTerminologyCommandInput, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
61
42
  getTerminology(args: GetTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
62
- /**
63
- * <p>Creates or updates a custom terminology, depending on whether or not one already exists
64
- * for the given terminology name. Importing a terminology with the same name as an existing one
65
- * will merge the terminologies based on the chosen merge strategy. Currently, the only supported
66
- * merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing
67
- * terminology of the same name.</p>
68
- * <p>If you import a terminology that overwrites an existing one, the new terminology take up
69
- * to 10 minutes to fully propagate and be available for use in a translation due to cache
70
- * policies with the DataPlane service that performs the translations.</p>
71
- */
43
+
72
44
  importTerminology(args: ImportTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<ImportTerminologyCommandOutput>;
73
45
  importTerminology(args: ImportTerminologyCommandInput, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
74
46
  importTerminology(args: ImportTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
75
- /**
76
- * <p>Provides a list of your parallel data resources in Amazon Translate.</p>
77
- */
47
+
78
48
  listParallelData(args: ListParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<ListParallelDataCommandOutput>;
79
49
  listParallelData(args: ListParallelDataCommandInput, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
80
50
  listParallelData(args: ListParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
81
- /**
82
- * <p>Provides a list of custom terminologies associated with your account.</p>
83
- */
51
+
84
52
  listTerminologies(args: ListTerminologiesCommandInput, options?: __HttpHandlerOptions): Promise<ListTerminologiesCommandOutput>;
85
53
  listTerminologies(args: ListTerminologiesCommandInput, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
86
54
  listTerminologies(args: ListTerminologiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
87
- /**
88
- * <p>Gets a list of the batch translation jobs that you have submitted.</p>
89
- */
55
+
90
56
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListTextTranslationJobsCommandOutput>;
91
57
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
92
58
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
93
- /**
94
- * <p>Starts an asynchronous batch translation job. Batch translation jobs can be used to
95
- * translate large volumes of text across multiple documents at once. For more information, see
96
- * <a>async</a>.</p>
97
- *
98
- * <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>
99
- * <note>
100
- * <p>Amazon Translate does not support batch translation of multiple source languages at once.</p>
101
- * </note>
102
- */
59
+
103
60
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StartTextTranslationJobCommandOutput>;
104
61
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
105
62
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
106
- /**
107
- * <p>Stops an asynchronous batch translation job that is in progress.</p>
108
- * <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and
109
- * put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped,
110
- * it is put into the <code>COMPLETED</code> state. Otherwise, the job is put into the
111
- * <code>STOPPED</code> state.</p>
112
- * <p>Asynchronous batch translation jobs are started with the <a>StartTextTranslationJob</a> operation. You can use the <a>DescribeTextTranslationJob</a> or <a>ListTextTranslationJobs</a>
113
- * operations to get a batch translation job's <code>JobId</code>.</p>
114
- */
63
+
115
64
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopTextTranslationJobCommandOutput>;
116
65
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
117
66
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
118
- /**
119
- * <p>Translates input text from the source language to the target language. For a list of
120
- * available languages and language codes, see <a>what-is-languages</a>.</p>
121
- */
67
+
122
68
  translateText(args: TranslateTextCommandInput, options?: __HttpHandlerOptions): Promise<TranslateTextCommandOutput>;
123
69
  translateText(args: TranslateTextCommandInput, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
124
70
  translateText(args: TranslateTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
125
- /**
126
- * <p>Updates a previously created parallel data resource by importing a new input file from
127
- * Amazon S3.</p>
128
- */
71
+
129
72
  updateParallelData(args: UpdateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<UpdateParallelDataCommandOutput>;
130
73
  updateParallelData(args: UpdateParallelDataCommandInput, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
131
74
  updateParallelData(args: UpdateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
@@ -23,125 +23,59 @@ import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from
23
23
  export declare type ServiceInputTypes = CreateParallelDataCommandInput | DeleteParallelDataCommandInput | DeleteTerminologyCommandInput | DescribeTextTranslationJobCommandInput | GetParallelDataCommandInput | GetTerminologyCommandInput | ImportTerminologyCommandInput | ListParallelDataCommandInput | ListTerminologiesCommandInput | ListTextTranslationJobsCommandInput | StartTextTranslationJobCommandInput | StopTextTranslationJobCommandInput | TranslateTextCommandInput | UpdateParallelDataCommandInput;
24
24
  export declare type ServiceOutputTypes = CreateParallelDataCommandOutput | DeleteParallelDataCommandOutput | DeleteTerminologyCommandOutput | DescribeTextTranslationJobCommandOutput | GetParallelDataCommandOutput | GetTerminologyCommandOutput | ImportTerminologyCommandOutput | ListParallelDataCommandOutput | ListTerminologiesCommandOutput | ListTextTranslationJobsCommandOutput | StartTextTranslationJobCommandOutput | StopTextTranslationJobCommandOutput | TranslateTextCommandOutput | UpdateParallelDataCommandOutput;
25
25
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
26
- /**
27
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
28
- */
26
+
29
27
  requestHandler?: __HttpHandler;
30
- /**
31
- * A constructor for a class implementing the {@link __Hash} interface
32
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
33
- * @internal
34
- */
28
+
35
29
  sha256?: __HashConstructor;
36
- /**
37
- * The function that will be used to convert strings into HTTP endpoints.
38
- * @internal
39
- */
30
+
40
31
  urlParser?: __UrlParser;
41
- /**
42
- * A function that can calculate the length of a request body.
43
- * @internal
44
- */
32
+
45
33
  bodyLengthChecker?: (body: any) => number | undefined;
46
- /**
47
- * A function that converts a stream into an array of bytes.
48
- * @internal
49
- */
34
+
50
35
  streamCollector?: __StreamCollector;
51
- /**
52
- * The function that will be used to convert a base64-encoded string to a byte array.
53
- * @internal
54
- */
36
+
55
37
  base64Decoder?: __Decoder;
56
- /**
57
- * The function that will be used to convert binary data to a base64-encoded string.
58
- * @internal
59
- */
38
+
60
39
  base64Encoder?: __Encoder;
61
- /**
62
- * The function that will be used to convert a UTF8-encoded string to a byte array.
63
- * @internal
64
- */
40
+
65
41
  utf8Decoder?: __Decoder;
66
- /**
67
- * The function that will be used to convert binary data to a UTF-8 encoded string.
68
- * @internal
69
- */
42
+
70
43
  utf8Encoder?: __Encoder;
71
- /**
72
- * The runtime environment.
73
- * @internal
74
- */
44
+
75
45
  runtime?: string;
76
- /**
77
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
78
- * trait of an operation.
79
- */
46
+
80
47
  disableHostPrefix?: boolean;
81
- /**
82
- * Value for how many times a request will be made at most in case of retry.
83
- */
48
+
84
49
  maxAttempts?: number | __Provider<number>;
85
- /**
86
- * Specifies which retry algorithm to use.
87
- */
50
+
88
51
  retryMode?: string | __Provider<string>;
89
- /**
90
- * Optional logger for logging debug/info/warn/error.
91
- */
52
+
92
53
  logger?: __Logger;
93
- /**
94
- * Unique service identifier.
95
- * @internal
96
- */
54
+
97
55
  serviceId?: string;
98
- /**
99
- * The AWS region to which this client will send requests
100
- */
56
+
101
57
  region?: string | __Provider<string>;
102
- /**
103
- * Default credentials provider; Not available in browser runtime.
104
- * @internal
105
- */
58
+
106
59
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
107
- /**
108
- * Fetch related hostname, signing name or signing region with given region.
109
- * @internal
110
- */
60
+
111
61
  regionInfoProvider?: RegionInfoProvider;
112
- /**
113
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
114
- * @internal
115
- */
62
+
116
63
  defaultUserAgentProvider?: Provider<__UserAgent>;
117
64
  }
118
65
  declare type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
119
- /**
120
- * The configuration interface of TranslateClient class constructor that set the region, credentials and other options.
121
- */
66
+
122
67
  export interface TranslateClientConfig extends TranslateClientConfigType {
123
68
  }
124
69
  declare type TranslateClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
125
- /**
126
- * The resolved configuration interface of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
127
- */
70
+
128
71
  export interface TranslateClientResolvedConfig extends TranslateClientResolvedConfigType {
129
72
  }
130
- /**
131
- * <p>Provides translation between one source language and another of the same set of
132
- * languages.</p>
133
- */
73
+
134
74
  export declare class TranslateClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, TranslateClientResolvedConfig> {
135
- /**
136
- * The resolved configuration of TranslateClient class. This is resolved and normalized from the {@link TranslateClientConfig | constructor configuration interface}.
137
- */
75
+
138
76
  readonly config: TranslateClientResolvedConfig;
139
77
  constructor(configuration: TranslateClientConfig);
140
- /**
141
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
142
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
143
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
144
- */
78
+
145
79
  destroy(): void;
146
80
  }
147
81
  export {};
@@ -6,32 +6,11 @@ export interface CreateParallelDataCommandInput extends CreateParallelDataReques
6
6
  }
7
7
  export interface CreateParallelDataCommandOutput extends CreateParallelDataResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Creates a parallel data resource in Amazon Translate by importing an input file from
11
- * Amazon S3. Parallel data files contain examples of source phrases and their translations from
12
- * your translation memory. By adding parallel data, you can influence the style, tone, and word
13
- * choice in your translation output.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { TranslateClient, CreateParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
18
- * // const { TranslateClient, CreateParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
19
- * const client = new TranslateClient(config);
20
- * const command = new CreateParallelDataCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link CreateParallelDataCommandInput} for command's `input` shape.
25
- * @see {@link CreateParallelDataCommandOutput} for command's `response` shape.
26
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
9
+
29
10
  export declare class CreateParallelDataCommand extends $Command<CreateParallelDataCommandInput, CreateParallelDataCommandOutput, TranslateClientResolvedConfig> {
30
11
  readonly input: CreateParallelDataCommandInput;
31
12
  constructor(input: CreateParallelDataCommandInput);
32
- /**
33
- * @internal
34
- */
13
+
35
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateParallelDataCommandInput, CreateParallelDataCommandOutput>;
36
15
  private serialize;
37
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface DeleteParallelDataCommandInput extends DeleteParallelDataReques
6
6
  }
7
7
  export interface DeleteParallelDataCommandOutput extends DeleteParallelDataResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Deletes a parallel data resource in Amazon Translate.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { TranslateClient, DeleteParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
15
- * // const { TranslateClient, DeleteParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
16
- * const client = new TranslateClient(config);
17
- * const command = new DeleteParallelDataCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DeleteParallelDataCommandInput} for command's `input` shape.
22
- * @see {@link DeleteParallelDataCommandOutput} for command's `response` shape.
23
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class DeleteParallelDataCommand extends $Command<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput, TranslateClientResolvedConfig> {
27
11
  readonly input: DeleteParallelDataCommandInput;
28
12
  constructor(input: DeleteParallelDataCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface DeleteTerminologyCommandInput extends DeleteTerminologyRequest
6
6
  }
7
7
  export interface DeleteTerminologyCommandOutput extends __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>A synchronous action that deletes a custom terminology.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { TranslateClient, DeleteTerminologyCommand } from "@aws-sdk/client-translate"; // ES Modules import
15
- * // const { TranslateClient, DeleteTerminologyCommand } = require("@aws-sdk/client-translate"); // CommonJS import
16
- * const client = new TranslateClient(config);
17
- * const command = new DeleteTerminologyCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DeleteTerminologyCommandInput} for command's `input` shape.
22
- * @see {@link DeleteTerminologyCommandOutput} for command's `response` shape.
23
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class DeleteTerminologyCommand extends $Command<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput, TranslateClientResolvedConfig> {
27
11
  readonly input: DeleteTerminologyCommandInput;
28
12
  constructor(input: DeleteTerminologyCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTerminologyCommandInput, DeleteTerminologyCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,30 +6,11 @@ export interface DescribeTextTranslationJobCommandInput extends DescribeTextTran
6
6
  }
7
7
  export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTranslationJobResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Gets the properties associated with an asycnhronous batch translation job including name,
11
- * ID, status, source and target languages, input/output S3 buckets, and so on.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { TranslateClient, DescribeTextTranslationJobCommand } from "@aws-sdk/client-translate"; // ES Modules import
16
- * // const { TranslateClient, DescribeTextTranslationJobCommand } = require("@aws-sdk/client-translate"); // CommonJS import
17
- * const client = new TranslateClient(config);
18
- * const command = new DescribeTextTranslationJobCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DescribeTextTranslationJobCommandInput} for command's `input` shape.
23
- * @see {@link DescribeTextTranslationJobCommandOutput} for command's `response` shape.
24
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
9
+
27
10
  export declare class DescribeTextTranslationJobCommand extends $Command<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput, TranslateClientResolvedConfig> {
28
11
  readonly input: DescribeTextTranslationJobCommandInput;
29
12
  constructor(input: DescribeTextTranslationJobCommandInput);
30
- /**
31
- * @internal
32
- */
13
+
33
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeTextTranslationJobCommandInput, DescribeTextTranslationJobCommandOutput>;
34
15
  private serialize;
35
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface GetParallelDataCommandInput extends GetParallelDataRequest {
6
6
  }
7
7
  export interface GetParallelDataCommandOutput extends GetParallelDataResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Provides information about a parallel data resource.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { TranslateClient, GetParallelDataCommand } from "@aws-sdk/client-translate"; // ES Modules import
15
- * // const { TranslateClient, GetParallelDataCommand } = require("@aws-sdk/client-translate"); // CommonJS import
16
- * const client = new TranslateClient(config);
17
- * const command = new GetParallelDataCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetParallelDataCommandInput} for command's `input` shape.
22
- * @see {@link GetParallelDataCommandOutput} for command's `response` shape.
23
- * @see {@link TranslateClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetParallelDataCommand extends $Command<GetParallelDataCommandInput, GetParallelDataCommandOutput, TranslateClientResolvedConfig> {
27
11
  readonly input: GetParallelDataCommandInput;
28
12
  constructor(input: GetParallelDataCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranslateClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetParallelDataCommandInput, GetParallelDataCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;