@aws-sdk/client-redshift-data 3.35.0 → 3.38.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 (173) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/RedshiftData.js +0 -8
  3. package/dist-cjs/RedshiftDataClient.js +0 -13
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -39
  5. package/dist-cjs/commands/CancelStatementCommand.js +0 -25
  6. package/dist-cjs/commands/DescribeStatementCommand.js +0 -27
  7. package/dist-cjs/commands/DescribeTableCommand.js +0 -40
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -39
  9. package/dist-cjs/commands/GetStatementResultCommand.js +0 -26
  10. package/dist-cjs/commands/ListDatabasesCommand.js +0 -39
  11. package/dist-cjs/commands/ListSchemasCommand.js +0 -39
  12. package/dist-cjs/commands/ListStatementsCommand.js +0 -26
  13. package/dist-cjs/commands/ListTablesCommand.js +0 -40
  14. package/dist-cjs/commands/index.js +13 -0
  15. package/dist-cjs/endpoints.js +1 -2
  16. package/dist-cjs/index.js +4 -20
  17. package/dist-cjs/models/index.js +0 -1
  18. package/dist-cjs/models/models_0.js +0 -97
  19. package/dist-cjs/pagination/DescribeTablePaginator.js +0 -11
  20. package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -11
  21. package/dist-cjs/pagination/Interfaces.js +0 -1
  22. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -11
  23. package/dist-cjs/pagination/ListSchemasPaginator.js +0 -11
  24. package/dist-cjs/pagination/ListStatementsPaginator.js +0 -11
  25. package/dist-cjs/pagination/ListTablesPaginator.js +0 -11
  26. package/dist-cjs/pagination/index.js +10 -0
  27. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  28. package/dist-cjs/runtimeConfig.browser.js +1 -6
  29. package/dist-cjs/runtimeConfig.js +2 -7
  30. package/dist-cjs/runtimeConfig.native.js +0 -4
  31. package/dist-cjs/runtimeConfig.shared.js +0 -4
  32. package/dist-es/RedshiftData.js +0 -1
  33. package/dist-es/RedshiftDataClient.js +0 -1
  34. package/dist-es/commands/BatchExecuteStatementCommand.js +0 -1
  35. package/dist-es/commands/CancelStatementCommand.js +0 -1
  36. package/dist-es/commands/DescribeStatementCommand.js +0 -1
  37. package/dist-es/commands/DescribeTableCommand.js +0 -1
  38. package/dist-es/commands/ExecuteStatementCommand.js +0 -1
  39. package/dist-es/commands/GetStatementResultCommand.js +0 -1
  40. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  41. package/dist-es/commands/ListSchemasCommand.js +0 -1
  42. package/dist-es/commands/ListStatementsCommand.js +0 -1
  43. package/dist-es/commands/ListTablesCommand.js +0 -1
  44. package/dist-es/commands/index.js +10 -0
  45. package/dist-es/endpoints.js +1 -2
  46. package/dist-es/index.js +4 -20
  47. package/dist-es/models/index.js +0 -1
  48. package/dist-es/models/models_0.js +0 -1
  49. package/dist-es/pagination/DescribeTablePaginator.js +0 -1
  50. package/dist-es/pagination/GetStatementResultPaginator.js +0 -1
  51. package/dist-es/pagination/Interfaces.js +0 -1
  52. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  53. package/dist-es/pagination/ListSchemasPaginator.js +0 -1
  54. package/dist-es/pagination/ListStatementsPaginator.js +0 -1
  55. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  56. package/dist-es/pagination/index.js +7 -0
  57. package/dist-es/protocols/Aws_json1_1.js +0 -1
  58. package/dist-es/runtimeConfig.browser.js +1 -2
  59. package/dist-es/runtimeConfig.js +2 -3
  60. package/dist-es/runtimeConfig.native.js +0 -1
  61. package/dist-es/runtimeConfig.shared.js +0 -1
  62. package/dist-types/commands/index.d.ts +10 -0
  63. package/dist-types/index.d.ts +4 -19
  64. package/dist-types/pagination/index.d.ts +7 -0
  65. package/dist-types/ts3.4/RedshiftData.d.ts +11 -127
  66. package/dist-types/ts3.4/RedshiftDataClient.d.ts +24 -93
  67. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -34
  68. package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +2 -20
  69. package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +2 -22
  70. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -35
  71. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -34
  72. package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +2 -21
  73. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -34
  74. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +2 -34
  75. package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +2 -21
  76. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -35
  77. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  78. package/dist-types/ts3.4/index.d.ts +4 -19
  79. package/dist-types/ts3.4/models/models_0.d.ts +198 -688
  80. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  85. package/package.json +33 -30
  86. package/dist-cjs/RedshiftData.js.map +0 -1
  87. package/dist-cjs/RedshiftDataClient.js.map +0 -1
  88. package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  89. package/dist-cjs/commands/CancelStatementCommand.js.map +0 -1
  90. package/dist-cjs/commands/DescribeStatementCommand.js.map +0 -1
  91. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  92. package/dist-cjs/commands/ExecuteStatementCommand.js.map +0 -1
  93. package/dist-cjs/commands/GetStatementResultCommand.js.map +0 -1
  94. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  95. package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
  96. package/dist-cjs/commands/ListStatementsCommand.js.map +0 -1
  97. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  98. package/dist-cjs/endpoints.js.map +0 -1
  99. package/dist-cjs/index.js.map +0 -1
  100. package/dist-cjs/models/index.js.map +0 -1
  101. package/dist-cjs/models/models_0.js.map +0 -1
  102. package/dist-cjs/pagination/DescribeTablePaginator.js.map +0 -1
  103. package/dist-cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  104. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  105. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  106. package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
  107. package/dist-cjs/pagination/ListStatementsPaginator.js.map +0 -1
  108. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  109. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  110. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  111. package/dist-cjs/runtimeConfig.js.map +0 -1
  112. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  113. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  114. package/dist-es/RedshiftData.js.map +0 -1
  115. package/dist-es/RedshiftDataClient.js.map +0 -1
  116. package/dist-es/commands/BatchExecuteStatementCommand.js.map +0 -1
  117. package/dist-es/commands/CancelStatementCommand.js.map +0 -1
  118. package/dist-es/commands/DescribeStatementCommand.js.map +0 -1
  119. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  120. package/dist-es/commands/ExecuteStatementCommand.js.map +0 -1
  121. package/dist-es/commands/GetStatementResultCommand.js.map +0 -1
  122. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  123. package/dist-es/commands/ListSchemasCommand.js.map +0 -1
  124. package/dist-es/commands/ListStatementsCommand.js.map +0 -1
  125. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  126. package/dist-es/endpoints.js.map +0 -1
  127. package/dist-es/index.js.map +0 -1
  128. package/dist-es/models/index.js.map +0 -1
  129. package/dist-es/models/models_0.js.map +0 -1
  130. package/dist-es/pagination/DescribeTablePaginator.js.map +0 -1
  131. package/dist-es/pagination/GetStatementResultPaginator.js.map +0 -1
  132. package/dist-es/pagination/Interfaces.js.map +0 -1
  133. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  134. package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
  135. package/dist-es/pagination/ListStatementsPaginator.js.map +0 -1
  136. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  137. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  138. package/dist-es/runtimeConfig.browser.js.map +0 -1
  139. package/dist-es/runtimeConfig.js.map +0 -1
  140. package/dist-es/runtimeConfig.native.js.map +0 -1
  141. package/dist-es/runtimeConfig.shared.js.map +0 -1
  142. package/jest.config.js +0 -4
  143. package/src/RedshiftData.ts +0 -452
  144. package/src/RedshiftDataClient.ts +0 -273
  145. package/src/commands/BatchExecuteStatementCommand.ts +0 -109
  146. package/src/commands/CancelStatementCommand.ts +0 -95
  147. package/src/commands/DescribeStatementCommand.ts +0 -97
  148. package/src/commands/DescribeTableCommand.ts +0 -110
  149. package/src/commands/ExecuteStatementCommand.ts +0 -109
  150. package/src/commands/GetStatementResultCommand.ts +0 -96
  151. package/src/commands/ListDatabasesCommand.ts +0 -109
  152. package/src/commands/ListSchemasCommand.ts +0 -109
  153. package/src/commands/ListStatementsCommand.ts +0 -96
  154. package/src/commands/ListTablesCommand.ts +0 -110
  155. package/src/endpoints.ts +0 -57
  156. package/src/index.ts +0 -20
  157. package/src/models/index.ts +0 -1
  158. package/src/models/models_0.ts +0 -1379
  159. package/src/pagination/DescribeTablePaginator.ts +0 -59
  160. package/src/pagination/GetStatementResultPaginator.ts +0 -58
  161. package/src/pagination/Interfaces.ts +0 -8
  162. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  163. package/src/pagination/ListSchemasPaginator.ts +0 -55
  164. package/src/pagination/ListStatementsPaginator.ts +0 -59
  165. package/src/pagination/ListTablesPaginator.ts +0 -55
  166. package/src/protocols/Aws_json1_1.ts +0 -1615
  167. package/src/runtimeConfig.browser.ts +0 -41
  168. package/src/runtimeConfig.native.ts +0 -17
  169. package/src/runtimeConfig.shared.ts +0 -17
  170. package/src/runtimeConfig.ts +0 -46
  171. package/tsconfig.es.json +0 -10
  172. package/tsconfig.json +0 -33
  173. package/tsconfig.types.json +0 -9
