@aws-sdk/client-translate 3.36.1 → 3.40.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 (35) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist-cjs/commands/index.js +17 -0
  3. package/dist-cjs/endpoints.js +116 -18
  4. package/dist-cjs/index.js +4 -20
  5. package/dist-cjs/pagination/index.js +7 -0
  6. package/dist-cjs/protocols/Aws_json1_1.js +15 -0
  7. package/dist-cjs/runtimeConfig.browser.js +6 -3
  8. package/dist-cjs/runtimeConfig.js +5 -3
  9. package/dist-es/commands/index.js +14 -0
  10. package/dist-es/endpoints.js +116 -18
  11. package/dist-es/index.js +4 -20
  12. package/dist-es/pagination/index.js +4 -0
  13. package/dist-es/protocols/Aws_json1_1.js +46 -32
  14. package/dist-es/runtimeConfig.browser.js +3 -2
  15. package/dist-es/runtimeConfig.js +3 -3
  16. package/dist-types/Translate.d.ts +4 -4
  17. package/dist-types/TranslateClient.d.ts +8 -0
  18. package/dist-types/commands/CreateParallelDataCommand.d.ts +3 -3
  19. package/dist-types/commands/DescribeTextTranslationJobCommand.d.ts +1 -1
  20. package/dist-types/commands/index.d.ts +14 -0
  21. package/dist-types/index.d.ts +4 -20
  22. package/dist-types/models/models_0.d.ts +50 -11
  23. package/dist-types/pagination/index.d.ts +4 -0
  24. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  25. package/dist-types/runtimeConfig.d.ts +2 -0
  26. package/dist-types/runtimeConfig.native.d.ts +2 -0
  27. package/dist-types/ts3.4/TranslateClient.d.ts +4 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  29. package/dist-types/ts3.4/index.d.ts +4 -20
  30. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  31. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  35. package/package.json +32 -32
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.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+ * **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))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
19
+
20
+ **Note:** Version bump only for package @aws-sdk/client-translate
21
+
22
+
23
+
24
+
25
+
26
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
27
+
28
+
29
+ ### Features
30
+
31
+ * **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))
32
+ * **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))
33
+
34
+
35
+
36
+
37
+
38
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
39
+
40
+
41
+ ### Features
42
+
43
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
44
+
45
+
46
+
47
+
48
+
6
49
  ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
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,89 @@ 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
- regions: ["us-iso-east-1"],
59
- hostname: "translate.{region}.c2s.ic.gov",
126
+ regions: ["us-iso-east-1", "us-iso-west-1"],
127
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
128
+ variants: [
129
+ {
130
+ hostname: "translate.{region}.c2s.ic.gov",
131
+ tags: [],
132
+ },
133
+ ],
60
134
  },
61
135
  "aws-iso-b": {
62
136
  regions: ["us-isob-east-1"],
63
- hostname: "translate.{region}.sc2s.sgov.gov",
137
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
138
+ variants: [
139
+ {
140
+ hostname: "translate.{region}.sc2s.sgov.gov",
141
+ tags: [],
142
+ },
143
+ ],
64
144
  },
65
145
  "aws-us-gov": {
66
146
  regions: ["us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
67
- hostname: "translate.{region}.amazonaws.com",
147
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
148
+ variants: [
149
+ {
150
+ hostname: "translate.{region}.amazonaws.com",
151
+ tags: [],
152
+ },
153
+ {
154
+ hostname: "translate-fips.{region}.amazonaws.com",
155
+ tags: ["fips"],
156
+ },
157
+ {
158
+ hostname: "translate-fips.{region}.api.aws",
159
+ tags: ["dualstack", "fips"],
160
+ },
161
+ {
162
+ hostname: "translate.{region}.api.aws",
163
+ tags: ["dualstack"],
164
+ },
165
+ ],
68
166
  },
69
167
  };
70
168
  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);
@@ -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
  };
@@ -1703,6 +1715,9 @@ const deserializeAws_json1_1ListTextTranslationJobsResponse = (output, context)
1703
1715
  };
1704
1716
  const deserializeAws_json1_1OutputDataConfig = (output, context) => {
1705
1717
  return {
1718
+ EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1719
+ ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1720
+ : undefined,
1706
1721
  S3Uri: smithy_client_1.expectString(output.S3Uri),
1707
1722
  };
1708
1723
  };
