@aws-sdk/client-cognito-sync 3.303.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist-cjs/commands/BulkPublishCommand.js +2 -2
  2. package/dist-cjs/commands/DeleteDatasetCommand.js +2 -2
  3. package/dist-cjs/commands/DescribeDatasetCommand.js +2 -2
  4. package/dist-cjs/commands/DescribeIdentityPoolUsageCommand.js +2 -2
  5. package/dist-cjs/commands/DescribeIdentityUsageCommand.js +2 -2
  6. package/dist-cjs/commands/GetBulkPublishDetailsCommand.js +2 -2
  7. package/dist-cjs/commands/GetCognitoEventsCommand.js +2 -2
  8. package/dist-cjs/commands/GetIdentityPoolConfigurationCommand.js +2 -2
  9. package/dist-cjs/commands/ListDatasetsCommand.js +2 -2
  10. package/dist-cjs/commands/ListIdentityPoolUsageCommand.js +2 -2
  11. package/dist-cjs/commands/ListRecordsCommand.js +2 -2
  12. package/dist-cjs/commands/RegisterDeviceCommand.js +2 -2
  13. package/dist-cjs/commands/SetCognitoEventsCommand.js +2 -2
  14. package/dist-cjs/commands/SetIdentityPoolConfigurationCommand.js +2 -2
  15. package/dist-cjs/commands/SubscribeToDatasetCommand.js +2 -2
  16. package/dist-cjs/commands/UnsubscribeFromDatasetCommand.js +2 -2
  17. package/dist-cjs/commands/UpdateRecordsCommand.js +2 -2
  18. package/dist-cjs/protocols/Aws_restJson1.js +249 -257
  19. package/dist-es/commands/BulkPublishCommand.js +3 -3
  20. package/dist-es/commands/DeleteDatasetCommand.js +3 -3
  21. package/dist-es/commands/DescribeDatasetCommand.js +3 -3
  22. package/dist-es/commands/DescribeIdentityPoolUsageCommand.js +3 -3
  23. package/dist-es/commands/DescribeIdentityUsageCommand.js +3 -3
  24. package/dist-es/commands/GetBulkPublishDetailsCommand.js +3 -3
  25. package/dist-es/commands/GetCognitoEventsCommand.js +3 -3
  26. package/dist-es/commands/GetIdentityPoolConfigurationCommand.js +3 -3
  27. package/dist-es/commands/ListDatasetsCommand.js +3 -3
  28. package/dist-es/commands/ListIdentityPoolUsageCommand.js +3 -3
  29. package/dist-es/commands/ListRecordsCommand.js +3 -3
  30. package/dist-es/commands/RegisterDeviceCommand.js +3 -3
  31. package/dist-es/commands/SetCognitoEventsCommand.js +3 -3
  32. package/dist-es/commands/SetIdentityPoolConfigurationCommand.js +3 -3
  33. package/dist-es/commands/SubscribeToDatasetCommand.js +3 -3
  34. package/dist-es/commands/UnsubscribeFromDatasetCommand.js +3 -3
  35. package/dist-es/commands/UpdateRecordsCommand.js +3 -3
  36. package/dist-es/protocols/Aws_restJson1.js +214 -222
  37. package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
  39. package/package.json +29 -29
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateRecordsCommand = exports.deserializeAws_restJson1UnsubscribeFromDatasetCommand = exports.deserializeAws_restJson1SubscribeToDatasetCommand = exports.deserializeAws_restJson1SetIdentityPoolConfigurationCommand = exports.deserializeAws_restJson1SetCognitoEventsCommand = exports.deserializeAws_restJson1RegisterDeviceCommand = exports.deserializeAws_restJson1ListRecordsCommand = exports.deserializeAws_restJson1ListIdentityPoolUsageCommand = exports.deserializeAws_restJson1ListDatasetsCommand = exports.deserializeAws_restJson1GetIdentityPoolConfigurationCommand = exports.deserializeAws_restJson1GetCognitoEventsCommand = exports.deserializeAws_restJson1GetBulkPublishDetailsCommand = exports.deserializeAws_restJson1DescribeIdentityUsageCommand = exports.deserializeAws_restJson1DescribeIdentityPoolUsageCommand = exports.deserializeAws_restJson1DescribeDatasetCommand = exports.deserializeAws_restJson1DeleteDatasetCommand = exports.deserializeAws_restJson1BulkPublishCommand = exports.serializeAws_restJson1UpdateRecordsCommand = exports.serializeAws_restJson1UnsubscribeFromDatasetCommand = exports.serializeAws_restJson1SubscribeToDatasetCommand = exports.serializeAws_restJson1SetIdentityPoolConfigurationCommand = exports.serializeAws_restJson1SetCognitoEventsCommand = exports.serializeAws_restJson1RegisterDeviceCommand = exports.serializeAws_restJson1ListRecordsCommand = exports.serializeAws_restJson1ListIdentityPoolUsageCommand = exports.serializeAws_restJson1ListDatasetsCommand = exports.serializeAws_restJson1GetIdentityPoolConfigurationCommand = exports.serializeAws_restJson1GetCognitoEventsCommand = exports.serializeAws_restJson1GetBulkPublishDetailsCommand = exports.serializeAws_restJson1DescribeIdentityUsageCommand = exports.serializeAws_restJson1DescribeIdentityPoolUsageCommand = exports.serializeAws_restJson1DescribeDatasetCommand = exports.serializeAws_restJson1DeleteDatasetCommand = exports.serializeAws_restJson1BulkPublishCommand = void 0;
3
+ exports.de_UpdateRecordsCommand = exports.de_UnsubscribeFromDatasetCommand = exports.de_SubscribeToDatasetCommand = exports.de_SetIdentityPoolConfigurationCommand = exports.de_SetCognitoEventsCommand = exports.de_RegisterDeviceCommand = exports.de_ListRecordsCommand = exports.de_ListIdentityPoolUsageCommand = exports.de_ListDatasetsCommand = exports.de_GetIdentityPoolConfigurationCommand = exports.de_GetCognitoEventsCommand = exports.de_GetBulkPublishDetailsCommand = exports.de_DescribeIdentityUsageCommand = exports.de_DescribeIdentityPoolUsageCommand = exports.de_DescribeDatasetCommand = exports.de_DeleteDatasetCommand = exports.de_BulkPublishCommand = exports.se_UpdateRecordsCommand = exports.se_UnsubscribeFromDatasetCommand = exports.se_SubscribeToDatasetCommand = exports.se_SetIdentityPoolConfigurationCommand = exports.se_SetCognitoEventsCommand = exports.se_RegisterDeviceCommand = exports.se_ListRecordsCommand = exports.se_ListIdentityPoolUsageCommand = exports.se_ListDatasetsCommand = exports.se_GetIdentityPoolConfigurationCommand = exports.se_GetCognitoEventsCommand = exports.se_GetBulkPublishDetailsCommand = exports.se_DescribeIdentityUsageCommand = exports.se_DescribeIdentityPoolUsageCommand = exports.se_DescribeDatasetCommand = exports.se_DeleteDatasetCommand = exports.se_BulkPublishCommand = 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 CognitoSyncServiceException_1 = require("../models/CognitoSyncServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1BulkPublishCommand = async (input, context) => {
8
+ const se_BulkPublishCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {};
11
11
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -22,8 +22,8 @@ const serializeAws_restJson1BulkPublishCommand = async (input, context) => {
22
22
  body,
23
23
  });
24
24
  };
25
- exports.serializeAws_restJson1BulkPublishCommand = serializeAws_restJson1BulkPublishCommand;
26
- const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
25
+ exports.se_BulkPublishCommand = se_BulkPublishCommand;
26
+ const se_DeleteDatasetCommand = async (input, context) => {
27
27
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
28
28
  const headers = {};
29
29
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -42,8 +42,8 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
42
42
  body,
43
43
  });
44
44
  };
45
- exports.serializeAws_restJson1DeleteDatasetCommand = serializeAws_restJson1DeleteDatasetCommand;
46
- const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
45
+ exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
46
+ const se_DescribeDatasetCommand = async (input, context) => {
47
47
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
48
48
  const headers = {};
49
49
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -62,8 +62,8 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
62
62
  body,
63
63
  });
64
64
  };
65
- exports.serializeAws_restJson1DescribeDatasetCommand = serializeAws_restJson1DescribeDatasetCommand;
66
- const serializeAws_restJson1DescribeIdentityPoolUsageCommand = async (input, context) => {
65
+ exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
66
+ const se_DescribeIdentityPoolUsageCommand = async (input, context) => {
67
67
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
68
  const headers = {};
69
69
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools/{IdentityPoolId}";
@@ -79,8 +79,8 @@ const serializeAws_restJson1DescribeIdentityPoolUsageCommand = async (input, con
79
79
  body,
80
80
  });
81
81
  };
82
- exports.serializeAws_restJson1DescribeIdentityPoolUsageCommand = serializeAws_restJson1DescribeIdentityPoolUsageCommand;
83
- const serializeAws_restJson1DescribeIdentityUsageCommand = async (input, context) => {
82
+ exports.se_DescribeIdentityPoolUsageCommand = se_DescribeIdentityPoolUsageCommand;
83
+ const se_DescribeIdentityUsageCommand = async (input, context) => {
84
84
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
85
  const headers = {};
86
86
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -98,8 +98,8 @@ const serializeAws_restJson1DescribeIdentityUsageCommand = async (input, context
98
98
  body,
99
99
  });
100
100
  };
