@aws-sdk/client-rds-data 3.306.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.
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map as __map, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { AccessDeniedException, ArrayValue, BadRequestException, Field, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableError, StatementTimeoutException, } from "../models/models_0";
4
4
  import { RDSDataServiceException as __BaseException } from "../models/RDSDataServiceException";
5
- export const serializeAws_restJson1BatchExecuteStatementCommand = async (input, context) => {
5
+ export const se_BatchExecuteStatementCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -11,9 +11,7 @@ export const serializeAws_restJson1BatchExecuteStatementCommand = async (input,
11
11
  let body;
12
12
  body = JSON.stringify({
13
13
  ...(input.database != null && { database: input.database }),
14
- ...(input.parameterSets != null && {
15
- parameterSets: serializeAws_restJson1SqlParameterSets(input.parameterSets, context),
16
- }),
14
+ ...(input.parameterSets != null && { parameterSets: se_SqlParameterSets(input.parameterSets, context) }),
17
15
  ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
18
16
  ...(input.schema != null && { schema: input.schema }),
19
17
  ...(input.secretArn != null && { secretArn: input.secretArn }),
@@ -30,7 +28,7 @@ export const serializeAws_restJson1BatchExecuteStatementCommand = async (input,
30
28
  body,
31
29
  });
32
30
  };
33
- export const serializeAws_restJson1BeginTransactionCommand = async (input, context) => {
31
+ export const se_BeginTransactionCommand = async (input, context) => {
34
32
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
33
  const headers = {
36
34
  "content-type": "application/json",
@@ -53,7 +51,7 @@ export const serializeAws_restJson1BeginTransactionCommand = async (input, conte
53
51
  body,
54
52
  });
55
53
  };
56
- export const serializeAws_restJson1CommitTransactionCommand = async (input, context) => {
54
+ export const se_CommitTransactionCommand = async (input, context) => {
57
55
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
56
  const headers = {
59
57
  "content-type": "application/json",
@@ -75,7 +73,7 @@ export const serializeAws_restJson1CommitTransactionCommand = async (input, cont
75
73
  body,
76
74
  });
77
75
  };
78
- export const serializeAws_restJson1ExecuteSqlCommand = async (input, context) => {
76
+ export const se_ExecuteSqlCommand = async (input, context) => {
79
77
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
80
78
  const headers = {
81
79
  "content-type": "application/json",
@@ -99,7 +97,7 @@ export const serializeAws_restJson1ExecuteSqlCommand = async (input, context) =>
99
97
  body,
100
98
  });
101
99
  };
102
- export const serializeAws_restJson1ExecuteStatementCommand = async (input, context) => {
100
+ export const se_ExecuteStatementCommand = async (input, context) => {
103
101
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
102
  const headers = {
105
103
  "content-type": "application/json",
@@ -111,11 +109,9 @@ export const serializeAws_restJson1ExecuteStatementCommand = async (input, conte
111
109
  ...(input.database != null && { database: input.database }),
112
110
  ...(input.formatRecordsAs != null && { formatRecordsAs: input.formatRecordsAs }),
113
111
  ...(input.includeResultMetadata != null && { includeResultMetadata: input.includeResultMetadata }),
114
- ...(input.parameters != null && { parameters: serializeAws_restJson1SqlParametersList(input.parameters, context) }),
112
+ ...(input.parameters != null && { parameters: se_SqlParametersList(input.parameters, context) }),
115
113
  ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
116
- ...(input.resultSetOptions != null && {
117
- resultSetOptions: serializeAws_restJson1ResultSetOptions(input.resultSetOptions, context),
118
- }),
114
+ ...(input.resultSetOptions != null && { resultSetOptions: se_ResultSetOptions(input.resultSetOptions, context) }),
119
115
  ...(input.schema != null && { schema: input.schema }),
120
116
  ...(input.secretArn != null && { secretArn: input.secretArn }),
121
117
  ...(input.sql != null && { sql: input.sql }),
@@ -131,7 +127,7 @@ export const serializeAws_restJson1ExecuteStatementCommand = async (input, conte
131
127
  body,
132
128
  });
133
129
  };
134
- export const serializeAws_restJson1RollbackTransactionCommand = async (input, context) => {
130
+ export const se_RollbackTransactionCommand = async (input, context) => {
135
131
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
132
  const headers = {
137
133
  "content-type": "application/json",
@@ -153,20 +149,20 @@ export const serializeAws_restJson1RollbackTransactionCommand = async (input, co
153
149
  body,
154
150
  });
155
151
  };
156
- export const deserializeAws_restJson1BatchExecuteStatementCommand = async (output, context) => {
152
+ export const de_BatchExecuteStatementCommand = async (output, context) => {
157
153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
158
- return deserializeAws_restJson1BatchExecuteStatementCommandError(output, context);
154
+ return de_BatchExecuteStatementCommandError(output, context);
159
155
  }
160
156
  const contents = map({
161
157
  $metadata: deserializeMetadata(output),
162
158
  });
163
159
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
164
160
  if (data.updateResults != null) {
165
- contents.updateResults = deserializeAws_restJson1UpdateResults(data.updateResults, context);
161
+ contents.updateResults = de_UpdateResults(data.updateResults, context);
166
162
  }
167
163
  return contents;
168
164
  };
169
- const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output, context) => {
165
+ const de_BatchExecuteStatementCommandError = async (output, context) => {
170
166
  const parsedOutput = {
171
167
  ...output,
172
168
  body: await parseErrorBody(output.body, context),
@@ -175,22 +171,22 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
175
171
  switch (errorCode) {
176
172
  case "AccessDeniedException":
177
173
  case "com.amazonaws.rdsdata#AccessDeniedException":
178
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
174
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
179
175
  case "BadRequestException":
180
176
  case "com.amazonaws.rdsdata#BadRequestException":
181
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
177
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
182
178
  case "ForbiddenException":
183
179
  case "com.amazonaws.rdsdata#ForbiddenException":
184
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
180
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
185
181
  case "InternalServerErrorException":
186
182
  case "com.amazonaws.rdsdata#InternalServerErrorException":
187
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
183
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
188
184
  case "ServiceUnavailableError":
189
185
  case "com.amazonaws.rdsdata#ServiceUnavailableError":
190
- throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
186
+ throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
191
187
  case "StatementTimeoutException":
192
188
  case "com.amazonaws.rdsdata#StatementTimeoutException":
193
- throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
189
+ throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
194
190
  default:
195
191
  const parsedBody = parsedOutput.body;
196
192
  throwDefaultError({
@@ -201,9 +197,9 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
201
197
  });
202
198
  }
203
199
  };
204
- export const deserializeAws_restJson1BeginTransactionCommand = async (output, context) => {
200
+ export const de_BeginTransactionCommand = async (output, context) => {
205
201
  if (output.statusCode !== 200 && output.statusCode >= 300) {
206
- return deserializeAws_restJson1BeginTransactionCommandError(output, context);
202
+ return de_BeginTransactionCommandError(output, context);
207
203
  }
208
204
  const contents = map({
209
205
  $metadata: deserializeMetadata(output),
@@ -214,7 +210,7 @@ export const deserializeAws_restJson1BeginTransactionCommand = async (output, co
214
210
  }
215
211
  return contents;
216
212
  };
217
- const deserializeAws_restJson1BeginTransactionCommandError = async (output, context) => {
213
+ const de_BeginTransactionCommandError = async (output, context) => {
218
214
  const parsedOutput = {
219
215
  ...output,
220
216
  body: await parseErrorBody(output.body, context),
@@ -223,22 +219,22 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
223
219
  switch (errorCode) {
224
220
  case "AccessDeniedException":
225
221
  case "com.amazonaws.rdsdata#AccessDeniedException":
226
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
222
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
227
223
  case "BadRequestException":
228
224
  case "com.amazonaws.rdsdata#BadRequestException":
229
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
225
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
230
226
  case "ForbiddenException":
231
227
  case "com.amazonaws.rdsdata#ForbiddenException":
232
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
228
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
233
229
  case "InternalServerErrorException":
234
230
  case "com.amazonaws.rdsdata#InternalServerErrorException":
235
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
231
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
236
232
  case "ServiceUnavailableError":
237
233
  case "com.amazonaws.rdsdata#ServiceUnavailableError":
238
- throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
234
+ throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
239
235
  case "StatementTimeoutException":
240
236
  case "com.amazonaws.rdsdata#StatementTimeoutException":
241
- throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
237
+ throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
242
238
  default:
243
239
  const parsedBody = parsedOutput.body;
244
240
  throwDefaultError({
@@ -249,9 +245,9 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
249
245
  });
250
246
  }
251
247
  };
252
- export const deserializeAws_restJson1CommitTransactionCommand = async (output, context) => {
248
+ export const de_CommitTransactionCommand = async (output, context) => {
253
249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
254
- return deserializeAws_restJson1CommitTransactionCommandError(output, context);
250
+ return de_CommitTransactionCommandError(output, context);
255
251
  }
256
252
  const contents = map({
257
253
  $metadata: deserializeMetadata(output),
@@ -262,7 +258,7 @@ export const deserializeAws_restJson1CommitTransactionCommand = async (output, c
262
258
  }
263
259
  return contents;
264
260
  };
265
- const deserializeAws_restJson1CommitTransactionCommandError = async (output, context) => {
261
+ const de_CommitTransactionCommandError = async (output, context) => {
266
262
  const parsedOutput = {
267
263
  ...output,
268
264
  body: await parseErrorBody(output.body, context),
@@ -271,25 +267,25 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
271
267
  switch (errorCode) {
272
268
  case "AccessDeniedException":
273
269
  case "com.amazonaws.rdsdata#AccessDeniedException":
274
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
270
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
275
271
  case "BadRequestException":
276
272
  case "com.amazonaws.rdsdata#BadRequestException":
277
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
273
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
278
274
  case "ForbiddenException":
279
275
  case "com.amazonaws.rdsdata#ForbiddenException":
280
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
276
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
281
277
  case "InternalServerErrorException":
282
278
  case "com.amazonaws.rdsdata#InternalServerErrorException":
283
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
279
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
284
280
  case "NotFoundException":
285
281
  case "com.amazonaws.rdsdata#NotFoundException":
286
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
282
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
287
283
  case "ServiceUnavailableError":
288
284
  case "com.amazonaws.rdsdata#ServiceUnavailableError":
289
- throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
285
+ throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
290
286
  case "StatementTimeoutException":
291
287
  case "com.amazonaws.rdsdata#StatementTimeoutException":
292
- throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
288
+ throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
293
289
  default:
294
290
  const parsedBody = parsedOutput.body;
295
291
  throwDefaultError({
@@ -300,20 +296,20 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
300
296
  });
301
297
  }
302
298
  };
303
- export const deserializeAws_restJson1ExecuteSqlCommand = async (output, context) => {
299
+ export const de_ExecuteSqlCommand = async (output, context) => {
304
300
  if (output.statusCode !== 200 && output.statusCode >= 300) {
305
- return deserializeAws_restJson1ExecuteSqlCommandError(output, context);
301
+ return de_ExecuteSqlCommandError(output, context);
306
302
  }
307
303
  const contents = map({
308
304
  $metadata: deserializeMetadata(output),
309
305
  });
310
306
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
311
307
  if (data.sqlStatementResults != null) {
312
- contents.sqlStatementResults = deserializeAws_restJson1SqlStatementResults(data.sqlStatementResults, context);
308
+ contents.sqlStatementResults = de_SqlStatementResults(data.sqlStatementResults, context);
313
309
  }
314
310
  return contents;
315
311
  };
316
- const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) => {
312
+ const de_ExecuteSqlCommandError = async (output, context) => {
317
313
  const parsedOutput = {
318
314
  ...output,
319
315
  body: await parseErrorBody(output.body, context),
@@ -322,19 +318,19 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
322
318
  switch (errorCode) {
323
319
  case "AccessDeniedException":
324
320
  case "com.amazonaws.rdsdata#AccessDeniedException":
325
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
321
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
326
322
  case "BadRequestException":
327
323
  case "com.amazonaws.rdsdata#BadRequestException":
328
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
324
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
329
325
  case "ForbiddenException":
330
326
  case "com.amazonaws.rdsdata#ForbiddenException":
331
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
327
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
332
328
  case "InternalServerErrorException":
333
329
  case "com.amazonaws.rdsdata#InternalServerErrorException":
334
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
330
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
335
331
  case "ServiceUnavailableError":
336
332
  case "com.amazonaws.rdsdata#ServiceUnavailableError":
337
- throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
333
+ throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
338
334
  default:
339
335
  const parsedBody = parsedOutput.body;
340
336
  throwDefaultError({
@@ -345,32 +341,32 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
345
341
  });
346
342
  }
347
343
  };
348
- export const deserializeAws_restJson1ExecuteStatementCommand = async (output, context) => {
344
+ export const de_ExecuteStatementCommand = async (output, context) => {
349
345
  if (output.statusCode !== 200 && output.statusCode >= 300) {
350
- return deserializeAws_restJson1ExecuteStatementCommandError(output, context);
346
+ return de_ExecuteStatementCommandError(output, context);
351
347
  }
352
348
  const contents = map({
353
349
  $metadata: deserializeMetadata(output),
354
350
  });
355
351
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
356
352
  if (data.columnMetadata != null) {
357
- contents.columnMetadata = deserializeAws_restJson1Metadata(data.columnMetadata, context);
353
+ contents.columnMetadata = de_Metadata(data.columnMetadata, context);
358
354
  }
359
355
  if (data.formattedRecords != null) {
360
356
  contents.formattedRecords = __expectString(data.formattedRecords);
361
357
  }
362
358
  if (data.generatedFields != null) {
363
- contents.generatedFields = deserializeAws_restJson1FieldList(data.generatedFields, context);
359
+ contents.generatedFields = de_FieldList(data.generatedFields, context);
364
360
  }
365
361
  if (data.numberOfRecordsUpdated != null) {
366
362
  contents.numberOfRecordsUpdated = __expectLong(data.numberOfRecordsUpdated);
367
363
  }
368
364
  if (data.records != null) {
369
- contents.records = deserializeAws_restJson1SqlRecords(data.records, context);
365
+ contents.records = de_SqlRecords(data.records, context);
370
366
  }
371
367
  return contents;
372
368
  };
373
- const deserializeAws_restJson1ExecuteStatementCommandError = async (output, context) => {
369
+ const de_ExecuteStatementCommandError = async (output, context) => {
374
370
  const parsedOutput = {
375
371
  ...output,
376
372
  body: await parseErrorBody(output.body, context),
@@ -379,22 +375,22 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
379
375
  switch (errorCode) {
380
376
  case "AccessDeniedException":
381
377
  case "com.amazonaws.rdsdata#AccessDeniedException":
382
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
378
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
383
379
  case "BadRequestException":
384
380
  case "com.amazonaws.rdsdata#BadRequestException":
385
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
381
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
386
382
  case "ForbiddenException":
387
383
  case "com.amazonaws.rdsdata#ForbiddenException":
388
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
384
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
389
385
  case "InternalServerErrorException":
390
386
  case "com.amazonaws.rdsdata#InternalServerErrorException":
391
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
387
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
392
388
  case "ServiceUnavailableError":
393
389
  case "com.amazonaws.rdsdata#ServiceUnavailableError":
394
- throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
390
+ throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
395
391
  case "StatementTimeoutException":
396
392
  case "com.amazonaws.rdsdata#StatementTimeoutException":
397
- throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
393
+ throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
398
394
  default:
399
395
  const parsedBody = parsedOutput.body;
400
396
  throwDefaultError({
@@ -405,9 +401,9 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
405
401
  });
406
402
  }
407
403
  };
408
- export const deserializeAws_restJson1RollbackTransactionCommand = async (output, context) => {
404
+ export const de_RollbackTransactionCommand = async (output, context) => {
409
405
  if (output.statusCode !== 200 && output.statusCode >= 300) {
410
- return deserializeAws_restJson1RollbackTransactionCommandError(output, context);
406
+ return de_RollbackTransactionCommandError(output, context);
411
407
  }
412
408
  const contents = map({
413
409
  $metadata: deserializeMetadata(output),
@@ -418,7 +414,7 @@ export const deserializeAws_restJson1RollbackTransactionCommand = async (output,
418
414
  }
419
415
  return contents;
420
416
  };
421
- const deserializeAws_restJson1RollbackTransactionCommandError = async (output, context) => {
417
+ const de_RollbackTransactionCommandError = async (output, context) => {
422
418
  const parsedOutput = {
423
419
  ...output,
424
420
  body: await parseErrorBody(output.body, context),
@@ -427,25 +423,25 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
427
423
  switch (errorCode) {
428
424
  case "AccessDeniedException":
429
425
  case "com.amazonaws.rdsdata#AccessDeniedException":
430
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
426
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
431
427
  case "BadRequestException":
432
428
  case "com.amazonaws.rdsdata#BadRequestException":
433
- throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
429
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
434
430
  case "ForbiddenException":
435
431
  case "com.amazonaws.rdsdata#ForbiddenException":
436
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
432
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
437
433
  case "InternalServerErrorException":
438
434
  case "com.amazonaws.rdsdata#InternalServerErrorException":
439
- throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
435
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
440
436
  case "NotFoundException":
441
437
  case "com.amazonaws.rdsdata#NotFoundException":
442
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
438
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
443
439
  case "ServiceUnavailableError":
444
440
  case "com.amazonaws.rdsdata#ServiceUnavailableError":
445
- throw await deserializeAws_restJson1ServiceUnavailableErrorResponse(parsedOutput, context);
441
+ throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
446
442
  case "StatementTimeoutException":
447
443
  case "com.amazonaws.rdsdata#StatementTimeoutException":
448
- throw await deserializeAws_restJson1StatementTimeoutExceptionResponse(parsedOutput, context);
444
+ throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
449
445
  default:
450
446
  const parsedBody = parsedOutput.body;
451
447
  throwDefaultError({
@@ -457,7 +453,7 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
457
453
  }
458
454
  };
459
455
  const map = __map;
460
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
456
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
461
457
  const contents = map({});
462
458
  const data = parsedOutput.body;
463
459
  if (data.message != null) {
@@ -469,7 +465,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
469
465
  });
470
466
  return __decorateServiceException(exception, parsedOutput.body);
471
467
  };
472
- const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
468
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
473
469
  const contents = map({});
474
470
  const data = parsedOutput.body;
475
471
  if (data.message != null) {
@@ -481,7 +477,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
481
477
  });
482
478
  return __decorateServiceException(exception, parsedOutput.body);
483
479
  };
484
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
480
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
485
481
  const contents = map({});
486
482
  const data = parsedOutput.body;
487
483
  if (data.message != null) {
@@ -493,7 +489,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
493
489
  });
494
490
  return __decorateServiceException(exception, parsedOutput.body);
495
491
  };
496
- const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
492
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
497
493
  const contents = map({});
498
494
  const data = parsedOutput.body;
499
495
  const exception = new InternalServerErrorException({
@@ -502,7 +498,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
502
498
  });
503
499
  return __decorateServiceException(exception, parsedOutput.body);
504
500
  };
505
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
501
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
506
502
  const contents = map({});
507
503
  const data = parsedOutput.body;
508
504
  if (data.message != null) {
@@ -514,7 +510,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
514
510
  });
515
511
  return __decorateServiceException(exception, parsedOutput.body);
516
512
  };
517
- const deserializeAws_restJson1ServiceUnavailableErrorResponse = async (parsedOutput, context) => {
513
+ const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
518
514
  const contents = map({});
519
515
  const data = parsedOutput.body;
520
516
  const exception = new ServiceUnavailableError({
@@ -523,7 +519,7 @@ const deserializeAws_restJson1ServiceUnavailableErrorResponse = async (parsedOut
523
519
  });
524
520
  return __decorateServiceException(exception, parsedOutput.body);
525
521
  };
526
- const deserializeAws_restJson1StatementTimeoutExceptionResponse = async (parsedOutput, context) => {
522
+ const de_StatementTimeoutExceptionRes = async (parsedOutput, context) => {
527
523
  const contents = map({});
528
524
  const data = parsedOutput.body;
529
525
  if (data.dbConnectionId != null) {
@@ -538,40 +534,40 @@ const deserializeAws_restJson1StatementTimeoutExceptionResponse = async (parsedO
538
534
  });
539
535
  return __decorateServiceException(exception, parsedOutput.body);
540
536
  };
541
- const serializeAws_restJson1ArrayOfArray = (input, context) => {
537
+ const se_ArrayOfArray = (input, context) => {
542
538
  return input
543
539
  .filter((e) => e != null)
544
540
  .map((entry) => {
545
- return serializeAws_restJson1ArrayValue(entry, context);
541
+ return se_ArrayValue(entry, context);
546
542
  });
547
543
  };
548
- const serializeAws_restJson1ArrayValue = (input, context) => {
544
+ const se_ArrayValue = (input, context) => {
549
545
  return ArrayValue.visit(input, {
550
- arrayValues: (value) => ({ arrayValues: serializeAws_restJson1ArrayOfArray(value, context) }),
551
- booleanValues: (value) => ({ booleanValues: serializeAws_restJson1BooleanArray(value, context) }),
552
- doubleValues: (value) => ({ doubleValues: serializeAws_restJson1DoubleArray(value, context) }),
553
- longValues: (value) => ({ longValues: serializeAws_restJson1LongArray(value, context) }),
554
- stringValues: (value) => ({ stringValues: serializeAws_restJson1StringArray(value, context) }),
546
+ arrayValues: (value) => ({ arrayValues: se_ArrayOfArray(value, context) }),
547
+ booleanValues: (value) => ({ booleanValues: se_BooleanArray(value, context) }),
548
+ doubleValues: (value) => ({ doubleValues: se_DoubleArray(value, context) }),
549
+ longValues: (value) => ({ longValues: se_LongArray(value, context) }),
550
+ stringValues: (value) => ({ stringValues: se_StringArray(value, context) }),
555
551
  _: (name, value) => ({ name: value }),
556
552
  });
557
553
  };
558
- const serializeAws_restJson1BooleanArray = (input, context) => {
554
+ const se_BooleanArray = (input, context) => {
559
555
  return input
560
556
  .filter((e) => e != null)
561
557
  .map((entry) => {
562
558
  return entry;
563
559
  });
564
560
  };
565
- const serializeAws_restJson1DoubleArray = (input, context) => {
561
+ const se_DoubleArray = (input, context) => {
566
562
  return input
567
563
  .filter((e) => e != null)
568
564
  .map((entry) => {
569
565
  return __serializeFloat(entry);
570
566
  });
571
567
  };
572
- const serializeAws_restJson1Field = (input, context) => {
568
+ const se_Field = (input, context) => {
573
569
  return Field.visit(input, {
574
- arrayValue: (value) => ({ arrayValue: serializeAws_restJson1ArrayValue(value, context) }),
570
+ arrayValue: (value) => ({ arrayValue: se_ArrayValue(value, context) }),
575
571
  blobValue: (value) => ({ blobValue: context.base64Encoder(value) }),
576
572
  booleanValue: (value) => ({ booleanValue: value }),
577
573
  doubleValue: (value) => ({ doubleValue: __serializeFloat(value) }),
@@ -581,98 +577,98 @@ const serializeAws_restJson1Field = (input, context) => {
581
577
  _: (name, value) => ({ name: value }),
582
578
  });
583
579
  };
584
- const serializeAws_restJson1LongArray = (input, context) => {
580
+ const se_LongArray = (input, context) => {
585
581
  return input
586
582
  .filter((e) => e != null)
587
583
  .map((entry) => {
588
584
  return entry;
589
585
  });
590
586
  };
591
- const serializeAws_restJson1ResultSetOptions = (input, context) => {
587
+ const se_ResultSetOptions = (input, context) => {
592
588
  return {
593
589
  ...(input.decimalReturnType != null && { decimalReturnType: input.decimalReturnType }),
594
590
  ...(input.longReturnType != null && { longReturnType: input.longReturnType }),
595
591
  };
596
592
  };
597
- const serializeAws_restJson1SqlParameter = (input, context) => {
593
+ const se_SqlParameter = (input, context) => {
598
594
  return {
599
595
  ...(input.name != null && { name: input.name }),
600
596
  ...(input.typeHint != null && { typeHint: input.typeHint }),
601
- ...(input.value != null && { value: serializeAws_restJson1Field(input.value, context) }),
597
+ ...(input.value != null && { value: se_Field(input.value, context) }),
602
598
  };
603
599
  };
604
- const serializeAws_restJson1SqlParameterSets = (input, context) => {
600
+ const se_SqlParameterSets = (input, context) => {
605
601
  return input
606
602
  .filter((e) => e != null)
607
603
  .map((entry) => {
608
- return serializeAws_restJson1SqlParametersList(entry, context);
604
+ return se_SqlParametersList(entry, context);
609
605
  });
610
606
  };
611
- const serializeAws_restJson1SqlParametersList = (input, context) => {
607
+ const se_SqlParametersList = (input, context) => {
612
608
  return input
613
609
  .filter((e) => e != null)
614
610
  .map((entry) => {
615
- return serializeAws_restJson1SqlParameter(entry, context);
611
+ return se_SqlParameter(entry, context);
616
612
  });
617
613
  };
618
- const serializeAws_restJson1StringArray = (input, context) => {
614
+ const se_StringArray = (input, context) => {
619
615
  return input
620
616
  .filter((e) => e != null)
621
617
  .map((entry) => {
622
618
  return entry;
623
619
  });
624
620
  };
625
- const deserializeAws_restJson1ArrayOfArray = (output, context) => {
621
+ const de_ArrayOfArray = (output, context) => {
626
622
  const retVal = (output || [])
627
623
  .filter((e) => e != null)
628
624
  .map((entry) => {
629
625
  if (entry === null) {
630
626
  return null;
631
627
  }
632
- return deserializeAws_restJson1ArrayValue(__expectUnion(entry), context);
628
+ return de_ArrayValue(__expectUnion(entry), context);
633
629
  });
634
630
  return retVal;
635
631
  };
636
- const deserializeAws_restJson1ArrayValue = (output, context) => {
632
+ const de_ArrayValue = (output, context) => {
637
633
  if (output.arrayValues != null) {
638
634
  return {
639
- arrayValues: deserializeAws_restJson1ArrayOfArray(output.arrayValues, context),
635
+ arrayValues: de_ArrayOfArray(output.arrayValues, context),
640
636
  };
641
637
  }
642
638
  if (output.booleanValues != null) {
643
639
  return {
644
- booleanValues: deserializeAws_restJson1BooleanArray(output.booleanValues, context),
640
+ booleanValues: de_BooleanArray(output.booleanValues, context),
645
641
  };
646
642
  }
647
643
  if (output.doubleValues != null) {
648
644
  return {
649
- doubleValues: deserializeAws_restJson1DoubleArray(output.doubleValues, context),
645
+ doubleValues: de_DoubleArray(output.doubleValues, context),
650
646
  };
651
647
  }
652
648
  if (output.longValues != null) {
653
649
  return {
654
- longValues: deserializeAws_restJson1LongArray(output.longValues, context),
650
+ longValues: de_LongArray(output.longValues, context),
655
651
  };
656
652
  }
657
653
  if (output.stringValues != null) {
658
654
  return {
659
- stringValues: deserializeAws_restJson1StringArray(output.stringValues, context),
655
+ stringValues: de_StringArray(output.stringValues, context),
660
656
  };
661
657
  }
662
658
  return { $unknown: Object.entries(output)[0] };
663
659
  };
664
- const deserializeAws_restJson1ArrayValueList = (output, context) => {
660
+ const de_ArrayValueList = (output, context) => {
665
661
  const retVal = (output || [])
666
662
  .filter((e) => e != null)
667
663
  .map((entry) => {
668
664
  if (entry === null) {
669
665
  return null;
670
666
  }
671
- return deserializeAws_restJson1Value(__expectUnion(entry), context);
667
+ return de_Value(__expectUnion(entry), context);
672
668
  });
673
669
  return retVal;
674
670
  };
675
- const deserializeAws_restJson1BooleanArray = (output, context) => {
671
+ const de_BooleanArray = (output, context) => {
676
672
  const retVal = (output || [])
677
673
  .filter((e) => e != null)
678
674
  .map((entry) => {
@@ -683,7 +679,7 @@ const deserializeAws_restJson1BooleanArray = (output, context) => {
683
679
  });
684
680
  return retVal;
685
681
  };
686
- const deserializeAws_restJson1ColumnMetadata = (output, context) => {
682
+ const de_ColumnMetadata = (output, context) => {
687
683
  return {
688
684
  arrayBaseColumnType: __expectInt32(output.arrayBaseColumnType),
689
685
  isAutoIncrement: __expectBoolean(output.isAutoIncrement),
@@ -701,7 +697,7 @@ const deserializeAws_restJson1ColumnMetadata = (output, context) => {
701
697
  typeName: __expectString(output.typeName),
702
698
  };
703
699
  };
704
- const deserializeAws_restJson1DoubleArray = (output, context) => {
700
+ const de_DoubleArray = (output, context) => {
705
701
  const retVal = (output || [])
706
702
  .filter((e) => e != null)
707
703
  .map((entry) => {
@@ -712,10 +708,10 @@ const deserializeAws_restJson1DoubleArray = (output, context) => {
712
708
  });
713
709
  return retVal;
714
710
  };
715
- const deserializeAws_restJson1Field = (output, context) => {
711
+ const de_Field = (output, context) => {
716
712
  if (output.arrayValue != null) {
717
713
  return {
718
- arrayValue: deserializeAws_restJson1ArrayValue(__expectUnion(output.arrayValue), context),
714
+ arrayValue: de_ArrayValue(__expectUnion(output.arrayValue), context),
719
715
  };
720
716
  }
721
717
  if (output.blobValue != null) {
@@ -740,18 +736,18 @@ const deserializeAws_restJson1Field = (output, context) => {
740
736
  }
741
737
  return { $unknown: Object.entries(output)[0] };
742
738
  };
743
- const deserializeAws_restJson1FieldList = (output, context) => {
739
+ const de_FieldList = (output, context) => {
744
740
  const retVal = (output || [])
745
741
  .filter((e) => e != null)
746
742
  .map((entry) => {
747
743
  if (entry === null) {
748
744
  return null;
749
745
  }
750
- return deserializeAws_restJson1Field(__expectUnion(entry), context);
746
+ return de_Field(__expectUnion(entry), context);
751
747
  });
752
748
  return retVal;
753
749
  };
754
- const deserializeAws_restJson1LongArray = (output, context) => {
750
+ const de_LongArray = (output, context) => {
755
751
  const retVal = (output || [])
756
752
  .filter((e) => e != null)
757
753
  .map((entry) => {
@@ -762,87 +758,85 @@ const deserializeAws_restJson1LongArray = (output, context) => {
762
758
  });
763
759
  return retVal;
764
760
  };
765
- const deserializeAws_restJson1Metadata = (output, context) => {
761
+ const de_Metadata = (output, context) => {
766
762
  const retVal = (output || [])
767
763
  .filter((e) => e != null)
768
764
  .map((entry) => {
769
765
  if (entry === null) {
770
766
  return null;
771
767
  }
772
- return deserializeAws_restJson1ColumnMetadata(entry, context);
768
+ return de_ColumnMetadata(entry, context);
773
769
  });
774
770
  return retVal;
775
771
  };
776
- const deserializeAws_restJson1_Record = (output, context) => {
772
+ const de__Record = (output, context) => {
777
773
  return {
778
- values: output.values != null ? deserializeAws_restJson1Row(output.values, context) : undefined,
774
+ values: output.values != null ? de_Row(output.values, context) : undefined,
779
775
  };
780
776
  };
781
- const deserializeAws_restJson1Records = (output, context) => {
777
+ const de_Records = (output, context) => {
782
778
  const retVal = (output || [])
783
779
  .filter((e) => e != null)
784
780
  .map((entry) => {
785
781
  if (entry === null) {
786
782
  return null;
787
783
  }
788
- return deserializeAws_restJson1_Record(entry, context);
784
+ return de__Record(entry, context);
789
785
  });
790
786
  return retVal;
791
787
  };
792
- const deserializeAws_restJson1ResultFrame = (output, context) => {
788
+ const de_ResultFrame = (output, context) => {
793
789
  return {
794
- records: output.records != null ? deserializeAws_restJson1Records(output.records, context) : undefined,
795
- resultSetMetadata: output.resultSetMetadata != null
796
- ? deserializeAws_restJson1ResultSetMetadata(output.resultSetMetadata, context)
797
- : undefined,
790
+ records: output.records != null ? de_Records(output.records, context) : undefined,
791
+ resultSetMetadata: output.resultSetMetadata != null ? de_ResultSetMetadata(output.resultSetMetadata, context) : undefined,
798
792
  };
799
793
  };
800
- const deserializeAws_restJson1ResultSetMetadata = (output, context) => {
794
+ const de_ResultSetMetadata = (output, context) => {
801
795
  return {
802
796
  columnCount: __expectLong(output.columnCount),
803
- columnMetadata: output.columnMetadata != null ? deserializeAws_restJson1Metadata(output.columnMetadata, context) : undefined,
797
+ columnMetadata: output.columnMetadata != null ? de_Metadata(output.columnMetadata, context) : undefined,
804
798
  };
805
799
  };
806
- const deserializeAws_restJson1Row = (output, context) => {
800
+ const de_Row = (output, context) => {
807
801
  const retVal = (output || [])
808
802
  .filter((e) => e != null)
809
803
  .map((entry) => {
810
804
  if (entry === null) {
811
805
  return null;
812
806
  }
813
- return deserializeAws_restJson1Value(__expectUnion(entry), context);
807
+ return de_Value(__expectUnion(entry), context);
814
808
  });
815
809
  return retVal;
816
810
  };
817
- const deserializeAws_restJson1SqlRecords = (output, context) => {
811
+ const de_SqlRecords = (output, context) => {
818
812
  const retVal = (output || [])
819
813
  .filter((e) => e != null)
820
814
  .map((entry) => {
821
815
  if (entry === null) {
822
816
  return null;
823
817
  }
824
- return deserializeAws_restJson1FieldList(entry, context);
818
+ return de_FieldList(entry, context);
825
819
  });
826
820
  return retVal;
827
821
  };
828
- const deserializeAws_restJson1SqlStatementResult = (output, context) => {
822
+ const de_SqlStatementResult = (output, context) => {
829
823
  return {
830
824
  numberOfRecordsUpdated: __expectLong(output.numberOfRecordsUpdated),
831
- resultFrame: output.resultFrame != null ? deserializeAws_restJson1ResultFrame(output.resultFrame, context) : undefined,
825
+ resultFrame: output.resultFrame != null ? de_ResultFrame(output.resultFrame, context) : undefined,
832
826
  };
833
827
  };
834
- const deserializeAws_restJson1SqlStatementResults = (output, context) => {
828
+ const de_SqlStatementResults = (output, context) => {
835
829
  const retVal = (output || [])
836
830
  .filter((e) => e != null)
837
831
  .map((entry) => {
838
832
  if (entry === null) {
839
833
  return null;
840
834
  }
841
- return deserializeAws_restJson1SqlStatementResult(entry, context);
835
+ return de_SqlStatementResult(entry, context);
842
836
  });
843
837
  return retVal;
844
838
  };
845
- const deserializeAws_restJson1StringArray = (output, context) => {
839
+ const de_StringArray = (output, context) => {
846
840
  const retVal = (output || [])
847
841
  .filter((e) => e != null)
848
842
  .map((entry) => {
@@ -853,31 +847,31 @@ const deserializeAws_restJson1StringArray = (output, context) => {
853
847
  });
854
848
  return retVal;
855
849
  };
856
- const deserializeAws_restJson1StructValue = (output, context) => {
850
+ const de_StructValue = (output, context) => {
857
851
  return {
858
- attributes: output.attributes != null ? deserializeAws_restJson1ArrayValueList(output.attributes, context) : undefined,
852
+ attributes: output.attributes != null ? de_ArrayValueList(output.attributes, context) : undefined,
859
853
  };
860
854
  };
861
- const deserializeAws_restJson1UpdateResult = (output, context) => {
855
+ const de_UpdateResult = (output, context) => {
862
856
  return {
863
- generatedFields: output.generatedFields != null ? deserializeAws_restJson1FieldList(output.generatedFields, context) : undefined,
857
+ generatedFields: output.generatedFields != null ? de_FieldList(output.generatedFields, context) : undefined,
864
858
  };
865
859
  };
866
- const deserializeAws_restJson1UpdateResults = (output, context) => {
860
+ const de_UpdateResults = (output, context) => {
867
861
  const retVal = (output || [])
868
862
  .filter((e) => e != null)
869
863
  .map((entry) => {
870
864
  if (entry === null) {
871
865
  return null;
872
866
  }
873
- return deserializeAws_restJson1UpdateResult(entry, context);
867
+ return de_UpdateResult(entry, context);
874
868
  });
875
869
  return retVal;
876
870
  };
877
- const deserializeAws_restJson1Value = (output, context) => {
871
+ const de_Value = (output, context) => {
878
872
  if (output.arrayValues != null) {
879
873
  return {
880
- arrayValues: deserializeAws_restJson1ArrayValueList(output.arrayValues, context),
874
+ arrayValues: de_ArrayValueList(output.arrayValues, context),
881
875
  };
882
876
  }
883
877
  if (__expectLong(output.bigIntValue) !== undefined) {
@@ -908,7 +902,7 @@ const deserializeAws_restJson1Value = (output, context) => {
908
902
  }
909
903
  if (output.structValue != null) {
910
904
  return {
911
- structValue: deserializeAws_restJson1StructValue(output.structValue, context),
905
+ structValue: de_StructValue(output.structValue, context),
912
906
  };
913
907
  }
914
908
  return { $unknown: Object.entries(output)[0] };