@aws-sdk/client-polly 3.181.0 → 3.183.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 CHANGED
@@ -3,6 +3,14 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-polly
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
package/dist-es/Polly.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { DeleteLexiconCommand, } from "./commands/DeleteLexiconCommand";
3
2
  import { DescribeVoicesCommand, } from "./commands/DescribeVoicesCommand";
4
3
  import { GetLexiconCommand } from "./commands/GetLexiconCommand";
@@ -9,137 +8,131 @@ import { PutLexiconCommand } from "./commands/PutLexiconCommand";
9
8
  import { StartSpeechSynthesisTaskCommand, } from "./commands/StartSpeechSynthesisTaskCommand";
10
9
  import { SynthesizeSpeechCommand, } from "./commands/SynthesizeSpeechCommand";
11
10
  import { PollyClient } from "./PollyClient";
12
- var Polly = (function (_super) {
13
- __extends(Polly, _super);
14
- function Polly() {
15
- return _super !== null && _super.apply(this, arguments) || this;
16
- }
17
- Polly.prototype.deleteLexicon = function (args, optionsOrCb, cb) {
18
- var command = new DeleteLexiconCommand(args);
11
+ export class Polly extends PollyClient {
12
+ deleteLexicon(args, optionsOrCb, cb) {
13
+ const command = new DeleteLexiconCommand(args);
19
14
  if (typeof optionsOrCb === "function") {
20
15
  this.send(command, optionsOrCb);
21
16
  }
22
17
  else if (typeof cb === "function") {
23
18
  if (typeof optionsOrCb !== "object")
24
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
19
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
25
20
  this.send(command, optionsOrCb || {}, cb);
26
21
  }
27
22
  else {
28
23
  return this.send(command, optionsOrCb);
29
24
  }
30
- };
31
- Polly.prototype.describeVoices = function (args, optionsOrCb, cb) {
32
- var command = new DescribeVoicesCommand(args);
25
+ }
26
+ describeVoices(args, optionsOrCb, cb) {
27
+ const command = new DescribeVoicesCommand(args);
33
28
  if (typeof optionsOrCb === "function") {
34
29
  this.send(command, optionsOrCb);
35
30
  }
36
31
  else if (typeof cb === "function") {
37
32
  if (typeof optionsOrCb !== "object")
38
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
39
34
  this.send(command, optionsOrCb || {}, cb);
40
35
  }
41
36
  else {
42
37
  return this.send(command, optionsOrCb);
43
38
  }
44
- };
45
- Polly.prototype.getLexicon = function (args, optionsOrCb, cb) {
46
- var command = new GetLexiconCommand(args);
39
+ }
40
+ getLexicon(args, optionsOrCb, cb) {
41
+ const command = new GetLexiconCommand(args);
47
42
  if (typeof optionsOrCb === "function") {
48
43
  this.send(command, optionsOrCb);
49
44
  }
50
45
  else if (typeof cb === "function") {
51
46
  if (typeof optionsOrCb !== "object")
52
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
53
48
  this.send(command, optionsOrCb || {}, cb);
54
49
  }
55
50
  else {
56
51
  return this.send(command, optionsOrCb);
57
52
  }
58
- };
59
- Polly.prototype.getSpeechSynthesisTask = function (args, optionsOrCb, cb) {
60
- var command = new GetSpeechSynthesisTaskCommand(args);
53
+ }
54
+ getSpeechSynthesisTask(args, optionsOrCb, cb) {
55
+ const command = new GetSpeechSynthesisTaskCommand(args);
61
56
  if (typeof optionsOrCb === "function") {
62
57
  this.send(command, optionsOrCb);
63
58
  }
64
59
  else if (typeof cb === "function") {
65
60
  if (typeof optionsOrCb !== "object")
66
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
61
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
62
  this.send(command, optionsOrCb || {}, cb);
68
63
  }
69
64
  else {
70
65
  return this.send(command, optionsOrCb);
71
66
  }
72
- };
73
- Polly.prototype.listLexicons = function (args, optionsOrCb, cb) {
74
- var command = new ListLexiconsCommand(args);
67
+ }
68
+ listLexicons(args, optionsOrCb, cb) {
69
+ const command = new ListLexiconsCommand(args);
75
70
  if (typeof optionsOrCb === "function") {
76
71
  this.send(command, optionsOrCb);
77
72
  }
78
73
  else if (typeof cb === "function") {
79
74
  if (typeof optionsOrCb !== "object")
80
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
75
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
76
  this.send(command, optionsOrCb || {}, cb);
82
77
  }
83
78
  else {
84
79
  return this.send(command, optionsOrCb);
85
80
  }
86
- };
87
- Polly.prototype.listSpeechSynthesisTasks = function (args, optionsOrCb, cb) {
88
- var command = new ListSpeechSynthesisTasksCommand(args);
81
+ }
82
+ listSpeechSynthesisTasks(args, optionsOrCb, cb) {
83
+ const command = new ListSpeechSynthesisTasksCommand(args);
89
84
  if (typeof optionsOrCb === "function") {
90
85
  this.send(command, optionsOrCb);
91
86
  }
92
87
  else if (typeof cb === "function") {
93
88
  if (typeof optionsOrCb !== "object")
94
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
89
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
90
  this.send(command, optionsOrCb || {}, cb);
96
91
  }
97
92
  else {
98
93
  return this.send(command, optionsOrCb);
99
94
  }
100
- };
101
- Polly.prototype.putLexicon = function (args, optionsOrCb, cb) {
102
- var command = new PutLexiconCommand(args);
95
+ }
96
+ putLexicon(args, optionsOrCb, cb) {
97
+ const command = new PutLexiconCommand(args);
103
98
  if (typeof optionsOrCb === "function") {
104
99
  this.send(command, optionsOrCb);
105
100
  }
106
101
  else if (typeof cb === "function") {
107
102
  if (typeof optionsOrCb !== "object")
108
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
104
  this.send(command, optionsOrCb || {}, cb);
110
105
  }
111
106
  else {
112
107
  return this.send(command, optionsOrCb);
113
108
  }
114
- };
115
- Polly.prototype.startSpeechSynthesisTask = function (args, optionsOrCb, cb) {
116
- var command = new StartSpeechSynthesisTaskCommand(args);
109
+ }
110
+ startSpeechSynthesisTask(args, optionsOrCb, cb) {
111
+ const command = new StartSpeechSynthesisTaskCommand(args);
117
112
  if (typeof optionsOrCb === "function") {
118
113
  this.send(command, optionsOrCb);
119
114
  }
120
115
  else if (typeof cb === "function") {
121
116
  if (typeof optionsOrCb !== "object")
122
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
118
  this.send(command, optionsOrCb || {}, cb);
124
119
  }
125
120
  else {
126
121
  return this.send(command, optionsOrCb);
127
122
  }
128
- };
129
- Polly.prototype.synthesizeSpeech = function (args, optionsOrCb, cb) {
130
- var command = new SynthesizeSpeechCommand(args);
123
+ }
124
+ synthesizeSpeech(args, optionsOrCb, cb) {
125
+ const command = new SynthesizeSpeechCommand(args);
131
126
  if (typeof optionsOrCb === "function") {
132
127
  this.send(command, optionsOrCb);
133
128
  }
134
129
  else if (typeof cb === "function") {
135
130
  if (typeof optionsOrCb !== "object")
136
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
131
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
132
  this.send(command, optionsOrCb || {}, cb);
138
133
  }
139
134
  else {
140
135
  return this.send(command, optionsOrCb);
141
136
  }
142
- };
143
- return Polly;
144
- }(PollyClient));
145
- export { Polly };
137
+ }
138
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var PollyClient = (function (_super) {
13
- __extends(PollyClient, _super);
14
- function PollyClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class PollyClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- PollyClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return PollyClient;
38
- }(__Client));
39
- export { PollyClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteLexiconInputFilterSensitiveLog, DeleteLexiconOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteLexiconCommand, serializeAws_restJson1DeleteLexiconCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteLexiconCommand = (function (_super) {
7
- __extends(DeleteLexiconCommand, _super);
8
- function DeleteLexiconCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteLexiconCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteLexiconCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PollyClient";
18
- var commandName = "DeleteLexiconCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PollyClient";
15
+ const commandName = "DeleteLexiconCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteLexiconInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteLexiconOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteLexiconCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteLexiconCommand(input, context);
33
- };
34
- DeleteLexiconCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteLexiconCommand(output, context);
36
- };
37
- return DeleteLexiconCommand;
38
- }($Command));
39
- export { DeleteLexiconCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeVoicesInputFilterSensitiveLog, DescribeVoicesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeVoicesCommand, serializeAws_restJson1DescribeVoicesCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeVoicesCommand = (function (_super) {
7
- __extends(DescribeVoicesCommand, _super);
8
- function DescribeVoicesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeVoicesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeVoicesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PollyClient";
18
- var commandName = "DescribeVoicesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PollyClient";
15
+ const commandName = "DescribeVoicesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeVoicesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeVoicesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeVoicesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeVoicesCommand(input, context);
33
- };
34
- DescribeVoicesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeVoicesCommand(output, context);
36
- };
37
- return DescribeVoicesCommand;
38
- }($Command));
39
- export { DescribeVoicesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetLexiconInputFilterSensitiveLog, GetLexiconOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetLexiconCommand, serializeAws_restJson1GetLexiconCommand, } from "../protocols/Aws_restJson1";
6
- var GetLexiconCommand = (function (_super) {
7
- __extends(GetLexiconCommand, _super);
8
- function GetLexiconCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetLexiconCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetLexiconCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PollyClient";
18
- var commandName = "GetLexiconCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PollyClient";
15
+ const commandName = "GetLexiconCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetLexiconInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetLexiconOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetLexiconCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetLexiconCommand(input, context);
33
- };
34
- GetLexiconCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetLexiconCommand(output, context);
36
- };
37
- return GetLexiconCommand;
38
- }($Command));
39
- export { GetLexiconCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetSpeechSynthesisTaskInputFilterSensitiveLog, GetSpeechSynthesisTaskOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetSpeechSynthesisTaskCommand, serializeAws_restJson1GetSpeechSynthesisTaskCommand, } from "../protocols/Aws_restJson1";
6
- var GetSpeechSynthesisTaskCommand = (function (_super) {
7
- __extends(GetSpeechSynthesisTaskCommand, _super);
8
- function GetSpeechSynthesisTaskCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetSpeechSynthesisTaskCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetSpeechSynthesisTaskCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PollyClient";
18
- var commandName = "GetSpeechSynthesisTaskCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PollyClient";
15
+ const commandName = "GetSpeechSynthesisTaskCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetSpeechSynthesisTaskInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetSpeechSynthesisTaskOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetSpeechSynthesisTaskCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetSpeechSynthesisTaskCommand(input, context);
33
- };
34
- GetSpeechSynthesisTaskCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetSpeechSynthesisTaskCommand(output, context);
36
- };
37
- return GetSpeechSynthesisTaskCommand;
38
- }($Command));
39
- export { GetSpeechSynthesisTaskCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListLexiconsInputFilterSensitiveLog, ListLexiconsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListLexiconsCommand, serializeAws_restJson1ListLexiconsCommand, } from "../protocols/Aws_restJson1";
6
- var ListLexiconsCommand = (function (_super) {
7
- __extends(ListLexiconsCommand, _super);
8
- function ListLexiconsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListLexiconsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListLexiconsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PollyClient";
18
- var commandName = "ListLexiconsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PollyClient";
15
+ const commandName = "ListLexiconsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListLexiconsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListLexiconsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListLexiconsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListLexiconsCommand(input, context);
33
- };
34
- ListLexiconsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListLexiconsCommand(output, context);
36
- };
37
- return ListLexiconsCommand;
38
- }($Command));
39
- export { ListLexiconsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListSpeechSynthesisTasksInputFilterSensitiveLog, ListSpeechSynthesisTasksOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListSpeechSynthesisTasksCommand, serializeAws_restJson1ListSpeechSynthesisTasksCommand, } from "../protocols/Aws_restJson1";
6
- var ListSpeechSynthesisTasksCommand = (function (_super) {
7
- __extends(ListSpeechSynthesisTasksCommand, _super);
8
- function ListSpeechSynthesisTasksCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSpeechSynthesisTasksCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSpeechSynthesisTasksCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PollyClient";
18
- var commandName = "ListSpeechSynthesisTasksCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PollyClient";
15
+ const commandName = "ListSpeechSynthesisTasksCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSpeechSynthesisTasksInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSpeechSynthesisTasksOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSpeechSynthesisTasksCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListSpeechSynthesisTasksCommand(input, context);
33
- };
34
- ListSpeechSynthesisTasksCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListSpeechSynthesisTasksCommand(output, context);
36
- };
37
- return ListSpeechSynthesisTasksCommand;
38
- }($Command));
39
- export { ListSpeechSynthesisTasksCommand };
31
+ }
32
+ }