@aws-sdk/client-translate 3.312.0 → 3.316.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.
@@ -18,169 +18,119 @@ import { TranslateTextCommandInput, TranslateTextCommandOutput } from "./command
18
18
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
19
  import { UpdateParallelDataCommandInput, UpdateParallelDataCommandOutput } from "./commands/UpdateParallelDataCommand";
20
20
  import { TranslateClient } from "./TranslateClient";
21
- /**
22
- * @public
23
- * <p>Provides translation of the input content from the source language to the target language.</p>
24
- */
25
- export declare class Translate extends TranslateClient {
21
+ export interface Translate {
26
22
  /**
27
- * @public
28
- * <p>Creates a parallel data resource in Amazon Translate by importing an input file from
29
- * Amazon S3. Parallel data files contain examples that show how you want segments of text to be
30
- * translated. By adding parallel data, you can influence the style, tone, and word choice in
31
- * your translation output.</p>
23
+ * @see {@link CreateParallelDataCommand}
32
24
  */
33
25
  createParallelData(args: CreateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<CreateParallelDataCommandOutput>;
34
26
  createParallelData(args: CreateParallelDataCommandInput, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
35
27
  createParallelData(args: CreateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
36
28
  /**
37
- * @public
38
- * <p>Deletes a parallel data resource in Amazon Translate.</p>
29
+ * @see {@link DeleteParallelDataCommand}
39
30
  */
40
31
  deleteParallelData(args: DeleteParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<DeleteParallelDataCommandOutput>;
41
32
  deleteParallelData(args: DeleteParallelDataCommandInput, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
42
33
  deleteParallelData(args: DeleteParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteParallelDataCommandOutput) => void): void;
43
34
  /**
44
- * @public
45
- * <p>A synchronous action that deletes a custom terminology.</p>
35
+ * @see {@link DeleteTerminologyCommand}
46
36
  */
47
37
  deleteTerminology(args: DeleteTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTerminologyCommandOutput>;
48
38
  deleteTerminology(args: DeleteTerminologyCommandInput, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
49
39
  deleteTerminology(args: DeleteTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
50
40
  /**
51
- * @public
52
- * <p>Gets the properties associated with an asynchronous batch translation job including name,
53
- * ID, status, source and target languages, input/output S3 buckets, and so on.</p>
41
+ * @see {@link DescribeTextTranslationJobCommand}
54
42
  */
55
43
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTextTranslationJobCommandOutput>;
56
44
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
57
45
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTextTranslationJobCommandOutput) => void): void;
58
46
  /**
59
- * @public
60
- * <p>Provides information about a parallel data resource.</p>
47
+ * @see {@link GetParallelDataCommand}
61
48
  */
62
49
  getParallelData(args: GetParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<GetParallelDataCommandOutput>;
63
50
  getParallelData(args: GetParallelDataCommandInput, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
64
51
  getParallelData(args: GetParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParallelDataCommandOutput) => void): void;
65
52
  /**
66
- * @public
67
- * <p>Retrieves a custom terminology.</p>
53
+ * @see {@link GetTerminologyCommand}
68
54
  */
69
55
  getTerminology(args: GetTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<GetTerminologyCommandOutput>;
70
56
  getTerminology(args: GetTerminologyCommandInput, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
71
57
  getTerminology(args: GetTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTerminologyCommandOutput) => void): void;
72
58
  /**
73
- * @public
74
- * <p>Creates or updates a custom terminology, depending on whether one already exists for the
75
- * given terminology name. Importing a terminology with the same name as an existing one will
76
- * merge the terminologies based on the chosen merge strategy. The only supported merge strategy
77
- * is OVERWRITE, where the imported terminology overwrites the existing terminology of the same
78
- * name.</p>
79
- * <p>If you import a terminology that overwrites an existing one, the new terminology takes up
80
- * to 10 minutes to fully propagate. After that, translations have access to the new
81
- * terminology.</p>
59
+ * @see {@link ImportTerminologyCommand}
82
60
  */
83
61
  importTerminology(args: ImportTerminologyCommandInput, options?: __HttpHandlerOptions): Promise<ImportTerminologyCommandOutput>;
84
62
  importTerminology(args: ImportTerminologyCommandInput, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
85
63
  importTerminology(args: ImportTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportTerminologyCommandOutput) => void): void;
86
64
  /**
87
- * @public
88
- * <p>Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.</p>
65
+ * @see {@link ListLanguagesCommand}
89
66
  */
90
67
  listLanguages(args: ListLanguagesCommandInput, options?: __HttpHandlerOptions): Promise<ListLanguagesCommandOutput>;
91
68
  listLanguages(args: ListLanguagesCommandInput, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
92
69
  listLanguages(args: ListLanguagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLanguagesCommandOutput) => void): void;
93
70
  /**
94
- * @public
95
- * <p>Provides a list of your parallel data resources in Amazon Translate.</p>
71
+ * @see {@link ListParallelDataCommand}
96
72
  */
97
73
  listParallelData(args: ListParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<ListParallelDataCommandOutput>;
98
74
  listParallelData(args: ListParallelDataCommandInput, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
99
75
  listParallelData(args: ListParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListParallelDataCommandOutput) => void): void;
100
76
  /**
101
- * @public
102
- * <p>Lists all tags associated with a given Amazon Translate resource.
103
- * For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/tagging.html">
104
- * Tagging your resources</a>.</p>
77
+ * @see {@link ListTagsForResourceCommand}
105
78
  */
106
79
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
107
80
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
108
81
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
109
82
  /**
110
- * @public
111
- * <p>Provides a list of custom terminologies associated with your account.</p>
83
+ * @see {@link ListTerminologiesCommand}
112
84
  */
113
85
  listTerminologies(args: ListTerminologiesCommandInput, options?: __HttpHandlerOptions): Promise<ListTerminologiesCommandOutput>;
114
86
  listTerminologies(args: ListTerminologiesCommandInput, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
115
87
  listTerminologies(args: ListTerminologiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTerminologiesCommandOutput) => void): void;
116
88
  /**
117
- * @public
118
- * <p>Gets a list of the batch translation jobs that you have submitted.</p>
89
+ * @see {@link ListTextTranslationJobsCommand}
119
90
  */
120
91
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListTextTranslationJobsCommandOutput>;
121
92
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
122
93
  listTextTranslationJobs(args: ListTextTranslationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTextTranslationJobsCommandOutput) => void): void;
123
94
  /**
124
- * @public
125
- * <p>Starts an asynchronous batch translation job. Use batch translation jobs to
126
- * translate large volumes of text across multiple documents at once.
127
- * For batch translation, you can input documents with different source languages (specify <code>auto</code>
128
- * as the source language). You can specify one
129
- * or more target languages. Batch translation translates each input document into each of the target languages.
130
- * For more information, see
131
- * <a href="https://docs.aws.amazon.com/translate/latest/dg/async.html">Asynchronous batch processing</a>.</p>
132
- *
133
- * <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>
95
+ * @see {@link StartTextTranslationJobCommand}
134
96
  */
135
97
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StartTextTranslationJobCommandOutput>;
136
98
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
137
99
  startTextTranslationJob(args: StartTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartTextTranslationJobCommandOutput) => void): void;
138
100
  /**
139
- * @public
140
- * <p>Stops an asynchronous batch translation job that is in progress.</p>
141
- * <p>If the job's state is <code>IN_PROGRESS</code>, the job will be marked for termination and
142
- * put into the <code>STOP_REQUESTED</code> state. If the job completes before it can be stopped,
143
- * it is put into the <code>COMPLETED</code> state. Otherwise, the job is put into the
144
- * <code>STOPPED</code> state.</p>
145
- * <p>Asynchronous batch translation jobs are started with the <a>StartTextTranslationJob</a> operation. You can use the <a>DescribeTextTranslationJob</a> or <a>ListTextTranslationJobs</a>
146
- * operations to get a batch translation job's <code>JobId</code>.</p>
101
+ * @see {@link StopTextTranslationJobCommand}
147
102
  */
148
103
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopTextTranslationJobCommandOutput>;
149
104
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
150
105
  stopTextTranslationJob(args: StopTextTranslationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTextTranslationJobCommandOutput) => void): void;
151
106
  /**
152
- * @public
153
- * <p>Associates a specific tag with a resource. A tag is a key-value pair
154
- * that adds as a metadata to a resource.
155
- * For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/tagging.html">
156
- * Tagging your resources</a>.</p>
107
+ * @see {@link TagResourceCommand}
157
108
  */
158
109
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
159
110
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
160
111
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
161
112
  /**
162
- * @public
163
- * <p>Translates input text from the source language to the target language. For a list of
164
- * available languages and language codes, see <a href="https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html">Supported languages</a>.</p>
113
+ * @see {@link TranslateTextCommand}
165
114
  */
166
115
  translateText(args: TranslateTextCommandInput, options?: __HttpHandlerOptions): Promise<TranslateTextCommandOutput>;
167
116
  translateText(args: TranslateTextCommandInput, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
168
117
  translateText(args: TranslateTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TranslateTextCommandOutput) => void): void;
169
118
  /**
170
- * @public
171
- * <p>Removes a specific tag associated with an Amazon Translate resource.
172
- * For more information, see <a href="https://docs.aws.amazon.com/translate/latest/dg/tagging.html">
173
- * Tagging your resources</a>.</p>
119
+ * @see {@link UntagResourceCommand}
174
120
  */
175
121
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
176
122
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
177
123
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
178
124
  /**
179
- * @public
180
- * <p>Updates a previously created parallel data resource by importing a new input file from
181
- * Amazon S3.</p>
125
+ * @see {@link UpdateParallelDataCommand}
182
126
  */
183
127
  updateParallelData(args: UpdateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<UpdateParallelDataCommandOutput>;
184
128
  updateParallelData(args: UpdateParallelDataCommandInput, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
185
129
  updateParallelData(args: UpdateParallelDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateParallelDataCommandOutput) => void): void;
186
130
  }
131
+ /**
132
+ * @public
133
+ * <p>Provides translation of the input content from the source language to the target language.</p>
134
+ */
135
+ export declare class Translate extends TranslateClient implements Translate {
136
+ }
@@ -72,7 +72,7 @@ import {
72
72
  UpdateParallelDataCommandOutput,
73
73
  } from "./commands/UpdateParallelDataCommand";
74
74
  import { TranslateClient } from "./TranslateClient";
75
- export declare class Translate extends TranslateClient {
75
+ export interface Translate {
76
76
  createParallelData(
77
77
  args: CreateParallelDataCommandInput,
78
78
  options?: __HttpHandlerOptions
@@ -308,3 +308,4 @@ export declare class Translate extends TranslateClient {
308
308
  cb: (err: any, data?: UpdateParallelDataCommandOutput) => void
309
309
  ): void;
310
310
  }
311
+ export declare class Translate extends TranslateClient implements Translate {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.312.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.312.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",