@aws-sdk/client-translate 3.490.0 → 3.495.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/dist-cjs/Translate.js +1 -49
- package/dist-cjs/TranslateClient.js +1 -43
- package/dist-cjs/commands/CreateParallelDataCommand.js +1 -28
- package/dist-cjs/commands/DeleteParallelDataCommand.js +1 -28
- package/dist-cjs/commands/DeleteTerminologyCommand.js +1 -28
- package/dist-cjs/commands/DescribeTextTranslationJobCommand.js +1 -28
- package/dist-cjs/commands/GetParallelDataCommand.js +1 -28
- package/dist-cjs/commands/GetTerminologyCommand.js +1 -28
- package/dist-cjs/commands/ImportTerminologyCommand.js +1 -29
- package/dist-cjs/commands/ListLanguagesCommand.js +1 -28
- package/dist-cjs/commands/ListParallelDataCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTerminologiesCommand.js +1 -28
- package/dist-cjs/commands/ListTextTranslationJobsCommand.js +1 -28
- package/dist-cjs/commands/StartTextTranslationJobCommand.js +1 -28
- package/dist-cjs/commands/StopTextTranslationJobCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TranslateDocumentCommand.js +1 -29
- package/dist-cjs/commands/TranslateTextCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateParallelDataCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -22
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2351 -11
- package/dist-cjs/models/TranslateServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -307
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListLanguagesPaginator.js +1 -7
- package/dist-cjs/pagination/ListParallelDataPaginator.js +1 -7
- package/dist-cjs/pagination/ListTerminologiesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTextTranslationJobsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1415
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2352 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
Brevity: () => Brevity,
|
|
25
|
+
ConcurrentModificationException: () => ConcurrentModificationException,
|
|
26
|
+
ConflictException: () => ConflictException,
|
|
27
|
+
CreateParallelDataCommand: () => CreateParallelDataCommand,
|
|
28
|
+
DeleteParallelDataCommand: () => DeleteParallelDataCommand,
|
|
29
|
+
DeleteTerminologyCommand: () => DeleteTerminologyCommand,
|
|
30
|
+
DescribeTextTranslationJobCommand: () => DescribeTextTranslationJobCommand,
|
|
31
|
+
DetectedLanguageLowConfidenceException: () => DetectedLanguageLowConfidenceException,
|
|
32
|
+
Directionality: () => Directionality,
|
|
33
|
+
DisplayLanguageCode: () => DisplayLanguageCode,
|
|
34
|
+
DocumentFilterSensitiveLog: () => DocumentFilterSensitiveLog,
|
|
35
|
+
EncryptionKeyType: () => EncryptionKeyType,
|
|
36
|
+
Formality: () => Formality,
|
|
37
|
+
GetParallelDataCommand: () => GetParallelDataCommand,
|
|
38
|
+
GetTerminologyCommand: () => GetTerminologyCommand,
|
|
39
|
+
ImportTerminologyCommand: () => ImportTerminologyCommand,
|
|
40
|
+
ImportTerminologyRequestFilterSensitiveLog: () => ImportTerminologyRequestFilterSensitiveLog,
|
|
41
|
+
InternalServerException: () => InternalServerException,
|
|
42
|
+
InvalidFilterException: () => InvalidFilterException,
|
|
43
|
+
InvalidParameterValueException: () => InvalidParameterValueException,
|
|
44
|
+
InvalidRequestException: () => InvalidRequestException,
|
|
45
|
+
JobStatus: () => JobStatus,
|
|
46
|
+
LimitExceededException: () => LimitExceededException,
|
|
47
|
+
ListLanguagesCommand: () => ListLanguagesCommand,
|
|
48
|
+
ListParallelDataCommand: () => ListParallelDataCommand,
|
|
49
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
50
|
+
ListTerminologiesCommand: () => ListTerminologiesCommand,
|
|
51
|
+
ListTextTranslationJobsCommand: () => ListTextTranslationJobsCommand,
|
|
52
|
+
MergeStrategy: () => MergeStrategy,
|
|
53
|
+
ParallelDataFormat: () => ParallelDataFormat,
|
|
54
|
+
ParallelDataStatus: () => ParallelDataStatus,
|
|
55
|
+
Profanity: () => Profanity,
|
|
56
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
57
|
+
ServiceUnavailableException: () => ServiceUnavailableException,
|
|
58
|
+
StartTextTranslationJobCommand: () => StartTextTranslationJobCommand,
|
|
59
|
+
StopTextTranslationJobCommand: () => StopTextTranslationJobCommand,
|
|
60
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
61
|
+
TerminologyDataFilterSensitiveLog: () => TerminologyDataFilterSensitiveLog,
|
|
62
|
+
TerminologyDataFormat: () => TerminologyDataFormat,
|
|
63
|
+
TextSizeLimitExceededException: () => TextSizeLimitExceededException,
|
|
64
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
65
|
+
TooManyTagsException: () => TooManyTagsException,
|
|
66
|
+
Translate: () => Translate,
|
|
67
|
+
TranslateClient: () => TranslateClient,
|
|
68
|
+
TranslateDocumentCommand: () => TranslateDocumentCommand,
|
|
69
|
+
TranslateDocumentRequestFilterSensitiveLog: () => TranslateDocumentRequestFilterSensitiveLog,
|
|
70
|
+
TranslateDocumentResponseFilterSensitiveLog: () => TranslateDocumentResponseFilterSensitiveLog,
|
|
71
|
+
TranslateServiceException: () => TranslateServiceException,
|
|
72
|
+
TranslateTextCommand: () => TranslateTextCommand,
|
|
73
|
+
TranslatedDocumentFilterSensitiveLog: () => TranslatedDocumentFilterSensitiveLog,
|
|
74
|
+
UnsupportedDisplayLanguageCodeException: () => UnsupportedDisplayLanguageCodeException,
|
|
75
|
+
UnsupportedLanguagePairException: () => UnsupportedLanguagePairException,
|
|
76
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
77
|
+
UpdateParallelDataCommand: () => UpdateParallelDataCommand,
|
|
78
|
+
__Client: () => import_smithy_client.Client,
|
|
79
|
+
paginateListLanguages: () => paginateListLanguages,
|
|
80
|
+
paginateListParallelData: () => paginateListParallelData,
|
|
81
|
+
paginateListTerminologies: () => paginateListTerminologies,
|
|
82
|
+
paginateListTextTranslationJobs: () => paginateListTextTranslationJobs
|
|
83
|
+
});
|
|
84
|
+
module.exports = __toCommonJS(src_exports);
|
|
85
|
+
|
|
86
|
+
// src/TranslateClient.ts
|
|
87
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
88
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
89
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
90
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
91
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
92
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
93
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
94
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
95
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
// src/endpoint/EndpointParameters.ts
|
|
99
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
100
|
+
return {
|
|
101
|
+
...options,
|
|
102
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
103
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
104
|
+
defaultSigningName: "translate"
|
|
105
|
+
};
|
|
106
|
+
}, "resolveClientEndpointParameters");
|
|
107
|
+
var commonParams = {
|
|
108
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
109
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
110
|
+
Region: { type: "builtInParams", name: "region" },
|
|
111
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// src/TranslateClient.ts
|
|
115
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
116
|
+
|
|
117
|
+
// src/runtimeExtensions.ts
|
|
118
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
119
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
120
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
121
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
122
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
123
|
+
const extensionConfiguration = {
|
|
124
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
125
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
126
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
127
|
+
};
|
|
128
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
129
|
+
return {
|
|
130
|
+
...runtimeConfig,
|
|
131
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
132
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
133
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
134
|
+
};
|
|
135
|
+
}, "resolveRuntimeExtensions");
|
|
136
|
+
|
|
137
|
+
// src/TranslateClient.ts
|
|
138
|
+
var _TranslateClient = class _TranslateClient extends import_smithy_client.Client {
|
|
139
|
+
constructor(...[configuration]) {
|
|
140
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
141
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
142
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
143
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
144
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
145
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
146
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
147
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
148
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
149
|
+
super(_config_8);
|
|
150
|
+
this.config = _config_8;
|
|
151
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
152
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
153
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
154
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
155
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
156
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
157
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
161
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
162
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
163
|
+
*/
|
|
164
|
+
destroy() {
|
|
165
|
+
super.destroy();
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
__name(_TranslateClient, "TranslateClient");
|
|
169
|
+
var TranslateClient = _TranslateClient;
|
|
170
|
+
|
|
171
|
+
// src/Translate.ts
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
// src/commands/CreateParallelDataCommand.ts
|
|
175
|
+
|
|
176
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
177
|
+
|
|
178
|
+
var import_types = require("@smithy/types");
|
|
179
|
+
|
|
180
|
+
// src/protocols/Aws_json1_1.ts
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
var import_uuid = require("uuid");
|
|
184
|
+
|
|
185
|
+
// src/models/models_0.ts
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
// src/models/TranslateServiceException.ts
|
|
189
|
+
|
|
190
|
+
var _TranslateServiceException = class _TranslateServiceException extends import_smithy_client.ServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(options) {
|
|
195
|
+
super(options);
|
|
196
|
+
Object.setPrototypeOf(this, _TranslateServiceException.prototype);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
__name(_TranslateServiceException, "TranslateServiceException");
|
|
200
|
+
var TranslateServiceException = _TranslateServiceException;
|
|
201
|
+
|
|
202
|
+
// src/models/models_0.ts
|
|
203
|
+
var _ConcurrentModificationException = class _ConcurrentModificationException extends TranslateServiceException {
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
constructor(opts) {
|
|
208
|
+
super({
|
|
209
|
+
name: "ConcurrentModificationException",
|
|
210
|
+
$fault: "client",
|
|
211
|
+
...opts
|
|
212
|
+
});
|
|
213
|
+
this.name = "ConcurrentModificationException";
|
|
214
|
+
this.$fault = "client";
|
|
215
|
+
Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
|
|
216
|
+
this.Message = opts.Message;
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
__name(_ConcurrentModificationException, "ConcurrentModificationException");
|
|
220
|
+
var ConcurrentModificationException = _ConcurrentModificationException;
|
|
221
|
+
var _ConflictException = class _ConflictException extends TranslateServiceException {
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "ConflictException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts
|
|
230
|
+
});
|
|
231
|
+
this.name = "ConflictException";
|
|
232
|
+
this.$fault = "client";
|
|
233
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
234
|
+
this.Message = opts.Message;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
__name(_ConflictException, "ConflictException");
|
|
238
|
+
var ConflictException = _ConflictException;
|
|
239
|
+
var EncryptionKeyType = {
|
|
240
|
+
KMS: "KMS"
|
|
241
|
+
};
|
|
242
|
+
var ParallelDataFormat = {
|
|
243
|
+
CSV: "CSV",
|
|
244
|
+
TMX: "TMX",
|
|
245
|
+
TSV: "TSV"
|
|
246
|
+
};
|
|
247
|
+
var ParallelDataStatus = {
|
|
248
|
+
ACTIVE: "ACTIVE",
|
|
249
|
+
CREATING: "CREATING",
|
|
250
|
+
DELETING: "DELETING",
|
|
251
|
+
FAILED: "FAILED",
|
|
252
|
+
UPDATING: "UPDATING"
|
|
253
|
+
};
|
|
254
|
+
var _InternalServerException = class _InternalServerException extends TranslateServiceException {
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
constructor(opts) {
|
|
259
|
+
super({
|
|
260
|
+
name: "InternalServerException",
|
|
261
|
+
$fault: "server",
|
|
262
|
+
...opts
|
|
263
|
+
});
|
|
264
|
+
this.name = "InternalServerException";
|
|
265
|
+
this.$fault = "server";
|
|
266
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
267
|
+
this.Message = opts.Message;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
__name(_InternalServerException, "InternalServerException");
|
|
271
|
+
var InternalServerException = _InternalServerException;
|
|
272
|
+
var _InvalidParameterValueException = class _InvalidParameterValueException extends TranslateServiceException {
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
*/
|
|
276
|
+
constructor(opts) {
|
|
277
|
+
super({
|
|
278
|
+
name: "InvalidParameterValueException",
|
|
279
|
+
$fault: "client",
|
|
280
|
+
...opts
|
|
281
|
+
});
|
|
282
|
+
this.name = "InvalidParameterValueException";
|
|
283
|
+
this.$fault = "client";
|
|
284
|
+
Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
|
|
285
|
+
this.Message = opts.Message;
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
__name(_InvalidParameterValueException, "InvalidParameterValueException");
|
|
289
|
+
var InvalidParameterValueException = _InvalidParameterValueException;
|
|
290
|
+
var _InvalidRequestException = class _InvalidRequestException extends TranslateServiceException {
|
|
291
|
+
/**
|
|
292
|
+
* @internal
|
|
293
|
+
*/
|
|
294
|
+
constructor(opts) {
|
|
295
|
+
super({
|
|
296
|
+
name: "InvalidRequestException",
|
|
297
|
+
$fault: "client",
|
|
298
|
+
...opts
|
|
299
|
+
});
|
|
300
|
+
this.name = "InvalidRequestException";
|
|
301
|
+
this.$fault = "client";
|
|
302
|
+
Object.setPrototypeOf(this, _InvalidRequestException.prototype);
|
|
303
|
+
this.Message = opts.Message;
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
__name(_InvalidRequestException, "InvalidRequestException");
|
|
307
|
+
var InvalidRequestException = _InvalidRequestException;
|
|
308
|
+
var _LimitExceededException = class _LimitExceededException extends TranslateServiceException {
|
|
309
|
+
/**
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
constructor(opts) {
|
|
313
|
+
super({
|
|
314
|
+
name: "LimitExceededException",
|
|
315
|
+
$fault: "client",
|
|
316
|
+
...opts
|
|
317
|
+
});
|
|
318
|
+
this.name = "LimitExceededException";
|
|
319
|
+
this.$fault = "client";
|
|
320
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
321
|
+
this.Message = opts.Message;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
325
|
+
var LimitExceededException = _LimitExceededException;
|
|
326
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends TranslateServiceException {
|
|
327
|
+
/**
|
|
328
|
+
* @internal
|
|
329
|
+
*/
|
|
330
|
+
constructor(opts) {
|
|
331
|
+
super({
|
|
332
|
+
name: "TooManyRequestsException",
|
|
333
|
+
$fault: "client",
|
|
334
|
+
...opts
|
|
335
|
+
});
|
|
336
|
+
this.name = "TooManyRequestsException";
|
|
337
|
+
this.$fault = "client";
|
|
338
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
339
|
+
this.Message = opts.Message;
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
343
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
344
|
+
var _TooManyTagsException = class _TooManyTagsException extends TranslateServiceException {
|
|
345
|
+
/**
|
|
346
|
+
* @internal
|
|
347
|
+
*/
|
|
348
|
+
constructor(opts) {
|
|
349
|
+
super({
|
|
350
|
+
name: "TooManyTagsException",
|
|
351
|
+
$fault: "client",
|
|
352
|
+
...opts
|
|
353
|
+
});
|
|
354
|
+
this.name = "TooManyTagsException";
|
|
355
|
+
this.$fault = "client";
|
|
356
|
+
Object.setPrototypeOf(this, _TooManyTagsException.prototype);
|
|
357
|
+
this.ResourceArn = opts.ResourceArn;
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
__name(_TooManyTagsException, "TooManyTagsException");
|
|
361
|
+
var TooManyTagsException = _TooManyTagsException;
|
|
362
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends TranslateServiceException {
|
|
363
|
+
/**
|
|
364
|
+
* @internal
|
|
365
|
+
*/
|
|
366
|
+
constructor(opts) {
|
|
367
|
+
super({
|
|
368
|
+
name: "ResourceNotFoundException",
|
|
369
|
+
$fault: "client",
|
|
370
|
+
...opts
|
|
371
|
+
});
|
|
372
|
+
this.name = "ResourceNotFoundException";
|
|
373
|
+
this.$fault = "client";
|
|
374
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
375
|
+
this.Message = opts.Message;
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
379
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
380
|
+
var JobStatus = {
|
|
381
|
+
COMPLETED: "COMPLETED",
|
|
382
|
+
COMPLETED_WITH_ERROR: "COMPLETED_WITH_ERROR",
|
|
383
|
+
FAILED: "FAILED",
|
|
384
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
385
|
+
STOPPED: "STOPPED",
|
|
386
|
+
STOP_REQUESTED: "STOP_REQUESTED",
|
|
387
|
+
SUBMITTED: "SUBMITTED"
|
|
388
|
+
};
|
|
389
|
+
var Brevity = {
|
|
390
|
+
ON: "ON"
|
|
391
|
+
};
|
|
392
|
+
var Formality = {
|
|
393
|
+
FORMAL: "FORMAL",
|
|
394
|
+
INFORMAL: "INFORMAL"
|
|
395
|
+
};
|
|
396
|
+
var Profanity = {
|
|
397
|
+
MASK: "MASK"
|
|
398
|
+
};
|
|
399
|
+
var TerminologyDataFormat = {
|
|
400
|
+
CSV: "CSV",
|
|
401
|
+
TMX: "TMX",
|
|
402
|
+
TSV: "TSV"
|
|
403
|
+
};
|
|
404
|
+
var Directionality = {
|
|
405
|
+
MULTI: "MULTI",
|
|
406
|
+
UNI: "UNI"
|
|
407
|
+
};
|
|
408
|
+
var MergeStrategy = {
|
|
409
|
+
OVERWRITE: "OVERWRITE"
|
|
410
|
+
};
|
|
411
|
+
var DisplayLanguageCode = {
|
|
412
|
+
DE: "de",
|
|
413
|
+
EN: "en",
|
|
414
|
+
ES: "es",
|
|
415
|
+
FR: "fr",
|
|
416
|
+
IT: "it",
|
|
417
|
+
JA: "ja",
|
|
418
|
+
KO: "ko",
|
|
419
|
+
PT: "pt",
|
|
420
|
+
ZH: "zh",
|
|
421
|
+
ZH_TW: "zh-TW"
|
|
422
|
+
};
|
|
423
|
+
var _UnsupportedDisplayLanguageCodeException = class _UnsupportedDisplayLanguageCodeException extends TranslateServiceException {
|
|
424
|
+
/**
|
|
425
|
+
* @internal
|
|
426
|
+
*/
|
|
427
|
+
constructor(opts) {
|
|
428
|
+
super({
|
|
429
|
+
name: "UnsupportedDisplayLanguageCodeException",
|
|
430
|
+
$fault: "client",
|
|
431
|
+
...opts
|
|
432
|
+
});
|
|
433
|
+
this.name = "UnsupportedDisplayLanguageCodeException";
|
|
434
|
+
this.$fault = "client";
|
|
435
|
+
Object.setPrototypeOf(this, _UnsupportedDisplayLanguageCodeException.prototype);
|
|
436
|
+
this.Message = opts.Message;
|
|
437
|
+
this.DisplayLanguageCode = opts.DisplayLanguageCode;
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
__name(_UnsupportedDisplayLanguageCodeException, "UnsupportedDisplayLanguageCodeException");
|
|
441
|
+
var UnsupportedDisplayLanguageCodeException = _UnsupportedDisplayLanguageCodeException;
|
|
442
|
+
var _InvalidFilterException = class _InvalidFilterException extends TranslateServiceException {
|
|
443
|
+
/**
|
|
444
|
+
* @internal
|
|
445
|
+
*/
|
|
446
|
+
constructor(opts) {
|
|
447
|
+
super({
|
|
448
|
+
name: "InvalidFilterException",
|
|
449
|
+
$fault: "client",
|
|
450
|
+
...opts
|
|
451
|
+
});
|
|
452
|
+
this.name = "InvalidFilterException";
|
|
453
|
+
this.$fault = "client";
|
|
454
|
+
Object.setPrototypeOf(this, _InvalidFilterException.prototype);
|
|
455
|
+
this.Message = opts.Message;
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
__name(_InvalidFilterException, "InvalidFilterException");
|
|
459
|
+
var InvalidFilterException = _InvalidFilterException;
|
|
460
|
+
var _UnsupportedLanguagePairException = class _UnsupportedLanguagePairException extends TranslateServiceException {
|
|
461
|
+
/**
|
|
462
|
+
* @internal
|
|
463
|
+
*/
|
|
464
|
+
constructor(opts) {
|
|
465
|
+
super({
|
|
466
|
+
name: "UnsupportedLanguagePairException",
|
|
467
|
+
$fault: "client",
|
|
468
|
+
...opts
|
|
469
|
+
});
|
|
470
|
+
this.name = "UnsupportedLanguagePairException";
|
|
471
|
+
this.$fault = "client";
|
|
472
|
+
Object.setPrototypeOf(this, _UnsupportedLanguagePairException.prototype);
|
|
473
|
+
this.Message = opts.Message;
|
|
474
|
+
this.SourceLanguageCode = opts.SourceLanguageCode;
|
|
475
|
+
this.TargetLanguageCode = opts.TargetLanguageCode;
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
__name(_UnsupportedLanguagePairException, "UnsupportedLanguagePairException");
|
|
479
|
+
var UnsupportedLanguagePairException = _UnsupportedLanguagePairException;
|
|
480
|
+
var _ServiceUnavailableException = class _ServiceUnavailableException extends TranslateServiceException {
|
|
481
|
+
/**
|
|
482
|
+
* @internal
|
|
483
|
+
*/
|
|
484
|
+
constructor(opts) {
|
|
485
|
+
super({
|
|
486
|
+
name: "ServiceUnavailableException",
|
|
487
|
+
$fault: "server",
|
|
488
|
+
...opts
|
|
489
|
+
});
|
|
490
|
+
this.name = "ServiceUnavailableException";
|
|
491
|
+
this.$fault = "server";
|
|
492
|
+
Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
|
|
493
|
+
this.Message = opts.Message;
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
__name(_ServiceUnavailableException, "ServiceUnavailableException");
|
|
497
|
+
var ServiceUnavailableException = _ServiceUnavailableException;
|
|
498
|
+
var _DetectedLanguageLowConfidenceException = class _DetectedLanguageLowConfidenceException extends TranslateServiceException {
|
|
499
|
+
/**
|
|
500
|
+
* @internal
|
|
501
|
+
*/
|
|
502
|
+
constructor(opts) {
|
|
503
|
+
super({
|
|
504
|
+
name: "DetectedLanguageLowConfidenceException",
|
|
505
|
+
$fault: "client",
|
|
506
|
+
...opts
|
|
507
|
+
});
|
|
508
|
+
this.name = "DetectedLanguageLowConfidenceException";
|
|
509
|
+
this.$fault = "client";
|
|
510
|
+
Object.setPrototypeOf(this, _DetectedLanguageLowConfidenceException.prototype);
|
|
511
|
+
this.Message = opts.Message;
|
|
512
|
+
this.DetectedLanguageCode = opts.DetectedLanguageCode;
|
|
513
|
+
}
|
|
514
|
+
};
|
|
515
|
+
__name(_DetectedLanguageLowConfidenceException, "DetectedLanguageLowConfidenceException");
|
|
516
|
+
var DetectedLanguageLowConfidenceException = _DetectedLanguageLowConfidenceException;
|
|
517
|
+
var _TextSizeLimitExceededException = class _TextSizeLimitExceededException extends TranslateServiceException {
|
|
518
|
+
/**
|
|
519
|
+
* @internal
|
|
520
|
+
*/
|
|
521
|
+
constructor(opts) {
|
|
522
|
+
super({
|
|
523
|
+
name: "TextSizeLimitExceededException",
|
|
524
|
+
$fault: "client",
|
|
525
|
+
...opts
|
|
526
|
+
});
|
|
527
|
+
this.name = "TextSizeLimitExceededException";
|
|
528
|
+
this.$fault = "client";
|
|
529
|
+
Object.setPrototypeOf(this, _TextSizeLimitExceededException.prototype);
|
|
530
|
+
this.Message = opts.Message;
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
__name(_TextSizeLimitExceededException, "TextSizeLimitExceededException");
|
|
534
|
+
var TextSizeLimitExceededException = _TextSizeLimitExceededException;
|
|
535
|
+
var TerminologyDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
536
|
+
...obj,
|
|
537
|
+
...obj.File && { File: import_smithy_client.SENSITIVE_STRING }
|
|
538
|
+
}), "TerminologyDataFilterSensitiveLog");
|
|
539
|
+
var ImportTerminologyRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
540
|
+
...obj,
|
|
541
|
+
...obj.TerminologyData && { TerminologyData: TerminologyDataFilterSensitiveLog(obj.TerminologyData) }
|
|
542
|
+
}), "ImportTerminologyRequestFilterSensitiveLog");
|
|
543
|
+
var DocumentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
544
|
+
...obj,
|
|
545
|
+
...obj.Content && { Content: import_smithy_client.SENSITIVE_STRING }
|
|
546
|
+
}), "DocumentFilterSensitiveLog");
|
|
547
|
+
var TranslateDocumentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
548
|
+
...obj,
|
|
549
|
+
...obj.Document && { Document: DocumentFilterSensitiveLog(obj.Document) }
|
|
550
|
+
}), "TranslateDocumentRequestFilterSensitiveLog");
|
|
551
|
+
var TranslatedDocumentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
552
|
+
...obj,
|
|
553
|
+
...obj.Content && { Content: import_smithy_client.SENSITIVE_STRING }
|
|
554
|
+
}), "TranslatedDocumentFilterSensitiveLog");
|
|
555
|
+
var TranslateDocumentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
556
|
+
...obj,
|
|
557
|
+
...obj.TranslatedDocument && { TranslatedDocument: TranslatedDocumentFilterSensitiveLog(obj.TranslatedDocument) }
|
|
558
|
+
}), "TranslateDocumentResponseFilterSensitiveLog");
|
|
559
|
+
|
|
560
|
+
// src/protocols/Aws_json1_1.ts
|
|
561
|
+
var se_CreateParallelDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
562
|
+
const headers = sharedHeaders("CreateParallelData");
|
|
563
|
+
let body;
|
|
564
|
+
body = JSON.stringify(se_CreateParallelDataRequest(input, context));
|
|
565
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
566
|
+
}, "se_CreateParallelDataCommand");
|
|
567
|
+
var se_DeleteParallelDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const headers = sharedHeaders("DeleteParallelData");
|
|
569
|
+
let body;
|
|
570
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
571
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
572
|
+
}, "se_DeleteParallelDataCommand");
|
|
573
|
+
var se_DeleteTerminologyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
574
|
+
const headers = sharedHeaders("DeleteTerminology");
|
|
575
|
+
let body;
|
|
576
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
577
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
578
|
+
}, "se_DeleteTerminologyCommand");
|
|
579
|
+
var se_DescribeTextTranslationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
580
|
+
const headers = sharedHeaders("DescribeTextTranslationJob");
|
|
581
|
+
let body;
|
|
582
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
583
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
584
|
+
}, "se_DescribeTextTranslationJobCommand");
|
|
585
|
+
var se_GetParallelDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
586
|
+
const headers = sharedHeaders("GetParallelData");
|
|
587
|
+
let body;
|
|
588
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
589
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
590
|
+
}, "se_GetParallelDataCommand");
|
|
591
|
+
var se_GetTerminologyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
592
|
+
const headers = sharedHeaders("GetTerminology");
|
|
593
|
+
let body;
|
|
594
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
595
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
596
|
+
}, "se_GetTerminologyCommand");
|
|
597
|
+
var se_ImportTerminologyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
598
|
+
const headers = sharedHeaders("ImportTerminology");
|
|
599
|
+
let body;
|
|
600
|
+
body = JSON.stringify(se_ImportTerminologyRequest(input, context));
|
|
601
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
602
|
+
}, "se_ImportTerminologyCommand");
|
|
603
|
+
var se_ListLanguagesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
604
|
+
const headers = sharedHeaders("ListLanguages");
|
|
605
|
+
let body;
|
|
606
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
607
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
608
|
+
}, "se_ListLanguagesCommand");
|
|
609
|
+
var se_ListParallelDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
610
|
+
const headers = sharedHeaders("ListParallelData");
|
|
611
|
+
let body;
|
|
612
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
613
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
614
|
+
}, "se_ListParallelDataCommand");
|
|
615
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
617
|
+
let body;
|
|
618
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
619
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
620
|
+
}, "se_ListTagsForResourceCommand");
|
|
621
|
+
var se_ListTerminologiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
622
|
+
const headers = sharedHeaders("ListTerminologies");
|
|
623
|
+
let body;
|
|
624
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
625
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
626
|
+
}, "se_ListTerminologiesCommand");
|
|
627
|
+
var se_ListTextTranslationJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
628
|
+
const headers = sharedHeaders("ListTextTranslationJobs");
|
|
629
|
+
let body;
|
|
630
|
+
body = JSON.stringify(se_ListTextTranslationJobsRequest(input, context));
|
|
631
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
632
|
+
}, "se_ListTextTranslationJobsCommand");
|
|
633
|
+
var se_StartTextTranslationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
|
+
const headers = sharedHeaders("StartTextTranslationJob");
|
|
635
|
+
let body;
|
|
636
|
+
body = JSON.stringify(se_StartTextTranslationJobRequest(input, context));
|
|
637
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
638
|
+
}, "se_StartTextTranslationJobCommand");
|
|
639
|
+
var se_StopTextTranslationJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
640
|
+
const headers = sharedHeaders("StopTextTranslationJob");
|
|
641
|
+
let body;
|
|
642
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
643
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
644
|
+
}, "se_StopTextTranslationJobCommand");
|
|
645
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
646
|
+
const headers = sharedHeaders("TagResource");
|
|
647
|
+
let body;
|
|
648
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
649
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
650
|
+
}, "se_TagResourceCommand");
|
|
651
|
+
var se_TranslateDocumentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
652
|
+
const headers = sharedHeaders("TranslateDocument");
|
|
653
|
+
let body;
|
|
654
|
+
body = JSON.stringify(se_TranslateDocumentRequest(input, context));
|
|
655
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
656
|
+
}, "se_TranslateDocumentCommand");
|
|
657
|
+
var se_TranslateTextCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
658
|
+
const headers = sharedHeaders("TranslateText");
|
|
659
|
+
let body;
|
|
660
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
661
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
662
|
+
}, "se_TranslateTextCommand");
|
|
663
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
664
|
+
const headers = sharedHeaders("UntagResource");
|
|
665
|
+
let body;
|
|
666
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
667
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
668
|
+
}, "se_UntagResourceCommand");
|
|
669
|
+
var se_UpdateParallelDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
670
|
+
const headers = sharedHeaders("UpdateParallelData");
|
|
671
|
+
let body;
|
|
672
|
+
body = JSON.stringify(se_UpdateParallelDataRequest(input, context));
|
|
673
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
674
|
+
}, "se_UpdateParallelDataCommand");
|
|
675
|
+
var de_CreateParallelDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
676
|
+
if (output.statusCode >= 300) {
|
|
677
|
+
return de_CreateParallelDataCommandError(output, context);
|
|
678
|
+
}
|
|
679
|
+
const data = await parseBody(output.body, context);
|
|
680
|
+
let contents = {};
|
|
681
|
+
contents = (0, import_smithy_client._json)(data);
|
|
682
|
+
const response = {
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
...contents
|
|
685
|
+
};
|
|
686
|
+
return response;
|
|
687
|
+
}, "de_CreateParallelDataCommand");
|
|
688
|
+
var de_CreateParallelDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
689
|
+
const parsedOutput = {
|
|
690
|
+
...output,
|
|
691
|
+
body: await parseErrorBody(output.body, context)
|
|
692
|
+
};
|
|
693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
+
switch (errorCode) {
|
|
695
|
+
case "ConcurrentModificationException":
|
|
696
|
+
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
697
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
698
|
+
case "ConflictException":
|
|
699
|
+
case "com.amazonaws.translate#ConflictException":
|
|
700
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
701
|
+
case "InternalServerException":
|
|
702
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
703
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
704
|
+
case "InvalidParameterValueException":
|
|
705
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
706
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
707
|
+
case "InvalidRequestException":
|
|
708
|
+
case "com.amazonaws.translate#InvalidRequestException":
|
|
709
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
710
|
+
case "LimitExceededException":
|
|
711
|
+
case "com.amazonaws.translate#LimitExceededException":
|
|
712
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
713
|
+
case "TooManyRequestsException":
|
|
714
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
715
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
716
|
+
case "TooManyTagsException":
|
|
717
|
+
case "com.amazonaws.translate#TooManyTagsException":
|
|
718
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
719
|
+
default:
|
|
720
|
+
const parsedBody = parsedOutput.body;
|
|
721
|
+
return throwDefaultError({
|
|
722
|
+
output,
|
|
723
|
+
parsedBody,
|
|
724
|
+
errorCode
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
}, "de_CreateParallelDataCommandError");
|
|
728
|
+
var de_DeleteParallelDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
729
|
+
if (output.statusCode >= 300) {
|
|
730
|
+
return de_DeleteParallelDataCommandError(output, context);
|
|
731
|
+
}
|
|
732
|
+
const data = await parseBody(output.body, context);
|
|
733
|
+
let contents = {};
|
|
734
|
+
contents = (0, import_smithy_client._json)(data);
|
|
735
|
+
const response = {
|
|
736
|
+
$metadata: deserializeMetadata(output),
|
|
737
|
+
...contents
|
|
738
|
+
};
|
|
739
|
+
return response;
|
|
740
|
+
}, "de_DeleteParallelDataCommand");
|
|
741
|
+
var de_DeleteParallelDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
742
|
+
const parsedOutput = {
|
|
743
|
+
...output,
|
|
744
|
+
body: await parseErrorBody(output.body, context)
|
|
745
|
+
};
|
|
746
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
|
+
switch (errorCode) {
|
|
748
|
+
case "ConcurrentModificationException":
|
|
749
|
+
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
750
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
751
|
+
case "InternalServerException":
|
|
752
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
753
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
754
|
+
case "ResourceNotFoundException":
|
|
755
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
756
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
757
|
+
case "TooManyRequestsException":
|
|
758
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
759
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
760
|
+
default:
|
|
761
|
+
const parsedBody = parsedOutput.body;
|
|
762
|
+
return throwDefaultError({
|
|
763
|
+
output,
|
|
764
|
+
parsedBody,
|
|
765
|
+
errorCode
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
}, "de_DeleteParallelDataCommandError");
|
|
769
|
+
var de_DeleteTerminologyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
|
+
if (output.statusCode >= 300) {
|
|
771
|
+
return de_DeleteTerminologyCommandError(output, context);
|
|
772
|
+
}
|
|
773
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
774
|
+
const response = {
|
|
775
|
+
$metadata: deserializeMetadata(output)
|
|
776
|
+
};
|
|
777
|
+
return response;
|
|
778
|
+
}, "de_DeleteTerminologyCommand");
|
|
779
|
+
var de_DeleteTerminologyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
780
|
+
const parsedOutput = {
|
|
781
|
+
...output,
|
|
782
|
+
body: await parseErrorBody(output.body, context)
|
|
783
|
+
};
|
|
784
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
|
+
switch (errorCode) {
|
|
786
|
+
case "InternalServerException":
|
|
787
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
788
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
789
|
+
case "InvalidParameterValueException":
|
|
790
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
791
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
792
|
+
case "ResourceNotFoundException":
|
|
793
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
794
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
+
case "TooManyRequestsException":
|
|
796
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
797
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
798
|
+
default:
|
|
799
|
+
const parsedBody = parsedOutput.body;
|
|
800
|
+
return throwDefaultError({
|
|
801
|
+
output,
|
|
802
|
+
parsedBody,
|
|
803
|
+
errorCode
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
}, "de_DeleteTerminologyCommandError");
|
|
807
|
+
var de_DescribeTextTranslationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
808
|
+
if (output.statusCode >= 300) {
|
|
809
|
+
return de_DescribeTextTranslationJobCommandError(output, context);
|
|
810
|
+
}
|
|
811
|
+
const data = await parseBody(output.body, context);
|
|
812
|
+
let contents = {};
|
|
813
|
+
contents = de_DescribeTextTranslationJobResponse(data, context);
|
|
814
|
+
const response = {
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
...contents
|
|
817
|
+
};
|
|
818
|
+
return response;
|
|
819
|
+
}, "de_DescribeTextTranslationJobCommand");
|
|
820
|
+
var de_DescribeTextTranslationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
+
const parsedOutput = {
|
|
822
|
+
...output,
|
|
823
|
+
body: await parseErrorBody(output.body, context)
|
|
824
|
+
};
|
|
825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
|
+
switch (errorCode) {
|
|
827
|
+
case "InternalServerException":
|
|
828
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
829
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ResourceNotFoundException":
|
|
831
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
832
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
833
|
+
case "TooManyRequestsException":
|
|
834
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
835
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
836
|
+
default:
|
|
837
|
+
const parsedBody = parsedOutput.body;
|
|
838
|
+
return throwDefaultError({
|
|
839
|
+
output,
|
|
840
|
+
parsedBody,
|
|
841
|
+
errorCode
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
}, "de_DescribeTextTranslationJobCommandError");
|
|
845
|
+
var de_GetParallelDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
846
|
+
if (output.statusCode >= 300) {
|
|
847
|
+
return de_GetParallelDataCommandError(output, context);
|
|
848
|
+
}
|
|
849
|
+
const data = await parseBody(output.body, context);
|
|
850
|
+
let contents = {};
|
|
851
|
+
contents = de_GetParallelDataResponse(data, context);
|
|
852
|
+
const response = {
|
|
853
|
+
$metadata: deserializeMetadata(output),
|
|
854
|
+
...contents
|
|
855
|
+
};
|
|
856
|
+
return response;
|
|
857
|
+
}, "de_GetParallelDataCommand");
|
|
858
|
+
var de_GetParallelDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
|
+
const parsedOutput = {
|
|
860
|
+
...output,
|
|
861
|
+
body: await parseErrorBody(output.body, context)
|
|
862
|
+
};
|
|
863
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
|
+
switch (errorCode) {
|
|
865
|
+
case "InternalServerException":
|
|
866
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
867
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
868
|
+
case "InvalidParameterValueException":
|
|
869
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
870
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
871
|
+
case "ResourceNotFoundException":
|
|
872
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
873
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
874
|
+
case "TooManyRequestsException":
|
|
875
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
876
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
877
|
+
default:
|
|
878
|
+
const parsedBody = parsedOutput.body;
|
|
879
|
+
return throwDefaultError({
|
|
880
|
+
output,
|
|
881
|
+
parsedBody,
|
|
882
|
+
errorCode
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
}, "de_GetParallelDataCommandError");
|
|
886
|
+
var de_GetTerminologyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
887
|
+
if (output.statusCode >= 300) {
|
|
888
|
+
return de_GetTerminologyCommandError(output, context);
|
|
889
|
+
}
|
|
890
|
+
const data = await parseBody(output.body, context);
|
|
891
|
+
let contents = {};
|
|
892
|
+
contents = de_GetTerminologyResponse(data, context);
|
|
893
|
+
const response = {
|
|
894
|
+
$metadata: deserializeMetadata(output),
|
|
895
|
+
...contents
|
|
896
|
+
};
|
|
897
|
+
return response;
|
|
898
|
+
}, "de_GetTerminologyCommand");
|
|
899
|
+
var de_GetTerminologyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
900
|
+
const parsedOutput = {
|
|
901
|
+
...output,
|
|
902
|
+
body: await parseErrorBody(output.body, context)
|
|
903
|
+
};
|
|
904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
+
switch (errorCode) {
|
|
906
|
+
case "InternalServerException":
|
|
907
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
908
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
909
|
+
case "InvalidParameterValueException":
|
|
910
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
911
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
912
|
+
case "ResourceNotFoundException":
|
|
913
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
914
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
915
|
+
case "TooManyRequestsException":
|
|
916
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
917
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
918
|
+
default:
|
|
919
|
+
const parsedBody = parsedOutput.body;
|
|
920
|
+
return throwDefaultError({
|
|
921
|
+
output,
|
|
922
|
+
parsedBody,
|
|
923
|
+
errorCode
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
}, "de_GetTerminologyCommandError");
|
|
927
|
+
var de_ImportTerminologyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
+
if (output.statusCode >= 300) {
|
|
929
|
+
return de_ImportTerminologyCommandError(output, context);
|
|
930
|
+
}
|
|
931
|
+
const data = await parseBody(output.body, context);
|
|
932
|
+
let contents = {};
|
|
933
|
+
contents = de_ImportTerminologyResponse(data, context);
|
|
934
|
+
const response = {
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
...contents
|
|
937
|
+
};
|
|
938
|
+
return response;
|
|
939
|
+
}, "de_ImportTerminologyCommand");
|
|
940
|
+
var de_ImportTerminologyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
+
const parsedOutput = {
|
|
942
|
+
...output,
|
|
943
|
+
body: await parseErrorBody(output.body, context)
|
|
944
|
+
};
|
|
945
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
+
switch (errorCode) {
|
|
947
|
+
case "ConcurrentModificationException":
|
|
948
|
+
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
949
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
950
|
+
case "InternalServerException":
|
|
951
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
|
+
case "InvalidParameterValueException":
|
|
954
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
955
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
956
|
+
case "LimitExceededException":
|
|
957
|
+
case "com.amazonaws.translate#LimitExceededException":
|
|
958
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
959
|
+
case "TooManyRequestsException":
|
|
960
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
961
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
962
|
+
case "TooManyTagsException":
|
|
963
|
+
case "com.amazonaws.translate#TooManyTagsException":
|
|
964
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
965
|
+
default:
|
|
966
|
+
const parsedBody = parsedOutput.body;
|
|
967
|
+
return throwDefaultError({
|
|
968
|
+
output,
|
|
969
|
+
parsedBody,
|
|
970
|
+
errorCode
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
}, "de_ImportTerminologyCommandError");
|
|
974
|
+
var de_ListLanguagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
|
+
if (output.statusCode >= 300) {
|
|
976
|
+
return de_ListLanguagesCommandError(output, context);
|
|
977
|
+
}
|
|
978
|
+
const data = await parseBody(output.body, context);
|
|
979
|
+
let contents = {};
|
|
980
|
+
contents = (0, import_smithy_client._json)(data);
|
|
981
|
+
const response = {
|
|
982
|
+
$metadata: deserializeMetadata(output),
|
|
983
|
+
...contents
|
|
984
|
+
};
|
|
985
|
+
return response;
|
|
986
|
+
}, "de_ListLanguagesCommand");
|
|
987
|
+
var de_ListLanguagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
988
|
+
const parsedOutput = {
|
|
989
|
+
...output,
|
|
990
|
+
body: await parseErrorBody(output.body, context)
|
|
991
|
+
};
|
|
992
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
+
switch (errorCode) {
|
|
994
|
+
case "InternalServerException":
|
|
995
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
996
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
997
|
+
case "InvalidParameterValueException":
|
|
998
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
999
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1000
|
+
case "TooManyRequestsException":
|
|
1001
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1002
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1003
|
+
case "UnsupportedDisplayLanguageCodeException":
|
|
1004
|
+
case "com.amazonaws.translate#UnsupportedDisplayLanguageCodeException":
|
|
1005
|
+
throw await de_UnsupportedDisplayLanguageCodeExceptionRes(parsedOutput, context);
|
|
1006
|
+
default:
|
|
1007
|
+
const parsedBody = parsedOutput.body;
|
|
1008
|
+
return throwDefaultError({
|
|
1009
|
+
output,
|
|
1010
|
+
parsedBody,
|
|
1011
|
+
errorCode
|
|
1012
|
+
});
|
|
1013
|
+
}
|
|
1014
|
+
}, "de_ListLanguagesCommandError");
|
|
1015
|
+
var de_ListParallelDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1016
|
+
if (output.statusCode >= 300) {
|
|
1017
|
+
return de_ListParallelDataCommandError(output, context);
|
|
1018
|
+
}
|
|
1019
|
+
const data = await parseBody(output.body, context);
|
|
1020
|
+
let contents = {};
|
|
1021
|
+
contents = de_ListParallelDataResponse(data, context);
|
|
1022
|
+
const response = {
|
|
1023
|
+
$metadata: deserializeMetadata(output),
|
|
1024
|
+
...contents
|
|
1025
|
+
};
|
|
1026
|
+
return response;
|
|
1027
|
+
}, "de_ListParallelDataCommand");
|
|
1028
|
+
var de_ListParallelDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
|
+
const parsedOutput = {
|
|
1030
|
+
...output,
|
|
1031
|
+
body: await parseErrorBody(output.body, context)
|
|
1032
|
+
};
|
|
1033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
+
switch (errorCode) {
|
|
1035
|
+
case "InternalServerException":
|
|
1036
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1037
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1038
|
+
case "InvalidParameterValueException":
|
|
1039
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1040
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1041
|
+
case "TooManyRequestsException":
|
|
1042
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1043
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1044
|
+
default:
|
|
1045
|
+
const parsedBody = parsedOutput.body;
|
|
1046
|
+
return throwDefaultError({
|
|
1047
|
+
output,
|
|
1048
|
+
parsedBody,
|
|
1049
|
+
errorCode
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
}, "de_ListParallelDataCommandError");
|
|
1053
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1054
|
+
if (output.statusCode >= 300) {
|
|
1055
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1056
|
+
}
|
|
1057
|
+
const data = await parseBody(output.body, context);
|
|
1058
|
+
let contents = {};
|
|
1059
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1060
|
+
const response = {
|
|
1061
|
+
$metadata: deserializeMetadata(output),
|
|
1062
|
+
...contents
|
|
1063
|
+
};
|
|
1064
|
+
return response;
|
|
1065
|
+
}, "de_ListTagsForResourceCommand");
|
|
1066
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
|
+
const parsedOutput = {
|
|
1068
|
+
...output,
|
|
1069
|
+
body: await parseErrorBody(output.body, context)
|
|
1070
|
+
};
|
|
1071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
+
switch (errorCode) {
|
|
1073
|
+
case "InternalServerException":
|
|
1074
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1075
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1076
|
+
case "InvalidParameterValueException":
|
|
1077
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1078
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "ResourceNotFoundException":
|
|
1080
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1081
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1082
|
+
default:
|
|
1083
|
+
const parsedBody = parsedOutput.body;
|
|
1084
|
+
return throwDefaultError({
|
|
1085
|
+
output,
|
|
1086
|
+
parsedBody,
|
|
1087
|
+
errorCode
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1091
|
+
var de_ListTerminologiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1092
|
+
if (output.statusCode >= 300) {
|
|
1093
|
+
return de_ListTerminologiesCommandError(output, context);
|
|
1094
|
+
}
|
|
1095
|
+
const data = await parseBody(output.body, context);
|
|
1096
|
+
let contents = {};
|
|
1097
|
+
contents = de_ListTerminologiesResponse(data, context);
|
|
1098
|
+
const response = {
|
|
1099
|
+
$metadata: deserializeMetadata(output),
|
|
1100
|
+
...contents
|
|
1101
|
+
};
|
|
1102
|
+
return response;
|
|
1103
|
+
}, "de_ListTerminologiesCommand");
|
|
1104
|
+
var de_ListTerminologiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1105
|
+
const parsedOutput = {
|
|
1106
|
+
...output,
|
|
1107
|
+
body: await parseErrorBody(output.body, context)
|
|
1108
|
+
};
|
|
1109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
+
switch (errorCode) {
|
|
1111
|
+
case "InternalServerException":
|
|
1112
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1113
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1114
|
+
case "InvalidParameterValueException":
|
|
1115
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1116
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1117
|
+
case "TooManyRequestsException":
|
|
1118
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1119
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1120
|
+
default:
|
|
1121
|
+
const parsedBody = parsedOutput.body;
|
|
1122
|
+
return throwDefaultError({
|
|
1123
|
+
output,
|
|
1124
|
+
parsedBody,
|
|
1125
|
+
errorCode
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
}, "de_ListTerminologiesCommandError");
|
|
1129
|
+
var de_ListTextTranslationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
|
+
if (output.statusCode >= 300) {
|
|
1131
|
+
return de_ListTextTranslationJobsCommandError(output, context);
|
|
1132
|
+
}
|
|
1133
|
+
const data = await parseBody(output.body, context);
|
|
1134
|
+
let contents = {};
|
|
1135
|
+
contents = de_ListTextTranslationJobsResponse(data, context);
|
|
1136
|
+
const response = {
|
|
1137
|
+
$metadata: deserializeMetadata(output),
|
|
1138
|
+
...contents
|
|
1139
|
+
};
|
|
1140
|
+
return response;
|
|
1141
|
+
}, "de_ListTextTranslationJobsCommand");
|
|
1142
|
+
var de_ListTextTranslationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
+
const parsedOutput = {
|
|
1144
|
+
...output,
|
|
1145
|
+
body: await parseErrorBody(output.body, context)
|
|
1146
|
+
};
|
|
1147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
+
switch (errorCode) {
|
|
1149
|
+
case "InternalServerException":
|
|
1150
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1151
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1152
|
+
case "InvalidFilterException":
|
|
1153
|
+
case "com.amazonaws.translate#InvalidFilterException":
|
|
1154
|
+
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
1155
|
+
case "InvalidRequestException":
|
|
1156
|
+
case "com.amazonaws.translate#InvalidRequestException":
|
|
1157
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1158
|
+
case "TooManyRequestsException":
|
|
1159
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1160
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1161
|
+
default:
|
|
1162
|
+
const parsedBody = parsedOutput.body;
|
|
1163
|
+
return throwDefaultError({
|
|
1164
|
+
output,
|
|
1165
|
+
parsedBody,
|
|
1166
|
+
errorCode
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
}, "de_ListTextTranslationJobsCommandError");
|
|
1170
|
+
var de_StartTextTranslationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
|
+
if (output.statusCode >= 300) {
|
|
1172
|
+
return de_StartTextTranslationJobCommandError(output, context);
|
|
1173
|
+
}
|
|
1174
|
+
const data = await parseBody(output.body, context);
|
|
1175
|
+
let contents = {};
|
|
1176
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1177
|
+
const response = {
|
|
1178
|
+
$metadata: deserializeMetadata(output),
|
|
1179
|
+
...contents
|
|
1180
|
+
};
|
|
1181
|
+
return response;
|
|
1182
|
+
}, "de_StartTextTranslationJobCommand");
|
|
1183
|
+
var de_StartTextTranslationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1184
|
+
const parsedOutput = {
|
|
1185
|
+
...output,
|
|
1186
|
+
body: await parseErrorBody(output.body, context)
|
|
1187
|
+
};
|
|
1188
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
|
+
switch (errorCode) {
|
|
1190
|
+
case "InternalServerException":
|
|
1191
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1192
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1193
|
+
case "InvalidParameterValueException":
|
|
1194
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1195
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1196
|
+
case "InvalidRequestException":
|
|
1197
|
+
case "com.amazonaws.translate#InvalidRequestException":
|
|
1198
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1199
|
+
case "ResourceNotFoundException":
|
|
1200
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1201
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1202
|
+
case "TooManyRequestsException":
|
|
1203
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1204
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1205
|
+
case "UnsupportedLanguagePairException":
|
|
1206
|
+
case "com.amazonaws.translate#UnsupportedLanguagePairException":
|
|
1207
|
+
throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput, context);
|
|
1208
|
+
default:
|
|
1209
|
+
const parsedBody = parsedOutput.body;
|
|
1210
|
+
return throwDefaultError({
|
|
1211
|
+
output,
|
|
1212
|
+
parsedBody,
|
|
1213
|
+
errorCode
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
}, "de_StartTextTranslationJobCommandError");
|
|
1217
|
+
var de_StopTextTranslationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1218
|
+
if (output.statusCode >= 300) {
|
|
1219
|
+
return de_StopTextTranslationJobCommandError(output, context);
|
|
1220
|
+
}
|
|
1221
|
+
const data = await parseBody(output.body, context);
|
|
1222
|
+
let contents = {};
|
|
1223
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1224
|
+
const response = {
|
|
1225
|
+
$metadata: deserializeMetadata(output),
|
|
1226
|
+
...contents
|
|
1227
|
+
};
|
|
1228
|
+
return response;
|
|
1229
|
+
}, "de_StopTextTranslationJobCommand");
|
|
1230
|
+
var de_StopTextTranslationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
|
+
const parsedOutput = {
|
|
1232
|
+
...output,
|
|
1233
|
+
body: await parseErrorBody(output.body, context)
|
|
1234
|
+
};
|
|
1235
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
+
switch (errorCode) {
|
|
1237
|
+
case "InternalServerException":
|
|
1238
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1239
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1240
|
+
case "ResourceNotFoundException":
|
|
1241
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1242
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1243
|
+
case "TooManyRequestsException":
|
|
1244
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1245
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1246
|
+
default:
|
|
1247
|
+
const parsedBody = parsedOutput.body;
|
|
1248
|
+
return throwDefaultError({
|
|
1249
|
+
output,
|
|
1250
|
+
parsedBody,
|
|
1251
|
+
errorCode
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
}, "de_StopTextTranslationJobCommandError");
|
|
1255
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
|
+
if (output.statusCode >= 300) {
|
|
1257
|
+
return de_TagResourceCommandError(output, context);
|
|
1258
|
+
}
|
|
1259
|
+
const data = await parseBody(output.body, context);
|
|
1260
|
+
let contents = {};
|
|
1261
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1262
|
+
const response = {
|
|
1263
|
+
$metadata: deserializeMetadata(output),
|
|
1264
|
+
...contents
|
|
1265
|
+
};
|
|
1266
|
+
return response;
|
|
1267
|
+
}, "de_TagResourceCommand");
|
|
1268
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
|
+
const parsedOutput = {
|
|
1270
|
+
...output,
|
|
1271
|
+
body: await parseErrorBody(output.body, context)
|
|
1272
|
+
};
|
|
1273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1274
|
+
switch (errorCode) {
|
|
1275
|
+
case "ConcurrentModificationException":
|
|
1276
|
+
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
1277
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1278
|
+
case "InternalServerException":
|
|
1279
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1280
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
|
+
case "InvalidParameterValueException":
|
|
1282
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1283
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1284
|
+
case "ResourceNotFoundException":
|
|
1285
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1286
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1287
|
+
case "TooManyTagsException":
|
|
1288
|
+
case "com.amazonaws.translate#TooManyTagsException":
|
|
1289
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1290
|
+
default:
|
|
1291
|
+
const parsedBody = parsedOutput.body;
|
|
1292
|
+
return throwDefaultError({
|
|
1293
|
+
output,
|
|
1294
|
+
parsedBody,
|
|
1295
|
+
errorCode
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
}, "de_TagResourceCommandError");
|
|
1299
|
+
var de_TranslateDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1300
|
+
if (output.statusCode >= 300) {
|
|
1301
|
+
return de_TranslateDocumentCommandError(output, context);
|
|
1302
|
+
}
|
|
1303
|
+
const data = await parseBody(output.body, context);
|
|
1304
|
+
let contents = {};
|
|
1305
|
+
contents = de_TranslateDocumentResponse(data, context);
|
|
1306
|
+
const response = {
|
|
1307
|
+
$metadata: deserializeMetadata(output),
|
|
1308
|
+
...contents
|
|
1309
|
+
};
|
|
1310
|
+
return response;
|
|
1311
|
+
}, "de_TranslateDocumentCommand");
|
|
1312
|
+
var de_TranslateDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1313
|
+
const parsedOutput = {
|
|
1314
|
+
...output,
|
|
1315
|
+
body: await parseErrorBody(output.body, context)
|
|
1316
|
+
};
|
|
1317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
+
switch (errorCode) {
|
|
1319
|
+
case "InternalServerException":
|
|
1320
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1321
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1322
|
+
case "InvalidRequestException":
|
|
1323
|
+
case "com.amazonaws.translate#InvalidRequestException":
|
|
1324
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1325
|
+
case "LimitExceededException":
|
|
1326
|
+
case "com.amazonaws.translate#LimitExceededException":
|
|
1327
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1328
|
+
case "ResourceNotFoundException":
|
|
1329
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1330
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
+
case "ServiceUnavailableException":
|
|
1332
|
+
case "com.amazonaws.translate#ServiceUnavailableException":
|
|
1333
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1334
|
+
case "TooManyRequestsException":
|
|
1335
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1336
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "UnsupportedLanguagePairException":
|
|
1338
|
+
case "com.amazonaws.translate#UnsupportedLanguagePairException":
|
|
1339
|
+
throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput, context);
|
|
1340
|
+
default:
|
|
1341
|
+
const parsedBody = parsedOutput.body;
|
|
1342
|
+
return throwDefaultError({
|
|
1343
|
+
output,
|
|
1344
|
+
parsedBody,
|
|
1345
|
+
errorCode
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
}, "de_TranslateDocumentCommandError");
|
|
1349
|
+
var de_TranslateTextCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
|
+
if (output.statusCode >= 300) {
|
|
1351
|
+
return de_TranslateTextCommandError(output, context);
|
|
1352
|
+
}
|
|
1353
|
+
const data = await parseBody(output.body, context);
|
|
1354
|
+
let contents = {};
|
|
1355
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1356
|
+
const response = {
|
|
1357
|
+
$metadata: deserializeMetadata(output),
|
|
1358
|
+
...contents
|
|
1359
|
+
};
|
|
1360
|
+
return response;
|
|
1361
|
+
}, "de_TranslateTextCommand");
|
|
1362
|
+
var de_TranslateTextCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1363
|
+
const parsedOutput = {
|
|
1364
|
+
...output,
|
|
1365
|
+
body: await parseErrorBody(output.body, context)
|
|
1366
|
+
};
|
|
1367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
|
+
switch (errorCode) {
|
|
1369
|
+
case "DetectedLanguageLowConfidenceException":
|
|
1370
|
+
case "com.amazonaws.translate#DetectedLanguageLowConfidenceException":
|
|
1371
|
+
throw await de_DetectedLanguageLowConfidenceExceptionRes(parsedOutput, context);
|
|
1372
|
+
case "InternalServerException":
|
|
1373
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1374
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1375
|
+
case "InvalidRequestException":
|
|
1376
|
+
case "com.amazonaws.translate#InvalidRequestException":
|
|
1377
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1378
|
+
case "ResourceNotFoundException":
|
|
1379
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1380
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "ServiceUnavailableException":
|
|
1382
|
+
case "com.amazonaws.translate#ServiceUnavailableException":
|
|
1383
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1384
|
+
case "TextSizeLimitExceededException":
|
|
1385
|
+
case "com.amazonaws.translate#TextSizeLimitExceededException":
|
|
1386
|
+
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1387
|
+
case "TooManyRequestsException":
|
|
1388
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1389
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1390
|
+
case "UnsupportedLanguagePairException":
|
|
1391
|
+
case "com.amazonaws.translate#UnsupportedLanguagePairException":
|
|
1392
|
+
throw await de_UnsupportedLanguagePairExceptionRes(parsedOutput, context);
|
|
1393
|
+
default:
|
|
1394
|
+
const parsedBody = parsedOutput.body;
|
|
1395
|
+
return throwDefaultError({
|
|
1396
|
+
output,
|
|
1397
|
+
parsedBody,
|
|
1398
|
+
errorCode
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
}, "de_TranslateTextCommandError");
|
|
1402
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
|
+
if (output.statusCode >= 300) {
|
|
1404
|
+
return de_UntagResourceCommandError(output, context);
|
|
1405
|
+
}
|
|
1406
|
+
const data = await parseBody(output.body, context);
|
|
1407
|
+
let contents = {};
|
|
1408
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1409
|
+
const response = {
|
|
1410
|
+
$metadata: deserializeMetadata(output),
|
|
1411
|
+
...contents
|
|
1412
|
+
};
|
|
1413
|
+
return response;
|
|
1414
|
+
}, "de_UntagResourceCommand");
|
|
1415
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
|
+
const parsedOutput = {
|
|
1417
|
+
...output,
|
|
1418
|
+
body: await parseErrorBody(output.body, context)
|
|
1419
|
+
};
|
|
1420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
+
switch (errorCode) {
|
|
1422
|
+
case "ConcurrentModificationException":
|
|
1423
|
+
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
1424
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1425
|
+
case "InternalServerException":
|
|
1426
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1428
|
+
case "InvalidParameterValueException":
|
|
1429
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1430
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1431
|
+
case "ResourceNotFoundException":
|
|
1432
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1433
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1434
|
+
default:
|
|
1435
|
+
const parsedBody = parsedOutput.body;
|
|
1436
|
+
return throwDefaultError({
|
|
1437
|
+
output,
|
|
1438
|
+
parsedBody,
|
|
1439
|
+
errorCode
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
}, "de_UntagResourceCommandError");
|
|
1443
|
+
var de_UpdateParallelDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
|
+
if (output.statusCode >= 300) {
|
|
1445
|
+
return de_UpdateParallelDataCommandError(output, context);
|
|
1446
|
+
}
|
|
1447
|
+
const data = await parseBody(output.body, context);
|
|
1448
|
+
let contents = {};
|
|
1449
|
+
contents = de_UpdateParallelDataResponse(data, context);
|
|
1450
|
+
const response = {
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
...contents
|
|
1453
|
+
};
|
|
1454
|
+
return response;
|
|
1455
|
+
}, "de_UpdateParallelDataCommand");
|
|
1456
|
+
var de_UpdateParallelDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
|
+
const parsedOutput = {
|
|
1458
|
+
...output,
|
|
1459
|
+
body: await parseErrorBody(output.body, context)
|
|
1460
|
+
};
|
|
1461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
|
+
switch (errorCode) {
|
|
1463
|
+
case "ConcurrentModificationException":
|
|
1464
|
+
case "com.amazonaws.translate#ConcurrentModificationException":
|
|
1465
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1466
|
+
case "ConflictException":
|
|
1467
|
+
case "com.amazonaws.translate#ConflictException":
|
|
1468
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1469
|
+
case "InternalServerException":
|
|
1470
|
+
case "com.amazonaws.translate#InternalServerException":
|
|
1471
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "InvalidParameterValueException":
|
|
1473
|
+
case "com.amazonaws.translate#InvalidParameterValueException":
|
|
1474
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "InvalidRequestException":
|
|
1476
|
+
case "com.amazonaws.translate#InvalidRequestException":
|
|
1477
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "LimitExceededException":
|
|
1479
|
+
case "com.amazonaws.translate#LimitExceededException":
|
|
1480
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1481
|
+
case "ResourceNotFoundException":
|
|
1482
|
+
case "com.amazonaws.translate#ResourceNotFoundException":
|
|
1483
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
+
case "TooManyRequestsException":
|
|
1485
|
+
case "com.amazonaws.translate#TooManyRequestsException":
|
|
1486
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1487
|
+
default:
|
|
1488
|
+
const parsedBody = parsedOutput.body;
|
|
1489
|
+
return throwDefaultError({
|
|
1490
|
+
output,
|
|
1491
|
+
parsedBody,
|
|
1492
|
+
errorCode
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
}, "de_UpdateParallelDataCommandError");
|
|
1496
|
+
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1497
|
+
const body = parsedOutput.body;
|
|
1498
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1499
|
+
const exception = new ConcurrentModificationException({
|
|
1500
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1501
|
+
...deserialized
|
|
1502
|
+
});
|
|
1503
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1504
|
+
}, "de_ConcurrentModificationExceptionRes");
|
|
1505
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1506
|
+
const body = parsedOutput.body;
|
|
1507
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1508
|
+
const exception = new ConflictException({
|
|
1509
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1510
|
+
...deserialized
|
|
1511
|
+
});
|
|
1512
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1513
|
+
}, "de_ConflictExceptionRes");
|
|
1514
|
+
var de_DetectedLanguageLowConfidenceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1515
|
+
const body = parsedOutput.body;
|
|
1516
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1517
|
+
const exception = new DetectedLanguageLowConfidenceException({
|
|
1518
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1519
|
+
...deserialized
|
|
1520
|
+
});
|
|
1521
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1522
|
+
}, "de_DetectedLanguageLowConfidenceExceptionRes");
|
|
1523
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1524
|
+
const body = parsedOutput.body;
|
|
1525
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1526
|
+
const exception = new InternalServerException({
|
|
1527
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1528
|
+
...deserialized
|
|
1529
|
+
});
|
|
1530
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1531
|
+
}, "de_InternalServerExceptionRes");
|
|
1532
|
+
var de_InvalidFilterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1533
|
+
const body = parsedOutput.body;
|
|
1534
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1535
|
+
const exception = new InvalidFilterException({
|
|
1536
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1537
|
+
...deserialized
|
|
1538
|
+
});
|
|
1539
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1540
|
+
}, "de_InvalidFilterExceptionRes");
|
|
1541
|
+
var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1542
|
+
const body = parsedOutput.body;
|
|
1543
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1544
|
+
const exception = new InvalidParameterValueException({
|
|
1545
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1546
|
+
...deserialized
|
|
1547
|
+
});
|
|
1548
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1549
|
+
}, "de_InvalidParameterValueExceptionRes");
|
|
1550
|
+
var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1551
|
+
const body = parsedOutput.body;
|
|
1552
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1553
|
+
const exception = new InvalidRequestException({
|
|
1554
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1555
|
+
...deserialized
|
|
1556
|
+
});
|
|
1557
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1558
|
+
}, "de_InvalidRequestExceptionRes");
|
|
1559
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1560
|
+
const body = parsedOutput.body;
|
|
1561
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1562
|
+
const exception = new LimitExceededException({
|
|
1563
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1564
|
+
...deserialized
|
|
1565
|
+
});
|
|
1566
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1567
|
+
}, "de_LimitExceededExceptionRes");
|
|
1568
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1569
|
+
const body = parsedOutput.body;
|
|
1570
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1571
|
+
const exception = new ResourceNotFoundException({
|
|
1572
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1573
|
+
...deserialized
|
|
1574
|
+
});
|
|
1575
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1576
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1577
|
+
var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1578
|
+
const body = parsedOutput.body;
|
|
1579
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1580
|
+
const exception = new ServiceUnavailableException({
|
|
1581
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1582
|
+
...deserialized
|
|
1583
|
+
});
|
|
1584
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1585
|
+
}, "de_ServiceUnavailableExceptionRes");
|
|
1586
|
+
var de_TextSizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1587
|
+
const body = parsedOutput.body;
|
|
1588
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1589
|
+
const exception = new TextSizeLimitExceededException({
|
|
1590
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1591
|
+
...deserialized
|
|
1592
|
+
});
|
|
1593
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1594
|
+
}, "de_TextSizeLimitExceededExceptionRes");
|
|
1595
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1596
|
+
const body = parsedOutput.body;
|
|
1597
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1598
|
+
const exception = new TooManyRequestsException({
|
|
1599
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1600
|
+
...deserialized
|
|
1601
|
+
});
|
|
1602
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1603
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1604
|
+
var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1605
|
+
const body = parsedOutput.body;
|
|
1606
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1607
|
+
const exception = new TooManyTagsException({
|
|
1608
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1609
|
+
...deserialized
|
|
1610
|
+
});
|
|
1611
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1612
|
+
}, "de_TooManyTagsExceptionRes");
|
|
1613
|
+
var de_UnsupportedDisplayLanguageCodeExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1614
|
+
const body = parsedOutput.body;
|
|
1615
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1616
|
+
const exception = new UnsupportedDisplayLanguageCodeException({
|
|
1617
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1618
|
+
...deserialized
|
|
1619
|
+
});
|
|
1620
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1621
|
+
}, "de_UnsupportedDisplayLanguageCodeExceptionRes");
|
|
1622
|
+
var de_UnsupportedLanguagePairExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1623
|
+
const body = parsedOutput.body;
|
|
1624
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1625
|
+
const exception = new UnsupportedLanguagePairException({
|
|
1626
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1627
|
+
...deserialized
|
|
1628
|
+
});
|
|
1629
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1630
|
+
}, "de_UnsupportedLanguagePairExceptionRes");
|
|
1631
|
+
var se_CreateParallelDataRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1632
|
+
return (0, import_smithy_client.take)(input, {
|
|
1633
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1634
|
+
Description: [],
|
|
1635
|
+
EncryptionKey: import_smithy_client._json,
|
|
1636
|
+
Name: [],
|
|
1637
|
+
ParallelDataConfig: import_smithy_client._json,
|
|
1638
|
+
Tags: import_smithy_client._json
|
|
1639
|
+
});
|
|
1640
|
+
}, "se_CreateParallelDataRequest");
|
|
1641
|
+
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1642
|
+
return (0, import_smithy_client.take)(input, {
|
|
1643
|
+
Content: context.base64Encoder,
|
|
1644
|
+
ContentType: []
|
|
1645
|
+
});
|
|
1646
|
+
}, "se_Document");
|
|
1647
|
+
var se_ImportTerminologyRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1648
|
+
return (0, import_smithy_client.take)(input, {
|
|
1649
|
+
Description: [],
|
|
1650
|
+
EncryptionKey: import_smithy_client._json,
|
|
1651
|
+
MergeStrategy: [],
|
|
1652
|
+
Name: [],
|
|
1653
|
+
Tags: import_smithy_client._json,
|
|
1654
|
+
TerminologyData: (_) => se_TerminologyData(_, context)
|
|
1655
|
+
});
|
|
1656
|
+
}, "se_ImportTerminologyRequest");
|
|
1657
|
+
var se_ListTextTranslationJobsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1658
|
+
return (0, import_smithy_client.take)(input, {
|
|
1659
|
+
Filter: (_) => se_TextTranslationJobFilter(_, context),
|
|
1660
|
+
MaxResults: [],
|
|
1661
|
+
NextToken: []
|
|
1662
|
+
});
|
|
1663
|
+
}, "se_ListTextTranslationJobsRequest");
|
|
1664
|
+
var se_StartTextTranslationJobRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1665
|
+
return (0, import_smithy_client.take)(input, {
|
|
1666
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1667
|
+
DataAccessRoleArn: [],
|
|
1668
|
+
InputDataConfig: import_smithy_client._json,
|
|
1669
|
+
JobName: [],
|
|
1670
|
+
OutputDataConfig: import_smithy_client._json,
|
|
1671
|
+
ParallelDataNames: import_smithy_client._json,
|
|
1672
|
+
Settings: import_smithy_client._json,
|
|
1673
|
+
SourceLanguageCode: [],
|
|
1674
|
+
TargetLanguageCodes: import_smithy_client._json,
|
|
1675
|
+
TerminologyNames: import_smithy_client._json
|
|
1676
|
+
});
|
|
1677
|
+
}, "se_StartTextTranslationJobRequest");
|
|
1678
|
+
var se_TerminologyData = /* @__PURE__ */ __name((input, context) => {
|
|
1679
|
+
return (0, import_smithy_client.take)(input, {
|
|
1680
|
+
Directionality: [],
|
|
1681
|
+
File: context.base64Encoder,
|
|
1682
|
+
Format: []
|
|
1683
|
+
});
|
|
1684
|
+
}, "se_TerminologyData");
|
|
1685
|
+
var se_TextTranslationJobFilter = /* @__PURE__ */ __name((input, context) => {
|
|
1686
|
+
return (0, import_smithy_client.take)(input, {
|
|
1687
|
+
JobName: [],
|
|
1688
|
+
JobStatus: [],
|
|
1689
|
+
SubmittedAfterTime: (_) => Math.round(_.getTime() / 1e3),
|
|
1690
|
+
SubmittedBeforeTime: (_) => Math.round(_.getTime() / 1e3)
|
|
1691
|
+
});
|
|
1692
|
+
}, "se_TextTranslationJobFilter");
|
|
1693
|
+
var se_TranslateDocumentRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1694
|
+
return (0, import_smithy_client.take)(input, {
|
|
1695
|
+
Document: (_) => se_Document(_, context),
|
|
1696
|
+
Settings: import_smithy_client._json,
|
|
1697
|
+
SourceLanguageCode: [],
|
|
1698
|
+
TargetLanguageCode: [],
|
|
1699
|
+
TerminologyNames: import_smithy_client._json
|
|
1700
|
+
});
|
|
1701
|
+
}, "se_TranslateDocumentRequest");
|
|
1702
|
+
var se_UpdateParallelDataRequest = /* @__PURE__ */ __name((input, context) => {
|
|
1703
|
+
return (0, import_smithy_client.take)(input, {
|
|
1704
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
1705
|
+
Description: [],
|
|
1706
|
+
Name: [],
|
|
1707
|
+
ParallelDataConfig: import_smithy_client._json
|
|
1708
|
+
});
|
|
1709
|
+
}, "se_UpdateParallelDataRequest");
|
|
1710
|
+
var de_DescribeTextTranslationJobResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1711
|
+
return (0, import_smithy_client.take)(output, {
|
|
1712
|
+
TextTranslationJobProperties: (_) => de_TextTranslationJobProperties(_, context)
|
|
1713
|
+
});
|
|
1714
|
+
}, "de_DescribeTextTranslationJobResponse");
|
|
1715
|
+
var de_GetParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1716
|
+
return (0, import_smithy_client.take)(output, {
|
|
1717
|
+
AuxiliaryDataLocation: import_smithy_client._json,
|
|
1718
|
+
DataLocation: import_smithy_client._json,
|
|
1719
|
+
LatestUpdateAttemptAuxiliaryDataLocation: import_smithy_client._json,
|
|
1720
|
+
ParallelDataProperties: (_) => de_ParallelDataProperties(_, context)
|
|
1721
|
+
});
|
|
1722
|
+
}, "de_GetParallelDataResponse");
|
|
1723
|
+
var de_GetTerminologyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1724
|
+
return (0, import_smithy_client.take)(output, {
|
|
1725
|
+
AuxiliaryDataLocation: import_smithy_client._json,
|
|
1726
|
+
TerminologyDataLocation: import_smithy_client._json,
|
|
1727
|
+
TerminologyProperties: (_) => de_TerminologyProperties(_, context)
|
|
1728
|
+
});
|
|
1729
|
+
}, "de_GetTerminologyResponse");
|
|
1730
|
+
var de_ImportTerminologyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1731
|
+
return (0, import_smithy_client.take)(output, {
|
|
1732
|
+
AuxiliaryDataLocation: import_smithy_client._json,
|
|
1733
|
+
TerminologyProperties: (_) => de_TerminologyProperties(_, context)
|
|
1734
|
+
});
|
|
1735
|
+
}, "de_ImportTerminologyResponse");
|
|
1736
|
+
var de_ListParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1737
|
+
return (0, import_smithy_client.take)(output, {
|
|
1738
|
+
NextToken: import_smithy_client.expectString,
|
|
1739
|
+
ParallelDataPropertiesList: (_) => de_ParallelDataPropertiesList(_, context)
|
|
1740
|
+
});
|
|
1741
|
+
}, "de_ListParallelDataResponse");
|
|
1742
|
+
var de_ListTerminologiesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1743
|
+
return (0, import_smithy_client.take)(output, {
|
|
1744
|
+
NextToken: import_smithy_client.expectString,
|
|
1745
|
+
TerminologyPropertiesList: (_) => de_TerminologyPropertiesList(_, context)
|
|
1746
|
+
});
|
|
1747
|
+
}, "de_ListTerminologiesResponse");
|
|
1748
|
+
var de_ListTextTranslationJobsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1749
|
+
return (0, import_smithy_client.take)(output, {
|
|
1750
|
+
NextToken: import_smithy_client.expectString,
|
|
1751
|
+
TextTranslationJobPropertiesList: (_) => de_TextTranslationJobPropertiesList(_, context)
|
|
1752
|
+
});
|
|
1753
|
+
}, "de_ListTextTranslationJobsResponse");
|
|
1754
|
+
var de_ParallelDataProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1755
|
+
return (0, import_smithy_client.take)(output, {
|
|
1756
|
+
Arn: import_smithy_client.expectString,
|
|
1757
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1758
|
+
Description: import_smithy_client.expectString,
|
|
1759
|
+
EncryptionKey: import_smithy_client._json,
|
|
1760
|
+
FailedRecordCount: import_smithy_client.expectLong,
|
|
1761
|
+
ImportedDataSize: import_smithy_client.expectLong,
|
|
1762
|
+
ImportedRecordCount: import_smithy_client.expectLong,
|
|
1763
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1764
|
+
LatestUpdateAttemptAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1765
|
+
LatestUpdateAttemptStatus: import_smithy_client.expectString,
|
|
1766
|
+
Message: import_smithy_client.expectString,
|
|
1767
|
+
Name: import_smithy_client.expectString,
|
|
1768
|
+
ParallelDataConfig: import_smithy_client._json,
|
|
1769
|
+
SkippedRecordCount: import_smithy_client.expectLong,
|
|
1770
|
+
SourceLanguageCode: import_smithy_client.expectString,
|
|
1771
|
+
Status: import_smithy_client.expectString,
|
|
1772
|
+
TargetLanguageCodes: import_smithy_client._json
|
|
1773
|
+
});
|
|
1774
|
+
}, "de_ParallelDataProperties");
|
|
1775
|
+
var de_ParallelDataPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
1776
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1777
|
+
return de_ParallelDataProperties(entry, context);
|
|
1778
|
+
});
|
|
1779
|
+
return retVal;
|
|
1780
|
+
}, "de_ParallelDataPropertiesList");
|
|
1781
|
+
var de_TerminologyProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1782
|
+
return (0, import_smithy_client.take)(output, {
|
|
1783
|
+
Arn: import_smithy_client.expectString,
|
|
1784
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1785
|
+
Description: import_smithy_client.expectString,
|
|
1786
|
+
Directionality: import_smithy_client.expectString,
|
|
1787
|
+
EncryptionKey: import_smithy_client._json,
|
|
1788
|
+
Format: import_smithy_client.expectString,
|
|
1789
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1790
|
+
Message: import_smithy_client.expectString,
|
|
1791
|
+
Name: import_smithy_client.expectString,
|
|
1792
|
+
SizeBytes: import_smithy_client.expectInt32,
|
|
1793
|
+
SkippedTermCount: import_smithy_client.expectInt32,
|
|
1794
|
+
SourceLanguageCode: import_smithy_client.expectString,
|
|
1795
|
+
TargetLanguageCodes: import_smithy_client._json,
|
|
1796
|
+
TermCount: import_smithy_client.expectInt32
|
|
1797
|
+
});
|
|
1798
|
+
}, "de_TerminologyProperties");
|
|
1799
|
+
var de_TerminologyPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
1800
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1801
|
+
return de_TerminologyProperties(entry, context);
|
|
1802
|
+
});
|
|
1803
|
+
return retVal;
|
|
1804
|
+
}, "de_TerminologyPropertiesList");
|
|
1805
|
+
var de_TextTranslationJobProperties = /* @__PURE__ */ __name((output, context) => {
|
|
1806
|
+
return (0, import_smithy_client.take)(output, {
|
|
1807
|
+
DataAccessRoleArn: import_smithy_client.expectString,
|
|
1808
|
+
EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1809
|
+
InputDataConfig: import_smithy_client._json,
|
|
1810
|
+
JobDetails: import_smithy_client._json,
|
|
1811
|
+
JobId: import_smithy_client.expectString,
|
|
1812
|
+
JobName: import_smithy_client.expectString,
|
|
1813
|
+
JobStatus: import_smithy_client.expectString,
|
|
1814
|
+
Message: import_smithy_client.expectString,
|
|
1815
|
+
OutputDataConfig: import_smithy_client._json,
|
|
1816
|
+
ParallelDataNames: import_smithy_client._json,
|
|
1817
|
+
Settings: import_smithy_client._json,
|
|
1818
|
+
SourceLanguageCode: import_smithy_client.expectString,
|
|
1819
|
+
SubmittedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1820
|
+
TargetLanguageCodes: import_smithy_client._json,
|
|
1821
|
+
TerminologyNames: import_smithy_client._json
|
|
1822
|
+
});
|
|
1823
|
+
}, "de_TextTranslationJobProperties");
|
|
1824
|
+
var de_TextTranslationJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
|
|
1825
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1826
|
+
return de_TextTranslationJobProperties(entry, context);
|
|
1827
|
+
});
|
|
1828
|
+
return retVal;
|
|
1829
|
+
}, "de_TextTranslationJobPropertiesList");
|
|
1830
|
+
var de_TranslatedDocument = /* @__PURE__ */ __name((output, context) => {
|
|
1831
|
+
return (0, import_smithy_client.take)(output, {
|
|
1832
|
+
Content: context.base64Decoder
|
|
1833
|
+
});
|
|
1834
|
+
}, "de_TranslatedDocument");
|
|
1835
|
+
var de_TranslateDocumentResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1836
|
+
return (0, import_smithy_client.take)(output, {
|
|
1837
|
+
AppliedSettings: import_smithy_client._json,
|
|
1838
|
+
AppliedTerminologies: import_smithy_client._json,
|
|
1839
|
+
SourceLanguageCode: import_smithy_client.expectString,
|
|
1840
|
+
TargetLanguageCode: import_smithy_client.expectString,
|
|
1841
|
+
TranslatedDocument: (_) => de_TranslatedDocument(_, context)
|
|
1842
|
+
});
|
|
1843
|
+
}, "de_TranslateDocumentResponse");
|
|
1844
|
+
var de_UpdateParallelDataResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1845
|
+
return (0, import_smithy_client.take)(output, {
|
|
1846
|
+
LatestUpdateAttemptAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1847
|
+
LatestUpdateAttemptStatus: import_smithy_client.expectString,
|
|
1848
|
+
Name: import_smithy_client.expectString,
|
|
1849
|
+
Status: import_smithy_client.expectString
|
|
1850
|
+
});
|
|
1851
|
+
}, "de_UpdateParallelDataResponse");
|
|
1852
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1853
|
+
httpStatusCode: output.statusCode,
|
|
1854
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1855
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1856
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1857
|
+
}), "deserializeMetadata");
|
|
1858
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1859
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(TranslateServiceException);
|
|
1860
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1861
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1862
|
+
const contents = {
|
|
1863
|
+
protocol,
|
|
1864
|
+
hostname,
|
|
1865
|
+
port,
|
|
1866
|
+
method: "POST",
|
|
1867
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1868
|
+
headers
|
|
1869
|
+
};
|
|
1870
|
+
if (resolvedHostname !== void 0) {
|
|
1871
|
+
contents.hostname = resolvedHostname;
|
|
1872
|
+
}
|
|
1873
|
+
if (body !== void 0) {
|
|
1874
|
+
contents.body = body;
|
|
1875
|
+
}
|
|
1876
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
1877
|
+
}, "buildHttpRpcRequest");
|
|
1878
|
+
function sharedHeaders(operation) {
|
|
1879
|
+
return {
|
|
1880
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1881
|
+
"x-amz-target": `AWSShineFrontendService_20170701.${operation}`
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
1885
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1886
|
+
if (encoded.length) {
|
|
1887
|
+
return JSON.parse(encoded);
|
|
1888
|
+
}
|
|
1889
|
+
return {};
|
|
1890
|
+
}), "parseBody");
|
|
1891
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1892
|
+
const value = await parseBody(errorBody, context);
|
|
1893
|
+
value.message = value.message ?? value.Message;
|
|
1894
|
+
return value;
|
|
1895
|
+
}, "parseErrorBody");
|
|
1896
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1897
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1898
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1899
|
+
let cleanValue = rawValue;
|
|
1900
|
+
if (typeof cleanValue === "number") {
|
|
1901
|
+
cleanValue = cleanValue.toString();
|
|
1902
|
+
}
|
|
1903
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1904
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1905
|
+
}
|
|
1906
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1907
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1908
|
+
}
|
|
1909
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1910
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1911
|
+
}
|
|
1912
|
+
return cleanValue;
|
|
1913
|
+
}, "sanitizeErrorCode");
|
|
1914
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1915
|
+
if (headerKey !== void 0) {
|
|
1916
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1917
|
+
}
|
|
1918
|
+
if (data.code !== void 0) {
|
|
1919
|
+
return sanitizeErrorCode(data.code);
|
|
1920
|
+
}
|
|
1921
|
+
if (data["__type"] !== void 0) {
|
|
1922
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1923
|
+
}
|
|
1924
|
+
}, "loadRestJsonErrorCode");
|
|
1925
|
+
|
|
1926
|
+
// src/commands/CreateParallelDataCommand.ts
|
|
1927
|
+
var _CreateParallelDataCommand = class _CreateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1928
|
+
...commonParams
|
|
1929
|
+
}).m(function(Command, cs, config, o) {
|
|
1930
|
+
return [
|
|
1931
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1932
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1933
|
+
];
|
|
1934
|
+
}).s("AWSShineFrontendService_20170701", "CreateParallelData", {}).n("TranslateClient", "CreateParallelDataCommand").f(void 0, void 0).ser(se_CreateParallelDataCommand).de(de_CreateParallelDataCommand).build() {
|
|
1935
|
+
};
|
|
1936
|
+
__name(_CreateParallelDataCommand, "CreateParallelDataCommand");
|
|
1937
|
+
var CreateParallelDataCommand = _CreateParallelDataCommand;
|
|
1938
|
+
|
|
1939
|
+
// src/commands/DeleteParallelDataCommand.ts
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
var _DeleteParallelDataCommand = class _DeleteParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1945
|
+
...commonParams
|
|
1946
|
+
}).m(function(Command, cs, config, o) {
|
|
1947
|
+
return [
|
|
1948
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1949
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1950
|
+
];
|
|
1951
|
+
}).s("AWSShineFrontendService_20170701", "DeleteParallelData", {}).n("TranslateClient", "DeleteParallelDataCommand").f(void 0, void 0).ser(se_DeleteParallelDataCommand).de(de_DeleteParallelDataCommand).build() {
|
|
1952
|
+
};
|
|
1953
|
+
__name(_DeleteParallelDataCommand, "DeleteParallelDataCommand");
|
|
1954
|
+
var DeleteParallelDataCommand = _DeleteParallelDataCommand;
|
|
1955
|
+
|
|
1956
|
+
// src/commands/DeleteTerminologyCommand.ts
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
var _DeleteTerminologyCommand = class _DeleteTerminologyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1962
|
+
...commonParams
|
|
1963
|
+
}).m(function(Command, cs, config, o) {
|
|
1964
|
+
return [
|
|
1965
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1966
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1967
|
+
];
|
|
1968
|
+
}).s("AWSShineFrontendService_20170701", "DeleteTerminology", {}).n("TranslateClient", "DeleteTerminologyCommand").f(void 0, void 0).ser(se_DeleteTerminologyCommand).de(de_DeleteTerminologyCommand).build() {
|
|
1969
|
+
};
|
|
1970
|
+
__name(_DeleteTerminologyCommand, "DeleteTerminologyCommand");
|
|
1971
|
+
var DeleteTerminologyCommand = _DeleteTerminologyCommand;
|
|
1972
|
+
|
|
1973
|
+
// src/commands/DescribeTextTranslationJobCommand.ts
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
var _DescribeTextTranslationJobCommand = class _DescribeTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1979
|
+
...commonParams
|
|
1980
|
+
}).m(function(Command, cs, config, o) {
|
|
1981
|
+
return [
|
|
1982
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1983
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1984
|
+
];
|
|
1985
|
+
}).s("AWSShineFrontendService_20170701", "DescribeTextTranslationJob", {}).n("TranslateClient", "DescribeTextTranslationJobCommand").f(void 0, void 0).ser(se_DescribeTextTranslationJobCommand).de(de_DescribeTextTranslationJobCommand).build() {
|
|
1986
|
+
};
|
|
1987
|
+
__name(_DescribeTextTranslationJobCommand, "DescribeTextTranslationJobCommand");
|
|
1988
|
+
var DescribeTextTranslationJobCommand = _DescribeTextTranslationJobCommand;
|
|
1989
|
+
|
|
1990
|
+
// src/commands/GetParallelDataCommand.ts
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
var _GetParallelDataCommand = class _GetParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1996
|
+
...commonParams
|
|
1997
|
+
}).m(function(Command, cs, config, o) {
|
|
1998
|
+
return [
|
|
1999
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2000
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2001
|
+
];
|
|
2002
|
+
}).s("AWSShineFrontendService_20170701", "GetParallelData", {}).n("TranslateClient", "GetParallelDataCommand").f(void 0, void 0).ser(se_GetParallelDataCommand).de(de_GetParallelDataCommand).build() {
|
|
2003
|
+
};
|
|
2004
|
+
__name(_GetParallelDataCommand, "GetParallelDataCommand");
|
|
2005
|
+
var GetParallelDataCommand = _GetParallelDataCommand;
|
|
2006
|
+
|
|
2007
|
+
// src/commands/GetTerminologyCommand.ts
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
|
|
2012
|
+
var _GetTerminologyCommand = class _GetTerminologyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2013
|
+
...commonParams
|
|
2014
|
+
}).m(function(Command, cs, config, o) {
|
|
2015
|
+
return [
|
|
2016
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2017
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2018
|
+
];
|
|
2019
|
+
}).s("AWSShineFrontendService_20170701", "GetTerminology", {}).n("TranslateClient", "GetTerminologyCommand").f(void 0, void 0).ser(se_GetTerminologyCommand).de(de_GetTerminologyCommand).build() {
|
|
2020
|
+
};
|
|
2021
|
+
__name(_GetTerminologyCommand, "GetTerminologyCommand");
|
|
2022
|
+
var GetTerminologyCommand = _GetTerminologyCommand;
|
|
2023
|
+
|
|
2024
|
+
// src/commands/ImportTerminologyCommand.ts
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
var _ImportTerminologyCommand = class _ImportTerminologyCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2030
|
+
...commonParams
|
|
2031
|
+
}).m(function(Command, cs, config, o) {
|
|
2032
|
+
return [
|
|
2033
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2034
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2035
|
+
];
|
|
2036
|
+
}).s("AWSShineFrontendService_20170701", "ImportTerminology", {}).n("TranslateClient", "ImportTerminologyCommand").f(ImportTerminologyRequestFilterSensitiveLog, void 0).ser(se_ImportTerminologyCommand).de(de_ImportTerminologyCommand).build() {
|
|
2037
|
+
};
|
|
2038
|
+
__name(_ImportTerminologyCommand, "ImportTerminologyCommand");
|
|
2039
|
+
var ImportTerminologyCommand = _ImportTerminologyCommand;
|
|
2040
|
+
|
|
2041
|
+
// src/commands/ListLanguagesCommand.ts
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
var _ListLanguagesCommand = class _ListLanguagesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2047
|
+
...commonParams
|
|
2048
|
+
}).m(function(Command, cs, config, o) {
|
|
2049
|
+
return [
|
|
2050
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2051
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2052
|
+
];
|
|
2053
|
+
}).s("AWSShineFrontendService_20170701", "ListLanguages", {}).n("TranslateClient", "ListLanguagesCommand").f(void 0, void 0).ser(se_ListLanguagesCommand).de(de_ListLanguagesCommand).build() {
|
|
2054
|
+
};
|
|
2055
|
+
__name(_ListLanguagesCommand, "ListLanguagesCommand");
|
|
2056
|
+
var ListLanguagesCommand = _ListLanguagesCommand;
|
|
2057
|
+
|
|
2058
|
+
// src/commands/ListParallelDataCommand.ts
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
var _ListParallelDataCommand = class _ListParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2064
|
+
...commonParams
|
|
2065
|
+
}).m(function(Command, cs, config, o) {
|
|
2066
|
+
return [
|
|
2067
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2068
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2069
|
+
];
|
|
2070
|
+
}).s("AWSShineFrontendService_20170701", "ListParallelData", {}).n("TranslateClient", "ListParallelDataCommand").f(void 0, void 0).ser(se_ListParallelDataCommand).de(de_ListParallelDataCommand).build() {
|
|
2071
|
+
};
|
|
2072
|
+
__name(_ListParallelDataCommand, "ListParallelDataCommand");
|
|
2073
|
+
var ListParallelDataCommand = _ListParallelDataCommand;
|
|
2074
|
+
|
|
2075
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2081
|
+
...commonParams
|
|
2082
|
+
}).m(function(Command, cs, config, o) {
|
|
2083
|
+
return [
|
|
2084
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2085
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2086
|
+
];
|
|
2087
|
+
}).s("AWSShineFrontendService_20170701", "ListTagsForResource", {}).n("TranslateClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2088
|
+
};
|
|
2089
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2090
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2091
|
+
|
|
2092
|
+
// src/commands/ListTerminologiesCommand.ts
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
var _ListTerminologiesCommand = class _ListTerminologiesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2098
|
+
...commonParams
|
|
2099
|
+
}).m(function(Command, cs, config, o) {
|
|
2100
|
+
return [
|
|
2101
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2102
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2103
|
+
];
|
|
2104
|
+
}).s("AWSShineFrontendService_20170701", "ListTerminologies", {}).n("TranslateClient", "ListTerminologiesCommand").f(void 0, void 0).ser(se_ListTerminologiesCommand).de(de_ListTerminologiesCommand).build() {
|
|
2105
|
+
};
|
|
2106
|
+
__name(_ListTerminologiesCommand, "ListTerminologiesCommand");
|
|
2107
|
+
var ListTerminologiesCommand = _ListTerminologiesCommand;
|
|
2108
|
+
|
|
2109
|
+
// src/commands/ListTextTranslationJobsCommand.ts
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
var _ListTextTranslationJobsCommand = class _ListTextTranslationJobsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2115
|
+
...commonParams
|
|
2116
|
+
}).m(function(Command, cs, config, o) {
|
|
2117
|
+
return [
|
|
2118
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2119
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2120
|
+
];
|
|
2121
|
+
}).s("AWSShineFrontendService_20170701", "ListTextTranslationJobs", {}).n("TranslateClient", "ListTextTranslationJobsCommand").f(void 0, void 0).ser(se_ListTextTranslationJobsCommand).de(de_ListTextTranslationJobsCommand).build() {
|
|
2122
|
+
};
|
|
2123
|
+
__name(_ListTextTranslationJobsCommand, "ListTextTranslationJobsCommand");
|
|
2124
|
+
var ListTextTranslationJobsCommand = _ListTextTranslationJobsCommand;
|
|
2125
|
+
|
|
2126
|
+
// src/commands/StartTextTranslationJobCommand.ts
|
|
2127
|
+
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
var _StartTextTranslationJobCommand = class _StartTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2132
|
+
...commonParams
|
|
2133
|
+
}).m(function(Command, cs, config, o) {
|
|
2134
|
+
return [
|
|
2135
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2136
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2137
|
+
];
|
|
2138
|
+
}).s("AWSShineFrontendService_20170701", "StartTextTranslationJob", {}).n("TranslateClient", "StartTextTranslationJobCommand").f(void 0, void 0).ser(se_StartTextTranslationJobCommand).de(de_StartTextTranslationJobCommand).build() {
|
|
2139
|
+
};
|
|
2140
|
+
__name(_StartTextTranslationJobCommand, "StartTextTranslationJobCommand");
|
|
2141
|
+
var StartTextTranslationJobCommand = _StartTextTranslationJobCommand;
|
|
2142
|
+
|
|
2143
|
+
// src/commands/StopTextTranslationJobCommand.ts
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
|
|
2148
|
+
var _StopTextTranslationJobCommand = class _StopTextTranslationJobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2149
|
+
...commonParams
|
|
2150
|
+
}).m(function(Command, cs, config, o) {
|
|
2151
|
+
return [
|
|
2152
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2153
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2154
|
+
];
|
|
2155
|
+
}).s("AWSShineFrontendService_20170701", "StopTextTranslationJob", {}).n("TranslateClient", "StopTextTranslationJobCommand").f(void 0, void 0).ser(se_StopTextTranslationJobCommand).de(de_StopTextTranslationJobCommand).build() {
|
|
2156
|
+
};
|
|
2157
|
+
__name(_StopTextTranslationJobCommand, "StopTextTranslationJobCommand");
|
|
2158
|
+
var StopTextTranslationJobCommand = _StopTextTranslationJobCommand;
|
|
2159
|
+
|
|
2160
|
+
// src/commands/TagResourceCommand.ts
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2166
|
+
...commonParams
|
|
2167
|
+
}).m(function(Command, cs, config, o) {
|
|
2168
|
+
return [
|
|
2169
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2170
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2171
|
+
];
|
|
2172
|
+
}).s("AWSShineFrontendService_20170701", "TagResource", {}).n("TranslateClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2173
|
+
};
|
|
2174
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2175
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2176
|
+
|
|
2177
|
+
// src/commands/TranslateDocumentCommand.ts
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
var _TranslateDocumentCommand = class _TranslateDocumentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2183
|
+
...commonParams
|
|
2184
|
+
}).m(function(Command, cs, config, o) {
|
|
2185
|
+
return [
|
|
2186
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2187
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2188
|
+
];
|
|
2189
|
+
}).s("AWSShineFrontendService_20170701", "TranslateDocument", {}).n("TranslateClient", "TranslateDocumentCommand").f(TranslateDocumentRequestFilterSensitiveLog, TranslateDocumentResponseFilterSensitiveLog).ser(se_TranslateDocumentCommand).de(de_TranslateDocumentCommand).build() {
|
|
2190
|
+
};
|
|
2191
|
+
__name(_TranslateDocumentCommand, "TranslateDocumentCommand");
|
|
2192
|
+
var TranslateDocumentCommand = _TranslateDocumentCommand;
|
|
2193
|
+
|
|
2194
|
+
// src/commands/TranslateTextCommand.ts
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
var _TranslateTextCommand = class _TranslateTextCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2200
|
+
...commonParams
|
|
2201
|
+
}).m(function(Command, cs, config, o) {
|
|
2202
|
+
return [
|
|
2203
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2204
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2205
|
+
];
|
|
2206
|
+
}).s("AWSShineFrontendService_20170701", "TranslateText", {}).n("TranslateClient", "TranslateTextCommand").f(void 0, void 0).ser(se_TranslateTextCommand).de(de_TranslateTextCommand).build() {
|
|
2207
|
+
};
|
|
2208
|
+
__name(_TranslateTextCommand, "TranslateTextCommand");
|
|
2209
|
+
var TranslateTextCommand = _TranslateTextCommand;
|
|
2210
|
+
|
|
2211
|
+
// src/commands/UntagResourceCommand.ts
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2217
|
+
...commonParams
|
|
2218
|
+
}).m(function(Command, cs, config, o) {
|
|
2219
|
+
return [
|
|
2220
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2221
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2222
|
+
];
|
|
2223
|
+
}).s("AWSShineFrontendService_20170701", "UntagResource", {}).n("TranslateClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2224
|
+
};
|
|
2225
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2226
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2227
|
+
|
|
2228
|
+
// src/commands/UpdateParallelDataCommand.ts
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
var _UpdateParallelDataCommand = class _UpdateParallelDataCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2234
|
+
...commonParams
|
|
2235
|
+
}).m(function(Command, cs, config, o) {
|
|
2236
|
+
return [
|
|
2237
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2238
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2239
|
+
];
|
|
2240
|
+
}).s("AWSShineFrontendService_20170701", "UpdateParallelData", {}).n("TranslateClient", "UpdateParallelDataCommand").f(void 0, void 0).ser(se_UpdateParallelDataCommand).de(de_UpdateParallelDataCommand).build() {
|
|
2241
|
+
};
|
|
2242
|
+
__name(_UpdateParallelDataCommand, "UpdateParallelDataCommand");
|
|
2243
|
+
var UpdateParallelDataCommand = _UpdateParallelDataCommand;
|
|
2244
|
+
|
|
2245
|
+
// src/Translate.ts
|
|
2246
|
+
var commands = {
|
|
2247
|
+
CreateParallelDataCommand,
|
|
2248
|
+
DeleteParallelDataCommand,
|
|
2249
|
+
DeleteTerminologyCommand,
|
|
2250
|
+
DescribeTextTranslationJobCommand,
|
|
2251
|
+
GetParallelDataCommand,
|
|
2252
|
+
GetTerminologyCommand,
|
|
2253
|
+
ImportTerminologyCommand,
|
|
2254
|
+
ListLanguagesCommand,
|
|
2255
|
+
ListParallelDataCommand,
|
|
2256
|
+
ListTagsForResourceCommand,
|
|
2257
|
+
ListTerminologiesCommand,
|
|
2258
|
+
ListTextTranslationJobsCommand,
|
|
2259
|
+
StartTextTranslationJobCommand,
|
|
2260
|
+
StopTextTranslationJobCommand,
|
|
2261
|
+
TagResourceCommand,
|
|
2262
|
+
TranslateDocumentCommand,
|
|
2263
|
+
TranslateTextCommand,
|
|
2264
|
+
UntagResourceCommand,
|
|
2265
|
+
UpdateParallelDataCommand
|
|
2266
|
+
};
|
|
2267
|
+
var _Translate = class _Translate extends TranslateClient {
|
|
2268
|
+
};
|
|
2269
|
+
__name(_Translate, "Translate");
|
|
2270
|
+
var Translate = _Translate;
|
|
2271
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Translate);
|
|
2272
|
+
|
|
2273
|
+
// src/pagination/ListLanguagesPaginator.ts
|
|
2274
|
+
var import_core = require("@smithy/core");
|
|
2275
|
+
var paginateListLanguages = (0, import_core.createPaginator)(TranslateClient, ListLanguagesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2276
|
+
|
|
2277
|
+
// src/pagination/ListParallelDataPaginator.ts
|
|
2278
|
+
|
|
2279
|
+
var paginateListParallelData = (0, import_core.createPaginator)(TranslateClient, ListParallelDataCommand, "NextToken", "NextToken", "MaxResults");
|
|
2280
|
+
|
|
2281
|
+
// src/pagination/ListTerminologiesPaginator.ts
|
|
2282
|
+
|
|
2283
|
+
var paginateListTerminologies = (0, import_core.createPaginator)(TranslateClient, ListTerminologiesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2284
|
+
|
|
2285
|
+
// src/pagination/ListTextTranslationJobsPaginator.ts
|
|
2286
|
+
|
|
2287
|
+
var paginateListTextTranslationJobs = (0, import_core.createPaginator)(TranslateClient, ListTextTranslationJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2288
|
+
|
|
2289
|
+
// src/index.ts
|
|
2290
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2291
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2292
|
+
0 && (module.exports = {
|
|
2293
|
+
Brevity,
|
|
2294
|
+
ConcurrentModificationException,
|
|
2295
|
+
ConflictException,
|
|
2296
|
+
CreateParallelDataCommand,
|
|
2297
|
+
DeleteParallelDataCommand,
|
|
2298
|
+
DeleteTerminologyCommand,
|
|
2299
|
+
DescribeTextTranslationJobCommand,
|
|
2300
|
+
DetectedLanguageLowConfidenceException,
|
|
2301
|
+
Directionality,
|
|
2302
|
+
DisplayLanguageCode,
|
|
2303
|
+
DocumentFilterSensitiveLog,
|
|
2304
|
+
EncryptionKeyType,
|
|
2305
|
+
Formality,
|
|
2306
|
+
GetParallelDataCommand,
|
|
2307
|
+
GetTerminologyCommand,
|
|
2308
|
+
ImportTerminologyCommand,
|
|
2309
|
+
ImportTerminologyRequestFilterSensitiveLog,
|
|
2310
|
+
InternalServerException,
|
|
2311
|
+
InvalidFilterException,
|
|
2312
|
+
InvalidParameterValueException,
|
|
2313
|
+
InvalidRequestException,
|
|
2314
|
+
JobStatus,
|
|
2315
|
+
LimitExceededException,
|
|
2316
|
+
ListLanguagesCommand,
|
|
2317
|
+
ListParallelDataCommand,
|
|
2318
|
+
ListTagsForResourceCommand,
|
|
2319
|
+
ListTerminologiesCommand,
|
|
2320
|
+
ListTextTranslationJobsCommand,
|
|
2321
|
+
MergeStrategy,
|
|
2322
|
+
ParallelDataFormat,
|
|
2323
|
+
ParallelDataStatus,
|
|
2324
|
+
Profanity,
|
|
2325
|
+
ResourceNotFoundException,
|
|
2326
|
+
ServiceUnavailableException,
|
|
2327
|
+
StartTextTranslationJobCommand,
|
|
2328
|
+
StopTextTranslationJobCommand,
|
|
2329
|
+
TagResourceCommand,
|
|
2330
|
+
TerminologyDataFilterSensitiveLog,
|
|
2331
|
+
TerminologyDataFormat,
|
|
2332
|
+
TextSizeLimitExceededException,
|
|
2333
|
+
TooManyRequestsException,
|
|
2334
|
+
TooManyTagsException,
|
|
2335
|
+
Translate,
|
|
2336
|
+
TranslateClient,
|
|
2337
|
+
TranslateDocumentCommand,
|
|
2338
|
+
TranslateDocumentRequestFilterSensitiveLog,
|
|
2339
|
+
TranslateDocumentResponseFilterSensitiveLog,
|
|
2340
|
+
TranslateServiceException,
|
|
2341
|
+
TranslateTextCommand,
|
|
2342
|
+
TranslatedDocumentFilterSensitiveLog,
|
|
2343
|
+
UnsupportedDisplayLanguageCodeException,
|
|
2344
|
+
UnsupportedLanguagePairException,
|
|
2345
|
+
UntagResourceCommand,
|
|
2346
|
+
UpdateParallelDataCommand,
|
|
2347
|
+
__Client,
|
|
2348
|
+
paginateListLanguages,
|
|
2349
|
+
paginateListParallelData,
|
|
2350
|
+
paginateListTerminologies,
|
|
2351
|
+
paginateListTextTranslationJobs
|
|
2352
|
+
});
|