@aws-sdk/client-translate 3.37.0 → 3.41.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist-cjs/commands/index.js +17 -0
  3. package/dist-cjs/endpoints.js +123 -17
  4. package/dist-cjs/index.js +4 -20
  5. package/dist-cjs/models/models_0.js +8 -2
  6. package/dist-cjs/pagination/index.js +7 -0
  7. package/dist-cjs/protocols/Aws_json1_1.js +27 -0
  8. package/dist-cjs/runtimeConfig.browser.js +6 -3
  9. package/dist-cjs/runtimeConfig.js +5 -3
  10. package/dist-es/commands/index.js +14 -0
  11. package/dist-es/endpoints.js +123 -17
  12. package/dist-es/index.js +4 -20
  13. package/dist-es/models/models_0.js +6 -0
  14. package/dist-es/pagination/index.js +4 -0
  15. package/dist-es/protocols/Aws_json1_1.js +58 -33
  16. package/dist-es/runtimeConfig.browser.js +3 -2
  17. package/dist-es/runtimeConfig.js +3 -3
  18. package/dist-types/Translate.d.ts +4 -4
  19. package/dist-types/TranslateClient.d.ts +8 -0
  20. package/dist-types/commands/CreateParallelDataCommand.d.ts +4 -4
  21. package/dist-types/commands/DeleteParallelDataCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteTerminologyCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +2 -2
  24. package/dist-types/commands/GetParallelDataCommand.d.ts +1 -1
  25. package/dist-types/commands/GetTerminologyCommand.d.ts +1 -1
  26. package/dist-types/commands/ImportTerminologyCommand.d.ts +1 -1
  27. package/dist-types/commands/ListParallelDataCommand.d.ts +1 -1
  28. package/dist-types/commands/ListTerminologiesCommand.d.ts +1 -1
  29. package/dist-types/commands/ListTextTranslationJobsCommand.d.ts +1 -1
  30. package/dist-types/commands/StartTextTranslationJobCommand.d.ts +1 -1
  31. package/dist-types/commands/StopTextTranslationJobCommand.d.ts +1 -1
  32. package/dist-types/commands/TranslateTextCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateParallelDataCommand.d.ts +1 -1
  34. package/dist-types/commands/index.d.ts +14 -0
  35. package/dist-types/index.d.ts +4 -20
  36. package/dist-types/models/models_0.d.ts +132 -17
  37. package/dist-types/pagination/index.d.ts +4 -0
  38. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  39. package/dist-types/runtimeConfig.d.ts +2 -0
  40. package/dist-types/runtimeConfig.native.d.ts +2 -0
  41. package/dist-types/ts3.4/TranslateClient.d.ts +4 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  43. package/dist-types/ts3.4/index.d.ts +4 -20
  44. package/dist-types/ts3.4/models/models_0.d.ts +23 -2
  45. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  49. package/package.json +26 -26
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
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.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * **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))
23
+ * **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))
24
+
25
+
26
+
27
+
28
+
29
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
30
+
31
+ **Note:** Version bump only for package @aws-sdk/client-translate
32
+
33
+
34
+
35
+
36
+
37
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
38
+
39
+
40
+ ### Features
41
+
42
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
43
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
44
+
45
+
46
+
47
+
48
+
6
49
  # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
7
50
 
