@aws-sdk/client-translate 3.42.0 → 3.47.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 +50 -0
- package/dist-cjs/endpoints.js +1 -16
- package/dist-cjs/models/models_0.js +11 -80
- package/dist-cjs/protocols/Aws_json1_1.js +20 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -16
- package/dist-es/models/models_0.js +8 -52
- package/dist-es/protocols/Aws_json1_1.js +19 -3
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/TranslateClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +75 -88
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +20 -52
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
57
|
|
|
8
58
|
**Note:** Version bump only for package @aws-sdk/client-translate
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "translate.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "translate-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "translate.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "translate-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-west-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "translate.us-gov-west-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-west-2": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "translate.us-west-2.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "translate-fips.us-west-2.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -63,6 +47,7 @@ const partitionHash = {
|
|
|
63
47
|
"ap-south-1",
|
|
64
48
|
"ap-southeast-1",
|
|
65
49
|
"ap-southeast-2",
|
|
50
|
+
"ap-southeast-3",
|
|
66
51
|
"ca-central-1",
|
|
67
52
|
"eu-central-1",
|
|
68
53
|
"eu-north-1",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = void 0;
|
|
3
|
+
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.StartTextTranslationJobResponse = exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = exports.ListTextTranslationJobsRequest = exports.TextTranslationJobFilter = exports.ListTerminologiesResponse = exports.ListTerminologiesRequest = exports.ListParallelDataResponse = exports.ListParallelDataRequest = exports.ImportTerminologyResponse = exports.ImportTerminologyRequest = exports.TerminologyData = exports.MergeStrategy = exports.GetTerminologyResponse = exports.TerminologyProperties = exports.Directionality = exports.TerminologyDataLocation = exports.GetTerminologyRequest = exports.TerminologyDataFormat = exports.GetParallelDataResponse = exports.ParallelDataProperties = exports.ParallelDataDataLocation = exports.GetParallelDataRequest = exports.DescribeTextTranslationJobResponse = exports.TextTranslationJobProperties = exports.TranslationSettings = exports.Profanity = exports.OutputDataConfig = exports.JobStatus = exports.JobDetails = exports.InputDataConfig = exports.DescribeTextTranslationJobRequest = exports.DeleteTerminologyRequest = exports.DeleteParallelDataResponse = exports.DeleteParallelDataRequest = exports.CreateParallelDataResponse = exports.ParallelDataStatus = exports.CreateParallelDataRequest = exports.ParallelDataConfig = exports.ParallelDataFormat = exports.EncryptionKey = exports.EncryptionKeyType = exports.AppliedTerminology = exports.Term = void 0;
|
|
5
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
5
|
var Term;
|
|
7
6
|
(function (Term) {
|
|
@@ -15,12 +14,6 @@ var AppliedTerminology;
|
|
|
15
14
|
...obj,
|
|
16
15
|
});
|
|
17
16
|
})(AppliedTerminology = exports.AppliedTerminology || (exports.AppliedTerminology = {}));
|
|
18
|
-
var ConflictException;
|
|
19
|
-
(function (ConflictException) {
|
|
20
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
21
|
-
...obj,
|
|
22
|
-
});
|
|
23
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
24
17
|
var EncryptionKeyType;
|
|
25
18
|
(function (EncryptionKeyType) {
|
|
26
19
|
EncryptionKeyType["KMS"] = "KMS";
|
|
@@ -63,42 +56,6 @@ var CreateParallelDataResponse;
|
|
|
63
56
|
...obj,
|
|
64
57
|
});
|
|
65
58
|
})(CreateParallelDataResponse = exports.CreateParallelDataResponse || (exports.CreateParallelDataResponse = {}));
|
|
66
|
-
var InternalServerException;
|
|
67
|
-
(function (InternalServerException) {
|
|
68
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
69
|
-
...obj,
|
|
70
|
-
});
|
|
71
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
72
|
-
var InvalidParameterValueException;
|
|
73
|
-
(function (InvalidParameterValueException) {
|
|
74
|
-
InvalidParameterValueException.filterSensitiveLog = (obj) => ({
|
|
75
|
-
...obj,
|
|
76
|
-
});
|
|
77
|
-
})(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
|
|
78
|
-
var InvalidRequestException;
|
|
79
|
-
(function (InvalidRequestException) {
|
|
80
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
81
|
-
...obj,
|
|
82
|
-
});
|
|
83
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
84
|
-
var LimitExceededException;
|
|
85
|
-
(function (LimitExceededException) {
|
|
86
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
87
|
-
...obj,
|
|
88
|
-
});
|
|
89
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
90
|
-
var TooManyRequestsException;
|
|
91
|
-
(function (TooManyRequestsException) {
|
|
92
|
-
TooManyRequestsException.filterSensitiveLog = (obj) => ({
|
|
93
|
-
...obj,
|
|
94
|
-
});
|
|
95
|
-
})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
|
|
96
|
-
var ConcurrentModificationException;
|
|
97
|
-
(function (ConcurrentModificationException) {
|
|
98
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
99
|
-
...obj,
|
|
100
|
-
});
|
|
101
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
102
59
|
var DeleteParallelDataRequest;
|
|
103
60
|
(function (DeleteParallelDataRequest) {
|
|
104
61
|
DeleteParallelDataRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -111,12 +68,6 @@ var DeleteParallelDataResponse;
|
|
|
111
68
|
...obj,
|
|
112
69
|
});
|
|
113
70
|
})(DeleteParallelDataResponse = exports.DeleteParallelDataResponse || (exports.DeleteParallelDataResponse = {}));
|
|
114
|
-
var ResourceNotFoundException;
|
|
115
|
-
(function (ResourceNotFoundException) {
|
|
116
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
120
71
|
var DeleteTerminologyRequest;
|
|
121
72
|
(function (DeleteTerminologyRequest) {
|
|
122
73
|
DeleteTerminologyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -157,6 +108,16 @@ var OutputDataConfig;
|
|
|
157
108
|
...obj,
|
|
158
109
|
});
|
|
159
110
|
})(OutputDataConfig = exports.OutputDataConfig || (exports.OutputDataConfig = {}));
|
|
111
|
+
var Profanity;
|
|
112
|
+
(function (Profanity) {
|
|
113
|
+
Profanity["MASK"] = "MASK";
|
|
114
|
+
})(Profanity = exports.Profanity || (exports.Profanity = {}));
|
|
115
|
+
var TranslationSettings;
|
|
116
|
+
(function (TranslationSettings) {
|
|
117
|
+
TranslationSettings.filterSensitiveLog = (obj) => ({
|
|
118
|
+
...obj,
|
|
119
|
+
});
|
|
120
|
+
})(TranslationSettings = exports.TranslationSettings || (exports.TranslationSettings = {}));
|
|
160
121
|
var TextTranslationJobProperties;
|
|
161
122
|
(function (TextTranslationJobProperties) {
|
|
162
123
|
TextTranslationJobProperties.filterSensitiveLog = (obj) => ({
|
|
@@ -276,12 +237,6 @@ var ListTerminologiesResponse;
|
|
|
276
237
|
...obj,
|
|
277
238
|
});
|
|
278
239
|
})(ListTerminologiesResponse = exports.ListTerminologiesResponse || (exports.ListTerminologiesResponse = {}));
|
|
279
|
-
var InvalidFilterException;
|
|
280
|
-
(function (InvalidFilterException) {
|
|
281
|
-
InvalidFilterException.filterSensitiveLog = (obj) => ({
|
|
282
|
-
...obj,
|
|
283
|
-
});
|
|
284
|
-
})(InvalidFilterException = exports.InvalidFilterException || (exports.InvalidFilterException = {}));
|
|
285
240
|
var TextTranslationJobFilter;
|
|
286
241
|
(function (TextTranslationJobFilter) {
|
|
287
242
|
TextTranslationJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -312,12 +267,6 @@ var StartTextTranslationJobResponse;
|
|
|
312
267
|
...obj,
|
|
313
268
|
});
|
|
314
269
|
})(StartTextTranslationJobResponse = exports.StartTextTranslationJobResponse || (exports.StartTextTranslationJobResponse = {}));
|
|
315
|
-
var UnsupportedLanguagePairException;
|
|
316
|
-
(function (UnsupportedLanguagePairException) {
|
|
317
|
-
UnsupportedLanguagePairException.filterSensitiveLog = (obj) => ({
|
|
318
|
-
...obj,
|
|
319
|
-
});
|
|
320
|
-
})(UnsupportedLanguagePairException = exports.UnsupportedLanguagePairException || (exports.UnsupportedLanguagePairException = {}));
|
|
321
270
|
var StopTextTranslationJobRequest;
|
|
322
271
|
(function (StopTextTranslationJobRequest) {
|
|
323
272
|
StopTextTranslationJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -330,24 +279,6 @@ var StopTextTranslationJobResponse;
|
|
|
330
279
|
...obj,
|
|
331
280
|
});
|
|
332
281
|
})(StopTextTranslationJobResponse = exports.StopTextTranslationJobResponse || (exports.StopTextTranslationJobResponse = {}));
|
|
333
|
-
var DetectedLanguageLowConfidenceException;
|
|
334
|
-
(function (DetectedLanguageLowConfidenceException) {
|
|
335
|
-
DetectedLanguageLowConfidenceException.filterSensitiveLog = (obj) => ({
|
|
336
|
-
...obj,
|
|
337
|
-
});
|
|
338
|
-
})(DetectedLanguageLowConfidenceException = exports.DetectedLanguageLowConfidenceException || (exports.DetectedLanguageLowConfidenceException = {}));
|
|
339
|
-
var ServiceUnavailableException;
|
|
340
|
-
(function (ServiceUnavailableException) {
|
|
341
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
342
|
-
...obj,
|
|
343
|
-
});
|
|
344
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
345
|
-
var TextSizeLimitExceededException;
|
|
346
|
-
(function (TextSizeLimitExceededException) {
|
|
347
|
-
TextSizeLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
348
|
-
...obj,
|
|
349
|
-
});
|
|
350
|
-
})(TextSizeLimitExceededException = exports.TextSizeLimitExceededException || (exports.TextSizeLimitExceededException = {}));
|
|
351
282
|
var TranslateTextRequest;
|
|
352
283
|
(function (TranslateTextRequest) {
|
|
353
284
|
TranslateTextRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1476,6 +1476,8 @@ const serializeAws_json1_1StartTextTranslationJobRequest = (input, context) => {
|
|
|
1476
1476
|
input.ParallelDataNames !== null && {
|
|
1477
1477
|
ParallelDataNames: serializeAws_json1_1ResourceNameList(input.ParallelDataNames, context),
|
|
1478
1478
|
}),
|
|
1479
|
+
...(input.Settings !== undefined &&
|
|
1480
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
|
|
1479
1481
|
...(input.SourceLanguageCode !== undefined &&
|
|
1480
1482
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode }),
|
|
1481
1483
|
...(input.TargetLanguageCodes !== undefined &&
|
|
@@ -1527,6 +1529,8 @@ const serializeAws_json1_1TextTranslationJobFilter = (input, context) => {
|
|
|
1527
1529
|
};
|
|
1528
1530
|
const serializeAws_json1_1TranslateTextRequest = (input, context) => {
|
|
1529
1531
|
return {
|
|
1532
|
+
...(input.Settings !== undefined &&
|
|
1533
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) }),
|
|
1530
1534
|
...(input.SourceLanguageCode !== undefined &&
|
|
1531
1535
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode }),
|
|
1532
1536
|
...(input.TargetLanguageCode !== undefined &&
|
|
@@ -1538,6 +1542,11 @@ const serializeAws_json1_1TranslateTextRequest = (input, context) => {
|
|
|
1538
1542
|
...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
|
|
1539
1543
|
};
|
|
1540
1544
|
};
|
|
1545
|
+
const serializeAws_json1_1TranslationSettings = (input, context) => {
|
|
1546
|
+
return {
|
|
1547
|
+
...(input.Profanity !== undefined && input.Profanity !== null && { Profanity: input.Profanity }),
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1541
1550
|
const serializeAws_json1_1UpdateParallelDataRequest = (input, context) => {
|
|
1542
1551
|
var _a;
|
|
1543
1552
|
return {
|
|
@@ -1911,6 +1920,9 @@ const deserializeAws_json1_1TextTranslationJobProperties = (output, context) =>
|
|
|
1911
1920
|
ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
|
|
1912
1921
|
? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
|
|
1913
1922
|
: undefined,
|
|
1923
|
+
Settings: output.Settings !== undefined && output.Settings !== null
|
|
1924
|
+
? deserializeAws_json1_1TranslationSettings(output.Settings, context)
|
|
1925
|
+
: undefined,
|
|
1914
1926
|
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1915
1927
|
SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
1916
1928
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmittedTime)))
|
|
@@ -1940,6 +1952,9 @@ const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
|
1940
1952
|
};
|
|
1941
1953
|
const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
1942
1954
|
return {
|
|
1955
|
+
AppliedSettings: output.AppliedSettings !== undefined && output.AppliedSettings !== null
|
|
1956
|
+
? deserializeAws_json1_1TranslationSettings(output.AppliedSettings, context)
|
|
1957
|
+
: undefined,
|
|
1943
1958
|
AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
|
|
1944
1959
|
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1945
1960
|
: undefined,
|
|
@@ -1948,6 +1963,11 @@ const deserializeAws_json1_1TranslateTextResponse = (output, context) => {
|
|
|
1948
1963
|
TranslatedText: smithy_client_1.expectString(output.TranslatedText),
|
|
1949
1964
|
};
|
|
1950
1965
|
};
|
|
1966
|
+
const deserializeAws_json1_1TranslationSettings = (output, context) => {
|
|
1967
|
+
return {
|
|
1968
|
+
Profanity: smithy_client_1.expectString(output.Profanity),
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1951
1971
|
const deserializeAws_json1_1UnsupportedLanguagePairException = (output, context) => {
|
|
1952
1972
|
return {
|
|
1953
1973
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "translate.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "translate-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "translate.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "translate-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-west-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "translate.us-gov-west-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-west-2": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "translate.us-west-2.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "translate-fips.us-west-2.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -61,6 +45,7 @@ var partitionHash = {
|
|
|
61
45
|
"ap-south-1",
|
|
62
46
|
"ap-southeast-1",
|
|
63
47
|
"ap-southeast-2",
|
|
48
|
+
"ap-southeast-3",
|
|
64
49
|
"ca-central-1",
|
|
65
50
|
"eu-central-1",
|
|
66
51
|
"eu-north-1",
|
|
@@ -8,10 +8,6 @@ export var AppliedTerminology;
|
|
|
8
8
|
(function (AppliedTerminology) {
|
|
9
9
|
AppliedTerminology.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
10
|
})(AppliedTerminology || (AppliedTerminology = {}));
|
|
11
|
-
export var ConflictException;
|
|
12
|
-
(function (ConflictException) {
|
|
13
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
14
|
-
})(ConflictException || (ConflictException = {}));
|
|
15
11
|
export var EncryptionKeyType;
|
|
16
12
|
(function (EncryptionKeyType) {
|
|
17
13
|
EncryptionKeyType["KMS"] = "KMS";
|
|
@@ -46,30 +42,6 @@ export var CreateParallelDataResponse;
|
|
|
46
42
|
(function (CreateParallelDataResponse) {
|
|
47
43
|
CreateParallelDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
48
44
|
})(CreateParallelDataResponse || (CreateParallelDataResponse = {}));
|
|
49
|
-
export var InternalServerException;
|
|
50
|
-
(function (InternalServerException) {
|
|
51
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
52
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
53
|
-
export var InvalidParameterValueException;
|
|
54
|
-
(function (InvalidParameterValueException) {
|
|
55
|
-
InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
56
|
-
})(InvalidParameterValueException || (InvalidParameterValueException = {}));
|
|
57
|
-
export var InvalidRequestException;
|
|
58
|
-
(function (InvalidRequestException) {
|
|
59
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
60
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
61
|
-
export var LimitExceededException;
|
|
62
|
-
(function (LimitExceededException) {
|
|
63
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
65
|
-
export var TooManyRequestsException;
|
|
66
|
-
(function (TooManyRequestsException) {
|
|
67
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
69
|
-
export var ConcurrentModificationException;
|
|
70
|
-
(function (ConcurrentModificationException) {
|
|
71
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
72
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
73
45
|
export var DeleteParallelDataRequest;
|
|
74
46
|
(function (DeleteParallelDataRequest) {
|
|
75
47
|
DeleteParallelDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -78,10 +50,6 @@ export var DeleteParallelDataResponse;
|
|
|
78
50
|
(function (DeleteParallelDataResponse) {
|
|
79
51
|
DeleteParallelDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
52
|
})(DeleteParallelDataResponse || (DeleteParallelDataResponse = {}));
|
|
81
|
-
export var ResourceNotFoundException;
|
|
82
|
-
(function (ResourceNotFoundException) {
|
|
83
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
84
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
85
53
|
export var DeleteTerminologyRequest;
|
|
86
54
|
(function (DeleteTerminologyRequest) {
|
|
87
55
|
DeleteTerminologyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -112,6 +80,14 @@ export var OutputDataConfig;
|
|
|
112
80
|
(function (OutputDataConfig) {
|
|
113
81
|
OutputDataConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
82
|
})(OutputDataConfig || (OutputDataConfig = {}));
|
|
83
|
+
export var Profanity;
|
|
84
|
+
(function (Profanity) {
|
|
85
|
+
Profanity["MASK"] = "MASK";
|
|
86
|
+
})(Profanity || (Profanity = {}));
|
|
87
|
+
export var TranslationSettings;
|
|
88
|
+
(function (TranslationSettings) {
|
|
89
|
+
TranslationSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
|
+
})(TranslationSettings || (TranslationSettings = {}));
|
|
115
91
|
export var TextTranslationJobProperties;
|
|
116
92
|
(function (TextTranslationJobProperties) {
|
|
117
93
|
TextTranslationJobProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -195,10 +171,6 @@ export var ListTerminologiesResponse;
|
|
|
195
171
|
(function (ListTerminologiesResponse) {
|
|
196
172
|
ListTerminologiesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
197
173
|
})(ListTerminologiesResponse || (ListTerminologiesResponse = {}));
|
|
198
|
-
export var InvalidFilterException;
|
|
199
|
-
(function (InvalidFilterException) {
|
|
200
|
-
InvalidFilterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
|
-
})(InvalidFilterException || (InvalidFilterException = {}));
|
|
202
174
|
export var TextTranslationJobFilter;
|
|
203
175
|
(function (TextTranslationJobFilter) {
|
|
204
176
|
TextTranslationJobFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -219,10 +191,6 @@ export var StartTextTranslationJobResponse;
|
|
|
219
191
|
(function (StartTextTranslationJobResponse) {
|
|
220
192
|
StartTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
221
193
|
})(StartTextTranslationJobResponse || (StartTextTranslationJobResponse = {}));
|
|
222
|
-
export var UnsupportedLanguagePairException;
|
|
223
|
-
(function (UnsupportedLanguagePairException) {
|
|
224
|
-
UnsupportedLanguagePairException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
225
|
-
})(UnsupportedLanguagePairException || (UnsupportedLanguagePairException = {}));
|
|
226
194
|
export var StopTextTranslationJobRequest;
|
|
227
195
|
(function (StopTextTranslationJobRequest) {
|
|
228
196
|
StopTextTranslationJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -231,18 +199,6 @@ export var StopTextTranslationJobResponse;
|
|
|
231
199
|
(function (StopTextTranslationJobResponse) {
|
|
232
200
|
StopTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
233
201
|
})(StopTextTranslationJobResponse || (StopTextTranslationJobResponse = {}));
|
|
234
|
-
export var DetectedLanguageLowConfidenceException;
|
|
235
|
-
(function (DetectedLanguageLowConfidenceException) {
|
|
236
|
-
DetectedLanguageLowConfidenceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
237
|
-
})(DetectedLanguageLowConfidenceException || (DetectedLanguageLowConfidenceException = {}));
|
|
238
|
-
export var ServiceUnavailableException;
|
|
239
|
-
(function (ServiceUnavailableException) {
|
|
240
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
241
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
242
|
-
export var TextSizeLimitExceededException;
|
|
243
|
-
(function (TextSizeLimitExceededException) {
|
|
244
|
-
TextSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
-
})(TextSizeLimitExceededException || (TextSizeLimitExceededException = {}));
|
|
246
202
|
export var TranslateTextRequest;
|
|
247
203
|
(function (TranslateTextRequest) {
|
|
248
204
|
TranslateTextRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1529,7 +1529,7 @@ var serializeAws_json1_1ResourceNameList = function (input, context) {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
var serializeAws_json1_1StartTextTranslationJobRequest = function (input, context) {
|
|
1531
1531
|
var _a;
|
|
1532
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
|
|
1532
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
|
|
1533
1533
|
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
1534
1534
|
input.InputDataConfig !== null && {
|
|
1535
1535
|
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
@@ -1539,7 +1539,8 @@ var serializeAws_json1_1StartTextTranslationJobRequest = function (input, contex
|
|
|
1539
1539
|
})), (input.ParallelDataNames !== undefined &&
|
|
1540
1540
|
input.ParallelDataNames !== null && {
|
|
1541
1541
|
ParallelDataNames: serializeAws_json1_1ResourceNameList(input.ParallelDataNames, context),
|
|
1542
|
-
})), (input.
|
|
1542
|
+
})), (input.Settings !== undefined &&
|
|
1543
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode !== undefined &&
|
|
1543
1544
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCodes !== undefined &&
|
|
1544
1545
|
input.TargetLanguageCodes !== null && {
|
|
1545
1546
|
TargetLanguageCodes: serializeAws_json1_1TargetLanguageCodeStringList(input.TargetLanguageCodes, context),
|
|
@@ -1575,13 +1576,17 @@ var serializeAws_json1_1TextTranslationJobFilter = function (input, context) {
|
|
|
1575
1576
|
}));
|
|
1576
1577
|
};
|
|
1577
1578
|
var serializeAws_json1_1TranslateTextRequest = function (input, context) {
|
|
1578
|
-
return __assign(__assign(__assign(__assign({}, (input.
|
|
1579
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Settings !== undefined &&
|
|
1580
|
+
input.Settings !== null && { Settings: serializeAws_json1_1TranslationSettings(input.Settings, context) })), (input.SourceLanguageCode !== undefined &&
|
|
1579
1581
|
input.SourceLanguageCode !== null && { SourceLanguageCode: input.SourceLanguageCode })), (input.TargetLanguageCode !== undefined &&
|
|
1580
1582
|
input.TargetLanguageCode !== null && { TargetLanguageCode: input.TargetLanguageCode })), (input.TerminologyNames !== undefined &&
|
|
1581
1583
|
input.TerminologyNames !== null && {
|
|
1582
1584
|
TerminologyNames: serializeAws_json1_1ResourceNameList(input.TerminologyNames, context),
|
|
1583
1585
|
})), (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
1584
1586
|
};
|
|
1587
|
+
var serializeAws_json1_1TranslationSettings = function (input, context) {
|
|
1588
|
+
return __assign({}, (input.Profanity !== undefined && input.Profanity !== null && { Profanity: input.Profanity }));
|
|
1589
|
+
};
|
|
1585
1590
|
var serializeAws_json1_1UpdateParallelDataRequest = function (input, context) {
|
|
1586
1591
|
var _a;
|
|
1587
1592
|
return __assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ParallelDataConfig !== undefined &&
|
|
@@ -1950,6 +1955,9 @@ var deserializeAws_json1_1TextTranslationJobProperties = function (output, conte
|
|
|
1950
1955
|
ParallelDataNames: output.ParallelDataNames !== undefined && output.ParallelDataNames !== null
|
|
1951
1956
|
? deserializeAws_json1_1ResourceNameList(output.ParallelDataNames, context)
|
|
1952
1957
|
: undefined,
|
|
1958
|
+
Settings: output.Settings !== undefined && output.Settings !== null
|
|
1959
|
+
? deserializeAws_json1_1TranslationSettings(output.Settings, context)
|
|
1960
|
+
: undefined,
|
|
1953
1961
|
SourceLanguageCode: __expectString(output.SourceLanguageCode),
|
|
1954
1962
|
SubmittedTime: output.SubmittedTime !== undefined && output.SubmittedTime !== null
|
|
1955
1963
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmittedTime)))
|
|
@@ -1979,6 +1987,9 @@ var deserializeAws_json1_1TooManyRequestsException = function (output, context)
|
|
|
1979
1987
|
};
|
|
1980
1988
|
var deserializeAws_json1_1TranslateTextResponse = function (output, context) {
|
|
1981
1989
|
return {
|
|
1990
|
+
AppliedSettings: output.AppliedSettings !== undefined && output.AppliedSettings !== null
|
|
1991
|
+
? deserializeAws_json1_1TranslationSettings(output.AppliedSettings, context)
|
|
1992
|
+
: undefined,
|
|
1982
1993
|
AppliedTerminologies: output.AppliedTerminologies !== undefined && output.AppliedTerminologies !== null
|
|
1983
1994
|
? deserializeAws_json1_1AppliedTerminologyList(output.AppliedTerminologies, context)
|
|
1984
1995
|
: undefined,
|
|
@@ -1987,6 +1998,11 @@ var deserializeAws_json1_1TranslateTextResponse = function (output, context) {
|
|
|
1987
1998
|
TranslatedText: __expectString(output.TranslatedText),
|
|
1988
1999
|
};
|
|
1989
2000
|
};
|
|
2001
|
+
var deserializeAws_json1_1TranslationSettings = function (output, context) {
|
|
2002
|
+
return {
|
|
2003
|
+
Profanity: __expectString(output.Profanity),
|
|
2004
|
+
};
|
|
2005
|
+
};
|
|
1990
2006
|
var deserializeAws_json1_1UnsupportedLanguagePairException = function (output, context) {
|
|
1991
2007
|
return {
|
|
1992
2008
|
Message: __expectString(output.Message),
|