@aws-sdk/client-translate 3.38.0 → 3.42.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 +39 -0
- package/dist-cjs/endpoints.js +123 -17
- package/dist-cjs/models/models_0.js +8 -2
- package/dist-cjs/protocols/Aws_json1_1.js +27 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/endpoints.js +123 -17
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_json1_1.js +58 -33
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Translate.d.ts +4 -4
- package/dist-types/TranslateClient.d.ts +8 -0
- package/dist-types/commands/CreateParallelDataCommand.d.ts +4 -4
- package/dist-types/commands/DeleteParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +2 -2
- package/dist-types/commands/GetParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/GetTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/ImportTerminologyCommand.d.ts +1 -1
- package/dist-types/commands/ListParallelDataCommand.d.ts +1 -1
- package/dist-types/commands/ListTerminologiesCommand.d.ts +1 -1
- package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +1 -1
- package/dist-types/commands/StartTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/StopTextTranslationJobCommand.d.ts +1 -1
- package/dist-types/commands/TranslateTextCommand.d.ts +1 -1
- package/dist-types/commands/UpdateParallelDataCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +132 -17
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +23 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
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.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
31
|
+
* **clients:** update clients as of 2021/11/05 ([#2994](https://github.com/aws/aws-sdk-js-v3/issues/2994)) ([f5ecc31](https://github.com/aws/aws-sdk-js-v3/commit/f5ecc3147035a1f3d2d74cfed147999927ea8256))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @aws-sdk/client-translate
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
6
45
|
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
7
46
|
|
|
8
47
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,21 +3,53 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
-
"us-east-1
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"us-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "translate.us-east-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: "translate-fips.us-east-1.amazonaws.com",
|
|
14
|
+
tags: ["fips"],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
9
17
|
},
|
|
10
|
-
"us-east-2
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
"us-east-2": {
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
hostname: "translate.us-east-2.amazonaws.com",
|
|
22
|
+
tags: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
hostname: "translate-fips.us-east-2.amazonaws.com",
|
|
26
|
+
tags: ["fips"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
13
29
|
},
|
|
14
|
-
"us-gov-west-1
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
"us-gov-west-1": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "translate.us-gov-west-1.amazonaws.com",
|
|
34
|
+
tags: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
|
|
38
|
+
tags: ["fips"],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
17
41
|
},
|
|
18
|
-
"us-west-2
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
"us-west-2": {
|
|
43
|
+
variants: [
|
|
44
|
+
{
|
|
45
|
+
hostname: "translate.us-west-2.amazonaws.com",
|
|
46
|
+
tags: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
hostname: "translate-fips.us-west-2.amazonaws.com",
|
|
50
|
+
tags: ["fips"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
21
53
|
},
|
|
22
54
|
};
|
|
23
55
|
const partitionHash = {
|
|
@@ -48,23 +80,97 @@ const partitionHash = {
|
|
|
48
80
|
"us-west-2",
|
|
49
81
|
"us-west-2-fips",
|
|
50
82
|
],
|
|
51
|
-
|
|
83
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
84
|
+
variants: [
|
|
85
|
+
{
|
|
86
|
+
hostname: "translate.{region}.amazonaws.com",
|
|
87
|
+
tags: [],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
hostname: "translate-fips.{region}.amazonaws.com",
|
|
91
|
+
tags: ["fips"],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "translate-fips.{region}.api.aws",
|
|
95
|
+
tags: ["dualstack", "fips"],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
hostname: "translate.{region}.api.aws",
|
|
99
|
+
tags: ["dualstack"],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
52
102
|
},
|
|
53
103
|
"aws-cn": {
|
|
54
104
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
55
|
-
|
|
105
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
106
|
+
variants: [
|
|
107
|
+
{
|
|
108
|
+
hostname: "translate.{region}.amazonaws.com.cn",
|
|
109
|
+
tags: [],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hostname: "translate-fips.{region}.amazonaws.com.cn",
|
|
113
|
+
tags: ["fips"],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "translate-fips.{region}.api.amazonwebservices.com.cn",
|
|
117
|
+
tags: ["dualstack", "fips"],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
hostname: "translate.{region}.api.amazonwebservices.com.cn",
|
|
121
|
+
tags: ["dualstack"],
|
|
122
|
+
},
|
|
123
|
+
],
|
|
56
124
|
},
|
|
57
125
|
"aws-iso": {
|
|
58
126
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
59
|
-
|
|
127
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
128
|
+
variants: [
|
|
129
|
+
{
|
|
130
|
+
hostname: "translate.{region}.c2s.ic.gov",
|
|
131
|
+
tags: [],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
hostname: "translate-fips.{region}.c2s.ic.gov",
|
|
135
|
+
tags: ["fips"],
|
|
136
|
+
},
|
|
137
|
+
],
|
|
60
138
|
},
|
|
61
139
|
"aws-iso-b": {
|
|
62
140
|
regions: ["us-isob-east-1"],
|
|
63
|
-
|
|
141
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
142
|
+
variants: [
|
|
143
|
+
{
|
|
144
|
+
hostname: "translate.{region}.sc2s.sgov.gov",
|
|
145
|
+
tags: [],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
hostname: "translate-fips.{region}.sc2s.sgov.gov",
|
|
149
|
+
tags: ["fips"],
|
|
150
|
+
},
|
|
151
|
+
],
|
|
64
152
|
},
|
|
65
153
|
"aws-us-gov": {
|
|
66
154
|
regions: ["us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
|
|
67
|
-
|
|
155
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
156
|
+
variants: [
|
|
157
|
+
{
|
|
158
|
+
hostname: "translate.{region}.amazonaws.com",
|
|
159
|
+
tags: [],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
hostname: "translate-fips.{region}.amazonaws.com",
|
|
163
|
+
tags: ["fips"],
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
hostname: "translate-fips.{region}.api.aws",
|
|
167
|
+
tags: ["dualstack", "fips"],
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
hostname: "translate.{region}.api.aws",
|
|
171
|
+
tags: ["dualstack"],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
68
174
|
},
|
|
69
175
|
};
|
|
70
176
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 = void 0;
|
|
3
|
+
exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = exports.ListTextTranslationJobsRequest = exports.TextTranslationJobFilter = exports.InvalidFilterException = 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.OutputDataConfig = exports.JobStatus = exports.JobDetails = exports.InputDataConfig = exports.DescribeTextTranslationJobRequest = exports.DeleteTerminologyRequest = exports.ResourceNotFoundException = exports.DeleteParallelDataResponse = exports.DeleteParallelDataRequest = exports.ConcurrentModificationException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.CreateParallelDataResponse = exports.ParallelDataStatus = exports.CreateParallelDataRequest = exports.ParallelDataConfig = exports.ParallelDataFormat = exports.EncryptionKey = exports.EncryptionKeyType = exports.ConflictException = exports.AppliedTerminology = exports.Term = void 0;
|
|
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;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
var Term;
|
|
7
7
|
(function (Term) {
|
|
@@ -197,6 +197,7 @@ var TerminologyDataFormat;
|
|
|
197
197
|
(function (TerminologyDataFormat) {
|
|
198
198
|
TerminologyDataFormat["CSV"] = "CSV";
|
|
199
199
|
TerminologyDataFormat["TMX"] = "TMX";
|
|
200
|
+
TerminologyDataFormat["TSV"] = "TSV";
|
|
200
201
|
})(TerminologyDataFormat = exports.TerminologyDataFormat || (exports.TerminologyDataFormat = {}));
|
|
201
202
|
var GetTerminologyRequest;
|
|
202
203
|
(function (GetTerminologyRequest) {
|
|
@@ -210,6 +211,11 @@ var TerminologyDataLocation;
|
|
|
210
211
|
...obj,
|
|
211
212
|
});
|
|
212
213
|
})(TerminologyDataLocation = exports.TerminologyDataLocation || (exports.TerminologyDataLocation = {}));
|
|
214
|
+
var Directionality;
|
|
215
|
+
(function (Directionality) {
|
|
216
|
+
Directionality["MULTI"] = "MULTI";
|
|
217
|
+
Directionality["UNI"] = "UNI";
|
|
218
|
+
})(Directionality = exports.Directionality || (exports.Directionality = {}));
|
|
213
219
|
var TerminologyProperties;
|
|
214
220
|
(function (TerminologyProperties) {
|
|
215
221
|
TerminologyProperties.filterSensitiveLog = (obj) => ({
|
|
@@ -874,6 +874,14 @@ const deserializeAws_json1_1StartTextTranslationJobCommandError = async (output,
|
|
|
874
874
|
$metadata: deserializeMetadata(output),
|
|
875
875
|
};
|
|
876
876
|
break;
|
|
877
|
+
case "InvalidParameterValueException":
|
|
878
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
879
|
+
response = {
|
|
880
|
+
...(await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
881
|
+
name: errorCode,
|
|
882
|
+
$metadata: deserializeMetadata(output),
|
|
883
|
+
};
|
|
884
|
+
break;
|
|
877
885
|
case "InvalidRequestException":
|
|
878
886
|
case "com.amazonaws.translate#InvalidRequestException":
|
|
879
887
|
response = {
|
|
@@ -1426,6 +1434,10 @@ const serializeAws_json1_1ListTextTranslationJobsRequest = (input, context) => {
|
|
|
1426
1434
|
};
|
|
1427
1435
|
const serializeAws_json1_1OutputDataConfig = (input, context) => {
|
|
1428
1436
|
return {
|
|
1437
|
+
...(input.EncryptionKey !== undefined &&
|
|
1438
|
+
input.EncryptionKey !== null && {
|
|
1439
|
+
EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
|
|
1440
|
+
}),
|
|
1429
1441
|
...(input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }),
|
|
1430
1442
|
};
|
|
1431
1443
|
};
|
|
@@ -1493,6 +1505,8 @@ const serializeAws_json1_1TargetLanguageCodeStringList = (input, context) => {
|
|
|
1493
1505
|
};
|
|
1494
1506
|
const serializeAws_json1_1TerminologyData = (input, context) => {
|
|
1495
1507
|
return {
|
|
1508
|
+
...(input.Directionality !== undefined &&
|
|
1509
|
+
input.Directionality !== null && { Directionality: input.Directionality }),
|
|
1496
1510
|
...(input.File !== undefined && input.File !== null && { File: context.base64Encoder(input.File) }),
|
|
1497
1511
|
...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
|
|
1498
1512
|
};
|
|
@@ -1614,6 +1628,9 @@ const deserializeAws_json1_1GetParallelDataResponse = (output, context) => {
|
|
|
1614
1628
|
};
|
|
1615
1629
|
const deserializeAws_json1_1GetTerminologyResponse = (output, context) => {
|
|
1616
1630
|
return {
|
|
1631
|
+
AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
|
|
1632
|
+
? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1633
|
+
: undefined,
|
|
1617
1634
|
TerminologyDataLocation: output.TerminologyDataLocation !== undefined && output.TerminologyDataLocation !== null
|
|
1618
1635
|
? deserializeAws_json1_1TerminologyDataLocation(output.TerminologyDataLocation, context)
|
|
1619
1636
|
: undefined,
|
|
@@ -1624,6 +1641,9 @@ const deserializeAws_json1_1GetTerminologyResponse = (output, context) => {
|
|
|
1624
1641
|
};
|
|
1625
1642
|
const deserializeAws_json1_1ImportTerminologyResponse = (output, context) => {
|
|
1626
1643
|
return {
|
|
1644
|
+
AuxiliaryDataLocation: output.AuxiliaryDataLocation !== undefined && output.AuxiliaryDataLocation !== null
|
|
1645
|
+
? deserializeAws_json1_1TerminologyDataLocation(output.AuxiliaryDataLocation, context)
|
|
1646
|
+
: undefined,
|
|
1627
1647
|
TerminologyProperties: output.TerminologyProperties !== undefined && output.TerminologyProperties !== null
|
|
1628
1648
|
? deserializeAws_json1_1TerminologyProperties(output.TerminologyProperties, context)
|
|
1629
1649
|
: undefined,
|
|
@@ -1703,6 +1723,9 @@ const deserializeAws_json1_1ListTextTranslationJobsResponse = (output, context)
|
|
|
1703
1723
|
};
|
|
1704
1724
|
const deserializeAws_json1_1OutputDataConfig = (output, context) => {
|
|
1705
1725
|
return {
|
|
1726
|
+
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1727
|
+
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1728
|
+
: undefined,
|
|
1706
1729
|
S3Uri: smithy_client_1.expectString(output.S3Uri),
|
|
1707
1730
|
};
|
|
1708
1731
|
};
|
|
@@ -1822,14 +1845,18 @@ const deserializeAws_json1_1TerminologyProperties = (output, context) => {
|
|
|
1822
1845
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
1823
1846
|
: undefined,
|
|
1824
1847
|
Description: smithy_client_1.expectString(output.Description),
|
|
1848
|
+
Directionality: smithy_client_1.expectString(output.Directionality),
|
|
1825
1849
|
EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
|
|
1826
1850
|
? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
|
|
1827
1851
|
: undefined,
|
|
1852
|
+
Format: smithy_client_1.expectString(output.Format),
|
|
1828
1853
|
LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
1829
1854
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdatedAt)))
|
|
1830
1855
|
: undefined,
|
|
1856
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1831
1857
|
Name: smithy_client_1.expectString(output.Name),
|
|
1832
1858
|
SizeBytes: smithy_client_1.expectInt32(output.SizeBytes),
|
|
1859
|
+
SkippedTermCount: smithy_client_1.expectInt32(output.SkippedTermCount),
|
|
1833
1860
|
SourceLanguageCode: smithy_client_1.expectString(output.SourceLanguageCode),
|
|
1834
1861
|
TargetLanguageCodes: output.TargetLanguageCodes !== undefined && output.TargetLanguageCodes !== null
|
|
1835
1862
|
? deserializeAws_json1_1LanguageCodeStringList(output.TargetLanguageCodes, context)
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
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)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ 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
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
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),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,21 +1,53 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
-
"us-east-1
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"us-east-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "translate.us-east-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
hostname: "translate-fips.us-east-1.amazonaws.com",
|
|
12
|
+
tags: ["fips"],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
7
15
|
},
|
|
8
|
-
"us-east-2
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
"us-east-2": {
|
|
17
|
+
variants: [
|
|
18
|
+
{
|
|
19
|
+
hostname: "translate.us-east-2.amazonaws.com",
|
|
20
|
+
tags: [],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
hostname: "translate-fips.us-east-2.amazonaws.com",
|
|
24
|
+
tags: ["fips"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
11
27
|
},
|
|
12
|
-
"us-gov-west-1
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
"us-gov-west-1": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "translate.us-gov-west-1.amazonaws.com",
|
|
32
|
+
tags: [],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
|
|
36
|
+
tags: ["fips"],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
15
39
|
},
|
|
16
|
-
"us-west-2
|
|
17
|
-
|
|
18
|
-
|
|
40
|
+
"us-west-2": {
|
|
41
|
+
variants: [
|
|
42
|
+
{
|
|
43
|
+
hostname: "translate.us-west-2.amazonaws.com",
|
|
44
|
+
tags: [],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
hostname: "translate-fips.us-west-2.amazonaws.com",
|
|
48
|
+
tags: ["fips"],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
19
51
|
},
|
|
20
52
|
};
|
|
21
53
|
var partitionHash = {
|
|
@@ -46,23 +78,97 @@ var partitionHash = {
|
|
|
46
78
|
"us-west-2",
|
|
47
79
|
"us-west-2-fips",
|
|
48
80
|
],
|
|
49
|
-
|
|
81
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
82
|
+
variants: [
|
|
83
|
+
{
|
|
84
|
+
hostname: "translate.{region}.amazonaws.com",
|
|
85
|
+
tags: [],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
hostname: "translate-fips.{region}.amazonaws.com",
|
|
89
|
+
tags: ["fips"],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
hostname: "translate-fips.{region}.api.aws",
|
|
93
|
+
tags: ["dualstack", "fips"],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
hostname: "translate.{region}.api.aws",
|
|
97
|
+
tags: ["dualstack"],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
50
100
|
},
|
|
51
101
|
"aws-cn": {
|
|
52
102
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
53
|
-
|
|
103
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
104
|
+
variants: [
|
|
105
|
+
{
|
|
106
|
+
hostname: "translate.{region}.amazonaws.com.cn",
|
|
107
|
+
tags: [],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
hostname: "translate-fips.{region}.amazonaws.com.cn",
|
|
111
|
+
tags: ["fips"],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
hostname: "translate-fips.{region}.api.amazonwebservices.com.cn",
|
|
115
|
+
tags: ["dualstack", "fips"],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
hostname: "translate.{region}.api.amazonwebservices.com.cn",
|
|
119
|
+
tags: ["dualstack"],
|
|
120
|
+
},
|
|
121
|
+
],
|
|
54
122
|
},
|
|
55
123
|
"aws-iso": {
|
|
56
124
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
57
|
-
|
|
125
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
126
|
+
variants: [
|
|
127
|
+
{
|
|
128
|
+
hostname: "translate.{region}.c2s.ic.gov",
|
|
129
|
+
tags: [],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
hostname: "translate-fips.{region}.c2s.ic.gov",
|
|
133
|
+
tags: ["fips"],
|
|
134
|
+
},
|
|
135
|
+
],
|
|
58
136
|
},
|
|
59
137
|
"aws-iso-b": {
|
|
60
138
|
regions: ["us-isob-east-1"],
|
|
61
|
-
|
|
139
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
140
|
+
variants: [
|
|
141
|
+
{
|
|
142
|
+
hostname: "translate.{region}.sc2s.sgov.gov",
|
|
143
|
+
tags: [],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
hostname: "translate-fips.{region}.sc2s.sgov.gov",
|
|
147
|
+
tags: ["fips"],
|
|
148
|
+
},
|
|
149
|
+
],
|
|
62
150
|
},
|
|
63
151
|
"aws-us-gov": {
|
|
64
152
|
regions: ["us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
|
|
65
|
-
|
|
153
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
154
|
+
variants: [
|
|
155
|
+
{
|
|
156
|
+
hostname: "translate.{region}.amazonaws.com",
|
|
157
|
+
tags: [],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
hostname: "translate-fips.{region}.amazonaws.com",
|
|
161
|
+
tags: ["fips"],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
hostname: "translate-fips.{region}.api.aws",
|
|
165
|
+
tags: ["dualstack", "fips"],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
hostname: "translate.{region}.api.aws",
|
|
169
|
+
tags: ["dualstack"],
|
|
170
|
+
},
|
|
171
|
+
],
|
|
66
172
|
},
|
|
67
173
|
};
|
|
68
174
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -140,6 +140,7 @@ export var TerminologyDataFormat;
|
|
|
140
140
|
(function (TerminologyDataFormat) {
|
|
141
141
|
TerminologyDataFormat["CSV"] = "CSV";
|
|
142
142
|
TerminologyDataFormat["TMX"] = "TMX";
|
|
143
|
+
TerminologyDataFormat["TSV"] = "TSV";
|
|
143
144
|
})(TerminologyDataFormat || (TerminologyDataFormat = {}));
|
|
144
145
|
export var GetTerminologyRequest;
|
|
145
146
|
(function (GetTerminologyRequest) {
|
|
@@ -149,6 +150,11 @@ export var TerminologyDataLocation;
|
|
|
149
150
|
(function (TerminologyDataLocation) {
|
|
150
151
|
TerminologyDataLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
152
|
})(TerminologyDataLocation || (TerminologyDataLocation = {}));
|
|
153
|
+
export var Directionality;
|
|
154
|
+
(function (Directionality) {
|
|
155
|
+
Directionality["MULTI"] = "MULTI";
|
|
156
|
+
Directionality["UNI"] = "UNI";
|
|
157
|
+
})(Directionality || (Directionality = {}));
|
|
152
158
|
export var TerminologyProperties;
|
|
153
159
|
(function (TerminologyProperties) {
|
|
154
160
|
TerminologyProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|