@aws-sdk/client-translate 3.46.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/endpoints.js +0 -16
- package/dist-cjs/models/models_0.js +1 -80
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -16
- package/dist-es/models/models_0.js +0 -52
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/TranslateClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -78
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -52
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "translate.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "translate-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "translate.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "translate-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-west-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "translate.us-gov-west-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-west-2": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "translate.us-west-2.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "translate-fips.us-west-2.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.UnsupportedLanguagePairException = exports.StartTextTranslationJobResponse = exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = void 0;
|
|
3
|
+
exports.UpdateParallelDataResponse = exports.UpdateParallelDataRequest = exports.TranslateTextResponse = exports.TranslateTextRequest = exports.StopTextTranslationJobResponse = exports.StopTextTranslationJobRequest = exports.StartTextTranslationJobResponse = exports.StartTextTranslationJobRequest = exports.ListTextTranslationJobsResponse = exports.ListTextTranslationJobsRequest = exports.TextTranslationJobFilter = exports.ListTerminologiesResponse = exports.ListTerminologiesRequest = exports.ListParallelDataResponse = exports.ListParallelDataRequest = exports.ImportTerminologyResponse = exports.ImportTerminologyRequest = exports.TerminologyData = exports.MergeStrategy = exports.GetTerminologyResponse = exports.TerminologyProperties = exports.Directionality = exports.TerminologyDataLocation = exports.GetTerminologyRequest = exports.TerminologyDataFormat = exports.GetParallelDataResponse = exports.ParallelDataProperties = exports.ParallelDataDataLocation = exports.GetParallelDataRequest = exports.DescribeTextTranslationJobResponse = exports.TextTranslationJobProperties = exports.TranslationSettings = exports.Profanity = exports.OutputDataConfig = exports.JobStatus = exports.JobDetails = exports.InputDataConfig = exports.DescribeTextTranslationJobRequest = exports.DeleteTerminologyRequest = exports.DeleteParallelDataResponse = exports.DeleteParallelDataRequest = exports.CreateParallelDataResponse = exports.ParallelDataStatus = exports.CreateParallelDataRequest = exports.ParallelDataConfig = exports.ParallelDataFormat = exports.EncryptionKey = exports.EncryptionKeyType = exports.AppliedTerminology = exports.Term = void 0;
|
|
5
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
5
|
var Term;
|
|
7
6
|
(function (Term) {
|
|
@@ -15,12 +14,6 @@ var AppliedTerminology;
|
|
|
15
14
|
...obj,
|
|
16
15
|
});
|
|
17
16
|
})(AppliedTerminology = exports.AppliedTerminology || (exports.AppliedTerminology = {}));
|
|
18
|
-
var ConflictException;
|
|
19
|
-
(function (ConflictException) {
|
|
20
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
21
|
-
...obj,
|
|
22
|
-
});
|
|
23
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
24
17
|
var EncryptionKeyType;
|
|
25
18
|
(function (EncryptionKeyType) {
|
|
26
19
|
EncryptionKeyType["KMS"] = "KMS";
|
|
@@ -63,42 +56,6 @@ var CreateParallelDataResponse;
|
|
|
63
56
|
...obj,
|
|
64
57
|
});
|
|
65
58
|
})(CreateParallelDataResponse = exports.CreateParallelDataResponse || (exports.CreateParallelDataResponse = {}));
|
|
66
|
-
var InternalServerException;
|
|
67
|
-
(function (InternalServerException) {
|
|
68
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
69
|
-
...obj,
|
|
70
|
-
});
|
|
71
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
72
|
-
var InvalidParameterValueException;
|
|
73
|
-
(function (InvalidParameterValueException) {
|
|
74
|
-
InvalidParameterValueException.filterSensitiveLog = (obj) => ({
|
|
75
|
-
...obj,
|
|
76
|
-
});
|
|
77
|
-
})(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
|
|
78
|
-
var InvalidRequestException;
|
|
79
|
-
(function (InvalidRequestException) {
|
|
80
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
81
|
-
...obj,
|
|
82
|
-
});
|
|
83
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
84
|
-
var LimitExceededException;
|
|
85
|
-
(function (LimitExceededException) {
|
|
86
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
87
|
-
...obj,
|
|
88
|
-
});
|
|
89
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
90
|
-
var TooManyRequestsException;
|
|
91
|
-
(function (TooManyRequestsException) {
|
|
92
|
-
TooManyRequestsException.filterSensitiveLog = (obj) => ({
|
|
93
|
-
...obj,
|
|
94
|
-
});
|
|
95
|
-
})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
|
|
96
|
-
var ConcurrentModificationException;
|
|
97
|
-
(function (ConcurrentModificationException) {
|
|
98
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
99
|
-
...obj,
|
|
100
|
-
});
|
|
101
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
102
59
|
var DeleteParallelDataRequest;
|
|
103
60
|
(function (DeleteParallelDataRequest) {
|
|
104
61
|
DeleteParallelDataRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -111,12 +68,6 @@ var DeleteParallelDataResponse;
|
|
|
111
68
|
...obj,
|
|
112
69
|
});
|
|
113
70
|
})(DeleteParallelDataResponse = exports.DeleteParallelDataResponse || (exports.DeleteParallelDataResponse = {}));
|
|
114
|
-
var ResourceNotFoundException;
|
|
115
|
-
(function (ResourceNotFoundException) {
|
|
116
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
120
71
|
var DeleteTerminologyRequest;
|
|
121
72
|
(function (DeleteTerminologyRequest) {
|
|
122
73
|
DeleteTerminologyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -286,12 +237,6 @@ var ListTerminologiesResponse;
|
|
|
286
237
|
...obj,
|
|
287
238
|
});
|
|
288
239
|
})(ListTerminologiesResponse = exports.ListTerminologiesResponse || (exports.ListTerminologiesResponse = {}));
|
|
289
|
-
var InvalidFilterException;
|
|
290
|
-
(function (InvalidFilterException) {
|
|
291
|
-
InvalidFilterException.filterSensitiveLog = (obj) => ({
|
|
292
|
-
...obj,
|
|
293
|
-
});
|
|
294
|
-
})(InvalidFilterException = exports.InvalidFilterException || (exports.InvalidFilterException = {}));
|
|
295
240
|
var TextTranslationJobFilter;
|
|
296
241
|
(function (TextTranslationJobFilter) {
|
|
297
242
|
TextTranslationJobFilter.filterSensitiveLog = (obj) => ({
|
|
@@ -322,12 +267,6 @@ var StartTextTranslationJobResponse;
|
|
|
322
267
|
...obj,
|
|
323
268
|
});
|
|
324
269
|
})(StartTextTranslationJobResponse = exports.StartTextTranslationJobResponse || (exports.StartTextTranslationJobResponse = {}));
|
|
325
|
-
var UnsupportedLanguagePairException;
|
|
326
|
-
(function (UnsupportedLanguagePairException) {
|
|
327
|
-
UnsupportedLanguagePairException.filterSensitiveLog = (obj) => ({
|
|
328
|
-
...obj,
|
|
329
|
-
});
|
|
330
|
-
})(UnsupportedLanguagePairException = exports.UnsupportedLanguagePairException || (exports.UnsupportedLanguagePairException = {}));
|
|
331
270
|
var StopTextTranslationJobRequest;
|
|
332
271
|
(function (StopTextTranslationJobRequest) {
|
|
333
272
|
StopTextTranslationJobRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -340,24 +279,6 @@ var StopTextTranslationJobResponse;
|
|
|
340
279
|
...obj,
|
|
341
280
|
});
|
|
342
281
|
})(StopTextTranslationJobResponse = exports.StopTextTranslationJobResponse || (exports.StopTextTranslationJobResponse = {}));
|
|
343
|
-
var DetectedLanguageLowConfidenceException;
|
|
344
|
-
(function (DetectedLanguageLowConfidenceException) {
|
|
345
|
-
DetectedLanguageLowConfidenceException.filterSensitiveLog = (obj) => ({
|
|
346
|
-
...obj,
|
|
347
|
-
});
|
|
348
|
-
})(DetectedLanguageLowConfidenceException = exports.DetectedLanguageLowConfidenceException || (exports.DetectedLanguageLowConfidenceException = {}));
|
|
349
|
-
var ServiceUnavailableException;
|
|
350
|
-
(function (ServiceUnavailableException) {
|
|
351
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
352
|
-
...obj,
|
|
353
|
-
});
|
|
354
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
355
|
-
var TextSizeLimitExceededException;
|
|
356
|
-
(function (TextSizeLimitExceededException) {
|
|
357
|
-
TextSizeLimitExceededException.filterSensitiveLog = (obj) => ({
|
|
358
|
-
...obj,
|
|
359
|
-
});
|
|
360
|
-
})(TextSizeLimitExceededException = exports.TextSizeLimitExceededException || (exports.TextSizeLimitExceededException = {}));
|
|
361
282
|
var TranslateTextRequest;
|
|
362
283
|
(function (TranslateTextRequest) {
|
|
363
284
|
TranslateTextRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "translate.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "translate-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "translate.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "translate-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-west-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "translate.us-gov-west-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-west-2": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "translate.us-west-2.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "translate-fips.us-west-2.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -8,10 +8,6 @@ export var AppliedTerminology;
|
|
|
8
8
|
(function (AppliedTerminology) {
|
|
9
9
|
AppliedTerminology.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
10
|
})(AppliedTerminology || (AppliedTerminology = {}));
|
|
11
|
-
export var ConflictException;
|
|
12
|
-
(function (ConflictException) {
|
|
13
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
14
|
-
})(ConflictException || (ConflictException = {}));
|
|
15
11
|
export var EncryptionKeyType;
|
|
16
12
|
(function (EncryptionKeyType) {
|
|
17
13
|
EncryptionKeyType["KMS"] = "KMS";
|
|
@@ -46,30 +42,6 @@ export var CreateParallelDataResponse;
|
|
|
46
42
|
(function (CreateParallelDataResponse) {
|
|
47
43
|
CreateParallelDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
48
44
|
})(CreateParallelDataResponse || (CreateParallelDataResponse = {}));
|
|
49
|
-
export var InternalServerException;
|
|
50
|
-
(function (InternalServerException) {
|
|
51
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
52
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
53
|
-
export var InvalidParameterValueException;
|
|
54
|
-
(function (InvalidParameterValueException) {
|
|
55
|
-
InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
56
|
-
})(InvalidParameterValueException || (InvalidParameterValueException = {}));
|
|
57
|
-
export var InvalidRequestException;
|
|
58
|
-
(function (InvalidRequestException) {
|
|
59
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
60
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
61
|
-
export var LimitExceededException;
|
|
62
|
-
(function (LimitExceededException) {
|
|
63
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
65
|
-
export var TooManyRequestsException;
|
|
66
|
-
(function (TooManyRequestsException) {
|
|
67
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
69
|
-
export var ConcurrentModificationException;
|
|
70
|
-
(function (ConcurrentModificationException) {
|
|
71
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
72
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
73
45
|
export var DeleteParallelDataRequest;
|
|
74
46
|
(function (DeleteParallelDataRequest) {
|
|
75
47
|
DeleteParallelDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -78,10 +50,6 @@ export var DeleteParallelDataResponse;
|
|
|
78
50
|
(function (DeleteParallelDataResponse) {
|
|
79
51
|
DeleteParallelDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
52
|
})(DeleteParallelDataResponse || (DeleteParallelDataResponse = {}));
|
|
81
|
-
export var ResourceNotFoundException;
|
|
82
|
-
(function (ResourceNotFoundException) {
|
|
83
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
84
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
85
53
|
export var DeleteTerminologyRequest;
|
|
86
54
|
(function (DeleteTerminologyRequest) {
|
|
87
55
|
DeleteTerminologyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -203,10 +171,6 @@ export var ListTerminologiesResponse;
|
|
|
203
171
|
(function (ListTerminologiesResponse) {
|
|
204
172
|
ListTerminologiesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
205
173
|
})(ListTerminologiesResponse || (ListTerminologiesResponse = {}));
|
|
206
|
-
export var InvalidFilterException;
|
|
207
|
-
(function (InvalidFilterException) {
|
|
208
|
-
InvalidFilterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
209
|
-
})(InvalidFilterException || (InvalidFilterException = {}));
|
|
210
174
|
export var TextTranslationJobFilter;
|
|
211
175
|
(function (TextTranslationJobFilter) {
|
|
212
176
|
TextTranslationJobFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -227,10 +191,6 @@ export var StartTextTranslationJobResponse;
|
|
|
227
191
|
(function (StartTextTranslationJobResponse) {
|
|
228
192
|
StartTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
229
193
|
})(StartTextTranslationJobResponse || (StartTextTranslationJobResponse = {}));
|
|
230
|
-
export var UnsupportedLanguagePairException;
|
|
231
|
-
(function (UnsupportedLanguagePairException) {
|
|
232
|
-
UnsupportedLanguagePairException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
233
|
-
})(UnsupportedLanguagePairException || (UnsupportedLanguagePairException = {}));
|
|
234
194
|
export var StopTextTranslationJobRequest;
|
|
235
195
|
(function (StopTextTranslationJobRequest) {
|
|
236
196
|
StopTextTranslationJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -239,18 +199,6 @@ export var StopTextTranslationJobResponse;
|
|
|
239
199
|
(function (StopTextTranslationJobResponse) {
|
|
240
200
|
StopTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
241
201
|
})(StopTextTranslationJobResponse || (StopTextTranslationJobResponse = {}));
|
|
242
|
-
export var DetectedLanguageLowConfidenceException;
|
|
243
|
-
(function (DetectedLanguageLowConfidenceException) {
|
|
244
|
-
DetectedLanguageLowConfidenceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
-
})(DetectedLanguageLowConfidenceException || (DetectedLanguageLowConfidenceException = {}));
|
|
246
|
-
export var ServiceUnavailableException;
|
|
247
|
-
(function (ServiceUnavailableException) {
|
|
248
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
249
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
250
|
-
export var TextSizeLimitExceededException;
|
|
251
|
-
(function (TextSizeLimitExceededException) {
|
|
252
|
-
TextSizeLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
253
|
-
})(TextSizeLimitExceededException || (TextSizeLimitExceededException = {}));
|
|
254
202
|
export var TranslateTextRequest;
|
|
255
203
|
(function (TranslateTextRequest) {
|
|
256
204
|
TranslateTextRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
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
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), 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 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
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
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
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
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), 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 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateParallelDataCommandInput, CreateParallelDataCommandOutput } from "./commands/CreateParallelDataCommand";
|
|
10
10
|
import { DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput } from "./commands/DeleteParallelDataCommand";
|
|
@@ -122,6 +122,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
122
122
|
* @internal
|
|
123
123
|
*/
|
|
124
124
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
125
|
+
/**
|
|
126
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
127
|
+
*/
|
|
128
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
125
129
|
}
|
|
126
130
|
declare type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
127
131
|
/**
|
|
@@ -51,12 +51,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
51
51
|
$fault: "client";
|
|
52
52
|
Message?: string;
|
|
53
53
|
}
|
|
54
|
-
export declare namespace ConflictException {
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
59
|
-
}
|
|
60
54
|
export declare enum EncryptionKeyType {
|
|
61
55
|
KMS = "KMS"
|
|
62
56
|
}
|
|
@@ -166,12 +160,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
166
160
|
$fault: "server";
|
|
167
161
|
Message?: string;
|
|
168
162
|
}
|
|
169
|
-
export declare namespace InternalServerException {
|
|
170
|
-
/**
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
174
|
-
}
|
|
175
163
|
/**
|
|
176
164
|
* <p>The value of the parameter is invalid. Review the value of the parameter you are using to
|
|
177
165
|
* correct it, and then retry your operation.</p>
|
|
@@ -181,12 +169,6 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
|
|
|
181
169
|
$fault: "client";
|
|
182
170
|
Message?: string;
|
|
183
171
|
}
|
|
184
|
-
export declare namespace InvalidParameterValueException {
|
|
185
|
-
/**
|
|
186
|
-
* @internal
|
|
187
|
-
*/
|
|
188
|
-
const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
|
|
189
|
-
}
|
|
190
172
|
/**
|
|
191
173
|
* <p> The request that you made is invalid. Check your request to determine why it's invalid
|
|
192
174
|
* and then retry the request. </p>
|
|
@@ -196,12 +178,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
|
|
|
196
178
|
$fault: "client";
|
|
197
179
|
Message?: string;
|
|
198
180
|
}
|
|
199
|
-
export declare namespace InvalidRequestException {
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
204
|
-
}
|
|
205
181
|
/**
|
|
206
182
|
* <p>The specified limit has been exceeded. Review your request and retry it with a quantity
|
|
207
183
|
* below the stated limit.</p>
|
|
@@ -211,12 +187,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
211
187
|
$fault: "client";
|
|
212
188
|
Message?: string;
|
|
213
189
|
}
|
|
214
|
-
export declare namespace LimitExceededException {
|
|
215
|
-
/**
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
219
|
-
}
|
|
220
190
|
/**
|
|
221
191
|
* <p> You have made too many requests within a short period of time. Wait for a short time and
|
|
222
192
|
* then try your request again.</p>
|
|
@@ -226,12 +196,6 @@ export interface TooManyRequestsException extends __SmithyException, $MetadataBe
|
|
|
226
196
|
$fault: "client";
|
|
227
197
|
Message?: string;
|
|
228
198
|
}
|
|
229
|
-
export declare namespace TooManyRequestsException {
|
|
230
|
-
/**
|
|
231
|
-
* @internal
|
|
232
|
-
*/
|
|
233
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
234
|
-
}
|
|
235
199
|
/**
|
|
236
200
|
* <p>Another modification is being made. That modification must complete before you can make
|
|
237
201
|
* your change.</p>
|
|
@@ -241,12 +205,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
241
205
|
$fault: "client";
|
|
242
206
|
Message?: string;
|
|
243
207
|
}
|
|
244
|
-
export declare namespace ConcurrentModificationException {
|
|
245
|
-
/**
|
|
246
|
-
* @internal
|
|
247
|
-
*/
|
|
248
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
249
|
-
}
|
|
250
208
|
export interface DeleteParallelDataRequest {
|
|
251
209
|
/**
|
|
252
210
|
* <p>The name of the parallel data resource that is being deleted.</p>
|
|
@@ -285,12 +243,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
285
243
|
$fault: "client";
|
|
286
244
|
Message?: string;
|
|
287
245
|
}
|
|
288
|
-
export declare namespace ResourceNotFoundException {
|
|
289
|
-
/**
|
|
290
|
-
* @internal
|
|
291
|
-
*/
|
|
292
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
293
|
-
}
|
|
294
246
|
export interface DeleteTerminologyRequest {
|
|
295
247
|
/**
|
|
296
248
|
* <p>The name of the custom terminology being deleted. </p>
|
|
@@ -1065,12 +1017,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
|
|
|
1065
1017
|
$fault: "client";
|
|
1066
1018
|
Message?: string;
|
|
1067
1019
|
}
|
|
1068
|
-
export declare namespace InvalidFilterException {
|
|
1069
|
-
/**
|
|
1070
|
-
* @internal
|
|
1071
|
-
*/
|
|
1072
|
-
const filterSensitiveLog: (obj: InvalidFilterException) => any;
|
|
1073
|
-
}
|
|
1074
1020
|
/**
|
|
1075
1021
|
* <p>Provides information for filtering a list of translation jobs. For more information, see
|
|
1076
1022
|
* <a>ListTextTranslationJobs</a>.</p>
|
|
@@ -1277,12 +1223,6 @@ export interface UnsupportedLanguagePairException extends __SmithyException, $Me
|
|
|
1277
1223
|
*/
|
|
1278
1224
|
TargetLanguageCode?: string;
|
|
1279
1225
|
}
|
|
1280
|
-
export declare namespace UnsupportedLanguagePairException {
|
|
1281
|
-
/**
|
|
1282
|
-
* @internal
|
|
1283
|
-
*/
|
|
1284
|
-
const filterSensitiveLog: (obj: UnsupportedLanguagePairException) => any;
|
|
1285
|
-
}
|
|
1286
1226
|
export interface StopTextTranslationJobRequest {
|
|
1287
1227
|
/**
|
|
1288
1228
|
* <p>The job ID of the job to be stopped.</p>
|
|
@@ -1327,12 +1267,6 @@ export interface DetectedLanguageLowConfidenceException extends __SmithyExceptio
|
|
|
1327
1267
|
*/
|
|
1328
1268
|
DetectedLanguageCode?: string;
|
|
1329
1269
|
}
|
|
1330
|
-
export declare namespace DetectedLanguageLowConfidenceException {
|
|
1331
|
-
/**
|
|
1332
|
-
* @internal
|
|
1333
|
-
*/
|
|
1334
|
-
const filterSensitiveLog: (obj: DetectedLanguageLowConfidenceException) => any;
|
|
1335
|
-
}
|
|
1336
1270
|
/**
|
|
1337
1271
|
* <p>The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your
|
|
1338
1272
|
* request.</p>
|
|
@@ -1342,12 +1276,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
|
|
|
1342
1276
|
$fault: "server";
|
|
1343
1277
|
Message?: string;
|
|
1344
1278
|
}
|
|
1345
|
-
export declare namespace ServiceUnavailableException {
|
|
1346
|
-
/**
|
|
1347
|
-
* @internal
|
|
1348
|
-
*/
|
|
1349
|
-
const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
|
|
1350
|
-
}
|
|
1351
1279
|
/**
|
|
1352
1280
|
* <p> The size of the text you submitted exceeds the size limit. Reduce the size of the text or
|
|
1353
1281
|
* use a smaller document and then retry your request. </p>
|
|
@@ -1357,12 +1285,6 @@ export interface TextSizeLimitExceededException extends __SmithyException, $Meta
|
|
|
1357
1285
|
$fault: "client";
|
|
1358
1286
|
Message?: string;
|
|
1359
1287
|
}
|
|
1360
|
-
export declare namespace TextSizeLimitExceededException {
|
|
1361
|
-
/**
|
|
1362
|
-
* @internal
|
|
1363
|
-
*/
|
|
1364
|
-
const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
|
|
1365
|
-
}
|
|
1366
1288
|
export interface TranslateTextRequest {
|
|
1367
1289
|
/**
|
|
1368
1290
|
* <p>The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { TranslateClientConfig } from "./TranslateClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { TranslateClientConfig } from "./TranslateClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateParallelDataCommandInput, CreateParallelDataCommandOutput } from "./commands/CreateParallelDataCommand";
|
|
10
10
|
import { DeleteParallelDataCommandInput, DeleteParallelDataCommandOutput } from "./commands/DeleteParallelDataCommand";
|
|
@@ -65,6 +65,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
65
65
|
regionInfoProvider?: RegionInfoProvider;
|
|
66
66
|
|
|
67
67
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
68
|
+
|
|
69
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
68
70
|
}
|
|
69
71
|
declare type TranslateClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
70
72
|
|
|
@@ -27,10 +27,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
|
27
27
|
$fault: "client";
|
|
28
28
|
Message?: string;
|
|
29
29
|
}
|
|
30
|
-
export declare namespace ConflictException {
|
|
31
|
-
|
|
32
|
-
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
33
|
-
}
|
|
34
30
|
export declare enum EncryptionKeyType {
|
|
35
31
|
KMS = "KMS"
|
|
36
32
|
}
|
|
@@ -100,60 +96,36 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
|
|
|
100
96
|
$fault: "server";
|
|
101
97
|
Message?: string;
|
|
102
98
|
}
|
|
103
|
-
export declare namespace InternalServerException {
|
|
104
|
-
|
|
105
|
-
const filterSensitiveLog: (obj: InternalServerException) => any;
|
|
106
|
-
}
|
|
107
99
|
|
|
108
100
|
export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
|
|
109
101
|
name: "InvalidParameterValueException";
|
|
110
102
|
$fault: "client";
|
|
111
103
|
Message?: string;
|
|
112
104
|
}
|
|
113
|
-
export declare namespace InvalidParameterValueException {
|
|
114
|
-
|
|
115
|
-
const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
|
|
116
|
-
}
|
|
117
105
|
|
|
118
106
|
export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
|
|
119
107
|
name: "InvalidRequestException";
|
|
120
108
|
$fault: "client";
|
|
121
109
|
Message?: string;
|
|
122
110
|
}
|
|
123
|
-
export declare namespace InvalidRequestException {
|
|
124
|
-
|
|
125
|
-
const filterSensitiveLog: (obj: InvalidRequestException) => any;
|
|
126
|
-
}
|
|
127
111
|
|
|
128
112
|
export interface LimitExceededException extends __SmithyException, $MetadataBearer {
|
|
129
113
|
name: "LimitExceededException";
|
|
130
114
|
$fault: "client";
|
|
131
115
|
Message?: string;
|
|
132
116
|
}
|
|
133
|
-
export declare namespace LimitExceededException {
|
|
134
|
-
|
|
135
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
136
|
-
}
|
|
137
117
|
|
|
138
118
|
export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
|
|
139
119
|
name: "TooManyRequestsException";
|
|
140
120
|
$fault: "client";
|
|
141
121
|
Message?: string;
|
|
142
122
|
}
|
|
143
|
-
export declare namespace TooManyRequestsException {
|
|
144
|
-
|
|
145
|
-
const filterSensitiveLog: (obj: TooManyRequestsException) => any;
|
|
146
|
-
}
|
|
147
123
|
|
|
148
124
|
export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
|
|
149
125
|
name: "ConcurrentModificationException";
|
|
150
126
|
$fault: "client";
|
|
151
127
|
Message?: string;
|
|
152
128
|
}
|
|
153
|
-
export declare namespace ConcurrentModificationException {
|
|
154
|
-
|
|
155
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
156
|
-
}
|
|
157
129
|
export interface DeleteParallelDataRequest {
|
|
158
130
|
|
|
159
131
|
Name: string | undefined;
|
|
@@ -178,10 +150,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
178
150
|
$fault: "client";
|
|
179
151
|
Message?: string;
|
|
180
152
|
}
|
|
181
|
-
export declare namespace ResourceNotFoundException {
|
|
182
|
-
|
|
183
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
184
|
-
}
|
|
185
153
|
export interface DeleteTerminologyRequest {
|
|
186
154
|
|
|
187
155
|
Name: string | undefined;
|
|
@@ -538,10 +506,6 @@ export interface InvalidFilterException extends __SmithyException, $MetadataBear
|
|
|
538
506
|
$fault: "client";
|
|
539
507
|
Message?: string;
|
|
540
508
|
}
|
|
541
|
-
export declare namespace InvalidFilterException {
|
|
542
|
-
|
|
543
|
-
const filterSensitiveLog: (obj: InvalidFilterException) => any;
|
|
544
|
-
}
|
|
545
509
|
|
|
546
510
|
export interface TextTranslationJobFilter {
|
|
547
511
|
|
|
@@ -625,10 +589,6 @@ export interface UnsupportedLanguagePairException extends __SmithyException, $Me
|
|
|
625
589
|
|
|
626
590
|
TargetLanguageCode?: string;
|
|
627
591
|
}
|
|
628
|
-
export declare namespace UnsupportedLanguagePairException {
|
|
629
|
-
|
|
630
|
-
const filterSensitiveLog: (obj: UnsupportedLanguagePairException) => any;
|
|
631
|
-
}
|
|
632
592
|
export interface StopTextTranslationJobRequest {
|
|
633
593
|
|
|
634
594
|
JobId: string | undefined;
|
|
@@ -655,30 +615,18 @@ export interface DetectedLanguageLowConfidenceException extends __SmithyExceptio
|
|
|
655
615
|
|
|
656
616
|
DetectedLanguageCode?: string;
|
|
657
617
|
}
|
|
658
|
-
export declare namespace DetectedLanguageLowConfidenceException {
|
|
659
|
-
|
|
660
|
-
const filterSensitiveLog: (obj: DetectedLanguageLowConfidenceException) => any;
|
|
661
|
-
}
|
|
662
618
|
|
|
663
619
|
export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
|
|
664
620
|
name: "ServiceUnavailableException";
|
|
665
621
|
$fault: "server";
|
|
666
622
|
Message?: string;
|
|
667
623
|
}
|
|
668
|
-
export declare namespace ServiceUnavailableException {
|
|
669
|
-
|
|
670
|
-
const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
|
|
671
|
-
}
|
|
672
624
|
|
|
673
625
|
export interface TextSizeLimitExceededException extends __SmithyException, $MetadataBearer {
|
|
674
626
|
name: "TextSizeLimitExceededException";
|
|
675
627
|
$fault: "client";
|
|
676
628
|
Message?: string;
|
|
677
629
|
}
|
|
678
|
-
export declare namespace TextSizeLimitExceededException {
|
|
679
|
-
|
|
680
|
-
const filterSensitiveLog: (obj: TextSizeLimitExceededException) => any;
|
|
681
|
-
}
|
|
682
630
|
export interface TranslateTextRequest {
|
|
683
631
|
|
|
684
632
|
Text: string | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { TranslateClientConfig } from "./TranslateClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { TranslateClientConfig } from "./TranslateClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: TranslateClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
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.
|
|
4
|
+
"version": "3.47.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
8
|
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
13
|
-
"clean:dist": "rimraf ./dist-*",
|
|
14
|
-
"clean:docs": "rimraf ./docs"
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
15
13
|
},
|
|
16
14
|
"main": "./dist-cjs/index.js",
|
|
17
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,39 +18,41 @@
|
|
|
20
18
|
"dependencies": {
|
|
21
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.47.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.47.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.0",
|
|
39
|
+
"@aws-sdk/types": "3.47.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.0",
|
|
51
51
|
"tslib": "^2.3.0",
|
|
52
52
|
"uuid": "^8.3.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.0",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"@types/uuid": "^8.3.0"
|
|
58
58
|
},
|