@aws-sdk/client-polly 3.477.0 → 3.481.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 (45) hide show
  1. package/dist-cjs/commands/DeleteLexiconCommand.js +18 -41
  2. package/dist-cjs/commands/DescribeVoicesCommand.js +18 -41
  3. package/dist-cjs/commands/GetLexiconCommand.js +18 -41
  4. package/dist-cjs/commands/GetSpeechSynthesisTaskCommand.js +18 -41
  5. package/dist-cjs/commands/ListLexiconsCommand.js +18 -41
  6. package/dist-cjs/commands/ListSpeechSynthesisTasksCommand.js +18 -41
  7. package/dist-cjs/commands/PutLexiconCommand.js +18 -41
  8. package/dist-cjs/commands/StartSpeechSynthesisTaskCommand.js +18 -41
  9. package/dist-cjs/commands/SynthesizeSpeechCommand.js +18 -41
  10. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  11. package/dist-cjs/pagination/ListSpeechSynthesisTasksPaginator.js +2 -24
  12. package/dist-es/commands/DeleteLexiconCommand.js +18 -41
  13. package/dist-es/commands/DescribeVoicesCommand.js +18 -41
  14. package/dist-es/commands/GetLexiconCommand.js +18 -41
  15. package/dist-es/commands/GetSpeechSynthesisTaskCommand.js +18 -41
  16. package/dist-es/commands/ListLexiconsCommand.js +18 -41
  17. package/dist-es/commands/ListSpeechSynthesisTasksCommand.js +18 -41
  18. package/dist-es/commands/PutLexiconCommand.js +18 -41
  19. package/dist-es/commands/StartSpeechSynthesisTaskCommand.js +18 -41
  20. package/dist-es/commands/SynthesizeSpeechCommand.js +18 -41
  21. package/dist-es/endpoint/EndpointParameters.js +6 -0
  22. package/dist-es/pagination/ListSpeechSynthesisTasksPaginator.js +2 -23
  23. package/dist-types/commands/DeleteLexiconCommand.d.ts +6 -21
  24. package/dist-types/commands/DescribeVoicesCommand.d.ts +6 -21
  25. package/dist-types/commands/GetLexiconCommand.d.ts +6 -21
  26. package/dist-types/commands/GetSpeechSynthesisTaskCommand.d.ts +6 -21
  27. package/dist-types/commands/ListLexiconsCommand.d.ts +6 -21
  28. package/dist-types/commands/ListSpeechSynthesisTasksCommand.d.ts +6 -21
  29. package/dist-types/commands/PutLexiconCommand.d.ts +6 -21
  30. package/dist-types/commands/StartSpeechSynthesisTaskCommand.d.ts +6 -21
  31. package/dist-types/commands/SynthesizeSpeechCommand.d.ts +6 -21
  32. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  33. package/dist-types/pagination/ListSpeechSynthesisTasksPaginator.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/DeleteLexiconCommand.d.ts +14 -23
  35. package/dist-types/ts3.4/commands/DescribeVoicesCommand.d.ts +14 -23
  36. package/dist-types/ts3.4/commands/GetLexiconCommand.d.ts +14 -23
  37. package/dist-types/ts3.4/commands/GetSpeechSynthesisTaskCommand.d.ts +12 -24
  38. package/dist-types/ts3.4/commands/ListLexiconsCommand.d.ts +14 -23
  39. package/dist-types/ts3.4/commands/ListSpeechSynthesisTasksCommand.d.ts +12 -24
  40. package/dist-types/ts3.4/commands/PutLexiconCommand.d.ts +14 -23
  41. package/dist-types/ts3.4/commands/StartSpeechSynthesisTaskCommand.d.ts +12 -24
  42. package/dist-types/ts3.4/commands/SynthesizeSpeechCommand.d.ts +13 -20
  43. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  44. package/dist-types/ts3.4/pagination/ListSpeechSynthesisTasksPaginator.d.ts +3 -3
  45. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DeleteLexiconCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteLexiconCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "PollyClient";
29
- const commandName = "DeleteLexiconCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Parrot_v1",
38
- operation: "DeleteLexicon",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DeleteLexiconCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteLexiconCommand)(output, context);
49
- }
10
+ class DeleteLexiconCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Parrot_v1", "DeleteLexicon", {})
22
+ .n("PollyClient", "DeleteLexiconCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteLexiconCommand)
25
+ .de(Aws_restJson1_1.de_DeleteLexiconCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteLexiconCommand = DeleteLexiconCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeVoicesCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeVoicesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "PollyClient";
29
- const commandName = "DescribeVoicesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Parrot_v1",
38
- operation: "DescribeVoices",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeVoicesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeVoicesCommand)(output, context);
49
- }
10
+ class DescribeVoicesCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Parrot_v1", "DescribeVoices", {})
22
+ .n("PollyClient", "DescribeVoicesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DescribeVoicesCommand)
25
+ .de(Aws_restJson1_1.de_DescribeVoicesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DescribeVoicesCommand = DescribeVoicesCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class GetLexiconCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetLexiconCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "PollyClient";
30
- const commandName = "GetLexiconCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.GetLexiconOutputFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Parrot_v1",
39
- operation: "GetLexicon",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_GetLexiconCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_GetLexiconCommand)(output, context);
50
- }
11
+ class GetLexiconCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Parrot_v1", "GetLexicon", {})
23
+ .n("PollyClient", "GetLexiconCommand")
24
+ .f(void 0, models_0_1.GetLexiconOutputFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_GetLexiconCommand)
26
+ .de(Aws_restJson1_1.de_GetLexiconCommand)
27
+ .build() {
51
28
  }
