@aws-sdk/client-translate 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/Translate.js +0 -5
- package/dist-cjs/TranslateClient.js +0 -10
- package/dist-cjs/commands/CreateParallelDataCommand.js +0 -28
- package/dist-cjs/commands/DeleteParallelDataCommand.js +0 -25
- package/dist-cjs/commands/DeleteTerminologyCommand.js +0 -25
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +0 -26
- package/dist-cjs/commands/GetParallelDataCommand.js +0 -25
- package/dist-cjs/commands/GetTerminologyCommand.js +0 -25
- package/dist-cjs/commands/ImportTerminologyCommand.js +0 -32
- package/dist-cjs/commands/ListParallelDataCommand.js +0 -25
- package/dist-cjs/commands/ListTerminologiesCommand.js +0 -25
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +0 -25
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +0 -32
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +0 -31
- package/dist-cjs/commands/TranslateTextCommand.js +0 -26
- package/dist-cjs/commands/UpdateParallelDataCommand.js +0 -26
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -21
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -163
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListParallelDataPaginator.js +0 -11
- package/dist-cjs/pagination/ListTerminologiesPaginator.js +0 -11
- package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Translate.js +0 -1
- package/dist-es/TranslateClient.js +0 -1
- package/dist-es/commands/CreateParallelDataCommand.js +0 -1
- package/dist-es/commands/DeleteParallelDataCommand.js +0 -1
- package/dist-es/commands/DeleteTerminologyCommand.js +0 -1
- package/dist-es/commands/DescribeTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/GetParallelDataCommand.js +0 -1
- package/dist-es/commands/GetTerminologyCommand.js +0 -1
- package/dist-es/commands/ImportTerminologyCommand.js +0 -1
- package/dist-es/commands/ListParallelDataCommand.js +0 -1
- package/dist-es/commands/ListTerminologiesCommand.js +0 -1
- package/dist-es/commands/ListTextTranslationJobsCommand.js +0 -1
- package/dist-es/commands/StartTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/StopTextTranslationJobCommand.js +0 -1
- package/dist-es/commands/TranslateTextCommand.js +0 -1
- package/dist-es/commands/UpdateParallelDataCommand.js +0 -1
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -21
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListParallelDataPaginator.js +0 -1
- package/dist-es/pagination/ListTerminologiesPaginator.js +0 -1
- package/dist-es/pagination/ListTextTranslationJobsPaginator.js +0 -1
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/index.d.ts +4 -20
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/Translate.d.ts +15 -72
- package/dist-types/ts3.4/TranslateClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/CreateParallelDataCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteTerminologyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeTextTranslationJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetTerminologyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ImportTerminologyCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/ListParallelDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTerminologiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTextTranslationJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartTextTranslationJobCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/StopTextTranslationJobCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/TranslateTextCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateParallelDataCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/index.d.ts +4 -20
- package/dist-types/ts3.4/models/models_0.d.ts +220 -824
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Translate.js.map +0 -1
- package/dist-cjs/TranslateClient.js.map +0 -1
- package/dist-cjs/commands/CreateParallelDataCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteParallelDataCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTerminologyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js.map +0 -1
- package/dist-cjs/commands/GetParallelDataCommand.js.map +0 -1
- package/dist-cjs/commands/GetTerminologyCommand.js.map +0 -1
- package/dist-cjs/commands/ImportTerminologyCommand.js.map +0 -1
- package/dist-cjs/commands/ListParallelDataCommand.js.map +0 -1
- package/dist-cjs/commands/ListTerminologiesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js.map +0 -1
- package/dist-cjs/commands/StartTextTranslationJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopTextTranslationJobCommand.js.map +0 -1
- package/dist-cjs/commands/TranslateTextCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateParallelDataCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListParallelDataPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTerminologiesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Translate.js.map +0 -1
- package/dist-es/TranslateClient.js.map +0 -1
- package/dist-es/commands/CreateParallelDataCommand.js.map +0 -1
- package/dist-es/commands/DeleteParallelDataCommand.js.map +0 -1
- package/dist-es/commands/DeleteTerminologyCommand.js.map +0 -1
- package/dist-es/commands/DescribeTextTranslationJobCommand.js.map +0 -1
- package/dist-es/commands/GetParallelDataCommand.js.map +0 -1
- package/dist-es/commands/GetTerminologyCommand.js.map +0 -1
- package/dist-es/commands/ImportTerminologyCommand.js.map +0 -1
- package/dist-es/commands/ListParallelDataCommand.js.map +0 -1
- package/dist-es/commands/ListTerminologiesCommand.js.map +0 -1
- package/dist-es/commands/ListTextTranslationJobsCommand.js.map +0 -1
- package/dist-es/commands/StartTextTranslationJobCommand.js.map +0 -1
- package/dist-es/commands/StopTextTranslationJobCommand.js.map +0 -1
- package/dist-es/commands/TranslateTextCommand.js.map +0 -1
- package/dist-es/commands/UpdateParallelDataCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListParallelDataPaginator.js.map +0 -1
- package/dist-es/pagination/ListTerminologiesPaginator.js.map +0 -1
- package/dist-es/pagination/ListTextTranslationJobsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Translate.ts +0 -553
- package/src/TranslateClient.ts +0 -291
- package/src/commands/CreateParallelDataCommand.ts +0 -98
- package/src/commands/DeleteParallelDataCommand.ts +0 -95
- package/src/commands/DeleteTerminologyCommand.ts +0 -95
- package/src/commands/DescribeTextTranslationJobCommand.ts +0 -99
- package/src/commands/GetParallelDataCommand.ts +0 -95
- package/src/commands/GetTerminologyCommand.ts +0 -95
- package/src/commands/ImportTerminologyCommand.ts +0 -102
- package/src/commands/ListParallelDataCommand.ts +0 -95
- package/src/commands/ListTerminologiesCommand.ts +0 -95
- package/src/commands/ListTextTranslationJobsCommand.ts +0 -95
- package/src/commands/StartTextTranslationJobCommand.ts +0 -102
- package/src/commands/StopTextTranslationJobCommand.ts +0 -101
- package/src/commands/TranslateTextCommand.ts +0 -96
- package/src/commands/UpdateParallelDataCommand.ts +0 -96
- package/src/endpoints.ts +0 -77
- package/src/index.ts +0 -21
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1625
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListParallelDataPaginator.ts +0 -59
- package/src/pagination/ListTerminologiesPaginator.ts +0 -59
- package/src/pagination/ListTextTranslationJobsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2523
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/models/models_0.ts
DELETED
|
@@ -1,1625 +0,0 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* <p>The term being translated by the custom terminology.</p>
|
|
6
|
-
*/
|
|
7
|
-
export interface Term {
|
|
8
|
-
/**
|
|
9
|
-
* <p>The source text of the term being translated by the custom terminology.</p>
|
|
10
|
-
*/
|
|
11
|
-
SourceText?: string;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* <p>The target text of the term being translated by the custom terminology.</p>
|
|
15
|
-
*/
|
|
16
|
-
TargetText?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export namespace Term {
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export const filterSensitiveLog = (obj: Term): any => ({
|
|
24
|
-
...obj,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>The custom terminology applied to the input text by Amazon Translate for the translated text
|
|
30
|
-
* response. This is optional in the response and will only be present if you specified
|
|
31
|
-
* terminology input in the request. Currently, only one terminology can be applied per
|
|
32
|
-
* TranslateText request.</p>
|
|
33
|
-
*/
|
|
34
|
-
export interface AppliedTerminology {
|
|
35
|
-
/**
|
|
36
|
-
* <p>The name of the custom terminology applied to the input text by Amazon Translate for the translated
|
|
37
|
-
* text response.</p>
|
|
38
|
-
*/
|
|
39
|
-
Name?: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* <p>The specific terms of the custom terminology applied to the input text by Amazon Translate for the
|
|
43
|
-
* translated text response. A maximum of 250 terms will be returned, and the specific terms
|
|
44
|
-
* applied will be the first 250 terms in the source text. </p>
|
|
45
|
-
*/
|
|
46
|
-
Terms?: Term[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export namespace AppliedTerminology {
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
export const filterSensitiveLog = (obj: AppliedTerminology): any => ({
|
|
54
|
-
...obj,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* <p>There was a conflict processing the request. Try your request again.</p>
|
|
60
|
-
*/
|
|
61
|
-
export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
62
|
-
name: "ConflictException";
|
|
63
|
-
$fault: "client";
|
|
64
|
-
Message?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export namespace ConflictException {
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
export const filterSensitiveLog = (obj: ConflictException): any => ({
|
|
72
|
-
...obj,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export enum EncryptionKeyType {
|
|
77
|
-
KMS = "KMS",
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* <p>The encryption key used to encrypt this object.</p>
|
|
82
|
-
*/
|
|
83
|
-
export interface EncryptionKey {
|
|
84
|
-
/**
|
|
85
|
-
* <p>The type of encryption key used by Amazon Translate to encrypt custom terminologies.</p>
|
|
86
|
-
*/
|
|
87
|
-
Type: EncryptionKeyType | string | undefined;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* <p>The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom
|
|
91
|
-
* terminology.</p>
|
|
92
|
-
*/
|
|
93
|
-
Id: string | undefined;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export namespace EncryptionKey {
|
|
97
|
-
/**
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
100
|
-
export const filterSensitiveLog = (obj: EncryptionKey): any => ({
|
|
101
|
-
...obj,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export enum ParallelDataFormat {
|
|
106
|
-
CSV = "CSV",
|
|
107
|
-
TMX = "TMX",
|
|
108
|
-
TSV = "TSV",
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* <p>Specifies the format and S3 location of the parallel data input file.</p>
|
|
113
|
-
*/
|
|
114
|
-
export interface ParallelDataConfig {
|
|
115
|
-
/**
|
|
116
|
-
* <p>The URI of the Amazon S3 folder that contains the parallel data input file. The folder
|
|
117
|
-
* must be in the same Region as the API endpoint you are calling.</p>
|
|
118
|
-
*/
|
|
119
|
-
S3Uri: string | undefined;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* <p>The format of the parallel data input file.</p>
|
|
123
|
-
*/
|
|
124
|
-
Format: ParallelDataFormat | string | undefined;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export namespace ParallelDataConfig {
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
|
-
export const filterSensitiveLog = (obj: ParallelDataConfig): any => ({
|
|
132
|
-
...obj,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface CreateParallelDataRequest {
|
|
137
|
-
/**
|
|
138
|
-
* <p>A custom name for the parallel data resource in Amazon Translate. You must assign a name
|
|
139
|
-
* that is unique in the account and region.</p>
|
|
140
|
-
*/
|
|
141
|
-
Name: string | undefined;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* <p>A custom description for the parallel data resource in Amazon Translate.</p>
|
|
145
|
-
*/
|
|
146
|
-
Description?: string;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* <p>Specifies the format and S3 location of the parallel data input file.</p>
|
|
150
|
-
*/
|
|
151
|
-
ParallelDataConfig: ParallelDataConfig | undefined;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* <p>The encryption key used to encrypt this object.</p>
|
|
155
|
-
*/
|
|
156
|
-
EncryptionKey?: EncryptionKey;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* <p>A unique identifier for the request. This token is automatically generated when you use
|
|
160
|
-
* Amazon Translate through an AWS SDK.</p>
|
|
161
|
-
*/
|
|
162
|
-
ClientToken?: string;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export namespace CreateParallelDataRequest {
|
|
166
|
-
/**
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
169
|
-
export const filterSensitiveLog = (obj: CreateParallelDataRequest): any => ({
|
|
170
|
-
...obj,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export enum ParallelDataStatus {
|
|
175
|
-
ACTIVE = "ACTIVE",
|
|
176
|
-
CREATING = "CREATING",
|
|
177
|
-
DELETING = "DELETING",
|
|
178
|
-
FAILED = "FAILED",
|
|
179
|
-
UPDATING = "UPDATING",
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface CreateParallelDataResponse {
|
|
183
|
-
/**
|
|
184
|
-
* <p>The custom name that you assigned to the parallel data resource.</p>
|
|
185
|
-
*/
|
|
186
|
-
Name?: string;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* <p>The status of the parallel data resource. When the resource is ready for you to use, the
|
|
190
|
-
* status is <code>ACTIVE</code>.</p>
|
|
191
|
-
*/
|
|
192
|
-
Status?: ParallelDataStatus | string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export namespace CreateParallelDataResponse {
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
|
-
export const filterSensitiveLog = (obj: CreateParallelDataResponse): any => ({
|
|
200
|
-
...obj,
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* <p>An internal server error occurred. Retry your request.</p>
|
|
206
|
-
*/
|
|
207
|
-
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
208
|
-
name: "InternalServerException";
|
|
209
|
-
$fault: "server";
|
|
210
|
-
Message?: string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export namespace InternalServerException {
|
|
214
|
-
/**
|
|
215
|
-
* @internal
|
|
216
|
-
*/
|
|
217
|
-
export const filterSensitiveLog = (obj: InternalServerException): any => ({
|
|
218
|
-
...obj,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* <p>The value of the parameter is invalid. Review the value of the parameter you are using to
|
|
224
|
-
* correct it, and then retry your operation.</p>
|
|
225
|
-
*/
|
|
226
|
-
export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
|
|
227
|
-
name: "InvalidParameterValueException";
|
|
228
|
-
$fault: "client";
|
|
229
|
-
Message?: string;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export namespace InvalidParameterValueException {
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
*/
|
|
236
|
-
export const filterSensitiveLog = (obj: InvalidParameterValueException): any => ({
|
|
237
|
-
...obj,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* <p> The request that you made is invalid. Check your request to determine why it's invalid
|
|
243
|
-
* and then retry the request. </p>
|
|
244
|
-
*/
|
|
245
|
-
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
246
|
-
name: "InvalidRequestException";
|
|
247
|
-
$fault: "client";
|
|
248
|
-
Message?: string;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export namespace InvalidRequestException {
|
|
252
|
-
/**
|
|
253
|
-
* @internal
|
|
254
|
-
*/
|
|
255
|
-
export const filterSensitiveLog = (obj: InvalidRequestException): any => ({
|
|
256
|
-
...obj,
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* <p>The specified limit has been exceeded. Review your request and retry it with a quantity
|
|
262
|
-
* below the stated limit.</p>
|
|
263
|
-
*/
|
|
264
|
-
export interface LimitExceededException extends __SmithyException, $MetadataBearer {
|
|
265
|
-
name: "LimitExceededException";
|
|
266
|
-
$fault: "client";
|
|
267
|
-
Message?: string;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export namespace LimitExceededException {
|
|
271
|
-
/**
|
|
272
|
-
* @internal
|
|
273
|
-
*/
|
|
274
|
-
export const filterSensitiveLog = (obj: LimitExceededException): any => ({
|
|
275
|
-
...obj,
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
281
|
-
* then try your request again.</p>
|
|
282
|
-
*/
|
|
283
|
-
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
284
|
-
name: "TooManyRequestsException";
|
|
285
|
-
$fault: "client";
|
|
286
|
-
Message?: string;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export namespace TooManyRequestsException {
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
export const filterSensitiveLog = (obj: TooManyRequestsException): any => ({
|
|
294
|
-
...obj,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* <p>Another modification is being made. That modification must complete before you can make
|
|
300
|
-
* your change.</p>
|
|
301
|
-
*/
|
|
302
|
-
export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
|
|
303
|
-
name: "ConcurrentModificationException";
|
|
304
|
-
$fault: "client";
|
|
305
|
-
Message?: string;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export namespace ConcurrentModificationException {
|
|
309
|
-
/**
|
|
310
|
-
* @internal
|
|
311
|
-
*/
|
|
312
|
-
export const filterSensitiveLog = (obj: ConcurrentModificationException): any => ({
|
|
313
|
-
...obj,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export interface DeleteParallelDataRequest {
|
|
318
|
-
/**
|
|
319
|
-
* <p>The name of the parallel data resource that is being deleted.</p>
|
|
320
|
-
*/
|
|
321
|
-
Name: string | undefined;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export namespace DeleteParallelDataRequest {
|
|
325
|
-
/**
|
|
326
|
-
* @internal
|
|
327
|
-
*/
|
|
328
|
-
export const filterSensitiveLog = (obj: DeleteParallelDataRequest): any => ({
|
|
329
|
-
...obj,
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export interface DeleteParallelDataResponse {
|
|
334
|
-
/**
|
|
335
|
-
* <p>The name of the parallel data resource that is being deleted.</p>
|
|
336
|
-
*/
|
|
337
|
-
Name?: string;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* <p>The status of the parallel data deletion.</p>
|
|
341
|
-
*/
|
|
342
|
-
Status?: ParallelDataStatus | string;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export namespace DeleteParallelDataResponse {
|
|
346
|
-
/**
|
|
347
|
-
* @internal
|
|
348
|
-
*/
|
|
349
|
-
export const filterSensitiveLog = (obj: DeleteParallelDataResponse): any => ({
|
|
350
|
-
...obj,
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* <p>The resource you are looking for has not been found. Review the resource you're looking
|
|
356
|
-
* for and see if a different resource will accomplish your needs before retrying the revised
|
|
357
|
-
* request.</p>
|
|
358
|
-
*/
|
|
359
|
-
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
360
|
-
name: "ResourceNotFoundException";
|
|
361
|
-
$fault: "client";
|
|
362
|
-
Message?: string;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export namespace ResourceNotFoundException {
|
|
366
|
-
/**
|
|
367
|
-
* @internal
|
|
368
|
-
*/
|
|
369
|
-
export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
|
|
370
|
-
...obj,
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export interface DeleteTerminologyRequest {
|
|
375
|
-
/**
|
|
376
|
-
* <p>The name of the custom terminology being deleted. </p>
|
|
377
|
-
*/
|
|
378
|
-
Name: string | undefined;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
export namespace DeleteTerminologyRequest {
|
|
382
|
-
/**
|
|
383
|
-
* @internal
|
|
384
|
-
*/
|
|
385
|
-
export const filterSensitiveLog = (obj: DeleteTerminologyRequest): any => ({
|
|
386
|
-
...obj,
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export interface DescribeTextTranslationJobRequest {
|
|
391
|
-
/**
|
|
392
|
-
* <p>The identifier that Amazon Translate generated for the job. The <a>StartTextTranslationJob</a> operation returns this identifier in its
|
|
393
|
-
* response.</p>
|
|
394
|
-
*/
|
|
395
|
-
JobId: string | undefined;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export namespace DescribeTextTranslationJobRequest {
|
|
399
|
-
/**
|
|
400
|
-
* @internal
|
|
401
|
-
*/
|
|
402
|
-
export const filterSensitiveLog = (obj: DescribeTextTranslationJobRequest): any => ({
|
|
403
|
-
...obj,
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* <p>The input configuration properties for requesting a batch translation job.</p>
|
|
409
|
-
*/
|
|
410
|
-
export interface InputDataConfig {
|
|
411
|
-
/**
|
|
412
|
-
* <p>The URI of the AWS S3 folder that contains the input file. The folder must be in the
|
|
413
|
-
* same Region as the API endpoint you are calling.</p>
|
|
414
|
-
*/
|
|
415
|
-
S3Uri: string | undefined;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* <p>Describes the format of the data that you submit to Amazon Translate as input. You can
|
|
419
|
-
* specify one of the following multipurpose internet mail extension (MIME) types:</p>
|
|
420
|
-
* <ul>
|
|
421
|
-
* <li>
|
|
422
|
-
* <p>
|
|
423
|
-
* <code>text/html</code>: The input data consists of one or more HTML files. Amazon
|
|
424
|
-
* Translate translates only the text that resides in the <code>html</code> element in each
|
|
425
|
-
* file.</p>
|
|
426
|
-
* </li>
|
|
427
|
-
* <li>
|
|
428
|
-
* <p>
|
|
429
|
-
* <code>text/plain</code>: The input data consists of one or more unformatted text
|
|
430
|
-
* files. Amazon Translate translates every character in this type of input.</p>
|
|
431
|
-
* </li>
|
|
432
|
-
* <li>
|
|
433
|
-
* <p>
|
|
434
|
-
* <code>application/vnd.openxmlformats-officedocument.wordprocessingml.document</code>:
|
|
435
|
-
* The input data consists of one or more Word documents (.docx).</p>
|
|
436
|
-
* </li>
|
|
437
|
-
* <li>
|
|
438
|
-
* <p>
|
|
439
|
-
* <code>application/vnd.openxmlformats-officedocument.presentationml.presentation</code>:
|
|
440
|
-
* The input data consists of one or more PowerPoint Presentation files (.pptx).</p>
|
|
441
|
-
* </li>
|
|
442
|
-
* <li>
|
|
443
|
-
* <p>
|
|
444
|
-
* <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code>: The
|
|
445
|
-
* input data consists of one or more Excel Workbook files (.xlsx).</p>
|
|
446
|
-
* </li>
|
|
447
|
-
* </ul>
|
|
448
|
-
* <important>
|
|
449
|
-
* <p>If you structure your input data as HTML, ensure that you set this parameter to
|
|
450
|
-
* <code>text/html</code>. By doing so, you cut costs by limiting the translation to the
|
|
451
|
-
* contents of the <code>html</code> element in each file. Otherwise, if you set this parameter
|
|
452
|
-
* to <code>text/plain</code>, your costs will cover the translation of every character.</p>
|
|
453
|
-
* </important>
|
|
454
|
-
*/
|
|
455
|
-
ContentType: string | undefined;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
export namespace InputDataConfig {
|
|
459
|
-
/**
|
|
460
|
-
* @internal
|
|
461
|
-
*/
|
|
462
|
-
export const filterSensitiveLog = (obj: InputDataConfig): any => ({
|
|
463
|
-
...obj,
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* <p>The number of documents successfully and unsuccessfully processed during a translation
|
|
469
|
-
* job.</p>
|
|
470
|
-
*/
|
|
471
|
-
export interface JobDetails {
|
|
472
|
-
/**
|
|
473
|
-
* <p>The number of documents successfully processed during a translation job.</p>
|
|
474
|
-
*/
|
|
475
|
-
TranslatedDocumentsCount?: number;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* <p>The number of documents that could not be processed during a translation job.</p>
|
|
479
|
-
*/
|
|
480
|
-
DocumentsWithErrorsCount?: number;
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* <p>The number of documents used as input in a translation job.</p>
|
|
484
|
-
*/
|
|
485
|
-
InputDocumentsCount?: number;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export namespace JobDetails {
|
|
489
|
-
/**
|
|
490
|
-
* @internal
|
|
491
|
-
*/
|
|
492
|
-
export const filterSensitiveLog = (obj: JobDetails): any => ({
|
|
493
|
-
...obj,
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
export enum JobStatus {
|
|
498
|
-
COMPLETED = "COMPLETED",
|
|
499
|
-
COMPLETED_WITH_ERROR = "COMPLETED_WITH_ERROR",
|
|
500
|
-
FAILED = "FAILED",
|
|
501
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
502
|
-
STOPPED = "STOPPED",
|
|
503
|
-
STOP_REQUESTED = "STOP_REQUESTED",
|
|
504
|
-
SUBMITTED = "SUBMITTED",
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* <p>The output configuration properties for a batch translation job.</p>
|
|
509
|
-
*/
|
|
510
|
-
export interface OutputDataConfig {
|
|
511
|
-
/**
|
|
512
|
-
* <p>The URI of the S3 folder that contains a translation job's output file. The folder must
|
|
513
|
-
* be in the same Region as the API endpoint that you are calling.</p>
|
|
514
|
-
*/
|
|
515
|
-
S3Uri: string | undefined;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export namespace OutputDataConfig {
|
|
519
|
-
/**
|
|
520
|
-
* @internal
|
|
521
|
-
*/
|
|
522
|
-
export const filterSensitiveLog = (obj: OutputDataConfig): any => ({
|
|
523
|
-
...obj,
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* <p>Provides information about a translation job.</p>
|
|
529
|
-
*/
|
|
530
|
-
export interface TextTranslationJobProperties {
|
|
531
|
-
/**
|
|
532
|
-
* <p>The ID of the translation job.</p>
|
|
533
|
-
*/
|
|
534
|
-
JobId?: string;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* <p>The user-defined name of the translation job.</p>
|
|
538
|
-
*/
|
|
539
|
-
JobName?: string;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* <p>The status of the translation job.</p>
|
|
543
|
-
*/
|
|
544
|
-
JobStatus?: JobStatus | string;
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* <p>The number of documents successfully and unsuccessfully processed during the translation
|
|
548
|
-
* job.</p>
|
|
549
|
-
*/
|
|
550
|
-
JobDetails?: JobDetails;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* <p>The language code of the language of the source text. The language must be a language
|
|
554
|
-
* supported by Amazon Translate.</p>
|
|
555
|
-
*/
|
|
556
|
-
SourceLanguageCode?: string;
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* <p>The language code of the language of the target text. The language must be a language
|
|
560
|
-
* supported by Amazon Translate.</p>
|
|
561
|
-
*/
|
|
562
|
-
TargetLanguageCodes?: string[];
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* <p>A list containing the names of the terminologies applied to a translation job. Only one
|
|
566
|
-
* terminology can be applied per <a>StartTextTranslationJob</a> request at this
|
|
567
|
-
* time.</p>
|
|
568
|
-
*/
|
|
569
|
-
TerminologyNames?: string[];
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* <p>A list containing the names of the parallel data resources applied to the translation
|
|
573
|
-
* job.</p>
|
|
574
|
-
*/
|
|
575
|
-
ParallelDataNames?: string[];
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* <p>An explanation of any errors that may have occured during the translation job.</p>
|
|
579
|
-
*/
|
|
580
|
-
Message?: string;
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* <p>The time at which the translation job was submitted.</p>
|
|
584
|
-
*/
|
|
585
|
-
SubmittedTime?: Date;
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* <p>The time at which the translation job ended.</p>
|
|
589
|
-
*/
|
|
590
|
-
EndTime?: Date;
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* <p>The input configuration properties that were specified when the job was requested.</p>
|
|
594
|
-
*/
|
|
595
|
-
InputDataConfig?: InputDataConfig;
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* <p>The output configuration properties that were specified when the job was requested.</p>
|
|
599
|
-
*/
|
|
600
|
-
OutputDataConfig?: OutputDataConfig;
|
|
601
|
-
|
|
602
|
-
/**
|
|
603
|
-
* <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
|
|
604
|
-
* that granted Amazon Translate read access to the job's input data.</p>
|
|
605
|
-
*/
|
|
606
|
-
DataAccessRoleArn?: string;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export namespace TextTranslationJobProperties {
|
|
610
|
-
/**
|
|
611
|
-
* @internal
|
|
612
|
-
*/
|
|
613
|
-
export const filterSensitiveLog = (obj: TextTranslationJobProperties): any => ({
|
|
614
|
-
...obj,
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
export interface DescribeTextTranslationJobResponse {
|
|
619
|
-
/**
|
|
620
|
-
* <p>An object that contains the properties associated with an asynchronous batch translation
|
|
621
|
-
* job.</p>
|
|
622
|
-
*/
|
|
623
|
-
TextTranslationJobProperties?: TextTranslationJobProperties;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
export namespace DescribeTextTranslationJobResponse {
|
|
627
|
-
/**
|
|
628
|
-
* @internal
|
|
629
|
-
*/
|
|
630
|
-
export const filterSensitiveLog = (obj: DescribeTextTranslationJobResponse): any => ({
|
|
631
|
-
...obj,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
export interface GetParallelDataRequest {
|
|
636
|
-
/**
|
|
637
|
-
* <p>The name of the parallel data resource that is being retrieved.</p>
|
|
638
|
-
*/
|
|
639
|
-
Name: string | undefined;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
export namespace GetParallelDataRequest {
|
|
643
|
-
/**
|
|
644
|
-
* @internal
|
|
645
|
-
*/
|
|
646
|
-
export const filterSensitiveLog = (obj: GetParallelDataRequest): any => ({
|
|
647
|
-
...obj,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* <p>The location of the most recent parallel data input file that was successfully imported
|
|
653
|
-
* into Amazon Translate.</p>
|
|
654
|
-
*/
|
|
655
|
-
export interface ParallelDataDataLocation {
|
|
656
|
-
/**
|
|
657
|
-
* <p>Describes the repository that contains the parallel data input file.</p>
|
|
658
|
-
*/
|
|
659
|
-
RepositoryType: string | undefined;
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* <p>The Amazon S3 location of the parallel data input file. The location is returned as a
|
|
663
|
-
* presigned URL to that has a 30 minute expiration.</p>
|
|
664
|
-
*/
|
|
665
|
-
Location: string | undefined;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
export namespace ParallelDataDataLocation {
|
|
669
|
-
/**
|
|
670
|
-
* @internal
|
|
671
|
-
*/
|
|
672
|
-
export const filterSensitiveLog = (obj: ParallelDataDataLocation): any => ({
|
|
673
|
-
...obj,
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/**
|
|
678
|
-
* <p>The properties of a parallel data resource.</p>
|
|
679
|
-
*/
|
|
680
|
-
export interface ParallelDataProperties {
|
|
681
|
-
/**
|
|
682
|
-
* <p>The custom name assigned to the parallel data resource.</p>
|
|
683
|
-
*/
|
|
684
|
-
Name?: string;
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* <p>The Amazon Resource Name (ARN) of the parallel data resource.</p>
|
|
688
|
-
*/
|
|
689
|
-
Arn?: string;
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* <p>The description assigned to the parallel data resource.</p>
|
|
693
|
-
*/
|
|
694
|
-
Description?: string;
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* <p>The status of the parallel data resource. When the parallel data is ready for you to use,
|
|
698
|
-
* the status is <code>ACTIVE</code>.</p>
|
|
699
|
-
*/
|
|
700
|
-
Status?: ParallelDataStatus | string;
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* <p>The source language of the translations in the parallel data file.</p>
|
|
704
|
-
*/
|
|
705
|
-
SourceLanguageCode?: string;
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* <p>The language codes for the target languages available in the parallel data file. All
|
|
709
|
-
* possible target languages are returned as an array.</p>
|
|
710
|
-
*/
|
|
711
|
-
TargetLanguageCodes?: string[];
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* <p>Specifies the format and S3 location of the parallel data input file.</p>
|
|
715
|
-
*/
|
|
716
|
-
ParallelDataConfig?: ParallelDataConfig;
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* <p>Additional information from Amazon Translate about the parallel data resource. </p>
|
|
720
|
-
*/
|
|
721
|
-
Message?: string;
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* <p>The number of UTF-8 characters that Amazon Translate imported from the parallel data input
|
|
725
|
-
* file. This number includes only the characters in your translation examples. It does not
|
|
726
|
-
* include characters that are used to format your file. For example, if you provided a
|
|
727
|
-
* Translation Memory Exchange (.tmx) file, this number does not include the tags.</p>
|
|
728
|
-
*/
|
|
729
|
-
ImportedDataSize?: number;
|
|
730
|
-
|
|
731
|
-
/**
|
|
732
|
-
* <p>The number of records successfully imported from the parallel data input file.</p>
|
|
733
|
-
*/
|
|
734
|
-
ImportedRecordCount?: number;
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* <p>The number of records unsuccessfully imported from the parallel data input file.</p>
|
|
738
|
-
*/
|
|
739
|
-
FailedRecordCount?: number;
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* <p>The number of items in the input file that Amazon Translate skipped when you created or
|
|
743
|
-
* updated the parallel data resource. For example, Amazon Translate skips empty records, empty
|
|
744
|
-
* target texts, and empty lines.</p>
|
|
745
|
-
*/
|
|
746
|
-
SkippedRecordCount?: number;
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* <p>The encryption key used to encrypt this object.</p>
|
|
750
|
-
*/
|
|
751
|
-
EncryptionKey?: EncryptionKey;
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* <p>The time at which the parallel data resource was created.</p>
|
|
755
|
-
*/
|
|
756
|
-
CreatedAt?: Date;
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* <p>The time at which the parallel data resource was last updated.</p>
|
|
760
|
-
*/
|
|
761
|
-
LastUpdatedAt?: Date;
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* <p>The status of the most recent update attempt for the parallel data resource.</p>
|
|
765
|
-
*/
|
|
766
|
-
LatestUpdateAttemptStatus?: ParallelDataStatus | string;
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* <p>The time that the most recent update was attempted.</p>
|
|
770
|
-
*/
|
|
771
|
-
LatestUpdateAttemptAt?: Date;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
export namespace ParallelDataProperties {
|
|
775
|
-
/**
|
|
776
|
-
* @internal
|
|
777
|
-
*/
|
|
778
|
-
export const filterSensitiveLog = (obj: ParallelDataProperties): any => ({
|
|
779
|
-
...obj,
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
export interface GetParallelDataResponse {
|
|
784
|
-
/**
|
|
785
|
-
* <p>The properties of the parallel data resource that is being retrieved.</p>
|
|
786
|
-
*/
|
|
787
|
-
ParallelDataProperties?: ParallelDataProperties;
|
|
788
|
-
|
|
789
|
-
/**
|
|
790
|
-
* <p>The location of the most recent parallel data input file that was successfully imported
|
|
791
|
-
* into Amazon Translate. The location is returned as a presigned URL that has a 30 minute
|
|
792
|
-
* expiration.</p>
|
|
793
|
-
*/
|
|
794
|
-
DataLocation?: ParallelDataDataLocation;
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
|
|
798
|
-
* by your input file. This file was created when Amazon Translate attempted to create a parallel
|
|
799
|
-
* data resource. The location is returned as a presigned URL to that has a 30 minute
|
|
800
|
-
* expiration.</p>
|
|
801
|
-
*/
|
|
802
|
-
AuxiliaryDataLocation?: ParallelDataDataLocation;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* <p>The Amazon S3 location of a file that provides any errors or warnings that were produced
|
|
806
|
-
* by your input file. This file was created when Amazon Translate attempted to update a parallel
|
|
807
|
-
* data resource. The location is returned as a presigned URL to that has a 30 minute
|
|
808
|
-
* expiration.</p>
|
|
809
|
-
*/
|
|
810
|
-
LatestUpdateAttemptAuxiliaryDataLocation?: ParallelDataDataLocation;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
export namespace GetParallelDataResponse {
|
|
814
|
-
/**
|
|
815
|
-
* @internal
|
|
816
|
-
*/
|
|
817
|
-
export const filterSensitiveLog = (obj: GetParallelDataResponse): any => ({
|
|
818
|
-
...obj,
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
export enum TerminologyDataFormat {
|
|
823
|
-
CSV = "CSV",
|
|
824
|
-
TMX = "TMX",
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export interface GetTerminologyRequest {
|
|
828
|
-
/**
|
|
829
|
-
* <p>The name of the custom terminology being retrieved.</p>
|
|
830
|
-
*/
|
|
831
|
-
Name: string | undefined;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* <p>The data format of the custom terminology being retrieved, either CSV or TMX.</p>
|
|
835
|
-
*/
|
|
836
|
-
TerminologyDataFormat: TerminologyDataFormat | string | undefined;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
export namespace GetTerminologyRequest {
|
|
840
|
-
/**
|
|
841
|
-
* @internal
|
|
842
|
-
*/
|
|
843
|
-
export const filterSensitiveLog = (obj: GetTerminologyRequest): any => ({
|
|
844
|
-
...obj,
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* <p>The location of the custom terminology data.</p>
|
|
850
|
-
*/
|
|
851
|
-
export interface TerminologyDataLocation {
|
|
852
|
-
/**
|
|
853
|
-
* <p>The repository type for the custom terminology data.</p>
|
|
854
|
-
*/
|
|
855
|
-
RepositoryType: string | undefined;
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* <p>The location of the custom terminology data.</p>
|
|
859
|
-
*/
|
|
860
|
-
Location: string | undefined;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
export namespace TerminologyDataLocation {
|
|
864
|
-
/**
|
|
865
|
-
* @internal
|
|
866
|
-
*/
|
|
867
|
-
export const filterSensitiveLog = (obj: TerminologyDataLocation): any => ({
|
|
868
|
-
...obj,
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* <p>The properties of the custom terminology.</p>
|
|
874
|
-
*/
|
|
875
|
-
export interface TerminologyProperties {
|
|
876
|
-
/**
|
|
877
|
-
* <p>The name of the custom terminology.</p>
|
|
878
|
-
*/
|
|
879
|
-
Name?: string;
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* <p>The description of the custom terminology properties.</p>
|
|
883
|
-
*/
|
|
884
|
-
Description?: string;
|
|
885
|
-
|
|
886
|
-
/**
|
|
887
|
-
* <p> The Amazon Resource Name (ARN) of the custom terminology. </p>
|
|
888
|
-
*/
|
|
889
|
-
Arn?: string;
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* <p>The language code for the source text of the translation request for which the custom
|
|
893
|
-
* terminology is being used.</p>
|
|
894
|
-
*/
|
|
895
|
-
SourceLanguageCode?: string;
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* <p>The language codes for the target languages available with the custom terminology file.
|
|
899
|
-
* All possible target languages are returned in array.</p>
|
|
900
|
-
*/
|
|
901
|
-
TargetLanguageCodes?: string[];
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* <p>The encryption key for the custom terminology.</p>
|
|
905
|
-
*/
|
|
906
|
-
EncryptionKey?: EncryptionKey;
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* <p>The size of the file used when importing a custom terminology.</p>
|
|
910
|
-
*/
|
|
911
|
-
SizeBytes?: number;
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
* <p>The number of terms included in the custom terminology.</p>
|
|
915
|
-
*/
|
|
916
|
-
TermCount?: number;
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* <p>The time at which the custom terminology was created, based on the timestamp.</p>
|
|
920
|
-
*/
|
|
921
|
-
CreatedAt?: Date;
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* <p>The time at which the custom terminology was last update, based on the timestamp.</p>
|
|
925
|
-
*/
|
|
926
|
-
LastUpdatedAt?: Date;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
export namespace TerminologyProperties {
|
|
930
|
-
/**
|
|
931
|
-
* @internal
|
|
932
|
-
*/
|
|
933
|
-
export const filterSensitiveLog = (obj: TerminologyProperties): any => ({
|
|
934
|
-
...obj,
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
export interface GetTerminologyResponse {
|
|
939
|
-
/**
|
|
940
|
-
* <p>The properties of the custom terminology being retrieved.</p>
|
|
941
|
-
*/
|
|
942
|
-
TerminologyProperties?: TerminologyProperties;
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* <p>The data location of the custom terminology being retrieved. The custom terminology file
|
|
946
|
-
* is returned in a presigned url that has a 30 minute expiration.</p>
|
|
947
|
-
*/
|
|
948
|
-
TerminologyDataLocation?: TerminologyDataLocation;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
export namespace GetTerminologyResponse {
|
|
952
|
-
/**
|
|
953
|
-
* @internal
|
|
954
|
-
*/
|
|
955
|
-
export const filterSensitiveLog = (obj: GetTerminologyResponse): any => ({
|
|
956
|
-
...obj,
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
export enum MergeStrategy {
|
|
961
|
-
OVERWRITE = "OVERWRITE",
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* <p>The data associated with the custom terminology.</p>
|
|
966
|
-
*/
|
|
967
|
-
export interface TerminologyData {
|
|
968
|
-
/**
|
|
969
|
-
* <p>The file containing the custom terminology data. Your version of the AWS SDK performs a
|
|
970
|
-
* Base64-encoding on this field before sending a request to the AWS service. Users of the SDK
|
|
971
|
-
* should not perform Base64-encoding themselves.</p>
|
|
972
|
-
*/
|
|
973
|
-
File: Uint8Array | undefined;
|
|
974
|
-
|
|
975
|
-
/**
|
|
976
|
-
* <p>The data format of the custom terminology. Either CSV or TMX.</p>
|
|
977
|
-
*/
|
|
978
|
-
Format: TerminologyDataFormat | string | undefined;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
export namespace TerminologyData {
|
|
982
|
-
/**
|
|
983
|
-
* @internal
|
|
984
|
-
*/
|
|
985
|
-
export const filterSensitiveLog = (obj: TerminologyData): any => ({
|
|
986
|
-
...obj,
|
|
987
|
-
...(obj.File && { File: SENSITIVE_STRING }),
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
export interface ImportTerminologyRequest {
|
|
992
|
-
/**
|
|
993
|
-
* <p>The name of the custom terminology being imported.</p>
|
|
994
|
-
*/
|
|
995
|
-
Name: string | undefined;
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* <p>The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE
|
|
999
|
-
* merge strategy is supported. In this case, the imported terminology will overwrite an existing
|
|
1000
|
-
* terminology of the same name.</p>
|
|
1001
|
-
*/
|
|
1002
|
-
MergeStrategy: MergeStrategy | string | undefined;
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* <p>The description of the custom terminology being imported.</p>
|
|
1006
|
-
*/
|
|
1007
|
-
Description?: string;
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
* <p>The terminology data for the custom terminology being imported.</p>
|
|
1011
|
-
*/
|
|
1012
|
-
TerminologyData: TerminologyData | undefined;
|
|
1013
|
-
|
|
1014
|
-
/**
|
|
1015
|
-
* <p>The encryption key for the custom terminology being imported.</p>
|
|
1016
|
-
*/
|
|
1017
|
-
EncryptionKey?: EncryptionKey;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export namespace ImportTerminologyRequest {
|
|
1021
|
-
/**
|
|
1022
|
-
* @internal
|
|
1023
|
-
*/
|
|
1024
|
-
export const filterSensitiveLog = (obj: ImportTerminologyRequest): any => ({
|
|
1025
|
-
...obj,
|
|
1026
|
-
...(obj.TerminologyData && { TerminologyData: TerminologyData.filterSensitiveLog(obj.TerminologyData) }),
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
export interface ImportTerminologyResponse {
|
|
1031
|
-
/**
|
|
1032
|
-
* <p>The properties of the custom terminology being imported.</p>
|
|
1033
|
-
*/
|
|
1034
|
-
TerminologyProperties?: TerminologyProperties;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
export namespace ImportTerminologyResponse {
|
|
1038
|
-
/**
|
|
1039
|
-
* @internal
|
|
1040
|
-
*/
|
|
1041
|
-
export const filterSensitiveLog = (obj: ImportTerminologyResponse): any => ({
|
|
1042
|
-
...obj,
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
export interface ListParallelDataRequest {
|
|
1047
|
-
/**
|
|
1048
|
-
* <p>A string that specifies the next page of results to return in a paginated response.</p>
|
|
1049
|
-
*/
|
|
1050
|
-
NextToken?: string;
|
|
1051
|
-
|
|
1052
|
-
/**
|
|
1053
|
-
* <p>The maximum number of parallel data resources returned for each request.</p>
|
|
1054
|
-
*/
|
|
1055
|
-
MaxResults?: number;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
export namespace ListParallelDataRequest {
|
|
1059
|
-
/**
|
|
1060
|
-
* @internal
|
|
1061
|
-
*/
|
|
1062
|
-
export const filterSensitiveLog = (obj: ListParallelDataRequest): any => ({
|
|
1063
|
-
...obj,
|
|
1064
|
-
});
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
export interface ListParallelDataResponse {
|
|
1068
|
-
/**
|
|
1069
|
-
* <p>The properties of the parallel data resources returned by this request.</p>
|
|
1070
|
-
*/
|
|
1071
|
-
ParallelDataPropertiesList?: ParallelDataProperties[];
|
|
1072
|
-
|
|
1073
|
-
/**
|
|
1074
|
-
* <p>The string to use in a subsequent request to get the next page of results in a paginated
|
|
1075
|
-
* response. This value is null if there are no additional pages.</p>
|
|
1076
|
-
*/
|
|
1077
|
-
NextToken?: string;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
export namespace ListParallelDataResponse {
|
|
1081
|
-
/**
|
|
1082
|
-
* @internal
|
|
1083
|
-
*/
|
|
1084
|
-
export const filterSensitiveLog = (obj: ListParallelDataResponse): any => ({
|
|
1085
|
-
...obj,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
export interface ListTerminologiesRequest {
|
|
1090
|
-
/**
|
|
1091
|
-
* <p>If the result of the request to ListTerminologies was truncated, include the NextToken to
|
|
1092
|
-
* fetch the next group of custom terminologies. </p>
|
|
1093
|
-
*/
|
|
1094
|
-
NextToken?: string;
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* <p>The maximum number of custom terminologies returned per list request.</p>
|
|
1098
|
-
*/
|
|
1099
|
-
MaxResults?: number;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
export namespace ListTerminologiesRequest {
|
|
1103
|
-
/**
|
|
1104
|
-
* @internal
|
|
1105
|
-
*/
|
|
1106
|
-
export const filterSensitiveLog = (obj: ListTerminologiesRequest): any => ({
|
|
1107
|
-
...obj,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
export interface ListTerminologiesResponse {
|
|
1112
|
-
/**
|
|
1113
|
-
* <p>The properties list of the custom terminologies returned on the list request.</p>
|
|
1114
|
-
*/
|
|
1115
|
-
TerminologyPropertiesList?: TerminologyProperties[];
|
|
1116
|
-
|
|
1117
|
-
/**
|
|
1118
|
-
* <p> If the response to the ListTerminologies was truncated, the NextToken fetches the next
|
|
1119
|
-
* group of custom terminologies.</p>
|
|
1120
|
-
*/
|
|
1121
|
-
NextToken?: string;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
export namespace ListTerminologiesResponse {
|
|
1125
|
-
/**
|
|
1126
|
-
* @internal
|
|
1127
|
-
*/
|
|
1128
|
-
export const filterSensitiveLog = (obj: ListTerminologiesResponse): any => ({
|
|
1129
|
-
...obj,
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* <p>The filter specified for the operation is invalid. Specify a different filter.</p>
|
|
1135
|
-
*/
|
|
1136
|
-
export interface InvalidFilterException extends __SmithyException, $MetadataBearer {
|
|
1137
|
-
name: "InvalidFilterException";
|
|
1138
|
-
$fault: "client";
|
|
1139
|
-
Message?: string;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export namespace InvalidFilterException {
|
|
1143
|
-
/**
|
|
1144
|
-
* @internal
|
|
1145
|
-
*/
|
|
1146
|
-
export const filterSensitiveLog = (obj: InvalidFilterException): any => ({
|
|
1147
|
-
...obj,
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* <p>Provides information for filtering a list of translation jobs. For more information, see
|
|
1153
|
-
* <a>ListTextTranslationJobs</a>.</p>
|
|
1154
|
-
*/
|
|
1155
|
-
export interface TextTranslationJobFilter {
|
|
1156
|
-
/**
|
|
1157
|
-
* <p>Filters the list of jobs by name.</p>
|
|
1158
|
-
*/
|
|
1159
|
-
JobName?: string;
|
|
1160
|
-
|
|
1161
|
-
/**
|
|
1162
|
-
* <p>Filters the list of jobs based by job status.</p>
|
|
1163
|
-
*/
|
|
1164
|
-
JobStatus?: JobStatus | string;
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* <p>Filters the list of jobs based on the time that the job was submitted for processing and
|
|
1168
|
-
* returns only the jobs submitted before the specified time. Jobs are returned in ascending
|
|
1169
|
-
* order, oldest to newest.</p>
|
|
1170
|
-
*/
|
|
1171
|
-
SubmittedBeforeTime?: Date;
|
|
1172
|
-
|
|
1173
|
-
/**
|
|
1174
|
-
* <p>Filters the list of jobs based on the time that the job was submitted for processing and
|
|
1175
|
-
* returns only the jobs submitted after the specified time. Jobs are returned in descending
|
|
1176
|
-
* order, newest to oldest.</p>
|
|
1177
|
-
*/
|
|
1178
|
-
SubmittedAfterTime?: Date;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
export namespace TextTranslationJobFilter {
|
|
1182
|
-
/**
|
|
1183
|
-
* @internal
|
|
1184
|
-
*/
|
|
1185
|
-
export const filterSensitiveLog = (obj: TextTranslationJobFilter): any => ({
|
|
1186
|
-
...obj,
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
export interface ListTextTranslationJobsRequest {
|
|
1191
|
-
/**
|
|
1192
|
-
* <p>The parameters that specify which batch translation jobs to retrieve. Filters include job
|
|
1193
|
-
* name, job status, and submission time. You can only set one filter at a time.</p>
|
|
1194
|
-
*/
|
|
1195
|
-
Filter?: TextTranslationJobFilter;
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* <p>The token to request the next page of results.</p>
|
|
1199
|
-
*/
|
|
1200
|
-
NextToken?: string;
|
|
1201
|
-
|
|
1202
|
-
/**
|
|
1203
|
-
* <p>The maximum number of results to return in each page. The default value is 100.</p>
|
|
1204
|
-
*/
|
|
1205
|
-
MaxResults?: number;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
export namespace ListTextTranslationJobsRequest {
|
|
1209
|
-
/**
|
|
1210
|
-
* @internal
|
|
1211
|
-
*/
|
|
1212
|
-
export const filterSensitiveLog = (obj: ListTextTranslationJobsRequest): any => ({
|
|
1213
|
-
...obj,
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
export interface ListTextTranslationJobsResponse {
|
|
1218
|
-
/**
|
|
1219
|
-
* <p>A list containing the properties of each job that is returned.</p>
|
|
1220
|
-
*/
|
|
1221
|
-
TextTranslationJobPropertiesList?: TextTranslationJobProperties[];
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* <p>The token to use to retreive the next page of results. This value is <code>null</code>
|
|
1225
|
-
* when there are no more results to return.</p>
|
|
1226
|
-
*/
|
|
1227
|
-
NextToken?: string;
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
export namespace ListTextTranslationJobsResponse {
|
|
1231
|
-
/**
|
|
1232
|
-
* @internal
|
|
1233
|
-
*/
|
|
1234
|
-
export const filterSensitiveLog = (obj: ListTextTranslationJobsResponse): any => ({
|
|
1235
|
-
...obj,
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
export interface StartTextTranslationJobRequest {
|
|
1240
|
-
/**
|
|
1241
|
-
* <p>The name of the batch translation job to be performed.</p>
|
|
1242
|
-
*/
|
|
1243
|
-
JobName?: string;
|
|
1244
|
-
|
|
1245
|
-
/**
|
|
1246
|
-
* <p>Specifies the format and S3 location of the input documents for the translation
|
|
1247
|
-
* job.</p>
|
|
1248
|
-
*/
|
|
1249
|
-
InputDataConfig: InputDataConfig | undefined;
|
|
1250
|
-
|
|
1251
|
-
/**
|
|
1252
|
-
* <p>Specifies the S3 folder to which your job output will be saved.
|
|
1253
|
-
* </p>
|
|
1254
|
-
*/
|
|
1255
|
-
OutputDataConfig: OutputDataConfig | undefined;
|
|
1256
|
-
|
|
1257
|
-
/**
|
|
1258
|
-
* <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
|
|
1259
|
-
* that grants Amazon Translate read access to your input data. For more nformation, see <a>identity-and-access-management</a>.</p>
|
|
1260
|
-
*/
|
|
1261
|
-
DataAccessRoleArn: string | undefined;
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* <p>The language code of the input language. For a list of language codes, see <a>what-is-languages</a>.</p>
|
|
1265
|
-
* <p>Amazon Translate does not automatically detect a source language during batch translation
|
|
1266
|
-
* jobs.</p>
|
|
1267
|
-
*/
|
|
1268
|
-
SourceLanguageCode: string | undefined;
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
* <p>The language code of the output language.</p>
|
|
1272
|
-
*/
|
|
1273
|
-
TargetLanguageCodes: string[] | undefined;
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* <p>The name of the terminology to use in the batch translation job. For a list of available
|
|
1277
|
-
* terminologies, use the <a>ListTerminologies</a> operation.</p>
|
|
1278
|
-
*/
|
|
1279
|
-
TerminologyNames?: string[];
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* <p>The names of the parallel data resources to use in the batch translation job. For a list
|
|
1283
|
-
* of available parallel data resources, use the <a>ListParallelData</a>
|
|
1284
|
-
* operation.</p>
|
|
1285
|
-
*/
|
|
1286
|
-
ParallelDataNames?: string[];
|
|
1287
|
-
|
|
1288
|
-
/**
|
|
1289
|
-
* <p>A unique identifier for the request. This token is auto-generated when using the Amazon Translate
|
|
1290
|
-
* SDK.</p>
|
|
1291
|
-
*/
|
|
1292
|
-
ClientToken?: string;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
export namespace StartTextTranslationJobRequest {
|
|
1296
|
-
/**
|
|
1297
|
-
* @internal
|
|
1298
|
-
*/
|
|
1299
|
-
export const filterSensitiveLog = (obj: StartTextTranslationJobRequest): any => ({
|
|
1300
|
-
...obj,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
export interface StartTextTranslationJobResponse {
|
|
1305
|
-
/**
|
|
1306
|
-
* <p>The identifier generated for the job. To get the status of a job, use this ID with the
|
|
1307
|
-
* <a>DescribeTextTranslationJob</a> operation.</p>
|
|
1308
|
-
*/
|
|
1309
|
-
JobId?: string;
|
|
1310
|
-
|
|
1311
|
-
/**
|
|
1312
|
-
* <p>The status of the job. Possible values include:</p>
|
|
1313
|
-
* <ul>
|
|
1314
|
-
* <li>
|
|
1315
|
-
* <p>
|
|
1316
|
-
* <code>SUBMITTED</code> - The job has been received and is queued for
|
|
1317
|
-
* processing.</p>
|
|
1318
|
-
* </li>
|
|
1319
|
-
* <li>
|
|
1320
|
-
* <p>
|
|
1321
|
-
* <code>IN_PROGRESS</code> - Amazon Translate is processing the job.</p>
|
|
1322
|
-
* </li>
|
|
1323
|
-
* <li>
|
|
1324
|
-
* <p>
|
|
1325
|
-
* <code>COMPLETED</code> - The job was successfully completed and the output is
|
|
1326
|
-
* available.</p>
|
|
1327
|
-
* </li>
|
|
1328
|
-
* <li>
|
|
1329
|
-
* <p>
|
|
1330
|
-
* <code>COMPLETED_WITH_ERROR</code> - The job was completed with errors. The errors can
|
|
1331
|
-
* be analyzed in the job's output.</p>
|
|
1332
|
-
* </li>
|
|
1333
|
-
* <li>
|
|
1334
|
-
* <p>
|
|
1335
|
-
* <code>FAILED</code> - The job did not complete. To get details, use the <a>DescribeTextTranslationJob</a> operation.</p>
|
|
1336
|
-
* </li>
|
|
1337
|
-
* <li>
|
|
1338
|
-
* <p>
|
|
1339
|
-
* <code>STOP_REQUESTED</code> - The user who started the job has requested that it be
|
|
1340
|
-
* stopped.</p>
|
|
1341
|
-
* </li>
|
|
1342
|
-
* <li>
|
|
1343
|
-
* <p>
|
|
1344
|
-
* <code>STOPPED</code> - The job has been stopped.</p>
|
|
1345
|
-
* </li>
|
|
1346
|
-
* </ul>
|
|
1347
|
-
*/
|
|
1348
|
-
JobStatus?: JobStatus | string;
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
export namespace StartTextTranslationJobResponse {
|
|
1352
|
-
/**
|
|
1353
|
-
* @internal
|
|
1354
|
-
*/
|
|
1355
|
-
export const filterSensitiveLog = (obj: StartTextTranslationJobResponse): any => ({
|
|
1356
|
-
...obj,
|
|
1357
|
-
});
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* <p>Amazon Translate does not support translation from the language of the source text into the requested
|
|
1362
|
-
* target language. For more information, see <a>how-to-error-msg</a>. </p>
|
|
1363
|
-
*/
|
|
1364
|
-
export interface UnsupportedLanguagePairException extends __SmithyException, $MetadataBearer {
|
|
1365
|
-
name: "UnsupportedLanguagePairException";
|
|
1366
|
-
$fault: "client";
|
|
1367
|
-
Message?: string;
|
|
1368
|
-
/**
|
|
1369
|
-
* <p>The language code for the language of the input text. </p>
|
|
1370
|
-
*/
|
|
1371
|
-
SourceLanguageCode?: string;
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* <p>The language code for the language of the translated text. </p>
|
|
1375
|
-
*/
|
|
1376
|
-
TargetLanguageCode?: string;
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
export namespace UnsupportedLanguagePairException {
|
|
1380
|
-
/**
|
|
1381
|
-
* @internal
|
|
1382
|
-
*/
|
|
1383
|
-
export const filterSensitiveLog = (obj: UnsupportedLanguagePairException): any => ({
|
|
1384
|
-
...obj,
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
export interface StopTextTranslationJobRequest {
|
|
1389
|
-
/**
|
|
1390
|
-
* <p>The job ID of the job to be stopped.</p>
|
|
1391
|
-
*/
|
|
1392
|
-
JobId: string | undefined;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
export namespace StopTextTranslationJobRequest {
|
|
1396
|
-
/**
|
|
1397
|
-
* @internal
|
|
1398
|
-
*/
|
|
1399
|
-
export const filterSensitiveLog = (obj: StopTextTranslationJobRequest): any => ({
|
|
1400
|
-
...obj,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
export interface StopTextTranslationJobResponse {
|
|
1405
|
-
/**
|
|
1406
|
-
* <p>The job ID of the stopped batch translation job.</p>
|
|
1407
|
-
*/
|
|
1408
|
-
JobId?: string;
|
|
1409
|
-
|
|
1410
|
-
/**
|
|
1411
|
-
* <p>The status of the designated job. Upon successful completion, the job's status will be
|
|
1412
|
-
* <code>STOPPED</code>.</p>
|
|
1413
|
-
*/
|
|
1414
|
-
JobStatus?: JobStatus | string;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
export namespace StopTextTranslationJobResponse {
|
|
1418
|
-
/**
|
|
1419
|
-
* @internal
|
|
1420
|
-
*/
|
|
1421
|
-
export const filterSensitiveLog = (obj: StopTextTranslationJobResponse): any => ({
|
|
1422
|
-
...obj,
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* <p>The confidence that Amazon Comprehend accurately detected the source language is low. If a
|
|
1428
|
-
* low confidence level is acceptable for your application, you can use the language in the
|
|
1429
|
-
* exception to call Amazon Translate again. For more information, see the <a href="https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html">DetectDominantLanguage</a> operation in the <i>Amazon Comprehend Developer
|
|
1430
|
-
* Guide</i>. </p>
|
|
1431
|
-
*/
|
|
1432
|
-
export interface DetectedLanguageLowConfidenceException extends __SmithyException, $MetadataBearer {
|
|
1433
|
-
name: "DetectedLanguageLowConfidenceException";
|
|
1434
|
-
$fault: "client";
|
|
1435
|
-
Message?: string;
|
|
1436
|
-
/**
|
|
1437
|
-
* <p>The language code of the auto-detected language from Amazon Comprehend.</p>
|
|
1438
|
-
*/
|
|
1439
|
-
DetectedLanguageCode?: string;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
export namespace DetectedLanguageLowConfidenceException {
|
|
1443
|
-
/**
|
|
1444
|
-
* @internal
|
|
1445
|
-
*/
|
|
1446
|
-
export const filterSensitiveLog = (obj: DetectedLanguageLowConfidenceException): any => ({
|
|
1447
|
-
...obj,
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
/**
|
|
1452
|
-
* <p>The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your
|
|
1453
|
-
* request.</p>
|
|
1454
|
-
*/
|
|
1455
|
-
export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
|
|
1456
|
-
name: "ServiceUnavailableException";
|
|
1457
|
-
$fault: "server";
|
|
1458
|
-
Message?: string;
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
export namespace ServiceUnavailableException {
|
|
1462
|
-
/**
|
|
1463
|
-
* @internal
|
|
1464
|
-
*/
|
|
1465
|
-
export const filterSensitiveLog = (obj: ServiceUnavailableException): any => ({
|
|
1466
|
-
...obj,
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
/**
|
|
1471
|
-
* <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
|
|
1472
|
-
* use a smaller document and then retry your request. </p>
|
|
1473
|
-
*/
|
|
1474
|
-
export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
|
|
1475
|
-
name: "TextSizeLimitExceededException";
|
|
1476
|
-
$fault: "client";
|
|
1477
|
-
Message?: string;
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
export namespace TextSizeLimitExceededException {
|
|
1481
|
-
/**
|
|
1482
|
-
* @internal
|
|
1483
|
-
*/
|
|
1484
|
-
export const filterSensitiveLog = (obj: TextSizeLimitExceededException): any => ({
|
|
1485
|
-
...obj,
|
|
1486
|
-
});
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
export interface TranslateTextRequest {
|
|
1490
|
-
/**
|
|
1491
|
-
* <p>The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on
|
|
1492
|
-
* your character set, this may be fewer than 5,000 characters.</p>
|
|
1493
|
-
*/
|
|
1494
|
-
Text: string | undefined;
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* <p>The name of the terminology list file to be used in the TranslateText request. You can use
|
|
1498
|
-
* 1 terminology list at most in a <code>TranslateText</code> request. Terminology lists can
|
|
1499
|
-
* contain a maximum of 256 terms.</p>
|
|
1500
|
-
*/
|
|
1501
|
-
TerminologyNames?: string[];
|
|
1502
|
-
|
|
1503
|
-
/**
|
|
1504
|
-
* <p>The language code for the language of the source text. The language must be a language
|
|
1505
|
-
* supported by Amazon Translate. For a list of language codes, see <a>what-is-languages</a>.</p>
|
|
1506
|
-
* <p>To have Amazon Translate determine the source language of your text, you can specify
|
|
1507
|
-
* <code>auto</code> in the <code>SourceLanguageCode</code> field. If you specify
|
|
1508
|
-
* <code>auto</code>, Amazon Translate will call <a href="https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html">Amazon
|
|
1509
|
-
* Comprehend</a> to determine the source language.</p>
|
|
1510
|
-
*/
|
|
1511
|
-
SourceLanguageCode: string | undefined;
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* <p>The language code requested for the language of the target text. The language must be a
|
|
1515
|
-
* language supported by Amazon Translate.</p>
|
|
1516
|
-
*/
|
|
1517
|
-
TargetLanguageCode: string | undefined;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
export namespace TranslateTextRequest {
|
|
1521
|
-
/**
|
|
1522
|
-
* @internal
|
|
1523
|
-
*/
|
|
1524
|
-
export const filterSensitiveLog = (obj: TranslateTextRequest): any => ({
|
|
1525
|
-
...obj,
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
|
-
export interface TranslateTextResponse {
|
|
1530
|
-
/**
|
|
1531
|
-
* <p>The translated text.</p>
|
|
1532
|
-
*/
|
|
1533
|
-
TranslatedText: string | undefined;
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* <p>The language code for the language of the source text.</p>
|
|
1537
|
-
*/
|
|
1538
|
-
SourceLanguageCode: string | undefined;
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* <p>The language code for the language of the target text. </p>
|
|
1542
|
-
*/
|
|
1543
|
-
TargetLanguageCode: string | undefined;
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* <p>The names of the custom terminologies applied to the input text by Amazon Translate for the
|
|
1547
|
-
* translated text response.</p>
|
|
1548
|
-
*/
|
|
1549
|
-
AppliedTerminologies?: AppliedTerminology[];
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
export namespace TranslateTextResponse {
|
|
1553
|
-
/**
|
|
1554
|
-
* @internal
|
|
1555
|
-
*/
|
|
1556
|
-
export const filterSensitiveLog = (obj: TranslateTextResponse): any => ({
|
|
1557
|
-
...obj,
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
export interface UpdateParallelDataRequest {
|
|
1562
|
-
/**
|
|
1563
|
-
* <p>The name of the parallel data resource being updated.</p>
|
|
1564
|
-
*/
|
|
1565
|
-
Name: string | undefined;
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* <p>A custom description for the parallel data resource in Amazon Translate.</p>
|
|
1569
|
-
*/
|
|
1570
|
-
Description?: string;
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* <p>Specifies the format and S3 location of the parallel data input file.</p>
|
|
1574
|
-
*/
|
|
1575
|
-
ParallelDataConfig: ParallelDataConfig | undefined;
|
|
1576
|
-
|
|
1577
|
-
/**
|
|
1578
|
-
* <p>A unique identifier for the request. This token is automatically generated when you use
|
|
1579
|
-
* Amazon Translate through an AWS SDK.</p>
|
|
1580
|
-
*/
|
|
1581
|
-
ClientToken?: string;
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
export namespace UpdateParallelDataRequest {
|
|
1585
|
-
/**
|
|
1586
|
-
* @internal
|
|
1587
|
-
*/
|
|
1588
|
-
export const filterSensitiveLog = (obj: UpdateParallelDataRequest): any => ({
|
|
1589
|
-
...obj,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
export interface UpdateParallelDataResponse {
|
|
1594
|
-
/**
|
|
1595
|
-
* <p>The name of the parallel data resource being updated.</p>
|
|
1596
|
-
*/
|
|
1597
|
-
Name?: string;
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* <p>The status of the parallel data resource that you are attempting to update. Your update
|
|
1601
|
-
* request is accepted only if this status is either <code>ACTIVE</code> or
|
|
1602
|
-
* <code>FAILED</code>.</p>
|
|
1603
|
-
*/
|
|
1604
|
-
Status?: ParallelDataStatus | string;
|
|
1605
|
-
|
|
1606
|
-
/**
|
|
1607
|
-
* <p>The status of the parallel data update attempt. When the updated parallel data resource is
|
|
1608
|
-
* ready for you to use, the status is <code>ACTIVE</code>.</p>
|
|
1609
|
-
*/
|
|
1610
|
-
LatestUpdateAttemptStatus?: ParallelDataStatus | string;
|
|
1611
|
-
|
|
1612
|
-
/**
|
|
1613
|
-
* <p>The time that the most recent update was attempted.</p>
|
|
1614
|
-
*/
|
|
1615
|
-
LatestUpdateAttemptAt?: Date;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
export namespace UpdateParallelDataResponse {
|
|
1619
|
-
/**
|
|
1620
|
-
* @internal
|
|
1621
|
-
*/
|
|
1622
|
-
export const filterSensitiveLog = (obj: UpdateParallelDataResponse): any => ({
|
|
1623
|
-
...obj,
|
|
1624
|
-
});
|
|
1625
|
-
}
|