@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
|
@@ -3,110 +3,110 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { RedshiftDataServiceException as __BaseException } from "../models/RedshiftDataServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.1",
|
|
9
9
|
"x-amz-target": "RedshiftData.BatchExecuteStatement",
|
|
10
10
|
};
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify(se_BatchExecuteStatementInput(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const se_CancelStatementCommand = async (input, context) => {
|
|
16
16
|
const headers = {
|
|
17
17
|
"content-type": "application/x-amz-json-1.1",
|
|
18
18
|
"x-amz-target": "RedshiftData.CancelStatement",
|
|
19
19
|
};
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(se_CancelStatementRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_DescribeStatementCommand = async (input, context) => {
|
|
25
25
|
const headers = {
|
|
26
26
|
"content-type": "application/x-amz-json-1.1",
|
|
27
27
|
"x-amz-target": "RedshiftData.DescribeStatement",
|
|
28
28
|
};
|
|
29
29
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
30
|
+
body = JSON.stringify(se_DescribeStatementRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_DescribeTableCommand = async (input, context) => {
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/x-amz-json-1.1",
|
|
36
36
|
"x-amz-target": "RedshiftData.DescribeTable",
|
|
37
37
|
};
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(se_DescribeTableRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_ExecuteStatementCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-amz-json-1.1",
|
|
45
45
|
"x-amz-target": "RedshiftData.ExecuteStatement",
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify(se_ExecuteStatementInput(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_GetStatementResultCommand = async (input, context) => {
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/x-amz-json-1.1",
|
|
54
54
|
"x-amz-target": "RedshiftData.GetStatementResult",
|
|
55
55
|
};
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(se_GetStatementResultRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
60
|
+
export const se_ListDatabasesCommand = async (input, context) => {
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/x-amz-json-1.1",
|
|
63
63
|
"x-amz-target": "RedshiftData.ListDatabases",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify(se_ListDatabasesRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_ListSchemasCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "RedshiftData.ListSchemas",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_ListSchemasRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_ListStatementsCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "RedshiftData.ListStatements",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_ListStatementsRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const se_ListTablesCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-amz-json-1.1",
|
|
90
90
|
"x-amz-target": "RedshiftData.ListTables",
|
|
91
91
|
};
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(se_ListTablesRequest(input, context));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
96
|
+
export const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
97
97
|
if (output.statusCode >= 300) {
|
|
98
|
-
return
|
|
98
|
+
return de_BatchExecuteStatementCommandError(output, context);
|
|
99
99
|
}
|
|
100
100
|
const data = await parseBody(output.body, context);
|
|
101
101
|
let contents = {};
|
|
102
|
-
contents =
|
|
102
|
+
contents = de_BatchExecuteStatementOutput(data, context);
|
|
103
103
|
const response = {
|
|
104
104
|
$metadata: deserializeMetadata(output),
|
|
105
105
|
...contents,
|
|
106
106
|
};
|
|
107
107
|
return Promise.resolve(response);
|
|
108
108
|
};
|
|
109
|
-
const
|
|
109
|
+
const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
110
110
|
const parsedOutput = {
|
|
111
111
|
...output,
|
|
112
112
|
body: await parseErrorBody(output.body, context),
|
|
@@ -115,13 +115,13 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
|
|
|
115
115
|
switch (errorCode) {
|
|
116
116
|
case "ActiveStatementsExceededException":
|
|
117
117
|
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
|
|
118
|
-
throw await
|
|
118
|
+
throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
|
|
119
119
|
case "BatchExecuteStatementException":
|
|
120
120
|
case "com.amazonaws.redshiftdata#BatchExecuteStatementException":
|
|
121
|
-
throw await
|
|
121
|
+
throw await de_BatchExecuteStatementExceptionRes(parsedOutput, context);
|
|
122
122
|
case "ValidationException":
|
|
123
123
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
124
|
-
throw await
|
|
124
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
125
125
|
default:
|
|
126
126
|
const parsedBody = parsedOutput.body;
|
|
127
127
|
throwDefaultError({
|
|
@@ -132,20 +132,20 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, c
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
export const
|
|
135
|
+
export const de_CancelStatementCommand = async (output, context) => {
|
|
136
136
|
if (output.statusCode >= 300) {
|
|
137
|
-
return
|
|
137
|
+
return de_CancelStatementCommandError(output, context);
|
|
138
138
|
}
|
|
139
139
|
const data = await parseBody(output.body, context);
|
|
140
140
|
let contents = {};
|
|
141
|
-
contents =
|
|
141
|
+
contents = de_CancelStatementResponse(data, context);
|
|
142
142
|
const response = {
|
|
143
143
|
$metadata: deserializeMetadata(output),
|
|
144
144
|
...contents,
|
|
145
145
|
};
|
|
146
146
|
return Promise.resolve(response);
|
|
147
147
|
};
|
|
148
|
-
const
|
|
148
|
+
const de_CancelStatementCommandError = async (output, context) => {
|
|
149
149
|
const parsedOutput = {
|
|
150
150
|
...output,
|
|
151
151
|
body: await parseErrorBody(output.body, context),
|
|
@@ -154,16 +154,16 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
154
154
|
switch (errorCode) {
|
|
155
155
|
case "DatabaseConnectionException":
|
|
156
156
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
157
|
-
throw await
|
|
157
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
158
158
|
case "InternalServerException":
|
|
159
159
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
160
|
-
throw await
|
|
160
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
161
161
|
case "ResourceNotFoundException":
|
|
162
162
|
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
163
|
-
throw await
|
|
163
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
164
164
|
case "ValidationException":
|
|
165
165
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
166
|
-
throw await
|
|
166
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
167
167
|
default:
|
|
168
168
|
const parsedBody = parsedOutput.body;
|
|
169
169
|
throwDefaultError({
|
|
@@ -174,20 +174,20 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
export const
|
|
177
|
+
export const de_DescribeStatementCommand = async (output, context) => {
|
|
178
178
|
if (output.statusCode >= 300) {
|
|
179
|
-
return
|
|
179
|
+
return de_DescribeStatementCommandError(output, context);
|
|
180
180
|
}
|
|
181
181
|
const data = await parseBody(output.body, context);
|
|
182
182
|
let contents = {};
|
|
183
|
-
contents =
|
|
183
|
+
contents = de_DescribeStatementResponse(data, context);
|
|
184
184
|
const response = {
|
|
185
185
|
$metadata: deserializeMetadata(output),
|
|
186
186
|
...contents,
|
|
187
187
|
};
|
|
188
188
|
return Promise.resolve(response);
|
|
189
189
|
};
|
|
190
|
-
const
|
|
190
|
+
const de_DescribeStatementCommandError = async (output, context) => {
|
|
191
191
|
const parsedOutput = {
|
|
192
192
|
...output,
|
|
193
193
|
body: await parseErrorBody(output.body, context),
|
|
@@ -196,13 +196,13 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
|
|
|
196
196
|
switch (errorCode) {
|
|
197
197
|
case "InternalServerException":
|
|
198
198
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
199
|
-
throw await
|
|
199
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
200
200
|
case "ResourceNotFoundException":
|
|
201
201
|
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
202
|
-
throw await
|
|
202
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
203
203
|
case "ValidationException":
|
|
204
204
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
205
|
-
throw await
|
|
205
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
206
206
|
default:
|
|
207
207
|
const parsedBody = parsedOutput.body;
|
|
208
208
|
throwDefaultError({
|
|
@@ -213,20 +213,20 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (output, conte
|
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
export const
|
|
216
|
+
export const de_DescribeTableCommand = async (output, context) => {
|
|
217
217
|
if (output.statusCode >= 300) {
|
|
218
|
-
return
|
|
218
|
+
return de_DescribeTableCommandError(output, context);
|
|
219
219
|
}
|
|
220
220
|
const data = await parseBody(output.body, context);
|
|
221
221
|
let contents = {};
|
|
222
|
-
contents =
|
|
222
|
+
contents = de_DescribeTableResponse(data, context);
|
|
223
223
|
const response = {
|
|
224
224
|
$metadata: deserializeMetadata(output),
|
|
225
225
|
...contents,
|
|
226
226
|
};
|
|
227
227
|
return Promise.resolve(response);
|
|
228
228
|
};
|
|
229
|
-
const
|
|
229
|
+
const de_DescribeTableCommandError = async (output, context) => {
|
|
230
230
|
const parsedOutput = {
|
|
231
231
|
...output,
|
|
232
232
|
body: await parseErrorBody(output.body, context),
|
|
@@ -235,13 +235,13 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
235
235
|
switch (errorCode) {
|
|
236
236
|
case "DatabaseConnectionException":
|
|
237
237
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
238
|
-
throw await
|
|
238
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
239
239
|
case "InternalServerException":
|
|
240
240
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
241
|
-
throw await
|
|
241
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
242
242
|
case "ValidationException":
|
|
243
243
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
244
|
-
throw await
|
|
244
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
245
245
|
default:
|
|
246
246
|
const parsedBody = parsedOutput.body;
|
|
247
247
|
throwDefaultError({
|
|
@@ -252,20 +252,20 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
export const
|
|
255
|
+
export const de_ExecuteStatementCommand = async (output, context) => {
|
|
256
256
|
if (output.statusCode >= 300) {
|
|
257
|
-
return
|
|
257
|
+
return de_ExecuteStatementCommandError(output, context);
|
|
258
258
|
}
|
|
259
259
|
const data = await parseBody(output.body, context);
|
|
260
260
|
let contents = {};
|
|
261
|
-
contents =
|
|
261
|
+
contents = de_ExecuteStatementOutput(data, context);
|
|
262
262
|
const response = {
|
|
263
263
|
$metadata: deserializeMetadata(output),
|
|
264
264
|
...contents,
|
|
265
265
|
};
|
|
266
266
|
return Promise.resolve(response);
|
|
267
267
|
};
|
|
268
|
-
const
|
|
268
|
+
const de_ExecuteStatementCommandError = async (output, context) => {
|
|
269
269
|
const parsedOutput = {
|
|
270
270
|
...output,
|
|
271
271
|
body: await parseErrorBody(output.body, context),
|
|
@@ -274,13 +274,13 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
|
|
|
274
274
|
switch (errorCode) {
|
|
275
275
|
case "ActiveStatementsExceededException":
|
|
276
276
|
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException":
|
|
277
|
-
throw await
|
|
277
|
+
throw await de_ActiveStatementsExceededExceptionRes(parsedOutput, context);
|
|
278
278
|
case "ExecuteStatementException":
|
|
279
279
|
case "com.amazonaws.redshiftdata#ExecuteStatementException":
|
|
280
|
-
throw await
|
|
280
|
+
throw await de_ExecuteStatementExceptionRes(parsedOutput, context);
|
|
281
281
|
case "ValidationException":
|
|
282
282
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
283
|
-
throw await
|
|
283
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
284
284
|
default:
|
|
285
285
|
const parsedBody = parsedOutput.body;
|
|
286
286
|
throwDefaultError({
|
|
@@ -291,20 +291,20 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (output, contex
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
|
-
export const
|
|
294
|
+
export const de_GetStatementResultCommand = async (output, context) => {
|
|
295
295
|
if (output.statusCode >= 300) {
|
|
296
|
-
return
|
|
296
|
+
return de_GetStatementResultCommandError(output, context);
|
|
297
297
|
}
|
|
298
298
|
const data = await parseBody(output.body, context);
|
|
299
299
|
let contents = {};
|
|
300
|
-
contents =
|
|
300
|
+
contents = de_GetStatementResultResponse(data, context);
|
|
301
301
|
const response = {
|
|
302
302
|
$metadata: deserializeMetadata(output),
|
|
303
303
|
...contents,
|
|
304
304
|
};
|
|
305
305
|
return Promise.resolve(response);
|
|
306
306
|
};
|
|
307
|
-
const
|
|
307
|
+
const de_GetStatementResultCommandError = async (output, context) => {
|
|
308
308
|
const parsedOutput = {
|
|
309
309
|
...output,
|
|
310
310
|
body: await parseErrorBody(output.body, context),
|
|
@@ -313,13 +313,13 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
|
|
|
313
313
|
switch (errorCode) {
|
|
314
314
|
case "InternalServerException":
|
|
315
315
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
316
|
-
throw await
|
|
316
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
317
317
|
case "ResourceNotFoundException":
|
|
318
318
|
case "com.amazonaws.redshiftdata#ResourceNotFoundException":
|
|
319
|
-
throw await
|
|
319
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
320
320
|
case "ValidationException":
|
|
321
321
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
322
|
-
throw await
|
|
322
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
323
323
|
default:
|
|
324
324
|
const parsedBody = parsedOutput.body;
|
|
325
325
|
throwDefaultError({
|
|
@@ -330,20 +330,20 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (output, cont
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
export const
|
|
333
|
+
export const de_ListDatabasesCommand = async (output, context) => {
|
|
334
334
|
if (output.statusCode >= 300) {
|
|
335
|
-
return
|
|
335
|
+
return de_ListDatabasesCommandError(output, context);
|
|
336
336
|
}
|
|
337
337
|
const data = await parseBody(output.body, context);
|
|
338
338
|
let contents = {};
|
|
339
|
-
contents =
|
|
339
|
+
contents = de_ListDatabasesResponse(data, context);
|
|
340
340
|
const response = {
|
|
341
341
|
$metadata: deserializeMetadata(output),
|
|
342
342
|
...contents,
|
|
343
343
|
};
|
|
344
344
|
return Promise.resolve(response);
|
|
345
345
|
};
|
|
346
|
-
const
|
|
346
|
+
const de_ListDatabasesCommandError = async (output, context) => {
|
|
347
347
|
const parsedOutput = {
|
|
348
348
|
...output,
|
|
349
349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -352,13 +352,13 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
352
352
|
switch (errorCode) {
|
|
353
353
|
case "DatabaseConnectionException":
|
|
354
354
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
355
|
-
throw await
|
|
355
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
356
356
|
case "InternalServerException":
|
|
357
357
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
358
|
-
throw await
|
|
358
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
359
359
|
case "ValidationException":
|
|
360
360
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
361
|
-
throw await
|
|
361
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
362
362
|
default:
|
|
363
363
|
const parsedBody = parsedOutput.body;
|
|
364
364
|
throwDefaultError({
|
|
@@ -369,20 +369,20 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
|
-
export const
|
|
372
|
+
export const de_ListSchemasCommand = async (output, context) => {
|
|
373
373
|
if (output.statusCode >= 300) {
|
|
374
|
-
return
|
|
374
|
+
return de_ListSchemasCommandError(output, context);
|
|
375
375
|
}
|
|
376
376
|
const data = await parseBody(output.body, context);
|
|
377
377
|
let contents = {};
|
|
378
|
-
contents =
|
|
378
|
+
contents = de_ListSchemasResponse(data, context);
|
|
379
379
|
const response = {
|
|
380
380
|
$metadata: deserializeMetadata(output),
|
|
381
381
|
...contents,
|
|
382
382
|
};
|
|
383
383
|
return Promise.resolve(response);
|
|
384
384
|
};
|
|
385
|
-
const
|
|
385
|
+
const de_ListSchemasCommandError = async (output, context) => {
|
|
386
386
|
const parsedOutput = {
|
|
387
387
|
...output,
|
|
388
388
|
body: await parseErrorBody(output.body, context),
|
|
@@ -391,13 +391,13 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
391
391
|
switch (errorCode) {
|
|
392
392
|
case "DatabaseConnectionException":
|
|
393
393
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
394
|
-
throw await
|
|
394
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
395
395
|
case "InternalServerException":
|
|
396
396
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
397
|
-
throw await
|
|
397
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
398
398
|
case "ValidationException":
|
|
399
399
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
400
|
-
throw await
|
|
400
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
401
401
|
default:
|
|
402
402
|
const parsedBody = parsedOutput.body;
|
|
403
403
|
throwDefaultError({
|
|
@@ -408,20 +408,20 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
|
-
export const
|
|
411
|
+
export const de_ListStatementsCommand = async (output, context) => {
|
|
412
412
|
if (output.statusCode >= 300) {
|
|
413
|
-
return
|
|
413
|
+
return de_ListStatementsCommandError(output, context);
|
|
414
414
|
}
|
|
415
415
|
const data = await parseBody(output.body, context);
|
|
416
416
|
let contents = {};
|
|
417
|
-
contents =
|
|
417
|
+
contents = de_ListStatementsResponse(data, context);
|
|
418
418
|
const response = {
|
|
419
419
|
$metadata: deserializeMetadata(output),
|
|
420
420
|
...contents,
|
|
421
421
|
};
|
|
422
422
|
return Promise.resolve(response);
|
|
423
423
|
};
|
|
424
|
-
const
|
|
424
|
+
const de_ListStatementsCommandError = async (output, context) => {
|
|
425
425
|
const parsedOutput = {
|
|
426
426
|
...output,
|
|
427
427
|
body: await parseErrorBody(output.body, context),
|
|
@@ -430,10 +430,10 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
|
|
|
430
430
|
switch (errorCode) {
|
|
431
431
|
case "InternalServerException":
|
|
432
432
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
433
|
-
throw await
|
|
433
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
434
434
|
case "ValidationException":
|
|
435
435
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
436
|
-
throw await
|
|
436
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
437
437
|
default:
|
|
438
438
|
const parsedBody = parsedOutput.body;
|
|
439
439
|
throwDefaultError({
|
|
@@ -444,20 +444,20 @@ const deserializeAws_json1_1ListStatementsCommandError = async (output, context)
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
|
-
export const
|
|
447
|
+
export const de_ListTablesCommand = async (output, context) => {
|
|
448
448
|
if (output.statusCode >= 300) {
|
|
449
|
-
return
|
|
449
|
+
return de_ListTablesCommandError(output, context);
|
|
450
450
|
}
|
|
451
451
|
const data = await parseBody(output.body, context);
|
|
452
452
|
let contents = {};
|
|
453
|
-
contents =
|
|
453
|
+
contents = de_ListTablesResponse(data, context);
|
|
454
454
|
const response = {
|
|
455
455
|
$metadata: deserializeMetadata(output),
|
|
456
456
|
...contents,
|
|
457
457
|
};
|
|
458
458
|
return Promise.resolve(response);
|
|
459
459
|
};
|
|
460
|
-
const
|
|
460
|
+
const de_ListTablesCommandError = async (output, context) => {
|
|
461
461
|
const parsedOutput = {
|
|
462
462
|
...output,
|
|
463
463
|
body: await parseErrorBody(output.body, context),
|
|
@@ -466,13 +466,13 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
466
466
|
switch (errorCode) {
|
|
467
467
|
case "DatabaseConnectionException":
|
|
468
468
|
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_DatabaseConnectionExceptionRes(parsedOutput, context);
|
|
470
470
|
case "InternalServerException":
|
|
471
471
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
473
473
|
case "ValidationException":
|
|
474
474
|
case "com.amazonaws.redshiftdata#ValidationException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
476
476
|
default:
|
|
477
477
|
const parsedBody = parsedOutput.body;
|
|
478
478
|
throwDefaultError({
|
|
@@ -483,93 +483,93 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
const
|
|
486
|
+
const de_ActiveStatementsExceededExceptionRes = async (parsedOutput, context) => {
|
|
487
487
|
const body = parsedOutput.body;
|
|
488
|
-
const deserialized =
|
|
488
|
+
const deserialized = de_ActiveStatementsExceededException(body, context);
|
|
489
489
|
const exception = new ActiveStatementsExceededException({
|
|
490
490
|
$metadata: deserializeMetadata(parsedOutput),
|
|
491
491
|
...deserialized,
|
|
492
492
|
});
|
|
493
493
|
return __decorateServiceException(exception, body);
|
|
494
494
|
};
|
|
495
|
-
const
|
|
495
|
+
const de_BatchExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
496
496
|
const body = parsedOutput.body;
|
|
497
|
-
const deserialized =
|
|
497
|
+
const deserialized = de_BatchExecuteStatementException(body, context);
|
|
498
498
|
const exception = new BatchExecuteStatementException({
|
|
499
499
|
$metadata: deserializeMetadata(parsedOutput),
|
|
500
500
|
...deserialized,
|
|
501
501
|
});
|
|
502
502
|
return __decorateServiceException(exception, body);
|
|
503
503
|
};
|
|
504
|
-
const
|
|
504
|
+
const de_DatabaseConnectionExceptionRes = async (parsedOutput, context) => {
|
|
505
505
|
const body = parsedOutput.body;
|
|
506
|
-
const deserialized =
|
|
506
|
+
const deserialized = de_DatabaseConnectionException(body, context);
|
|
507
507
|
const exception = new DatabaseConnectionException({
|
|
508
508
|
$metadata: deserializeMetadata(parsedOutput),
|
|
509
509
|
...deserialized,
|
|
510
510
|
});
|
|
511
511
|
return __decorateServiceException(exception, body);
|
|
512
512
|
};
|
|
513
|
-
const
|
|
513
|
+
const de_ExecuteStatementExceptionRes = async (parsedOutput, context) => {
|
|
514
514
|
const body = parsedOutput.body;
|
|
515
|
-
const deserialized =
|
|
515
|
+
const deserialized = de_ExecuteStatementException(body, context);
|
|
516
516
|
const exception = new ExecuteStatementException({
|
|
517
517
|
$metadata: deserializeMetadata(parsedOutput),
|
|
518
518
|
...deserialized,
|
|
519
519
|
});
|
|
520
520
|
return __decorateServiceException(exception, body);
|
|
521
521
|
};
|
|
522
|
-
const
|
|
522
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
523
523
|
const body = parsedOutput.body;
|
|
524
|
-
const deserialized =
|
|
524
|
+
const deserialized = de_InternalServerException(body, context);
|
|
525
525
|
const exception = new InternalServerException({
|
|
526
526
|
$metadata: deserializeMetadata(parsedOutput),
|
|
527
527
|
...deserialized,
|
|
528
528
|
});
|
|
529
529
|
return __decorateServiceException(exception, body);
|
|
530
530
|
};
|
|
531
|
-
const
|
|
531
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
532
532
|
const body = parsedOutput.body;
|
|
533
|
-
const deserialized =
|
|
533
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
534
534
|
const exception = new ResourceNotFoundException({
|
|
535
535
|
$metadata: deserializeMetadata(parsedOutput),
|
|
536
536
|
...deserialized,
|
|
537
537
|
});
|
|
538
538
|
return __decorateServiceException(exception, body);
|
|
539
539
|
};
|
|
540
|
-
const
|
|
540
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
541
541
|
const body = parsedOutput.body;
|
|
542
|
-
const deserialized =
|
|
542
|
+
const deserialized = de_ValidationException(body, context);
|
|
543
543
|
const exception = new ValidationException({
|
|
544
544
|
$metadata: deserializeMetadata(parsedOutput),
|
|
545
545
|
...deserialized,
|
|
546
546
|
});
|
|
547
547
|
return __decorateServiceException(exception, body);
|
|
548
548
|
};
|
|
549
|
-
const
|
|
549
|
+
const se_BatchExecuteStatementInput = (input, context) => {
|
|
550
550
|
return {
|
|
551
551
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
552
552
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
553
553
|
...(input.Database != null && { Database: input.Database }),
|
|
554
554
|
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
555
555
|
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
556
|
-
...(input.Sqls != null && { Sqls:
|
|
556
|
+
...(input.Sqls != null && { Sqls: se_SqlList(input.Sqls, context) }),
|
|
557
557
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
558
558
|
...(input.WithEvent != null && { WithEvent: input.WithEvent }),
|
|
559
559
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
560
560
|
};
|
|
561
561
|
};
|
|
562
|
-
const
|
|
562
|
+
const se_CancelStatementRequest = (input, context) => {
|
|
563
563
|
return {
|
|
564
564
|
...(input.Id != null && { Id: input.Id }),
|
|
565
565
|
};
|
|
566
566
|
};
|
|
567
|
-
const
|
|
567
|
+
const se_DescribeStatementRequest = (input, context) => {
|
|
568
568
|
return {
|
|
569
569
|
...(input.Id != null && { Id: input.Id }),
|
|
570
570
|
};
|
|
571
571
|
};
|
|
572
|
-
const
|
|
572
|
+
const se_DescribeTableRequest = (input, context) => {
|
|
573
573
|
return {
|
|
574
574
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
575
575
|
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
@@ -583,13 +583,13 @@ const serializeAws_json1_1DescribeTableRequest = (input, context) => {
|
|
|
583
583
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
584
584
|
};
|
|
585
585
|
};
|
|
586
|
-
const
|
|
586
|
+
const se_ExecuteStatementInput = (input, context) => {
|
|
587
587
|
return {
|
|
588
588
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
589
589
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
590
590
|
...(input.Database != null && { Database: input.Database }),
|
|
591
591
|
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
592
|
-
...(input.Parameters != null && { Parameters:
|
|
592
|
+
...(input.Parameters != null && { Parameters: se_SqlParametersList(input.Parameters, context) }),
|
|
593
593
|
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
594
594
|
...(input.Sql != null && { Sql: input.Sql }),
|
|
595
595
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
@@ -597,13 +597,13 @@ const serializeAws_json1_1ExecuteStatementInput = (input, context) => {
|
|
|
597
597
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
598
598
|
};
|
|
599
599
|
};
|
|
600
|
-
const
|
|
600
|
+
const se_GetStatementResultRequest = (input, context) => {
|
|
601
601
|
return {
|
|
602
602
|
...(input.Id != null && { Id: input.Id }),
|
|
603
603
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
604
604
|
};
|
|
605
605
|
};
|
|
606
|
-
const
|
|
606
|
+
const se_ListDatabasesRequest = (input, context) => {
|
|
607
607
|
return {
|
|
608
608
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
609
609
|
...(input.Database != null && { Database: input.Database }),
|
|
@@ -614,7 +614,7 @@ const serializeAws_json1_1ListDatabasesRequest = (input, context) => {
|
|
|
614
614
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
615
615
|
};
|
|
616
616
|
};
|
|
617
|
-
const
|
|
617
|
+
const se_ListSchemasRequest = (input, context) => {
|
|
618
618
|
return {
|
|
619
619
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
620
620
|
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
@@ -627,7 +627,7 @@ const serializeAws_json1_1ListSchemasRequest = (input, context) => {
|
|
|
627
627
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
628
628
|
};
|
|
629
629
|
};
|
|
630
|
-
const
|
|
630
|
+
const se_ListStatementsRequest = (input, context) => {
|
|
631
631
|
return {
|
|
632
632
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
633
633
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -636,7 +636,7 @@ const serializeAws_json1_1ListStatementsRequest = (input, context) => {
|
|
|
636
636
|
...(input.Status != null && { Status: input.Status }),
|
|
637
637
|
};
|
|
638
638
|
};
|
|
639
|
-
const
|
|
639
|
+
const se_ListTablesRequest = (input, context) => {
|
|
640
640
|
return {
|
|
641
641
|
...(input.ClusterIdentifier != null && { ClusterIdentifier: input.ClusterIdentifier }),
|
|
642
642
|
...(input.ConnectedDatabase != null && { ConnectedDatabase: input.ConnectedDatabase }),
|
|
@@ -650,38 +650,38 @@ const serializeAws_json1_1ListTablesRequest = (input, context) => {
|
|
|
650
650
|
...(input.WorkgroupName != null && { WorkgroupName: input.WorkgroupName }),
|
|
651
651
|
};
|
|
652
652
|
};
|
|
653
|
-
const
|
|
653
|
+
const se_SqlList = (input, context) => {
|
|
654
654
|
return input
|
|
655
655
|
.filter((e) => e != null)
|
|
656
656
|
.map((entry) => {
|
|
657
657
|
return entry;
|
|
658
658
|
});
|
|
659
659
|
};
|
|
660
|
-
const
|
|
660
|
+
const se_SqlParameter = (input, context) => {
|
|
661
661
|
return {
|
|
662
662
|
...(input.name != null && { name: input.name }),
|
|
663
663
|
...(input.value != null && { value: input.value }),
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
|
-
const
|
|
666
|
+
const se_SqlParametersList = (input, context) => {
|
|
667
667
|
return input
|
|
668
668
|
.filter((e) => e != null)
|
|
669
669
|
.map((entry) => {
|
|
670
|
-
return
|
|
670
|
+
return se_SqlParameter(entry, context);
|
|
671
671
|
});
|
|
672
672
|
};
|
|
673
|
-
const
|
|
673
|
+
const de_ActiveStatementsExceededException = (output, context) => {
|
|
674
674
|
return {
|
|
675
675
|
Message: __expectString(output.Message),
|
|
676
676
|
};
|
|
677
677
|
};
|
|
678
|
-
const
|
|
678
|
+
const de_BatchExecuteStatementException = (output, context) => {
|
|
679
679
|
return {
|
|
680
680
|
Message: __expectString(output.Message),
|
|
681
681
|
StatementId: __expectString(output.StatementId),
|
|
682
682
|
};
|
|
683
683
|
};
|
|
684
|
-
const
|
|
684
|
+
const de_BatchExecuteStatementOutput = (output, context) => {
|
|
685
685
|
return {
|
|
686
686
|
ClusterIdentifier: __expectString(output.ClusterIdentifier),
|
|
687
687
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -692,23 +692,23 @@ const deserializeAws_json1_1BatchExecuteStatementOutput = (output, context) => {
|
|
|
692
692
|
WorkgroupName: __expectString(output.WorkgroupName),
|
|
693
693
|
};
|
|
694
694
|
};
|
|
695
|
-
const
|
|
695
|
+
const de_CancelStatementResponse = (output, context) => {
|
|
696
696
|
return {
|
|
697
697
|
Status: __expectBoolean(output.Status),
|
|
698
698
|
};
|
|
699
699
|
};
|
|
700
|
-
const
|
|
700
|
+
const de_ColumnList = (output, context) => {
|
|
701
701
|
const retVal = (output || [])
|
|
702
702
|
.filter((e) => e != null)
|
|
703
703
|
.map((entry) => {
|
|
704
704
|
if (entry === null) {
|
|
705
705
|
return null;
|
|
706
706
|
}
|
|
707
|
-
return
|
|
707
|
+
return de_ColumnMetadata(entry, context);
|
|
708
708
|
});
|
|
709
709
|
return retVal;
|
|
710
710
|
};
|
|
711
|
-
const
|
|
711
|
+
const de_ColumnMetadata = (output, context) => {
|
|
712
712
|
return {
|
|
713
713
|
columnDefault: __expectString(output.columnDefault),
|
|
714
714
|
isCaseSensitive: __expectBoolean(output.isCaseSensitive),
|
|
@@ -725,23 +725,23 @@ const deserializeAws_json1_1ColumnMetadata = (output, context) => {
|
|
|
725
725
|
typeName: __expectString(output.typeName),
|
|
726
726
|
};
|
|
727
727
|
};
|
|
728
|
-
const
|
|
728
|
+
const de_ColumnMetadataList = (output, context) => {
|
|
729
729
|
const retVal = (output || [])
|
|
730
730
|
.filter((e) => e != null)
|
|
731
731
|
.map((entry) => {
|
|
732
732
|
if (entry === null) {
|
|
733
733
|
return null;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
735
|
+
return de_ColumnMetadata(entry, context);
|
|
736
736
|
});
|
|
737
737
|
return retVal;
|
|
738
738
|
};
|
|
739
|
-
const
|
|
739
|
+
const de_DatabaseConnectionException = (output, context) => {
|
|
740
740
|
return {
|
|
741
741
|
Message: __expectString(output.Message),
|
|
742
742
|
};
|
|
743
743
|
};
|
|
744
|
-
const
|
|
744
|
+
const de_DatabaseList = (output, context) => {
|
|
745
745
|
const retVal = (output || [])
|
|
746
746
|
.filter((e) => e != null)
|
|
747
747
|
.map((entry) => {
|
|
@@ -752,7 +752,7 @@ const deserializeAws_json1_1DatabaseList = (output, context) => {
|
|
|
752
752
|
});
|
|
753
753
|
return retVal;
|
|
754
754
|
};
|
|
755
|
-
const
|
|
755
|
+
const de_DescribeStatementResponse = (output, context) => {
|
|
756
756
|
return {
|
|
757
757
|
ClusterIdentifier: __expectString(output.ClusterIdentifier),
|
|
758
758
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -762,9 +762,7 @@ const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
|
|
|
762
762
|
Error: __expectString(output.Error),
|
|
763
763
|
HasResultSet: __expectBoolean(output.HasResultSet),
|
|
764
764
|
Id: __expectString(output.Id),
|
|
765
|
-
QueryParameters: output.QueryParameters != null
|
|
766
|
-
? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
|
|
767
|
-
: undefined,
|
|
765
|
+
QueryParameters: output.QueryParameters != null ? de_SqlParametersList(output.QueryParameters, context) : undefined,
|
|
768
766
|
QueryString: __expectString(output.QueryString),
|
|
769
767
|
RedshiftPid: __expectLong(output.RedshiftPid),
|
|
770
768
|
RedshiftQueryId: __expectLong(output.RedshiftQueryId),
|
|
@@ -772,25 +770,25 @@ const deserializeAws_json1_1DescribeStatementResponse = (output, context) => {
|
|
|
772
770
|
ResultSize: __expectLong(output.ResultSize),
|
|
773
771
|
SecretArn: __expectString(output.SecretArn),
|
|
774
772
|
Status: __expectString(output.Status),
|
|
775
|
-
SubStatements: output.SubStatements != null ?
|
|
773
|
+
SubStatements: output.SubStatements != null ? de_SubStatementList(output.SubStatements, context) : undefined,
|
|
776
774
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
777
775
|
WorkgroupName: __expectString(output.WorkgroupName),
|
|
778
776
|
};
|
|
779
777
|
};
|
|
780
|
-
const
|
|
778
|
+
const de_DescribeTableResponse = (output, context) => {
|
|
781
779
|
return {
|
|
782
|
-
ColumnList: output.ColumnList != null ?
|
|
780
|
+
ColumnList: output.ColumnList != null ? de_ColumnList(output.ColumnList, context) : undefined,
|
|
783
781
|
NextToken: __expectString(output.NextToken),
|
|
784
782
|
TableName: __expectString(output.TableName),
|
|
785
783
|
};
|
|
786
784
|
};
|
|
787
|
-
const
|
|
785
|
+
const de_ExecuteStatementException = (output, context) => {
|
|
788
786
|
return {
|
|
789
787
|
Message: __expectString(output.Message),
|
|
790
788
|
StatementId: __expectString(output.StatementId),
|
|
791
789
|
};
|
|
792
790
|
};
|
|
793
|
-
const
|
|
791
|
+
const de_ExecuteStatementOutput = (output, context) => {
|
|
794
792
|
return {
|
|
795
793
|
ClusterIdentifier: __expectString(output.ClusterIdentifier),
|
|
796
794
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -801,7 +799,7 @@ const deserializeAws_json1_1ExecuteStatementOutput = (output, context) => {
|
|
|
801
799
|
WorkgroupName: __expectString(output.WorkgroupName),
|
|
802
800
|
};
|
|
803
801
|
};
|
|
804
|
-
const
|
|
802
|
+
const de_Field = (output, context) => {
|
|
805
803
|
if (output.blobValue != null) {
|
|
806
804
|
return {
|
|
807
805
|
blobValue: context.base64Decoder(output.blobValue),
|
|
@@ -824,63 +822,61 @@ const deserializeAws_json1_1Field = (output, context) => {
|
|
|
824
822
|
}
|
|
825
823
|
return { $unknown: Object.entries(output)[0] };
|
|
826
824
|
};
|
|
827
|
-
const
|
|
825
|
+
const de_FieldList = (output, context) => {
|
|
828
826
|
const retVal = (output || [])
|
|
829
827
|
.filter((e) => e != null)
|
|
830
828
|
.map((entry) => {
|
|
831
829
|
if (entry === null) {
|
|
832
830
|
return null;
|
|
833
831
|
}
|
|
834
|
-
return
|
|
832
|
+
return de_Field(__expectUnion(entry), context);
|
|
835
833
|
});
|
|
836
834
|
return retVal;
|
|
837
835
|
};
|
|
838
|
-
const
|
|
836
|
+
const de_GetStatementResultResponse = (output, context) => {
|
|
839
837
|
return {
|
|
840
|
-
ColumnMetadata: output.ColumnMetadata != null
|
|
841
|
-
? deserializeAws_json1_1ColumnMetadataList(output.ColumnMetadata, context)
|
|
842
|
-
: undefined,
|
|
838
|
+
ColumnMetadata: output.ColumnMetadata != null ? de_ColumnMetadataList(output.ColumnMetadata, context) : undefined,
|
|
843
839
|
NextToken: __expectString(output.NextToken),
|
|
844
|
-
Records: output.Records != null ?
|
|
840
|
+
Records: output.Records != null ? de_SqlRecords(output.Records, context) : undefined,
|
|
845
841
|
TotalNumRows: __expectLong(output.TotalNumRows),
|
|
846
842
|
};
|
|
847
843
|
};
|
|
848
|
-
const
|
|
844
|
+
const de_InternalServerException = (output, context) => {
|
|
849
845
|
return {
|
|
850
846
|
Message: __expectString(output.Message),
|
|
851
847
|
};
|
|
852
848
|
};
|
|
853
|
-
const
|
|
849
|
+
const de_ListDatabasesResponse = (output, context) => {
|
|
854
850
|
return {
|
|
855
|
-
Databases: output.Databases != null ?
|
|
851
|
+
Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
|
|
856
852
|
NextToken: __expectString(output.NextToken),
|
|
857
853
|
};
|
|
858
854
|
};
|
|
859
|
-
const
|
|
855
|
+
const de_ListSchemasResponse = (output, context) => {
|
|
860
856
|
return {
|
|
861
857
|
NextToken: __expectString(output.NextToken),
|
|
862
|
-
Schemas: output.Schemas != null ?
|
|
858
|
+
Schemas: output.Schemas != null ? de_SchemaList(output.Schemas, context) : undefined,
|
|
863
859
|
};
|
|
864
860
|
};
|
|
865
|
-
const
|
|
861
|
+
const de_ListStatementsResponse = (output, context) => {
|
|
866
862
|
return {
|
|
867
863
|
NextToken: __expectString(output.NextToken),
|
|
868
|
-
Statements: output.Statements != null ?
|
|
864
|
+
Statements: output.Statements != null ? de_StatementList(output.Statements, context) : undefined,
|
|
869
865
|
};
|
|
870
866
|
};
|
|
871
|
-
const
|
|
867
|
+
const de_ListTablesResponse = (output, context) => {
|
|
872
868
|
return {
|
|
873
869
|
NextToken: __expectString(output.NextToken),
|
|
874
|
-
Tables: output.Tables != null ?
|
|
870
|
+
Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
|
|
875
871
|
};
|
|
876
872
|
};
|
|
877
|
-
const
|
|
873
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
878
874
|
return {
|
|
879
875
|
Message: __expectString(output.Message),
|
|
880
876
|
ResourceId: __expectString(output.ResourceId),
|
|
881
877
|
};
|
|
882
878
|
};
|
|
883
|
-
const
|
|
879
|
+
const de_SchemaList = (output, context) => {
|
|
884
880
|
const retVal = (output || [])
|
|
885
881
|
.filter((e) => e != null)
|
|
886
882
|
.map((entry) => {
|
|
@@ -891,62 +887,60 @@ const deserializeAws_json1_1SchemaList = (output, context) => {
|
|
|
891
887
|
});
|
|
892
888
|
return retVal;
|
|
893
889
|
};
|
|
894
|
-
const
|
|
890
|
+
const de_SqlParameter = (output, context) => {
|
|
895
891
|
return {
|
|
896
892
|
name: __expectString(output.name),
|
|
897
893
|
value: __expectString(output.value),
|
|
898
894
|
};
|
|
899
895
|
};
|
|
900
|
-
const
|
|
896
|
+
const de_SqlParametersList = (output, context) => {
|
|
901
897
|
const retVal = (output || [])
|
|
902
898
|
.filter((e) => e != null)
|
|
903
899
|
.map((entry) => {
|
|
904
900
|
if (entry === null) {
|
|
905
901
|
return null;
|
|
906
902
|
}
|
|
907
|
-
return
|
|
903
|
+
return de_SqlParameter(entry, context);
|
|
908
904
|
});
|
|
909
905
|
return retVal;
|
|
910
906
|
};
|
|
911
|
-
const
|
|
907
|
+
const de_SqlRecords = (output, context) => {
|
|
912
908
|
const retVal = (output || [])
|
|
913
909
|
.filter((e) => e != null)
|
|
914
910
|
.map((entry) => {
|
|
915
911
|
if (entry === null) {
|
|
916
912
|
return null;
|
|
917
913
|
}
|
|
918
|
-
return
|
|
914
|
+
return de_FieldList(entry, context);
|
|
919
915
|
});
|
|
920
916
|
return retVal;
|
|
921
917
|
};
|
|
922
|
-
const
|
|
918
|
+
const de_StatementData = (output, context) => {
|
|
923
919
|
return {
|
|
924
920
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
925
921
|
Id: __expectString(output.Id),
|
|
926
922
|
IsBatchStatement: __expectBoolean(output.IsBatchStatement),
|
|
927
|
-
QueryParameters: output.QueryParameters != null
|
|
928
|
-
? deserializeAws_json1_1SqlParametersList(output.QueryParameters, context)
|
|
929
|
-
: undefined,
|
|
923
|
+
QueryParameters: output.QueryParameters != null ? de_SqlParametersList(output.QueryParameters, context) : undefined,
|
|
930
924
|
QueryString: __expectString(output.QueryString),
|
|
931
|
-
QueryStrings: output.QueryStrings != null ?
|
|
925
|
+
QueryStrings: output.QueryStrings != null ? de_StatementStringList(output.QueryStrings, context) : undefined,
|
|
932
926
|
SecretArn: __expectString(output.SecretArn),
|
|
933
927
|
StatementName: __expectString(output.StatementName),
|
|
934
928
|
Status: __expectString(output.Status),
|
|
935
929
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
936
930
|
};
|
|
937
931
|
};
|
|
938
|
-
const
|
|
932
|
+
const de_StatementList = (output, context) => {
|
|
939
933
|
const retVal = (output || [])
|
|
940
934
|
.filter((e) => e != null)
|
|
941
935
|
.map((entry) => {
|
|
942
936
|
if (entry === null) {
|
|
943
937
|
return null;
|
|
944
938
|
}
|
|
945
|
-
return
|
|
939
|
+
return de_StatementData(entry, context);
|
|
946
940
|
});
|
|
947
941
|
return retVal;
|
|
948
942
|
};
|
|
949
|
-
const
|
|
943
|
+
const de_StatementStringList = (output, context) => {
|
|
950
944
|
const retVal = (output || [])
|
|
951
945
|
.filter((e) => e != null)
|
|
952
946
|
.map((entry) => {
|
|
@@ -957,7 +951,7 @@ const deserializeAws_json1_1StatementStringList = (output, context) => {
|
|
|
957
951
|
});
|
|
958
952
|
return retVal;
|
|
959
953
|
};
|
|
960
|
-
const
|
|
954
|
+
const de_SubStatementData = (output, context) => {
|
|
961
955
|
return {
|
|
962
956
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
963
957
|
Duration: __expectLong(output.Duration),
|
|
@@ -972,36 +966,36 @@ const deserializeAws_json1_1SubStatementData = (output, context) => {
|
|
|
972
966
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
973
967
|
};
|
|
974
968
|
};
|
|
975
|
-
const
|
|
969
|
+
const de_SubStatementList = (output, context) => {
|
|
976
970
|
const retVal = (output || [])
|
|
977
971
|
.filter((e) => e != null)
|
|
978
972
|
.map((entry) => {
|
|
979
973
|
if (entry === null) {
|
|
980
974
|
return null;
|
|
981
975
|
}
|
|
982
|
-
return
|
|
976
|
+
return de_SubStatementData(entry, context);
|
|
983
977
|
});
|
|
984
978
|
return retVal;
|
|
985
979
|
};
|
|
986
|
-
const
|
|
980
|
+
const de_TableList = (output, context) => {
|
|
987
981
|
const retVal = (output || [])
|
|
988
982
|
.filter((e) => e != null)
|
|
989
983
|
.map((entry) => {
|
|
990
984
|
if (entry === null) {
|
|
991
985
|
return null;
|
|
992
986
|
}
|
|
993
|
-
return
|
|
987
|
+
return de_TableMember(entry, context);
|
|
994
988
|
});
|
|
995
989
|
return retVal;
|
|
996
990
|
};
|
|
997
|
-
const
|
|
991
|
+
const de_TableMember = (output, context) => {
|
|
998
992
|
return {
|
|
999
993
|
name: __expectString(output.name),
|
|
1000
994
|
schema: __expectString(output.schema),
|
|
1001
995
|
type: __expectString(output.type),
|
|
1002
996
|
};
|
|
1003
997
|
};
|
|
1004
|
-
const
|
|
998
|
+
const de_ValidationException = (output, context) => {
|
|
1005
999
|
return {
|
|
1006
1000
|
Message: __expectString(output.Message),
|
|
1007
1001
|
};
|