@aws-sdk/client-redshift-data 3.35.0 → 3.36.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 (146) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/RedshiftData.js +0 -1
  3. package/dist-cjs/RedshiftDataClient.js +0 -1
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -1
  5. package/dist-cjs/commands/CancelStatementCommand.js +0 -1
  6. package/dist-cjs/commands/DescribeStatementCommand.js +0 -1
  7. package/dist-cjs/commands/DescribeTableCommand.js +0 -1
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -1
  9. package/dist-cjs/commands/GetStatementResultCommand.js +0 -1
  10. package/dist-cjs/commands/ListDatabasesCommand.js +0 -1
  11. package/dist-cjs/commands/ListSchemasCommand.js +0 -1
  12. package/dist-cjs/commands/ListStatementsCommand.js +0 -1
  13. package/dist-cjs/commands/ListTablesCommand.js +0 -1
  14. package/dist-cjs/endpoints.js +0 -1
  15. package/dist-cjs/index.js +0 -1
  16. package/dist-cjs/models/index.js +0 -1
  17. package/dist-cjs/models/models_0.js +0 -1
  18. package/dist-cjs/pagination/DescribeTablePaginator.js +0 -1
  19. package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -1
  20. package/dist-cjs/pagination/Interfaces.js +0 -1
  21. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -1
  22. package/dist-cjs/pagination/ListSchemasPaginator.js +0 -1
  23. package/dist-cjs/pagination/ListStatementsPaginator.js +0 -1
  24. package/dist-cjs/pagination/ListTablesPaginator.js +0 -1
  25. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  26. package/dist-cjs/runtimeConfig.browser.js +2 -3
  27. package/dist-cjs/runtimeConfig.js +3 -4
  28. package/dist-cjs/runtimeConfig.native.js +0 -1
  29. package/dist-cjs/runtimeConfig.shared.js +0 -1
  30. package/dist-es/RedshiftData.js +0 -1
  31. package/dist-es/RedshiftDataClient.js +0 -1
  32. package/dist-es/commands/BatchExecuteStatementCommand.js +0 -1
  33. package/dist-es/commands/CancelStatementCommand.js +0 -1
  34. package/dist-es/commands/DescribeStatementCommand.js +0 -1
  35. package/dist-es/commands/DescribeTableCommand.js +0 -1
  36. package/dist-es/commands/ExecuteStatementCommand.js +0 -1
  37. package/dist-es/commands/GetStatementResultCommand.js +0 -1
  38. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  39. package/dist-es/commands/ListSchemasCommand.js +0 -1
  40. package/dist-es/commands/ListStatementsCommand.js +0 -1
  41. package/dist-es/commands/ListTablesCommand.js +0 -1
  42. package/dist-es/endpoints.js +0 -1
  43. package/dist-es/index.js +0 -1
  44. package/dist-es/models/index.js +0 -1
  45. package/dist-es/models/models_0.js +0 -1
  46. package/dist-es/pagination/DescribeTablePaginator.js +0 -1
  47. package/dist-es/pagination/GetStatementResultPaginator.js +0 -1
  48. package/dist-es/pagination/Interfaces.js +0 -1
  49. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  50. package/dist-es/pagination/ListSchemasPaginator.js +0 -1
  51. package/dist-es/pagination/ListStatementsPaginator.js +0 -1
  52. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  53. package/dist-es/protocols/Aws_json1_1.js +0 -1
  54. package/dist-es/runtimeConfig.browser.js +1 -2
  55. package/dist-es/runtimeConfig.js +2 -3
  56. package/dist-es/runtimeConfig.native.js +0 -1
  57. package/dist-es/runtimeConfig.shared.js +0 -1
  58. package/package.json +33 -30
  59. package/dist-cjs/RedshiftData.js.map +0 -1
  60. package/dist-cjs/RedshiftDataClient.js.map +0 -1
  61. package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  62. package/dist-cjs/commands/CancelStatementCommand.js.map +0 -1
  63. package/dist-cjs/commands/DescribeStatementCommand.js.map +0 -1
  64. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  65. package/dist-cjs/commands/ExecuteStatementCommand.js.map +0 -1
  66. package/dist-cjs/commands/GetStatementResultCommand.js.map +0 -1
  67. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  68. package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
  69. package/dist-cjs/commands/ListStatementsCommand.js.map +0 -1
  70. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  71. package/dist-cjs/endpoints.js.map +0 -1
  72. package/dist-cjs/index.js.map +0 -1
  73. package/dist-cjs/models/index.js.map +0 -1
  74. package/dist-cjs/models/models_0.js.map +0 -1
  75. package/dist-cjs/pagination/DescribeTablePaginator.js.map +0 -1
  76. package/dist-cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  77. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  78. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  79. package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
  80. package/dist-cjs/pagination/ListStatementsPaginator.js.map +0 -1
  81. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  82. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  83. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  84. package/dist-cjs/runtimeConfig.js.map +0 -1
  85. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  86. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  87. package/dist-es/RedshiftData.js.map +0 -1
  88. package/dist-es/RedshiftDataClient.js.map +0 -1
  89. package/dist-es/commands/BatchExecuteStatementCommand.js.map +0 -1
  90. package/dist-es/commands/CancelStatementCommand.js.map +0 -1
  91. package/dist-es/commands/DescribeStatementCommand.js.map +0 -1
  92. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  93. package/dist-es/commands/ExecuteStatementCommand.js.map +0 -1
  94. package/dist-es/commands/GetStatementResultCommand.js.map +0 -1
  95. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  96. package/dist-es/commands/ListSchemasCommand.js.map +0 -1
  97. package/dist-es/commands/ListStatementsCommand.js.map +0 -1
  98. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  99. package/dist-es/endpoints.js.map +0 -1
  100. package/dist-es/index.js.map +0 -1
  101. package/dist-es/models/index.js.map +0 -1
  102. package/dist-es/models/models_0.js.map +0 -1
  103. package/dist-es/pagination/DescribeTablePaginator.js.map +0 -1
  104. package/dist-es/pagination/GetStatementResultPaginator.js.map +0 -1
  105. package/dist-es/pagination/Interfaces.js.map +0 -1
  106. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  107. package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
  108. package/dist-es/pagination/ListStatementsPaginator.js.map +0 -1
  109. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  110. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  111. package/dist-es/runtimeConfig.browser.js.map +0 -1
  112. package/dist-es/runtimeConfig.js.map +0 -1
  113. package/dist-es/runtimeConfig.native.js.map +0 -1
  114. package/dist-es/runtimeConfig.shared.js.map +0 -1
  115. package/jest.config.js +0 -4
  116. package/src/RedshiftData.ts +0 -452
  117. package/src/RedshiftDataClient.ts +0 -273
  118. package/src/commands/BatchExecuteStatementCommand.ts +0 -109
  119. package/src/commands/CancelStatementCommand.ts +0 -95
  120. package/src/commands/DescribeStatementCommand.ts +0 -97
  121. package/src/commands/DescribeTableCommand.ts +0 -110
  122. package/src/commands/ExecuteStatementCommand.ts +0 -109
  123. package/src/commands/GetStatementResultCommand.ts +0 -96
  124. package/src/commands/ListDatabasesCommand.ts +0 -109
  125. package/src/commands/ListSchemasCommand.ts +0 -109
  126. package/src/commands/ListStatementsCommand.ts +0 -96
  127. package/src/commands/ListTablesCommand.ts +0 -110
  128. package/src/endpoints.ts +0 -57
  129. package/src/index.ts +0 -20
  130. package/src/models/index.ts +0 -1
  131. package/src/models/models_0.ts +0 -1379
  132. package/src/pagination/DescribeTablePaginator.ts +0 -59
  133. package/src/pagination/GetStatementResultPaginator.ts +0 -58
  134. package/src/pagination/Interfaces.ts +0 -8
  135. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  136. package/src/pagination/ListSchemasPaginator.ts +0 -55
  137. package/src/pagination/ListStatementsPaginator.ts +0 -59
  138. package/src/pagination/ListTablesPaginator.ts +0 -55
  139. package/src/protocols/Aws_json1_1.ts +0 -1615
  140. package/src/runtimeConfig.browser.ts +0 -41
  141. package/src/runtimeConfig.native.ts +0 -17
  142. package/src/runtimeConfig.shared.ts +0 -17
  143. package/src/runtimeConfig.ts +0 -46
  144. package/tsconfig.es.json +0 -10
  145. package/tsconfig.json +0 -33
  146. package/tsconfig.types.json +0 -9
