@aws-sdk/client-rds-data 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +75 -93
- package/dist-es/protocols/Aws_restJson1.js +47 -65
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
@@ -13,16 +13,15 @@ const serializeAws_restJson1BatchExecuteStatementCommand = async (input, context
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchExecute";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.database
|
|
17
|
-
...(input.parameterSets
|
|
18
|
-
input.parameterSets !== null && {
|
|
16
|
+
...(input.database != null && { database: input.database }),
|
|
17
|
+
...(input.parameterSets != null && {
|
|
19
18
|
parameterSets: serializeAws_restJson1SqlParameterSets(input.parameterSets, context),
|
|
20
19
|
}),
|
|
21
|
-
...(input.resourceArn
|
|
22
|
-
...(input.schema
|
|
23
|
-
...(input.secretArn
|
|
24
|
-
...(input.sql
|
|
25
|
-
...(input.transactionId
|
|
20
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
21
|
+
...(input.schema != null && { schema: input.schema }),
|
|
22
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
23
|
+
...(input.sql != null && { sql: input.sql }),
|
|
24
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
26
25
|
});
|
|
27
26
|
return new protocol_http_1.HttpRequest({
|
|
28
27
|
protocol,
|
|
@@ -43,10 +42,10 @@ const serializeAws_restJson1BeginTransactionCommand = async (input, context) =>
|
|
|
43
42
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BeginTransaction";
|
|
44
43
|
let body;
|
|
45
44
|
body = JSON.stringify({
|
|
46
|
-
...(input.database
|
|
47
|
-
...(input.resourceArn
|
|
48
|
-
...(input.schema
|
|
49
|
-
...(input.secretArn
|
|
45
|
+
...(input.database != null && { database: input.database }),
|
|
46
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
47
|
+
...(input.schema != null && { schema: input.schema }),
|
|
48
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
50
49
|
});
|
|
51
50
|
return new protocol_http_1.HttpRequest({
|
|
52
51
|
protocol,
|
|
@@ -67,9 +66,9 @@ const serializeAws_restJson1CommitTransactionCommand = async (input, context) =>
|
|
|
67
66
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CommitTransaction";
|
|
68
67
|
let body;
|
|
69
68
|
body = JSON.stringify({
|
|
70
|
-
...(input.resourceArn
|
|
71
|
-
...(input.secretArn
|
|
72
|
-
...(input.transactionId
|
|
69
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
70
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
71
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
73
72
|
});
|
|
74
73
|
return new protocol_http_1.HttpRequest({
|
|
75
74
|
protocol,
|
|
@@ -90,13 +89,11 @@ const serializeAws_restJson1ExecuteSqlCommand = async (input, context) => {
|
|
|
90
89
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ExecuteSql";
|
|
91
90
|
let body;
|
|
92
91
|
body = JSON.stringify({
|
|
93
|
-
...(input.awsSecretStoreArn
|
|
94
|
-
|
|
95
|
-
...(input.
|
|
96
|
-
...(input.
|
|
97
|
-
|
|
98
|
-
...(input.schema !== undefined && input.schema !== null && { schema: input.schema }),
|
|
99
|
-
...(input.sqlStatements !== undefined && input.sqlStatements !== null && { sqlStatements: input.sqlStatements }),
|
|
92
|
+
...(input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn }),
|
|
93
|
+
...(input.database != null && { database: input.database }),
|
|
94
|
+
...(input.dbClusterOrInstanceArn != null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn }),
|
|
95
|
+
...(input.schema != null && { schema: input.schema }),
|
|
96
|
+
...(input.sqlStatements != null && { sqlStatements: input.sqlStatements }),
|
|
100
97
|
});
|
|
101
98
|
return new protocol_http_1.HttpRequest({
|
|
102
99
|
protocol,
|
|
@@ -117,24 +114,19 @@ const serializeAws_restJson1ExecuteStatementCommand = async (input, context) =>
|
|
|
117
114
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/Execute";
|
|
118
115
|
let body;
|
|
119
116
|
body = JSON.stringify({
|
|
120
|
-
...(input.continueAfterTimeout
|
|
121
|
-
|
|
122
|
-
...(input.
|
|
123
|
-
...(input.
|
|
124
|
-
|
|
125
|
-
...(input.
|
|
126
|
-
|
|
127
|
-
...(input.parameters !== undefined &&
|
|
128
|
-
input.parameters !== null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) }),
|
|
129
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
130
|
-
...(input.resultSetOptions !== undefined &&
|
|
131
|
-
input.resultSetOptions !== null && {
|
|
117
|
+
...(input.continueAfterTimeout != null && { continueAfterTimeout: input.continueAfterTimeout }),
|
|
118
|
+
...(input.database != null && { database: input.database }),
|
|
119
|
+
...(input.formatRecordsAs != null && { formatRecordsAs: input.formatRecordsAs }),
|
|
120
|
+
...(input.includeResultMetadata != null && { includeResultMetadata: input.includeResultMetadata }),
|
|
121
|
+
...(input.parameters != null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) }),
|
|
122
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
123
|
+
...(input.resultSetOptions != null && {
|
|
132
124
|
resultSetOptions: serializeAws_restJson1ResultSetOptions(input.resultSetOptions, context),
|
|
133
125
|
}),
|
|
134
|
-
...(input.schema
|
|
135
|
-
...(input.secretArn
|
|
136
|
-
...(input.sql
|
|
137
|
-
...(input.transactionId
|
|
126
|
+
...(input.schema != null && { schema: input.schema }),
|
|
127
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
128
|
+
...(input.sql != null && { sql: input.sql }),
|
|
129
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
138
130
|
});
|
|
139
131
|
return new protocol_http_1.HttpRequest({
|
|
140
132
|
protocol,
|
|
@@ -155,9 +147,9 @@ const serializeAws_restJson1RollbackTransactionCommand = async (input, context)
|
|
|
155
147
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/RollbackTransaction";
|
|
156
148
|
let body;
|
|
157
149
|
body = JSON.stringify({
|
|
158
|
-
...(input.resourceArn
|
|
159
|
-
...(input.secretArn
|
|
160
|
-
...(input.transactionId
|
|
150
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
151
|
+
...(input.secretArn != null && { secretArn: input.secretArn }),
|
|
152
|
+
...(input.transactionId != null && { transactionId: input.transactionId }),
|
|
161
153
|
});
|
|
162
154
|
return new protocol_http_1.HttpRequest({
|
|
163
155
|
protocol,
|
|
@@ -191,8 +183,7 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
|
|
|
191
183
|
body: await parseBody(output.body, context),
|
|
192
184
|
};
|
|
193
185
|
let response;
|
|
194
|
-
|
|
195
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
186
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
196
187
|
switch (errorCode) {
|
|
197
188
|
case "AccessDeniedException":
|
|
198
189
|
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
@@ -214,10 +205,12 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
|
|
|
214
205
|
throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
|
|
215
206
|
default:
|
|
216
207
|
const parsedBody = parsedOutput.body;
|
|
208
|
+
const $metadata = deserializeMetadata(output);
|
|
209
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
217
210
|
response = new RDSDataServiceException_1.RDSDataServiceException({
|
|
218
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
211
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
219
212
|
$fault: "client",
|
|
220
|
-
$metadata
|
|
213
|
+
$metadata,
|
|
221
214
|
});
|
|
222
215
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
223
216
|
}
|
|
@@ -243,8 +236,7 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
|
|
|
243
236
|
body: await parseBody(output.body, context),
|
|
244
237
|
};
|
|
245
238
|
let response;
|
|
246
|
-
|
|
247
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
248
240
|
switch (errorCode) {
|
|
249
241
|
case "AccessDeniedException":
|
|
250
242
|
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
@@ -266,10 +258,12 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
|
|
|
266
258
|
throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
|
|
267
259
|
default:
|
|
268
260
|
const parsedBody = parsedOutput.body;
|
|
261
|
+
const $metadata = deserializeMetadata(output);
|
|
262
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
269
263
|
response = new RDSDataServiceException_1.RDSDataServiceException({
|
|
270
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
264
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
271
265
|
$fault: "client",
|
|
272
|
-
$metadata
|
|
266
|
+
$metadata,
|
|
273
267
|
});
|
|
274
268
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
275
269
|
}
|
|
@@ -295,8 +289,7 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
|
|
|
295
289
|
body: await parseBody(output.body, context),
|
|
296
290
|
};
|
|
297
291
|
let response;
|
|
298
|
-
|
|
299
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
293
|
switch (errorCode) {
|
|
301
294
|
case "AccessDeniedException":
|
|
302
295
|
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
@@ -321,10 +314,12 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
|
|
|
321
314
|
throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
|
|
322
315
|
default:
|
|
323
316
|
const parsedBody = parsedOutput.body;
|
|
317
|
+
const $metadata = deserializeMetadata(output);
|
|
318
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
324
319
|
response = new RDSDataServiceException_1.RDSDataServiceException({
|
|
325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
320
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
326
321
|
$fault: "client",
|
|
327
|
-
$metadata
|
|
322
|
+
$metadata,
|
|
328
323
|
});
|
|
329
324
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
330
325
|
}
|
|
@@ -350,8 +345,7 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
|
|
|
350
345
|
body: await parseBody(output.body, context),
|
|
351
346
|
};
|
|
352
347
|
let response;
|
|
353
|
-
|
|
354
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
355
349
|
switch (errorCode) {
|
|
356
350
|
case "AccessDeniedException":
|
|
357
351
|
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
@@ -370,10 +364,12 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
|
|
|
370
364
|
throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
|
|
371
365
|
default:
|
|
372
366
|
const parsedBody = parsedOutput.body;
|
|
367
|
+
const $metadata = deserializeMetadata(output);
|
|
368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
373
369
|
response = new RDSDataServiceException_1.RDSDataServiceException({
|
|
374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
375
371
|
$fault: "client",
|
|
376
|
-
$metadata
|
|
372
|
+
$metadata,
|
|
377
373
|
});
|
|
378
374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
379
375
|
}
|
|
@@ -415,8 +411,7 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
|
|
|
415
411
|
body: await parseBody(output.body, context),
|
|
416
412
|
};
|
|
417
413
|
let response;
|
|
418
|
-
|
|
419
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
415
|
switch (errorCode) {
|
|
421
416
|
case "AccessDeniedException":
|
|
422
417
|
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
@@ -438,10 +433,12 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
|
|
|
438
433
|
throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
|
|
439
434
|
default:
|
|
440
435
|
const parsedBody = parsedOutput.body;
|
|
436
|
+
const $metadata = deserializeMetadata(output);
|
|
437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
441
438
|
response = new RDSDataServiceException_1.RDSDataServiceException({
|
|
442
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
439
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
443
440
|
$fault: "client",
|
|
444
|
-
$metadata
|
|
441
|
+
$metadata,
|
|
445
442
|
});
|
|
446
443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
447
444
|
}
|
|
@@ -467,8 +464,7 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
|
|
|
467
464
|
body: await parseBody(output.body, context),
|
|
468
465
|
};
|
|
469
466
|
let response;
|
|
470
|
-
|
|
471
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
468
|
switch (errorCode) {
|
|
473
469
|
case "AccessDeniedException":
|
|
474
470
|
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
@@ -493,10 +489,12 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
|
|
|
493
489
|
throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
|
|
494
490
|
default:
|
|
495
491
|
const parsedBody = parsedOutput.body;
|
|
492
|
+
const $metadata = deserializeMetadata(output);
|
|
493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
496
494
|
response = new RDSDataServiceException_1.RDSDataServiceException({
|
|
497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
495
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
498
496
|
$fault: "client",
|
|
499
|
-
$metadata
|
|
497
|
+
$metadata,
|
|
500
498
|
});
|
|
501
499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
502
500
|
}
|
|
@@ -646,18 +644,15 @@ const serializeAws_restJson1LongArray = (input, context) => {
|
|
|
646
644
|
};
|
|
647
645
|
const serializeAws_restJson1ResultSetOptions = (input, context) => {
|
|
648
646
|
return {
|
|
649
|
-
...(input.decimalReturnType
|
|
650
|
-
|
|
651
|
-
...(input.longReturnType !== undefined &&
|
|
652
|
-
input.longReturnType !== null && { longReturnType: input.longReturnType }),
|
|
647
|
+
...(input.decimalReturnType != null && { decimalReturnType: input.decimalReturnType }),
|
|
648
|
+
...(input.longReturnType != null && { longReturnType: input.longReturnType }),
|
|
653
649
|
};
|
|
654
650
|
};
|
|
655
651
|
const serializeAws_restJson1SqlParameter = (input, context) => {
|
|
656
652
|
return {
|
|
657
|
-
...(input.name
|
|
658
|
-
...(input.typeHint
|
|
659
|
-
...(input.value
|
|
660
|
-
input.value !== null && { value: serializeAws_restJson1Field(input.value, context) }),
|
|
653
|
+
...(input.name != null && { name: input.name }),
|
|
654
|
+
...(input.typeHint != null && { typeHint: input.typeHint }),
|
|
655
|
+
...(input.value != null && { value: serializeAws_restJson1Field(input.value, context) }),
|
|
661
656
|
};
|
|
662
657
|
};
|
|
663
658
|
const serializeAws_restJson1SqlParameterSets = (input, context) => {
|
|
@@ -843,9 +838,7 @@ const deserializeAws_restJson1Metadata = (output, context) => {
|
|
|
843
838
|
};
|
|
844
839
|
const deserializeAws_restJson1_Record = (output, context) => {
|
|
845
840
|
return {
|
|
846
|
-
values: output.values
|
|
847
|
-
? deserializeAws_restJson1Row(output.values, context)
|
|
848
|
-
: undefined,
|
|
841
|
+
values: output.values != null ? deserializeAws_restJson1Row(output.values, context) : undefined,
|
|
849
842
|
};
|
|
850
843
|
};
|
|
851
844
|
const deserializeAws_restJson1Records = (output, context) => {
|
|
@@ -861,10 +854,8 @@ const deserializeAws_restJson1Records = (output, context) => {
|
|
|
861
854
|
};
|
|
862
855
|
const deserializeAws_restJson1ResultFrame = (output, context) => {
|
|
863
856
|
return {
|
|
864
|
-
records: output.records
|
|
865
|
-
|
|
866
|
-
: undefined,
|
|
867
|
-
resultSetMetadata: output.resultSetMetadata !== undefined && output.resultSetMetadata !== null
|
|
857
|
+
records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
|
|
858
|
+
resultSetMetadata: output.resultSetMetadata != null
|
|
868
859
|
? deserializeAws_restJson1ResultSetMetadata(output.resultSetMetadata, context)
|
|
869
860
|
: undefined,
|
|
870
861
|
};
|
|
@@ -872,9 +863,7 @@ const deserializeAws_restJson1ResultFrame = (output, context) => {
|
|
|
872
863
|
const deserializeAws_restJson1ResultSetMetadata = (output, context) => {
|
|
873
864
|
return {
|
|
874
865
|
columnCount: (0, smithy_client_1.expectLong)(output.columnCount),
|
|
875
|
-
columnMetadata: output.columnMetadata
|
|
876
|
-
? deserializeAws_restJson1Metadata(output.columnMetadata, context)
|
|
877
|
-
: undefined,
|
|
866
|
+
columnMetadata: output.columnMetadata != null ? deserializeAws_restJson1Metadata(output.columnMetadata, context) : undefined,
|
|
878
867
|
};
|
|
879
868
|
};
|
|
880
869
|
const deserializeAws_restJson1Row = (output, context) => {
|
|
@@ -902,9 +891,7 @@ const deserializeAws_restJson1SqlRecords = (output, context) => {
|
|
|
902
891
|
const deserializeAws_restJson1SqlStatementResult = (output, context) => {
|
|
903
892
|
return {
|
|
904
893
|
numberOfRecordsUpdated: (0, smithy_client_1.expectLong)(output.numberOfRecordsUpdated),
|
|
905
|
-
resultFrame: output.resultFrame
|
|
906
|
-
? deserializeAws_restJson1ResultFrame(output.resultFrame, context)
|
|
907
|
-
: undefined,
|
|
894
|
+
resultFrame: output.resultFrame != null ? deserializeAws_restJson1ResultFrame(output.resultFrame, context) : undefined,
|
|
908
895
|
};
|
|
909
896
|
};
|
|
910
897
|
const deserializeAws_restJson1SqlStatementResults = (output, context) => {
|
|
@@ -931,16 +918,12 @@ const deserializeAws_restJson1StringArray = (output, context) => {
|
|
|
931
918
|
};
|
|
932
919
|
const deserializeAws_restJson1StructValue = (output, context) => {
|
|
933
920
|
return {
|
|
934
|
-
attributes: output.attributes
|
|
935
|
-
? deserializeAws_restJson1ArrayValueList(output.attributes, context)
|
|
936
|
-
: undefined,
|
|
921
|
+
attributes: output.attributes != null ? deserializeAws_restJson1ArrayValueList(output.attributes, context) : undefined,
|
|
937
922
|
};
|
|
938
923
|
};
|
|
939
924
|
const deserializeAws_restJson1UpdateResult = (output, context) => {
|
|
940
925
|
return {
|
|
941
|
-
generatedFields: output.generatedFields
|
|
942
|
-
? deserializeAws_restJson1FieldList(output.generatedFields, context)
|
|
943
|
-
: undefined,
|
|
926
|
+
generatedFields: output.generatedFields != null ? deserializeAws_restJson1FieldList(output.generatedFields, context) : undefined,
|
|
944
927
|
};
|
|
945
928
|
};
|
|
946
929
|
const deserializeAws_restJson1UpdateResults = (output, context) => {
|
|
@@ -1042,5 +1025,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1042
1025
|
if (data["__type"] !== undefined) {
|
|
1043
1026
|
return sanitizeErrorCode(data["__type"]);
|
|
1044
1027
|
}
|
|
1045
|
-
return "";
|
|
1046
1028
|
};
|
|
@@ -14,10 +14,9 @@ export var serializeAws_restJson1BatchExecuteStatementCommand = function (input,
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchExecute";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.database
|
|
18
|
-
input.parameterSets !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.database != null && { database: input.database })), (input.parameterSets != null && {
|
|
19
18
|
parameterSets: serializeAws_restJson1SqlParameterSets(input.parameterSets, context),
|
|
20
|
-
})), (input.resourceArn
|
|
19
|
+
})), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.schema != null && { schema: input.schema })), (input.secretArn != null && { secretArn: input.secretArn })), (input.sql != null && { sql: input.sql })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -41,7 +40,7 @@ export var serializeAws_restJson1BeginTransactionCommand = function (input, cont
|
|
|
41
40
|
"content-type": "application/json",
|
|
42
41
|
};
|
|
43
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BeginTransaction";
|
|
44
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.database
|
|
43
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.database != null && { database: input.database })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.schema != null && { schema: input.schema })), (input.secretArn != null && { secretArn: input.secretArn })));
|
|
45
44
|
return [2, new __HttpRequest({
|
|
46
45
|
protocol: protocol,
|
|
47
46
|
hostname: hostname,
|
|
@@ -65,7 +64,7 @@ export var serializeAws_restJson1CommitTransactionCommand = function (input, con
|
|
|
65
64
|
"content-type": "application/json",
|
|
66
65
|
};
|
|
67
66
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CommitTransaction";
|
|
68
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn
|
|
67
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.secretArn != null && { secretArn: input.secretArn })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
69
68
|
return [2, new __HttpRequest({
|
|
70
69
|
protocol: protocol,
|
|
71
70
|
hostname: hostname,
|
|
@@ -89,9 +88,7 @@ export var serializeAws_restJson1ExecuteSqlCommand = function (input, context) {
|
|
|
89
88
|
"content-type": "application/json",
|
|
90
89
|
};
|
|
91
90
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ExecuteSql";
|
|
92
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.awsSecretStoreArn
|
|
93
|
-
input.awsSecretStoreArn !== null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.database !== undefined && input.database !== null && { database: input.database })), (input.dbClusterOrInstanceArn !== undefined &&
|
|
94
|
-
input.dbClusterOrInstanceArn !== null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn })), (input.schema !== undefined && input.schema !== null && { schema: input.schema })), (input.sqlStatements !== undefined && input.sqlStatements !== null && { sqlStatements: input.sqlStatements })));
|
|
91
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.awsSecretStoreArn != null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.database != null && { database: input.database })), (input.dbClusterOrInstanceArn != null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn })), (input.schema != null && { schema: input.schema })), (input.sqlStatements != null && { sqlStatements: input.sqlStatements })));
|
|
95
92
|
return [2, new __HttpRequest({
|
|
96
93
|
protocol: protocol,
|
|
97
94
|
hostname: hostname,
|
|
@@ -115,14 +112,9 @@ export var serializeAws_restJson1ExecuteStatementCommand = function (input, cont
|
|
|
115
112
|
"content-type": "application/json",
|
|
116
113
|
};
|
|
117
114
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/Execute";
|
|
118
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.continueAfterTimeout
|
|
119
|
-
input.continueAfterTimeout !== null && { continueAfterTimeout: input.continueAfterTimeout })), (input.database !== undefined && input.database !== null && { database: input.database })), (input.formatRecordsAs !== undefined &&
|
|
120
|
-
input.formatRecordsAs !== null && { formatRecordsAs: input.formatRecordsAs })), (input.includeResultMetadata !== undefined &&
|
|
121
|
-
input.includeResultMetadata !== null && { includeResultMetadata: input.includeResultMetadata })), (input.parameters !== undefined &&
|
|
122
|
-
input.parameters !== null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.resultSetOptions !== undefined &&
|
|
123
|
-
input.resultSetOptions !== null && {
|
|
115
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.continueAfterTimeout != null && { continueAfterTimeout: input.continueAfterTimeout })), (input.database != null && { database: input.database })), (input.formatRecordsAs != null && { formatRecordsAs: input.formatRecordsAs })), (input.includeResultMetadata != null && { includeResultMetadata: input.includeResultMetadata })), (input.parameters != null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) })), (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.resultSetOptions != null && {
|
|
124
116
|
resultSetOptions: serializeAws_restJson1ResultSetOptions(input.resultSetOptions, context),
|
|
125
|
-
})), (input.schema
|
|
117
|
+
})), (input.schema != null && { schema: input.schema })), (input.secretArn != null && { secretArn: input.secretArn })), (input.sql != null && { sql: input.sql })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
126
118
|
return [2, new __HttpRequest({
|
|
127
119
|
protocol: protocol,
|
|
128
120
|
hostname: hostname,
|
|
@@ -146,7 +138,7 @@ export var serializeAws_restJson1RollbackTransactionCommand = function (input, c
|
|
|
146
138
|
"content-type": "application/json",
|
|
147
139
|
};
|
|
148
140
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/RollbackTransaction";
|
|
149
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn
|
|
141
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.secretArn != null && { secretArn: input.secretArn })), (input.transactionId != null && { transactionId: input.transactionId })));
|
|
150
142
|
return [2, new __HttpRequest({
|
|
151
143
|
protocol: protocol,
|
|
152
144
|
hostname: hostname,
|
|
@@ -184,7 +176,7 @@ export var deserializeAws_restJson1BatchExecuteStatementCommand = function (outp
|
|
|
184
176
|
});
|
|
185
177
|
}); };
|
|
186
178
|
var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
187
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
179
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
188
180
|
var _c;
|
|
189
181
|
return __generator(this, function (_d) {
|
|
190
182
|
switch (_d.label) {
|
|
@@ -194,7 +186,6 @@ var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output
|
|
|
194
186
|
return [4, parseBody(output.body, context)];
|
|
195
187
|
case 1:
|
|
196
188
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
197
|
-
errorCode = "UnknownError";
|
|
198
189
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
199
190
|
_b = errorCode;
|
|
200
191
|
switch (_b) {
|
|
@@ -226,10 +217,12 @@ var deserializeAws_restJson1BatchExecuteStatementCommandError = function (output
|
|
|
226
217
|
case 13: throw _d.sent();
|
|
227
218
|
case 14:
|
|
228
219
|
parsedBody = parsedOutput.body;
|
|
220
|
+
$metadata = deserializeMetadata(output);
|
|
221
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
229
222
|
response = new __BaseException({
|
|
230
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
231
224
|
$fault: "client",
|
|
232
|
-
$metadata:
|
|
225
|
+
$metadata: $metadata,
|
|
233
226
|
});
|
|
234
227
|
throw __decorateServiceException(response, parsedBody);
|
|
235
228
|
}
|
|
@@ -260,7 +253,7 @@ export var deserializeAws_restJson1BeginTransactionCommand = function (output, c
|
|
|
260
253
|
});
|
|
261
254
|
}); };
|
|
262
255
|
var deserializeAws_restJson1BeginTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
263
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
256
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
264
257
|
var _c;
|
|
265
258
|
return __generator(this, function (_d) {
|
|
266
259
|
switch (_d.label) {
|
|
@@ -270,7 +263,6 @@ var deserializeAws_restJson1BeginTransactionCommandError = function (output, con
|
|
|
270
263
|
return [4, parseBody(output.body, context)];
|
|
271
264
|
case 1:
|
|
272
265
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
273
|
-
errorCode = "UnknownError";
|
|
274
266
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
275
267
|
_b = errorCode;
|
|
276
268
|
switch (_b) {
|
|
@@ -302,10 +294,12 @@ var deserializeAws_restJson1BeginTransactionCommandError = function (output, con
|
|
|
302
294
|
case 13: throw _d.sent();
|
|
303
295
|
case 14:
|
|
304
296
|
parsedBody = parsedOutput.body;
|
|
297
|
+
$metadata = deserializeMetadata(output);
|
|
298
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
305
299
|
response = new __BaseException({
|
|
306
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
300
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
307
301
|
$fault: "client",
|
|
308
|
-
$metadata:
|
|
302
|
+
$metadata: $metadata,
|
|
309
303
|
});
|
|
310
304
|
throw __decorateServiceException(response, parsedBody);
|
|
311
305
|
}
|
|
@@ -336,7 +330,7 @@ export var deserializeAws_restJson1CommitTransactionCommand = function (output,
|
|
|
336
330
|
});
|
|
337
331
|
}); };
|
|
338
332
|
var deserializeAws_restJson1CommitTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
339
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
333
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
340
334
|
var _c;
|
|
341
335
|
return __generator(this, function (_d) {
|
|
342
336
|
switch (_d.label) {
|
|
@@ -346,7 +340,6 @@ var deserializeAws_restJson1CommitTransactionCommandError = function (output, co
|
|
|
346
340
|
return [4, parseBody(output.body, context)];
|
|
347
341
|
case 1:
|
|
348
342
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
349
|
-
errorCode = "UnknownError";
|
|
350
343
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
344
|
_b = errorCode;
|
|
352
345
|
switch (_b) {
|
|
@@ -382,10 +375,12 @@ var deserializeAws_restJson1CommitTransactionCommandError = function (output, co
|
|
|
382
375
|
case 15: throw _d.sent();
|
|
383
376
|
case 16:
|
|
384
377
|
parsedBody = parsedOutput.body;
|
|
378
|
+
$metadata = deserializeMetadata(output);
|
|
379
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
385
380
|
response = new __BaseException({
|
|
386
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
381
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
387
382
|
$fault: "client",
|
|
388
|
-
$metadata:
|
|
383
|
+
$metadata: $metadata,
|
|
389
384
|
});
|
|
390
385
|
throw __decorateServiceException(response, parsedBody);
|
|
391
386
|
}
|
|
@@ -416,7 +411,7 @@ export var deserializeAws_restJson1ExecuteSqlCommand = function (output, context
|
|
|
416
411
|
});
|
|
417
412
|
}); };
|
|
418
413
|
var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
419
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
414
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
420
415
|
var _c;
|
|
421
416
|
return __generator(this, function (_d) {
|
|
422
417
|
switch (_d.label) {
|
|
@@ -426,7 +421,6 @@ var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context)
|
|
|
426
421
|
return [4, parseBody(output.body, context)];
|
|
427
422
|
case 1:
|
|
428
423
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
429
|
-
errorCode = "UnknownError";
|
|
430
424
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
425
|
_b = errorCode;
|
|
432
426
|
switch (_b) {
|
|
@@ -454,10 +448,12 @@ var deserializeAws_restJson1ExecuteSqlCommandError = function (output, context)
|
|
|
454
448
|
case 11: throw _d.sent();
|
|
455
449
|
case 12:
|
|
456
450
|
parsedBody = parsedOutput.body;
|
|
451
|
+
$metadata = deserializeMetadata(output);
|
|
452
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
457
453
|
response = new __BaseException({
|
|
458
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
454
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
459
455
|
$fault: "client",
|
|
460
|
-
$metadata:
|
|
456
|
+
$metadata: $metadata,
|
|
461
457
|
});
|
|
462
458
|
throw __decorateServiceException(response, parsedBody);
|
|
463
459
|
}
|
|
@@ -504,7 +500,7 @@ export var deserializeAws_restJson1ExecuteStatementCommand = function (output, c
|
|
|
504
500
|
});
|
|
505
501
|
}); };
|
|
506
502
|
var deserializeAws_restJson1ExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
507
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
503
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
508
504
|
var _c;
|
|
509
505
|
return __generator(this, function (_d) {
|
|
510
506
|
switch (_d.label) {
|
|
@@ -514,7 +510,6 @@ var deserializeAws_restJson1ExecuteStatementCommandError = function (output, con
|
|
|
514
510
|
return [4, parseBody(output.body, context)];
|
|
515
511
|
case 1:
|
|
516
512
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
517
|
-
errorCode = "UnknownError";
|
|
518
513
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
519
514
|
_b = errorCode;
|
|
520
515
|
switch (_b) {
|
|
@@ -546,10 +541,12 @@ var deserializeAws_restJson1ExecuteStatementCommandError = function (output, con
|
|
|
546
541
|
case 13: throw _d.sent();
|
|
547
542
|
case 14:
|
|
548
543
|
parsedBody = parsedOutput.body;
|
|
544
|
+
$metadata = deserializeMetadata(output);
|
|
545
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
549
546
|
response = new __BaseException({
|
|
550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
551
548
|
$fault: "client",
|
|
552
|
-
$metadata:
|
|
549
|
+
$metadata: $metadata,
|
|
553
550
|
});
|
|
554
551
|
throw __decorateServiceException(response, parsedBody);
|
|
555
552
|
}
|
|
@@ -580,7 +577,7 @@ export var deserializeAws_restJson1RollbackTransactionCommand = function (output
|
|
|
580
577
|
});
|
|
581
578
|
}); };
|
|
582
579
|
var deserializeAws_restJson1RollbackTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
583
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
580
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
584
581
|
var _c;
|
|
585
582
|
return __generator(this, function (_d) {
|
|
586
583
|
switch (_d.label) {
|
|
@@ -590,7 +587,6 @@ var deserializeAws_restJson1RollbackTransactionCommandError = function (output,
|
|
|
590
587
|
return [4, parseBody(output.body, context)];
|
|
591
588
|
case 1:
|
|
592
589
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
593
|
-
errorCode = "UnknownError";
|
|
594
590
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
591
|
_b = errorCode;
|
|
596
592
|
switch (_b) {
|
|
@@ -626,10 +622,12 @@ var deserializeAws_restJson1RollbackTransactionCommandError = function (output,
|
|
|
626
622
|
case 15: throw _d.sent();
|
|
627
623
|
case 16:
|
|
628
624
|
parsedBody = parsedOutput.body;
|
|
625
|
+
$metadata = deserializeMetadata(output);
|
|
626
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
629
627
|
response = new __BaseException({
|
|
630
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
631
629
|
$fault: "client",
|
|
632
|
-
$metadata:
|
|
630
|
+
$metadata: $metadata,
|
|
633
631
|
});
|
|
634
632
|
throw __decorateServiceException(response, parsedBody);
|
|
635
633
|
}
|
|
@@ -779,13 +777,10 @@ var serializeAws_restJson1LongArray = function (input, context) {
|
|
|
779
777
|
});
|
|
780
778
|
};
|
|
781
779
|
var serializeAws_restJson1ResultSetOptions = function (input, context) {
|
|
782
|
-
return __assign(__assign({}, (input.decimalReturnType
|
|
783
|
-
input.decimalReturnType !== null && { decimalReturnType: input.decimalReturnType })), (input.longReturnType !== undefined &&
|
|
784
|
-
input.longReturnType !== null && { longReturnType: input.longReturnType }));
|
|
780
|
+
return __assign(__assign({}, (input.decimalReturnType != null && { decimalReturnType: input.decimalReturnType })), (input.longReturnType != null && { longReturnType: input.longReturnType }));
|
|
785
781
|
};
|
|
786
782
|
var serializeAws_restJson1SqlParameter = function (input, context) {
|
|
787
|
-
return __assign(__assign(__assign({}, (input.name
|
|
788
|
-
input.value !== null && { value: serializeAws_restJson1Field(input.value, context) }));
|
|
783
|
+
return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.typeHint != null && { typeHint: input.typeHint })), (input.value != null && { value: serializeAws_restJson1Field(input.value, context) }));
|
|
789
784
|
};
|
|
790
785
|
var serializeAws_restJson1SqlParameterSets = function (input, context) {
|
|
791
786
|
return input
|
|
@@ -970,9 +965,7 @@ var deserializeAws_restJson1Metadata = function (output, context) {
|
|
|
970
965
|
};
|
|
971
966
|
var deserializeAws_restJson1_Record = function (output, context) {
|
|
972
967
|
return {
|
|
973
|
-
values: output.values
|
|
974
|
-
? deserializeAws_restJson1Row(output.values, context)
|
|
975
|
-
: undefined,
|
|
968
|
+
values: output.values != null ? deserializeAws_restJson1Row(output.values, context) : undefined,
|
|
976
969
|
};
|
|
977
970
|
};
|
|
978
971
|
var deserializeAws_restJson1Records = function (output, context) {
|
|
@@ -988,10 +981,8 @@ var deserializeAws_restJson1Records = function (output, context) {
|
|
|
988
981
|
};
|
|
989
982
|
var deserializeAws_restJson1ResultFrame = function (output, context) {
|
|
990
983
|
return {
|
|
991
|
-
records: output.records
|
|
992
|
-
|
|
993
|
-
: undefined,
|
|
994
|
-
resultSetMetadata: output.resultSetMetadata !== undefined && output.resultSetMetadata !== null
|
|
984
|
+
records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
|
|
985
|
+
resultSetMetadata: output.resultSetMetadata != null
|
|
995
986
|
? deserializeAws_restJson1ResultSetMetadata(output.resultSetMetadata, context)
|
|
996
987
|
: undefined,
|
|
997
988
|
};
|
|
@@ -999,9 +990,7 @@ var deserializeAws_restJson1ResultFrame = function (output, context) {
|
|
|
999
990
|
var deserializeAws_restJson1ResultSetMetadata = function (output, context) {
|
|
1000
991
|
return {
|
|
1001
992
|
columnCount: __expectLong(output.columnCount),
|
|
1002
|
-
columnMetadata: output.columnMetadata
|
|
1003
|
-
? deserializeAws_restJson1Metadata(output.columnMetadata, context)
|
|
1004
|
-
: undefined,
|
|
993
|
+
columnMetadata: output.columnMetadata != null ? deserializeAws_restJson1Metadata(output.columnMetadata, context) : undefined,
|
|
1005
994
|
};
|
|
1006
995
|
};
|
|
1007
996
|
var deserializeAws_restJson1Row = function (output, context) {
|
|
@@ -1029,9 +1018,7 @@ var deserializeAws_restJson1SqlRecords = function (output, context) {
|
|
|
1029
1018
|
var deserializeAws_restJson1SqlStatementResult = function (output, context) {
|
|
1030
1019
|
return {
|
|
1031
1020
|
numberOfRecordsUpdated: __expectLong(output.numberOfRecordsUpdated),
|
|
1032
|
-
resultFrame: output.resultFrame
|
|
1033
|
-
? deserializeAws_restJson1ResultFrame(output.resultFrame, context)
|
|
1034
|
-
: undefined,
|
|
1021
|
+
resultFrame: output.resultFrame != null ? deserializeAws_restJson1ResultFrame(output.resultFrame, context) : undefined,
|
|
1035
1022
|
};
|
|
1036
1023
|
};
|
|
1037
1024
|
var deserializeAws_restJson1SqlStatementResults = function (output, context) {
|
|
@@ -1058,16 +1045,12 @@ var deserializeAws_restJson1StringArray = function (output, context) {
|
|
|
1058
1045
|
};
|
|
1059
1046
|
var deserializeAws_restJson1StructValue = function (output, context) {
|
|
1060
1047
|
return {
|
|
1061
|
-
attributes: output.attributes
|
|
1062
|
-
? deserializeAws_restJson1ArrayValueList(output.attributes, context)
|
|
1063
|
-
: undefined,
|
|
1048
|
+
attributes: output.attributes != null ? deserializeAws_restJson1ArrayValueList(output.attributes, context) : undefined,
|
|
1064
1049
|
};
|
|
1065
1050
|
};
|
|
1066
1051
|
var deserializeAws_restJson1UpdateResult = function (output, context) {
|
|
1067
1052
|
return {
|
|
1068
|
-
generatedFields: output.generatedFields
|
|
1069
|
-
? deserializeAws_restJson1FieldList(output.generatedFields, context)
|
|
1070
|
-
: undefined,
|
|
1053
|
+
generatedFields: output.generatedFields != null ? deserializeAws_restJson1FieldList(output.generatedFields, context) : undefined,
|
|
1071
1054
|
};
|
|
1072
1055
|
};
|
|
1073
1056
|
var deserializeAws_restJson1UpdateResults = function (output, context) {
|
|
@@ -1176,5 +1159,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1176
1159
|
if (data["__type"] !== undefined) {
|
|
1177
1160
|
return sanitizeErrorCode(data["__type"]);
|
|
1178
1161
|
}
|
|
1179
|
-
return "";
|
|
1180
1162
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|