101
- exports.serializeAws_restJson1DescribeIdentityUsageCommand = serializeAws_restJson1DescribeIdentityUsageCommand;
102
- const serializeAws_restJson1GetBulkPublishDetailsCommand = async (input, context) => {
101
+ exports.se_DescribeIdentityUsageCommand = se_DescribeIdentityUsageCommand;
102
+ const se_GetBulkPublishDetailsCommand = async (input, context) => {
103
103
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
104
104
  const headers = {};
105
105
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -116,8 +116,8 @@ const serializeAws_restJson1GetBulkPublishDetailsCommand = async (input, context
116
116
  body,
117
117
  });
118
118
  };
119
- exports.serializeAws_restJson1GetBulkPublishDetailsCommand = serializeAws_restJson1GetBulkPublishDetailsCommand;
120
- const serializeAws_restJson1GetCognitoEventsCommand = async (input, context) => {
119
+ exports.se_GetBulkPublishDetailsCommand = se_GetBulkPublishDetailsCommand;
120
+ const se_GetCognitoEventsCommand = async (input, context) => {
121
121
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
122
  const headers = {};
123
123
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools/{IdentityPoolId}/events";
@@ -133,8 +133,8 @@ const serializeAws_restJson1GetCognitoEventsCommand = async (input, context) =>
133
133
  body,
134
134
  });
135
135
  };
136
- exports.serializeAws_restJson1GetCognitoEventsCommand = serializeAws_restJson1GetCognitoEventsCommand;
137
- const serializeAws_restJson1GetIdentityPoolConfigurationCommand = async (input, context) => {
136
+ exports.se_GetCognitoEventsCommand = se_GetCognitoEventsCommand;
137
+ const se_GetIdentityPoolConfigurationCommand = async (input, context) => {
138
138
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
139
  const headers = {};
140
140
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -151,8 +151,8 @@ const serializeAws_restJson1GetIdentityPoolConfigurationCommand = async (input,
151
151
  body,
152
152
  });
153
153
  };
154
- exports.serializeAws_restJson1GetIdentityPoolConfigurationCommand = serializeAws_restJson1GetIdentityPoolConfigurationCommand;
155
- const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
154
+ exports.se_GetIdentityPoolConfigurationCommand = se_GetIdentityPoolConfigurationCommand;
155
+ const se_ListDatasetsCommand = async (input, context) => {
156
156
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
157
  const headers = {};
158
158
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -175,8 +175,8 @@ const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
175
175
  body,
176
176
  });
177
177
  };
178
- exports.serializeAws_restJson1ListDatasetsCommand = serializeAws_restJson1ListDatasetsCommand;
179
- const serializeAws_restJson1ListIdentityPoolUsageCommand = async (input, context) => {
178
+ exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
179
+ const se_ListIdentityPoolUsageCommand = async (input, context) => {
180
180
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
181
  const headers = {};
182
182
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identitypools";
@@ -196,8 +196,8 @@ const serializeAws_restJson1ListIdentityPoolUsageCommand = async (input, context
196
196
  body,
197
197
  });
198
198
  };
199
- exports.serializeAws_restJson1ListIdentityPoolUsageCommand = serializeAws_restJson1ListIdentityPoolUsageCommand;
200
- const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
199
+ exports.se_ListIdentityPoolUsageCommand = se_ListIdentityPoolUsageCommand;
200
+ const se_ListRecordsCommand = async (input, context) => {
201
201
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
202
  const headers = {};
203
203
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -223,8 +223,8 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
223
223
  body,
224
224
  });
225
225
  };