@@ -1,109 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ExecuteStatementInput, ExecuteStatementOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ExecuteStatementCommand,
17
- serializeAws_json1_1ExecuteStatementCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface ExecuteStatementCommandInput extends ExecuteStatementInput {}
22
- export interface ExecuteStatementCommandOutput extends ExecuteStatementOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Runs an SQL statement, which can be data manipulation language (DML) or data definition
26
- * language (DDL). This statement must be a single SQL statement.
27
- * Depending on the authorization
28
- * method, use one of the following combinations of request parameters: </p>
29
- * <ul>
30
- * <li>
31
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
32
- * cluster identifier that matches the cluster in the secret. </p>
33
- * </li>
34
- * <li>
35
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
36
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
37
- * operation is required to use this method. </p>
38
- * </li>
39
- * </ul>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { RedshiftDataClient, ExecuteStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
44
- * // const { RedshiftDataClient, ExecuteStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
45
- * const client = new RedshiftDataClient(config);
46
- * const command = new ExecuteStatementCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link ExecuteStatementCommandInput} for command's `input` shape.
51
- * @see {@link ExecuteStatementCommandOutput} for command's `response` shape.
52
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class ExecuteStatementCommand extends $Command<
56
- ExecuteStatementCommandInput,
57
- ExecuteStatementCommandOutput,
58
- RedshiftDataClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: ExecuteStatementCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: RedshiftDataClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
-
79
- const stack = clientStack.concat(this.middlewareStack);
80
-
81
- const { logger } = configuration;
82
- const clientName = "RedshiftDataClient";
83
- const commandName = "ExecuteStatementCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: ExecuteStatementInput.filterSensitiveLog,
89
- outputFilterSensitiveLog: ExecuteStatementOutput.filterSensitiveLog,
90
- };
91
- const { requestHandler } = configuration;
92
- return stack.resolve(
93
- (request: FinalizeHandlerArguments<any>) =>
94
- requestHandler.handle(request.request as __HttpRequest, options || {}),
95
- handlerExecutionContext
96
- );
97
- }
98
-
99
- private serialize(input: ExecuteStatementCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_json1_1ExecuteStatementCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ExecuteStatementCommandOutput> {
104
- return deserializeAws_json1_1ExecuteStatementCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1GetStatementResultCommand,
17
- serializeAws_json1_1GetStatementResultCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface GetStatementResultCommandInput extends GetStatementResultRequest {}
22
- export interface GetStatementResultCommandOutput extends GetStatementResultResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Fetches the temporarily cached result of an SQL statement.
26
- * A token is returned to page through the statement results. </p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { RedshiftDataClient, GetStatementResultCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
31
- * // const { RedshiftDataClient, GetStatementResultCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
32
- * const client = new RedshiftDataClient(config);
33
- * const command = new GetStatementResultCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link GetStatementResultCommandInput} for command's `input` shape.
38
- * @see {@link GetStatementResultCommandOutput} for command's `response` shape.
39
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class GetStatementResultCommand extends $Command<
43
- GetStatementResultCommandInput,
44
- GetStatementResultCommandOutput,
45
- RedshiftDataClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: GetStatementResultCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: RedshiftDataClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<GetStatementResultCommandInput, GetStatementResultCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "RedshiftDataClient";
70
- const commandName = "GetStatementResultCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: GetStatementResultRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: GetStatementResultResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: GetStatementResultCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1GetStatementResultCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetStatementResultCommandOutput> {
91
- return deserializeAws_json1_1GetStatementResultCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,109 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListDatabasesRequest, ListDatabasesResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListDatabasesCommand,
17
- serializeAws_json1_1ListDatabasesCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface ListDatabasesCommandInput extends ListDatabasesRequest {}
22
- export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>List the databases in a cluster.
26
- * A token is returned to page through the database list.
27
- * Depending on the authorization method, use one of the
28
- * following combinations of request parameters: </p>
29
- * <ul>
30
- * <li>
31
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
32
- * cluster identifier that matches the cluster in the secret. </p>
33
- * </li>
34
- * <li>
35
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
36
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
37
- * operation is required to use this method. </p>
38
- * </li>
39
- * </ul>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { RedshiftDataClient, ListDatabasesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
44
- * // const { RedshiftDataClient, ListDatabasesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
45
- * const client = new RedshiftDataClient(config);
46
- * const command = new ListDatabasesCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link ListDatabasesCommandInput} for command's `input` shape.
51
- * @see {@link ListDatabasesCommandOutput} for command's `response` shape.
52
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class ListDatabasesCommand extends $Command<
56
- ListDatabasesCommandInput,
57
- ListDatabasesCommandOutput,
58
- RedshiftDataClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: ListDatabasesCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: RedshiftDataClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<ListDatabasesCommandInput, ListDatabasesCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
-
79
- const stack = clientStack.concat(this.middlewareStack);
80
-
81
- const { logger } = configuration;
82
- const clientName = "RedshiftDataClient";
83
- const commandName = "ListDatabasesCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: ListDatabasesRequest.filterSensitiveLog,
89
- outputFilterSensitiveLog: ListDatabasesResponse.filterSensitiveLog,
90
- };
91
- const { requestHandler } = configuration;
92
- return stack.resolve(
93
- (request: FinalizeHandlerArguments<any>) =>
94
- requestHandler.handle(request.request as __HttpRequest, options || {}),
95
- handlerExecutionContext
96
- );
97
- }
98
-
99
- private serialize(input: ListDatabasesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_json1_1ListDatabasesCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListDatabasesCommandOutput> {
104
- return deserializeAws_json1_1ListDatabasesCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,109 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListSchemasRequest, ListSchemasResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListSchemasCommand,
17
- serializeAws_json1_1ListSchemasCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface ListSchemasCommandInput extends ListSchemasRequest {}
22
- export interface ListSchemasCommandOutput extends ListSchemasResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Lists the schemas in a database.
26
- * A token is returned to page through the schema list.
27
- * Depending on the authorization method, use one of the
28
- * following combinations of request parameters: </p>
29
- * <ul>
30
- * <li>
31
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
32
- * cluster identifier that matches the cluster in the secret. </p>
33
- * </li>
34
- * <li>
35
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
36
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
37
- * operation is required to use this method. </p>
38
- * </li>
39
- * </ul>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { RedshiftDataClient, ListSchemasCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
44
- * // const { RedshiftDataClient, ListSchemasCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
45
- * const client = new RedshiftDataClient(config);
46
- * const command = new ListSchemasCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link ListSchemasCommandInput} for command's `input` shape.
51
- * @see {@link ListSchemasCommandOutput} for command's `response` shape.
52
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class ListSchemasCommand extends $Command<
56
- ListSchemasCommandInput,
57
- ListSchemasCommandOutput,
58
- RedshiftDataClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: ListSchemasCommandInput) {
64
- // Start section: command_constructor
65
- super();
66
- // End section: command_constructor
67
- }
68
-
69
- /**
70
- * @internal
71
- */
72
- resolveMiddleware(
73
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
74
- configuration: RedshiftDataClientResolvedConfig,
75
- options?: __HttpHandlerOptions
76
- ): Handler<ListSchemasCommandInput, ListSchemasCommandOutput> {
77
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
78
-
79
- const stack = clientStack.concat(this.middlewareStack);
80
-
81
- const { logger } = configuration;
82
- const clientName = "RedshiftDataClient";
83
- const commandName = "ListSchemasCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: ListSchemasRequest.filterSensitiveLog,
89
- outputFilterSensitiveLog: ListSchemasResponse.filterSensitiveLog,
90
- };
91
- const { requestHandler } = configuration;
92
- return stack.resolve(
93
- (request: FinalizeHandlerArguments<any>) =>
94
- requestHandler.handle(request.request as __HttpRequest, options || {}),
95
- handlerExecutionContext
96
- );
97
- }
98
-
99
- private serialize(input: ListSchemasCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_json1_1ListSchemasCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSchemasCommandOutput> {
104
- return deserializeAws_json1_1ListSchemasCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListStatementsRequest, ListStatementsResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListStatementsCommand,
17
- serializeAws_json1_1ListStatementsCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface ListStatementsCommandInput extends ListStatementsRequest {}
22
- export interface ListStatementsCommandOutput extends ListStatementsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>List of SQL statements. By default, only finished statements are shown.
26
- * A token is returned to page through the statement list. </p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { RedshiftDataClient, ListStatementsCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
31
- * // const { RedshiftDataClient, ListStatementsCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
32
- * const client = new RedshiftDataClient(config);
33
- * const command = new ListStatementsCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link ListStatementsCommandInput} for command's `input` shape.
38
- * @see {@link ListStatementsCommandOutput} for command's `response` shape.
39
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class ListStatementsCommand extends $Command<
43
- ListStatementsCommandInput,
44
- ListStatementsCommandOutput,
45
- RedshiftDataClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: ListStatementsCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: RedshiftDataClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<ListStatementsCommandInput, ListStatementsCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "RedshiftDataClient";
70
- const commandName = "ListStatementsCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: ListStatementsRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: ListStatementsResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: ListStatementsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1ListStatementsCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListStatementsCommandOutput> {
91
- return deserializeAws_json1_1ListStatementsCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,110 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ListTablesRequest, ListTablesResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1ListTablesCommand,
17
- serializeAws_json1_1ListTablesCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface ListTablesCommandInput extends ListTablesRequest {}
22
- export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then
26
- * all tables in the database are returned.
27
- * A token is returned to page through the table list.
28
- * Depending on the authorization method, use one of the
29
- * following combinations of request parameters: </p>
30
- * <ul>
31
- * <li>
32
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
33
- * cluster identifier that matches the cluster in the secret. </p>
34
- * </li>
35
- * <li>
36
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
37
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
38
- * operation is required to use this method. </p>
39
- * </li>
40
- * </ul>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { RedshiftDataClient, ListTablesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
45
- * // const { RedshiftDataClient, ListTablesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
46
- * const client = new RedshiftDataClient(config);
47
- * const command = new ListTablesCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link ListTablesCommandInput} for command's `input` shape.
52
- * @see {@link ListTablesCommandOutput} for command's `response` shape.
53
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
- export class ListTablesCommand extends $Command<
57
- ListTablesCommandInput,
58
- ListTablesCommandOutput,
59
- RedshiftDataClientResolvedConfig
60
- > {
61
- // Start section: command_properties
62
- // End section: command_properties
63
-
64
- constructor(readonly input: ListTablesCommandInput) {
65
- // Start section: command_constructor
66
- super();
67
- // End section: command_constructor
68
- }
69
-
70
- /**
71
- * @internal
72
- */
73
- resolveMiddleware(
74
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
75
- configuration: RedshiftDataClientResolvedConfig,
76
- options?: __HttpHandlerOptions
77
- ): Handler<ListTablesCommandInput, ListTablesCommandOutput> {
78
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79
-
80
- const stack = clientStack.concat(this.middlewareStack);
81
-
82
- const { logger } = configuration;
83
- const clientName = "RedshiftDataClient";
84
- const commandName = "ListTablesCommand";
85
- const handlerExecutionContext: HandlerExecutionContext = {
86
- logger,
87
- clientName,
88
- commandName,
89
- inputFilterSensitiveLog: ListTablesRequest.filterSensitiveLog,
90
- outputFilterSensitiveLog: ListTablesResponse.filterSensitiveLog,
91
- };
92
- const { requestHandler } = configuration;
93
- return stack.resolve(
94
- (request: FinalizeHandlerArguments<any>) =>
95
- requestHandler.handle(request.request as __HttpRequest, options || {}),
96
- handlerExecutionContext
97
- );
98
- }
99
-
100
- private serialize(input: ListTablesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
101
- return serializeAws_json1_1ListTablesCommand(input, context);
102
- }
103
-
104
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTablesCommandOutput> {
105
- return deserializeAws_json1_1ListTablesCommand(output, context);
106
- }
107
-
108
- // Start section: command_body_extra
109
- // End section: command_body_extra
110
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "redshift-data.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "redshift-data.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "redshift-data.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "redshift-data.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "redshift-data.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "redshift-data",
55
- regionHash,
56
- partitionHash,
57
- });