@@ -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,89 @@ 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
- regions: ["us-iso-east-1"],
57
- hostname: "translate.{region}.c2s.ic.gov",
124
+ regions: ["us-iso-east-1", "us-iso-west-1"],
125
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
126
+ variants: [
127
+ {
128
+ hostname: "translate.{region}.c2s.ic.gov",
129
+ tags: [],
130
+ },
131
+ ],
58
132
  },
59
133
  "aws-iso-b": {
60
134
  regions: ["us-isob-east-1"],
61
- hostname: "translate.{region}.sc2s.sgov.gov",
135
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
136
+ variants: [
137
+ {
138
+ hostname: "translate.{region}.sc2s.sgov.gov",
139
+ tags: [],
140
+ },
141
+ ],
62
142
  },
63
143
  "aws-us-gov": {
64
144
  regions: ["us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
65
- hostname: "translate.{region}.amazonaws.com",
145
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
146
+ variants: [
147
+ {
148
+ hostname: "translate.{region}.amazonaws.com",
149
+ tags: [],
150
+ },
151
+ {
152
+ hostname: "translate-fips.{region}.amazonaws.com",
153
+ tags: ["fips"],
154
+ },
155
+ {
156
+ hostname: "translate-fips.{region}.api.aws",
157
+ tags: ["dualstack", "fips"],
158
+ },
159
+ {
160
+ hostname: "translate.{region}.api.aws",
161
+ tags: ["dualstack"],
162
+ },
163
+ ],
66
164
  },
67
165
  };
68
166
  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";
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListParallelDataPaginator";
3
+ export * from "./ListTerminologiesPaginator";
4
+ export * from "./ListTextTranslationJobsPaginator";
@@ -967,68 +967,76 @@ export var deserializeAws_json1_1StartTextTranslationJobCommand = function (outp
967
967
  });
968
968
  }); };
969
969
  var deserializeAws_json1_1StartTextTranslationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