226
- exports.serializeAws_restJson1ListRecordsCommand = serializeAws_restJson1ListRecordsCommand;
227
- const serializeAws_restJson1RegisterDeviceCommand = async (input, context) => {
226
+ exports.se_ListRecordsCommand = se_ListRecordsCommand;
227
+ const se_RegisterDeviceCommand = async (input, context) => {
228
228
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
229
229
  const headers = {
230
230
  "content-type": "application/json",
@@ -248,8 +248,8 @@ const serializeAws_restJson1RegisterDeviceCommand = async (input, context) => {
248
248
  body,
249
249
  });
250
250
  };
251
- exports.serializeAws_restJson1RegisterDeviceCommand = serializeAws_restJson1RegisterDeviceCommand;
252
- const serializeAws_restJson1SetCognitoEventsCommand = async (input, context) => {
251
+ exports.se_RegisterDeviceCommand = se_RegisterDeviceCommand;
252
+ const se_SetCognitoEventsCommand = async (input, context) => {
253
253
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
254
254
  const headers = {
255
255
  "content-type": "application/json",
@@ -258,7 +258,7 @@ const serializeAws_restJson1SetCognitoEventsCommand = async (input, context) =>
258
258
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
259
259
  let body;
260
260
  body = JSON.stringify({
261
- ...(input.Events != null && { Events: serializeAws_restJson1Events(input.Events, context) }),
261
+ ...(input.Events != null && { Events: se_Events(input.Events, context) }),
262
262
  });
263
263
  return new protocol_http_1.HttpRequest({
264
264
  protocol,
@@ -270,8 +270,8 @@ const serializeAws_restJson1SetCognitoEventsCommand = async (input, context) =>
270
270
  body,
271
271
  });
272
272
  };
273
- exports.serializeAws_restJson1SetCognitoEventsCommand = serializeAws_restJson1SetCognitoEventsCommand;
274
- const serializeAws_restJson1SetIdentityPoolConfigurationCommand = async (input, context) => {
273
+ exports.se_SetCognitoEventsCommand = se_SetCognitoEventsCommand;
274
+ const se_SetIdentityPoolConfigurationCommand = async (input, context) => {
275
275
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
276
  const headers = {
277
277
  "content-type": "application/json",
@@ -281,10 +281,8 @@ const serializeAws_restJson1SetIdentityPoolConfigurationCommand = async (input,
281
281
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IdentityPoolId", () => input.IdentityPoolId, "{IdentityPoolId}", false);
282
282
  let body;
283
283
  body = JSON.stringify({
284
- ...(input.CognitoStreams != null && {
285
- CognitoStreams: serializeAws_restJson1CognitoStreams(input.CognitoStreams, context),
286
- }),
287
- ...(input.PushSync != null && { PushSync: serializeAws_restJson1PushSync(input.PushSync, context) }),
284
+ ...(input.CognitoStreams != null && { CognitoStreams: se_CognitoStreams(input.CognitoStreams, context) }),
285
+ ...(input.PushSync != null && { PushSync: se_PushSync(input.PushSync, context) }),
288
286
  });
289
287
  return new protocol_http_1.HttpRequest({
290
288
  protocol,
@@ -296,8 +294,8 @@ const serializeAws_restJson1SetIdentityPoolConfigurationCommand = async (input,
296
294
  body,
297
295
  });
298
296
  };
299
- exports.serializeAws_restJson1SetIdentityPoolConfigurationCommand = serializeAws_restJson1SetIdentityPoolConfigurationCommand;
300
- const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) => {
297
+ exports.se_SetIdentityPoolConfigurationCommand = se_SetIdentityPoolConfigurationCommand;
298
+ const se_SubscribeToDatasetCommand = async (input, context) => {
301
299
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
302
300
  const headers = {};
303
301
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -317,8 +315,8 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
317
315
  body,
318
316
  });
319
317
  };
320
- exports.serializeAws_restJson1SubscribeToDatasetCommand = serializeAws_restJson1SubscribeToDatasetCommand;
321
- const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, context) => {
318
+ exports.se_SubscribeToDatasetCommand = se_SubscribeToDatasetCommand;
319
+ const se_UnsubscribeFromDatasetCommand = async (input, context) => {
322
320
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
323
321
  const headers = {};
324
322
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -338,8 +336,8 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
338
336
  body,
339
337
  });
340
338
  };
341
- exports.serializeAws_restJson1UnsubscribeFromDatasetCommand = serializeAws_restJson1UnsubscribeFromDatasetCommand;
342
- const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
339
+ exports.se_UnsubscribeFromDatasetCommand = se_UnsubscribeFromDatasetCommand;
340
+ const se_UpdateRecordsCommand = async (input, context) => {
343
341
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
342
  const headers = map({}, isSerializableHeaderValue, {
345
343
  "content-type": "application/json",
@@ -353,9 +351,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
353
351
  let body;
354
352
  body = JSON.stringify({
355
353
  ...(input.DeviceId != null && { DeviceId: input.DeviceId }),
356
- ...(input.RecordPatches != null && {
357
- RecordPatches: serializeAws_restJson1RecordPatchList(input.RecordPatches, context),
358
- }),
354
+ ...(input.RecordPatches != null && { RecordPatches: se_RecordPatchList(input.RecordPatches, context) }),
359
355
  ...(input.SyncSessionToken != null && { SyncSessionToken: input.SyncSessionToken }),
360
356
  });
361
357
  return new protocol_http_1.HttpRequest({
@@ -368,10 +364,10 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
368
364
  body,
369
365
  });
370
366
  };
371
- exports.serializeAws_restJson1UpdateRecordsCommand = serializeAws_restJson1UpdateRecordsCommand;
372
- const deserializeAws_restJson1BulkPublishCommand = async (output, context) => {
367
+ exports.se_UpdateRecordsCommand = se_UpdateRecordsCommand;
368
+ const de_BulkPublishCommand = async (output, context) => {
373
369
  if (output.statusCode !== 200 && output.statusCode >= 300) {
374
- return deserializeAws_restJson1BulkPublishCommandError(output, context);
370
+ return de_BulkPublishCommandError(output, context);
375
371
  }
376
372
  const contents = map({
377
373
  $metadata: deserializeMetadata(output),
@@ -382,8 +378,8 @@ const deserializeAws_restJson1BulkPublishCommand = async (output, context) => {
382
378
  }
383
379
  return contents;
384
380
  };
385
- exports.deserializeAws_restJson1BulkPublishCommand = deserializeAws_restJson1BulkPublishCommand;
386
- const deserializeAws_restJson1BulkPublishCommandError = async (output, context) => {
381
+ exports.de_BulkPublishCommand = de_BulkPublishCommand;
382
+ const de_BulkPublishCommandError = async (output, context) => {
387
383
  const parsedOutput = {
388
384
  ...output,
389
385
  body: await parseErrorBody(output.body, context),
@@ -392,22 +388,22 @@ const deserializeAws_restJson1BulkPublishCommandError = async (output, context)
392
388
  switch (errorCode) {
393
389
  case "AlreadyStreamedException":
394
390
  case "com.amazonaws.cognitosync#AlreadyStreamedException":
395
- throw await deserializeAws_restJson1AlreadyStreamedExceptionResponse(parsedOutput, context);
391
+ throw await de_AlreadyStreamedExceptionRes(parsedOutput, context);
396
392
  case "DuplicateRequestException":
397
393
  case "com.amazonaws.cognitosync#DuplicateRequestException":
398
- throw await deserializeAws_restJson1DuplicateRequestExceptionResponse(parsedOutput, context);
394
+ throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
399
395
  case "InternalErrorException":
400
396
  case "com.amazonaws.cognitosync#InternalErrorException":
401
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
397
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
402
398
  case "InvalidParameterException":
403
399
  case "com.amazonaws.cognitosync#InvalidParameterException":
404
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
400
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
405
401
  case "NotAuthorizedException":
406
402
  case "com.amazonaws.cognitosync#NotAuthorizedException":
407
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
403
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
408
404
  case "ResourceNotFoundException":
409
405
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
410
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
406
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
411
407
  default:
412
408
  const parsedBody = parsedOutput.body;
413
409
  (0, smithy_client_1.throwDefaultError)({
@@ -418,21 +414,21 @@ const deserializeAws_restJson1BulkPublishCommandError = async (output, context)
418
414
  });
419
415
  }
420
416
  };
421
- const deserializeAws_restJson1DeleteDatasetCommand = async (output, context) => {
417
+ const de_DeleteDatasetCommand = async (output, context) => {
422
418
  if (output.statusCode !== 200 && output.statusCode >= 300) {
423
- return deserializeAws_restJson1DeleteDatasetCommandError(output, context);
419
+ return de_DeleteDatasetCommandError(output, context);
424
420
  }
425
421
  const contents = map({
426
422
  $metadata: deserializeMetadata(output),
427
423
  });
428
424
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
429
425
  if (data.Dataset != null) {
430
- contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
426
+ contents.Dataset = de_Dataset(data.Dataset, context);
431
427
  }
432
428
  return contents;
433
429
  };
434
- exports.deserializeAws_restJson1DeleteDatasetCommand = deserializeAws_restJson1DeleteDatasetCommand;
435
- const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context) => {
430
+ exports.de_DeleteDatasetCommand = de_DeleteDatasetCommand;
431
+ const de_DeleteDatasetCommandError = async (output, context) => {
436
432
  const parsedOutput = {
437
433
  ...output,
438
434
  body: await parseErrorBody(output.body, context),
@@ -441,22 +437,22 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
441
437
  switch (errorCode) {
442
438
  case "InternalErrorException":
443
439
  case "com.amazonaws.cognitosync#InternalErrorException":
444
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
440
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
445
441
  case "InvalidParameterException":
446
442
  case "com.amazonaws.cognitosync#InvalidParameterException":
447
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
443
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
448
444
  case "NotAuthorizedException":
449
445
  case "com.amazonaws.cognitosync#NotAuthorizedException":
450
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
446
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
451
447
  case "ResourceConflictException":
452
448
  case "com.amazonaws.cognitosync#ResourceConflictException":
453
- throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
449
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
454
450
  case "ResourceNotFoundException":
455
451
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
456
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
452
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
457
453
  case "TooManyRequestsException":
458
454
  case "com.amazonaws.cognitosync#TooManyRequestsException":
459
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
455
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
460
456
  default:
461
457
  const parsedBody = parsedOutput.body;
462
458
  (0, smithy_client_1.throwDefaultError)({
@@ -467,21 +463,21 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
467
463
  });
468
464
  }
469
465
  };
470
- const deserializeAws_restJson1DescribeDatasetCommand = async (output, context) => {
466
+ const de_DescribeDatasetCommand = async (output, context) => {
471
467
  if (output.statusCode !== 200 && output.statusCode >= 300) {
472
- return deserializeAws_restJson1DescribeDatasetCommandError(output, context);
468
+ return de_DescribeDatasetCommandError(output, context);
473
469
  }
474
470
  const contents = map({
475
471
  $metadata: deserializeMetadata(output),
476
472
  });
477
473
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
478
474
  if (data.Dataset != null) {
479
- contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
475
+ contents.Dataset = de_Dataset(data.Dataset, context);
480
476
  }
481
477
  return contents;
482
478
  };
483
- exports.deserializeAws_restJson1DescribeDatasetCommand = deserializeAws_restJson1DescribeDatasetCommand;
484
- const deserializeAws_restJson1DescribeDatasetCommandError = async (output, context) => {
479
+ exports.de_DescribeDatasetCommand = de_DescribeDatasetCommand;
480
+ const de_DescribeDatasetCommandError = async (output, context) => {
485
481
  const parsedOutput = {
486
482
  ...output,
487
483
  body: await parseErrorBody(output.body, context),
@@ -490,19 +486,19 @@ const deserializeAws_restJson1DescribeDatasetCommandError = async (output, conte
490
486
  switch (errorCode) {
491
487
  case "InternalErrorException":
492
488
  case "com.amazonaws.cognitosync#InternalErrorException":
493
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
489
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
494
490
  case "InvalidParameterException":
495
491
  case "com.amazonaws.cognitosync#InvalidParameterException":
496
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
492
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
497
493
  case "NotAuthorizedException":
498
494
  case "com.amazonaws.cognitosync#NotAuthorizedException":
499
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
495
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
500
496
  case "ResourceNotFoundException":
501
497
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
502
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
498
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
503
499
  case "TooManyRequestsException":
504
500
  case "com.amazonaws.cognitosync#TooManyRequestsException":
505
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
501
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
506
502
  default:
507
503
  const parsedBody = parsedOutput.body;
508
504
  (0, smithy_client_1.throwDefaultError)({
@@ -513,21 +509,21 @@ const deserializeAws_restJson1DescribeDatasetCommandError = async (output, conte
513
509
  });
514
510
  }
515
511
  };
516
- const deserializeAws_restJson1DescribeIdentityPoolUsageCommand = async (output, context) => {
512
+ const de_DescribeIdentityPoolUsageCommand = async (output, context) => {
517
513
  if (output.statusCode !== 200 && output.statusCode >= 300) {
518
- return deserializeAws_restJson1DescribeIdentityPoolUsageCommandError(output, context);
514
+ return de_DescribeIdentityPoolUsageCommandError(output, context);
519
515
  }
520
516
  const contents = map({
521
517
  $metadata: deserializeMetadata(output),
522
518
  });
523
519
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
524
520
  if (data.IdentityPoolUsage != null) {
525
- contents.IdentityPoolUsage = deserializeAws_restJson1IdentityPoolUsage(data.IdentityPoolUsage, context);
521
+ contents.IdentityPoolUsage = de_IdentityPoolUsage(data.IdentityPoolUsage, context);
526
522
  }
527
523
  return contents;
528
524
  };
529
- exports.deserializeAws_restJson1DescribeIdentityPoolUsageCommand = deserializeAws_restJson1DescribeIdentityPoolUsageCommand;
530
- const deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = async (output, context) => {
525
+ exports.de_DescribeIdentityPoolUsageCommand = de_DescribeIdentityPoolUsageCommand;
526
+ const de_DescribeIdentityPoolUsageCommandError = async (output, context) => {
531
527
  const parsedOutput = {
532
528
  ...output,
533
529
  body: await parseErrorBody(output.body, context),
@@ -536,19 +532,19 @@ const deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = async (out
536
532
  switch (errorCode) {
537
533
  case "InternalErrorException":
538
534
  case "com.amazonaws.cognitosync#InternalErrorException":
539
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
535
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
540
536
  case "InvalidParameterException":
541
537
  case "com.amazonaws.cognitosync#InvalidParameterException":
542
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
538
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
543
539
  case "NotAuthorizedException":
544
540
  case "com.amazonaws.cognitosync#NotAuthorizedException":
545
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
541
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
546
542
  case "ResourceNotFoundException":
547
543
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
548
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
544
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
549
545
  case "TooManyRequestsException":
550
546
  case "com.amazonaws.cognitosync#TooManyRequestsException":
551
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
547
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
552
548
  default:
553
549
  const parsedBody = parsedOutput.body;
554
550
  (0, smithy_client_1.throwDefaultError)({
@@ -559,21 +555,21 @@ const deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = async (out
559
555
  });
560
556
  }
561
557
  };
562
- const deserializeAws_restJson1DescribeIdentityUsageCommand = async (output, context) => {
558
+ const de_DescribeIdentityUsageCommand = async (output, context) => {
563
559
  if (output.statusCode !== 200 && output.statusCode >= 300) {
564
- return deserializeAws_restJson1DescribeIdentityUsageCommandError(output, context);
560
+ return de_DescribeIdentityUsageCommandError(output, context);
565
561
  }
566
562
  const contents = map({
567
563
  $metadata: deserializeMetadata(output),
568
564
  });
569
565
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
570
566
  if (data.IdentityUsage != null) {
571
- contents.IdentityUsage = deserializeAws_restJson1IdentityUsage(data.IdentityUsage, context);
567
+ contents.IdentityUsage = de_IdentityUsage(data.IdentityUsage, context);
572
568
  }
573
569
  return contents;
574
570
  };
575
- exports.deserializeAws_restJson1DescribeIdentityUsageCommand = deserializeAws_restJson1DescribeIdentityUsageCommand;
576
- const deserializeAws_restJson1DescribeIdentityUsageCommandError = async (output, context) => {
571
+ exports.de_DescribeIdentityUsageCommand = de_DescribeIdentityUsageCommand;
572
+ const de_DescribeIdentityUsageCommandError = async (output, context) => {
577
573
  const parsedOutput = {
578
574
  ...output,
579
575
  body: await parseErrorBody(output.body, context),
@@ -582,19 +578,19 @@ const deserializeAws_restJson1DescribeIdentityUsageCommandError = async (output,
582
578
  switch (errorCode) {
583
579
  case "InternalErrorException":
584
580
  case "com.amazonaws.cognitosync#InternalErrorException":
585
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
581
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
586
582
  case "InvalidParameterException":
587
583
  case "com.amazonaws.cognitosync#InvalidParameterException":
588
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
584
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
589
585
  case "NotAuthorizedException":
590
586
  case "com.amazonaws.cognitosync#NotAuthorizedException":
591
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
587
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
592
588
  case "ResourceNotFoundException":
593
589
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
594
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
590
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
595
591
  case "TooManyRequestsException":
596
592
  case "com.amazonaws.cognitosync#TooManyRequestsException":
597
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
593
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
598
594
  default:
599
595
  const parsedBody = parsedOutput.body;
600
596
  (0, smithy_client_1.throwDefaultError)({
@@ -605,9 +601,9 @@ const deserializeAws_restJson1DescribeIdentityUsageCommandError = async (output,
605
601
  });
606
602
  }
607
603
  };
608
- const deserializeAws_restJson1GetBulkPublishDetailsCommand = async (output, context) => {
604
+ const de_GetBulkPublishDetailsCommand = async (output, context) => {
609
605
  if (output.statusCode !== 200 && output.statusCode >= 300) {
610
- return deserializeAws_restJson1GetBulkPublishDetailsCommandError(output, context);
606
+ return de_GetBulkPublishDetailsCommandError(output, context);
611
607
  }
612
608
  const contents = map({
613
609
  $metadata: deserializeMetadata(output),
@@ -630,8 +626,8 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommand = async (output, cont
630
626
  }
631
627
  return contents;
632
628
  };
633
- exports.deserializeAws_restJson1GetBulkPublishDetailsCommand = deserializeAws_restJson1GetBulkPublishDetailsCommand;
634
- const deserializeAws_restJson1GetBulkPublishDetailsCommandError = async (output, context) => {
629
+ exports.de_GetBulkPublishDetailsCommand = de_GetBulkPublishDetailsCommand;
630
+ const de_GetBulkPublishDetailsCommandError = async (output, context) => {
635
631
  const parsedOutput = {
636
632
  ...output,
637
633
  body: await parseErrorBody(output.body, context),
@@ -640,16 +636,16 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommandError = async (output,
640
636
  switch (errorCode) {
641
637
  case "InternalErrorException":
642
638
  case "com.amazonaws.cognitosync#InternalErrorException":
643
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
639
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
644
640
  case "InvalidParameterException":
645
641
  case "com.amazonaws.cognitosync#InvalidParameterException":
646
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
642
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
647
643
  case "NotAuthorizedException":
648
644
  case "com.amazonaws.cognitosync#NotAuthorizedException":
649
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
645
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
650
646
  case "ResourceNotFoundException":
651
647
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
652
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
648
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
653
649
  default:
654
650
  const parsedBody = parsedOutput.body;
655
651
  (0, smithy_client_1.throwDefaultError)({
@@ -660,21 +656,21 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommandError = async (output,
660
656
  });
661
657
  }
662
658
  };
663
- const deserializeAws_restJson1GetCognitoEventsCommand = async (output, context) => {
659
+ const de_GetCognitoEventsCommand = async (output, context) => {
664
660
  if (output.statusCode !== 200 && output.statusCode >= 300) {
665
- return deserializeAws_restJson1GetCognitoEventsCommandError(output, context);
661
+ return de_GetCognitoEventsCommandError(output, context);
666
662
  }
667
663
  const contents = map({
668
664
  $metadata: deserializeMetadata(output),
669
665
  });
670
666
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
671
667
  if (data.Events != null) {
672
- contents.Events = deserializeAws_restJson1Events(data.Events, context);
668
+ contents.Events = de_Events(data.Events, context);
673
669
  }
674
670
  return contents;
675
671
  };
676
- exports.deserializeAws_restJson1GetCognitoEventsCommand = deserializeAws_restJson1GetCognitoEventsCommand;
677
- const deserializeAws_restJson1GetCognitoEventsCommandError = async (output, context) => {
672
+ exports.de_GetCognitoEventsCommand = de_GetCognitoEventsCommand;
673
+ const de_GetCognitoEventsCommandError = async (output, context) => {
678
674
  const parsedOutput = {
679
675
  ...output,
680
676
  body: await parseErrorBody(output.body, context),
@@ -683,19 +679,19 @@ const deserializeAws_restJson1GetCognitoEventsCommandError = async (output, cont
683
679
  switch (errorCode) {
684
680
  case "InternalErrorException":
685
681
  case "com.amazonaws.cognitosync#InternalErrorException":
686
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
682
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
687
683
  case "InvalidParameterException":
688
684
  case "com.amazonaws.cognitosync#InvalidParameterException":
689
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
685
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
690
686
  case "NotAuthorizedException":
691
687
  case "com.amazonaws.cognitosync#NotAuthorizedException":
692
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
688
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
693
689
  case "ResourceNotFoundException":
694
690
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
695
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
691
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
696
692
  case "TooManyRequestsException":
697
693
  case "com.amazonaws.cognitosync#TooManyRequestsException":
698
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
694
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
699
695
  default:
700
696
  const parsedBody = parsedOutput.body;
701
697
  (0, smithy_client_1.throwDefaultError)({
@@ -706,27 +702,27 @@ const deserializeAws_restJson1GetCognitoEventsCommandError = async (output, cont
706
702
  });
707
703
  }
708
704
  };
709
- const deserializeAws_restJson1GetIdentityPoolConfigurationCommand = async (output, context) => {
705
+ const de_GetIdentityPoolConfigurationCommand = async (output, context) => {
710
706
  if (output.statusCode !== 200 && output.statusCode >= 300) {
711
- return deserializeAws_restJson1GetIdentityPoolConfigurationCommandError(output, context);
707
+ return de_GetIdentityPoolConfigurationCommandError(output, context);
712
708
  }
713
709
  const contents = map({
714
710
  $metadata: deserializeMetadata(output),
715
711
  });
716
712
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
717
713
  if (data.CognitoStreams != null) {
718
- contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
714
+ contents.CognitoStreams = de_CognitoStreams(data.CognitoStreams, context);
719
715
  }
720
716
  if (data.IdentityPoolId != null) {
721
717
  contents.IdentityPoolId = (0, smithy_client_1.expectString)(data.IdentityPoolId);
722
718
  }
723
719
  if (data.PushSync != null) {
724
- contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
720
+ contents.PushSync = de_PushSync(data.PushSync, context);
725
721
  }
726
722
  return contents;
727
723
  };
728
- exports.deserializeAws_restJson1GetIdentityPoolConfigurationCommand = deserializeAws_restJson1GetIdentityPoolConfigurationCommand;
729
- const deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = async (output, context) => {
724
+ exports.de_GetIdentityPoolConfigurationCommand = de_GetIdentityPoolConfigurationCommand;
725
+ const de_GetIdentityPoolConfigurationCommandError = async (output, context) => {
730
726
  const parsedOutput = {
731
727
  ...output,
732
728
  body: await parseErrorBody(output.body, context),
@@ -735,19 +731,19 @@ const deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = async (
735
731
  switch (errorCode) {
736
732
  case "InternalErrorException":
737
733
  case "com.amazonaws.cognitosync#InternalErrorException":
738
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
734
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
739
735
  case "InvalidParameterException":
740
736
  case "com.amazonaws.cognitosync#InvalidParameterException":
741
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
737
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
742
738
  case "NotAuthorizedException":
743
739
  case "com.amazonaws.cognitosync#NotAuthorizedException":
744
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
740
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
745
741
  case "ResourceNotFoundException":
746
742
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
747
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
743
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
748
744
  case "TooManyRequestsException":
749
745
  case "com.amazonaws.cognitosync#TooManyRequestsException":
750
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
746
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
751
747
  default:
752
748
  const parsedBody = parsedOutput.body;
753
749
  (0, smithy_client_1.throwDefaultError)({
@@ -758,9 +754,9 @@ const deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = async (
758
754
  });
759
755
  }
760
756
  };
761
- const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
757
+ const de_ListDatasetsCommand = async (output, context) => {
762
758
  if (output.statusCode !== 200 && output.statusCode >= 300) {
763
- return deserializeAws_restJson1ListDatasetsCommandError(output, context);
759
+ return de_ListDatasetsCommandError(output, context);
764
760
  }
765
761
  const contents = map({
766
762
  $metadata: deserializeMetadata(output),
@@ -770,15 +766,15 @@ const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
770
766
  contents.Count = (0, smithy_client_1.expectInt32)(data.Count);
771
767
  }
772
768
  if (data.Datasets != null) {
773
- contents.Datasets = deserializeAws_restJson1DatasetList(data.Datasets, context);
769
+ contents.Datasets = de_DatasetList(data.Datasets, context);
774
770
  }
775
771
  if (data.NextToken != null) {
776
772
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
777
773
  }
778
774
  return contents;
779
775
  };
780
- exports.deserializeAws_restJson1ListDatasetsCommand = deserializeAws_restJson1ListDatasetsCommand;
781
- const deserializeAws_restJson1ListDatasetsCommandError = async (output, context) => {
776
+ exports.de_ListDatasetsCommand = de_ListDatasetsCommand;
777
+ const de_ListDatasetsCommandError = async (output, context) => {
782
778
  const parsedOutput = {
783
779
  ...output,
784
780
  body: await parseErrorBody(output.body, context),
@@ -787,16 +783,16 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
787
783
  switch (errorCode) {
788
784
  case "InternalErrorException":
789
785
  case "com.amazonaws.cognitosync#InternalErrorException":
790
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
786
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
791
787
  case "InvalidParameterException":
792
788
  case "com.amazonaws.cognitosync#InvalidParameterException":
793
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
789
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
794
790
  case "NotAuthorizedException":
795
791
  case "com.amazonaws.cognitosync#NotAuthorizedException":
796
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
792
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
797
793
  case "TooManyRequestsException":
798
794
  case "com.amazonaws.cognitosync#TooManyRequestsException":
799
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
795
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
800
796
  default:
801
797
  const parsedBody = parsedOutput.body;
802
798
  (0, smithy_client_1.throwDefaultError)({
@@ -807,9 +803,9 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
807
803
  });
808
804
  }
809
805
  };
810
- const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, context) => {
806
+ const de_ListIdentityPoolUsageCommand = async (output, context) => {
811
807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
812
- return deserializeAws_restJson1ListIdentityPoolUsageCommandError(output, context);
808
+ return de_ListIdentityPoolUsageCommandError(output, context);
813
809
  }
814
810
  const contents = map({
815
811
  $metadata: deserializeMetadata(output),
@@ -819,7 +815,7 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, cont
819
815
  contents.Count = (0, smithy_client_1.expectInt32)(data.Count);
820
816
  }
821
817
  if (data.IdentityPoolUsages != null) {
822
- contents.IdentityPoolUsages = deserializeAws_restJson1IdentityPoolUsageList(data.IdentityPoolUsages, context);
818
+ contents.IdentityPoolUsages = de_IdentityPoolUsageList(data.IdentityPoolUsages, context);
823
819
  }
824
820
  if (data.MaxResults != null) {
825
821
  contents.MaxResults = (0, smithy_client_1.expectInt32)(data.MaxResults);
@@ -829,8 +825,8 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, cont
829
825
  }
830
826
  return contents;
831
827
  };
832
- exports.deserializeAws_restJson1ListIdentityPoolUsageCommand = deserializeAws_restJson1ListIdentityPoolUsageCommand;
833
- const deserializeAws_restJson1ListIdentityPoolUsageCommandError = async (output, context) => {
828
+ exports.de_ListIdentityPoolUsageCommand = de_ListIdentityPoolUsageCommand;
829
+ const de_ListIdentityPoolUsageCommandError = async (output, context) => {
834
830
  const parsedOutput = {
835
831
  ...output,
836
832
  body: await parseErrorBody(output.body, context),
@@ -839,16 +835,16 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommandError = async (output,
839
835
  switch (errorCode) {
840
836
  case "InternalErrorException":
841
837
  case "com.amazonaws.cognitosync#InternalErrorException":
842
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
838
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
843
839
  case "InvalidParameterException":
844
840
  case "com.amazonaws.cognitosync#InvalidParameterException":
845
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
841
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
846
842
  case "NotAuthorizedException":
847
843
  case "com.amazonaws.cognitosync#NotAuthorizedException":
848
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
844
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
849
845
  case "TooManyRequestsException":
850
846
  case "com.amazonaws.cognitosync#TooManyRequestsException":
851
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
847
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
852
848
  default:
853
849
  const parsedBody = parsedOutput.body;
854
850
  (0, smithy_client_1.throwDefaultError)({
@@ -859,9 +855,9 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommandError = async (output,
859
855
  });
860
856
  }
861
857
  };
862
- const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
858
+ const de_ListRecordsCommand = async (output, context) => {
863
859
  if (output.statusCode !== 200 && output.statusCode >= 300) {
864
- return deserializeAws_restJson1ListRecordsCommandError(output, context);
860
+ return de_ListRecordsCommandError(output, context);
865
861
  }
866
862
  const contents = map({
867
863
  $metadata: deserializeMetadata(output),
@@ -883,21 +879,21 @@ const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
883
879
  contents.LastModifiedBy = (0, smithy_client_1.expectString)(data.LastModifiedBy);
884
880
  }
885
881
  if (data.MergedDatasetNames != null) {
886
- contents.MergedDatasetNames = deserializeAws_restJson1MergedDatasetNameList(data.MergedDatasetNames, context);
882
+ contents.MergedDatasetNames = de_MergedDatasetNameList(data.MergedDatasetNames, context);
887
883
  }
888
884
  if (data.NextToken != null) {
889
885
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
890
886
  }
891
887
  if (data.Records != null) {
892
- contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
888
+ contents.Records = de_RecordList(data.Records, context);
893
889
  }
894
890
  if (data.SyncSessionToken != null) {
895
891
  contents.SyncSessionToken = (0, smithy_client_1.expectString)(data.SyncSessionToken);
896
892
  }
897
893
  return contents;
898
894
  };
899
- exports.deserializeAws_restJson1ListRecordsCommand = deserializeAws_restJson1ListRecordsCommand;
900
- const deserializeAws_restJson1ListRecordsCommandError = async (output, context) => {
895
+ exports.de_ListRecordsCommand = de_ListRecordsCommand;
896
+ const de_ListRecordsCommandError = async (output, context) => {
901
897
  const parsedOutput = {
902
898
  ...output,
903
899
  body: await parseErrorBody(output.body, context),
@@ -906,16 +902,16 @@ const deserializeAws_restJson1ListRecordsCommandError = async (output, context)
906
902
  switch (errorCode) {
907
903
  case "InternalErrorException":
908
904
  case "com.amazonaws.cognitosync#InternalErrorException":
909
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
905
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
910
906
  case "InvalidParameterException":
911
907
  case "com.amazonaws.cognitosync#InvalidParameterException":
912
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
908
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
913
909
  case "NotAuthorizedException":
914
910
  case "com.amazonaws.cognitosync#NotAuthorizedException":
915
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
911
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
916
912
  case "TooManyRequestsException":
917
913
  case "com.amazonaws.cognitosync#TooManyRequestsException":
918
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
914
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
919
915
  default:
920
916
  const parsedBody = parsedOutput.body;
921
917
  (0, smithy_client_1.throwDefaultError)({
@@ -926,9 +922,9 @@ const deserializeAws_restJson1ListRecordsCommandError = async (output, context)
926
922
  });
927
923
  }
928
924
  };
929
- const deserializeAws_restJson1RegisterDeviceCommand = async (output, context) => {
925
+ const de_RegisterDeviceCommand = async (output, context) => {
930
926
  if (output.statusCode !== 200 && output.statusCode >= 300) {
931
- return deserializeAws_restJson1RegisterDeviceCommandError(output, context);
927
+ return de_RegisterDeviceCommandError(output, context);
932
928
  }
933
929
  const contents = map({
934
930
  $metadata: deserializeMetadata(output),
@@ -939,8 +935,8 @@ const deserializeAws_restJson1RegisterDeviceCommand = async (output, context) =>
939
935
  }
940
936
  return contents;
941
937
  };
942
- exports.deserializeAws_restJson1RegisterDeviceCommand = deserializeAws_restJson1RegisterDeviceCommand;
943
- const deserializeAws_restJson1RegisterDeviceCommandError = async (output, context) => {
938
+ exports.de_RegisterDeviceCommand = de_RegisterDeviceCommand;
939
+ const de_RegisterDeviceCommandError = async (output, context) => {
944
940
  const parsedOutput = {
945
941
  ...output,
946
942
  body: await parseErrorBody(output.body, context),
@@ -949,22 +945,22 @@ const deserializeAws_restJson1RegisterDeviceCommandError = async (output, contex
949
945
  switch (errorCode) {
950
946
  case "InternalErrorException":
951
947
  case "com.amazonaws.cognitosync#InternalErrorException":
952
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
948
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
953
949
  case "InvalidConfigurationException":
954
950
  case "com.amazonaws.cognitosync#InvalidConfigurationException":
955
- throw await deserializeAws_restJson1InvalidConfigurationExceptionResponse(parsedOutput, context);
951
+ throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
956
952
  case "InvalidParameterException":
957
953
  case "com.amazonaws.cognitosync#InvalidParameterException":
958
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
954
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
959
955
  case "NotAuthorizedException":
960
956
  case "com.amazonaws.cognitosync#NotAuthorizedException":
961
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
957
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
962
958
  case "ResourceNotFoundException":
963
959
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
964
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
960
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
965
961
  case "TooManyRequestsException":
966
962
  case "com.amazonaws.cognitosync#TooManyRequestsException":
967
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
963
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
968
964
  default:
969
965
  const parsedBody = parsedOutput.body;
970
966
  (0, smithy_client_1.throwDefaultError)({
@@ -975,9 +971,9 @@ const deserializeAws_restJson1RegisterDeviceCommandError = async (output, contex
975
971
  });
976
972
  }
977
973
  };
978
- const deserializeAws_restJson1SetCognitoEventsCommand = async (output, context) => {
974
+ const de_SetCognitoEventsCommand = async (output, context) => {
979
975
  if (output.statusCode !== 200 && output.statusCode >= 300) {
980
- return deserializeAws_restJson1SetCognitoEventsCommandError(output, context);
976
+ return de_SetCognitoEventsCommandError(output, context);
981
977
  }
982
978
  const contents = map({
983
979
  $metadata: deserializeMetadata(output),
@@ -985,8 +981,8 @@ const deserializeAws_restJson1SetCognitoEventsCommand = async (output, context)
985
981
  await collectBody(output.body, context);
986
982
  return contents;
987
983
  };
988
- exports.deserializeAws_restJson1SetCognitoEventsCommand = deserializeAws_restJson1SetCognitoEventsCommand;
989
- const deserializeAws_restJson1SetCognitoEventsCommandError = async (output, context) => {
984
+ exports.de_SetCognitoEventsCommand = de_SetCognitoEventsCommand;
985
+ const de_SetCognitoEventsCommandError = async (output, context) => {
990
986
  const parsedOutput = {
991
987
  ...output,
992
988
  body: await parseErrorBody(output.body, context),
@@ -995,19 +991,19 @@ const deserializeAws_restJson1SetCognitoEventsCommandError = async (output, cont
995
991
  switch (errorCode) {
996
992
  case "InternalErrorException":
997
993
  case "com.amazonaws.cognitosync#InternalErrorException":
998
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
994
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
999
995
  case "InvalidParameterException":
1000
996
  case "com.amazonaws.cognitosync#InvalidParameterException":
1001
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
997
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1002
998
  case "NotAuthorizedException":
1003
999
  case "com.amazonaws.cognitosync#NotAuthorizedException":
1004
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
1000
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1005
1001
  case "ResourceNotFoundException":
1006
1002
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
1007
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1003
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1008
1004
  case "TooManyRequestsException":
1009
1005
  case "com.amazonaws.cognitosync#TooManyRequestsException":
1010
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1006
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1011
1007
  default:
1012
1008
  const parsedBody = parsedOutput.body;
1013
1009
  (0, smithy_client_1.throwDefaultError)({
@@ -1018,27 +1014,27 @@ const deserializeAws_restJson1SetCognitoEventsCommandError = async (output, cont
1018
1014
  });
1019
1015
  }
1020
1016
  };
1021
- const deserializeAws_restJson1SetIdentityPoolConfigurationCommand = async (output, context) => {
1017
+ const de_SetIdentityPoolConfigurationCommand = async (output, context) => {
1022
1018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1023
- return deserializeAws_restJson1SetIdentityPoolConfigurationCommandError(output, context);
1019
+ return de_SetIdentityPoolConfigurationCommandError(output, context);
1024
1020
  }
1025
1021
  const contents = map({
1026
1022
  $metadata: deserializeMetadata(output),
1027
1023
  });
1028
1024
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1029
1025
  if (data.CognitoStreams != null) {
1030
- contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
1026
+ contents.CognitoStreams = de_CognitoStreams(data.CognitoStreams, context);
1031
1027
  }
1032
1028
  if (data.IdentityPoolId != null) {
1033
1029
  contents.IdentityPoolId = (0, smithy_client_1.expectString)(data.IdentityPoolId);
1034
1030
  }
1035
1031
  if (data.PushSync != null) {
1036
- contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
1032
+ contents.PushSync = de_PushSync(data.PushSync, context);
1037
1033
  }
1038
1034
  return contents;
1039
1035
  };
1040
- exports.deserializeAws_restJson1SetIdentityPoolConfigurationCommand = deserializeAws_restJson1SetIdentityPoolConfigurationCommand;
1041
- const deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = async (output, context) => {
1036
+ exports.de_SetIdentityPoolConfigurationCommand = de_SetIdentityPoolConfigurationCommand;
1037
+ const de_SetIdentityPoolConfigurationCommandError = async (output, context) => {
1042
1038
  const parsedOutput = {
1043
1039
  ...output,
1044
1040
  body: await parseErrorBody(output.body, context),
@@ -1047,22 +1043,22 @@ const deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = async (
1047
1043
  switch (errorCode) {
1048
1044
  case "ConcurrentModificationException":
1049
1045
  case "com.amazonaws.cognitosync#ConcurrentModificationException":
1050
- throw await deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context);
1046
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1051
1047
  case "InternalErrorException":
1052
1048
  case "com.amazonaws.cognitosync#InternalErrorException":
1053
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
1049
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1054
1050
  case "InvalidParameterException":
1055
1051
  case "com.amazonaws.cognitosync#InvalidParameterException":
1056
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1052
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1057
1053
  case "NotAuthorizedException":
1058
1054
  case "com.amazonaws.cognitosync#NotAuthorizedException":
1059
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
1055
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1060
1056
  case "ResourceNotFoundException":
1061
1057
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
1062
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1058
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1063
1059
  case "TooManyRequestsException":
1064
1060
  case "com.amazonaws.cognitosync#TooManyRequestsException":
1065
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1061
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1066
1062
  default:
1067
1063
  const parsedBody = parsedOutput.body;
1068
1064
  (0, smithy_client_1.throwDefaultError)({
@@ -1073,9 +1069,9 @@ const deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = async (
1073
1069
  });
1074
1070
  }
1075
1071
  };
1076
- const deserializeAws_restJson1SubscribeToDatasetCommand = async (output, context) => {
1072
+ const de_SubscribeToDatasetCommand = async (output, context) => {
1077
1073
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1078
- return deserializeAws_restJson1SubscribeToDatasetCommandError(output, context);
1074
+ return de_SubscribeToDatasetCommandError(output, context);
1079
1075
  }
1080
1076
  const contents = map({
1081
1077
  $metadata: deserializeMetadata(output),
@@ -1083,8 +1079,8 @@ const deserializeAws_restJson1SubscribeToDatasetCommand = async (output, context
1083
1079
  await collectBody(output.body, context);
1084
1080
  return contents;
1085
1081
  };
1086
- exports.deserializeAws_restJson1SubscribeToDatasetCommand = deserializeAws_restJson1SubscribeToDatasetCommand;
1087
- const deserializeAws_restJson1SubscribeToDatasetCommandError = async (output, context) => {
1082
+ exports.de_SubscribeToDatasetCommand = de_SubscribeToDatasetCommand;
1083
+ const de_SubscribeToDatasetCommandError = async (output, context) => {
1088
1084
  const parsedOutput = {
1089
1085
  ...output,
1090
1086
  body: await parseErrorBody(output.body, context),
@@ -1093,22 +1089,22 @@ const deserializeAws_restJson1SubscribeToDatasetCommandError = async (output, co
1093
1089
  switch (errorCode) {
1094
1090
  case "InternalErrorException":
1095
1091
  case "com.amazonaws.cognitosync#InternalErrorException":
1096
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
1092
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1097
1093
  case "InvalidConfigurationException":
1098
1094
  case "com.amazonaws.cognitosync#InvalidConfigurationException":
1099
- throw await deserializeAws_restJson1InvalidConfigurationExceptionResponse(parsedOutput, context);
1095
+ throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
1100
1096
  case "InvalidParameterException":
1101
1097
  case "com.amazonaws.cognitosync#InvalidParameterException":
1102
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1098
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1103
1099
  case "NotAuthorizedException":
1104
1100
  case "com.amazonaws.cognitosync#NotAuthorizedException":
1105
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
1101
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1106
1102
  case "ResourceNotFoundException":
1107
1103
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
1108
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1104
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1109
1105
  case "TooManyRequestsException":
1110
1106
  case "com.amazonaws.cognitosync#TooManyRequestsException":
1111
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1107
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1112
1108
  default:
1113
1109
  const parsedBody = parsedOutput.body;
1114
1110
  (0, smithy_client_1.throwDefaultError)({
@@ -1119,9 +1115,9 @@ const deserializeAws_restJson1SubscribeToDatasetCommandError = async (output, co
1119
1115
  });
1120
1116
  }
1121
1117
  };
1122
- const deserializeAws_restJson1UnsubscribeFromDatasetCommand = async (output, context) => {
1118
+ const de_UnsubscribeFromDatasetCommand = async (output, context) => {
1123
1119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return deserializeAws_restJson1UnsubscribeFromDatasetCommandError(output, context);
1120
+ return de_UnsubscribeFromDatasetCommandError(output, context);
1125
1121
  }
1126
1122
  const contents = map({
1127
1123
  $metadata: deserializeMetadata(output),
@@ -1129,8 +1125,8 @@ const deserializeAws_restJson1UnsubscribeFromDatasetCommand = async (output, con
1129
1125
  await collectBody(output.body, context);
1130
1126
  return contents;
1131
1127
  };
1132
- exports.deserializeAws_restJson1UnsubscribeFromDatasetCommand = deserializeAws_restJson1UnsubscribeFromDatasetCommand;
1133
- const deserializeAws_restJson1UnsubscribeFromDatasetCommandError = async (output, context) => {
1128
+ exports.de_UnsubscribeFromDatasetCommand = de_UnsubscribeFromDatasetCommand;
1129
+ const de_UnsubscribeFromDatasetCommandError = async (output, context) => {
1134
1130
  const parsedOutput = {
1135
1131
  ...output,
1136
1132
  body: await parseErrorBody(output.body, context),
@@ -1139,22 +1135,22 @@ const deserializeAws_restJson1UnsubscribeFromDatasetCommandError = async (output
1139
1135
  switch (errorCode) {
1140
1136
  case "InternalErrorException":
1141
1137
  case "com.amazonaws.cognitosync#InternalErrorException":
1142
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
1138
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1143
1139
  case "InvalidConfigurationException":
1144
1140
  case "com.amazonaws.cognitosync#InvalidConfigurationException":
1145
- throw await deserializeAws_restJson1InvalidConfigurationExceptionResponse(parsedOutput, context);
1141
+ throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
1146
1142
  case "InvalidParameterException":
1147
1143
  case "com.amazonaws.cognitosync#InvalidParameterException":
1148
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1144
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1149
1145
  case "NotAuthorizedException":
1150
1146
  case "com.amazonaws.cognitosync#NotAuthorizedException":
1151
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
1147
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1152
1148
  case "ResourceNotFoundException":
1153
1149
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
1154
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1150
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1155
1151
  case "TooManyRequestsException":
1156
1152
  case "com.amazonaws.cognitosync#TooManyRequestsException":
1157
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1153
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1158
1154
  default:
1159
1155
  const parsedBody = parsedOutput.body;
1160
1156
  (0, smithy_client_1.throwDefaultError)({
@@ -1165,21 +1161,21 @@ const deserializeAws_restJson1UnsubscribeFromDatasetCommandError = async (output
1165
1161
  });
1166
1162
  }
1167
1163
  };
1168
- const deserializeAws_restJson1UpdateRecordsCommand = async (output, context) => {
1164
+ const de_UpdateRecordsCommand = async (output, context) => {
1169
1165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1170
- return deserializeAws_restJson1UpdateRecordsCommandError(output, context);
1166
+ return de_UpdateRecordsCommandError(output, context);
1171
1167
  }
1172
1168
  const contents = map({
1173
1169
  $metadata: deserializeMetadata(output),
1174
1170
  });
1175
1171
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1176
1172
  if (data.Records != null) {
1177
- contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
1173
+ contents.Records = de_RecordList(data.Records, context);
1178
1174
  }
1179
1175
  return contents;
1180
1176
  };
1181
- exports.deserializeAws_restJson1UpdateRecordsCommand = deserializeAws_restJson1UpdateRecordsCommand;
1182
- const deserializeAws_restJson1UpdateRecordsCommandError = async (output, context) => {
1177
+ exports.de_UpdateRecordsCommand = de_UpdateRecordsCommand;
1178
+ const de_UpdateRecordsCommandError = async (output, context) => {
1183
1179
  const parsedOutput = {
1184
1180
  ...output,
1185
1181
  body: await parseErrorBody(output.body, context),
@@ -1188,31 +1184,31 @@ const deserializeAws_restJson1UpdateRecordsCommandError = async (output, context
1188
1184
  switch (errorCode) {
1189
1185
  case "InternalErrorException":
1190
1186
  case "com.amazonaws.cognitosync#InternalErrorException":
1191
- throw await deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context);
1187
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1192
1188
  case "InvalidLambdaFunctionOutputException":
1193
1189
  case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException":
1194
- throw await deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse(parsedOutput, context);
1190
+ throw await de_InvalidLambdaFunctionOutputExceptionRes(parsedOutput, context);
1195
1191
  case "InvalidParameterException":
1196
1192
  case "com.amazonaws.cognitosync#InvalidParameterException":
1197
- throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1193
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1198
1194
  case "LambdaThrottledException":
1199
1195
  case "com.amazonaws.cognitosync#LambdaThrottledException":
1200
- throw await deserializeAws_restJson1LambdaThrottledExceptionResponse(parsedOutput, context);
1196
+ throw await de_LambdaThrottledExceptionRes(parsedOutput, context);
1201
1197
  case "LimitExceededException":
1202
1198
  case "com.amazonaws.cognitosync#LimitExceededException":
1203
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
1199
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1204
1200
  case "NotAuthorizedException":
1205
1201
  case "com.amazonaws.cognitosync#NotAuthorizedException":
1206
- throw await deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context);
1202
+ throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
1207
1203
  case "ResourceConflictException":
1208
1204
  case "com.amazonaws.cognitosync#ResourceConflictException":
1209
- throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
1205
+ throw await de_ResourceConflictExceptionRes(parsedOutput, context);
1210
1206
  case "ResourceNotFoundException":
1211
1207
  case "com.amazonaws.cognitosync#ResourceNotFoundException":
1212
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1208
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1213
1209
  case "TooManyRequestsException":
1214
1210
  case "com.amazonaws.cognitosync#TooManyRequestsException":
1215
- throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
1211
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1216
1212
  default:
1217
1213
  const parsedBody = parsedOutput.body;
1218
1214
  (0, smithy_client_1.throwDefaultError)({
@@ -1224,7 +1220,7 @@ const deserializeAws_restJson1UpdateRecordsCommandError = async (output, context
1224
1220
  }
1225
1221
  };
1226
1222
  const map = smithy_client_1.map;
1227
- const deserializeAws_restJson1AlreadyStreamedExceptionResponse = async (parsedOutput, context) => {
1223
+ const de_AlreadyStreamedExceptionRes = async (parsedOutput, context) => {
1228
1224
  const contents = map({});
1229
1225
  const data = parsedOutput.body;
1230
1226
  if (data.message != null) {
@@ -1236,7 +1232,7 @@ const deserializeAws_restJson1AlreadyStreamedExceptionResponse = async (parsedOu
1236
1232
  });
1237
1233
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1238
1234
  };
1239
- const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
1235
+ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
1240
1236
  const contents = map({});
1241
1237
  const data = parsedOutput.body;
1242
1238
  if (data.message != null) {
@@ -1248,7 +1244,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
1248
1244
  });
1249
1245
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1250
1246
  };
1251
- const deserializeAws_restJson1DuplicateRequestExceptionResponse = async (parsedOutput, context) => {
1247
+ const de_DuplicateRequestExceptionRes = async (parsedOutput, context) => {
1252
1248
  const contents = map({});
1253
1249
  const data = parsedOutput.body;
1254
1250
  if (data.message != null) {
@@ -1260,7 +1256,7 @@ const deserializeAws_restJson1DuplicateRequestExceptionResponse = async (parsedO
1260
1256
  });
1261
1257
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1262
1258
  };
1263
- const deserializeAws_restJson1InternalErrorExceptionResponse = async (parsedOutput, context) => {
1259
+ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1264
1260
  const contents = map({});
1265
1261
  const data = parsedOutput.body;
1266
1262
  if (data.message != null) {
@@ -1272,7 +1268,7 @@ const deserializeAws_restJson1InternalErrorExceptionResponse = async (parsedOutp
1272
1268
  });
1273
1269
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1274
1270
  };
1275
- const deserializeAws_restJson1InvalidConfigurationExceptionResponse = async (parsedOutput, context) => {
1271
+ const de_InvalidConfigurationExceptionRes = async (parsedOutput, context) => {
1276
1272
  const contents = map({});
1277
1273
  const data = parsedOutput.body;
1278
1274
  if (data.message != null) {
@@ -1284,7 +1280,7 @@ const deserializeAws_restJson1InvalidConfigurationExceptionResponse = async (par
1284
1280
  });
1285
1281
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1286
1282
  };
1287
- const deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse = async (parsedOutput, context) => {
1283
+ const de_InvalidLambdaFunctionOutputExceptionRes = async (parsedOutput, context) => {
1288
1284
  const contents = map({});
1289
1285
  const data = parsedOutput.body;
1290
1286
  if (data.message != null) {
@@ -1296,7 +1292,7 @@ const deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse = asy
1296
1292
  });
1297
1293
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1298
1294
  };
1299
- const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
1295
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1300
1296
  const contents = map({});
1301
1297
  const data = parsedOutput.body;
1302
1298
  if (data.message != null) {
@@ -1308,7 +1304,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
1308
1304
  });
1309
1305
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1310
1306
  };
1311
- const deserializeAws_restJson1LambdaThrottledExceptionResponse = async (parsedOutput, context) => {
1307
+ const de_LambdaThrottledExceptionRes = async (parsedOutput, context) => {
1312
1308
  const contents = map({});
1313
1309
  const data = parsedOutput.body;
1314
1310
  if (data.message != null) {
@@ -1320,7 +1316,7 @@ const deserializeAws_restJson1LambdaThrottledExceptionResponse = async (parsedOu
1320
1316
  });
1321
1317
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1322
1318
  };
1323
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
1319
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1324
1320
  const contents = map({});
1325
1321
  const data = parsedOutput.body;
1326
1322
  if (data.message != null) {
@@ -1332,7 +1328,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
1332
1328
  });
1333
1329
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1334
1330
  };
1335
- const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
1331
+ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
1336
1332
  const contents = map({});
1337
1333
  const data = parsedOutput.body;
1338
1334
  if (data.message != null) {
@@ -1344,7 +1340,7 @@ const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutp
1344
1340
  });
1345
1341
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1346
1342
  };
1347
- const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
1343
+ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
1348
1344
  const contents = map({});
1349
1345
  const data = parsedOutput.body;
1350
1346
  if (data.message != null) {
@@ -1356,7 +1352,7 @@ const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedO
1356
1352
  });
1357
1353
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1358
1354
  };
1359
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1355
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1360
1356
  const contents = map({});
1361
1357
  const data = parsedOutput.body;
1362
1358
  if (data.message != null) {
@@ -1368,7 +1364,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1368
1364
  });
1369
1365
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1370
1366
  };
1371
- const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1367
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1372
1368
  const contents = map({});
1373
1369
  const data = parsedOutput.body;
1374
1370
  if (data.message != null) {
@@ -1380,21 +1376,21 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
1380
1376
  });
1381
1377
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1382
1378
  };
1383
- const serializeAws_restJson1ApplicationArnList = (input, context) => {
1379
+ const se_ApplicationArnList = (input, context) => {
1384
1380
  return input
1385
1381
  .filter((e) => e != null)
1386
1382
  .map((entry) => {
1387
1383
  return entry;
1388
1384
  });
1389
1385
  };
1390
- const serializeAws_restJson1CognitoStreams = (input, context) => {
1386
+ const se_CognitoStreams = (input, context) => {
1391
1387
  return {
1392
1388
  ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1393
1389
  ...(input.StreamName != null && { StreamName: input.StreamName }),
1394
1390
  ...(input.StreamingStatus != null && { StreamingStatus: input.StreamingStatus }),
1395
1391
  };
1396
1392
  };
1397
- const serializeAws_restJson1Events = (input, context) => {
1393
+ const se_Events = (input, context) => {
1398
1394
  return Object.entries(input).reduce((acc, [key, value]) => {
1399
1395
  if (value === null) {
1400
1396
  return acc;
@@ -1403,15 +1399,13 @@ const serializeAws_restJson1Events = (input, context) => {
1403
1399
  return acc;
1404
1400
  }, {});
1405
1401
  };
1406
- const serializeAws_restJson1PushSync = (input, context) => {
1402
+ const se_PushSync = (input, context) => {
1407
1403
  return {
1408
- ...(input.ApplicationArns != null && {
1409
- ApplicationArns: serializeAws_restJson1ApplicationArnList(input.ApplicationArns, context),
1410
- }),
1404
+ ...(input.ApplicationArns != null && { ApplicationArns: se_ApplicationArnList(input.ApplicationArns, context) }),
1411
1405
  ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1412
1406
  };
1413
1407
  };
1414
- const serializeAws_restJson1RecordPatch = (input, context) => {
1408
+ const se_RecordPatch = (input, context) => {
1415
1409
  return {
1416
1410
  ...(input.DeviceLastModifiedDate != null && {
1417
1411
  DeviceLastModifiedDate: Math.round(input.DeviceLastModifiedDate.getTime() / 1000),
@@ -1422,14 +1416,14 @@ const serializeAws_restJson1RecordPatch = (input, context) => {
1422
1416
  ...(input.Value != null && { Value: input.Value }),
1423
1417
  };
1424
1418
  };
1425
- const serializeAws_restJson1RecordPatchList = (input, context) => {
1419
+ const se_RecordPatchList = (input, context) => {
1426
1420
  return input
1427
1421
  .filter((e) => e != null)
1428
1422
  .map((entry) => {
1429
- return serializeAws_restJson1RecordPatch(entry, context);
1423
+ return se_RecordPatch(entry, context);
1430
1424
  });
1431
1425
  };
1432
- const deserializeAws_restJson1ApplicationArnList = (output, context) => {
1426
+ const de_ApplicationArnList = (output, context) => {
1433
1427
  const retVal = (output || [])
1434
1428
  .filter((e) => e != null)
1435
1429
  .map((entry) => {
@@ -1440,14 +1434,14 @@ const deserializeAws_restJson1ApplicationArnList = (output, context) => {
1440
1434
  });
1441
1435
  return retVal;
1442
1436
  };
1443
- const deserializeAws_restJson1CognitoStreams = (output, context) => {
1437
+ const de_CognitoStreams = (output, context) => {
1444
1438
  return {
1445
1439
  RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1446
1440
  StreamName: (0, smithy_client_1.expectString)(output.StreamName),
1447
1441
  StreamingStatus: (0, smithy_client_1.expectString)(output.StreamingStatus),
1448
1442
  };
1449
1443
  };
1450
- const deserializeAws_restJson1Dataset = (output, context) => {
1444
+ const de_Dataset = (output, context) => {
1451
1445
  return {
1452
1446
  CreationDate: output.CreationDate != null
1453
1447
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
@@ -1462,18 +1456,18 @@ const deserializeAws_restJson1Dataset = (output, context) => {
1462
1456
  NumRecords: (0, smithy_client_1.expectLong)(output.NumRecords),
1463
1457
  };
1464
1458
  };
1465
- const deserializeAws_restJson1DatasetList = (output, context) => {
1459
+ const de_DatasetList = (output, context) => {
1466
1460
  const retVal = (output || [])
1467
1461
  .filter((e) => e != null)
1468
1462
  .map((entry) => {
1469
1463
  if (entry === null) {
1470
1464
  return null;
1471
1465
  }
1472
- return deserializeAws_restJson1Dataset(entry, context);
1466
+ return de_Dataset(entry, context);
1473
1467
  });
1474
1468
  return retVal;
1475
1469
  };
1476
- const deserializeAws_restJson1Events = (output, context) => {
1470
+ const de_Events = (output, context) => {
1477
1471
  return Object.entries(output).reduce((acc, [key, value]) => {
1478
1472
  if (value === null) {
1479
1473
  return acc;
@@ -1482,7 +1476,7 @@ const deserializeAws_restJson1Events = (output, context) => {
1482
1476
  return acc;
1483
1477
  }, {});
1484
1478
  };
1485
- const deserializeAws_restJson1IdentityPoolUsage = (output, context) => {
1479
+ const de_IdentityPoolUsage = (output, context) => {
1486
1480
  return {
1487
1481
  DataStorage: (0, smithy_client_1.expectLong)(output.DataStorage),
1488
1482
  IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
@@ -1492,18 +1486,18 @@ const deserializeAws_restJson1IdentityPoolUsage = (output, context) => {
1492
1486
  SyncSessionsCount: (0, smithy_client_1.expectLong)(output.SyncSessionsCount),
1493
1487
  };
1494
1488
  };
1495
- const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
1489
+ const de_IdentityPoolUsageList = (output, context) => {
1496
1490
  const retVal = (output || [])
1497
1491
  .filter((e) => e != null)
1498
1492
  .map((entry) => {
1499
1493
  if (entry === null) {
1500
1494
  return null;
1501
1495
  }
1502
- return deserializeAws_restJson1IdentityPoolUsage(entry, context);
1496
+ return de_IdentityPoolUsage(entry, context);
1503
1497
  });
1504
1498
  return retVal;
1505
1499
  };
1506
- const deserializeAws_restJson1IdentityUsage = (output, context) => {
1500
+ const de_IdentityUsage = (output, context) => {
1507
1501
  return {
1508
1502
  DataStorage: (0, smithy_client_1.expectLong)(output.DataStorage),
1509
1503
  DatasetCount: (0, smithy_client_1.expectInt32)(output.DatasetCount),
@@ -1514,7 +1508,7 @@ const deserializeAws_restJson1IdentityUsage = (output, context) => {
1514
1508
  : undefined,
1515
1509
  };
1516
1510
  };
1517
- const deserializeAws_restJson1MergedDatasetNameList = (output, context) => {
1511
+ const de_MergedDatasetNameList = (output, context) => {
1518
1512
  const retVal = (output || [])
1519
1513
  .filter((e) => e != null)
1520
1514
  .map((entry) => {
@@ -1525,15 +1519,13 @@ const deserializeAws_restJson1MergedDatasetNameList = (output, context) => {
1525
1519
  });
1526
1520
  return retVal;
1527
1521
  };
1528
- const deserializeAws_restJson1PushSync = (output, context) => {
1522
+ const de_PushSync = (output, context) => {
1529
1523
  return {
1530
- ApplicationArns: output.ApplicationArns != null
1531
- ? deserializeAws_restJson1ApplicationArnList(output.ApplicationArns, context)
1532
- : undefined,
1524
+ ApplicationArns: output.ApplicationArns != null ? de_ApplicationArnList(output.ApplicationArns, context) : undefined,
1533
1525
  RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1534
1526
  };
1535
1527
  };
1536
- const deserializeAws_restJson1_Record = (output, context) => {
1528
+ const de__Record = (output, context) => {
1537
1529
  return {
1538
1530
  DeviceLastModifiedDate: output.DeviceLastModifiedDate != null
1539
1531
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeviceLastModifiedDate)))
@@ -1547,14 +1539,14 @@ const deserializeAws_restJson1_Record = (output, context) => {
1547
1539
  Value: (0, smithy_client_1.expectString)(output.Value),
1548
1540
  };
1549
1541
  };
1550
- const deserializeAws_restJson1RecordList = (output, context) => {
1542
+ const de_RecordList = (output, context) => {
1551
1543
  const retVal = (output || [])
1552
1544
  .filter((e) => e != null)
1553
1545
  .map((entry) => {
1554
1546
  if (entry === null) {
1555
1547
  return null;
1556
1548
  }
1557
- return deserializeAws_restJson1_Record(entry, context);
1549
+ return de__Record(entry, context);
1558
1550
  });
1559
1551
  return retVal;
1560
1552
  };