@aws-sdk/client-translate 3.180.0 → 3.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist-cjs/Translate.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +50 -8
- package/dist-cjs/protocols/Aws_json1_1.js +275 -16
- package/dist-es/Translate.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +29 -9
- package/dist-es/protocols/Aws_json1_1.js +378 -58
- package/dist-types/Translate.d.ts +12 -0
- package/dist-types/TranslateClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +18 -0
- package/dist-types/commands/TagResourceCommand.d.ts +18 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +18 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +69 -8
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Translate.d.ts +51 -0
- package/dist-types/ts3.4/TranslateClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +56 -7
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **client-translate:** This release enables customers to access control rights on Translate resources like Parallel Data and Custom Terminology using Tag Based Authorization. ([2426699](https://github.com/aws/aws-sdk-js-v3/commit/24266996622e1325ec3e6a57bb75dfd6434f1964))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @aws-sdk/client-translate
|
package/dist-cjs/Translate.js
CHANGED
|
@@ -10,11 +10,14 @@ const GetTerminologyCommand_1 = require("./commands/GetTerminologyCommand");
|
|
|
10
10
|
const ImportTerminologyCommand_1 = require("./commands/ImportTerminologyCommand");
|
|
11
11
|
const ListLanguagesCommand_1 = require("./commands/ListLanguagesCommand");
|
|
12
12
|
const ListParallelDataCommand_1 = require("./commands/ListParallelDataCommand");
|
|
13
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
13
14
|
const ListTerminologiesCommand_1 = require("./commands/ListTerminologiesCommand");
|
|
14
15
|
const ListTextTranslationJobsCommand_1 = require("./commands/ListTextTranslationJobsCommand");
|
|
15
16
|
const StartTextTranslationJobCommand_1 = require("./commands/StartTextTranslationJobCommand");
|
|
16
17
|
const StopTextTranslationJobCommand_1 = require("./commands/StopTextTranslationJobCommand");
|
|
18
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
17
19
|
const TranslateTextCommand_1 = require("./commands/TranslateTextCommand");
|
|
20
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
18
21
|
const UpdateParallelDataCommand_1 = require("./commands/UpdateParallelDataCommand");
|
|
19
22
|
const TranslateClient_1 = require("./TranslateClient");
|
|
20
23
|
class Translate extends TranslateClient_1.TranslateClient {
|
|
@@ -144,6 +147,20 @@ class Translate extends TranslateClient_1.TranslateClient {
|
|
|
144
147
|
return this.send(command, optionsOrCb);
|
|
145
148
|
}
|
|
146
149
|
}
|
|
150
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
151
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
152
|
+
if (typeof optionsOrCb === "function") {
|
|
153
|
+
this.send(command, optionsOrCb);
|
|
154
|
+
}
|
|
155
|
+
else if (typeof cb === "function") {
|
|
156
|
+
if (typeof optionsOrCb !== "object")
|
|
157
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
return this.send(command, optionsOrCb);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
147
164
|
listTerminologies(args, optionsOrCb, cb) {
|
|
148
165
|
const command = new ListTerminologiesCommand_1.ListTerminologiesCommand(args);
|
|
149
166
|
if (typeof optionsOrCb === "function") {
|
|
@@ -200,6 +217,20 @@ class Translate extends TranslateClient_1.TranslateClient {
|
|
|
200
217
|
return this.send(command, optionsOrCb);
|
|
201
218
|
}
|
|
202
219
|
}
|
|
220
|
+
tagResource(args, optionsOrCb, cb) {
|
|
221
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
222
|
+
if (typeof optionsOrCb === "function") {
|
|
223
|
+
this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
else if (typeof cb === "function") {
|
|
226
|
+
if (typeof optionsOrCb !== "object")
|
|
227
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
return this.send(command, optionsOrCb);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
203
234
|
translateText(args, optionsOrCb, cb) {
|
|
204
235
|
const command = new TranslateTextCommand_1.TranslateTextCommand(args);
|
|
205
236
|
if (typeof optionsOrCb === "function") {
|
|
@@ -214,6 +245,20 @@ class Translate extends TranslateClient_1.TranslateClient {
|
|
|
214
245
|
return this.send(command, optionsOrCb);
|
|
215
246
|
}
|
|
216
247
|
}
|
|
248
|
+
untagResource(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
250
|
+
if (typeof optionsOrCb === "function") {
|
|
251
|
+
this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
else if (typeof cb === "function") {
|
|
254
|
+
if (typeof optionsOrCb !== "object")
|
|
255
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return this.send(command, optionsOrCb);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
217
262
|
updateParallelData(args, optionsOrCb, cb) {
|
|
218
263
|
const command = new UpdateParallelDataCommand_1.UpdateParallelDataCommand(args);
|
|
219
264
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTagsForResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListTagsForResourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "TranslateClient";
|
|
18
|
+
const commandName = "ListTagsForResourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class TagResourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "TranslateClient";
|
|
18
|
+
const commandName = "TagResourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.TagResourceRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.TagResourceResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1TagResourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1TagResourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UntagResourceCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class UntagResourceCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "TranslateClient";
|
|
18
|
+
const commandName = "UntagResourceCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UntagResourceRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UntagResourceResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1UntagResourceCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1UntagResourceCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
@@ -10,9 +10,12 @@ tslib_1.__exportStar(require("./GetTerminologyCommand"), exports);
|
|
|
10
10
|
tslib_1.__exportStar(require("./ImportTerminologyCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./ListLanguagesCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./ListParallelDataCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./ListTerminologiesCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./ListTextTranslationJobsCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./StartTextTranslationJobCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./StopTextTranslationJobCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./TranslateTextCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
18
21
|
tslib_1.__exportStar(require("./UpdateParallelDataCommand"), exports);
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateParallelDataResponseFilterSensitiveLog = exports.UpdateParallelDataRequestFilterSensitiveLog = exports.TranslateTextResponseFilterSensitiveLog = exports.TranslateTextRequestFilterSensitiveLog = exports.StopTextTranslationJobResponseFilterSensitiveLog = exports.StopTextTranslationJobRequestFilterSensitiveLog = exports.StartTextTranslationJobResponseFilterSensitiveLog = exports.StartTextTranslationJobRequestFilterSensitiveLog = exports.ListTextTranslationJobsResponseFilterSensitiveLog = exports.ListTextTranslationJobsRequestFilterSensitiveLog = exports.TextTranslationJobFilterFilterSensitiveLog = exports.ListTerminologiesResponseFilterSensitiveLog = exports.ListTerminologiesRequestFilterSensitiveLog = exports.ListParallelDataResponseFilterSensitiveLog = exports.ListParallelDataRequestFilterSensitiveLog = exports.ListLanguagesResponseFilterSensitiveLog = exports.LanguageFilterSensitiveLog = exports.ListLanguagesRequestFilterSensitiveLog = exports.ImportTerminologyResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.GetTerminologyResponseFilterSensitiveLog = exports.TerminologyPropertiesFilterSensitiveLog = exports.TerminologyDataLocationFilterSensitiveLog = exports.GetTerminologyRequestFilterSensitiveLog = exports.GetParallelDataResponseFilterSensitiveLog = exports.ParallelDataPropertiesFilterSensitiveLog = exports.ParallelDataDataLocationFilterSensitiveLog = exports.GetParallelDataRequestFilterSensitiveLog = exports.DescribeTextTranslationJobResponseFilterSensitiveLog = exports.TextTranslationJobPropertiesFilterSensitiveLog = exports.TranslationSettingsFilterSensitiveLog = exports.OutputDataConfigFilterSensitiveLog = exports.JobDetailsFilterSensitiveLog = exports.InputDataConfigFilterSensitiveLog = exports.DescribeTextTranslationJobRequestFilterSensitiveLog = exports.DeleteTerminologyRequestFilterSensitiveLog = exports.DeleteParallelDataResponseFilterSensitiveLog = exports.DeleteParallelDataRequestFilterSensitiveLog = exports.CreateParallelDataResponseFilterSensitiveLog = exports.CreateParallelDataRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ParallelDataConfigFilterSensitiveLog = exports.EncryptionKeyFilterSensitiveLog = exports.AppliedTerminologyFilterSensitiveLog = exports.TermFilterSensitiveLog = exports.TextSizeLimitExceededException = exports.ServiceUnavailableException = exports.DetectedLanguageLowConfidenceException = exports.UnsupportedLanguagePairException = exports.InvalidFilterException = exports.UnsupportedDisplayLanguageCodeException = exports.DisplayLanguageCode = exports.MergeStrategy = exports.Directionality = exports.TerminologyDataFormat = exports.Profanity = exports.Formality = exports.JobStatus = exports.ResourceNotFoundException = exports.TooManyTagsException = exports.TooManyRequestsException = exports.LimitExceededException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.InternalServerException = exports.ParallelDataStatus = exports.ParallelDataFormat = exports.EncryptionKeyType = exports.ConflictException = exports.ConcurrentModificationException = void 0;
|
|
4
|
+
exports.UpdateParallelDataResponseFilterSensitiveLog = exports.UpdateParallelDataRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TranslateTextResponseFilterSensitiveLog = exports.TranslateTextRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StopTextTranslationJobResponseFilterSensitiveLog = exports.StopTextTranslationJobRequestFilterSensitiveLog = exports.StartTextTranslationJobResponseFilterSensitiveLog = exports.StartTextTranslationJobRequestFilterSensitiveLog = exports.ListTextTranslationJobsResponseFilterSensitiveLog = exports.ListTextTranslationJobsRequestFilterSensitiveLog = exports.TextTranslationJobFilterFilterSensitiveLog = exports.ListTerminologiesResponseFilterSensitiveLog = exports.ListTerminologiesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListParallelDataResponseFilterSensitiveLog = exports.ListParallelDataRequestFilterSensitiveLog = exports.ListLanguagesResponseFilterSensitiveLog = exports.LanguageFilterSensitiveLog = exports.ListLanguagesRequestFilterSensitiveLog = exports.ImportTerminologyResponseFilterSensitiveLog = exports.ImportTerminologyRequestFilterSensitiveLog = exports.TerminologyDataFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const TranslateServiceException_1 = require("./TranslateServiceException");
|
|
7
|
+
class ConcurrentModificationException extends TranslateServiceException_1.TranslateServiceException {
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ConcurrentModificationException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
this.name = "ConcurrentModificationException";
|
|
15
|
+
this.$fault = "client";
|
|
16
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
17
|
+
this.Message = opts.Message;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
7
21
|
class ConflictException extends TranslateServiceException_1.TranslateServiceException {
|
|
8
22
|
constructor(opts) {
|
|
9
23
|
super({
|
|
@@ -106,20 +120,20 @@ class TooManyRequestsException extends TranslateServiceException_1.TranslateServ
|
|
|
106
120
|
}
|
|
107
121
|
}
|
|
108
122
|
exports.TooManyRequestsException = TooManyRequestsException;
|
|
109
|
-
class
|
|
123
|
+
class TooManyTagsException extends TranslateServiceException_1.TranslateServiceException {
|
|
110
124
|
constructor(opts) {
|
|
111
125
|
super({
|
|
112
|
-
name: "
|
|
126
|
+
name: "TooManyTagsException",
|
|
113
127
|
$fault: "client",
|
|
114
128
|
...opts,
|
|
115
129
|
});
|
|
116
|
-
this.name = "
|
|
130
|
+
this.name = "TooManyTagsException";
|
|
117
131
|
this.$fault = "client";
|
|
118
|
-
Object.setPrototypeOf(this,
|
|
119
|
-
this.
|
|
132
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
133
|
+
this.ResourceArn = opts.ResourceArn;
|
|
120
134
|
}
|
|
121
135
|
}
|
|
122
|
-
exports.
|
|
136
|
+
exports.TooManyTagsException = TooManyTagsException;
|
|
123
137
|
class ResourceNotFoundException extends TranslateServiceException_1.TranslateServiceException {
|
|
124
138
|
constructor(opts) {
|
|
125
139
|
super({
|
|
@@ -285,6 +299,10 @@ const ParallelDataConfigFilterSensitiveLog = (obj) => ({
|
|
|
285
299
|
...obj,
|
|
286
300
|
});
|
|
287
301
|
exports.ParallelDataConfigFilterSensitiveLog = ParallelDataConfigFilterSensitiveLog;
|
|
302
|
+
const TagFilterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
});
|
|
305
|
+
exports.TagFilterSensitiveLog = TagFilterSensitiveLog;
|
|
288
306
|
const CreateParallelDataRequestFilterSensitiveLog = (obj) => ({
|
|
289
307
|
...obj,
|
|
290
308
|
});
|
|
@@ -399,6 +417,14 @@ const ListParallelDataResponseFilterSensitiveLog = (obj) => ({
|
|
|
399
417
|
...obj,
|
|
400
418
|
});
|
|
401
419
|
exports.ListParallelDataResponseFilterSensitiveLog = ListParallelDataResponseFilterSensitiveLog;
|
|
420
|
+
const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
421
|
+
...obj,
|
|
422
|
+
});
|
|
423
|
+
exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog;
|
|
424
|
+
const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
425
|
+
...obj,
|
|
426
|
+
});
|
|
427
|
+
exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
|
|
402
428
|
const ListTerminologiesRequestFilterSensitiveLog = (obj) => ({
|
|
403
429
|
...obj,
|
|
404
430
|
});
|
|
@@ -435,6 +461,14 @@ const StopTextTranslationJobResponseFilterSensitiveLog = (obj) => ({
|
|
|
435
461
|
...obj,
|
|
436
462
|
});
|
|
437
463
|
exports.StopTextTranslationJobResponseFilterSensitiveLog = StopTextTranslationJobResponseFilterSensitiveLog;
|
|
464
|
+
const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
465
|
+
...obj,
|
|
466
|
+
});
|
|
467
|
+
exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
|
|
468
|
+
const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
469
|
+
...obj,
|
|
470
|
+
});
|
|
471
|
+
exports.TagResourceResponseFilterSensitiveLog = TagResourceResponseFilterSensitiveLog;
|
|
438
472
|
const TranslateTextRequestFilterSensitiveLog = (obj) => ({
|
|
439
473
|
...obj,
|
|
440
474
|
});
|
|
@@ -443,6 +477,14 @@ const TranslateTextResponseFilterSensitiveLog = (obj) => ({
|
|
|
443
477
|
...obj,
|
|
444
478
|
});
|
|
445
479
|
exports.TranslateTextResponseFilterSensitiveLog = TranslateTextResponseFilterSensitiveLog;
|
|
480
|
+
const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
481
|
+
...obj,
|
|
482
|
+
});
|
|
483
|
+
exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
|
|
484
|
+
const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
485
|
+
...obj,
|
|
486
|
+
});
|
|
487
|
+
exports.UntagResourceResponseFilterSensitiveLog = UntagResourceResponseFilterSensitiveLog;
|
|
446
488
|
const UpdateParallelDataRequestFilterSensitiveLog = (obj) => ({
|
|
447
489
|
...obj,
|
|
448
490
|
});
|