8
51
 
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateParallelDataCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteParallelDataCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteTerminologyCommand"), exports);
7
+ tslib_1.__exportStar(require("./DescribeTextTranslationJobCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetParallelDataCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetTerminologyCommand"), exports);
10
+ tslib_1.__exportStar(require("./ImportTerminologyCommand"), exports);
11
+ tslib_1.__exportStar(require("./ListParallelDataCommand"), exports);
12
+ tslib_1.__exportStar(require("./ListTerminologiesCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListTextTranslationJobsCommand"), exports);
14
+ tslib_1.__exportStar(require("./StartTextTranslationJobCommand"), exports);
15
+ tslib_1.__exportStar(require("./StopTextTranslationJobCommand"), exports);
16
+ tslib_1.__exportStar(require("./TranslateTextCommand"), exports);
17
+ tslib_1.__exportStar(require("./UpdateParallelDataCommand"), exports);
@@ -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-fips": {
7
- hostname: "translate-fips.us-east-1.amazonaws.com",
8
- signingRegion: "us-east-1",
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-fips": {
11
- hostname: "translate-fips.us-east-2.amazonaws.com",
12
- signingRegion: "us-east-2",
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-fips": {
15
- hostname: "translate-fips.us-gov-west-1.amazonaws.com",
16
- signingRegion: "us-gov-west-1",
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-fips": {
19
- hostname: "translate-fips.us-west-2.amazonaws.com",
20
- signingRegion: "us-west-2",
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
- hostname: "translate.{region}.amazonaws.com",
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
- hostname: "translate.{region}.amazonaws.com.cn",
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
- hostname: "translate.{region}.c2s.ic.gov",
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
- hostname: "translate.{region}.sc2s.sgov.gov",
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
- hostname: "translate.{region}.amazonaws.com",
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, {
package/dist-cjs/index.js CHANGED
@@ -1,24 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./TranslateClient"), exports);
5
4
  tslib_1.__exportStar(require("./Translate"), exports);
6
- tslib_1.__exportStar(require("./commands/CreateParallelDataCommand"), exports);
7
- tslib_1.__exportStar(require("./commands/DeleteParallelDataCommand"), exports);
8
- tslib_1.__exportStar(require("./commands/DeleteTerminologyCommand"), exports);
9
- tslib_1.__exportStar(require("./commands/DescribeTextTranslationJobCommand"), exports);
10
- tslib_1.__exportStar(require("./commands/GetParallelDataCommand"), exports);
11
- tslib_1.__exportStar(require("./commands/GetTerminologyCommand"), exports);
12
- tslib_1.__exportStar(require("./commands/ImportTerminologyCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/ListParallelDataCommand"), exports);
14
- tslib_1.__exportStar(require("./pagination/ListParallelDataPaginator"), exports);
15
- tslib_1.__exportStar(require("./commands/ListTerminologiesCommand"), exports);
16
- tslib_1.__exportStar(require("./pagination/ListTerminologiesPaginator"), exports);
17
- tslib_1.__exportStar(require("./commands/ListTextTranslationJobsCommand"), exports);
18
- tslib_1.__exportStar(require("./pagination/ListTextTranslationJobsPaginator"), exports);
19
- tslib_1.__exportStar(require("./commands/StartTextTranslationJobCommand"), exports);
20
- tslib_1.__exportStar(require("./commands/StopTextTranslationJobCommand"), exports);
21
- tslib_1.__exportStar(require("./commands/TranslateTextCommand"), exports);
22
- tslib_1.__exportStar(require("./commands/UpdateParallelDataCommand"), exports);
23
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
24
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./TranslateClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartTextTranslationJobResponse = 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.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 = 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) => ({
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListParallelDataPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListTerminologiesPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListTextTranslationJobsPaginator"), exports);
@@ -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
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
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
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
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;
@@ -0,0 +1,14 @@
1
+ export * from "./CreateParallelDataCommand";
2
+ export * from "./DeleteParallelDataCommand";
3
+ export * from "./DeleteTerminologyCommand";
4
+ export * from "./DescribeTextTranslationJobCommand";
5
+ export * from "./GetParallelDataCommand";
6
+ export * from "./GetTerminologyCommand";
7
+ export * from "./ImportTerminologyCommand";
8
+ export * from "./ListParallelDataCommand";
9
+ export * from "./ListTerminologiesCommand";
10
+ export * from "./ListTextTranslationJobsCommand";
11
+ export * from "./StartTextTranslationJobCommand";
12
+ export * from "./StopTextTranslationJobCommand";
13
+ export * from "./TranslateTextCommand";
14
+ export * from "./UpdateParallelDataCommand";
@@ -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-fips": {
5
- hostname: "translate-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
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-fips": {
9
- hostname: "translate-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
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-fips": {
13
- hostname: "translate-fips.us-gov-west-1.amazonaws.com",
14
- signingRegion: "us-gov-west-1",
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-fips": {
17
- hostname: "translate-fips.us-west-2.amazonaws.com",
18
- signingRegion: "us-west-2",
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
- hostname: "translate.{region}.amazonaws.com",
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
- hostname: "translate.{region}.amazonaws.com.cn",
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
- hostname: "translate.{region}.c2s.ic.gov",
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
- hostname: "translate.{region}.sc2s.sgov.gov",
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
- hostname: "translate.{region}.amazonaws.com",
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 () {
package/dist-es/index.js CHANGED
@@ -1,21 +1,5 @@
1
- export * from "./TranslateClient";
2
1
  export * from "./Translate";
3
- export * from "./commands/CreateParallelDataCommand";
4
- export * from "./commands/DeleteParallelDataCommand";
5
- export * from "./commands/DeleteTerminologyCommand";
6
- export * from "./commands/DescribeTextTranslationJobCommand";
7
- export * from "./commands/GetParallelDataCommand";
8
- export * from "./commands/GetTerminologyCommand";
9
- export * from "./commands/ImportTerminologyCommand";
10
- export * from "./commands/ListParallelDataCommand";
11
- export * from "./pagination/ListParallelDataPaginator";
12
- export * from "./commands/ListTerminologiesCommand";
13
- export * from "./pagination/ListTerminologiesPaginator";
14
- export * from "./commands/ListTextTranslationJobsCommand";
15
- export * from "./pagination/ListTextTranslationJobsPaginator";
16
- export * from "./commands/StartTextTranslationJobCommand";
17
- export * from "./commands/StopTextTranslationJobCommand";
18
- export * from "./commands/TranslateTextCommand";
19
- export * from "./commands/UpdateParallelDataCommand";
20
- export * from "./pagination/Interfaces";
21
- export * from "./models/index";
2
+ export * from "./TranslateClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";