@aws-sdk/client-translate 3.118.0 → 3.121.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 +31 -0
- package/dist-cjs/Translate.js +15 -0
- package/dist-cjs/commands/ListLanguagesCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +48 -2
- package/dist-cjs/pagination/ListLanguagesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +176 -58
- package/dist-es/Translate.js +15 -0
- package/dist-es/commands/ListLanguagesCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/pagination/ListLanguagesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +190 -58
- package/dist-types/Translate.d.ts +15 -8
- package/dist-types/TranslateClient.d.ts +3 -2
- package/dist-types/commands/ImportTerminologyCommand.d.ts +8 -8
- package/dist-types/commands/ListLanguagesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +144 -32
- package/dist-types/pagination/ListLanguagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/Translate.d.ts +5 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/ListLanguagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +58 -0
- package/dist-types/ts3.4/pagination/ListLanguagesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_1UpdateParallelDataCommand = exports.deserializeAws_json1_1TranslateTextCommand = exports.deserializeAws_json1_1StopTextTranslationJobCommand = exports.deserializeAws_json1_1StartTextTranslationJobCommand = exports.deserializeAws_json1_1ListTextTranslationJobsCommand = exports.deserializeAws_json1_1ListTerminologiesCommand = exports.deserializeAws_json1_1ListParallelDataCommand = exports.deserializeAws_json1_1ImportTerminologyCommand = exports.deserializeAws_json1_1GetTerminologyCommand = exports.deserializeAws_json1_1GetParallelDataCommand = exports.deserializeAws_json1_1DescribeTextTranslationJobCommand = exports.deserializeAws_json1_1DeleteTerminologyCommand = exports.deserializeAws_json1_1DeleteParallelDataCommand = exports.deserializeAws_json1_1CreateParallelDataCommand = exports.serializeAws_json1_1UpdateParallelDataCommand = exports.serializeAws_json1_1TranslateTextCommand = exports.serializeAws_json1_1StopTextTranslationJobCommand = exports.serializeAws_json1_1StartTextTranslationJobCommand = exports.serializeAws_json1_1ListTextTranslationJobsCommand = exports.serializeAws_json1_1ListTerminologiesCommand = exports.serializeAws_json1_1ListParallelDataCommand = exports.serializeAws_json1_1ImportTerminologyCommand = exports.serializeAws_json1_1GetTerminologyCommand = exports.serializeAws_json1_1GetParallelDataCommand = exports.serializeAws_json1_1DescribeTextTranslationJobCommand = exports.serializeAws_json1_1DeleteTerminologyCommand = exports.serializeAws_json1_1DeleteParallelDataCommand = exports.serializeAws_json1_1CreateParallelDataCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1UpdateParallelDataCommand = exports.deserializeAws_json1_1TranslateTextCommand = exports.deserializeAws_json1_1StopTextTranslationJobCommand = exports.deserializeAws_json1_1StartTextTranslationJobCommand = exports.deserializeAws_json1_1ListTextTranslationJobsCommand = exports.deserializeAws_json1_1ListTerminologiesCommand = exports.deserializeAws_json1_1ListParallelDataCommand = exports.deserializeAws_json1_1ListLanguagesCommand = exports.deserializeAws_json1_1ImportTerminologyCommand = exports.deserializeAws_json1_1GetTerminologyCommand = exports.deserializeAws_json1_1GetParallelDataCommand = exports.deserializeAws_json1_1DescribeTextTranslationJobCommand = exports.deserializeAws_json1_1DeleteTerminologyCommand = exports.deserializeAws_json1_1DeleteParallelDataCommand = exports.deserializeAws_json1_1CreateParallelDataCommand = exports.serializeAws_json1_1UpdateParallelDataCommand = exports.serializeAws_json1_1TranslateTextCommand = exports.serializeAws_json1_1StopTextTranslationJobCommand = exports.serializeAws_json1_1StartTextTranslationJobCommand = exports.serializeAws_json1_1ListTextTranslationJobsCommand = exports.serializeAws_json1_1ListTerminologiesCommand = exports.serializeAws_json1_1ListParallelDataCommand = exports.serializeAws_json1_1ListLanguagesCommand = exports.serializeAws_json1_1ImportTerminologyCommand = exports.serializeAws_json1_1GetTerminologyCommand = exports.serializeAws_json1_1GetParallelDataCommand = exports.serializeAws_json1_1DescribeTextTranslationJobCommand = exports.serializeAws_json1_1DeleteTerminologyCommand = exports.serializeAws_json1_1DeleteParallelDataCommand = exports.serializeAws_json1_1CreateParallelDataCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -76,6 +76,16 @@ const serializeAws_json1_1ImportTerminologyCommand = async (input, context) => {
|
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.serializeAws_json1_1ImportTerminologyCommand = serializeAws_json1_1ImportTerminologyCommand;
|
|
79
|
+
const serializeAws_json1_1ListLanguagesCommand = async (input, context) => {
|
|
80
|
+
const headers = {
|
|
81
|
+
"content-type": "application/x-amz-json-1.1",
|
|
82
|
+
"x-amz-target": "AWSShineFrontendService_20170701.ListLanguages",
|
|
83
|
+
};
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(serializeAws_json1_1ListLanguagesRequest(input, context));
|
|
86
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_json1_1ListLanguagesCommand = serializeAws_json1_1ListLanguagesCommand;
|
|
79
89
|
const serializeAws_json1_1ListParallelDataCommand = async (input, context) => {
|
|
80
90
|
const headers = {
|
|
81
91
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -166,8 +176,7 @@ const deserializeAws_json1_1CreateParallelDataCommandError = async (output, cont
|
|
|
166
176
|
body: await parseBody(output.body, context),
|
|
167
177
|
};
|
|
168
178
|
let response;
|
|
169
|
-
|
|
170
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
179
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
171
180
|
switch (errorCode) {
|
|
172
181
|
case "ConflictException":
|
|
173
182
|
case "com.amazonaws.translate#ConflictException":
|
|
@@ -189,10 +198,12 @@ const deserializeAws_json1_1CreateParallelDataCommandError = async (output, cont
|
|
|
189
198
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
190
199
|
default:
|
|
191
200
|
const parsedBody = parsedOutput.body;
|
|
201
|
+
const $metadata = deserializeMetadata(output);
|
|
202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
192
203
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
193
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
194
205
|
$fault: "client",
|
|
195
|
-
$metadata
|
|
206
|
+
$metadata,
|
|
196
207
|
});
|
|
197
208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
198
209
|
}
|
|
@@ -217,8 +228,7 @@ const deserializeAws_json1_1DeleteParallelDataCommandError = async (output, cont
|
|
|
217
228
|
body: await parseBody(output.body, context),
|
|
218
229
|
};
|
|
219
230
|
let response;
|
|
220
|
-
|
|
221
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
222
232
|
switch (errorCode) {
|
|
223
233
|
case "ConcurrentModificationException":
|
|
224
234
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
@@ -234,10 +244,12 @@ const deserializeAws_json1_1DeleteParallelDataCommandError = async (output, cont
|
|
|
234
244
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
235
245
|
default:
|
|
236
246
|
const parsedBody = parsedOutput.body;
|
|
247
|
+
const $metadata = deserializeMetadata(output);
|
|
248
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
237
249
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
239
251
|
$fault: "client",
|
|
240
|
-
$metadata
|
|
252
|
+
$metadata,
|
|
241
253
|
});
|
|
242
254
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
243
255
|
}
|
|
@@ -259,8 +271,7 @@ const deserializeAws_json1_1DeleteTerminologyCommandError = async (output, conte
|
|
|
259
271
|
body: await parseBody(output.body, context),
|
|
260
272
|
};
|
|
261
273
|
let response;
|
|
262
|
-
|
|
263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
274
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
264
275
|
switch (errorCode) {
|
|
265
276
|
case "InternalServerException":
|
|
266
277
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -276,10 +287,12 @@ const deserializeAws_json1_1DeleteTerminologyCommandError = async (output, conte
|
|
|
276
287
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
277
288
|
default:
|
|
278
289
|
const parsedBody = parsedOutput.body;
|
|
290
|
+
const $metadata = deserializeMetadata(output);
|
|
291
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
279
292
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
293
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
281
294
|
$fault: "client",
|
|
282
|
-
$metadata
|
|
295
|
+
$metadata,
|
|
283
296
|
});
|
|
284
297
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
285
298
|
}
|
|
@@ -304,8 +317,7 @@ const deserializeAws_json1_1DescribeTextTranslationJobCommandError = async (outp
|
|
|
304
317
|
body: await parseBody(output.body, context),
|
|
305
318
|
};
|
|
306
319
|
let response;
|
|
307
|
-
|
|
308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
321
|
switch (errorCode) {
|
|
310
322
|
case "InternalServerException":
|
|
311
323
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -318,10 +330,12 @@ const deserializeAws_json1_1DescribeTextTranslationJobCommandError = async (outp
|
|
|
318
330
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
319
331
|
default:
|
|
320
332
|
const parsedBody = parsedOutput.body;
|
|
333
|
+
const $metadata = deserializeMetadata(output);
|
|
334
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
321
335
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
322
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
336
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
323
337
|
$fault: "client",
|
|
324
|
-
$metadata
|
|
338
|
+
$metadata,
|
|
325
339
|
});
|
|
326
340
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
327
341
|
}
|
|
@@ -346,8 +360,7 @@ const deserializeAws_json1_1GetParallelDataCommandError = async (output, context
|
|
|
346
360
|
body: await parseBody(output.body, context),
|
|
347
361
|
};
|
|
348
362
|
let response;
|
|
349
|
-
|
|
350
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
364
|
switch (errorCode) {
|
|
352
365
|
case "InternalServerException":
|
|
353
366
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -363,10 +376,12 @@ const deserializeAws_json1_1GetParallelDataCommandError = async (output, context
|
|
|
363
376
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
364
377
|
default:
|
|
365
378
|
const parsedBody = parsedOutput.body;
|
|
379
|
+
const $metadata = deserializeMetadata(output);
|
|
380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
366
381
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
368
383
|
$fault: "client",
|
|
369
|
-
$metadata
|
|
384
|
+
$metadata,
|
|
370
385
|
});
|
|
371
386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
372
387
|
}
|
|
@@ -391,8 +406,7 @@ const deserializeAws_json1_1GetTerminologyCommandError = async (output, context)
|
|
|
391
406
|
body: await parseBody(output.body, context),
|
|
392
407
|
};
|
|
393
408
|
let response;
|
|
394
|
-
|
|
395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
410
|
switch (errorCode) {
|
|
397
411
|
case "InternalServerException":
|
|
398
412
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -408,10 +422,12 @@ const deserializeAws_json1_1GetTerminologyCommandError = async (output, context)
|
|
|
408
422
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
409
423
|
default:
|
|
410
424
|
const parsedBody = parsedOutput.body;
|
|
425
|
+
const $metadata = deserializeMetadata(output);
|
|
426
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
411
427
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
428
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
413
429
|
$fault: "client",
|
|
414
|
-
$metadata
|
|
430
|
+
$metadata,
|
|
415
431
|
});
|
|
416
432
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
417
433
|
}
|
|
@@ -436,8 +452,7 @@ const deserializeAws_json1_1ImportTerminologyCommandError = async (output, conte
|
|
|
436
452
|
body: await parseBody(output.body, context),
|
|
437
453
|
};
|
|
438
454
|
let response;
|
|
439
|
-
|
|
440
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
456
|
switch (errorCode) {
|
|
442
457
|
case "InternalServerException":
|
|
443
458
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -453,10 +468,58 @@ const deserializeAws_json1_1ImportTerminologyCommandError = async (output, conte
|
|
|
453
468
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
454
469
|
default:
|
|
455
470
|
const parsedBody = parsedOutput.body;
|
|
471
|
+
const $metadata = deserializeMetadata(output);
|
|
472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
456
473
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
458
475
|
$fault: "client",
|
|
459
|
-
$metadata
|
|
476
|
+
$metadata,
|
|
477
|
+
});
|
|
478
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
const deserializeAws_json1_1ListLanguagesCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode >= 300) {
|
|
483
|
+
return deserializeAws_json1_1ListLanguagesCommandError(output, context);
|
|
484
|
+
}
|
|
485
|
+
const data = await parseBody(output.body, context);
|
|
486
|
+
let contents = {};
|
|
487
|
+
contents = deserializeAws_json1_1ListLanguagesResponse(data, context);
|
|
488
|
+
const response = {
|
|
489
|
+
$metadata: deserializeMetadata(output),
|
|
490
|
+
...contents,
|
|
491
|
+
};
|
|
492
|
+
return Promise.resolve(response);
|
|
493
|
+
};
|
|
494
|
+
exports.deserializeAws_json1_1ListLanguagesCommand = deserializeAws_json1_1ListLanguagesCommand;
|
|
495
|
+
const deserializeAws_json1_1ListLanguagesCommandError = async (output, context) => {
|
|
496
|
+
const parsedOutput = {
|
|
497
|
+
...output,
|
|
498
|
+
body: await parseBody(output.body, context),
|
|
499
|
+
};
|
|
500
|
+
let response;
|
|
501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
+
switch (errorCode) {
|
|
503
|
+
case "InternalServerException":
|
|
504
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
505
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
506
|
+
case "InvalidParameterValueException":
|
|
507
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
508
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
509
|
+
case "TooManyRequestsException":
|
|
510
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
511
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
512
|
+
case "UnsupportedDisplayLanguageCodeException":
|
|
513
|
+
case "com.amazonaws.translate#UnsupportedDisplayLanguageCodeException":
|
|
514
|
+
throw await deserializeAws_json1_1UnsupportedDisplayLanguageCodeExceptionResponse(parsedOutput, context);
|
|
515
|
+
default:
|
|
516
|
+
const parsedBody = parsedOutput.body;
|
|
517
|
+
const $metadata = deserializeMetadata(output);
|
|
518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
519
|
+
response = new TranslateServiceException_1.TranslateServiceException({
|
|
520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
521
|
+
$fault: "client",
|
|
522
|
+
$metadata,
|
|
460
523
|
});
|
|
461
524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
462
525
|
}
|
|
@@ -481,8 +544,7 @@ const deserializeAws_json1_1ListParallelDataCommandError = async (output, contex
|
|
|
481
544
|
body: await parseBody(output.body, context),
|
|
482
545
|
};
|
|
483
546
|
let response;
|
|
484
|
-
|
|
485
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
548
|
switch (errorCode) {
|
|
487
549
|
case "InternalServerException":
|
|
488
550
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -495,10 +557,12 @@ const deserializeAws_json1_1ListParallelDataCommandError = async (output, contex
|
|
|
495
557
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
496
558
|
default:
|
|
497
559
|
const parsedBody = parsedOutput.body;
|
|
560
|
+
const $metadata = deserializeMetadata(output);
|
|
561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
498
562
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
499
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
500
564
|
$fault: "client",
|
|
501
|
-
$metadata
|
|
565
|
+
$metadata,
|
|
502
566
|
});
|
|
503
567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
504
568
|
}
|
|
@@ -523,8 +587,7 @@ const deserializeAws_json1_1ListTerminologiesCommandError = async (output, conte
|
|
|
523
587
|
body: await parseBody(output.body, context),
|
|
524
588
|
};
|
|
525
589
|
let response;
|
|
526
|
-
|
|
527
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
528
591
|
switch (errorCode) {
|
|
529
592
|
case "InternalServerException":
|
|
530
593
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -537,10 +600,12 @@ const deserializeAws_json1_1ListTerminologiesCommandError = async (output, conte
|
|
|
537
600
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
538
601
|
default:
|
|
539
602
|
const parsedBody = parsedOutput.body;
|
|
603
|
+
const $metadata = deserializeMetadata(output);
|
|
604
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
540
605
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
541
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
606
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
542
607
|
$fault: "client",
|
|
543
|
-
$metadata
|
|
608
|
+
$metadata,
|
|
544
609
|
});
|
|
545
610
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
546
611
|
}
|
|
@@ -565,8 +630,7 @@ const deserializeAws_json1_1ListTextTranslationJobsCommandError = async (output,
|
|
|
565
630
|
body: await parseBody(output.body, context),
|
|
566
631
|
};
|
|
567
632
|
let response;
|
|
568
|
-
|
|
569
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
634
|
switch (errorCode) {
|
|
571
635
|
case "InternalServerException":
|
|
572
636
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -582,10 +646,12 @@ const deserializeAws_json1_1ListTextTranslationJobsCommandError = async (output,
|
|
|
582
646
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
583
647
|
default:
|
|
584
648
|
const parsedBody = parsedOutput.body;
|
|
649
|
+
const $metadata = deserializeMetadata(output);
|
|
650
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
585
651
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
652
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
587
653
|
$fault: "client",
|
|
588
|
-
$metadata
|
|
654
|
+
$metadata,
|
|
589
655
|
});
|
|
590
656
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
591
657
|
}
|
|
@@ -610,8 +676,7 @@ const deserializeAws_json1_1StartTextTranslationJobCommandError = async (output,
|
|
|
610
676
|
body: await parseBody(output.body, context),
|
|
611
677
|
};
|
|
612
678
|
let response;
|
|
613
|
-
|
|
614
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
680
|
switch (errorCode) {
|
|
616
681
|
case "InternalServerException":
|
|
617
682
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -633,10 +698,12 @@ const deserializeAws_json1_1StartTextTranslationJobCommandError = async (output,
|
|
|
633
698
|
throw await deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse(parsedOutput, context);
|
|
634
699
|
default:
|
|
635
700
|
const parsedBody = parsedOutput.body;
|
|
701
|
+
const $metadata = deserializeMetadata(output);
|
|
702
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
636
703
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
637
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
638
705
|
$fault: "client",
|
|
639
|
-
$metadata
|
|
706
|
+
$metadata,
|
|
640
707
|
});
|
|
641
708
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
642
709
|
}
|
|
@@ -661,8 +728,7 @@ const deserializeAws_json1_1StopTextTranslationJobCommandError = async (output,
|
|
|
661
728
|
body: await parseBody(output.body, context),
|
|
662
729
|
};
|
|
663
730
|
let response;
|
|
664
|
-
|
|
665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
732
|
switch (errorCode) {
|
|
667
733
|
case "InternalServerException":
|
|
668
734
|
case "com.amazonaws.translate#InternalServerException":
|
|
@@ -675,10 +741,12 @@ const deserializeAws_json1_1StopTextTranslationJobCommandError = async (output,
|
|
|
675
741
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
676
742
|
default:
|
|
677
743
|
const parsedBody = parsedOutput.body;
|
|
744
|
+
const $metadata = deserializeMetadata(output);
|
|
745
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
678
746
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
747
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
680
748
|
$fault: "client",
|
|
681
|
-
$metadata
|
|
749
|
+
$metadata,
|
|
682
750
|
});
|
|
683
751
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
684
752
|
}
|
|
@@ -703,8 +771,7 @@ const deserializeAws_json1_1TranslateTextCommandError = async (output, context)
|
|
|
703
771
|
body: await parseBody(output.body, context),
|
|
704
772
|
};
|
|
705
773
|
let response;
|
|
706
|
-
|
|
707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
775
|
switch (errorCode) {
|
|
709
776
|
case "DetectedLanguageLowConfidenceException":
|
|
710
777
|
case "com.amazonaws.translate#DetectedLanguageLowConfidenceException":
|
|
@@ -732,10 +799,12 @@ const deserializeAws_json1_1TranslateTextCommandError = async (output, context)
|
|
|
732
799
|
throw await deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse(parsedOutput, context);
|
|
733
800
|
default:
|
|
734
801
|
const parsedBody = parsedOutput.body;
|
|
802
|
+
const $metadata = deserializeMetadata(output);
|
|
803
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
735
804
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
737
806
|
$fault: "client",
|
|
738
|
-
$metadata
|
|
807
|
+
$metadata,
|
|
739
808
|
});
|
|
740
809
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
741
810
|
}
|
|
@@ -760,8 +829,7 @@ const deserializeAws_json1_1UpdateParallelDataCommandError = async (output, cont
|
|
|
760
829
|
body: await parseBody(output.body, context),
|
|
761
830
|
};
|
|
762
831
|
let response;
|
|
763
|
-
|
|
764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
833
|
switch (errorCode) {
|
|
766
834
|
case "ConcurrentModificationException":
|
|
767
835
|
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
@@ -789,10 +857,12 @@ const deserializeAws_json1_1UpdateParallelDataCommandError = async (output, cont
|
|
|
789
857
|
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
790
858
|
default:
|
|
791
859
|
const parsedBody = parsedOutput.body;
|
|
860
|
+
const $metadata = deserializeMetadata(output);
|
|
861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
792
862
|
response = new TranslateServiceException_1.TranslateServiceException({
|
|
793
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
794
864
|
$fault: "client",
|
|
795
|
-
$metadata
|
|
865
|
+
$metadata,
|
|
796
866
|
});
|
|
797
867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
798
868
|
}
|
|
@@ -905,6 +975,15 @@ const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutp
|
|
|
905
975
|
});
|
|
906
976
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
907
977
|
};
|
|
978
|
+
const deserializeAws_json1_1UnsupportedDisplayLanguageCodeExceptionResponse = async (parsedOutput, context) => {
|
|
979
|
+
const body = parsedOutput.body;
|
|
980
|
+
const deserialized = deserializeAws_json1_1UnsupportedDisplayLanguageCodeException(body, context);
|
|
981
|
+
const exception = new models_0_1.UnsupportedDisplayLanguageCodeException({
|
|
982
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
983
|
+
...deserialized,
|
|
984
|
+
});
|
|
985
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
986
|
+
};
|
|
908
987
|
const deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse = async (parsedOutput, context) => {
|
|
909
988
|
const body = parsedOutput.body;
|
|
910
989
|
const deserialized = deserializeAws_json1_1UnsupportedLanguagePairException(body, context);
|
|
@@ -984,6 +1063,14 @@ const serializeAws_json1_1InputDataConfig = (input, context) => {
|
|
|
984
1063
|
...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
|
|
985
1064
|
};
|
|
986
1065
|
};
|
|
1066
|
+
const serializeAws_json1_1ListLanguagesRequest = (input, context) => {
|
|
1067
|
+
return {
|
|
1068
|
+
...(input.DisplayLanguageCode !== undefined &&
|
|
1069
|
+
input.DisplayLanguageCode !== null && { DisplayLanguageCode: input.DisplayLanguageCode }),
|
|
1070
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1071
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
987
1074
|
const serializeAws_json1_1ListParallelDataRequest = (input, context) => {
|
|
988
1075
|
return {
|
|
989
1076
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
@@ -1265,6 +1352,12 @@ const deserializeAws_json1_1JobDetails = (output, context) => {
|
|
|
1265
1352
|
TranslatedDocumentsCount: (0, smithy_client_1.expectInt32)(output.TranslatedDocumentsCount),
|
|
1266
1353
|
};
|
|
1267
1354
|
};
|
|
1355
|
+
const deserializeAws_json1_1Language = (output, context) => {
|
|
1356
|
+
return {
|
|
1357
|
+
LanguageCode: (0, smithy_client_1.expectString)(output.LanguageCode),
|
|
1358
|
+
LanguageName: (0, smithy_client_1.expectString)(output.LanguageName),
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1268
1361
|
const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
1269
1362
|
const retVal = (output || [])
|
|
1270
1363
|
.filter((e) => e != null)
|
|
@@ -1276,11 +1369,31 @@ const deserializeAws_json1_1LanguageCodeStringList = (output, context) => {
|
|
|
1276
1369
|
});
|
|
1277
1370
|
return retVal;
|
|
1278
1371
|
};
|
|
1372
|
+
const deserializeAws_json1_1LanguagesList = (output, context) => {
|
|
1373
|
+
const retVal = (output || [])
|
|
1374
|
+
.filter((e) => e != null)
|
|
1375
|
+
.map((entry) => {
|
|
1376
|
+
if (entry === null) {
|
|
1377
|
+
return null;
|
|
1378
|
+
}
|
|
1379
|
+
return deserializeAws_json1_1Language(entry, context);
|
|
1380
|
+
});
|
|
1381
|
+
return retVal;
|
|
1382
|
+
};
|
|
1279
1383
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1280
1384
|
return {
|
|
1281
1385
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1282
1386
|
};
|
|
1283
1387
|
};
|
|
1388
|
+
const deserializeAws_json1_1ListLanguagesResponse = (output, context) => {
|
|
1389
|
+
return {
|
|
1390
|
+
DisplayLanguageCode: (0, smithy_client_1.expectString)(output.DisplayLanguageCode),
|
|
1391
|
+
Languages: output.Languages !== undefined && output.Languages !== null
|
|
1392
|
+
? deserializeAws_json1_1LanguagesList(output.Languages, context)
|
|
1393
|
+
: undefined,
|
|
1394
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1284
1397
|
const deserializeAws_json1_1ListParallelDataResponse = (output, context) => {
|
|
1285
1398
|
return {
|
|
1286
1399
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -1550,6 +1663,12 @@ const deserializeAws_json1_1TranslationSettings = (output, context) => {
|
|
|
1550
1663
|
Profanity: (0, smithy_client_1.expectString)(output.Profanity),
|
|
1551
1664
|
};
|
|
1552
1665
|
};
|
|
1666
|
+
const deserializeAws_json1_1UnsupportedDisplayLanguageCodeException = (output, context) => {
|
|
1667
|
+
return {
|
|
1668
|
+
DisplayLanguageCode: (0, smithy_client_1.expectString)(output.DisplayLanguageCode),
|
|
1669
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
1553
1672
|
const deserializeAws_json1_1UnsupportedLanguagePairException = (output, context) => {
|
|
1554
1673
|
return {
|
|
1555
1674
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -1629,5 +1748,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1629
1748
|
if (data["__type"] !== undefined) {
|
|
1630
1749
|
return sanitizeErrorCode(data["__type"]);
|
|
1631
1750
|
}
|
|
1632
|
-
return "";
|
|
1633
1751
|
};
|
package/dist-es/Translate.js
CHANGED
|
@@ -6,6 +6,7 @@ import { DescribeTextTranslationJobCommand, } from "./commands/DescribeTextTrans
|
|
|
6
6
|
import { GetParallelDataCommand, } from "./commands/GetParallelDataCommand";
|
|
7
7
|
import { GetTerminologyCommand, } from "./commands/GetTerminologyCommand";
|
|
8
8
|
import { ImportTerminologyCommand, } from "./commands/ImportTerminologyCommand";
|
|
9
|
+
import { ListLanguagesCommand, } from "./commands/ListLanguagesCommand";
|
|
9
10
|
import { ListParallelDataCommand, } from "./commands/ListParallelDataCommand";
|
|
10
11
|
import { ListTerminologiesCommand, } from "./commands/ListTerminologiesCommand";
|
|
11
12
|
import { ListTextTranslationJobsCommand, } from "./commands/ListTextTranslationJobsCommand";
|
|
@@ -117,6 +118,20 @@ var Translate = (function (_super) {
|
|
|
117
118
|
return this.send(command, optionsOrCb);
|
|
118
119
|
}
|
|
119
120
|
};
|
|
121
|
+
Translate.prototype.listLanguages = function (args, optionsOrCb, cb) {
|
|
122
|
+
var command = new ListLanguagesCommand(args);
|
|
123
|
+
if (typeof optionsOrCb === "function") {
|
|
124
|
+
this.send(command, optionsOrCb);
|
|
125
|
+
}
|
|
126
|
+
else if (typeof cb === "function") {
|
|
127
|
+
if (typeof optionsOrCb !== "object")
|
|
128
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
129
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return this.send(command, optionsOrCb);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
120
135
|
Translate.prototype.listParallelData = function (args, optionsOrCb, cb) {
|
|
121
136
|
var command = new ListParallelDataCommand(args);
|
|
122
137
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListLanguagesRequest, ListLanguagesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListLanguagesCommand, serializeAws_json1_1ListLanguagesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListLanguagesCommand = (function (_super) {
|
|
7
|
+
__extends(ListLanguagesCommand, _super);
|
|
8
|
+
function ListLanguagesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListLanguagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "TranslateClient";
|
|
18
|
+
var commandName = "ListLanguagesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListLanguagesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListLanguagesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListLanguagesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListLanguagesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListLanguagesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListLanguagesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListLanguagesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListLanguagesCommand };
|
|
@@ -5,6 +5,7 @@ export * from "./DescribeTextTranslationJobCommand";
|
|
|
5
5
|
export * from "./GetParallelDataCommand";
|
|
6
6
|
export * from "./GetTerminologyCommand";
|
|
7
7
|
export * from "./ImportTerminologyCommand";
|
|
8
|
+
export * from "./ListLanguagesCommand";
|
|
8
9
|
export * from "./ListParallelDataCommand";
|
|
9
10
|
export * from "./ListTerminologiesCommand";
|
|
10
11
|
export * from "./ListTextTranslationJobsCommand";
|
|
@@ -265,6 +265,45 @@ export var ImportTerminologyResponse;
|
|
|
265
265
|
(function (ImportTerminologyResponse) {
|
|
266
266
|
ImportTerminologyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
267
267
|
})(ImportTerminologyResponse || (ImportTerminologyResponse = {}));
|
|
268
|
+
export var DisplayLanguageCode;
|
|
269
|
+
(function (DisplayLanguageCode) {
|
|
270
|
+
DisplayLanguageCode["DE"] = "de";
|
|
271
|
+
DisplayLanguageCode["EN"] = "en";
|
|
272
|
+
DisplayLanguageCode["ES"] = "es";
|
|
273
|
+
DisplayLanguageCode["FR"] = "fr";
|
|
274
|
+
DisplayLanguageCode["IT"] = "it";
|
|
275
|
+
DisplayLanguageCode["JA"] = "ja";
|
|
276
|
+
DisplayLanguageCode["KO"] = "ko";
|
|
277
|
+
DisplayLanguageCode["PT"] = "pt";
|
|
278
|
+
DisplayLanguageCode["ZH"] = "zh";
|
|
279
|
+
DisplayLanguageCode["ZH_TW"] = "zh-TW";
|
|
280
|
+
})(DisplayLanguageCode || (DisplayLanguageCode = {}));
|
|
281
|
+
export var ListLanguagesRequest;
|
|
282
|
+
(function (ListLanguagesRequest) {
|
|
283
|
+
ListLanguagesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
284
|
+
})(ListLanguagesRequest || (ListLanguagesRequest = {}));
|
|
285
|
+
export var Language;
|
|
286
|
+
(function (Language) {
|
|
287
|
+
Language.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
288
|
+
})(Language || (Language = {}));
|
|
289
|
+
export var ListLanguagesResponse;
|
|
290
|
+
(function (ListLanguagesResponse) {
|
|
291
|
+
ListLanguagesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
292
|
+
})(ListLanguagesResponse || (ListLanguagesResponse = {}));
|
|
293
|
+
var UnsupportedDisplayLanguageCodeException = (function (_super) {
|
|
294
|
+
__extends(UnsupportedDisplayLanguageCodeException, _super);
|
|
295
|
+
function UnsupportedDisplayLanguageCodeException(opts) {
|
|
296
|
+
var _this = _super.call(this, __assign({ name: "UnsupportedDisplayLanguageCodeException", $fault: "client" }, opts)) || this;
|
|
297
|
+
_this.name = "UnsupportedDisplayLanguageCodeException";
|
|
298
|
+
_this.$fault = "client";
|
|
299
|
+
Object.setPrototypeOf(_this, UnsupportedDisplayLanguageCodeException.prototype);
|
|
300
|
+
_this.Message = opts.Message;
|
|
301
|
+
_this.DisplayLanguageCode = opts.DisplayLanguageCode;
|
|
302
|
+
return _this;
|
|
303
|
+
}
|
|
304
|
+
return UnsupportedDisplayLanguageCodeException;
|
|
305
|
+
}(__BaseException));
|
|
306
|
+
export { UnsupportedDisplayLanguageCodeException };
|
|
268
307
|
export var ListParallelDataRequest;
|
|
269
308
|
(function (ListParallelDataRequest) {
|
|
270
309
|
ListParallelDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|