52
29
  exports.GetLexiconCommand = GetLexiconCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetSpeechSynthesisTaskCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSpeechSynthesisTaskCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "PollyClient";
29
- const commandName = "GetSpeechSynthesisTaskCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Parrot_v1",
38
- operation: "GetSpeechSynthesisTask",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetSpeechSynthesisTaskCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetSpeechSynthesisTaskCommand)(output, context);
49
- }
10
+ class GetSpeechSynthesisTaskCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Parrot_v1", "GetSpeechSynthesisTask", {})
22
+ .n("PollyClient", "GetSpeechSynthesisTaskCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetSpeechSynthesisTaskCommand)
25
+ .de(Aws_restJson1_1.de_GetSpeechSynthesisTaskCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetSpeechSynthesisTaskCommand = GetSpeechSynthesisTaskCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListLexiconsCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListLexiconsCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "PollyClient";
29
- const commandName = "ListLexiconsCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Parrot_v1",
38
- operation: "ListLexicons",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListLexiconsCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListLexiconsCommand)(output, context);
49
- }
10
+ class ListLexiconsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Parrot_v1", "ListLexicons", {})
22
+ .n("PollyClient", "ListLexiconsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListLexiconsCommand)
25
+ .de(Aws_restJson1_1.de_ListLexiconsCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListLexiconsCommand = ListLexiconsCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListSpeechSynthesisTasksCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListSpeechSynthesisTasksCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "PollyClient";
29
- const commandName = "ListSpeechSynthesisTasksCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Parrot_v1",
38
- operation: "ListSpeechSynthesisTasks",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListSpeechSynthesisTasksCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListSpeechSynthesisTasksCommand)(output, context);
49
- }
10
+ class ListSpeechSynthesisTasksCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Parrot_v1", "ListSpeechSynthesisTasks", {})
22
+ .n("PollyClient", "ListSpeechSynthesisTasksCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListSpeechSynthesisTasksCommand)
25
+ .de(Aws_restJson1_1.de_ListSpeechSynthesisTasksCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListSpeechSynthesisTasksCommand = ListSpeechSynthesisTasksCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class PutLexiconCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutLexiconCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "PollyClient";
30
- const commandName = "PutLexiconCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.PutLexiconInputFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Parrot_v1",
39
- operation: "PutLexicon",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_PutLexiconCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_PutLexiconCommand)(output, context);
50
- }
11
+ class PutLexiconCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Parrot_v1", "PutLexicon", {})
23
+ .n("PollyClient", "PutLexiconCommand")
24
+ .f(models_0_1.PutLexiconInputFilterSensitiveLog, void 0)
25
+ .ser(Aws_restJson1_1.se_PutLexiconCommand)
26
+ .de(Aws_restJson1_1.de_PutLexiconCommand)
27
+ .build() {
51
28
  }
52
29
  exports.PutLexiconCommand = PutLexiconCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class StartSpeechSynthesisTaskCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartSpeechSynthesisTaskCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "PollyClient";
29
- const commandName = "StartSpeechSynthesisTaskCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "Parrot_v1",
38
- operation: "StartSpeechSynthesisTask",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_StartSpeechSynthesisTaskCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_StartSpeechSynthesisTaskCommand)(output, context);
49
- }
10
+ class StartSpeechSynthesisTaskCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Parrot_v1", "StartSpeechSynthesisTask", {})
22
+ .n("PollyClient", "StartSpeechSynthesisTaskCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_StartSpeechSynthesisTaskCommand)
25
+ .de(Aws_restJson1_1.de_StartSpeechSynthesisTaskCommand)
26
+ .build() {
50
27
  }
51
28
  exports.StartSpeechSynthesisTaskCommand = StartSpeechSynthesisTaskCommand;
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class SynthesizeSpeechCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SynthesizeSpeechCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "PollyClient";
30
- const commandName = "SynthesizeSpeechCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.SynthesizeSpeechOutputFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "Parrot_v1",
39
- operation: "SynthesizeSpeech",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_SynthesizeSpeechCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_SynthesizeSpeechCommand)(output, context);
50
- }
11
+ class SynthesizeSpeechCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("Parrot_v1", "SynthesizeSpeech", {})
23
+ .n("PollyClient", "SynthesizeSpeechCommand")
24
+ .f(void 0, models_0_1.SynthesizeSpeechOutputFilterSensitiveLog)
25
+ .ser(Aws_restJson1_1.se_SynthesizeSpeechCommand)
26
+ .de(Aws_restJson1_1.de_SynthesizeSpeechCommand)
27
+ .build() {
51
28
  }
52
29
  exports.SynthesizeSpeechCommand = SynthesizeSpeechCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };