@aws-sdk/client-translate 3.51.0 → 3.54.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-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./TranslateClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { TranslateServiceException } from "./models/TranslateServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var TranslateServiceException = (function (_super) {
4
+ __extends(TranslateServiceException, _super);
5
+ function TranslateServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, TranslateServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return TranslateServiceException;
11
+ }(__ServiceException));
12
+ export { TranslateServiceException };
@@ -1,5 +1,6 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
3
4
  export var Term;
4
5
  (function (Term) {
5
6
  Term.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -8,6 +9,19 @@ export var AppliedTerminology;
8
9
  (function (AppliedTerminology) {
9
10
  AppliedTerminology.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
11
  })(AppliedTerminology || (AppliedTerminology = {}));
12
+ var ConflictException = (function (_super) {
13
+ __extends(ConflictException, _super);
14
+ function ConflictException(opts) {
15
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
16
+ _this.name = "ConflictException";
17
+ _this.$fault = "client";
18
+ Object.setPrototypeOf(_this, ConflictException.prototype);
19
+ _this.Message = opts.Message;
20
+ return _this;
21
+ }
22
+ return ConflictException;
23
+ }(__BaseException));
24
+ export { ConflictException };
11
25
  export var EncryptionKeyType;
12
26
  (function (EncryptionKeyType) {
13
27
  EncryptionKeyType["KMS"] = "KMS";
@@ -42,6 +56,84 @@ export var CreateParallelDataResponse;
42
56
  (function (CreateParallelDataResponse) {
43
57
  CreateParallelDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
44
58
  })(CreateParallelDataResponse || (CreateParallelDataResponse = {}));
59
+ var InternalServerException = (function (_super) {
60
+ __extends(InternalServerException, _super);
61
+ function InternalServerException(opts) {
62
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
63
+ _this.name = "InternalServerException";
64
+ _this.$fault = "server";
65
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
66
+ _this.Message = opts.Message;
67
+ return _this;
68
+ }
69
+ return InternalServerException;
70
+ }(__BaseException));
71
+ export { InternalServerException };
72
+ var InvalidParameterValueException = (function (_super) {
73
+ __extends(InvalidParameterValueException, _super);
74
+ function InvalidParameterValueException(opts) {
75
+ var _this = _super.call(this, __assign({ name: "InvalidParameterValueException", $fault: "client" }, opts)) || this;
76
+ _this.name = "InvalidParameterValueException";
77
+ _this.$fault = "client";
78
+ Object.setPrototypeOf(_this, InvalidParameterValueException.prototype);
79
+ _this.Message = opts.Message;
80
+ return _this;
81
+ }
82
+ return InvalidParameterValueException;
83
+ }(__BaseException));
84
+ export { InvalidParameterValueException };
85
+ var InvalidRequestException = (function (_super) {
86
+ __extends(InvalidRequestException, _super);
87
+ function InvalidRequestException(opts) {
88
+ var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
89
+ _this.name = "InvalidRequestException";
90
+ _this.$fault = "client";
91
+ Object.setPrototypeOf(_this, InvalidRequestException.prototype);
92
+ _this.Message = opts.Message;
93
+ return _this;
94
+ }
95
+ return InvalidRequestException;
96
+ }(__BaseException));
97
+ export { InvalidRequestException };
98
+ var LimitExceededException = (function (_super) {
99
+ __extends(LimitExceededException, _super);
100
+ function LimitExceededException(opts) {
101
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
102
+ _this.name = "LimitExceededException";
103
+ _this.$fault = "client";
104
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
105
+ _this.Message = opts.Message;
106
+ return _this;
107
+ }
108
+ return LimitExceededException;
109
+ }(__BaseException));
110
+ export { LimitExceededException };
111
+ var TooManyRequestsException = (function (_super) {
112
+ __extends(TooManyRequestsException, _super);
113
+ function TooManyRequestsException(opts) {
114
+ var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
115
+ _this.name = "TooManyRequestsException";
116
+ _this.$fault = "client";
117
+ Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
118
+ _this.Message = opts.Message;
119
+ return _this;
120
+ }
121
+ return TooManyRequestsException;
122
+ }(__BaseException));
123
+ export { TooManyRequestsException };
124
+ var ConcurrentModificationException = (function (_super) {
125
+ __extends(ConcurrentModificationException, _super);
126
+ function ConcurrentModificationException(opts) {
127
+ var _this = _super.call(this, __assign({ name: "ConcurrentModificationException", $fault: "client" }, opts)) || this;
128
+ _this.name = "ConcurrentModificationException";
129
+ _this.$fault = "client";
130
+ Object.setPrototypeOf(_this, ConcurrentModificationException.prototype);
131
+ _this.Message = opts.Message;
132
+ return _this;
133
+ }
134
+ return ConcurrentModificationException;
135
+ }(__BaseException));
136
+ export { ConcurrentModificationException };
45
137
  export var DeleteParallelDataRequest;
46
138
  (function (DeleteParallelDataRequest) {
47
139
  DeleteParallelDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -50,6 +142,19 @@ export var DeleteParallelDataResponse;
50
142
  (function (DeleteParallelDataResponse) {
51
143
  DeleteParallelDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
52
144
  })(DeleteParallelDataResponse || (DeleteParallelDataResponse = {}));
145
+ var ResourceNotFoundException = (function (_super) {
146
+ __extends(ResourceNotFoundException, _super);
147
+ function ResourceNotFoundException(opts) {
148
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
149
+ _this.name = "ResourceNotFoundException";
150
+ _this.$fault = "client";
151
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
152
+ _this.Message = opts.Message;
153
+ return _this;
154
+ }
155
+ return ResourceNotFoundException;
156
+ }(__BaseException));
157
+ export { ResourceNotFoundException };
53
158
  export var DeleteTerminologyRequest;
54
159
  (function (DeleteTerminologyRequest) {
55
160
  DeleteTerminologyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -80,6 +185,11 @@ export var OutputDataConfig;
80
185
  (function (OutputDataConfig) {
81
186
  OutputDataConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
187
  })(OutputDataConfig || (OutputDataConfig = {}));
188
+ export var Formality;
189
+ (function (Formality) {
190
+ Formality["FORMAL"] = "FORMAL";
191
+ Formality["INFORMAL"] = "INFORMAL";
192
+ })(Formality || (Formality = {}));
83
193
  export var Profanity;
84
194
  (function (Profanity) {
85
195
  Profanity["MASK"] = "MASK";
@@ -171,6 +281,19 @@ export var ListTerminologiesResponse;
171
281
  (function (ListTerminologiesResponse) {
172
282
  ListTerminologiesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
173
283
  })(ListTerminologiesResponse || (ListTerminologiesResponse = {}));
284
+ var InvalidFilterException = (function (_super) {
285
+ __extends(InvalidFilterException, _super);
286
+ function InvalidFilterException(opts) {
287
+ var _this = _super.call(this, __assign({ name: "InvalidFilterException", $fault: "client" }, opts)) || this;
288
+ _this.name = "InvalidFilterException";
289
+ _this.$fault = "client";
290
+ Object.setPrototypeOf(_this, InvalidFilterException.prototype);
291
+ _this.Message = opts.Message;
292
+ return _this;
293
+ }
294
+ return InvalidFilterException;
295
+ }(__BaseException));
296
+ export { InvalidFilterException };
174
297
  export var TextTranslationJobFilter;
175
298
  (function (TextTranslationJobFilter) {
176
299
  TextTranslationJobFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -191,6 +314,21 @@ export var StartTextTranslationJobResponse;
191
314
  (function (StartTextTranslationJobResponse) {
192
315
  StartTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
316
  })(StartTextTranslationJobResponse || (StartTextTranslationJobResponse = {}));
317
+ var UnsupportedLanguagePairException = (function (_super) {
318
+ __extends(UnsupportedLanguagePairException, _super);
319
+ function UnsupportedLanguagePairException(opts) {
320
+ var _this = _super.call(this, __assign({ name: "UnsupportedLanguagePairException", $fault: "client" }, opts)) || this;
321
+ _this.name = "UnsupportedLanguagePairException";
322
+ _this.$fault = "client";
323
+ Object.setPrototypeOf(_this, UnsupportedLanguagePairException.prototype);
324
+ _this.Message = opts.Message;
325
+ _this.SourceLanguageCode = opts.SourceLanguageCode;
326
+ _this.TargetLanguageCode = opts.TargetLanguageCode;
327
+ return _this;
328
+ }
329
+ return UnsupportedLanguagePairException;
330
+ }(__BaseException));
331
+ export { UnsupportedLanguagePairException };
194
332
  export var StopTextTranslationJobRequest;
195
333
  (function (StopTextTranslationJobRequest) {
196
334
  StopTextTranslationJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -199,6 +337,46 @@ export var StopTextTranslationJobResponse;
199
337
  (function (StopTextTranslationJobResponse) {
200
338
  StopTextTranslationJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
339
  })(StopTextTranslationJobResponse || (StopTextTranslationJobResponse = {}));
340
+ var DetectedLanguageLowConfidenceException = (function (_super) {
341
+ __extends(DetectedLanguageLowConfidenceException, _super);
342
+ function DetectedLanguageLowConfidenceException(opts) {
343
+ var _this = _super.call(this, __assign({ name: "DetectedLanguageLowConfidenceException", $fault: "client" }, opts)) || this;
344
+ _this.name = "DetectedLanguageLowConfidenceException";
345
+ _this.$fault = "client";
346
+ Object.setPrototypeOf(_this, DetectedLanguageLowConfidenceException.prototype);
347
+ _this.Message = opts.Message;
348
+ _this.DetectedLanguageCode = opts.DetectedLanguageCode;
349
+ return _this;
350
+ }
351
+ return DetectedLanguageLowConfidenceException;
352
+ }(__BaseException));
353
+ export { DetectedLanguageLowConfidenceException };
354
+ var ServiceUnavailableException = (function (_super) {
355
+ __extends(ServiceUnavailableException, _super);
356
+ function ServiceUnavailableException(opts) {
357
+ var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
358
+ _this.name = "ServiceUnavailableException";
359
+ _this.$fault = "server";
360
+ Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
361
+ _this.Message = opts.Message;
362
+ return _this;
363
+ }
364
+ return ServiceUnavailableException;
365
+ }(__BaseException));
366
+ export { ServiceUnavailableException };
367
+ var TextSizeLimitExceededException = (function (_super) {
368
+ __extends(TextSizeLimitExceededException, _super);
369
+ function TextSizeLimitExceededException(opts) {
370
+ var _this = _super.call(this, __assign({ name: "TextSizeLimitExceededException", $fault: "client" }, opts)) || this;
371
+ _this.name = "TextSizeLimitExceededException";
372
+ _this.$fault = "client";
373
+ Object.setPrototypeOf(_this, TextSizeLimitExceededException.prototype);
374
+ _this.Message = opts.Message;
375
+ return _this;
376
+ }
377
+ return TextSizeLimitExceededException;
378
+ }(__BaseException));
379
+ export { TextSizeLimitExceededException };
202
380
  export var TranslateTextRequest;
203
381
  (function (TranslateTextRequest) {
204
382
  TranslateTextRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };