@aws-sdk/client-translate 3.987.0 → 3.989.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/index.js +38 -986
- package/dist-cjs/models/TranslateServiceException.js +12 -0
- package/dist-cjs/models/errors.js +237 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +650 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +108 -102
- package/dist-types/schemas/schemas_0.d.ts +22 -15
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -15
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslateServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class TranslateServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, TranslateServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TranslateServiceException = TranslateServiceException;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextSizeLimitExceededException = exports.DetectedLanguageLowConfidenceException = exports.ServiceUnavailableException = exports.UnsupportedLanguagePairException = exports.InvalidFilterException = exports.UnsupportedDisplayLanguageCodeException = exports.ResourceNotFoundException = exports.TooManyTagsException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.ConflictException = exports.ConcurrentModificationException = void 0;
|
|
4
|
+
const TranslateServiceException_1 = require("./TranslateServiceException");
|
|
5
|
+
class ConcurrentModificationException extends TranslateServiceException_1.TranslateServiceException {
|
|
6
|
+
name = "ConcurrentModificationException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
Message;
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "ConcurrentModificationException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
16
|
+
this.Message = opts.Message;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
20
|
+
class ConflictException extends TranslateServiceException_1.TranslateServiceException {
|
|
21
|
+
name = "ConflictException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
Message;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "ConflictException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
|
+
this.Message = opts.Message;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ConflictException = ConflictException;
|
|
35
|
+
class InternalServerException extends TranslateServiceException_1.TranslateServiceException {
|
|
36
|
+
name = "InternalServerException";
|
|
37
|
+
$fault = "server";
|
|
38
|
+
Message;
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "InternalServerException",
|
|
42
|
+
$fault: "server",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
46
|
+
this.Message = opts.Message;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.InternalServerException = InternalServerException;
|
|
50
|
+
class InvalidParameterValueException extends TranslateServiceException_1.TranslateServiceException {
|
|
51
|
+
name = "InvalidParameterValueException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
Message;
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "InvalidParameterValueException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
61
|
+
this.Message = opts.Message;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.InvalidParameterValueException = InvalidParameterValueException;
|
|
65
|
+
class InvalidRequestException extends TranslateServiceException_1.TranslateServiceException {
|
|
66
|
+
name = "InvalidRequestException";
|
|
67
|
+
$fault = "client";
|
|
68
|
+
Message;
|
|
69
|
+
constructor(opts) {
|
|
70
|
+
super({
|
|
71
|
+
name: "InvalidRequestException",
|
|
72
|
+
$fault: "client",
|
|
73
|
+
...opts,
|
|
74
|
+
});
|
|
75
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
76
|
+
this.Message = opts.Message;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
80
|
+
class LimitExceededException extends TranslateServiceException_1.TranslateServiceException {
|
|
81
|
+
name = "LimitExceededException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
Message;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "LimitExceededException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
91
|
+
this.Message = opts.Message;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.LimitExceededException = LimitExceededException;
|
|
95
|
+
class TooManyRequestsException extends TranslateServiceException_1.TranslateServiceException {
|
|
96
|
+
name = "TooManyRequestsException";
|
|
97
|
+
$fault = "client";
|
|
98
|
+
Message;
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "TooManyRequestsException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
106
|
+
this.Message = opts.Message;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
110
|
+
class TooManyTagsException extends TranslateServiceException_1.TranslateServiceException {
|
|
111
|
+
name = "TooManyTagsException";
|
|
112
|
+
$fault = "client";
|
|
113
|
+
ResourceArn;
|
|
114
|
+
constructor(opts) {
|
|
115
|
+
super({
|
|
116
|
+
name: "TooManyTagsException",
|
|
117
|
+
$fault: "client",
|
|
118
|
+
...opts,
|
|
119
|
+
});
|
|
120
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
121
|
+
this.ResourceArn = opts.ResourceArn;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
125
|
+
class ResourceNotFoundException extends TranslateServiceException_1.TranslateServiceException {
|
|
126
|
+
name = "ResourceNotFoundException";
|
|
127
|
+
$fault = "client";
|
|
128
|
+
Message;
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "ResourceNotFoundException",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
136
|
+
this.Message = opts.Message;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
140
|
+
class UnsupportedDisplayLanguageCodeException extends TranslateServiceException_1.TranslateServiceException {
|
|
141
|
+
name = "UnsupportedDisplayLanguageCodeException";
|
|
142
|
+
$fault = "client";
|
|
143
|
+
Message;
|
|
144
|
+
DisplayLanguageCode;
|
|
145
|
+
constructor(opts) {
|
|
146
|
+
super({
|
|
147
|
+
name: "UnsupportedDisplayLanguageCodeException",
|
|
148
|
+
$fault: "client",
|
|
149
|
+
...opts,
|
|
150
|
+
});
|
|
151
|
+
Object.setPrototypeOf(this, UnsupportedDisplayLanguageCodeException.prototype);
|
|
152
|
+
this.Message = opts.Message;
|
|
153
|
+
this.DisplayLanguageCode = opts.DisplayLanguageCode;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.UnsupportedDisplayLanguageCodeException = UnsupportedDisplayLanguageCodeException;
|
|
157
|
+
class InvalidFilterException extends TranslateServiceException_1.TranslateServiceException {
|
|
158
|
+
name = "InvalidFilterException";
|
|
159
|
+
$fault = "client";
|
|
160
|
+
Message;
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "InvalidFilterException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, InvalidFilterException.prototype);
|
|
168
|
+
this.Message = opts.Message;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
exports.InvalidFilterException = InvalidFilterException;
|
|
172
|
+
class UnsupportedLanguagePairException extends TranslateServiceException_1.TranslateServiceException {
|
|
173
|
+
name = "UnsupportedLanguagePairException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
Message;
|
|
176
|
+
SourceLanguageCode;
|
|
177
|
+
TargetLanguageCode;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "UnsupportedLanguagePairException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, UnsupportedLanguagePairException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
this.SourceLanguageCode = opts.SourceLanguageCode;
|
|
187
|
+
this.TargetLanguageCode = opts.TargetLanguageCode;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.UnsupportedLanguagePairException = UnsupportedLanguagePairException;
|
|
191
|
+
class ServiceUnavailableException extends TranslateServiceException_1.TranslateServiceException {
|
|
192
|
+
name = "ServiceUnavailableException";
|
|
193
|
+
$fault = "server";
|
|
194
|
+
Message;
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ServiceUnavailableException",
|
|
198
|
+
$fault: "server",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
202
|
+
this.Message = opts.Message;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
206
|
+
class DetectedLanguageLowConfidenceException extends TranslateServiceException_1.TranslateServiceException {
|
|
207
|
+
name = "DetectedLanguageLowConfidenceException";
|
|
208
|
+
$fault = "client";
|
|
209
|
+
Message;
|
|
210
|
+
DetectedLanguageCode;
|
|
211
|
+
constructor(opts) {
|
|
212
|
+
super({
|
|
213
|
+
name: "DetectedLanguageLowConfidenceException",
|
|
214
|
+
$fault: "client",
|
|
215
|
+
...opts,
|
|
216
|
+
});
|
|
217
|
+
Object.setPrototypeOf(this, DetectedLanguageLowConfidenceException.prototype);
|
|
218
|
+
this.Message = opts.Message;
|
|
219
|
+
this.DetectedLanguageCode = opts.DetectedLanguageCode;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
exports.DetectedLanguageLowConfidenceException = DetectedLanguageLowConfidenceException;
|
|
223
|
+
class TextSizeLimitExceededException extends TranslateServiceException_1.TranslateServiceException {
|
|
224
|
+
name = "TextSizeLimitExceededException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
Message;
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "TextSizeLimitExceededException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, TextSizeLimitExceededException.prototype);
|
|
234
|
+
this.Message = opts.Message;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
exports.TextSizeLimitExceededException = TextSizeLimitExceededException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2017-07-01",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.translate",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2017-07-01",
|
|
33
35
|
serviceTarget: "AWSShineFrontendService_20170701",
|
|
34
36
|
},
|