970
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
971
- var _h;
972
- return __generator(this, function (_j) {
973
- switch (_j.label) {
970
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
971
+ var _j;
972
+ return __generator(this, function (_k) {
973
+ switch (_k.label) {
974
974
  case 0:
975
975
  _a = [__assign({}, output)];
976
- _h = {};
976
+ _j = {};
977
977
  return [4, parseBody(output.body, context)];
978
978
  case 1:
979
- parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
979
+ parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
980
980
  errorCode = "UnknownError";
981
981
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
982
982
  _b = errorCode;
983
983
  switch (_b) {
984
984
  case "InternalServerException": return [3, 2];
985
985
  case "com.amazonaws.translate#InternalServerException": return [3, 2];
986
- case "InvalidRequestException": return [3, 4];
987
- case "com.amazonaws.translate#InvalidRequestException": return [3, 4];
988
- case "ResourceNotFoundException": return [3, 6];
989
- case "com.amazonaws.translate#ResourceNotFoundException": return [3, 6];
990
- case "TooManyRequestsException": return [3, 8];
991
- case "com.amazonaws.translate#TooManyRequestsException": return [3, 8];
992
- case "UnsupportedLanguagePairException": return [3, 10];
993
- case "com.amazonaws.translate#UnsupportedLanguagePairException": return [3, 10];
986
+ case "InvalidParameterValueException": return [3, 4];
987
+ case "com.amazonaws.translate#InvalidParameterValueException": return [3, 4];
988
+ case "InvalidRequestException": return [3, 6];
989
+ case "com.amazonaws.translate#InvalidRequestException": return [3, 6];
990
+ case "ResourceNotFoundException": return [3, 8];
991
+ case "com.amazonaws.translate#ResourceNotFoundException": return [3, 8];
992
+ case "TooManyRequestsException": return [3, 10];
993
+ case "com.amazonaws.translate#TooManyRequestsException": return [3, 10];
994
+ case "UnsupportedLanguagePairException": return [3, 12];
995
+ case "com.amazonaws.translate#UnsupportedLanguagePairException": return [3, 12];
994
996
  }
995
- return [3, 12];
997
+ return [3, 14];
996
998
  case 2:
997
999
  _c = [{}];
998
1000
  return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
999
1001
  case 3:
1000
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1001
- return [3, 13];
1002
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1003
+ return [3, 15];
1002
1004
  case 4:
1003
1005
  _d = [{}];
1004
- return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1006
+ return [4, deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context)];
1005
1007
  case 5:
1006
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1007
- return [3, 13];
1008
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1009
+ return [3, 15];
1008
1010
  case 6:
1009
1011
  _e = [{}];
1010
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1012
+ return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
1011
1013
  case 7:
1012
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1013
- return [3, 13];
1014
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1015
+ return [3, 15];
1014
1016
  case 8:
1015
1017
  _f = [{}];
1016
- return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
1018
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1017
1019
  case 9:
1018
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1019
- return [3, 13];
1020
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1021
+ return [3, 15];
1020
1022
  case 10:
1021
1023
  _g = [{}];
1022
- return [4, deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse(parsedOutput, context)];
1024
+ return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
1023
1025
  case 11:
1024
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1025
- return [3, 13];
1026
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1027
+ return [3, 15];
1026
1028
  case 12:
1029
+ _h = [{}];
1030
+ return [4, deserializeAws_json1_1UnsupportedLanguagePairExceptionResponse(parsedOutput, context)];
1031
+ case 13:
1032
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1033
+ return [3, 15];
1034
+ case 14:
1027
1035
  parsedBody = parsedOutput.body;
1028
1036
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
1029
1037
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1030
- _j.label = 13;
1031
- case 13:
1038
+ _k.label = 15;
1039
+ case 15:
1032
1040
  message = response.message || response.Message || errorCode;
1033
1041
  response.message = message;
1034
1042
  delete response.Message;
@@ -1501,7 +1509,10 @@ var serializeAws_json1_1ListTextTranslationJobsRequest = function (input, contex
1501
1509
  input.Filter !== null && { Filter: serializeAws_json1_1TextTranslationJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1502
1510
  };
1503
1511
  var serializeAws_json1_1OutputDataConfig = function (input, context) {
1504
- return __assign({}, (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
1512
+ return __assign(__assign({}, (input.EncryptionKey !== undefined &&
1513
+ input.EncryptionKey !== null && {
1514
+ EncryptionKey: serializeAws_json1_1EncryptionKey(input.EncryptionKey, context),
1515
+ })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
1505
1516
  };
1506
1517
  var serializeAws_json1_1ParallelDataConfig = function (input, context) {
1507
1518
  return __assign(__assign({}, (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.S3Uri !== undefined && input.S3Uri !== null && { S3Uri: input.S3Uri }));
@@ -1744,6 +1755,9 @@ var deserializeAws_json1_1ListTextTranslationJobsResponse = function (output, co
1744
1755
  };
1745
1756
  var deserializeAws_json1_1OutputDataConfig = function (output, context) {
1746
1757
  return {
1758
+ EncryptionKey: output.EncryptionKey !== undefined && output.EncryptionKey !== null
1759
+ ? deserializeAws_json1_1EncryptionKey(output.EncryptionKey, context)
1760
+ : undefined,
1747
1761
  S3Uri: __expectString(output.S3Uri),
1748
1762
  };
1749
1763
  };
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- 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;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -21,9 +21,9 @@ import { TranslateClient } from "./TranslateClient";
21
21
  export declare class Translate extends TranslateClient {
22
22
  /**
23
23
  * <p>Creates a parallel data resource in Amazon Translate by importing an input file from
24
- * Amazon S3. Parallel data files contain examples of source phrases and their translations from
25
- * your translation memory. By adding parallel data, you can influence the style, tone, and word
26
- * choice in your translation output.</p>
24
+ * Amazon S3. Parallel data files contain examples that show how you want segments of text to be
25
+ * translated. By adding parallel data, you can influence the style, tone, and word choice in
26
+ * your translation output.</p>
27
27
  */
28
28
  createParallelData(args: CreateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<CreateParallelDataCommandOutput>;
29
29
  createParallelData(args: CreateParallelDataCommandInput, cb: (err: any, data?: CreateParallelDataCommandOutput) => void): void;
@@ -41,7 +41,7 @@ export declare class Translate extends TranslateClient {
41
41
  deleteTerminology(args: DeleteTerminologyCommandInput, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
42
42
  deleteTerminology(args: DeleteTerminologyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTerminologyCommandOutput) => void): void;
43
43
  /**
44
- * <p>Gets the properties associated with an asycnhronous batch translation job including name,
44
+ * <p>Gets the properties associated with an asynchronous batch translation job including name,
45
45
  * ID, status, source and target languages, input/output S3 buckets, and so on.</p>
46
46
  */
47
47
  describeTextTranslationJob(args: DescribeTextTranslationJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTextTranslationJobCommandOutput>;
@@ -90,6 +90,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
90
90
  * Optional logger for logging debug/info/warn/error.
91
91
  */
92
92
  logger?: __Logger;
93
+ /**
94
+ * Enables IPv6/IPv4 dualstack endpoint.
95
+ */
96
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
97
+ /**
98
+ * Enables FIPS compatible endpoints.
99
+ */
100
+ useFipsEndpoint?: boolean | __Provider<boolean>;
93
101
  /**
94
102
  * Unique service identifier.
95
103
  * @internal
@@ -8,9 +8,9 @@ export interface CreateParallelDataCommandOutput extends CreateParallelDataRespo
8
8
  }
9
9
  /**
10
10
  * <p>Creates a parallel data resource in Amazon Translate by importing an input file from
11
- * Amazon S3. Parallel data files contain examples of source phrases and their translations from
12
- * your translation memory. By adding parallel data, you can influence the style, tone, and word
13
- * choice in your translation output.</p>
11
+ * Amazon S3. Parallel data files contain examples that show how you want segments of text to be
12
+ * translated. By adding parallel data, you can influence the style, tone, and word choice in
13
+ * your translation output.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
16
16
  * ```javascript
@@ -7,7 +7,7 @@ export interface DescribeTextTranslationJobCommandInput extends DescribeTextTran
7
7
  export interface DescribeTextTranslationJobCommandOutput extends DescribeTextTranslationJobResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Gets the properties associated with an asycnhronous batch translation job including name,
10
+ * <p>Gets the properties associated with an asynchronous batch translation job including name,
11
11
  * ID, status, source and target languages, input/output S3 buckets, and so on.</p>
12
12
  * @example
13
13
  * Use a bare-bones client and the command you need to make an API call.
@@ -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,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";
@@ -356,6 +356,11 @@ export interface InputDataConfig {
356
356
  * <code>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</code>: The
357
357
  * input data consists of one or more Excel Workbook files (.xlsx).</p>
358
358
  * </li>
359
+ * <li>
360
+ * <p>
361
+ * <code>application/x-xliff+xml</code>: The input data consists of one or more XML
362
+ * Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only XLIFF version 1.2.</p>
363
+ * </li>
359
364
  * </ul>
360
365
  * <important>
361
366
  * <p>If you structure your input data as HTML, ensure that you set this parameter to
@@ -414,6 +419,10 @@ export interface OutputDataConfig {
414
419
  * be in the same Region as the API endpoint that you are calling.</p>
415
420
  */
416
421
  S3Uri: string | undefined;
422
+ /**
423
+ * <p>The encryption key used to encrypt this object.</p>
424
+ */
425
+ EncryptionKey?: EncryptionKey;
417
426
  }
418
427
  export declare namespace OutputDataConfig {
419
428
  /**
@@ -464,7 +473,7 @@ export interface TextTranslationJobProperties {
464
473
  */
465
474
  ParallelDataNames?: string[];
466
475
  /**
467
- * <p>An explanation of any errors that may have occured during the translation job.</p>
476
+ * <p>An explanation of any errors that may have occurred during the translation job.</p>
468
477
  */
469
478
  Message?: string;
470
479
  /**
@@ -532,6 +541,16 @@ export interface ParallelDataDataLocation {
532
541
  /**
533
542
  * <p>The Amazon S3 location of the parallel data input file. The location is returned as a
534
543
  * presigned URL to that has a 30 minute expiration.</p>
544
+ *
545
+ * <important>
546
+ * <p>Amazon Translate doesn't scan parallel data input files for the risk of CSV injection
547
+ * attacks. </p>
548
+ * <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
549
+ * malicious code. The record begins with a special character, such as =, +, -, or @. When the
550
+ * file is opened in a spreadsheet program, the program might interpret the record as a formula
551
+ * and run the code within it.</p>
552
+ * <p>Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
553
+ * </important>
535
554
  */
536
555
  Location: string | undefined;
537
556
  }
@@ -633,9 +652,19 @@ export interface GetParallelDataResponse {
633
652
  */
634
653
  ParallelDataProperties?: ParallelDataProperties;
635
654
  /**
636
- * <p>The location of the most recent parallel data input file that was successfully imported
637
- * into Amazon Translate. The location is returned as a presigned URL that has a 30 minute
638
- * expiration.</p>
655
+ * <p>The Amazon S3 location of the most recent parallel data input file that was successfully
656
+ * imported into Amazon Translate. The location is returned as a presigned URL that has a 30
657
+ * minute expiration.</p>
658
+ *
659
+ * <important>
660
+ * <p>Amazon Translate doesn't scan parallel data input files for the risk of CSV injection
661
+ * attacks. </p>
662
+ * <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
663
+ * malicious code. The record begins with a special character, such as =, +, -, or @. When the
664
+ * file is opened in a spreadsheet program, the program might interpret the record as a formula
665
+ * and run the code within it.</p>
666
+ * <p>Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
667
+ * </important>
639
668
  */
640
669
  DataLocation?: ParallelDataDataLocation;
641
670
  /**
@@ -974,7 +1003,7 @@ export interface ListTextTranslationJobsResponse {
974
1003
  */
975
1004
  TextTranslationJobPropertiesList?: TextTranslationJobProperties[];
976
1005
  /**
977
- * <p>The token to use to retreive the next page of results. This value is <code>null</code>
1006
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code>
978
1007
  * when there are no more results to return.</p>
979
1008
  */
980
1009
  NextToken?: string;
@@ -1002,7 +1031,7 @@ export interface StartTextTranslationJobRequest {
1002
1031
  OutputDataConfig: OutputDataConfig | undefined;
1003
1032
  /**
1004
1033
  * <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
1005
- * that grants Amazon Translate read access to your input data. For more nformation, see <a>identity-and-access-management</a>.</p>
1034
+ * that grants Amazon Translate read access to your input data. For more information, see <a>identity-and-access-management</a>.</p>
1006
1035
  */
1007
1036
  DataAccessRoleArn: string | undefined;
1008
1037
  /**
@@ -1016,14 +1045,24 @@ export interface StartTextTranslationJobRequest {
1016
1045
  */
1017
1046
  TargetLanguageCodes: string[] | undefined;
1018
1047
  /**
1019
- * <p>The name of the terminology to use in the batch translation job. For a list of available
1020
- * terminologies, use the <a>ListTerminologies</a> operation.</p>
1048
+ * <p>The name of a custom terminology resource to add to the translation job. This resource
1049
+ * lists examples source terms and the desired translation for each term.</p>
1050
+ * <p>This parameter accepts only one custom terminology resource.</p>
1051
+ * <p>For a list of available custom terminology resources, use the <a>ListTerminologies</a> operation.</p>
1052
+ * <p>For more information, see <a>how-custom-terminology</a>.</p>
1021
1053
  */
1022
1054
  TerminologyNames?: string[];
1023
1055
  /**
1024
- * <p>The names of the parallel data resources to use in the batch translation job. For a list
1025
- * of available parallel data resources, use the <a>ListParallelData</a>
1026
- * operation.</p>
1056
+ * <p>The name of a parallel data resource to add to the translation job. This resource consists
1057
+ * of examples that show how you want segments of text to be translated. When you add parallel
1058
+ * data to a translation job, you create an <i>Active Custom Translation</i> job. </p>
1059
+ * <p>This parameter accepts only one parallel data resource.</p>
1060
+ * <note>
1061
+ * <p>Active Custom Translation jobs are priced at a higher rate than other jobs that don't
1062
+ * use parallel data. For more information, see <a href="http://aws.amazon.com/translate/pricing/">Amazon Translate pricing</a>.</p>
1063
+ * </note>
1064
+ * <p>For a list of available parallel data resources, use the <a>ListParallelData</a> operation.</p>
1065
+ * <p>For more information, see <a>customizing-translations-parallel-data</a>.</p>
1027
1066
  */
1028
1067
  ParallelDataNames?: string[];
1029
1068
  /**
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListParallelDataPaginator";
3
+ export * from "./ListTerminologiesPaginator";
4
+ export * from "./ListTextTranslationJobsPaginator";
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
18
18
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
23
  serviceId: string;
22
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
@@ -52,6 +52,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
52
52
 
53
53
  logger?: __Logger;
54
54
 
55
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
56
+
57
+ useFipsEndpoint?: boolean | __Provider<boolean>;
58
+
55
59
  serviceId?: string;
56
60
 
57
61
  region?: string | __Provider<string>;
@@ -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,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";
@@ -235,6 +235,8 @@ export declare enum JobStatus {
235
235
  export interface OutputDataConfig {
236
236
 
237
237
  S3Uri: string | undefined;
238
+
239
+ EncryptionKey?: EncryptionKey;
238
240
  }
239
241
  export declare namespace OutputDataConfig {
240
242
 
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListParallelDataPaginator";
3
+ export * from "./ListTerminologiesPaginator";
4
+ export * from "./ListTextTranslationJobsPaginator";
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
14
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
15
  sha256: import("@aws-sdk/types").HashConstructor;
16
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
18
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
18
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
19
21
  apiVersion: string;
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
14
14
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
15
  sha256: import("@aws-sdk/types").HashConstructor;
16
16
  streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
18
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
19
  utf8Decoder: import("@aws-sdk/types").Decoder;
18
20
  utf8Encoder: import("@aws-sdk/types").Encoder;
19
21
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
16
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
18
  logger: import("@aws-sdk/types").Logger;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  serviceId: string;
20
22
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
21
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-translate",
3
3
  "description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
4
- "version": "3.36.1",
4
+ "version": "3.40.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -19,41 +19,41 @@
19
19
  "module": "./dist-es/index.js",
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@aws-crypto/sha256-browser": "^1.0.0",
23
- "@aws-crypto/sha256-js": "^1.0.0",
24
- "@aws-sdk/client-sts": "3.36.1",
25
- "@aws-sdk/config-resolver": "3.36.0",
26
- "@aws-sdk/credential-provider-node": "3.36.1",
27
- "@aws-sdk/fetch-http-handler": "3.36.0",
28
- "@aws-sdk/hash-node": "3.36.0",
29
- "@aws-sdk/invalid-dependency": "3.36.0",
30
- "@aws-sdk/middleware-content-length": "3.36.0",
31
- "@aws-sdk/middleware-host-header": "3.36.0",
32
- "@aws-sdk/middleware-logger": "3.36.0",
33
- "@aws-sdk/middleware-retry": "3.36.0",
34
- "@aws-sdk/middleware-serde": "3.36.0",
35
- "@aws-sdk/middleware-signing": "3.36.0",
36
- "@aws-sdk/middleware-stack": "3.36.0",
37
- "@aws-sdk/middleware-user-agent": "3.36.0",
38
- "@aws-sdk/node-config-provider": "3.36.0",
39
- "@aws-sdk/node-http-handler": "3.36.0",
40
- "@aws-sdk/protocol-http": "3.36.0",
41
- "@aws-sdk/smithy-client": "3.36.0",
42
- "@aws-sdk/types": "3.36.0",
43
- "@aws-sdk/url-parser": "3.36.0",
44
- "@aws-sdk/util-base64-browser": "3.36.0",
45
- "@aws-sdk/util-base64-node": "3.36.0",
46
- "@aws-sdk/util-body-length-browser": "3.36.0",
47
- "@aws-sdk/util-body-length-node": "3.36.0",
48
- "@aws-sdk/util-user-agent-browser": "3.36.0",
49
- "@aws-sdk/util-user-agent-node": "3.36.0",
50
- "@aws-sdk/util-utf8-browser": "3.36.0",
51
- "@aws-sdk/util-utf8-node": "3.36.0",
22
+ "@aws-crypto/sha256-browser": "2.0.0",
23
+ "@aws-crypto/sha256-js": "2.0.0",
24
+ "@aws-sdk/client-sts": "3.40.0",
25
+ "@aws-sdk/config-resolver": "3.40.0",
26
+ "@aws-sdk/credential-provider-node": "3.40.0",
27
+ "@aws-sdk/fetch-http-handler": "3.40.0",
28
+ "@aws-sdk/hash-node": "3.40.0",
29
+ "@aws-sdk/invalid-dependency": "3.40.0",
30
+ "@aws-sdk/middleware-content-length": "3.40.0",
31
+ "@aws-sdk/middleware-host-header": "3.40.0",
32
+ "@aws-sdk/middleware-logger": "3.40.0",
33
+ "@aws-sdk/middleware-retry": "3.40.0",
34
+ "@aws-sdk/middleware-serde": "3.40.0",
35
+ "@aws-sdk/middleware-signing": "3.40.0",
36
+ "@aws-sdk/middleware-stack": "3.40.0",
37
+ "@aws-sdk/middleware-user-agent": "3.40.0",
38
+ "@aws-sdk/node-config-provider": "3.40.0",
39
+ "@aws-sdk/node-http-handler": "3.40.0",
40
+ "@aws-sdk/protocol-http": "3.40.0",
41
+ "@aws-sdk/smithy-client": "3.40.0",
42
+ "@aws-sdk/types": "3.40.0",
43
+ "@aws-sdk/url-parser": "3.40.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.40.0",
49
+ "@aws-sdk/util-user-agent-node": "3.40.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
52
52
  "tslib": "^2.3.0",
53
53
  "uuid": "^8.3.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/client-documentation-generator": "3.36.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.38.0",
57
57
  "@types/node": "^12.7.5",
58
58
  "@types/uuid": "^8.3.0",
59
59
  "downlevel-dts": "0.7.0",