@@ -1,273 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import {
53
- BatchExecuteStatementCommandInput,
54
- BatchExecuteStatementCommandOutput,
55
- } from "./commands/BatchExecuteStatementCommand";
56
- import { CancelStatementCommandInput, CancelStatementCommandOutput } from "./commands/CancelStatementCommand";
57
- import { DescribeStatementCommandInput, DescribeStatementCommandOutput } from "./commands/DescribeStatementCommand";
58
- import { DescribeTableCommandInput, DescribeTableCommandOutput } from "./commands/DescribeTableCommand";
59
- import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand";
60
- import { GetStatementResultCommandInput, GetStatementResultCommandOutput } from "./commands/GetStatementResultCommand";
61
- import { ListDatabasesCommandInput, ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
62
- import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/ListSchemasCommand";
63
- import { ListStatementsCommandInput, ListStatementsCommandOutput } from "./commands/ListStatementsCommand";
64
- import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
65
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
66
-
67
- export type ServiceInputTypes =
68
- | BatchExecuteStatementCommandInput
69
- | CancelStatementCommandInput
70
- | DescribeStatementCommandInput
71
- | DescribeTableCommandInput
72
- | ExecuteStatementCommandInput
73
- | GetStatementResultCommandInput
74
- | ListDatabasesCommandInput
75
- | ListSchemasCommandInput
76
- | ListStatementsCommandInput
77
- | ListTablesCommandInput;
78
-
79
- export type ServiceOutputTypes =
80
- | BatchExecuteStatementCommandOutput
81
- | CancelStatementCommandOutput
82
- | DescribeStatementCommandOutput
83
- | DescribeTableCommandOutput
84
- | ExecuteStatementCommandOutput
85
- | GetStatementResultCommandOutput
86
- | ListDatabasesCommandOutput
87
- | ListSchemasCommandOutput
88
- | ListStatementsCommandOutput
89
- | ListTablesCommandOutput;
90
-
91
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
92
- /**
93
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
94
- */
95
- requestHandler?: __HttpHandler;
96
-
97
- /**
98
- * A constructor for a class implementing the {@link __Hash} interface
99
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
100
- * @internal
101
- */
102
- sha256?: __HashConstructor;
103
-
104
- /**
105
- * The function that will be used to convert strings into HTTP endpoints.
106
- * @internal
107
- */
108
- urlParser?: __UrlParser;
109
-
110
- /**
111
- * A function that can calculate the length of a request body.
112
- * @internal
113
- */
114
- bodyLengthChecker?: (body: any) => number | undefined;
115
-
116
- /**
117
- * A function that converts a stream into an array of bytes.
118
- * @internal
119
- */
120
- streamCollector?: __StreamCollector;
121
-
122
- /**
123
- * The function that will be used to convert a base64-encoded string to a byte array.
124
- * @internal
125
- */
126
- base64Decoder?: __Decoder;
127
-
128
- /**
129
- * The function that will be used to convert binary data to a base64-encoded string.
130
- * @internal
131
- */
132
- base64Encoder?: __Encoder;
133
-
134
- /**
135
- * The function that will be used to convert a UTF8-encoded string to a byte array.
136
- * @internal
137
- */
138
- utf8Decoder?: __Decoder;
139
-
140
- /**
141
- * The function that will be used to convert binary data to a UTF-8 encoded string.
142
- * @internal
143
- */
144
- utf8Encoder?: __Encoder;
145
-
146
- /**
147
- * The runtime environment.
148
- * @internal
149
- */
150
- runtime?: string;
151
-
152
- /**
153
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
154
- * trait of an operation.
155
- */
156
- disableHostPrefix?: boolean;
157
-
158
- /**
159
- * Value for how many times a request will be made at most in case of retry.
160
- */
161
- maxAttempts?: number | __Provider<number>;
162
-
163
- /**
164
- * Specifies which retry algorithm to use.
165
- */
166
- retryMode?: string | __Provider<string>;
167
-
168
- /**
169
- * Optional logger for logging debug/info/warn/error.
170
- */
171
- logger?: __Logger;
172
-
173
- /**
174
- * Unique service identifier.
175
- * @internal
176
- */
177
- serviceId?: string;
178
-
179
- /**
180
- * The AWS region to which this client will send requests
181
- */
182
- region?: string | __Provider<string>;
183
-
184
- /**
185
- * Default credentials provider; Not available in browser runtime.
186
- * @internal
187
- */
188
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
189
-
190
- /**
191
- * Fetch related hostname, signing name or signing region with given region.
192
- * @internal
193
- */
194
- regionInfoProvider?: RegionInfoProvider;
195
-
196
- /**
197
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
198
- * @internal
199
- */
200
- defaultUserAgentProvider?: Provider<__UserAgent>;
201
- }
202
-
203
- type RedshiftDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
204
- ClientDefaults &
205
- RegionInputConfig &
206
- EndpointsInputConfig &
207
- RetryInputConfig &
208
- HostHeaderInputConfig &
209
- AwsAuthInputConfig &
210
- UserAgentInputConfig;
211
- /**
212
- * The configuration interface of RedshiftDataClient class constructor that set the region, credentials and other options.
213
- */
214
- export interface RedshiftDataClientConfig extends RedshiftDataClientConfigType {}
215
-
216
- type RedshiftDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
217
- Required<ClientDefaults> &
218
- RegionResolvedConfig &
219
- EndpointsResolvedConfig &
220
- RetryResolvedConfig &
221
- HostHeaderResolvedConfig &
222
- AwsAuthResolvedConfig &
223
- UserAgentResolvedConfig;
224
- /**
225
- * The resolved configuration interface of RedshiftDataClient class. This is resolved and normalized from the {@link RedshiftDataClientConfig | constructor configuration interface}.
226
- */
227
- export interface RedshiftDataClientResolvedConfig extends RedshiftDataClientResolvedConfigType {}
228
-
229
- /**
230
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
231
- * can run SQL statements, which are committed if the statement succeeds. </p>
232
- * <p>For more information about the Amazon Redshift Data API, see
233
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
234
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
235
- */
236
- export class RedshiftDataClient extends __Client<
237
- __HttpHandlerOptions,
238
- ServiceInputTypes,
239
- ServiceOutputTypes,
240
- RedshiftDataClientResolvedConfig
241
- > {
242
- /**
243
- * The resolved configuration of RedshiftDataClient class. This is resolved and normalized from the {@link RedshiftDataClientConfig | constructor configuration interface}.
244
- */
245
- readonly config: RedshiftDataClientResolvedConfig;
246
-
247
- constructor(configuration: RedshiftDataClientConfig) {
248
- const _config_0 = __getRuntimeConfig(configuration);
249
- const _config_1 = resolveRegionConfig(_config_0);
250
- const _config_2 = resolveEndpointsConfig(_config_1);
251
- const _config_3 = resolveRetryConfig(_config_2);
252
- const _config_4 = resolveHostHeaderConfig(_config_3);
253
- const _config_5 = resolveAwsAuthConfig(_config_4);
254
- const _config_6 = resolveUserAgentConfig(_config_5);
255
- super(_config_6);
256
- this.config = _config_6;
257
- this.middlewareStack.use(getRetryPlugin(this.config));
258
- this.middlewareStack.use(getContentLengthPlugin(this.config));
259
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
260
- this.middlewareStack.use(getLoggerPlugin(this.config));
261
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
262
- this.middlewareStack.use(getUserAgentPlugin(this.config));
263
- }
264
-
265
- /**
266
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
267
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
268
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
269
- */
270
- destroy(): void {
271
- super.destroy();
272
- }
273
- }
@@ -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 { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1BatchExecuteStatementCommand,
17
- serializeAws_json1_1BatchExecuteStatementCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface BatchExecuteStatementCommandInput extends BatchExecuteStatementInput {}
22
- export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatementOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Runs one or more SQL statements, which can be data manipulation language (DML) or data definition
26
- * language (DDL).
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, BatchExecuteStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
44
- * // const { RedshiftDataClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
45
- * const client = new RedshiftDataClient(config);
46
- * const command = new BatchExecuteStatementCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link BatchExecuteStatementCommandInput} for command's `input` shape.
51
- * @see {@link BatchExecuteStatementCommandOutput} for command's `response` shape.
52
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
- export class BatchExecuteStatementCommand extends $Command<
56
- BatchExecuteStatementCommandInput,
57
- BatchExecuteStatementCommandOutput,
58
- RedshiftDataClientResolvedConfig
59
- > {
60
- // Start section: command_properties
61
- // End section: command_properties
62
-
63
- constructor(readonly input: BatchExecuteStatementCommandInput) {
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<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput> {
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 = "BatchExecuteStatementCommand";
84
- const handlerExecutionContext: HandlerExecutionContext = {
85
- logger,
86
- clientName,
87
- commandName,
88
- inputFilterSensitiveLog: BatchExecuteStatementInput.filterSensitiveLog,
89
- outputFilterSensitiveLog: BatchExecuteStatementOutput.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: BatchExecuteStatementCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
100
- return serializeAws_json1_1BatchExecuteStatementCommand(input, context);
101
- }
102
-
103
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchExecuteStatementCommandOutput> {
104
- return deserializeAws_json1_1BatchExecuteStatementCommand(output, context);
105
- }
106
-
107
- // Start section: command_body_extra
108
- // End section: command_body_extra
109
- }
@@ -1,95 +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 { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1CancelStatementCommand,
17
- serializeAws_json1_1CancelStatementCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface CancelStatementCommandInput extends CancelStatementRequest {}
22
- export interface CancelStatementCommandOutput extends CancelStatementResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Cancels a running query. To be canceled, a query must be running. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { RedshiftDataClient, CancelStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
30
- * // const { RedshiftDataClient, CancelStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
31
- * const client = new RedshiftDataClient(config);
32
- * const command = new CancelStatementCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link CancelStatementCommandInput} for command's `input` shape.
37
- * @see {@link CancelStatementCommandOutput} for command's `response` shape.
38
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class CancelStatementCommand extends $Command<
42
- CancelStatementCommandInput,
43
- CancelStatementCommandOutput,
44
- RedshiftDataClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: CancelStatementCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: RedshiftDataClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<CancelStatementCommandInput, CancelStatementCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "RedshiftDataClient";
69
- const commandName = "CancelStatementCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: CancelStatementRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: CancelStatementResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: CancelStatementCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1CancelStatementCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CancelStatementCommandOutput> {
90
- return deserializeAws_json1_1CancelStatementCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,97 +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 { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1DescribeStatementCommand,
17
- serializeAws_json1_1DescribeStatementCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface DescribeStatementCommandInput extends DescribeStatementRequest {}
22
- export interface DescribeStatementCommandOutput extends DescribeStatementResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
26
- * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
27
- * statement. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { RedshiftDataClient, DescribeStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
32
- * // const { RedshiftDataClient, DescribeStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
33
- * const client = new RedshiftDataClient(config);
34
- * const command = new DescribeStatementCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link DescribeStatementCommandInput} for command's `input` shape.
39
- * @see {@link DescribeStatementCommandOutput} for command's `response` shape.
40
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class DescribeStatementCommand extends $Command<
44
- DescribeStatementCommandInput,
45
- DescribeStatementCommandOutput,
46
- RedshiftDataClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: DescribeStatementCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: RedshiftDataClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<DescribeStatementCommandInput, DescribeStatementCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "RedshiftDataClient";
71
- const commandName = "DescribeStatementCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: DescribeStatementRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: DescribeStatementResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: DescribeStatementCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_1DescribeStatementCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeStatementCommandOutput> {
92
- return deserializeAws_json1_1DescribeStatementCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -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 { DescribeTableRequest, DescribeTableResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1DescribeTableCommand,
17
- serializeAws_json1_1DescribeTableCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
-
21
- export interface DescribeTableCommandInput extends DescribeTableRequest {}
22
- export interface DescribeTableCommandOutput extends DescribeTableResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Describes the detailed information about a table from metadata in the cluster. The
26
- * information includes its columns.
27
- * A token is returned to page through the column 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 database
37
- * user name. Permission to call the <code>redshift:GetClusterCredentials</code> operation is
38
- * 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, DescribeTableCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
45
- * // const { RedshiftDataClient, DescribeTableCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
46
- * const client = new RedshiftDataClient(config);
47
- * const command = new DescribeTableCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link DescribeTableCommandInput} for command's `input` shape.
52
- * @see {@link DescribeTableCommandOutput} for command's `response` shape.
53
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
- export class DescribeTableCommand extends $Command<
57
- DescribeTableCommandInput,
58
- DescribeTableCommandOutput,
59
- RedshiftDataClientResolvedConfig
60
- > {
61
- // Start section: command_properties
62
- // End section: command_properties
63
-
64
- constructor(readonly input: DescribeTableCommandInput) {
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<DescribeTableCommandInput, DescribeTableCommandOutput> {
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 = "DescribeTableCommand";
85
- const handlerExecutionContext: HandlerExecutionContext = {
86
- logger,
87
- clientName,
88
- commandName,
89
- inputFilterSensitiveLog: DescribeTableRequest.filterSensitiveLog,
90
- outputFilterSensitiveLog: DescribeTableResponse.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: DescribeTableCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
101
- return serializeAws_json1_1DescribeTableCommand(input, context);
102
- }
103
-
104
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeTableCommandOutput> {
105
- return deserializeAws_json1_1DescribeTableCommand(output, context);
106
- }
107
-
108
- // Start section: command_body_extra
109
- // End section: command_body_extra
110
- }