@aws-sdk/client-redshift-data 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/RedshiftData.js +1 -31
- package/dist-cjs/RedshiftDataClient.js +1 -43
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +1 -28
- package/dist-cjs/commands/CancelStatementCommand.js +1 -28
- package/dist-cjs/commands/DescribeStatementCommand.js +1 -28
- package/dist-cjs/commands/DescribeTableCommand.js +1 -28
- package/dist-cjs/commands/ExecuteStatementCommand.js +1 -28
- package/dist-cjs/commands/GetStatementResultCommand.js +1 -28
- package/dist-cjs/commands/ListDatabasesCommand.js +1 -28
- package/dist-cjs/commands/ListSchemasCommand.js +1 -28
- package/dist-cjs/commands/ListStatementsCommand.js +1 -28
- package/dist-cjs/commands/ListTablesCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -13
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1321 -11
- package/dist-cjs/models/RedshiftDataServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -140
- package/dist-cjs/pagination/DescribeTablePaginator.js +1 -7
- package/dist-cjs/pagination/GetStatementResultPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSchemasPaginator.js +1 -7
- package/dist-cjs/pagination/ListStatementsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTablesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -10
- package/dist-cjs/protocols/Aws_json1_1.js +1 -774
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1322 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ActiveStatementsExceededException: () => ActiveStatementsExceededException,
|
|
25
|
+
BatchExecuteStatementCommand: () => BatchExecuteStatementCommand,
|
|
26
|
+
BatchExecuteStatementException: () => BatchExecuteStatementException,
|
|
27
|
+
CancelStatementCommand: () => CancelStatementCommand,
|
|
28
|
+
DatabaseConnectionException: () => DatabaseConnectionException,
|
|
29
|
+
DescribeStatementCommand: () => DescribeStatementCommand,
|
|
30
|
+
DescribeTableCommand: () => DescribeTableCommand,
|
|
31
|
+
ExecuteStatementCommand: () => ExecuteStatementCommand,
|
|
32
|
+
ExecuteStatementException: () => ExecuteStatementException,
|
|
33
|
+
Field: () => Field,
|
|
34
|
+
GetStatementResultCommand: () => GetStatementResultCommand,
|
|
35
|
+
InternalServerException: () => InternalServerException,
|
|
36
|
+
ListDatabasesCommand: () => ListDatabasesCommand,
|
|
37
|
+
ListSchemasCommand: () => ListSchemasCommand,
|
|
38
|
+
ListStatementsCommand: () => ListStatementsCommand,
|
|
39
|
+
ListTablesCommand: () => ListTablesCommand,
|
|
40
|
+
RedshiftData: () => RedshiftData,
|
|
41
|
+
RedshiftDataClient: () => RedshiftDataClient,
|
|
42
|
+
RedshiftDataServiceException: () => RedshiftDataServiceException,
|
|
43
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
+
StatementStatusString: () => StatementStatusString,
|
|
45
|
+
StatusString: () => StatusString,
|
|
46
|
+
ValidationException: () => ValidationException,
|
|
47
|
+
__Client: () => import_smithy_client.Client,
|
|
48
|
+
paginateDescribeTable: () => paginateDescribeTable,
|
|
49
|
+
paginateGetStatementResult: () => paginateGetStatementResult,
|
|
50
|
+
paginateListDatabases: () => paginateListDatabases,
|
|
51
|
+
paginateListSchemas: () => paginateListSchemas,
|
|
52
|
+
paginateListStatements: () => paginateListStatements,
|
|
53
|
+
paginateListTables: () => paginateListTables
|
|
54
|
+
});
|
|
55
|
+
module.exports = __toCommonJS(src_exports);
|
|
56
|
+
|
|
57
|
+
// src/RedshiftDataClient.ts
|
|
58
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
59
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
60
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
61
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
62
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
63
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
64
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
65
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
66
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
// src/endpoint/EndpointParameters.ts
|
|
70
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
71
|
+
return {
|
|
72
|
+
...options,
|
|
73
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
74
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
75
|
+
defaultSigningName: "redshift-data"
|
|
76
|
+
};
|
|
77
|
+
}, "resolveClientEndpointParameters");
|
|
78
|
+
var commonParams = {
|
|
79
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
80
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
81
|
+
Region: { type: "builtInParams", name: "region" },
|
|
82
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/RedshiftDataClient.ts
|
|
86
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
87
|
+
|
|
88
|
+
// src/runtimeExtensions.ts
|
|
89
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
90
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
91
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
92
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
93
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
94
|
+
const extensionConfiguration = {
|
|
95
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
96
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
97
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
98
|
+
};
|
|
99
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
100
|
+
return {
|
|
101
|
+
...runtimeConfig,
|
|
102
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
103
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
104
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
105
|
+
};
|
|
106
|
+
}, "resolveRuntimeExtensions");
|
|
107
|
+
|
|
108
|
+
// src/RedshiftDataClient.ts
|
|
109
|
+
var _RedshiftDataClient = class _RedshiftDataClient extends import_smithy_client.Client {
|
|
110
|
+
constructor(...[configuration]) {
|
|
111
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
112
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
113
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
114
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
115
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
116
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
117
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
118
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
119
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
120
|
+
super(_config_8);
|
|
121
|
+
this.config = _config_8;
|
|
122
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
123
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
124
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
125
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
126
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
132
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
133
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
134
|
+
*/
|
|
135
|
+
destroy() {
|
|
136
|
+
super.destroy();
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
__name(_RedshiftDataClient, "RedshiftDataClient");
|
|
140
|
+
var RedshiftDataClient = _RedshiftDataClient;
|
|
141
|
+
|
|
142
|
+
// src/RedshiftData.ts
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
// src/commands/BatchExecuteStatementCommand.ts
|
|
146
|
+
|
|
147
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
148
|
+
|
|
149
|
+
var import_types = require("@smithy/types");
|
|
150
|
+
|
|
151
|
+
// src/protocols/Aws_json1_1.ts
|
|
152
|
+
var import_core = require("@aws-sdk/core");
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
var import_uuid = require("uuid");
|
|
156
|
+
|
|
157
|
+
// src/models/RedshiftDataServiceException.ts
|
|
158
|
+
|
|
159
|
+
var _RedshiftDataServiceException = class _RedshiftDataServiceException extends import_smithy_client.ServiceException {
|
|
160
|
+
/**
|
|
161
|
+
* @internal
|
|
162
|
+
*/
|
|
163
|
+
constructor(options) {
|
|
164
|
+
super(options);
|
|
165
|
+
Object.setPrototypeOf(this, _RedshiftDataServiceException.prototype);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
__name(_RedshiftDataServiceException, "RedshiftDataServiceException");
|
|
169
|
+
var RedshiftDataServiceException = _RedshiftDataServiceException;
|
|
170
|
+
|
|
171
|
+
// src/models/models_0.ts
|
|
172
|
+
var _ActiveStatementsExceededException = class _ActiveStatementsExceededException extends RedshiftDataServiceException {
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "ActiveStatementsExceededException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts
|
|
181
|
+
});
|
|
182
|
+
this.name = "ActiveStatementsExceededException";
|
|
183
|
+
this.$fault = "client";
|
|
184
|
+
Object.setPrototypeOf(this, _ActiveStatementsExceededException.prototype);
|
|
185
|
+
this.Message = opts.Message;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__name(_ActiveStatementsExceededException, "ActiveStatementsExceededException");
|
|
189
|
+
var ActiveStatementsExceededException = _ActiveStatementsExceededException;
|
|
190
|
+
var _BatchExecuteStatementException = class _BatchExecuteStatementException extends RedshiftDataServiceException {
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "BatchExecuteStatementException",
|
|
197
|
+
$fault: "server",
|
|
198
|
+
...opts
|
|
199
|
+
});
|
|
200
|
+
this.name = "BatchExecuteStatementException";
|
|
201
|
+
this.$fault = "server";
|
|
202
|
+
Object.setPrototypeOf(this, _BatchExecuteStatementException.prototype);
|
|
203
|
+
this.Message = opts.Message;
|
|
204
|
+
this.StatementId = opts.StatementId;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
__name(_BatchExecuteStatementException, "BatchExecuteStatementException");
|
|
208
|
+
var BatchExecuteStatementException = _BatchExecuteStatementException;
|
|
209
|
+
var _ValidationException = class _ValidationException extends RedshiftDataServiceException {
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ValidationException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts
|
|
218
|
+
});
|
|
219
|
+
this.name = "ValidationException";
|
|
220
|
+
this.$fault = "client";
|
|
221
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
222
|
+
this.Message = opts.Message;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
__name(_ValidationException, "ValidationException");
|
|
226
|
+
var ValidationException = _ValidationException;
|
|
227
|
+
var _DatabaseConnectionException = class _DatabaseConnectionException extends RedshiftDataServiceException {
|
|
228
|
+
/**
|
|
229
|
+
* @internal
|
|
230
|
+
*/
|
|
231
|
+
constructor(opts) {
|
|
232
|
+
super({
|
|
233
|
+
name: "DatabaseConnectionException",
|
|
234
|
+
$fault: "server",
|
|
235
|
+
...opts
|
|
236
|
+
});
|
|
237
|
+
this.name = "DatabaseConnectionException";
|
|
238
|
+
this.$fault = "server";
|
|
239
|
+
Object.setPrototypeOf(this, _DatabaseConnectionException.prototype);
|
|
240
|
+
this.Message = opts.Message;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
__name(_DatabaseConnectionException, "DatabaseConnectionException");
|
|
244
|
+
var DatabaseConnectionException = _DatabaseConnectionException;
|
|
245
|
+
var _InternalServerException = class _InternalServerException extends RedshiftDataServiceException {
|
|
246
|
+
/**
|
|
247
|
+
* @internal
|
|
248
|
+
*/
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "InternalServerException",
|
|
252
|
+
$fault: "server",
|
|
253
|
+
...opts
|
|
254
|
+
});
|
|
255
|
+
this.name = "InternalServerException";
|
|
256
|
+
this.$fault = "server";
|
|
257
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
258
|
+
this.Message = opts.Message;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
__name(_InternalServerException, "InternalServerException");
|
|
262
|
+
var InternalServerException = _InternalServerException;
|
|
263
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends RedshiftDataServiceException {
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
constructor(opts) {
|
|
268
|
+
super({
|
|
269
|
+
name: "ResourceNotFoundException",
|
|
270
|
+
$fault: "client",
|
|
271
|
+
...opts
|
|
272
|
+
});
|
|
273
|
+
this.name = "ResourceNotFoundException";
|
|
274
|
+
this.$fault = "client";
|
|
275
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
276
|
+
this.Message = opts.Message;
|
|
277
|
+
this.ResourceId = opts.ResourceId;
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
281
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
282
|
+
var StatusString = {
|
|
283
|
+
ABORTED: "ABORTED",
|
|
284
|
+
ALL: "ALL",
|
|
285
|
+
FAILED: "FAILED",
|
|
286
|
+
FINISHED: "FINISHED",
|
|
287
|
+
PICKED: "PICKED",
|
|
288
|
+
STARTED: "STARTED",
|
|
289
|
+
SUBMITTED: "SUBMITTED"
|
|
290
|
+
};
|
|
291
|
+
var StatementStatusString = {
|
|
292
|
+
ABORTED: "ABORTED",
|
|
293
|
+
FAILED: "FAILED",
|
|
294
|
+
FINISHED: "FINISHED",
|
|
295
|
+
PICKED: "PICKED",
|
|
296
|
+
STARTED: "STARTED",
|
|
297
|
+
SUBMITTED: "SUBMITTED"
|
|
298
|
+
};
|
|
299
|
+
var _ExecuteStatementException = class _ExecuteStatementException extends RedshiftDataServiceException {
|
|
300
|
+
/**
|
|
301
|
+
* @internal
|
|
302
|
+
*/
|
|
303
|
+
constructor(opts) {
|
|
304
|
+
super({
|
|
305
|
+
name: "ExecuteStatementException",
|
|
306
|
+
$fault: "server",
|
|
307
|
+
...opts
|
|
308
|
+
});
|
|
309
|
+
this.name = "ExecuteStatementException";
|
|
310
|
+
this.$fault = "server";
|
|
311
|
+
Object.setPrototypeOf(this, _ExecuteStatementException.prototype);
|
|
312
|
+
this.Message = opts.Message;
|
|
313
|
+
this.StatementId = opts.StatementId;
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
__name(_ExecuteStatementException, "ExecuteStatementException");
|
|
317
|
+
var ExecuteStatementException = _ExecuteStatementException;
|
|
318
|
+
var Field;
|
|
319
|
+
((Field3) => {
|
|
320
|
+
Field3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
321
|
+
if (value.isNull !== void 0)
|
|
322
|
+
return visitor.isNull(value.isNull);
|
|
323
|
+
if (value.booleanValue !== void 0)
|
|
324
|
+
return visitor.booleanValue(value.booleanValue);
|
|
325
|
+
if (value.longValue !== void 0)
|
|
326
|
+
return visitor.longValue(value.longValue);
|
|
327
|
+
if (value.doubleValue !== void 0)
|
|
328
|
+
return visitor.doubleValue(value.doubleValue);
|
|
329
|
+
if (value.stringValue !== void 0)
|
|
330
|
+
return visitor.stringValue(value.stringValue);
|
|
331
|
+
if (value.blobValue !== void 0)
|
|
332
|
+
return visitor.blobValue(value.blobValue);
|
|
333
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
334
|
+
}, "visit");
|
|
335
|
+
})(Field || (Field = {}));
|
|
336
|
+
|
|
337
|
+
// src/protocols/Aws_json1_1.ts
|
|
338
|
+
var se_BatchExecuteStatementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
339
|
+
const headers = sharedHeaders("BatchExecuteStatement");
|
|
340
|
+
let body;
|
|
341
|
+
body = JSON.stringify(se_BatchExecuteStatementInput(input, context));
|
|
342
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
343
|
+
}, "se_BatchExecuteStatementCommand");
|
|
344
|
+
var se_CancelStatementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
345
|
+
const headers = sharedHeaders("CancelStatement");
|
|
346
|
+
let body;
|
|
347
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
348
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
349
|
+
}, "se_CancelStatementCommand");
|
|
350
|
+
var se_DescribeStatementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
351
|
+
const headers = sharedHeaders("DescribeStatement");
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
354
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
355
|
+
}, "se_DescribeStatementCommand");
|
|
356
|
+
var se_DescribeTableCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
357
|
+
const headers = sharedHeaders("DescribeTable");
|
|
358
|
+
let body;
|
|
359
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
360
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
361
|
+
}, "se_DescribeTableCommand");
|
|
362
|
+
var se_ExecuteStatementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
363
|
+
const headers = sharedHeaders("ExecuteStatement");
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(se_ExecuteStatementInput(input, context));
|
|
366
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
367
|
+
}, "se_ExecuteStatementCommand");
|
|
368
|
+
var se_GetStatementResultCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
369
|
+
const headers = sharedHeaders("GetStatementResult");
|
|
370
|
+
let body;
|
|
371
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
372
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
373
|
+
}, "se_GetStatementResultCommand");
|
|
374
|
+
var se_ListDatabasesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
375
|
+
const headers = sharedHeaders("ListDatabases");
|
|
376
|
+
let body;
|
|
377
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
378
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
379
|
+
}, "se_ListDatabasesCommand");
|
|
380
|
+
var se_ListSchemasCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
381
|
+
const headers = sharedHeaders("ListSchemas");
|
|
382
|
+
let body;
|
|
383
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
384
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
385
|
+
}, "se_ListSchemasCommand");
|
|
386
|
+
var se_ListStatementsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
387
|
+
const headers = sharedHeaders("ListStatements");
|
|
388
|
+
let body;
|
|
389
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
390
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
391
|
+
}, "se_ListStatementsCommand");
|
|
392
|
+
var se_ListTablesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
393
|
+
const headers = sharedHeaders("ListTables");
|
|
394
|
+
let body;
|
|
395
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
396
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
397
|
+
}, "se_ListTablesCommand");
|
|
398
|
+
var de_BatchExecuteStatementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
399
|
+
if (output.statusCode >= 300) {
|
|
400
|
+
return de_BatchExecuteStatementCommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const data = await parseBody(output.body, context);
|
|
403
|
+
let contents = {};
|
|
404
|
+
contents = de_BatchExecuteStatementOutput(data, context);
|
|
405
|
+
const response = {
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
407
|
+
...contents
|
|
408
|
+
};
|
|
409
|
+
return response;
|
|
410
|
+
}, "de_BatchExecuteStatementCommand");
|
|
411
|
+
var de_BatchExecuteStatementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
412
|
+
const parsedOutput = {
|
|
413
|
+
...output,
|
|
414
|
+
body: await parseErrorBody(output.body, context)
|
|
415
|
+
};
|
|
416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
|
+
switch (errorCode) {
|
|
418
|
+
case "ActiveStatementsExceededException":
|
|
419
|
+
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
|
|
420
|
+
throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
|
|
421
|
+
case "BatchExecuteStatementException":
|
|
422
|
+
case "com.amazonaws.redshiftdata#BatchExecuteStatementException":
|
|
423
|
+
throw await de_BatchExecuteStatementExceptionRes(parsedOutput, context);
|
|
424
|
+
case "ValidationException":
|
|
425
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
426
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
|
+
default:
|
|
428
|
+
const parsedBody = parsedOutput.body;
|
|
429
|
+
return throwDefaultError({
|
|
430
|
+
output,
|
|
431
|
+
parsedBody,
|
|
432
|
+
errorCode
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
}, "de_BatchExecuteStatementCommandError");
|
|
436
|
+
var de_CancelStatementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
437
|
+
if (output.statusCode >= 300) {
|
|
438
|
+
return de_CancelStatementCommandError(output, context);
|
|
439
|
+
}
|
|
440
|
+
const data = await parseBody(output.body, context);
|
|
441
|
+
let contents = {};
|
|
442
|
+
contents = (0, import_smithy_client._json)(data);
|
|
443
|
+
const response = {
|
|
444
|
+
$metadata: deserializeMetadata(output),
|
|
445
|
+
...contents
|
|
446
|
+
};
|
|
447
|
+
return response;
|
|
448
|
+
}, "de_CancelStatementCommand");
|
|
449
|
+
var de_CancelStatementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
450
|
+
const parsedOutput = {
|
|
451
|
+
...output,
|
|
452
|
+
body: await parseErrorBody(output.body, context)
|
|
453
|
+
};
|
|
454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
455
|
+
switch (errorCode) {
|
|
456
|
+
case "DatabaseConnectionException":
|
|
457
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
458
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
459
|
+
case "InternalServerException":
|
|
460
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
461
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
462
|
+
case "ResourceNotFoundException":
|
|
463
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
464
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
465
|
+
case "ValidationException":
|
|
466
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
467
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
468
|
+
default:
|
|
469
|
+
const parsedBody = parsedOutput.body;
|
|
470
|
+
return throwDefaultError({
|
|
471
|
+
output,
|
|
472
|
+
parsedBody,
|
|
473
|
+
errorCode
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
}, "de_CancelStatementCommandError");
|
|
477
|
+
var de_DescribeStatementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
478
|
+
if (output.statusCode >= 300) {
|
|
479
|
+
return de_DescribeStatementCommandError(output, context);
|
|
480
|
+
}
|
|
481
|
+
const data = await parseBody(output.body, context);
|
|
482
|
+
let contents = {};
|
|
483
|
+
contents = de_DescribeStatementResponse(data, context);
|
|
484
|
+
const response = {
|
|
485
|
+
$metadata: deserializeMetadata(output),
|
|
486
|
+
...contents
|
|
487
|
+
};
|
|
488
|
+
return response;
|
|
489
|
+
}, "de_DescribeStatementCommand");
|
|
490
|
+
var de_DescribeStatementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
491
|
+
const parsedOutput = {
|
|
492
|
+
...output,
|
|
493
|
+
body: await parseErrorBody(output.body, context)
|
|
494
|
+
};
|
|
495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
+
switch (errorCode) {
|
|
497
|
+
case "InternalServerException":
|
|
498
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
499
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
500
|
+
case "ResourceNotFoundException":
|
|
501
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
502
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
503
|
+
case "ValidationException":
|
|
504
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
505
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
506
|
+
default:
|
|
507
|
+
const parsedBody = parsedOutput.body;
|
|
508
|
+
return throwDefaultError({
|
|
509
|
+
output,
|
|
510
|
+
parsedBody,
|
|
511
|
+
errorCode
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
}, "de_DescribeStatementCommandError");
|
|
515
|
+
var de_DescribeTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
516
|
+
if (output.statusCode >= 300) {
|
|
517
|
+
return de_DescribeTableCommandError(output, context);
|
|
518
|
+
}
|
|
519
|
+
const data = await parseBody(output.body, context);
|
|
520
|
+
let contents = {};
|
|
521
|
+
contents = (0, import_smithy_client._json)(data);
|
|
522
|
+
const response = {
|
|
523
|
+
$metadata: deserializeMetadata(output),
|
|
524
|
+
...contents
|
|
525
|
+
};
|
|
526
|
+
return response;
|
|
527
|
+
}, "de_DescribeTableCommand");
|
|
528
|
+
var de_DescribeTableCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
529
|
+
const parsedOutput = {
|
|
530
|
+
...output,
|
|
531
|
+
body: await parseErrorBody(output.body, context)
|
|
532
|
+
};
|
|
533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
|
+
switch (errorCode) {
|
|
535
|
+
case "DatabaseConnectionException":
|
|
536
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
537
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
538
|
+
case "InternalServerException":
|
|
539
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
540
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
541
|
+
case "ValidationException":
|
|
542
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
543
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
544
|
+
default:
|
|
545
|
+
const parsedBody = parsedOutput.body;
|
|
546
|
+
return throwDefaultError({
|
|
547
|
+
output,
|
|
548
|
+
parsedBody,
|
|
549
|
+
errorCode
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
}, "de_DescribeTableCommandError");
|
|
553
|
+
var de_ExecuteStatementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
554
|
+
if (output.statusCode >= 300) {
|
|
555
|
+
return de_ExecuteStatementCommandError(output, context);
|
|
556
|
+
}
|
|
557
|
+
const data = await parseBody(output.body, context);
|
|
558
|
+
let contents = {};
|
|
559
|
+
contents = de_ExecuteStatementOutput(data, context);
|
|
560
|
+
const response = {
|
|
561
|
+
$metadata: deserializeMetadata(output),
|
|
562
|
+
...contents
|
|
563
|
+
};
|
|
564
|
+
return response;
|
|
565
|
+
}, "de_ExecuteStatementCommand");
|
|
566
|
+
var de_ExecuteStatementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
567
|
+
const parsedOutput = {
|
|
568
|
+
...output,
|
|
569
|
+
body: await parseErrorBody(output.body, context)
|
|
570
|
+
};
|
|
571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
572
|
+
switch (errorCode) {
|
|
573
|
+
case "ActiveStatementsExceededException":
|
|
574
|
+
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
|
|
575
|
+
throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
|
|
576
|
+
case "ExecuteStatementException":
|
|
577
|
+
case "com.amazonaws.redshiftdata#ExecuteStatementException":
|
|
578
|
+
throw await de_ExecuteStatementExceptionRes(parsedOutput, context);
|
|
579
|
+
case "ValidationException":
|
|
580
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
581
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
582
|
+
default:
|
|
583
|
+
const parsedBody = parsedOutput.body;
|
|
584
|
+
return throwDefaultError({
|
|
585
|
+
output,
|
|
586
|
+
parsedBody,
|
|
587
|
+
errorCode
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
}, "de_ExecuteStatementCommandError");
|
|
591
|
+
var de_GetStatementResultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
592
|
+
if (output.statusCode >= 300) {
|
|
593
|
+
return de_GetStatementResultCommandError(output, context);
|
|
594
|
+
}
|
|
595
|
+
const data = await parseBody(output.body, context);
|
|
596
|
+
let contents = {};
|
|
597
|
+
contents = de_GetStatementResultResponse(data, context);
|
|
598
|
+
const response = {
|
|
599
|
+
$metadata: deserializeMetadata(output),
|
|
600
|
+
...contents
|
|
601
|
+
};
|
|
602
|
+
return response;
|
|
603
|
+
}, "de_GetStatementResultCommand");
|
|
604
|
+
var de_GetStatementResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
605
|
+
const parsedOutput = {
|
|
606
|
+
...output,
|
|
607
|
+
body: await parseErrorBody(output.body, context)
|
|
608
|
+
};
|
|
609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
610
|
+
switch (errorCode) {
|
|
611
|
+
case "InternalServerException":
|
|
612
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
613
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
614
|
+
case "ResourceNotFoundException":
|
|
615
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
616
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
617
|
+
case "ValidationException":
|
|
618
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
619
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
620
|
+
default:
|
|
621
|
+
const parsedBody = parsedOutput.body;
|
|
622
|
+
return throwDefaultError({
|
|
623
|
+
output,
|
|
624
|
+
parsedBody,
|
|
625
|
+
errorCode
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
}, "de_GetStatementResultCommandError");
|
|
629
|
+
var de_ListDatabasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
630
|
+
if (output.statusCode >= 300) {
|
|
631
|
+
return de_ListDatabasesCommandError(output, context);
|
|
632
|
+
}
|
|
633
|
+
const data = await parseBody(output.body, context);
|
|
634
|
+
let contents = {};
|
|
635
|
+
contents = (0, import_smithy_client._json)(data);
|
|
636
|
+
const response = {
|
|
637
|
+
$metadata: deserializeMetadata(output),
|
|
638
|
+
...contents
|
|
639
|
+
};
|
|
640
|
+
return response;
|
|
641
|
+
}, "de_ListDatabasesCommand");
|
|
642
|
+
var de_ListDatabasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
+
const parsedOutput = {
|
|
644
|
+
...output,
|
|
645
|
+
body: await parseErrorBody(output.body, context)
|
|
646
|
+
};
|
|
647
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
+
switch (errorCode) {
|
|
649
|
+
case "DatabaseConnectionException":
|
|
650
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
651
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
652
|
+
case "InternalServerException":
|
|
653
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
654
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
655
|
+
case "ValidationException":
|
|
656
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
657
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
658
|
+
default:
|
|
659
|
+
const parsedBody = parsedOutput.body;
|
|
660
|
+
return throwDefaultError({
|
|
661
|
+
output,
|
|
662
|
+
parsedBody,
|
|
663
|
+
errorCode
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
}, "de_ListDatabasesCommandError");
|
|
667
|
+
var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
+
if (output.statusCode >= 300) {
|
|
669
|
+
return de_ListSchemasCommandError(output, context);
|
|
670
|
+
}
|
|
671
|
+
const data = await parseBody(output.body, context);
|
|
672
|
+
let contents = {};
|
|
673
|
+
contents = (0, import_smithy_client._json)(data);
|
|
674
|
+
const response = {
|
|
675
|
+
$metadata: deserializeMetadata(output),
|
|
676
|
+
...contents
|
|
677
|
+
};
|
|
678
|
+
return response;
|
|
679
|
+
}, "de_ListSchemasCommand");
|
|
680
|
+
var de_ListSchemasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
+
const parsedOutput = {
|
|
682
|
+
...output,
|
|
683
|
+
body: await parseErrorBody(output.body, context)
|
|
684
|
+
};
|
|
685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
+
switch (errorCode) {
|
|
687
|
+
case "DatabaseConnectionException":
|
|
688
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
689
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
690
|
+
case "InternalServerException":
|
|
691
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
692
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
693
|
+
case "ValidationException":
|
|
694
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
695
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
696
|
+
default:
|
|
697
|
+
const parsedBody = parsedOutput.body;
|
|
698
|
+
return throwDefaultError({
|
|
699
|
+
output,
|
|
700
|
+
parsedBody,
|
|
701
|
+
errorCode
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
}, "de_ListSchemasCommandError");
|
|
705
|
+
var de_ListStatementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
|
+
if (output.statusCode >= 300) {
|
|
707
|
+
return de_ListStatementsCommandError(output, context);
|
|
708
|
+
}
|
|
709
|
+
const data = await parseBody(output.body, context);
|
|
710
|
+
let contents = {};
|
|
711
|
+
contents = de_ListStatementsResponse(data, context);
|
|
712
|
+
const response = {
|
|
713
|
+
$metadata: deserializeMetadata(output),
|
|
714
|
+
...contents
|
|
715
|
+
};
|
|
716
|
+
return response;
|
|
717
|
+
}, "de_ListStatementsCommand");
|
|
718
|
+
var de_ListStatementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
719
|
+
const parsedOutput = {
|
|
720
|
+
...output,
|
|
721
|
+
body: await parseErrorBody(output.body, context)
|
|
722
|
+
};
|
|
723
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
+
switch (errorCode) {
|
|
725
|
+
case "InternalServerException":
|
|
726
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
727
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
728
|
+
case "ValidationException":
|
|
729
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
730
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
+
default:
|
|
732
|
+
const parsedBody = parsedOutput.body;
|
|
733
|
+
return throwDefaultError({
|
|
734
|
+
output,
|
|
735
|
+
parsedBody,
|
|
736
|
+
errorCode
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
}, "de_ListStatementsCommandError");
|
|
740
|
+
var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
741
|
+
if (output.statusCode >= 300) {
|
|
742
|
+
return de_ListTablesCommandError(output, context);
|
|
743
|
+
}
|
|
744
|
+
const data = await parseBody(output.body, context);
|
|
745
|
+
let contents = {};
|
|
746
|
+
contents = (0, import_smithy_client._json)(data);
|
|
747
|
+
const response = {
|
|
748
|
+
$metadata: deserializeMetadata(output),
|
|
749
|
+
...contents
|
|
750
|
+
};
|
|
751
|
+
return response;
|
|
752
|
+
}, "de_ListTablesCommand");
|
|
753
|
+
var de_ListTablesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
754
|
+
const parsedOutput = {
|
|
755
|
+
...output,
|
|
756
|
+
body: await parseErrorBody(output.body, context)
|
|
757
|
+
};
|
|
758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
switch (errorCode) {
|
|
760
|
+
case "DatabaseConnectionException":
|
|
761
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
762
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
763
|
+
case "InternalServerException":
|
|
764
|
+
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
765
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
766
|
+
case "ValidationException":
|
|
767
|
+
case "com.amazonaws.redshiftdata#ValidationException":
|
|
768
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
769
|
+
default:
|
|
770
|
+
const parsedBody = parsedOutput.body;
|
|
771
|
+
return throwDefaultError({
|
|
772
|
+
output,
|
|
773
|
+
parsedBody,
|
|
774
|
+
errorCode
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
}, "de_ListTablesCommandError");
|
|
778
|
+
var de_ActiveStatementsExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
779
|
+
const body = parsedOutput.body;
|
|
780
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
781
|
+
const exception = new ActiveStatementsExceededException({
|
|
782
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
783
|
+
...deserialized
|
|
784
|
+
});
|
|
785
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
786
|
+
}, "de_ActiveStatementsExceededExceptionRes");
|
|
787
|
+
var de_BatchExecuteStatementExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
788
|
+
const body = parsedOutput.body;
|
|
789
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
790
|
+
const exception = new BatchExecuteStatementException({
|
|
791
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
792
|
+
...deserialized
|
|
793
|
+
});
|
|
794
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
795
|
+
}, "de_BatchExecuteStatementExceptionRes");
|
|
796
|
+
var de_DatabaseConnectionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
797
|
+
const body = parsedOutput.body;
|
|
798
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
799
|
+
const exception = new DatabaseConnectionException({
|
|
800
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
801
|
+
...deserialized
|
|
802
|
+
});
|
|
803
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
804
|
+
}, "de_DatabaseConnectionExceptionRes");
|
|
805
|
+
var de_ExecuteStatementExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
806
|
+
const body = parsedOutput.body;
|
|
807
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
808
|
+
const exception = new ExecuteStatementException({
|
|
809
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
810
|
+
...deserialized
|
|
811
|
+
});
|
|
812
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
813
|
+
}, "de_ExecuteStatementExceptionRes");
|
|
814
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
815
|
+
const body = parsedOutput.body;
|
|
816
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
817
|
+
const exception = new InternalServerException({
|
|
818
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
819
|
+
...deserialized
|
|
820
|
+
});
|
|
821
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
822
|
+
}, "de_InternalServerExceptionRes");
|
|
823
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
824
|
+
const body = parsedOutput.body;
|
|
825
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
826
|
+
const exception = new ResourceNotFoundException({
|
|
827
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
828
|
+
...deserialized
|
|
829
|
+
});
|
|
830
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
831
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
832
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
833
|
+
const body = parsedOutput.body;
|
|
834
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
835
|
+
const exception = new ValidationException({
|
|
836
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
837
|
+
...deserialized
|
|
838
|
+
});
|
|
839
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
840
|
+
}, "de_ValidationExceptionRes");
|
|
841
|
+
var se_BatchExecuteStatementInput = /* @__PURE__ */ __name((input, context) => {
|
|
842
|
+
return (0, import_smithy_client.take)(input, {
|
|
843
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
844
|
+
ClusterIdentifier: [],
|
|
845
|
+
Database: [],
|
|
846
|
+
DbUser: [],
|
|
847
|
+
SecretArn: [],
|
|
848
|
+
Sqls: import_smithy_client._json,
|
|
849
|
+
StatementName: [],
|
|
850
|
+
WithEvent: [],
|
|
851
|
+
WorkgroupName: []
|
|
852
|
+
});
|
|
853
|
+
}, "se_BatchExecuteStatementInput");
|
|
854
|
+
var se_ExecuteStatementInput = /* @__PURE__ */ __name((input, context) => {
|
|
855
|
+
return (0, import_smithy_client.take)(input, {
|
|
856
|
+
ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
857
|
+
ClusterIdentifier: [],
|
|
858
|
+
Database: [],
|
|
859
|
+
DbUser: [],
|
|
860
|
+
Parameters: import_smithy_client._json,
|
|
861
|
+
SecretArn: [],
|
|
862
|
+
Sql: [],
|
|
863
|
+
StatementName: [],
|
|
864
|
+
WithEvent: [],
|
|
865
|
+
WorkgroupName: []
|
|
866
|
+
});
|
|
867
|
+
}, "se_ExecuteStatementInput");
|
|
868
|
+
var de_BatchExecuteStatementOutput = /* @__PURE__ */ __name((output, context) => {
|
|
869
|
+
return (0, import_smithy_client.take)(output, {
|
|
870
|
+
ClusterIdentifier: import_smithy_client.expectString,
|
|
871
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
872
|
+
Database: import_smithy_client.expectString,
|
|
873
|
+
DbUser: import_smithy_client.expectString,
|
|
874
|
+
Id: import_smithy_client.expectString,
|
|
875
|
+
SecretArn: import_smithy_client.expectString,
|
|
876
|
+
WorkgroupName: import_smithy_client.expectString
|
|
877
|
+
});
|
|
878
|
+
}, "de_BatchExecuteStatementOutput");
|
|
879
|
+
var de_DescribeStatementResponse = /* @__PURE__ */ __name((output, context) => {
|
|
880
|
+
return (0, import_smithy_client.take)(output, {
|
|
881
|
+
ClusterIdentifier: import_smithy_client.expectString,
|
|
882
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
883
|
+
Database: import_smithy_client.expectString,
|
|
884
|
+
DbUser: import_smithy_client.expectString,
|
|
885
|
+
Duration: import_smithy_client.expectLong,
|
|
886
|
+
Error: import_smithy_client.expectString,
|
|
887
|
+
HasResultSet: import_smithy_client.expectBoolean,
|
|
888
|
+
Id: import_smithy_client.expectString,
|
|
889
|
+
QueryParameters: import_smithy_client._json,
|
|
890
|
+
QueryString: import_smithy_client.expectString,
|
|
891
|
+
RedshiftPid: import_smithy_client.expectLong,
|
|
892
|
+
RedshiftQueryId: import_smithy_client.expectLong,
|
|
893
|
+
ResultRows: import_smithy_client.expectLong,
|
|
894
|
+
ResultSize: import_smithy_client.expectLong,
|
|
895
|
+
SecretArn: import_smithy_client.expectString,
|
|
896
|
+
Status: import_smithy_client.expectString,
|
|
897
|
+
SubStatements: (_) => de_SubStatementList(_, context),
|
|
898
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
899
|
+
WorkgroupName: import_smithy_client.expectString
|
|
900
|
+
});
|
|
901
|
+
}, "de_DescribeStatementResponse");
|
|
902
|
+
var de_ExecuteStatementOutput = /* @__PURE__ */ __name((output, context) => {
|
|
903
|
+
return (0, import_smithy_client.take)(output, {
|
|
904
|
+
ClusterIdentifier: import_smithy_client.expectString,
|
|
905
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
906
|
+
Database: import_smithy_client.expectString,
|
|
907
|
+
DbUser: import_smithy_client.expectString,
|
|
908
|
+
Id: import_smithy_client.expectString,
|
|
909
|
+
SecretArn: import_smithy_client.expectString,
|
|
910
|
+
WorkgroupName: import_smithy_client.expectString
|
|
911
|
+
});
|
|
912
|
+
}, "de_ExecuteStatementOutput");
|
|
913
|
+
var de_Field = /* @__PURE__ */ __name((output, context) => {
|
|
914
|
+
if (output.blobValue != null) {
|
|
915
|
+
return {
|
|
916
|
+
blobValue: context.base64Decoder(output.blobValue)
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
if ((0, import_smithy_client.expectBoolean)(output.booleanValue) !== void 0) {
|
|
920
|
+
return { booleanValue: (0, import_smithy_client.expectBoolean)(output.booleanValue) };
|
|
921
|
+
}
|
|
922
|
+
if ((0, import_smithy_client.limitedParseDouble)(output.doubleValue) !== void 0) {
|
|
923
|
+
return { doubleValue: (0, import_smithy_client.limitedParseDouble)(output.doubleValue) };
|
|
924
|
+
}
|
|
925
|
+
if ((0, import_smithy_client.expectBoolean)(output.isNull) !== void 0) {
|
|
926
|
+
return { isNull: (0, import_smithy_client.expectBoolean)(output.isNull) };
|
|
927
|
+
}
|
|
928
|
+
if ((0, import_smithy_client.expectLong)(output.longValue) !== void 0) {
|
|
929
|
+
return { longValue: (0, import_smithy_client.expectLong)(output.longValue) };
|
|
930
|
+
}
|
|
931
|
+
if ((0, import_smithy_client.expectString)(output.stringValue) !== void 0) {
|
|
932
|
+
return { stringValue: (0, import_smithy_client.expectString)(output.stringValue) };
|
|
933
|
+
}
|
|
934
|
+
return { $unknown: Object.entries(output)[0] };
|
|
935
|
+
}, "de_Field");
|
|
936
|
+
var de_FieldList = /* @__PURE__ */ __name((output, context) => {
|
|
937
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
938
|
+
return de_Field((0, import_core.awsExpectUnion)(entry), context);
|
|
939
|
+
});
|
|
940
|
+
return retVal;
|
|
941
|
+
}, "de_FieldList");
|
|
942
|
+
var de_GetStatementResultResponse = /* @__PURE__ */ __name((output, context) => {
|
|
943
|
+
return (0, import_smithy_client.take)(output, {
|
|
944
|
+
ColumnMetadata: import_smithy_client._json,
|
|
945
|
+
NextToken: import_smithy_client.expectString,
|
|
946
|
+
Records: (_) => de_SqlRecords(_, context),
|
|
947
|
+
TotalNumRows: import_smithy_client.expectLong
|
|
948
|
+
});
|
|
949
|
+
}, "de_GetStatementResultResponse");
|
|
950
|
+
var de_ListStatementsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
951
|
+
return (0, import_smithy_client.take)(output, {
|
|
952
|
+
NextToken: import_smithy_client.expectString,
|
|
953
|
+
Statements: (_) => de_StatementList(_, context)
|
|
954
|
+
});
|
|
955
|
+
}, "de_ListStatementsResponse");
|
|
956
|
+
var de_SqlRecords = /* @__PURE__ */ __name((output, context) => {
|
|
957
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
958
|
+
return de_FieldList(entry, context);
|
|
959
|
+
});
|
|
960
|
+
return retVal;
|
|
961
|
+
}, "de_SqlRecords");
|
|
962
|
+
var de_StatementData = /* @__PURE__ */ __name((output, context) => {
|
|
963
|
+
return (0, import_smithy_client.take)(output, {
|
|
964
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
965
|
+
Id: import_smithy_client.expectString,
|
|
966
|
+
IsBatchStatement: import_smithy_client.expectBoolean,
|
|
967
|
+
QueryParameters: import_smithy_client._json,
|
|
968
|
+
QueryString: import_smithy_client.expectString,
|
|
969
|
+
QueryStrings: import_smithy_client._json,
|
|
970
|
+
SecretArn: import_smithy_client.expectString,
|
|
971
|
+
StatementName: import_smithy_client.expectString,
|
|
972
|
+
Status: import_smithy_client.expectString,
|
|
973
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
974
|
+
});
|
|
975
|
+
}, "de_StatementData");
|
|
976
|
+
var de_StatementList = /* @__PURE__ */ __name((output, context) => {
|
|
977
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
978
|
+
return de_StatementData(entry, context);
|
|
979
|
+
});
|
|
980
|
+
return retVal;
|
|
981
|
+
}, "de_StatementList");
|
|
982
|
+
var de_SubStatementData = /* @__PURE__ */ __name((output, context) => {
|
|
983
|
+
return (0, import_smithy_client.take)(output, {
|
|
984
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
985
|
+
Duration: import_smithy_client.expectLong,
|
|
986
|
+
Error: import_smithy_client.expectString,
|
|
987
|
+
HasResultSet: import_smithy_client.expectBoolean,
|
|
988
|
+
Id: import_smithy_client.expectString,
|
|
989
|
+
QueryString: import_smithy_client.expectString,
|
|
990
|
+
RedshiftQueryId: import_smithy_client.expectLong,
|
|
991
|
+
ResultRows: import_smithy_client.expectLong,
|
|
992
|
+
ResultSize: import_smithy_client.expectLong,
|
|
993
|
+
Status: import_smithy_client.expectString,
|
|
994
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
995
|
+
});
|
|
996
|
+
}, "de_SubStatementData");
|
|
997
|
+
var de_SubStatementList = /* @__PURE__ */ __name((output, context) => {
|
|
998
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
999
|
+
return de_SubStatementData(entry, context);
|
|
1000
|
+
});
|
|
1001
|
+
return retVal;
|
|
1002
|
+
}, "de_SubStatementList");
|
|
1003
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1004
|
+
httpStatusCode: output.statusCode,
|
|
1005
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1006
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1007
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1008
|
+
}), "deserializeMetadata");
|
|
1009
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1010
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(RedshiftDataServiceException);
|
|
1011
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1012
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1013
|
+
const contents = {
|
|
1014
|
+
protocol,
|
|
1015
|
+
hostname,
|
|
1016
|
+
port,
|
|
1017
|
+
method: "POST",
|
|
1018
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1019
|
+
headers
|
|
1020
|
+
};
|
|
1021
|
+
if (resolvedHostname !== void 0) {
|
|
1022
|
+
contents.hostname = resolvedHostname;
|
|
1023
|
+
}
|
|
1024
|
+
if (body !== void 0) {
|
|
1025
|
+
contents.body = body;
|
|
1026
|
+
}
|
|
1027
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
1028
|
+
}, "buildHttpRpcRequest");
|
|
1029
|
+
function sharedHeaders(operation) {
|
|
1030
|
+
return {
|
|
1031
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1032
|
+
"x-amz-target": `RedshiftData.${operation}`
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
1036
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1037
|
+
if (encoded.length) {
|
|
1038
|
+
return JSON.parse(encoded);
|
|
1039
|
+
}
|
|
1040
|
+
return {};
|
|
1041
|
+
}), "parseBody");
|
|
1042
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1043
|
+
const value = await parseBody(errorBody, context);
|
|
1044
|
+
value.message = value.message ?? value.Message;
|
|
1045
|
+
return value;
|
|
1046
|
+
}, "parseErrorBody");
|
|
1047
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1048
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1049
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1050
|
+
let cleanValue = rawValue;
|
|
1051
|
+
if (typeof cleanValue === "number") {
|
|
1052
|
+
cleanValue = cleanValue.toString();
|
|
1053
|
+
}
|
|
1054
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1055
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1056
|
+
}
|
|
1057
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1058
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1059
|
+
}
|
|
1060
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1061
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1062
|
+
}
|
|
1063
|
+
return cleanValue;
|
|
1064
|
+
}, "sanitizeErrorCode");
|
|
1065
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1066
|
+
if (headerKey !== void 0) {
|
|
1067
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1068
|
+
}
|
|
1069
|
+
if (data.code !== void 0) {
|
|
1070
|
+
return sanitizeErrorCode(data.code);
|
|
1071
|
+
}
|
|
1072
|
+
if (data["__type"] !== void 0) {
|
|
1073
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1074
|
+
}
|
|
1075
|
+
}, "loadRestJsonErrorCode");
|
|
1076
|
+
|
|
1077
|
+
// src/commands/BatchExecuteStatementCommand.ts
|
|
1078
|
+
var _BatchExecuteStatementCommand = class _BatchExecuteStatementCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1079
|
+
...commonParams
|
|
1080
|
+
}).m(function(Command, cs, config, o) {
|
|
1081
|
+
return [
|
|
1082
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1083
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1084
|
+
];
|
|
1085
|
+
}).s("RedshiftData", "BatchExecuteStatement", {}).n("RedshiftDataClient", "BatchExecuteStatementCommand").f(void 0, void 0).ser(se_BatchExecuteStatementCommand).de(de_BatchExecuteStatementCommand).build() {
|
|
1086
|
+
};
|
|
1087
|
+
__name(_BatchExecuteStatementCommand, "BatchExecuteStatementCommand");
|
|
1088
|
+
var BatchExecuteStatementCommand = _BatchExecuteStatementCommand;
|
|
1089
|
+
|
|
1090
|
+
// src/commands/CancelStatementCommand.ts
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
var _CancelStatementCommand = class _CancelStatementCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1096
|
+
...commonParams
|
|
1097
|
+
}).m(function(Command, cs, config, o) {
|
|
1098
|
+
return [
|
|
1099
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1100
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1101
|
+
];
|
|
1102
|
+
}).s("RedshiftData", "CancelStatement", {}).n("RedshiftDataClient", "CancelStatementCommand").f(void 0, void 0).ser(se_CancelStatementCommand).de(de_CancelStatementCommand).build() {
|
|
1103
|
+
};
|
|
1104
|
+
__name(_CancelStatementCommand, "CancelStatementCommand");
|
|
1105
|
+
var CancelStatementCommand = _CancelStatementCommand;
|
|
1106
|
+
|
|
1107
|
+
// src/commands/DescribeStatementCommand.ts
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
var _DescribeStatementCommand = class _DescribeStatementCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1113
|
+
...commonParams
|
|
1114
|
+
}).m(function(Command, cs, config, o) {
|
|
1115
|
+
return [
|
|
1116
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1117
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1118
|
+
];
|
|
1119
|
+
}).s("RedshiftData", "DescribeStatement", {}).n("RedshiftDataClient", "DescribeStatementCommand").f(void 0, void 0).ser(se_DescribeStatementCommand).de(de_DescribeStatementCommand).build() {
|
|
1120
|
+
};
|
|
1121
|
+
__name(_DescribeStatementCommand, "DescribeStatementCommand");
|
|
1122
|
+
var DescribeStatementCommand = _DescribeStatementCommand;
|
|
1123
|
+
|
|
1124
|
+
// src/commands/DescribeTableCommand.ts
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
var _DescribeTableCommand = class _DescribeTableCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1130
|
+
...commonParams
|
|
1131
|
+
}).m(function(Command, cs, config, o) {
|
|
1132
|
+
return [
|
|
1133
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1134
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1135
|
+
];
|
|
1136
|
+
}).s("RedshiftData", "DescribeTable", {}).n("RedshiftDataClient", "DescribeTableCommand").f(void 0, void 0).ser(se_DescribeTableCommand).de(de_DescribeTableCommand).build() {
|
|
1137
|
+
};
|
|
1138
|
+
__name(_DescribeTableCommand, "DescribeTableCommand");
|
|
1139
|
+
var DescribeTableCommand = _DescribeTableCommand;
|
|
1140
|
+
|
|
1141
|
+
// src/commands/ExecuteStatementCommand.ts
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
var _ExecuteStatementCommand = class _ExecuteStatementCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1147
|
+
...commonParams
|
|
1148
|
+
}).m(function(Command, cs, config, o) {
|
|
1149
|
+
return [
|
|
1150
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1151
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1152
|
+
];
|
|
1153
|
+
}).s("RedshiftData", "ExecuteStatement", {}).n("RedshiftDataClient", "ExecuteStatementCommand").f(void 0, void 0).ser(se_ExecuteStatementCommand).de(de_ExecuteStatementCommand).build() {
|
|
1154
|
+
};
|
|
1155
|
+
__name(_ExecuteStatementCommand, "ExecuteStatementCommand");
|
|
1156
|
+
var ExecuteStatementCommand = _ExecuteStatementCommand;
|
|
1157
|
+
|
|
1158
|
+
// src/commands/GetStatementResultCommand.ts
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
var _GetStatementResultCommand = class _GetStatementResultCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1164
|
+
...commonParams
|
|
1165
|
+
}).m(function(Command, cs, config, o) {
|
|
1166
|
+
return [
|
|
1167
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1168
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1169
|
+
];
|
|
1170
|
+
}).s("RedshiftData", "GetStatementResult", {}).n("RedshiftDataClient", "GetStatementResultCommand").f(void 0, void 0).ser(se_GetStatementResultCommand).de(de_GetStatementResultCommand).build() {
|
|
1171
|
+
};
|
|
1172
|
+
__name(_GetStatementResultCommand, "GetStatementResultCommand");
|
|
1173
|
+
var GetStatementResultCommand = _GetStatementResultCommand;
|
|
1174
|
+
|
|
1175
|
+
// src/commands/ListDatabasesCommand.ts
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
var _ListDatabasesCommand = class _ListDatabasesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1181
|
+
...commonParams
|
|
1182
|
+
}).m(function(Command, cs, config, o) {
|
|
1183
|
+
return [
|
|
1184
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1185
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1186
|
+
];
|
|
1187
|
+
}).s("RedshiftData", "ListDatabases", {}).n("RedshiftDataClient", "ListDatabasesCommand").f(void 0, void 0).ser(se_ListDatabasesCommand).de(de_ListDatabasesCommand).build() {
|
|
1188
|
+
};
|
|
1189
|
+
__name(_ListDatabasesCommand, "ListDatabasesCommand");
|
|
1190
|
+
var ListDatabasesCommand = _ListDatabasesCommand;
|
|
1191
|
+
|
|
1192
|
+
// src/commands/ListSchemasCommand.ts
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
var _ListSchemasCommand = class _ListSchemasCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1198
|
+
...commonParams
|
|
1199
|
+
}).m(function(Command, cs, config, o) {
|
|
1200
|
+
return [
|
|
1201
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1202
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1203
|
+
];
|
|
1204
|
+
}).s("RedshiftData", "ListSchemas", {}).n("RedshiftDataClient", "ListSchemasCommand").f(void 0, void 0).ser(se_ListSchemasCommand).de(de_ListSchemasCommand).build() {
|
|
1205
|
+
};
|
|
1206
|
+
__name(_ListSchemasCommand, "ListSchemasCommand");
|
|
1207
|
+
var ListSchemasCommand = _ListSchemasCommand;
|
|
1208
|
+
|
|
1209
|
+
// src/commands/ListStatementsCommand.ts
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
var _ListStatementsCommand = class _ListStatementsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1215
|
+
...commonParams
|
|
1216
|
+
}).m(function(Command, cs, config, o) {
|
|
1217
|
+
return [
|
|
1218
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1219
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1220
|
+
];
|
|
1221
|
+
}).s("RedshiftData", "ListStatements", {}).n("RedshiftDataClient", "ListStatementsCommand").f(void 0, void 0).ser(se_ListStatementsCommand).de(de_ListStatementsCommand).build() {
|
|
1222
|
+
};
|
|
1223
|
+
__name(_ListStatementsCommand, "ListStatementsCommand");
|
|
1224
|
+
var ListStatementsCommand = _ListStatementsCommand;
|
|
1225
|
+
|
|
1226
|
+
// src/commands/ListTablesCommand.ts
|
|
1227
|
+
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
var _ListTablesCommand = class _ListTablesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1232
|
+
...commonParams
|
|
1233
|
+
}).m(function(Command, cs, config, o) {
|
|
1234
|
+
return [
|
|
1235
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1236
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1237
|
+
];
|
|
1238
|
+
}).s("RedshiftData", "ListTables", {}).n("RedshiftDataClient", "ListTablesCommand").f(void 0, void 0).ser(se_ListTablesCommand).de(de_ListTablesCommand).build() {
|
|
1239
|
+
};
|
|
1240
|
+
__name(_ListTablesCommand, "ListTablesCommand");
|
|
1241
|
+
var ListTablesCommand = _ListTablesCommand;
|
|
1242
|
+
|
|
1243
|
+
// src/RedshiftData.ts
|
|
1244
|
+
var commands = {
|
|
1245
|
+
BatchExecuteStatementCommand,
|
|
1246
|
+
CancelStatementCommand,
|
|
1247
|
+
DescribeStatementCommand,
|
|
1248
|
+
DescribeTableCommand,
|
|
1249
|
+
ExecuteStatementCommand,
|
|
1250
|
+
GetStatementResultCommand,
|
|
1251
|
+
ListDatabasesCommand,
|
|
1252
|
+
ListSchemasCommand,
|
|
1253
|
+
ListStatementsCommand,
|
|
1254
|
+
ListTablesCommand
|
|
1255
|
+
};
|
|
1256
|
+
var _RedshiftData = class _RedshiftData extends RedshiftDataClient {
|
|
1257
|
+
};
|
|
1258
|
+
__name(_RedshiftData, "RedshiftData");
|
|
1259
|
+
var RedshiftData = _RedshiftData;
|
|
1260
|
+
(0, import_smithy_client.createAggregatedClient)(commands, RedshiftData);
|
|
1261
|
+
|
|
1262
|
+
// src/pagination/DescribeTablePaginator.ts
|
|
1263
|
+
var import_core2 = require("@smithy/core");
|
|
1264
|
+
var paginateDescribeTable = (0, import_core2.createPaginator)(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
|
|
1265
|
+
|
|
1266
|
+
// src/pagination/GetStatementResultPaginator.ts
|
|
1267
|
+
var import_core3 = require("@smithy/core");
|
|
1268
|
+
var paginateGetStatementResult = (0, import_core3.createPaginator)(RedshiftDataClient, GetStatementResultCommand, "NextToken", "NextToken", "");
|
|
1269
|
+
|
|
1270
|
+
// src/pagination/ListDatabasesPaginator.ts
|
|
1271
|
+
var import_core4 = require("@smithy/core");
|
|
1272
|
+
var paginateListDatabases = (0, import_core4.createPaginator)(RedshiftDataClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1273
|
+
|
|
1274
|
+
// src/pagination/ListSchemasPaginator.ts
|
|
1275
|
+
var import_core5 = require("@smithy/core");
|
|
1276
|
+
var paginateListSchemas = (0, import_core5.createPaginator)(RedshiftDataClient, ListSchemasCommand, "NextToken", "NextToken", "MaxResults");
|
|
1277
|
+
|
|
1278
|
+
// src/pagination/ListStatementsPaginator.ts
|
|
1279
|
+
var import_core6 = require("@smithy/core");
|
|
1280
|
+
var paginateListStatements = (0, import_core6.createPaginator)(RedshiftDataClient, ListStatementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1281
|
+
|
|
1282
|
+
// src/pagination/ListTablesPaginator.ts
|
|
1283
|
+
var import_core7 = require("@smithy/core");
|
|
1284
|
+
var paginateListTables = (0, import_core7.createPaginator)(RedshiftDataClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1285
|
+
|
|
1286
|
+
// src/index.ts
|
|
1287
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1288
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1289
|
+
|
|
1290
|
+
0 && (module.exports = {
|
|
1291
|
+
ActiveStatementsExceededException,
|
|
1292
|
+
BatchExecuteStatementCommand,
|
|
1293
|
+
BatchExecuteStatementException,
|
|
1294
|
+
CancelStatementCommand,
|
|
1295
|
+
DatabaseConnectionException,
|
|
1296
|
+
DescribeStatementCommand,
|
|
1297
|
+
DescribeTableCommand,
|
|
1298
|
+
ExecuteStatementCommand,
|
|
1299
|
+
ExecuteStatementException,
|
|
1300
|
+
Field,
|
|
1301
|
+
GetStatementResultCommand,
|
|
1302
|
+
InternalServerException,
|
|
1303
|
+
ListDatabasesCommand,
|
|
1304
|
+
ListSchemasCommand,
|
|
1305
|
+
ListStatementsCommand,
|
|
1306
|
+
ListTablesCommand,
|
|
1307
|
+
RedshiftData,
|
|
1308
|
+
RedshiftDataClient,
|
|
1309
|
+
RedshiftDataServiceException,
|
|
1310
|
+
ResourceNotFoundException,
|
|
1311
|
+
StatementStatusString,
|
|
1312
|
+
StatusString,
|
|
1313
|
+
ValidationException,
|
|
1314
|
+
__Client,
|
|
1315
|
+
paginateDescribeTable,
|
|
1316
|
+
paginateGetStatementResult,
|
|
1317
|
+
paginateListDatabases,
|
|
1318
|
+
paginateListSchemas,
|
|
1319
|
+
paginateListStatements,
|
|
1320
|
+
paginateListTables
|
|
1321
|
+
});
|
|
1322
|
+
|