@aws-sdk/client-redshift-data 3.478.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/BatchExecuteStatementCommand.js +18 -41
  2. package/dist-cjs/commands/CancelStatementCommand.js +18 -41
  3. package/dist-cjs/commands/DescribeStatementCommand.js +18 -41
  4. package/dist-cjs/commands/DescribeTableCommand.js +18 -41
  5. package/dist-cjs/commands/ExecuteStatementCommand.js +18 -41
  6. package/dist-cjs/commands/GetStatementResultCommand.js +18 -41
  7. package/dist-cjs/commands/ListDatabasesCommand.js +18 -41
  8. package/dist-cjs/commands/ListSchemasCommand.js +18 -41
  9. package/dist-cjs/commands/ListStatementsCommand.js +18 -41
  10. package/dist-cjs/commands/ListTablesCommand.js +18 -41
  11. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  12. package/dist-es/commands/BatchExecuteStatementCommand.js +18 -41
  13. package/dist-es/commands/CancelStatementCommand.js +18 -41
  14. package/dist-es/commands/DescribeStatementCommand.js +18 -41
  15. package/dist-es/commands/DescribeTableCommand.js +18 -41
  16. package/dist-es/commands/ExecuteStatementCommand.js +18 -41
  17. package/dist-es/commands/GetStatementResultCommand.js +18 -41
  18. package/dist-es/commands/ListDatabasesCommand.js +18 -41
  19. package/dist-es/commands/ListSchemasCommand.js +18 -41
  20. package/dist-es/commands/ListStatementsCommand.js +18 -41
  21. package/dist-es/commands/ListTablesCommand.js +18 -41
  22. package/dist-es/endpoint/EndpointParameters.js +6 -0
  23. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +6 -21
  24. package/dist-types/commands/CancelStatementCommand.d.ts +6 -21
  25. package/dist-types/commands/DescribeStatementCommand.d.ts +6 -21
  26. package/dist-types/commands/DescribeTableCommand.d.ts +6 -21
  27. package/dist-types/commands/ExecuteStatementCommand.d.ts +6 -21
  28. package/dist-types/commands/GetStatementResultCommand.d.ts +6 -21
  29. package/dist-types/commands/ListDatabasesCommand.d.ts +6 -21
  30. package/dist-types/commands/ListSchemasCommand.d.ts +6 -21
  31. package/dist-types/commands/ListStatementsCommand.d.ts +6 -21
  32. package/dist-types/commands/ListTablesCommand.d.ts +6 -21
  33. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  34. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +12 -24
  35. package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +14 -23
  36. package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +14 -23
  37. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +14 -23
  38. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +14 -23
  39. package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +14 -23
  40. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +14 -23
  41. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +14 -23
  42. package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +14 -23
  43. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +14 -23
  44. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  45. package/package.json +9 -9
@@ -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_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class ListTablesCommand 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, ListTablesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RedshiftDataClient";
29
- const commandName = "ListTablesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RedshiftData",
38
- operation: "ListTables",
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_json1_1_1.se_ListTablesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_ListTablesCommand)(output, context);
49
- }
10
+ class ListTablesCommand 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("RedshiftData", "ListTables", {})
22
+ .n("RedshiftDataClient", "ListTablesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_ListTablesCommand)
25
+ .de(Aws_json1_1_1.de_ListTablesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListTablesCommand = ListTablesCommand;
@@ -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
+ };
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_BatchExecuteStatementCommand, se_BatchExecuteStatementCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class BatchExecuteStatementCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, BatchExecuteStatementCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "BatchExecuteStatementCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "BatchExecuteStatement",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_BatchExecuteStatementCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchExecuteStatementCommand(output, context);
46
- }
7
+ export class BatchExecuteStatementCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "BatchExecuteStatement", {})
19
+ .n("RedshiftDataClient", "BatchExecuteStatementCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchExecuteStatementCommand)
22
+ .de(de_BatchExecuteStatementCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CancelStatementCommand, se_CancelStatementCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CancelStatementCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CancelStatementCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "CancelStatementCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "CancelStatement",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CancelStatementCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CancelStatementCommand(output, context);
46
- }
7
+ export class CancelStatementCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "CancelStatement", {})
19
+ .n("RedshiftDataClient", "CancelStatementCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CancelStatementCommand)
22
+ .de(de_CancelStatementCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeStatementCommand, se_DescribeStatementCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeStatementCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeStatementCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "DescribeStatementCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "DescribeStatement",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeStatementCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeStatementCommand(output, context);
46
- }
7
+ export class DescribeStatementCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "DescribeStatement", {})
19
+ .n("RedshiftDataClient", "DescribeStatementCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeStatementCommand)
22
+ .de(de_DescribeStatementCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeTableCommand, se_DescribeTableCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTableCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeTableCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "DescribeTableCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "DescribeTable",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeTableCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTableCommand(output, context);
46
- }
7
+ export class DescribeTableCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "DescribeTable", {})
19
+ .n("RedshiftDataClient", "DescribeTableCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTableCommand)
22
+ .de(de_DescribeTableCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ExecuteStatementCommand, se_ExecuteStatementCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ExecuteStatementCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ExecuteStatementCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "ExecuteStatementCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "ExecuteStatement",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ExecuteStatementCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ExecuteStatementCommand(output, context);
46
- }
7
+ export class ExecuteStatementCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "ExecuteStatement", {})
19
+ .n("RedshiftDataClient", "ExecuteStatementCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ExecuteStatementCommand)
22
+ .de(de_ExecuteStatementCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetStatementResultCommand, se_GetStatementResultCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetStatementResultCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetStatementResultCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "GetStatementResultCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "GetStatementResult",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetStatementResultCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetStatementResultCommand(output, context);
46
- }
7
+ export class GetStatementResultCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "GetStatementResult", {})
19
+ .n("RedshiftDataClient", "GetStatementResultCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetStatementResultCommand)
22
+ .de(de_GetStatementResultCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListDatabasesCommand, se_ListDatabasesCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListDatabasesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListDatabasesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "ListDatabasesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "ListDatabases",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListDatabasesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListDatabasesCommand(output, context);
46
- }
7
+ export class ListDatabasesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "ListDatabases", {})
19
+ .n("RedshiftDataClient", "ListDatabasesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListDatabasesCommand)
22
+ .de(de_ListDatabasesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListSchemasCommand, se_ListSchemasCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListSchemasCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListSchemasCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RedshiftDataClient";
26
- const commandName = "ListSchemasCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RedshiftData",
35
- operation: "ListSchemas",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListSchemasCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListSchemasCommand(output, context);
46
- }
7
+ export class ListSchemasCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RedshiftData", "ListSchemas", {})
19
+ .n("RedshiftDataClient", "ListSchemasCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListSchemasCommand)
22
+ .de(de_ListSchemasCommand)
23
+ .build() {
47
24
  }