@aws-sdk/client-translate 3.183.0 → 3.186.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 (35) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Translate.js +81 -74
  4. package/dist-es/TranslateClient.js +28 -22
  5. package/dist-es/commands/CreateParallelDataCommand.js +28 -21
  6. package/dist-es/commands/DeleteParallelDataCommand.js +28 -21
  7. package/dist-es/commands/DeleteTerminologyCommand.js +29 -22
  8. package/dist-es/commands/DescribeTextTranslationJobCommand.js +28 -21
  9. package/dist-es/commands/GetParallelDataCommand.js +28 -21
  10. package/dist-es/commands/GetTerminologyCommand.js +28 -21
  11. package/dist-es/commands/ImportTerminologyCommand.js +28 -21
  12. package/dist-es/commands/ListLanguagesCommand.js +28 -21
  13. package/dist-es/commands/ListParallelDataCommand.js +28 -21
  14. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  15. package/dist-es/commands/ListTerminologiesCommand.js +28 -21
  16. package/dist-es/commands/ListTextTranslationJobsCommand.js +28 -21
  17. package/dist-es/commands/StartTextTranslationJobCommand.js +28 -21
  18. package/dist-es/commands/StopTextTranslationJobCommand.js +28 -21
  19. package/dist-es/commands/TagResourceCommand.js +28 -21
  20. package/dist-es/commands/TranslateTextCommand.js +28 -21
  21. package/dist-es/commands/UntagResourceCommand.js +28 -21
  22. package/dist-es/commands/UpdateParallelDataCommand.js +28 -21
  23. package/dist-es/endpoints.js +8 -8
  24. package/dist-es/models/TranslateServiceException.js +10 -5
  25. package/dist-es/models/models_0.js +237 -342
  26. package/dist-es/pagination/ListLanguagesPaginator.js +68 -25
  27. package/dist-es/pagination/ListParallelDataPaginator.js +68 -25
  28. package/dist-es/pagination/ListTerminologiesPaginator.js +68 -25
  29. package/dist-es/pagination/ListTextTranslationJobsPaginator.js +68 -25
  30. package/dist-es/protocols/Aws_json1_1.js +1765 -1407
  31. package/dist-es/runtimeConfig.browser.js +12 -26
  32. package/dist-es/runtimeConfig.js +12 -30
  33. package/dist-es/runtimeConfig.native.js +5 -8
  34. package/dist-es/runtimeConfig.shared.js +11 -8
  35. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeTextTranslationJobRequestFilterSensitiveLog, DescribeTextTranslationJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeTextTranslationJobCommand, serializeAws_json1_1DescribeTextTranslationJobCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeTextTranslationJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeTextTranslationJobCommand = (function (_super) {
7
+ __extends(DescribeTextTranslationJobCommand, _super);
8
+ function DescribeTextTranslationJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeTextTranslationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "DescribeTextTranslationJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "DescribeTextTranslationJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeTextTranslationJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeTextTranslationJobResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeTextTranslationJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeTextTranslationJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeTextTranslationJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeTextTranslationJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeTextTranslationJobCommand;
38
+ }($Command));
39
+ export { DescribeTextTranslationJobCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetParallelDataRequestFilterSensitiveLog, GetParallelDataResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetParallelDataCommand, serializeAws_json1_1GetParallelDataCommand, } from "../protocols/Aws_json1_1";
5
- export class GetParallelDataCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetParallelDataCommand = (function (_super) {
7
+ __extends(GetParallelDataCommand, _super);
8
+ function GetParallelDataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetParallelDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "GetParallelDataCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "GetParallelDataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetParallelDataRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetParallelDataResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetParallelDataCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetParallelDataCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetParallelDataCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetParallelDataCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetParallelDataCommand;
38
+ }($Command));
39
+ export { GetParallelDataCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetTerminologyRequestFilterSensitiveLog, GetTerminologyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetTerminologyCommand, serializeAws_json1_1GetTerminologyCommand, } from "../protocols/Aws_json1_1";
5
- export class GetTerminologyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetTerminologyCommand = (function (_super) {
7
+ __extends(GetTerminologyCommand, _super);
8
+ function GetTerminologyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "GetTerminologyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "GetTerminologyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetTerminologyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetTerminologyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetTerminologyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetTerminologyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetTerminologyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetTerminologyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetTerminologyCommand;
38
+ }($Command));
39
+ export { GetTerminologyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ImportTerminologyRequestFilterSensitiveLog, ImportTerminologyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ImportTerminologyCommand, serializeAws_json1_1ImportTerminologyCommand, } from "../protocols/Aws_json1_1";
5
- export class ImportTerminologyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ImportTerminologyCommand = (function (_super) {
7
+ __extends(ImportTerminologyCommand, _super);
8
+ function ImportTerminologyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ImportTerminologyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "ImportTerminologyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "ImportTerminologyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ImportTerminologyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ImportTerminologyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ImportTerminologyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ImportTerminologyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ImportTerminologyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ImportTerminologyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ImportTerminologyCommand;
38
+ }($Command));
39
+ export { ImportTerminologyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListLanguagesRequestFilterSensitiveLog, ListLanguagesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListLanguagesCommand, serializeAws_json1_1ListLanguagesCommand, } from "../protocols/Aws_json1_1";
5
- export class ListLanguagesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListLanguagesCommand = (function (_super) {
7
+ __extends(ListLanguagesCommand, _super);
8
+ function ListLanguagesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListLanguagesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "ListLanguagesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "ListLanguagesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListLanguagesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListLanguagesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListLanguagesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListLanguagesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListLanguagesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListLanguagesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListLanguagesCommand;
38
+ }($Command));
39
+ export { ListLanguagesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListParallelDataRequestFilterSensitiveLog, ListParallelDataResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListParallelDataCommand, serializeAws_json1_1ListParallelDataCommand, } from "../protocols/Aws_json1_1";
5
- export class ListParallelDataCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListParallelDataCommand = (function (_super) {
7
+ __extends(ListParallelDataCommand, _super);
8
+ function ListParallelDataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListParallelDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "ListParallelDataCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "ListParallelDataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListParallelDataRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListParallelDataResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListParallelDataCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListParallelDataCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListParallelDataCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListParallelDataCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListParallelDataCommand;
38
+ }($Command));
39
+ export { ListParallelDataCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "ListTagsForResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTerminologiesRequestFilterSensitiveLog, ListTerminologiesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTerminologiesCommand, serializeAws_json1_1ListTerminologiesCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTerminologiesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTerminologiesCommand = (function (_super) {
7
+ __extends(ListTerminologiesCommand, _super);
8
+ function ListTerminologiesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTerminologiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "ListTerminologiesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "ListTerminologiesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTerminologiesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTerminologiesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTerminologiesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTerminologiesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTerminologiesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTerminologiesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTerminologiesCommand;
38
+ }($Command));
39
+ export { ListTerminologiesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListTextTranslationJobsRequestFilterSensitiveLog, ListTextTranslationJobsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTextTranslationJobsCommand, serializeAws_json1_1ListTextTranslationJobsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTextTranslationJobsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTextTranslationJobsCommand = (function (_super) {
7
+ __extends(ListTextTranslationJobsCommand, _super);
8
+ function ListTextTranslationJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTextTranslationJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "ListTextTranslationJobsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "ListTextTranslationJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTextTranslationJobsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTextTranslationJobsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTextTranslationJobsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTextTranslationJobsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTextTranslationJobsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTextTranslationJobsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTextTranslationJobsCommand;
38
+ }($Command));
39
+ export { ListTextTranslationJobsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartTextTranslationJobRequestFilterSensitiveLog, StartTextTranslationJobResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1StartTextTranslationJobCommand, serializeAws_json1_1StartTextTranslationJobCommand, } from "../protocols/Aws_json1_1";
5
- export class StartTextTranslationJobCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartTextTranslationJobCommand = (function (_super) {
7
+ __extends(StartTextTranslationJobCommand, _super);
8
+ function StartTextTranslationJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartTextTranslationJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "TranslateClient";
15
- const commandName = "StartTextTranslationJobCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "TranslateClient";
18
+ var commandName = "StartTextTranslationJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartTextTranslationJobRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartTextTranslationJobResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartTextTranslationJobCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1StartTextTranslationJobCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartTextTranslationJobCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1StartTextTranslationJobCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartTextTranslationJobCommand;
38
+ }($Command));
39
+ export { StartTextTranslationJobCommand };