@aws-sdk/client-redshift-data 3.303.0 → 3.309.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/commands/BatchExecuteStatementCommand.js +2 -2
- package/dist-cjs/commands/CancelStatementCommand.js +2 -2
- package/dist-cjs/commands/DescribeStatementCommand.js +2 -2
- package/dist-cjs/commands/DescribeTableCommand.js +2 -2
- package/dist-cjs/commands/ExecuteStatementCommand.js +2 -2
- package/dist-cjs/commands/GetStatementResultCommand.js +2 -2
- package/dist-cjs/commands/ListDatabasesCommand.js +2 -2
- package/dist-cjs/commands/ListSchemasCommand.js +2 -2
- package/dist-cjs/commands/ListStatementsCommand.js +2 -2
- package/dist-cjs/commands/ListTablesCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +194 -200
- package/dist-es/commands/BatchExecuteStatementCommand.js +3 -3
- package/dist-es/commands/CancelStatementCommand.js +3 -3
- package/dist-es/commands/DescribeStatementCommand.js +3 -3
- package/dist-es/commands/DescribeTableCommand.js +3 -3
- package/dist-es/commands/ExecuteStatementCommand.js +3 -3
- package/dist-es/commands/GetStatementResultCommand.js +3 -3
- package/dist-es/commands/ListDatabasesCommand.js +3 -3
- package/dist-es/commands/ListSchemasCommand.js +3 -3
- package/dist-es/commands/ListStatementsCommand.js +3 -3
- package/dist-es/commands/ListTablesCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +173 -179
- package/dist-types/RedshiftData.d.ts +144 -30
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +24 -5
- package/dist-types/commands/DescribeTableCommand.d.ts +24 -5
- package/dist-types/commands/ExecuteStatementCommand.d.ts +24 -5
- package/dist-types/commands/ListDatabasesCommand.d.ts +24 -5
- package/dist-types/commands/ListSchemasCommand.d.ts +24 -5
- package/dist-types/commands/ListTablesCommand.d.ts +24 -5
- package/dist-types/models/models_0.d.ts +6 -6
- package/dist-types/protocols/Aws_json1_1.d.ts +80 -20
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +20 -20
- package/package.json +29 -29
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_ListTablesCommand = exports.de_ListStatementsCommand = exports.de_ListSchemasCommand = exports.de_ListDatabasesCommand = exports.de_GetStatementResultCommand = exports.de_ExecuteStatementCommand = exports.de_DescribeTableCommand = exports.de_DescribeStatementCommand = exports.de_CancelStatementCommand = exports.de_BatchExecuteStatementCommand = exports.se_ListTablesCommand = exports.se_ListStatementsCommand = exports.se_ListSchemasCommand = exports.se_ListDatabasesCommand = exports.se_GetStatementResultCommand = exports.se_ExecuteStatementCommand = exports.se_DescribeTableCommand = exports.se_DescribeStatementCommand = exports.se_CancelStatementCommand = exports.se_BatchExecuteStatementCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const RedshiftDataServiceException_1 = require("../models/RedshiftDataServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "RedshiftData.BatchExecuteStatement",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_BatchExecuteStatementInput(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_BatchExecuteStatementCommand = se_BatchExecuteStatementCommand;
|
|
19
|
+
const se_CancelStatementCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "RedshiftData.CancelStatement",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CancelStatementRequest(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CancelStatementCommand = se_CancelStatementCommand;
|
|
29
|
+
const se_DescribeStatementCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "RedshiftData.DescribeStatement",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_DescribeStatementRequest(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_DescribeStatementCommand = se_DescribeStatementCommand;
|
|
39
|
+
const se_DescribeTableCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "RedshiftData.DescribeTable",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_DescribeTableRequest(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_DescribeTableCommand = se_DescribeTableCommand;
|
|
49
|
+
const se_ExecuteStatementCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "RedshiftData.ExecuteStatement",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_ExecuteStatementInput(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_ExecuteStatementCommand = se_ExecuteStatementCommand;
|
|
59
|
+
const se_GetStatementResultCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "RedshiftData.GetStatementResult",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_GetStatementResultRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_GetStatementResultCommand = se_GetStatementResultCommand;
|
|
69
|
+
const se_ListDatabasesCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "RedshiftData.ListDatabases",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_ListDatabasesRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
79
|
+
const se_ListSchemasCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "RedshiftData.ListSchemas",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_ListSchemasRequest(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_ListSchemasCommand = se_ListSchemasCommand;
|
|
89
|
+
const se_ListStatementsCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "RedshiftData.ListStatements",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_ListStatementsRequest(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_ListStatementsCommand = se_ListStatementsCommand;
|
|
99
|
+
const se_ListTablesCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "RedshiftData.ListTables",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_ListTablesRequest(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_ListTablesCommand = se_ListTablesCommand;
|
|
109
|
+
const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
110
110
|
if (output.statusCode >= 300) {
|
|
111
|
-
return
|
|
111
|
+
return de_BatchExecuteStatementCommandError(output, context);
|
|
112
112
|
}
|
|
113
113
|
const data = await parseBody(output.body, context);
|
|
114
114
|
let contents = {};
|
|
115
|
-
contents =
|
|
115
|
+
contents = de_BatchExecuteStatementOutput(data, context);
|
|
116
116
|
const response = {
|
|
117
117
|
$metadata: deserializeMetadata(output),
|
|
118
118
|
...contents,
|
|
119
119
|
};
|
|
120
120
|
return Promise.resolve(response);
|
|
121
121
|
};
|
|
122
|
-
exports.
|
|
123
|
-
const
|
|
122
|
+
exports.de_BatchExecuteStatementCommand = de_BatchExecuteStatementCommand;
|
|
123
|
+
const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
124
124
|
const parsedOutput = {
|
|
125
125
|
...output,
|
|
126
126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -129,13 +129,13 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
|
|
|
129
129
|
switch (errorCode) {
|
|
130
130
|
case "ActiveStatementsExceededException":
|
|
131
131
|
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
|
|
132
|
-
throw await
|
|
132
|
+
throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
|
|
133
133
|
case "BatchExecuteStatementException":
|
|
134
134
|
case "com.amazonaws.redshiftdata#BatchExecuteStatementException":
|
|
135
|
-
throw await
|
|
135
|
+
throw await de_BatchExecuteStatementExceptionRes(parsedOutput, context);
|
|
136
136
|
case "ValidationException":
|
|
137
137
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
138
|
-
throw await
|
|
138
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
139
139
|
default:
|
|
140
140
|
const parsedBody = parsedOutput.body;
|
|
141
141
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -146,21 +146,21 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
const
|
|
149
|
+
const de_CancelStatementCommand = async (output, context) => {
|
|
150
150
|
if (output.statusCode >= 300) {
|
|
151
|
-
return
|
|
151
|
+
return de_CancelStatementCommandError(output, context);
|
|
152
152
|
}
|
|
153
153
|
const data = await parseBody(output.body, context);
|
|
154
154
|
let contents = {};
|
|
155
|
-
contents =
|
|
155
|
+
contents = de_CancelStatementResponse(data, context);
|
|
156
156
|
const response = {
|
|
157
157
|
$metadata: deserializeMetadata(output),
|
|
158
158
|
...contents,
|
|
159
159
|
};
|
|
160
160
|
return Promise.resolve(response);
|
|
161
161
|
};
|
|
162
|
-
exports.
|
|
163
|
-
const
|
|
162
|
+
exports.de_CancelStatementCommand = de_CancelStatementCommand;
|
|
163
|
+
const de_CancelStatementCommandError = async (output, context) => {
|
|
164
164
|
const parsedOutput = {
|
|
165
165
|
...output,
|
|
166
166
|
body: await parseErrorBody(output.body, context),
|
|
@@ -169,16 +169,16 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
169
169
|
switch (errorCode) {
|
|
170
170
|
case "DatabaseConnectionException":
|
|
171
171
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
172
|
-
throw await
|
|
172
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
173
173
|
case "InternalServerException":
|
|
174
174
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
175
|
-
throw await
|
|
175
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
176
176
|
case "ResourceNotFoundException":
|
|
177
177
|
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
178
|
-
throw await
|
|
178
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
179
179
|
case "ValidationException":
|
|
180
180
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
181
|
-
throw await
|
|
181
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
182
182
|
default:
|
|
183
183
|
const parsedBody = parsedOutput.body;
|
|
184
184
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -189,21 +189,21 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
const
|
|
192
|
+
const de_DescribeStatementCommand = async (output, context) => {
|
|
193
193
|
if (output.statusCode >= 300) {
|
|
194
|
-
return
|
|
194
|
+
return de_DescribeStatementCommandError(output, context);
|
|
195
195
|
}
|
|
196
196
|
const data = await parseBody(output.body, context);
|
|
197
197
|
let contents = {};
|
|
198
|
-
contents =
|
|
198
|
+
contents = de_DescribeStatementResponse(data, context);
|
|
199
199
|
const response = {
|
|
200
200
|
$metadata: deserializeMetadata(output),
|
|
201
201
|
...contents,
|
|
202
202
|
};
|
|
203
203
|
return Promise.resolve(response);
|
|
204
204
|
};
|
|
205
|
-
exports.
|
|
206
|
-
const
|
|
205
|
+
exports.de_DescribeStatementCommand = de_DescribeStatementCommand;
|
|
206
|
+
const de_DescribeStatementCommandError = async (output, context) => {
|
|
207
207
|
const parsedOutput = {
|
|
208
208
|
...output,
|
|
209
209
|
body: await parseErrorBody(output.body, context),
|
|
@@ -212,13 +212,13 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
|
|
|
212
212
|
switch (errorCode) {
|
|
213
213
|
case "InternalServerException":
|
|
214
214
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
215
|
-
throw await
|
|
215
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
216
216
|
case "ResourceNotFoundException":
|
|
217
217
|
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
218
|
-
throw await
|
|
218
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
219
219
|
case "ValidationException":
|
|
220
220
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
221
|
-
throw await
|
|
221
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
222
222
|
default:
|
|
223
223
|
const parsedBody = parsedOutput.body;
|
|
224
224
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -229,21 +229,21 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
|
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
|
-
const
|
|
232
|
+
const de_DescribeTableCommand = async (output, context) => {
|
|
233
233
|
if (output.statusCode >= 300) {
|
|
234
|
-
return
|
|
234
|
+
return de_DescribeTableCommandError(output, context);
|
|
235
235
|
}
|
|
236
236
|
const data = await parseBody(output.body, context);
|
|
237
237
|
let contents = {};
|
|
238
|
-
contents =
|
|
238
|
+
contents = de_DescribeTableResponse(data, context);
|
|
239
239
|
const response = {
|
|
240
240
|
$metadata: deserializeMetadata(output),
|
|
241
241
|
...contents,
|
|
242
242
|
};
|
|
243
243
|
return Promise.resolve(response);
|
|
244
244
|
};
|
|
245
|
-
exports.
|
|
246
|
-
const
|
|
245
|
+
exports.de_DescribeTableCommand = de_DescribeTableCommand;
|
|
246
|
+
const de_DescribeTableCommandError = async (output, context) => {
|
|
247
247
|
const parsedOutput = {
|
|
248
248
|
...output,
|
|
249
249
|
body: await parseErrorBody(output.body, context),
|
|
@@ -252,13 +252,13 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
252
252
|
switch (errorCode) {
|
|
253
253
|
case "DatabaseConnectionException":
|
|
254
254
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
256
256
|
case "InternalServerException":
|
|
257
257
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
259
259
|
case "ValidationException":
|
|
260
260
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
262
262
|
default:
|
|
263
263
|
const parsedBody = parsedOutput.body;
|
|
264
264
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -269,21 +269,21 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
const
|
|
272
|
+
const de_ExecuteStatementCommand = async (output, context) => {
|
|
273
273
|
if (output.statusCode >= 300) {
|
|
274
|
-
return
|
|
274
|
+
return de_ExecuteStatementCommandError(output, context);
|
|
275
275
|
}
|
|
276
276
|
const data = await parseBody(output.body, context);
|
|
277
277
|
let contents = {};
|
|
278
|
-
contents =
|
|
278
|
+
contents = de_ExecuteStatementOutput(data, context);
|
|
279
279
|
const response = {
|
|
280
280
|
$metadata: deserializeMetadata(output),
|
|
281
281
|
...contents,
|
|
282
282
|
};
|
|
283
283
|
return Promise.resolve(response);
|
|
284
284
|
};
|
|
285
|
-
exports.
|
|
286
|
-
const
|
|
285
|
+
exports.de_ExecuteStatementCommand = de_ExecuteStatementCommand;
|
|
286
|
+
const de_ExecuteStatementCommandError = async (output, context) => {
|
|
287
287
|
const parsedOutput = {
|
|
288
288
|
...output,
|
|
289
289
|
body: await parseErrorBody(output.body, context),
|
|
@@ -292,13 +292,13 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
|
|
|
292
292
|
switch (errorCode) {
|
|
293
293
|
case "ActiveStatementsExceededException":
|
|
294
294
|
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
|
|
295
|
-
throw await
|
|
295
|
+
throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
|
|
296
296
|
case "ExecuteStatementException":
|
|
297
297
|
case "com.amazonaws.redshiftdata#ExecuteStatementException":
|
|
298
|
-
throw await
|
|
298
|
+
throw await de_ExecuteStatementExceptionRes(parsedOutput, context);
|
|
299
299
|
case "ValidationException":
|
|
300
300
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
301
|
-
throw await
|
|
301
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
302
302
|
default:
|
|
303
303
|
const parsedBody = parsedOutput.body;
|
|
304
304
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -309,21 +309,21 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
|
-
const
|
|
312
|
+
const de_GetStatementResultCommand = async (output, context) => {
|
|
313
313
|
if (output.statusCode >= 300) {
|
|
314
|
-
return
|
|
314
|
+
return de_GetStatementResultCommandError(output, context);
|
|
315
315
|
}
|
|
316
316
|
const data = await parseBody(output.body, context);
|
|
317
317
|
let contents = {};
|
|
318
|
-
contents =
|
|
318
|
+
contents = de_GetStatementResultResponse(data, context);
|
|
319
319
|
const response = {
|
|
320
320
|
$metadata: deserializeMetadata(output),
|
|
321
321
|
...contents,
|
|
322
322
|
};
|
|
323
323
|
return Promise.resolve(response);
|
|
324
324
|
};
|
|
325
|
-
exports.
|
|
326
|
-
const
|
|
325
|
+
exports.de_GetStatementResultCommand = de_GetStatementResultCommand;
|
|
326
|
+
const de_GetStatementResultCommandError = async (output, context) => {
|
|
327
327
|
const parsedOutput = {
|
|
328
328
|
...output,
|
|
329
329
|
body: await parseErrorBody(output.body, context),
|
|
@@ -332,13 +332,13 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
|
|
|
332
332
|
switch (errorCode) {
|
|
333
333
|
case "InternalServerException":
|
|
334
334
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
335
|
-
throw await
|
|
335
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
336
336
|
case "ResourceNotFoundException":
|
|
337
337
|
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
338
|
-
throw await
|
|
338
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
339
339
|
case "ValidationException":
|
|
340
340
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
341
|
-
throw await
|
|
341
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
342
|
default:
|
|
343
343
|
const parsedBody = parsedOutput.body;
|
|
344
344
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -349,21 +349,21 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
|
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
const
|
|
352
|
+
const de_ListDatabasesCommand = async (output, context) => {
|
|
353
353
|
if (output.statusCode >= 300) {
|
|
354
|
-
return
|
|
354
|
+
return de_ListDatabasesCommandError(output, context);
|
|
355
355
|
}
|
|
356
356
|
const data = await parseBody(output.body, context);
|
|
357
357
|
let contents = {};
|
|
358
|
-
contents =
|
|
358
|
+
contents = de_ListDatabasesResponse(data, context);
|
|
359
359
|
const response = {
|
|
360
360
|
$metadata: deserializeMetadata(output),
|
|
361
361
|
...contents,
|
|
362
362
|
};
|
|
363
363
|
return Promise.resolve(response);
|
|
364
364
|
};
|
|
365
|
-
exports.
|
|
366
|
-
const
|
|
365
|
+
exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
|
|
366
|
+
const de_ListDatabasesCommandError = async (output, context) => {
|
|
367
367
|
const parsedOutput = {
|
|
368
368
|
...output,
|
|
369
369
|
body: await parseErrorBody(output.body, context),
|
|
@@ -372,13 +372,13 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
372
372
|
switch (errorCode) {
|
|
373
373
|
case "DatabaseConnectionException":
|
|
374
374
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
375
|
-
throw await
|
|
375
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
376
376
|
case "InternalServerException":
|
|
377
377
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
378
|
-
throw await
|
|
378
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
379
379
|
case "ValidationException":
|
|
380
380
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
381
|
-
throw await
|
|
381
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
382
382
|
default:
|
|
383
383
|
const parsedBody = parsedOutput.body;
|
|
384
384
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -389,21 +389,21 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
|
-
const
|
|
392
|
+
const de_ListSchemasCommand = async (output, context) => {
|
|
393
393
|
if (output.statusCode >= 300) {
|
|
394
|
-
return
|
|
394
|
+
return de_ListSchemasCommandError(output, context);
|
|
395
395
|
}
|
|
396
396
|
const data = await parseBody(output.body, context);
|
|
397
397
|
let contents = {};
|
|
398
|
-
contents =
|
|
398
|
+
contents = de_ListSchemasResponse(data, context);
|
|
399
399
|
const response = {
|
|
400
400
|
$metadata: deserializeMetadata(output),
|
|
401
401
|
...contents,
|
|
402
402
|
};
|
|
403
403
|
return Promise.resolve(response);
|
|
404
404
|
};
|
|
405
|
-
exports.
|
|
406
|
-
const
|
|
405
|
+
exports.de_ListSchemasCommand = de_ListSchemasCommand;
|
|
406
|
+
const de_ListSchemasCommandError = async (output, context) => {
|
|
407
407
|
const parsedOutput = {
|
|
408
408
|
...output,
|
|
409
409
|
body: await parseErrorBody(output.body, context),
|
|
@@ -412,13 +412,13 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
412
412
|
switch (errorCode) {
|
|
413
413
|
case "DatabaseConnectionException":
|
|
414
414
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
415
|
-
throw await
|
|
415
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
416
416
|
case "InternalServerException":
|
|
417
417
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
418
|
-
throw await
|
|
418
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
419
419
|
case "ValidationException":
|
|
420
420
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
421
|
-
throw await
|
|
421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
422
422
|
default:
|
|
423
423
|
const parsedBody = parsedOutput.body;
|
|
424
424
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -429,21 +429,21 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
};
|
|
432
|
-
const
|
|
432
|
+
const de_ListStatementsCommand = async (output, context) => {
|
|
433
433
|
if (output.statusCode >= 300) {
|
|
434
|
-
return
|
|
434
|
+
return de_ListStatementsCommandError(output, context);
|
|
435
435
|
}
|
|
436
436
|
const data = await parseBody(output.body, context);
|
|
437
437
|
let contents = {};
|
|
438
|
-
contents =
|
|
438
|
+
contents = de_ListStatementsResponse(data, context);
|
|
439
439
|
const response = {
|
|
440
440
|
$metadata: deserializeMetadata(output),
|
|
441
441
|
...contents,
|
|
442
442
|
};
|
|
443
443
|
return Promise.resolve(response);
|
|
444
444
|
};
|
|
445
|
-
exports.
|
|
446
|
-
const
|
|
445
|
+
exports.de_ListStatementsCommand = de_ListStatementsCommand;
|
|
446
|
+
const de_ListStatementsCommandError = async (output, context) => {
|
|
447
447
|
const parsedOutput = {
|
|
448
448
|
...output,
|
|
449
449
|
body: await parseErrorBody(output.body, context),
|
|
@@ -452,10 +452,10 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
|
|
|
452
452
|
switch (errorCode) {
|
|
453
453
|
case "InternalServerException":
|
|
454
454
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
455
|
-
throw await
|
|
455
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
456
456
|
case "ValidationException":
|
|
457
457
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
458
|
-
throw await
|
|
458
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
459
459
|
default:
|
|
460
460
|
const parsedBody = parsedOutput.body;
|
|
461
461
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -466,21 +466,21 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
|
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
|
-
const
|
|
469
|
+
const de_ListTablesCommand = async (output, context) => {
|
|
470
470
|
if (output.statusCode >= 300) {
|
|
471
|
-
return
|
|
471
|
+
return de_ListTablesCommandError(output, context);
|
|
472
472
|
}
|
|
473
473
|
const data = await parseBody(output.body, context);
|
|
474
474
|
let contents = {};
|
|
475
|
-
contents =
|
|
475
|
+
contents = de_ListTablesResponse(data, context);
|
|
476
476
|
const response = {
|
|
477
477
|
$metadata: deserializeMetadata(output),
|
|
478
478
|
...contents,
|
|
479
479
|
};
|
|
480
480
|
return Promise.resolve(response);
|
|
481
481
|
};
|
|
482
|
-
exports.
|
|
483
|
-
const
|
|
482
|
+
exports.de_ListTablesCommand = de_ListTablesCommand;
|
|
483
|
+
const de_ListTablesCommandError = async (output, context) => {
|
|
484
484
|
const parsedOutput = {
|
|
485
485
|
...output,
|
|
486
486
|
body: await parseErrorBody(output.body, context),
|
|
@@ -489,13 +489,13 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
489
489
|
switch (errorCode) {
|
|
490
490
|
case "DatabaseConnectionException":
|
|
491
491
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
492
|
-
throw await
|
|
492
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
493
493
|
case "InternalServerException":
|
|
494
494
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
495
|
-
throw await
|
|
495
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
496
496
|
case "ValidationException":
|
|
497
497
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
498
|
-
throw await
|
|
498
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
499
499
|
default:
|
|
500
500
|
const parsedBody = parsedOutput.body;
|
|
501
501
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -506,93 +506,93 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
|
-
const
|
|
509
|
+
const de_ActiveStatementsExceededExceptionRes = async (parsedOutput, context) => {
|
|
510
510
|
const body = parsedOutput.body;
|
|
511
|
-
const deserialized =
|
|
511
|
+
const deserialized = de_ActiveStatementsExceededException(body, context);
|
|
512
512
|
const exception = new models_0_1.ActiveStatementsExceededException({
|
|
513
513
|
$metadata: deserializeMetadata(parsedOutput),
|
|
514
514
|
...deserialized,
|
|
515
515
|
});
|
|
516
516
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
517
517
|
};
|
|
518
|
-
const
|
|
518
|
+
const de_BatchExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
519
519
|
const body = parsedOutput.body;
|
|
520
|
-
const deserialized =
|
|
520
|
+
const deserialized = de_BatchExecuteStatementException(body, context);
|
|
521
521
|
const exception = new models_0_1.BatchExecuteStatementException({
|
|
522
522
|
$metadata: deserializeMetadata(parsedOutput),
|
|
523
523
|
...deserialized,
|
|
524
524
|
});
|
|
525
525
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
526
526
|
};
|
|
527
|
-
const
|
|
527
|
+
const de_DatabaseConnectionExceptionRes = async (parsedOutput, context) => {
|
|
528
528
|
const body = parsedOutput.body;
|
|
529
|
-
const deserialized =
|
|
529
|
+
const deserialized = de_DatabaseConnectionException(body, context);
|
|
530
530
|
const exception = new models_0_1.DatabaseConnectionException({
|
|
531
531
|
$metadata: deserializeMetadata(parsedOutput),
|
|
532
532
|
...deserialized,
|
|
533
533
|
});
|
|
534
534
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
535
535
|
};
|
|
536
|
-
const
|
|
536
|
+
const de_ExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
537
537
|
const body = parsedOutput.body;
|
|
538
|
-
const deserialized =
|
|
538
|
+
const deserialized = de_ExecuteStatementException(body, context);
|
|
539
539
|
const exception = new models_0_1.ExecuteStatementException({
|
|
540
540
|
$metadata: deserializeMetadata(parsedOutput),
|
|
541
541
|
...deserialized,
|
|
542
542
|
});
|
|
543
543
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
544
544
|
};
|
|
545
|
-
const
|
|
545
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
546
546
|
const body = parsedOutput.body;
|
|
547
|
-
const deserialized =
|
|
547
|
+
const deserialized = de_InternalServerException(body, context);
|
|
548
548
|
const exception = new models_0_1.InternalServerException({
|
|
549
549
|
$metadata: deserializeMetadata(parsedOutput),
|
|
550
550
|
...deserialized,
|
|
551
551
|
});
|
|
552
552
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
553
553
|
};
|
|
554
|
-
const
|
|
554
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
555
555
|
const body = parsedOutput.body;
|
|
556
|
-
const deserialized =
|
|
556
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
557
557
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
558
558
|
$metadata: deserializeMetadata(parsedOutput),
|
|
559
559
|
...deserialized,
|
|
560
560
|
});
|
|
561
561
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
562
562
|
};
|
|
563
|
-
const
|
|
563
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
564
564
|
const body = parsedOutput.body;
|
|
565
|
-
const deserialized =
|
|
565
|
+
const deserialized = de_ValidationException(body, context);
|
|
566
566
|
const exception = new models_0_1.ValidationException({
|
|
567
567
|
$metadata: deserializeMetadata(parsedOutput),
|
|
568
568
|
...deserialized,
|
|
569
569
|
});
|
|
570
570
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
571
571
|
};
|
|
572
|
-
const
|
|
572
|
+
const se_BatchExecuteStatementInput = (input, context) => {
|
|
573
573
|
return {
|
|
574
574
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
575
575
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
576
576
|
...(input.Database != null && { Database: input.Database }),
|
|
577
577
|
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
578
578
|
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
579
|
-
...(input.Sqls != null && { Sqls:
|
|
579
|
+
...(input.Sqls != null && { Sqls: se_SqlList(input.Sqls, context) }),
|
|
580
580
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
581
581
|
...(input.WithEvent != null && { WithEvent: input.WithEvent }),
|
|
582
582
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
583
583
|
};
|
|
584
584
|
};
|
|
585
|
-
const
|
|
585
|
+
const se_CancelStatementRequest = (input, context) => {
|
|
586
586
|
return {
|
|
587
587
|
...(input.Id != null && { Id: input.Id }),
|
|
588
588
|
};
|
|
589
589
|
};
|
|
590
|
-
const
|
|
590
|
+
const se_DescribeStatementRequest = (input, context) => {
|
|
591
591
|
return {
|
|
592
592
|
...(input.Id != null && { Id: input.Id }),
|
|
593
593
|
};
|
|
594
594
|
};
|
|
595
|
-
const
|
|
595
|
+
const se_DescribeTableRequest = (input, context) => {
|
|
596
596
|
return {
|
|
597
597
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
598
598
|
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
@@ -606,13 +606,13 @@ const serializeAws_json1_1DescribeTableRequest = (input, context) => {
|
|
|
606
606
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
607
607
|
};
|
|
608
608
|
};
|
|
609
|
-
const
|
|
609
|
+
const se_ExecuteStatementInput = (input, context) => {
|
|
610
610
|
return {
|
|
611
611
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
612
612
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
613
613
|
...(input.Database != null && { Database: input.Database }),
|
|
614
614
|
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
615
|
-
...(input.Parameters != null && { Parameters:
|
|
615
|
+
...(input.Parameters != null && { Parameters: se_SqlParametersList(input.Parameters, context) }),
|
|
616
616
|
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
617
617
|
...(input.Sql != null && { Sql: input.Sql }),
|
|
618
618
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
@@ -620,13 +620,13 @@ const serializeAws_json1_1ExecuteStatementInput = (input, context) => {
|
|
|
620
620
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
621
621
|
};
|
|
622
622
|
};
|
|
623
|
-
const
|
|
623
|
+
const se_GetStatementResultRequest = (input, context) => {
|
|
624
624
|
return {
|
|
625
625
|
...(input.Id != null && { Id: input.Id }),
|
|
626
626
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
627
627
|
};
|
|
628
628
|
};
|
|
629
|
-
const
|
|
629
|
+
const se_ListDatabasesRequest = (input, context) => {
|
|
630
630
|
return {
|
|
631
631
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
632
632
|
...(input.Database != null && { Database: input.Database }),
|
|
@@ -637,7 +637,7 @@ const serializeAws_json1_1ListDatabasesRequest = (input, context) => {
|
|
|
637
637
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
638
638
|
};
|
|
639
639
|
};
|
|
640
|
-
const
|
|
640
|
+
const se_ListSchemasRequest = (input, context) => {
|
|
641
641
|
return {
|
|
642
642
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
643
643
|
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
@@ -650,7 +650,7 @@ const serializeAws_json1_1ListSchemasRequest = (input, context) => {
|
|
|
650
650
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
651
651
|
};
|
|
652
652
|
};
|
|
653
|
-
const
|
|
653
|
+
const se_ListStatementsRequest = (input, context) => {
|
|
654
654
|
return {
|
|
655
655
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
656
656
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -659,7 +659,7 @@ const serializeAws_json1_1ListStatementsRequest = (input, context) => {
|
|
|
659
659
|
...(input.Status != null && { Status: input.Status }),
|
|
660
660
|
};
|
|
661
661
|
};
|
|
662
|
-
const
|
|
662
|
+
const se_ListTablesRequest = (input, context) => {
|
|
663
663
|
return {
|
|
664
664
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
665
665
|
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
@@ -673,38 +673,38 @@ const serializeAws_json1_1ListTablesRequest = (input, context) => {
|
|
|
673
673
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
-
const
|
|
676
|
+
const se_SqlList = (input, context) => {
|
|
677
677
|
return input
|
|
678
678
|
.filter((e) => e != null)
|
|
679
679
|
.map((entry) => {
|
|
680
680
|
return entry;
|
|
681
681
|
});
|
|
682
682
|
};
|
|
683
|
-
const
|
|
683
|
+
const se_SqlParameter = (input, context) => {
|
|
684
684
|
return {
|
|
685
685
|
...(input.name != null && { name: input.name }),
|
|
686
686
|
...(input.value != null && { value: input.value }),
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
const
|
|
689
|
+
const se_SqlParametersList = (input, context) => {
|
|
690
690
|
return input
|
|
691
691
|
.filter((e) => e != null)
|
|
692
692
|
.map((entry) => {
|
|
693
|
-
return
|
|
693
|
+
return se_SqlParameter(entry, context);
|
|
694
694
|
});
|
|
695
695
|
};
|
|
696
|
-
const
|
|
696
|
+
const de_ActiveStatementsExceededException = (output, context) => {
|
|
697
697
|
return {
|
|
698
698
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
699
699
|
};
|
|
700
700
|
};
|
|
701
|
-
const
|
|
701
|
+
const de_BatchExecuteStatementException = (output, context) => {
|
|
702
702
|
return {
|
|
703
703
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
704
704
|
StatementId: (0, smithy_client_1.expectString)(output.StatementId),
|
|
705
705
|
};
|
|
706
706
|
};
|
|
707
|
-
const
|
|
707
|
+
const de_BatchExecuteStatementOutput = (output, context) => {
|
|
708
708
|
return {
|
|
709
709
|
ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
|
|
710
710
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -715,23 +715,23 @@ const deserializeAws_json1_1BatchExecuteStatementOutput = (output, context) => {
|
|
|
715
715
|
WorkgroupName: (0, smithy_client_1.expectString)(output.WorkgroupName),
|
|
716
716
|
};
|
|
717
717
|
};
|
|
718
|
-
const
|
|
718
|
+
const de_CancelStatementResponse = (output, context) => {
|
|
719
719
|
return {
|
|
720
720
|
Status: (0, smithy_client_1.expectBoolean)(output.Status),
|
|
721
721
|
};
|
|
722
722
|
};
|
|
723
|
-
const
|
|
723
|
+
const de_ColumnList = (output, context) => {
|
|
724
724
|
const retVal = (output || [])
|
|
725
725
|
.filter((e) => e != null)
|
|
726
726
|
.map((entry) => {
|
|
727
727
|
if (entry === null) {
|
|
728
728
|
return null;
|
|
729
729
|
}
|
|
730
|
-
return
|
|
730
|
+
return de_ColumnMetadata(entry, context);
|
|
731
731
|
});
|
|
732
732
|
return retVal;
|
|
733
733
|
};
|
|
734
|
-
const
|
|
734
|
+
const de_ColumnMetadata = (output, context) => {
|
|
735
735
|
return {
|
|
736
736
|
columnDefault: (0, smithy_client_1.expectString)(output.columnDefault),
|
|
737
737
|
isCaseSensitive: (0, smithy_client_1.expectBoolean)(output.isCaseSensitive),
|
|
@@ -748,23 +748,23 @@ const deserializeAws_json1_1ColumnMetadata = (output, context) => {
|
|
|
748
748
|
typeName: (0, smithy_client_1.expectString)(output.typeName),
|
|
749
749
|
};
|
|
750
750
|
};
|
|
751
|
-
const
|
|
751
|
+
const de_ColumnMetadataList = (output, context) => {
|
|
752
752
|
const retVal = (output || [])
|
|
753
753
|
.filter((e) => e != null)
|
|
754
754
|
.map((entry) => {
|
|
755
755
|
if (entry === null) {
|
|
756
756
|
return null;
|
|
757
757
|
}
|
|
758
|
-
return
|
|
758
|
+
return de_ColumnMetadata(entry, context);
|
|
759
759
|
});
|
|
760
760
|
return retVal;
|
|
761
761
|
};
|
|
762
|
-
const
|
|
762
|
+
const de_DatabaseConnectionException = (output, context) => {
|
|
763
763
|
return {
|
|
764
764
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
765
765
|
};
|
|
766
766
|
};
|
|
767
|
-
const
|
|
767
|
+
const de_DatabaseList = (output, context) => {
|
|
768
768
|
const retVal = (output || [])
|
|
769
769
|
.filter((e) => e != null)
|
|
770
770
|
.map((entry) => {
|
|
@@ -775,7 +775,7 @@ const deserializeAws_json1_1DatabaseList = (output, context) => {
|
|
|
775
775
|
});
|
|
776
776
|
return retVal;
|
|
777
777
|
};
|
|
778
|
-
const
|
|
778
|
+
const de_DescribeStatementResponse = (output, context) => {
|
|
779
779
|
return {
|
|
780
780
|
ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
|
|
781
781
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -785,9 +785,7 @@ const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
|
|
|
785
785
|
Error: (0, smithy_client_1.expectString)(output.Error),
|
|
786
786
|
HasResultSet: (0, smithy_client_1.expectBoolean)(output.HasResultSet),
|
|
787
787
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
788
|
-
QueryParameters: output.QueryParameters != null
|
|
789
|
-
? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
|
|
790
|
-
: undefined,
|
|
788
|
+
QueryParameters: output.QueryParameters != null ? de_SqlParametersList(output.QueryParameters, context) : undefined,
|
|
791
789
|
QueryString: (0, smithy_client_1.expectString)(output.QueryString),
|
|
792
790
|
RedshiftPid: (0, smithy_client_1.expectLong)(output.RedshiftPid),
|
|
793
791
|
RedshiftQueryId: (0, smithy_client_1.expectLong)(output.RedshiftQueryId),
|
|
@@ -795,25 +793,25 @@ const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
|
|
|
795
793
|
ResultSize: (0, smithy_client_1.expectLong)(output.ResultSize),
|
|
796
794
|
SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
|
|
797
795
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
798
|
-
SubStatements: output.SubStatements != null ?
|
|
796
|
+
SubStatements: output.SubStatements != null ? de_SubStatementList(output.SubStatements, context) : undefined,
|
|
799
797
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
800
798
|
WorkgroupName: (0, smithy_client_1.expectString)(output.WorkgroupName),
|
|
801
799
|
};
|
|
802
800
|
};
|
|
803
|
-
const
|
|
801
|
+
const de_DescribeTableResponse = (output, context) => {
|
|
804
802
|
return {
|
|
805
|
-
ColumnList: output.ColumnList != null ?
|
|
803
|
+
ColumnList: output.ColumnList != null ? de_ColumnList(output.ColumnList, context) : undefined,
|
|
806
804
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
807
805
|
TableName: (0, smithy_client_1.expectString)(output.TableName),
|
|
808
806
|
};
|
|
809
807
|
};
|
|
810
|
-
const
|
|
808
|
+
const de_ExecuteStatementException = (output, context) => {
|
|
811
809
|
return {
|
|
812
810
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
813
811
|
StatementId: (0, smithy_client_1.expectString)(output.StatementId),
|
|
814
812
|
};
|
|
815
813
|
};
|
|
816
|
-
const
|
|
814
|
+
const de_ExecuteStatementOutput = (output, context) => {
|
|
817
815
|
return {
|
|
818
816
|
ClusterIdentifier: (0, smithy_client_1.expectString)(output.ClusterIdentifier),
|
|
819
817
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -824,7 +822,7 @@ const deserializeAws_json1_1ExecuteStatementOutput = (output, context) => {
|
|
|
824
822
|
WorkgroupName: (0, smithy_client_1.expectString)(output.WorkgroupName),
|
|
825
823
|
};
|
|
826
824
|
};
|
|
827
|
-
const
|
|
825
|
+
const de_Field = (output, context) => {
|
|
828
826
|
if (output.blobValue != null) {
|
|
829
827
|
return {
|
|
830
828
|
blobValue: context.base64Decoder(output.blobValue),
|
|
@@ -847,63 +845,61 @@ const deserializeAws_json1_1Field = (output, context) => {
|
|
|
847
845
|
}
|
|
848
846
|
return { $unknown: Object.entries(output)[0] };
|
|
849
847
|
};
|
|
850
|
-
const
|
|
848
|
+
const de_FieldList = (output, context) => {
|
|
851
849
|
const retVal = (output || [])
|
|
852
850
|
.filter((e) => e != null)
|
|
853
851
|
.map((entry) => {
|
|
854
852
|
if (entry === null) {
|
|
855
853
|
return null;
|
|
856
854
|
}
|
|
857
|
-
return
|
|
855
|
+
return de_Field((0, smithy_client_1.expectUnion)(entry), context);
|
|
858
856
|
});
|
|
859
857
|
return retVal;
|
|
860
858
|
};
|
|
861
|
-
const
|
|
859
|
+
const de_GetStatementResultResponse = (output, context) => {
|
|
862
860
|
return {
|
|
863
|
-
ColumnMetadata: output.ColumnMetadata != null
|
|
864
|
-
? deserializeAws_json1_1ColumnMetadataList(output.ColumnMetadata, context)
|
|
865
|
-
: undefined,
|
|
861
|
+
ColumnMetadata: output.ColumnMetadata != null ? de_ColumnMetadataList(output.ColumnMetadata, context) : undefined,
|
|
866
862
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
867
|
-
Records: output.Records != null ?
|
|
863
|
+
Records: output.Records != null ? de_SqlRecords(output.Records, context) : undefined,
|
|
868
864
|
TotalNumRows: (0, smithy_client_1.expectLong)(output.TotalNumRows),
|
|
869
865
|
};
|
|
870
866
|
};
|
|
871
|
-
const
|
|
867
|
+
const de_InternalServerException = (output, context) => {
|
|
872
868
|
return {
|
|
873
869
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
874
870
|
};
|
|
875
871
|
};
|
|
876
|
-
const
|
|
872
|
+
const de_ListDatabasesResponse = (output, context) => {
|
|
877
873
|
return {
|
|
878
|
-
Databases: output.Databases != null ?
|
|
874
|
+
Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
|
|
879
875
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
880
876
|
};
|
|
881
877
|
};
|
|
882
|
-
const
|
|
878
|
+
const de_ListSchemasResponse = (output, context) => {
|
|
883
879
|
return {
|
|
884
880
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
885
|
-
Schemas: output.Schemas != null ?
|
|
881
|
+
Schemas: output.Schemas != null ? de_SchemaList(output.Schemas, context) : undefined,
|
|
886
882
|
};
|
|
887
883
|
};
|
|
888
|
-
const
|
|
884
|
+
const de_ListStatementsResponse = (output, context) => {
|
|
889
885
|
return {
|
|
890
886
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
891
|
-
Statements: output.Statements != null ?
|
|
887
|
+
Statements: output.Statements != null ? de_StatementList(output.Statements, context) : undefined,
|
|
892
888
|
};
|
|
893
889
|
};
|
|
894
|
-
const
|
|
890
|
+
const de_ListTablesResponse = (output, context) => {
|
|
895
891
|
return {
|
|
896
892
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
897
|
-
Tables: output.Tables != null ?
|
|
893
|
+
Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
|
|
898
894
|
};
|
|
899
895
|
};
|
|
900
|
-
const
|
|
896
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
901
897
|
return {
|
|
902
898
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
903
899
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
904
900
|
};
|
|
905
901
|
};
|
|
906
|
-
const
|
|
902
|
+
const de_SchemaList = (output, context) => {
|
|
907
903
|
const retVal = (output || [])
|
|
908
904
|
.filter((e) => e != null)
|
|
909
905
|
.map((entry) => {
|
|
@@ -914,62 +910,60 @@ const deserializeAws_json1_1SchemaList = (output, context) => {
|
|
|
914
910
|
});
|
|
915
911
|
return retVal;
|
|
916
912
|
};
|
|
917
|
-
const
|
|
913
|
+
const de_SqlParameter = (output, context) => {
|
|
918
914
|
return {
|
|
919
915
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
920
916
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
921
917
|
};
|
|
922
918
|
};
|
|
923
|
-
const
|
|
919
|
+
const de_SqlParametersList = (output, context) => {
|
|
924
920
|
const retVal = (output || [])
|
|
925
921
|
.filter((e) => e != null)
|
|
926
922
|
.map((entry) => {
|
|
927
923
|
if (entry === null) {
|
|
928
924
|
return null;
|
|
929
925
|
}
|
|
930
|
-
return
|
|
926
|
+
return de_SqlParameter(entry, context);
|
|
931
927
|
});
|
|
932
928
|
return retVal;
|
|
933
929
|
};
|
|
934
|
-
const
|
|
930
|
+
const de_SqlRecords = (output, context) => {
|
|
935
931
|
const retVal = (output || [])
|
|
936
932
|
.filter((e) => e != null)
|
|
937
933
|
.map((entry) => {
|
|
938
934
|
if (entry === null) {
|
|
939
935
|
return null;
|
|
940
936
|
}
|
|
941
|
-
return
|
|
937
|
+
return de_FieldList(entry, context);
|
|
942
938
|
});
|
|
943
939
|
return retVal;
|
|
944
940
|
};
|
|
945
|
-
const
|
|
941
|
+
const de_StatementData = (output, context) => {
|
|
946
942
|
return {
|
|
947
943
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
948
944
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
949
945
|
IsBatchStatement: (0, smithy_client_1.expectBoolean)(output.IsBatchStatement),
|
|
950
|
-
QueryParameters: output.QueryParameters != null
|
|
951
|
-
? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
|
|
952
|
-
: undefined,
|
|
946
|
+
QueryParameters: output.QueryParameters != null ? de_SqlParametersList(output.QueryParameters, context) : undefined,
|
|
953
947
|
QueryString: (0, smithy_client_1.expectString)(output.QueryString),
|
|
954
|
-
QueryStrings: output.QueryStrings != null ?
|
|
948
|
+
QueryStrings: output.QueryStrings != null ? de_StatementStringList(output.QueryStrings, context) : undefined,
|
|
955
949
|
SecretArn: (0, smithy_client_1.expectString)(output.SecretArn),
|
|
956
950
|
StatementName: (0, smithy_client_1.expectString)(output.StatementName),
|
|
957
951
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
958
952
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
959
953
|
};
|
|
960
954
|
};
|
|
961
|
-
const
|
|
955
|
+
const de_StatementList = (output, context) => {
|
|
962
956
|
const retVal = (output || [])
|
|
963
957
|
.filter((e) => e != null)
|
|
964
958
|
.map((entry) => {
|
|
965
959
|
if (entry === null) {
|
|
966
960
|
return null;
|
|
967
961
|
}
|
|
968
|
-
return
|
|
962
|
+
return de_StatementData(entry, context);
|
|
969
963
|
});
|
|
970
964
|
return retVal;
|
|
971
965
|
};
|
|
972
|
-
const
|
|
966
|
+
const de_StatementStringList = (output, context) => {
|
|
973
967
|
const retVal = (output || [])
|
|
974
968
|
.filter((e) => e != null)
|
|
975
969
|
.map((entry) => {
|
|
@@ -980,7 +974,7 @@ const deserializeAws_json1_1StatementStringList = (output, context) => {
|
|
|
980
974
|
});
|
|
981
975
|
return retVal;
|
|
982
976
|
};
|
|
983
|
-
const
|
|
977
|
+
const de_SubStatementData = (output, context) => {
|
|
984
978
|
return {
|
|
985
979
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
986
980
|
Duration: (0, smithy_client_1.expectLong)(output.Duration),
|
|
@@ -995,36 +989,36 @@ const deserializeAws_json1_1SubStatementData = (output, context) => {
|
|
|
995
989
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
996
990
|
};
|
|
997
991
|
};
|
|
998
|
-
const
|
|
992
|
+
const de_SubStatementList = (output, context) => {
|
|
999
993
|
const retVal = (output || [])
|
|
1000
994
|
.filter((e) => e != null)
|
|
1001
995
|
.map((entry) => {
|
|
1002
996
|
if (entry === null) {
|
|
1003
997
|
return null;
|
|
1004
998
|
}
|
|
1005
|
-
return
|
|
999
|
+
return de_SubStatementData(entry, context);
|
|
1006
1000
|
});
|
|
1007
1001
|
return retVal;
|
|
1008
1002
|
};
|
|
1009
|
-
const
|
|
1003
|
+
const de_TableList = (output, context) => {
|
|
1010
1004
|
const retVal = (output || [])
|
|
1011
1005
|
.filter((e) => e != null)
|
|
1012
1006
|
.map((entry) => {
|
|
1013
1007
|
if (entry === null) {
|
|
1014
1008
|
return null;
|
|
1015
1009
|
}
|
|
1016
|
-
return
|
|
1010
|
+
return de_TableMember(entry, context);
|
|
1017
1011
|
});
|
|
1018
1012
|
return retVal;
|
|
1019
1013
|
};
|
|
1020
|
-
const
|
|
1014
|
+
const de_TableMember = (output, context) => {
|
|
1021
1015
|
return {
|
|
1022
1016
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1023
1017
|
schema: (0, smithy_client_1.expectString)(output.schema),
|
|
1024
1018
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1025
1019
|
};
|
|
1026
1020
|
};
|
|
1027
|
-
const
|
|
1021
|
+
const de_ValidationException = (output, context) => {
|
|
1028
1022
|
return {
|
|
1029
1023
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1030
1024
|
};
|