@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.
Files changed (32) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist-cjs/Translate.js +45 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +50 -8
  8. package/dist-cjs/protocols/Aws_json1_1.js +275 -16
  9. package/dist-es/Translate.js +45 -0
  10. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  11. package/dist-es/commands/TagResourceCommand.js +39 -0
  12. package/dist-es/commands/UntagResourceCommand.js +39 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +29 -9
  15. package/dist-es/protocols/Aws_json1_1.js +378 -58
  16. package/dist-types/Translate.d.ts +12 -0
  17. package/dist-types/TranslateClient.d.ts +5 -2
  18. package/dist-types/commands/ListTagsForResourceCommand.d.ts +18 -0
  19. package/dist-types/commands/TagResourceCommand.d.ts +18 -0
  20. package/dist-types/commands/UntagResourceCommand.d.ts +18 -0
  21. package/dist-types/commands/index.d.ts +3 -0
  22. package/dist-types/models/models_0.d.ts +69 -8
  23. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  24. package/dist-types/ts3.4/Translate.d.ts +51 -0
  25. package/dist-types/ts3.4/TranslateClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
  27. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  28. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +56 -7
  31. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  32. package/package.json +3 -3
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1TagResourceCommand(input, context);
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1TagResourceCommand(output, context);
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: UntagResourceResponseFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UntagResourceCommand(input, context);
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UntagResourceCommand(output, context);
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -7,9 +7,12 @@ export * from "./GetTerminologyCommand";
7
7
  export * from "./ImportTerminologyCommand";
8
8
  export * from "./ListLanguagesCommand";
9
9
  export * from "./ListParallelDataCommand";
10
+ export * from "./ListTagsForResourceCommand";
10
11
  export * from "./ListTerminologiesCommand";
11
12
  export * from "./ListTextTranslationJobsCommand";
12
13
  export * from "./StartTextTranslationJobCommand";
13
14
  export * from "./StopTextTranslationJobCommand";
15
+ export * from "./TagResourceCommand";
14
16
  export * from "./TranslateTextCommand";
17
+ export * from "./UntagResourceCommand";
15
18
  export * from "./UpdateParallelDataCommand";
@@ -1,6 +1,19 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
3
  import { TranslateServiceException as __BaseException } from "./TranslateServiceException";
4
+ var ConcurrentModificationException = (function (_super) {
5
+ __extends(ConcurrentModificationException, _super);
6
+ function ConcurrentModificationException(opts) {
7
+ var _this = _super.call(this, __assign({ name: "ConcurrentModificationException", $fault: "client" }, opts)) || this;
8
+ _this.name = "ConcurrentModificationException";
9
+ _this.$fault = "client";
10
+ Object.setPrototypeOf(_this, ConcurrentModificationException.prototype);
11
+ _this.Message = opts.Message;
12
+ return _this;
13
+ }
14
+ return ConcurrentModificationException;
15
+ }(__BaseException));
16
+ export { ConcurrentModificationException };
4
17
  var ConflictException = (function (_super) {
5
18
  __extends(ConflictException, _super);
6
19
  function ConflictException(opts) {
@@ -97,19 +110,19 @@ var TooManyRequestsException = (function (_super) {
97
110
  return TooManyRequestsException;
98
111
  }(__BaseException));
99
112
  export { TooManyRequestsException };
100
- var ConcurrentModificationException = (function (_super) {
101
- __extends(ConcurrentModificationException, _super);
102
- function ConcurrentModificationException(opts) {
103
- var _this = _super.call(this, __assign({ name: "ConcurrentModificationException", $fault: "client" }, opts)) || this;
104
- _this.name = "ConcurrentModificationException";
113
+ var TooManyTagsException = (function (_super) {
114
+ __extends(TooManyTagsException, _super);
115
+ function TooManyTagsException(opts) {
116
+ var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
117
+ _this.name = "TooManyTagsException";
105
118
  _this.$fault = "client";
106
- Object.setPrototypeOf(_this, ConcurrentModificationException.prototype);
107
- _this.Message = opts.Message;
119
+ Object.setPrototypeOf(_this, TooManyTagsException.prototype);
120
+ _this.ResourceArn = opts.ResourceArn;
108
121
  return _this;
109
122
  }
110
- return ConcurrentModificationException;
123
+ return TooManyTagsException;
111
124
  }(__BaseException));
112
- export { ConcurrentModificationException };
125
+ export { TooManyTagsException };
113
126
  var ResourceNotFoundException = (function (_super) {
114
127
  __extends(ResourceNotFoundException, _super);
115
128
  function ResourceNotFoundException(opts) {
@@ -256,6 +269,7 @@ export var TermFilterSensitiveLog = function (obj) { return (__assign({}, obj));
256
269
  export var AppliedTerminologyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
270
  export var EncryptionKeyFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
271
  export var ParallelDataConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
+ export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
273
  export var CreateParallelDataRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
274
  export var CreateParallelDataResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
275
  export var DeleteParallelDataRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -284,6 +298,8 @@ export var LanguageFilterSensitiveLog = function (obj) { return (__assign({}, ob
284
298
  export var ListLanguagesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
285
299
  export var ListParallelDataRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
300
  export var ListParallelDataResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
302
+ export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
287
303
  export var ListTerminologiesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
288
304
  export var ListTerminologiesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
289
305
  export var TextTranslationJobFilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -293,7 +309,11 @@ export var StartTextTranslationJobRequestFilterSensitiveLog = function (obj) { r
293
309
  export var StartTextTranslationJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
294
310
  export var StopTextTranslationJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
295
311
  export var StopTextTranslationJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
312
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
313
+ export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
314
  export var TranslateTextRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
315
  export var TranslateTextResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
317
+ export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
298
318
  export var UpdateParallelDataRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
299
319
  export var UpdateParallelDataResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };