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