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