@aws-sdk/client-cognito-sync 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/CognitoSyncClient.js +13 -13
- package/dist/cjs/CognitoSyncClient.js.map +1 -1
- package/dist/cjs/commands/BulkPublishCommand.js +3 -3
- package/dist/cjs/commands/BulkPublishCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDatasetCommand.js +3 -3
- package/dist/cjs/commands/DeleteDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDatasetCommand.js +3 -3
- package/dist/cjs/commands/DescribeDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js +3 -3
- package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeIdentityUsageCommand.js +3 -3
- package/dist/cjs/commands/DescribeIdentityUsageCommand.js.map +1 -1
- package/dist/cjs/commands/GetBulkPublishDetailsCommand.js +3 -3
- package/dist/cjs/commands/GetBulkPublishDetailsCommand.js.map +1 -1
- package/dist/cjs/commands/GetCognitoEventsCommand.js +3 -3
- package/dist/cjs/commands/GetCognitoEventsCommand.js.map +1 -1
- package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js +3 -3
- package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/ListDatasetsCommand.js +3 -3
- package/dist/cjs/commands/ListDatasetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListIdentityPoolUsageCommand.js +3 -3
- package/dist/cjs/commands/ListIdentityPoolUsageCommand.js.map +1 -1
- package/dist/cjs/commands/ListRecordsCommand.js +3 -3
- package/dist/cjs/commands/ListRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterDeviceCommand.js +3 -3
- package/dist/cjs/commands/RegisterDeviceCommand.js.map +1 -1
- package/dist/cjs/commands/SetCognitoEventsCommand.js +3 -3
- package/dist/cjs/commands/SetCognitoEventsCommand.js.map +1 -1
- package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js +3 -3
- package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/SubscribeToDatasetCommand.js +3 -3
- package/dist/cjs/commands/SubscribeToDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js +3 -3
- package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRecordsCommand.js +3 -3
- package/dist/cjs/commands/UpdateRecordsCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +20 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +110 -110
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/CognitoSync.js +1 -16
- package/dist/es/CognitoSync.js.map +1 -1
- package/dist/es/CognitoSyncClient.js +1 -21
- package/dist/es/CognitoSyncClient.js.map +1 -1
- package/dist/es/commands/BulkPublishCommand.js +2 -27
- package/dist/es/commands/BulkPublishCommand.js.map +1 -1
- package/dist/es/commands/DeleteDatasetCommand.js +2 -31
- package/dist/es/commands/DeleteDatasetCommand.js.map +1 -1
- package/dist/es/commands/DescribeDatasetCommand.js +2 -30
- package/dist/es/commands/DescribeDatasetCommand.js.map +1 -1
- package/dist/es/commands/DescribeIdentityPoolUsageCommand.js +2 -75
- package/dist/es/commands/DescribeIdentityPoolUsageCommand.js.map +1 -1
- package/dist/es/commands/DescribeIdentityUsageCommand.js +2 -76
- package/dist/es/commands/DescribeIdentityUsageCommand.js.map +1 -1
- package/dist/es/commands/GetBulkPublishDetailsCommand.js +2 -27
- package/dist/es/commands/GetBulkPublishDetailsCommand.js.map +1 -1
- package/dist/es/commands/GetCognitoEventsCommand.js +2 -27
- package/dist/es/commands/GetCognitoEventsCommand.js.map +1 -1
- package/dist/es/commands/GetIdentityPoolConfigurationCommand.js +2 -73
- package/dist/es/commands/GetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/es/commands/ListDatasetsCommand.js +2 -85
- package/dist/es/commands/ListDatasetsCommand.js.map +1 -1
- package/dist/es/commands/ListIdentityPoolUsageCommand.js +2 -85
- package/dist/es/commands/ListIdentityPoolUsageCommand.js.map +1 -1
- package/dist/es/commands/ListRecordsCommand.js +2 -82
- package/dist/es/commands/ListRecordsCommand.js.map +1 -1
- package/dist/es/commands/RegisterDeviceCommand.js +2 -71
- package/dist/es/commands/RegisterDeviceCommand.js.map +1 -1
- package/dist/es/commands/SetCognitoEventsCommand.js +2 -27
- package/dist/es/commands/SetCognitoEventsCommand.js.map +1 -1
- package/dist/es/commands/SetIdentityPoolConfigurationCommand.js +2 -77
- package/dist/es/commands/SetIdentityPoolConfigurationCommand.js.map +1 -1
- package/dist/es/commands/SubscribeToDatasetCommand.js +2 -70
- package/dist/es/commands/SubscribeToDatasetCommand.js.map +1 -1
- package/dist/es/commands/UnsubscribeFromDatasetCommand.js +2 -71
- package/dist/es/commands/UnsubscribeFromDatasetCommand.js.map +1 -1
- package/dist/es/commands/UpdateRecordsCommand.js +2 -29
- package/dist/es/commands/UpdateRecordsCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -159
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/protocols/Aws_restJson1.js +539 -544
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +12 -8
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1BulkPublishCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {};
|
|
@@ -21,7 +21,7 @@ export var serializeAws_restJson1BulkPublishCommand = function (input, context)
|
|
|
21
21
|
else {
|
|
22
22
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
23
23
|
}
|
|
24
|
-
return [2
|
|
24
|
+
return [2, new __HttpRequest({
|
|
25
25
|
protocol: protocol,
|
|
26
26
|
hostname: hostname,
|
|
27
27
|
port: port,
|
|
@@ -37,7 +37,7 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
37
37
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
38
38
|
return __generator(this, function (_c) {
|
|
39
39
|
switch (_c.label) {
|
|
40
|
-
case 0: return [4
|
|
40
|
+
case 0: return [4, context.endpoint()];
|
|
41
41
|
case 1:
|
|
42
42
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
43
43
|
headers = {};
|
|
@@ -73,7 +73,7 @@ export var serializeAws_restJson1DeleteDatasetCommand = function (input, context
|
|
|
73
73
|
else {
|
|
74
74
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
75
75
|
}
|
|
76
|
-
return [2
|
|
76
|
+
return [2, new __HttpRequest({
|
|
77
77
|
protocol: protocol,
|
|
78
78
|
hostname: hostname,
|
|
79
79
|
port: port,
|
|
@@ -89,7 +89,7 @@ export var serializeAws_restJson1DescribeDatasetCommand = function (input, conte
|
|
|
89
89
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
90
90
|
return __generator(this, function (_c) {
|
|
91
91
|
switch (_c.label) {
|
|
92
|
-
case 0: return [4
|
|
92
|
+
case 0: return [4, context.endpoint()];
|
|
93
93
|
case 1:
|
|
94
94
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
95
95
|
headers = {};
|
|
@@ -125,7 +125,7 @@ export var serializeAws_restJson1DescribeDatasetCommand = function (input, conte
|
|
|
125
125
|
else {
|
|
126
126
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
127
127
|
}
|
|
128
|
-
return [2
|
|
128
|
+
return [2, new __HttpRequest({
|
|
129
129
|
protocol: protocol,
|
|
130
130
|
hostname: hostname,
|
|
131
131
|
port: port,
|
|
@@ -141,7 +141,7 @@ export var serializeAws_restJson1DescribeIdentityPoolUsageCommand = function (in
|
|
|
141
141
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
142
142
|
return __generator(this, function (_c) {
|
|
143
143
|
switch (_c.label) {
|
|
144
|
-
case 0: return [4
|
|
144
|
+
case 0: return [4, context.endpoint()];
|
|
145
145
|
case 1:
|
|
146
146
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
147
147
|
headers = {};
|
|
@@ -156,7 +156,7 @@ export var serializeAws_restJson1DescribeIdentityPoolUsageCommand = function (in
|
|
|
156
156
|
else {
|
|
157
157
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
158
158
|
}
|
|
159
|
-
return [2
|
|
159
|
+
return [2, new __HttpRequest({
|
|
160
160
|
protocol: protocol,
|
|
161
161
|
hostname: hostname,
|
|
162
162
|
port: port,
|
|
@@ -172,7 +172,7 @@ export var serializeAws_restJson1DescribeIdentityUsageCommand = function (input,
|
|
|
172
172
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
173
173
|
return __generator(this, function (_c) {
|
|
174
174
|
switch (_c.label) {
|
|
175
|
-
case 0: return [4
|
|
175
|
+
case 0: return [4, context.endpoint()];
|
|
176
176
|
case 1:
|
|
177
177
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
178
178
|
headers = {};
|
|
@@ -198,7 +198,7 @@ export var serializeAws_restJson1DescribeIdentityUsageCommand = function (input,
|
|
|
198
198
|
else {
|
|
199
199
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
200
200
|
}
|
|
201
|
-
return [2
|
|
201
|
+
return [2, new __HttpRequest({
|
|
202
202
|
protocol: protocol,
|
|
203
203
|
hostname: hostname,
|
|
204
204
|
port: port,
|
|
@@ -214,7 +214,7 @@ export var serializeAws_restJson1GetBulkPublishDetailsCommand = function (input,
|
|
|
214
214
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
215
215
|
return __generator(this, function (_c) {
|
|
216
216
|
switch (_c.label) {
|
|
217
|
-
case 0: return [4
|
|
217
|
+
case 0: return [4, context.endpoint()];
|
|
218
218
|
case 1:
|
|
219
219
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
220
220
|
headers = {};
|
|
@@ -230,7 +230,7 @@ export var serializeAws_restJson1GetBulkPublishDetailsCommand = function (input,
|
|
|
230
230
|
else {
|
|
231
231
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
232
232
|
}
|
|
233
|
-
return [2
|
|
233
|
+
return [2, new __HttpRequest({
|
|
234
234
|
protocol: protocol,
|
|
235
235
|
hostname: hostname,
|
|
236
236
|
port: port,
|
|
@@ -246,7 +246,7 @@ export var serializeAws_restJson1GetCognitoEventsCommand = function (input, cont
|
|
|
246
246
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
247
247
|
return __generator(this, function (_c) {
|
|
248
248
|
switch (_c.label) {
|
|
249
|
-
case 0: return [4
|
|
249
|
+
case 0: return [4, context.endpoint()];
|
|
250
250
|
case 1:
|
|
251
251
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
252
252
|
headers = {};
|
|
@@ -261,7 +261,7 @@ export var serializeAws_restJson1GetCognitoEventsCommand = function (input, cont
|
|
|
261
261
|
else {
|
|
262
262
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
263
263
|
}
|
|
264
|
-
return [2
|
|
264
|
+
return [2, new __HttpRequest({
|
|
265
265
|
protocol: protocol,
|
|
266
266
|
hostname: hostname,
|
|
267
267
|
port: port,
|
|
@@ -277,7 +277,7 @@ export var serializeAws_restJson1GetIdentityPoolConfigurationCommand = function
|
|
|
277
277
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
278
278
|
return __generator(this, function (_c) {
|
|
279
279
|
switch (_c.label) {
|
|
280
|
-
case 0: return [4
|
|
280
|
+
case 0: return [4, context.endpoint()];
|
|
281
281
|
case 1:
|
|
282
282
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
283
283
|
headers = {};
|
|
@@ -293,7 +293,7 @@ export var serializeAws_restJson1GetIdentityPoolConfigurationCommand = function
|
|
|
293
293
|
else {
|
|
294
294
|
throw new Error("No value provided for input HTTP label: IdentityPoolId.");
|
|
295
295
|
}
|
|
296
|
-
return [2
|
|
296
|
+
return [2, new __HttpRequest({
|
|
297
297
|
protocol: protocol,
|
|
298
298
|
hostname: hostname,
|
|
299
299
|
port: port,
|
|
@@ -309,7 +309,7 @@ export var serializeAws_restJson1ListDatasetsCommand = function (input, context)
|
|
|
309
309
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
310
310
|
return __generator(this, function (_c) {
|
|
311
311
|
switch (_c.label) {
|
|
312
|
-
case 0: return [4
|
|
312
|
+
case 0: return [4, context.endpoint()];
|
|
313
313
|
case 1:
|
|
314
314
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
315
315
|
headers = {};
|
|
@@ -336,7 +336,7 @@ export var serializeAws_restJson1ListDatasetsCommand = function (input, context)
|
|
|
336
336
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
337
337
|
}
|
|
338
338
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
339
|
-
return [2
|
|
339
|
+
return [2, new __HttpRequest({
|
|
340
340
|
protocol: protocol,
|
|
341
341
|
hostname: hostname,
|
|
342
342
|
port: port,
|
|
@@ -353,13 +353,13 @@ export var serializeAws_restJson1ListIdentityPoolUsageCommand = function (input,
|
|
|
353
353
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
354
354
|
return __generator(this, function (_c) {
|
|
355
355
|
switch (_c.label) {
|
|
356
|
-
case 0: return [4
|
|
356
|
+
case 0: return [4, context.endpoint()];
|
|
357
357
|
case 1:
|
|
358
358
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
359
359
|
headers = {};
|
|
360
360
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/identitypools";
|
|
361
361
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
362
|
-
return [2
|
|
362
|
+
return [2, new __HttpRequest({
|
|
363
363
|
protocol: protocol,
|
|
364
364
|
hostname: hostname,
|
|
365
365
|
port: port,
|
|
@@ -376,7 +376,7 @@ export var serializeAws_restJson1ListRecordsCommand = function (input, context)
|
|
|
376
376
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, query, body;
|
|
377
377
|
return __generator(this, function (_c) {
|
|
378
378
|
switch (_c.label) {
|
|
379
|
-
case 0: return [4
|
|
379
|
+
case 0: return [4, context.endpoint()];
|
|
380
380
|
case 1:
|
|
381
381
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
382
382
|
headers = {};
|
|
@@ -413,7 +413,7 @@ export var serializeAws_restJson1ListRecordsCommand = function (input, context)
|
|
|
413
413
|
throw new Error("No value provided for input HTTP label: DatasetName.");
|
|
414
414
|
}
|
|
415
415
|
query = __assign(__assign(__assign(__assign({}, (input.LastSyncCount !== undefined && { lastSyncCount: input.LastSyncCount.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.SyncSessionToken !== undefined && { syncSessionToken: input.SyncSessionToken }));
|
|
416
|
-
return [2
|
|
416
|
+
return [2, new __HttpRequest({
|
|
417
417
|
protocol: protocol,
|
|
418
418
|
hostname: hostname,
|
|
419
419
|
port: port,
|
|
@@ -430,7 +430,7 @@ export var serializeAws_restJson1RegisterDeviceCommand = function (input, contex
|
|
|
430
430
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
431
431
|
return __generator(this, function (_c) {
|
|
432
432
|
switch (_c.label) {
|
|
433
|
-
case 0: return [4
|
|
433
|
+
case 0: return [4, context.endpoint()];
|
|
434
434
|
case 1:
|
|
435
435
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
436
436
|
headers = {
|
|
@@ -459,7 +459,7 @@ export var serializeAws_restJson1RegisterDeviceCommand = function (input, contex
|
|
|
459
459
|
throw new Error("No value provided for input HTTP label: IdentityId.");
|
|
460
460
|
}
|
|
461
461
|
body = JSON.stringify(__assign(__assign({}, (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform })), (input.Token !== undefined && input.Token !== null && { Token: input.Token })));
|
|
462
|
-
return [2
|
|
462
|
+
return [2, new __HttpRequest({
|
|
463
463
|
protocol: protocol,
|
|
464
464
|
hostname: hostname,
|
|
465
465
|
port: port,
|
|
@@ -475,7 +475,7 @@ export var serializeAws_restJson1SetCognitoEventsCommand = function (input, cont
|
|
|
475
475
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
476
476
|
return __generator(this, function (_c) {
|
|
477
477
|
switch (_c.label) {
|
|
478
|
-
case 0: return [4
|
|
478
|
+
case 0: return [4, context.endpoint()];
|
|
479
479
|
case 1:
|
|
480
480
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
481
481
|
headers = {
|
|
@@ -494,7 +494,7 @@ export var serializeAws_restJson1SetCognitoEventsCommand = function (input, cont
|
|
|
494
494
|
}
|
|
495
495
|
body = JSON.stringify(__assign({}, (input.Events !== undefined &&
|
|
496
496
|
input.Events !== null && { Events: serializeAws_restJson1Events(input.Events, context) })));
|
|
497
|
-
return [2
|
|
497
|
+
return [2, new __HttpRequest({
|
|
498
498
|
protocol: protocol,
|
|
499
499
|
hostname: hostname,
|
|
500
500
|
port: port,
|
|
@@ -510,7 +510,7 @@ export var serializeAws_restJson1SetIdentityPoolConfigurationCommand = function
|
|
|
510
510
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
511
511
|
return __generator(this, function (_c) {
|
|
512
512
|
switch (_c.label) {
|
|
513
|
-
case 0: return [4
|
|
513
|
+
case 0: return [4, context.endpoint()];
|
|
514
514
|
case 1:
|
|
515
515
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
516
516
|
headers = {
|
|
@@ -533,7 +533,7 @@ export var serializeAws_restJson1SetIdentityPoolConfigurationCommand = function
|
|
|
533
533
|
CognitoStreams: serializeAws_restJson1CognitoStreams(input.CognitoStreams, context),
|
|
534
534
|
})), (input.PushSync !== undefined &&
|
|
535
535
|
input.PushSync !== null && { PushSync: serializeAws_restJson1PushSync(input.PushSync, context) })));
|
|
536
|
-
return [2
|
|
536
|
+
return [2, new __HttpRequest({
|
|
537
537
|
protocol: protocol,
|
|
538
538
|
hostname: hostname,
|
|
539
539
|
port: port,
|
|
@@ -549,7 +549,7 @@ export var serializeAws_restJson1SubscribeToDatasetCommand = function (input, co
|
|
|
549
549
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, labelValue, body;
|
|
550
550
|
return __generator(this, function (_c) {
|
|
551
551
|
switch (_c.label) {
|
|
552
|
-
case 0: return [4
|
|
552
|
+
case 0: return [4, context.endpoint()];
|
|
553
553
|
case 1:
|
|
554
554
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
555
555
|
headers = {};
|
|
@@ -595,7 +595,7 @@ export var serializeAws_restJson1SubscribeToDatasetCommand = function (input, co
|
|
|
595
595
|
else {
|
|
596
596
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
597
597
|
}
|
|
598
|
-
return [2
|
|
598
|
+
return [2, new __HttpRequest({
|
|
599
599
|
protocol: protocol,
|
|
600
600
|
hostname: hostname,
|
|
601
601
|
port: port,
|
|
@@ -611,7 +611,7 @@ export var serializeAws_restJson1UnsubscribeFromDatasetCommand = function (input
|
|
|
611
611
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, labelValue, body;
|
|
612
612
|
return __generator(this, function (_c) {
|
|
613
613
|
switch (_c.label) {
|
|
614
|
-
case 0: return [4
|
|
614
|
+
case 0: return [4, context.endpoint()];
|
|
615
615
|
case 1:
|
|
616
616
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
617
617
|
headers = {};
|
|
@@ -657,7 +657,7 @@ export var serializeAws_restJson1UnsubscribeFromDatasetCommand = function (input
|
|
|
657
657
|
else {
|
|
658
658
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
659
659
|
}
|
|
660
|
-
return [2
|
|
660
|
+
return [2, new __HttpRequest({
|
|
661
661
|
protocol: protocol,
|
|
662
662
|
hostname: hostname,
|
|
663
663
|
port: port,
|
|
@@ -673,7 +673,7 @@ export var serializeAws_restJson1UpdateRecordsCommand = function (input, context
|
|
|
673
673
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
674
674
|
return __generator(this, function (_c) {
|
|
675
675
|
switch (_c.label) {
|
|
676
|
-
case 0: return [4
|
|
676
|
+
case 0: return [4, context.endpoint()];
|
|
677
677
|
case 1:
|
|
678
678
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
679
679
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ClientContext) && { "x-amz-client-context": input.ClientContext }));
|
|
@@ -714,7 +714,7 @@ export var serializeAws_restJson1UpdateRecordsCommand = function (input, context
|
|
|
714
714
|
RecordPatches: serializeAws_restJson1RecordPatchList(input.RecordPatches, context),
|
|
715
715
|
})), (input.SyncSessionToken !== undefined &&
|
|
716
716
|
input.SyncSessionToken !== null && { SyncSessionToken: input.SyncSessionToken })));
|
|
717
|
-
return [2
|
|
717
|
+
return [2, new __HttpRequest({
|
|
718
718
|
protocol: protocol,
|
|
719
719
|
hostname: hostname,
|
|
720
720
|
port: port,
|
|
@@ -732,7 +732,7 @@ export var deserializeAws_restJson1BulkPublishCommand = function (output, contex
|
|
|
732
732
|
switch (_c.label) {
|
|
733
733
|
case 0:
|
|
734
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return [2
|
|
735
|
+
return [2, deserializeAws_restJson1BulkPublishCommandError(output, context)];
|
|
736
736
|
}
|
|
737
737
|
contents = {
|
|
738
738
|
$metadata: deserializeMetadata(output),
|
|
@@ -740,13 +740,13 @@ export var deserializeAws_restJson1BulkPublishCommand = function (output, contex
|
|
|
740
740
|
};
|
|
741
741
|
_a = __expectNonNull;
|
|
742
742
|
_b = __expectObject;
|
|
743
|
-
return [4
|
|
743
|
+
return [4, parseBody(output.body, context)];
|
|
744
744
|
case 1:
|
|
745
745
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
746
746
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
747
747
|
contents.IdentityPoolId = __expectString(data.IdentityPoolId);
|
|
748
748
|
}
|
|
749
|
-
return [2
|
|
749
|
+
return [2, Promise.resolve(contents)];
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
752
|
}); };
|
|
@@ -758,63 +758,63 @@ var deserializeAws_restJson1BulkPublishCommandError = function (output, context)
|
|
|
758
758
|
case 0:
|
|
759
759
|
_a = [__assign({}, output)];
|
|
760
760
|
_j = {};
|
|
761
|
-
return [4
|
|
761
|
+
return [4, parseBody(output.body, context)];
|
|
762
762
|
case 1:
|
|
763
763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
764
764
|
errorCode = "UnknownError";
|
|
765
765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
766
|
_b = errorCode;
|
|
767
767
|
switch (_b) {
|
|
768
|
-
case "AlreadyStreamedException": return [3
|
|
769
|
-
case "com.amazonaws.cognitosync#AlreadyStreamedException": return [3
|
|
770
|
-
case "DuplicateRequestException": return [3
|
|
771
|
-
case "com.amazonaws.cognitosync#DuplicateRequestException": return [3
|
|
772
|
-
case "InternalErrorException": return [3
|
|
773
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
774
|
-
case "InvalidParameterException": return [3
|
|
775
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
776
|
-
case "NotAuthorizedException": return [3
|
|
777
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
778
|
-
case "ResourceNotFoundException": return [3
|
|
779
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
780
|
-
}
|
|
781
|
-
return [3
|
|
768
|
+
case "AlreadyStreamedException": return [3, 2];
|
|
769
|
+
case "com.amazonaws.cognitosync#AlreadyStreamedException": return [3, 2];
|
|
770
|
+
case "DuplicateRequestException": return [3, 4];
|
|
771
|
+
case "com.amazonaws.cognitosync#DuplicateRequestException": return [3, 4];
|
|
772
|
+
case "InternalErrorException": return [3, 6];
|
|
773
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 6];
|
|
774
|
+
case "InvalidParameterException": return [3, 8];
|
|
775
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 8];
|
|
776
|
+
case "NotAuthorizedException": return [3, 10];
|
|
777
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 10];
|
|
778
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
779
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 12];
|
|
780
|
+
}
|
|
781
|
+
return [3, 14];
|
|
782
782
|
case 2:
|
|
783
783
|
_c = [{}];
|
|
784
|
-
return [4
|
|
784
|
+
return [4, deserializeAws_restJson1AlreadyStreamedExceptionResponse(parsedOutput, context)];
|
|
785
785
|
case 3:
|
|
786
786
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
787
|
-
return [3
|
|
787
|
+
return [3, 15];
|
|
788
788
|
case 4:
|
|
789
789
|
_d = [{}];
|
|
790
|
-
return [4
|
|
790
|
+
return [4, deserializeAws_restJson1DuplicateRequestExceptionResponse(parsedOutput, context)];
|
|
791
791
|
case 5:
|
|
792
792
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
793
|
-
return [3
|
|
793
|
+
return [3, 15];
|
|
794
794
|
case 6:
|
|
795
795
|
_e = [{}];
|
|
796
|
-
return [4
|
|
796
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
797
797
|
case 7:
|
|
798
798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
799
|
-
return [3
|
|
799
|
+
return [3, 15];
|
|
800
800
|
case 8:
|
|
801
801
|
_f = [{}];
|
|
802
|
-
return [4
|
|
802
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
803
803
|
case 9:
|
|
804
804
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
805
|
-
return [3
|
|
805
|
+
return [3, 15];
|
|
806
806
|
case 10:
|
|
807
807
|
_g = [{}];
|
|
808
|
-
return [4
|
|
808
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
809
809
|
case 11:
|
|
810
810
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
811
|
-
return [3
|
|
811
|
+
return [3, 15];
|
|
812
812
|
case 12:
|
|
813
813
|
_h = [{}];
|
|
814
|
-
return [4
|
|
814
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
815
815
|
case 13:
|
|
816
816
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
817
|
-
return [3
|
|
817
|
+
return [3, 15];
|
|
818
818
|
case 14:
|
|
819
819
|
parsedBody = parsedOutput.body;
|
|
820
820
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -824,7 +824,7 @@ var deserializeAws_restJson1BulkPublishCommandError = function (output, context)
|
|
|
824
824
|
message = response.message || response.Message || errorCode;
|
|
825
825
|
response.message = message;
|
|
826
826
|
delete response.Message;
|
|
827
|
-
return [2
|
|
827
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
828
828
|
}
|
|
829
829
|
});
|
|
830
830
|
}); };
|
|
@@ -834,7 +834,7 @@ export var deserializeAws_restJson1DeleteDatasetCommand = function (output, cont
|
|
|
834
834
|
switch (_c.label) {
|
|
835
835
|
case 0:
|
|
836
836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
837
|
-
return [2
|
|
837
|
+
return [2, deserializeAws_restJson1DeleteDatasetCommandError(output, context)];
|
|
838
838
|
}
|
|
839
839
|
contents = {
|
|
840
840
|
$metadata: deserializeMetadata(output),
|
|
@@ -842,13 +842,13 @@ export var deserializeAws_restJson1DeleteDatasetCommand = function (output, cont
|
|
|
842
842
|
};
|
|
843
843
|
_a = __expectNonNull;
|
|
844
844
|
_b = __expectObject;
|
|
845
|
-
return [4
|
|
845
|
+
return [4, parseBody(output.body, context)];
|
|
846
846
|
case 1:
|
|
847
847
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
848
848
|
if (data.Dataset !== undefined && data.Dataset !== null) {
|
|
849
849
|
contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
|
|
850
850
|
}
|
|
851
|
-
return [2
|
|
851
|
+
return [2, Promise.resolve(contents)];
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
854
|
}); };
|
|
@@ -860,63 +860,63 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
860
860
|
case 0:
|
|
861
861
|
_a = [__assign({}, output)];
|
|
862
862
|
_j = {};
|
|
863
|
-
return [4
|
|
863
|
+
return [4, parseBody(output.body, context)];
|
|
864
864
|
case 1:
|
|
865
865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
866
866
|
errorCode = "UnknownError";
|
|
867
867
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
868
|
_b = errorCode;
|
|
869
869
|
switch (_b) {
|
|
870
|
-
case "InternalErrorException": return [3
|
|
871
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
872
|
-
case "InvalidParameterException": return [3
|
|
873
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
874
|
-
case "NotAuthorizedException": return [3
|
|
875
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
876
|
-
case "ResourceConflictException": return [3
|
|
877
|
-
case "com.amazonaws.cognitosync#ResourceConflictException": return [3
|
|
878
|
-
case "ResourceNotFoundException": return [3
|
|
879
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
880
|
-
case "TooManyRequestsException": return [3
|
|
881
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
882
|
-
}
|
|
883
|
-
return [3
|
|
870
|
+
case "InternalErrorException": return [3, 2];
|
|
871
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
872
|
+
case "InvalidParameterException": return [3, 4];
|
|
873
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
874
|
+
case "NotAuthorizedException": return [3, 6];
|
|
875
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
876
|
+
case "ResourceConflictException": return [3, 8];
|
|
877
|
+
case "com.amazonaws.cognitosync#ResourceConflictException": return [3, 8];
|
|
878
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
879
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 10];
|
|
880
|
+
case "TooManyRequestsException": return [3, 12];
|
|
881
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 12];
|
|
882
|
+
}
|
|
883
|
+
return [3, 14];
|
|
884
884
|
case 2:
|
|
885
885
|
_c = [{}];
|
|
886
|
-
return [4
|
|
886
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
887
887
|
case 3:
|
|
888
888
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
889
|
-
return [3
|
|
889
|
+
return [3, 15];
|
|
890
890
|
case 4:
|
|
891
891
|
_d = [{}];
|
|
892
|
-
return [4
|
|
892
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
893
893
|
case 5:
|
|
894
894
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
895
|
-
return [3
|
|
895
|
+
return [3, 15];
|
|
896
896
|
case 6:
|
|
897
897
|
_e = [{}];
|
|
898
|
-
return [4
|
|
898
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
899
899
|
case 7:
|
|
900
900
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
901
|
-
return [3
|
|
901
|
+
return [3, 15];
|
|
902
902
|
case 8:
|
|
903
903
|
_f = [{}];
|
|
904
|
-
return [4
|
|
904
|
+
return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
905
905
|
case 9:
|
|
906
906
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
907
|
-
return [3
|
|
907
|
+
return [3, 15];
|
|
908
908
|
case 10:
|
|
909
909
|
_g = [{}];
|
|
910
|
-
return [4
|
|
910
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
911
911
|
case 11:
|
|
912
912
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
913
|
-
return [3
|
|
913
|
+
return [3, 15];
|
|
914
914
|
case 12:
|
|
915
915
|
_h = [{}];
|
|
916
|
-
return [4
|
|
916
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
917
917
|
case 13:
|
|
918
918
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
919
|
-
return [3
|
|
919
|
+
return [3, 15];
|
|
920
920
|
case 14:
|
|
921
921
|
parsedBody = parsedOutput.body;
|
|
922
922
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -926,7 +926,7 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
926
926
|
message = response.message || response.Message || errorCode;
|
|
927
927
|
response.message = message;
|
|
928
928
|
delete response.Message;
|
|
929
|
-
return [2
|
|
929
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
930
930
|
}
|
|
931
931
|
});
|
|
932
932
|
}); };
|
|
@@ -936,7 +936,7 @@ export var deserializeAws_restJson1DescribeDatasetCommand = function (output, co
|
|
|
936
936
|
switch (_c.label) {
|
|
937
937
|
case 0:
|
|
938
938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
939
|
-
return [2
|
|
939
|
+
return [2, deserializeAws_restJson1DescribeDatasetCommandError(output, context)];
|
|
940
940
|
}
|
|
941
941
|
contents = {
|
|
942
942
|
$metadata: deserializeMetadata(output),
|
|
@@ -944,13 +944,13 @@ export var deserializeAws_restJson1DescribeDatasetCommand = function (output, co
|
|
|
944
944
|
};
|
|
945
945
|
_a = __expectNonNull;
|
|
946
946
|
_b = __expectObject;
|
|
947
|
-
return [4
|
|
947
|
+
return [4, parseBody(output.body, context)];
|
|
948
948
|
case 1:
|
|
949
949
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
950
950
|
if (data.Dataset !== undefined && data.Dataset !== null) {
|
|
951
951
|
contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
|
|
952
952
|
}
|
|
953
|
-
return [2
|
|
953
|
+
return [2, Promise.resolve(contents)];
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
956
|
}); };
|
|
@@ -962,55 +962,55 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
962
962
|
case 0:
|
|
963
963
|
_a = [__assign({}, output)];
|
|
964
964
|
_h = {};
|
|
965
|
-
return [4
|
|
965
|
+
return [4, parseBody(output.body, context)];
|
|
966
966
|
case 1:
|
|
967
967
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
968
968
|
errorCode = "UnknownError";
|
|
969
969
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
970
|
_b = errorCode;
|
|
971
971
|
switch (_b) {
|
|
972
|
-
case "InternalErrorException": return [3
|
|
973
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
974
|
-
case "InvalidParameterException": return [3
|
|
975
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
976
|
-
case "NotAuthorizedException": return [3
|
|
977
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
978
|
-
case "ResourceNotFoundException": return [3
|
|
979
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
980
|
-
case "TooManyRequestsException": return [3
|
|
981
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
982
|
-
}
|
|
983
|
-
return [3
|
|
972
|
+
case "InternalErrorException": return [3, 2];
|
|
973
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
974
|
+
case "InvalidParameterException": return [3, 4];
|
|
975
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
976
|
+
case "NotAuthorizedException": return [3, 6];
|
|
977
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
978
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
979
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
980
|
+
case "TooManyRequestsException": return [3, 10];
|
|
981
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 10];
|
|
982
|
+
}
|
|
983
|
+
return [3, 12];
|
|
984
984
|
case 2:
|
|
985
985
|
_c = [{}];
|
|
986
|
-
return [4
|
|
986
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
987
987
|
case 3:
|
|
988
988
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
989
|
-
return [3
|
|
989
|
+
return [3, 13];
|
|
990
990
|
case 4:
|
|
991
991
|
_d = [{}];
|
|
992
|
-
return [4
|
|
992
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
993
993
|
case 5:
|
|
994
994
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
995
|
-
return [3
|
|
995
|
+
return [3, 13];
|
|
996
996
|
case 6:
|
|
997
997
|
_e = [{}];
|
|
998
|
-
return [4
|
|
998
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
999
999
|
case 7:
|
|
1000
1000
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1001
|
-
return [3
|
|
1001
|
+
return [3, 13];
|
|
1002
1002
|
case 8:
|
|
1003
1003
|
_f = [{}];
|
|
1004
|
-
return [4
|
|
1004
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1005
1005
|
case 9:
|
|
1006
1006
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1007
|
-
return [3
|
|
1007
|
+
return [3, 13];
|
|
1008
1008
|
case 10:
|
|
1009
1009
|
_g = [{}];
|
|
1010
|
-
return [4
|
|
1010
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1011
1011
|
case 11:
|
|
1012
1012
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1013
|
-
return [3
|
|
1013
|
+
return [3, 13];
|
|
1014
1014
|
case 12:
|
|
1015
1015
|
parsedBody = parsedOutput.body;
|
|
1016
1016
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1020,7 +1020,7 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
1020
1020
|
message = response.message || response.Message || errorCode;
|
|
1021
1021
|
response.message = message;
|
|
1022
1022
|
delete response.Message;
|
|
1023
|
-
return [2
|
|
1023
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
1026
|
}); };
|
|
@@ -1030,7 +1030,7 @@ export var deserializeAws_restJson1DescribeIdentityPoolUsageCommand = function (
|
|
|
1030
1030
|
switch (_c.label) {
|
|
1031
1031
|
case 0:
|
|
1032
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return [2
|
|
1033
|
+
return [2, deserializeAws_restJson1DescribeIdentityPoolUsageCommandError(output, context)];
|
|
1034
1034
|
}
|
|
1035
1035
|
contents = {
|
|
1036
1036
|
$metadata: deserializeMetadata(output),
|
|
@@ -1038,13 +1038,13 @@ export var deserializeAws_restJson1DescribeIdentityPoolUsageCommand = function (
|
|
|
1038
1038
|
};
|
|
1039
1039
|
_a = __expectNonNull;
|
|
1040
1040
|
_b = __expectObject;
|
|
1041
|
-
return [4
|
|
1041
|
+
return [4, parseBody(output.body, context)];
|
|
1042
1042
|
case 1:
|
|
1043
1043
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1044
1044
|
if (data.IdentityPoolUsage !== undefined && data.IdentityPoolUsage !== null) {
|
|
1045
1045
|
contents.IdentityPoolUsage = deserializeAws_restJson1IdentityPoolUsage(data.IdentityPoolUsage, context);
|
|
1046
1046
|
}
|
|
1047
|
-
return [2
|
|
1047
|
+
return [2, Promise.resolve(contents)];
|
|
1048
1048
|
}
|
|
1049
1049
|
});
|
|
1050
1050
|
}); };
|
|
@@ -1056,55 +1056,55 @@ var deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = function (ou
|
|
|
1056
1056
|
case 0:
|
|
1057
1057
|
_a = [__assign({}, output)];
|
|
1058
1058
|
_h = {};
|
|
1059
|
-
return [4
|
|
1059
|
+
return [4, parseBody(output.body, context)];
|
|
1060
1060
|
case 1:
|
|
1061
1061
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1062
1062
|
errorCode = "UnknownError";
|
|
1063
1063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1064
|
_b = errorCode;
|
|
1065
1065
|
switch (_b) {
|
|
1066
|
-
case "InternalErrorException": return [3
|
|
1067
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1068
|
-
case "InvalidParameterException": return [3
|
|
1069
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1070
|
-
case "NotAuthorizedException": return [3
|
|
1071
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1072
|
-
case "ResourceNotFoundException": return [3
|
|
1073
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1074
|
-
case "TooManyRequestsException": return [3
|
|
1075
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1076
|
-
}
|
|
1077
|
-
return [3
|
|
1066
|
+
case "InternalErrorException": return [3, 2];
|
|
1067
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1068
|
+
case "InvalidParameterException": return [3, 4];
|
|
1069
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1070
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1071
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1072
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1073
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
1074
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1075
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 10];
|
|
1076
|
+
}
|
|
1077
|
+
return [3, 12];
|
|
1078
1078
|
case 2:
|
|
1079
1079
|
_c = [{}];
|
|
1080
|
-
return [4
|
|
1080
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1081
1081
|
case 3:
|
|
1082
1082
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1083
|
-
return [3
|
|
1083
|
+
return [3, 13];
|
|
1084
1084
|
case 4:
|
|
1085
1085
|
_d = [{}];
|
|
1086
|
-
return [4
|
|
1086
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1087
1087
|
case 5:
|
|
1088
1088
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1089
|
-
return [3
|
|
1089
|
+
return [3, 13];
|
|
1090
1090
|
case 6:
|
|
1091
1091
|
_e = [{}];
|
|
1092
|
-
return [4
|
|
1092
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1093
1093
|
case 7:
|
|
1094
1094
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1095
|
-
return [3
|
|
1095
|
+
return [3, 13];
|
|
1096
1096
|
case 8:
|
|
1097
1097
|
_f = [{}];
|
|
1098
|
-
return [4
|
|
1098
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1099
1099
|
case 9:
|
|
1100
1100
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1101
|
-
return [3
|
|
1101
|
+
return [3, 13];
|
|
1102
1102
|
case 10:
|
|
1103
1103
|
_g = [{}];
|
|
1104
|
-
return [4
|
|
1104
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1105
1105
|
case 11:
|
|
1106
1106
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1107
|
-
return [3
|
|
1107
|
+
return [3, 13];
|
|
1108
1108
|
case 12:
|
|
1109
1109
|
parsedBody = parsedOutput.body;
|
|
1110
1110
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1114,7 +1114,7 @@ var deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = function (ou
|
|
|
1114
1114
|
message = response.message || response.Message || errorCode;
|
|
1115
1115
|
response.message = message;
|
|
1116
1116
|
delete response.Message;
|
|
1117
|
-
return [2
|
|
1117
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1118
1118
|
}
|
|
1119
1119
|
});
|
|
1120
1120
|
}); };
|
|
@@ -1124,7 +1124,7 @@ export var deserializeAws_restJson1DescribeIdentityUsageCommand = function (outp
|
|
|
1124
1124
|
switch (_c.label) {
|
|
1125
1125
|
case 0:
|
|
1126
1126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1127
|
-
return [2
|
|
1127
|
+
return [2, deserializeAws_restJson1DescribeIdentityUsageCommandError(output, context)];
|
|
1128
1128
|
}
|
|
1129
1129
|
contents = {
|
|
1130
1130
|
$metadata: deserializeMetadata(output),
|
|
@@ -1132,13 +1132,13 @@ export var deserializeAws_restJson1DescribeIdentityUsageCommand = function (outp
|
|
|
1132
1132
|
};
|
|
1133
1133
|
_a = __expectNonNull;
|
|
1134
1134
|
_b = __expectObject;
|
|
1135
|
-
return [4
|
|
1135
|
+
return [4, parseBody(output.body, context)];
|
|
1136
1136
|
case 1:
|
|
1137
1137
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1138
1138
|
if (data.IdentityUsage !== undefined && data.IdentityUsage !== null) {
|
|
1139
1139
|
contents.IdentityUsage = deserializeAws_restJson1IdentityUsage(data.IdentityUsage, context);
|
|
1140
1140
|
}
|
|
1141
|
-
return [2
|
|
1141
|
+
return [2, Promise.resolve(contents)];
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
1144
|
}); };
|
|
@@ -1150,55 +1150,55 @@ var deserializeAws_restJson1DescribeIdentityUsageCommandError = function (output
|
|
|
1150
1150
|
case 0:
|
|
1151
1151
|
_a = [__assign({}, output)];
|
|
1152
1152
|
_h = {};
|
|
1153
|
-
return [4
|
|
1153
|
+
return [4, parseBody(output.body, context)];
|
|
1154
1154
|
case 1:
|
|
1155
1155
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1156
1156
|
errorCode = "UnknownError";
|
|
1157
1157
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
1158
|
_b = errorCode;
|
|
1159
1159
|
switch (_b) {
|
|
1160
|
-
case "InternalErrorException": return [3
|
|
1161
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1162
|
-
case "InvalidParameterException": return [3
|
|
1163
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1164
|
-
case "NotAuthorizedException": return [3
|
|
1165
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1166
|
-
case "ResourceNotFoundException": return [3
|
|
1167
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1168
|
-
case "TooManyRequestsException": return [3
|
|
1169
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1170
|
-
}
|
|
1171
|
-
return [3
|
|
1160
|
+
case "InternalErrorException": return [3, 2];
|
|
1161
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1162
|
+
case "InvalidParameterException": return [3, 4];
|
|
1163
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1164
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1165
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1166
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1167
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
1168
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1169
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 10];
|
|
1170
|
+
}
|
|
1171
|
+
return [3, 12];
|
|
1172
1172
|
case 2:
|
|
1173
1173
|
_c = [{}];
|
|
1174
|
-
return [4
|
|
1174
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1175
1175
|
case 3:
|
|
1176
1176
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1177
|
-
return [3
|
|
1177
|
+
return [3, 13];
|
|
1178
1178
|
case 4:
|
|
1179
1179
|
_d = [{}];
|
|
1180
|
-
return [4
|
|
1180
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1181
1181
|
case 5:
|
|
1182
1182
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1183
|
-
return [3
|
|
1183
|
+
return [3, 13];
|
|
1184
1184
|
case 6:
|
|
1185
1185
|
_e = [{}];
|
|
1186
|
-
return [4
|
|
1186
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1187
1187
|
case 7:
|
|
1188
1188
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1189
|
-
return [3
|
|
1189
|
+
return [3, 13];
|
|
1190
1190
|
case 8:
|
|
1191
1191
|
_f = [{}];
|
|
1192
|
-
return [4
|
|
1192
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1193
1193
|
case 9:
|
|
1194
1194
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1195
|
-
return [3
|
|
1195
|
+
return [3, 13];
|
|
1196
1196
|
case 10:
|
|
1197
1197
|
_g = [{}];
|
|
1198
|
-
return [4
|
|
1198
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1199
1199
|
case 11:
|
|
1200
1200
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1201
|
-
return [3
|
|
1201
|
+
return [3, 13];
|
|
1202
1202
|
case 12:
|
|
1203
1203
|
parsedBody = parsedOutput.body;
|
|
1204
1204
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1208,7 +1208,7 @@ var deserializeAws_restJson1DescribeIdentityUsageCommandError = function (output
|
|
|
1208
1208
|
message = response.message || response.Message || errorCode;
|
|
1209
1209
|
response.message = message;
|
|
1210
1210
|
delete response.Message;
|
|
1211
|
-
return [2
|
|
1211
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1212
1212
|
}
|
|
1213
1213
|
});
|
|
1214
1214
|
}); };
|
|
@@ -1218,7 +1218,7 @@ export var deserializeAws_restJson1GetBulkPublishDetailsCommand = function (outp
|
|
|
1218
1218
|
switch (_c.label) {
|
|
1219
1219
|
case 0:
|
|
1220
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return [2
|
|
1221
|
+
return [2, deserializeAws_restJson1GetBulkPublishDetailsCommandError(output, context)];
|
|
1222
1222
|
}
|
|
1223
1223
|
contents = {
|
|
1224
1224
|
$metadata: deserializeMetadata(output),
|
|
@@ -1230,14 +1230,14 @@ export var deserializeAws_restJson1GetBulkPublishDetailsCommand = function (outp
|
|
|
1230
1230
|
};
|
|
1231
1231
|
_a = __expectNonNull;
|
|
1232
1232
|
_b = __expectObject;
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, parseBody(output.body, context)];
|
|
1234
1234
|
case 1:
|
|
1235
1235
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1236
1236
|
if (data.BulkPublishCompleteTime !== undefined && data.BulkPublishCompleteTime !== null) {
|
|
1237
|
-
contents.BulkPublishCompleteTime =
|
|
1237
|
+
contents.BulkPublishCompleteTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.BulkPublishCompleteTime)));
|
|
1238
1238
|
}
|
|
1239
1239
|
if (data.BulkPublishStartTime !== undefined && data.BulkPublishStartTime !== null) {
|
|
1240
|
-
contents.BulkPublishStartTime =
|
|
1240
|
+
contents.BulkPublishStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.BulkPublishStartTime)));
|
|
1241
1241
|
}
|
|
1242
1242
|
if (data.BulkPublishStatus !== undefined && data.BulkPublishStatus !== null) {
|
|
1243
1243
|
contents.BulkPublishStatus = __expectString(data.BulkPublishStatus);
|
|
@@ -1248,7 +1248,7 @@ export var deserializeAws_restJson1GetBulkPublishDetailsCommand = function (outp
|
|
|
1248
1248
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
1249
1249
|
contents.IdentityPoolId = __expectString(data.IdentityPoolId);
|
|
1250
1250
|
}
|
|
1251
|
-
return [2
|
|
1251
|
+
return [2, Promise.resolve(contents)];
|
|
1252
1252
|
}
|
|
1253
1253
|
});
|
|
1254
1254
|
}); };
|
|
@@ -1260,47 +1260,47 @@ var deserializeAws_restJson1GetBulkPublishDetailsCommandError = function (output
|
|
|
1260
1260
|
case 0:
|
|
1261
1261
|
_a = [__assign({}, output)];
|
|
1262
1262
|
_g = {};
|
|
1263
|
-
return [4
|
|
1263
|
+
return [4, parseBody(output.body, context)];
|
|
1264
1264
|
case 1:
|
|
1265
1265
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1266
1266
|
errorCode = "UnknownError";
|
|
1267
1267
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1268
|
_b = errorCode;
|
|
1269
1269
|
switch (_b) {
|
|
1270
|
-
case "InternalErrorException": return [3
|
|
1271
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1272
|
-
case "InvalidParameterException": return [3
|
|
1273
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1274
|
-
case "NotAuthorizedException": return [3
|
|
1275
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1276
|
-
case "ResourceNotFoundException": return [3
|
|
1277
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1278
|
-
}
|
|
1279
|
-
return [3
|
|
1270
|
+
case "InternalErrorException": return [3, 2];
|
|
1271
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1272
|
+
case "InvalidParameterException": return [3, 4];
|
|
1273
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1274
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1275
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1276
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1277
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
1278
|
+
}
|
|
1279
|
+
return [3, 10];
|
|
1280
1280
|
case 2:
|
|
1281
1281
|
_c = [{}];
|
|
1282
|
-
return [4
|
|
1282
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1283
1283
|
case 3:
|
|
1284
1284
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1285
|
-
return [3
|
|
1285
|
+
return [3, 11];
|
|
1286
1286
|
case 4:
|
|
1287
1287
|
_d = [{}];
|
|
1288
|
-
return [4
|
|
1288
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1289
1289
|
case 5:
|
|
1290
1290
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1291
|
-
return [3
|
|
1291
|
+
return [3, 11];
|
|
1292
1292
|
case 6:
|
|
1293
1293
|
_e = [{}];
|
|
1294
|
-
return [4
|
|
1294
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1295
1295
|
case 7:
|
|
1296
1296
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1297
|
-
return [3
|
|
1297
|
+
return [3, 11];
|
|
1298
1298
|
case 8:
|
|
1299
1299
|
_f = [{}];
|
|
1300
|
-
return [4
|
|
1300
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1301
1301
|
case 9:
|
|
1302
1302
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1303
|
-
return [3
|
|
1303
|
+
return [3, 11];
|
|
1304
1304
|
case 10:
|
|
1305
1305
|
parsedBody = parsedOutput.body;
|
|
1306
1306
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1310,7 +1310,7 @@ var deserializeAws_restJson1GetBulkPublishDetailsCommandError = function (output
|
|
|
1310
1310
|
message = response.message || response.Message || errorCode;
|
|
1311
1311
|
response.message = message;
|
|
1312
1312
|
delete response.Message;
|
|
1313
|
-
return [2
|
|
1313
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
}); };
|
|
@@ -1320,7 +1320,7 @@ export var deserializeAws_restJson1GetCognitoEventsCommand = function (output, c
|
|
|
1320
1320
|
switch (_c.label) {
|
|
1321
1321
|
case 0:
|
|
1322
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1323
|
-
return [2
|
|
1323
|
+
return [2, deserializeAws_restJson1GetCognitoEventsCommandError(output, context)];
|
|
1324
1324
|
}
|
|
1325
1325
|
contents = {
|
|
1326
1326
|
$metadata: deserializeMetadata(output),
|
|
@@ -1328,13 +1328,13 @@ export var deserializeAws_restJson1GetCognitoEventsCommand = function (output, c
|
|
|
1328
1328
|
};
|
|
1329
1329
|
_a = __expectNonNull;
|
|
1330
1330
|
_b = __expectObject;
|
|
1331
|
-
return [4
|
|
1331
|
+
return [4, parseBody(output.body, context)];
|
|
1332
1332
|
case 1:
|
|
1333
1333
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1334
1334
|
if (data.Events !== undefined && data.Events !== null) {
|
|
1335
1335
|
contents.Events = deserializeAws_restJson1Events(data.Events, context);
|
|
1336
1336
|
}
|
|
1337
|
-
return [2
|
|
1337
|
+
return [2, Promise.resolve(contents)];
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
1340
1340
|
}); };
|
|
@@ -1346,55 +1346,55 @@ var deserializeAws_restJson1GetCognitoEventsCommandError = function (output, con
|
|
|
1346
1346
|
case 0:
|
|
1347
1347
|
_a = [__assign({}, output)];
|
|
1348
1348
|
_h = {};
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, parseBody(output.body, context)];
|
|
1350
1350
|
case 1:
|
|
1351
1351
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1352
1352
|
errorCode = "UnknownError";
|
|
1353
1353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1354
|
_b = errorCode;
|
|
1355
1355
|
switch (_b) {
|
|
1356
|
-
case "InternalErrorException": return [3
|
|
1357
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1358
|
-
case "InvalidParameterException": return [3
|
|
1359
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1360
|
-
case "NotAuthorizedException": return [3
|
|
1361
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1362
|
-
case "ResourceNotFoundException": return [3
|
|
1363
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1364
|
-
case "TooManyRequestsException": return [3
|
|
1365
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1366
|
-
}
|
|
1367
|
-
return [3
|
|
1356
|
+
case "InternalErrorException": return [3, 2];
|
|
1357
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1358
|
+
case "InvalidParameterException": return [3, 4];
|
|
1359
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1360
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1361
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1362
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1363
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
1364
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1365
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 10];
|
|
1366
|
+
}
|
|
1367
|
+
return [3, 12];
|
|
1368
1368
|
case 2:
|
|
1369
1369
|
_c = [{}];
|
|
1370
|
-
return [4
|
|
1370
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1371
1371
|
case 3:
|
|
1372
1372
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1373
|
-
return [3
|
|
1373
|
+
return [3, 13];
|
|
1374
1374
|
case 4:
|
|
1375
1375
|
_d = [{}];
|
|
1376
|
-
return [4
|
|
1376
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1377
1377
|
case 5:
|
|
1378
1378
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1379
|
-
return [3
|
|
1379
|
+
return [3, 13];
|
|
1380
1380
|
case 6:
|
|
1381
1381
|
_e = [{}];
|
|
1382
|
-
return [4
|
|
1382
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1383
1383
|
case 7:
|
|
1384
1384
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1385
|
-
return [3
|
|
1385
|
+
return [3, 13];
|
|
1386
1386
|
case 8:
|
|
1387
1387
|
_f = [{}];
|
|
1388
|
-
return [4
|
|
1388
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1389
1389
|
case 9:
|
|
1390
1390
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1391
|
-
return [3
|
|
1391
|
+
return [3, 13];
|
|
1392
1392
|
case 10:
|
|
1393
1393
|
_g = [{}];
|
|
1394
|
-
return [4
|
|
1394
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1395
1395
|
case 11:
|
|
1396
1396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1397
|
-
return [3
|
|
1397
|
+
return [3, 13];
|
|
1398
1398
|
case 12:
|
|
1399
1399
|
parsedBody = parsedOutput.body;
|
|
1400
1400
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1404,7 +1404,7 @@ var deserializeAws_restJson1GetCognitoEventsCommandError = function (output, con
|
|
|
1404
1404
|
message = response.message || response.Message || errorCode;
|
|
1405
1405
|
response.message = message;
|
|
1406
1406
|
delete response.Message;
|
|
1407
|
-
return [2
|
|
1407
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1408
1408
|
}
|
|
1409
1409
|
});
|
|
1410
1410
|
}); };
|
|
@@ -1414,7 +1414,7 @@ export var deserializeAws_restJson1GetIdentityPoolConfigurationCommand = functio
|
|
|
1414
1414
|
switch (_c.label) {
|
|
1415
1415
|
case 0:
|
|
1416
1416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1417
|
-
return [2
|
|
1417
|
+
return [2, deserializeAws_restJson1GetIdentityPoolConfigurationCommandError(output, context)];
|
|
1418
1418
|
}
|
|
1419
1419
|
contents = {
|
|
1420
1420
|
$metadata: deserializeMetadata(output),
|
|
@@ -1424,7 +1424,7 @@ export var deserializeAws_restJson1GetIdentityPoolConfigurationCommand = functio
|
|
|
1424
1424
|
};
|
|
1425
1425
|
_a = __expectNonNull;
|
|
1426
1426
|
_b = __expectObject;
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, parseBody(output.body, context)];
|
|
1428
1428
|
case 1:
|
|
1429
1429
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1430
1430
|
if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
|
|
@@ -1436,7 +1436,7 @@ export var deserializeAws_restJson1GetIdentityPoolConfigurationCommand = functio
|
|
|
1436
1436
|
if (data.PushSync !== undefined && data.PushSync !== null) {
|
|
1437
1437
|
contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
|
|
1438
1438
|
}
|
|
1439
|
-
return [2
|
|
1439
|
+
return [2, Promise.resolve(contents)];
|
|
1440
1440
|
}
|
|
1441
1441
|
});
|
|
1442
1442
|
}); };
|
|
@@ -1448,55 +1448,55 @@ var deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = function
|
|
|
1448
1448
|
case 0:
|
|
1449
1449
|
_a = [__assign({}, output)];
|
|
1450
1450
|
_h = {};
|
|
1451
|
-
return [4
|
|
1451
|
+
return [4, parseBody(output.body, context)];
|
|
1452
1452
|
case 1:
|
|
1453
1453
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1454
1454
|
errorCode = "UnknownError";
|
|
1455
1455
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1456
|
_b = errorCode;
|
|
1457
1457
|
switch (_b) {
|
|
1458
|
-
case "InternalErrorException": return [3
|
|
1459
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1460
|
-
case "InvalidParameterException": return [3
|
|
1461
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1462
|
-
case "NotAuthorizedException": return [3
|
|
1463
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1464
|
-
case "ResourceNotFoundException": return [3
|
|
1465
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1466
|
-
case "TooManyRequestsException": return [3
|
|
1467
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1468
|
-
}
|
|
1469
|
-
return [3
|
|
1458
|
+
case "InternalErrorException": return [3, 2];
|
|
1459
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1460
|
+
case "InvalidParameterException": return [3, 4];
|
|
1461
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1462
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1463
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1464
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1465
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
1466
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1467
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 10];
|
|
1468
|
+
}
|
|
1469
|
+
return [3, 12];
|
|
1470
1470
|
case 2:
|
|
1471
1471
|
_c = [{}];
|
|
1472
|
-
return [4
|
|
1472
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1473
1473
|
case 3:
|
|
1474
1474
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1475
|
-
return [3
|
|
1475
|
+
return [3, 13];
|
|
1476
1476
|
case 4:
|
|
1477
1477
|
_d = [{}];
|
|
1478
|
-
return [4
|
|
1478
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1479
1479
|
case 5:
|
|
1480
1480
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1481
|
-
return [3
|
|
1481
|
+
return [3, 13];
|
|
1482
1482
|
case 6:
|
|
1483
1483
|
_e = [{}];
|
|
1484
|
-
return [4
|
|
1484
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1485
1485
|
case 7:
|
|
1486
1486
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1487
|
-
return [3
|
|
1487
|
+
return [3, 13];
|
|
1488
1488
|
case 8:
|
|
1489
1489
|
_f = [{}];
|
|
1490
|
-
return [4
|
|
1490
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1491
1491
|
case 9:
|
|
1492
1492
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1493
|
-
return [3
|
|
1493
|
+
return [3, 13];
|
|
1494
1494
|
case 10:
|
|
1495
1495
|
_g = [{}];
|
|
1496
|
-
return [4
|
|
1496
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1497
1497
|
case 11:
|
|
1498
1498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1499
|
-
return [3
|
|
1499
|
+
return [3, 13];
|
|
1500
1500
|
case 12:
|
|
1501
1501
|
parsedBody = parsedOutput.body;
|
|
1502
1502
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1506,7 +1506,7 @@ var deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = function
|
|
|
1506
1506
|
message = response.message || response.Message || errorCode;
|
|
1507
1507
|
response.message = message;
|
|
1508
1508
|
delete response.Message;
|
|
1509
|
-
return [2
|
|
1509
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1510
1510
|
}
|
|
1511
1511
|
});
|
|
1512
1512
|
}); };
|
|
@@ -1516,7 +1516,7 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
1516
1516
|
switch (_c.label) {
|
|
1517
1517
|
case 0:
|
|
1518
1518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return [2
|
|
1519
|
+
return [2, deserializeAws_restJson1ListDatasetsCommandError(output, context)];
|
|
1520
1520
|
}
|
|
1521
1521
|
contents = {
|
|
1522
1522
|
$metadata: deserializeMetadata(output),
|
|
@@ -1526,7 +1526,7 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
1526
1526
|
};
|
|
1527
1527
|
_a = __expectNonNull;
|
|
1528
1528
|
_b = __expectObject;
|
|
1529
|
-
return [4
|
|
1529
|
+
return [4, parseBody(output.body, context)];
|
|
1530
1530
|
case 1:
|
|
1531
1531
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1532
1532
|
if (data.Count !== undefined && data.Count !== null) {
|
|
@@ -1538,7 +1538,7 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
1538
1538
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1539
1539
|
contents.NextToken = __expectString(data.NextToken);
|
|
1540
1540
|
}
|
|
1541
|
-
return [2
|
|
1541
|
+
return [2, Promise.resolve(contents)];
|
|
1542
1542
|
}
|
|
1543
1543
|
});
|
|
1544
1544
|
}); };
|
|
@@ -1550,47 +1550,47 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
1550
1550
|
case 0:
|
|
1551
1551
|
_a = [__assign({}, output)];
|
|
1552
1552
|
_g = {};
|
|
1553
|
-
return [4
|
|
1553
|
+
return [4, parseBody(output.body, context)];
|
|
1554
1554
|
case 1:
|
|
1555
1555
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1556
1556
|
errorCode = "UnknownError";
|
|
1557
1557
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
1558
|
_b = errorCode;
|
|
1559
1559
|
switch (_b) {
|
|
1560
|
-
case "InternalErrorException": return [3
|
|
1561
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1562
|
-
case "InvalidParameterException": return [3
|
|
1563
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1564
|
-
case "NotAuthorizedException": return [3
|
|
1565
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1566
|
-
case "TooManyRequestsException": return [3
|
|
1567
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1568
|
-
}
|
|
1569
|
-
return [3
|
|
1560
|
+
case "InternalErrorException": return [3, 2];
|
|
1561
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1562
|
+
case "InvalidParameterException": return [3, 4];
|
|
1563
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1564
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1565
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1566
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1567
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 8];
|
|
1568
|
+
}
|
|
1569
|
+
return [3, 10];
|
|
1570
1570
|
case 2:
|
|
1571
1571
|
_c = [{}];
|
|
1572
|
-
return [4
|
|
1572
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1573
1573
|
case 3:
|
|
1574
1574
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1575
|
-
return [3
|
|
1575
|
+
return [3, 11];
|
|
1576
1576
|
case 4:
|
|
1577
1577
|
_d = [{}];
|
|
1578
|
-
return [4
|
|
1578
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1579
1579
|
case 5:
|
|
1580
1580
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1581
|
-
return [3
|
|
1581
|
+
return [3, 11];
|
|
1582
1582
|
case 6:
|
|
1583
1583
|
_e = [{}];
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1585
1585
|
case 7:
|
|
1586
1586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1587
|
-
return [3
|
|
1587
|
+
return [3, 11];
|
|
1588
1588
|
case 8:
|
|
1589
1589
|
_f = [{}];
|
|
1590
|
-
return [4
|
|
1590
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1591
1591
|
case 9:
|
|
1592
1592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
-
return [3
|
|
1593
|
+
return [3, 11];
|
|
1594
1594
|
case 10:
|
|
1595
1595
|
parsedBody = parsedOutput.body;
|
|
1596
1596
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1600,7 +1600,7 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
1600
1600
|
message = response.message || response.Message || errorCode;
|
|
1601
1601
|
response.message = message;
|
|
1602
1602
|
delete response.Message;
|
|
1603
|
-
return [2
|
|
1603
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1604
1604
|
}
|
|
1605
1605
|
});
|
|
1606
1606
|
}); };
|
|
@@ -1610,7 +1610,7 @@ export var deserializeAws_restJson1ListIdentityPoolUsageCommand = function (outp
|
|
|
1610
1610
|
switch (_c.label) {
|
|
1611
1611
|
case 0:
|
|
1612
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1613
|
-
return [2
|
|
1613
|
+
return [2, deserializeAws_restJson1ListIdentityPoolUsageCommandError(output, context)];
|
|
1614
1614
|
}
|
|
1615
1615
|
contents = {
|
|
1616
1616
|
$metadata: deserializeMetadata(output),
|
|
@@ -1621,7 +1621,7 @@ export var deserializeAws_restJson1ListIdentityPoolUsageCommand = function (outp
|
|
|
1621
1621
|
};
|
|
1622
1622
|
_a = __expectNonNull;
|
|
1623
1623
|
_b = __expectObject;
|
|
1624
|
-
return [4
|
|
1624
|
+
return [4, parseBody(output.body, context)];
|
|
1625
1625
|
case 1:
|
|
1626
1626
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1627
1627
|
if (data.Count !== undefined && data.Count !== null) {
|
|
@@ -1636,7 +1636,7 @@ export var deserializeAws_restJson1ListIdentityPoolUsageCommand = function (outp
|
|
|
1636
1636
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1637
1637
|
contents.NextToken = __expectString(data.NextToken);
|
|
1638
1638
|
}
|
|
1639
|
-
return [2
|
|
1639
|
+
return [2, Promise.resolve(contents)];
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
1642
|
}); };
|
|
@@ -1648,47 +1648,47 @@ var deserializeAws_restJson1ListIdentityPoolUsageCommandError = function (output
|
|
|
1648
1648
|
case 0:
|
|
1649
1649
|
_a = [__assign({}, output)];
|
|
1650
1650
|
_g = {};
|
|
1651
|
-
return [4
|
|
1651
|
+
return [4, parseBody(output.body, context)];
|
|
1652
1652
|
case 1:
|
|
1653
1653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1654
1654
|
errorCode = "UnknownError";
|
|
1655
1655
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
1656
|
_b = errorCode;
|
|
1657
1657
|
switch (_b) {
|
|
1658
|
-
case "InternalErrorException": return [3
|
|
1659
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1660
|
-
case "InvalidParameterException": return [3
|
|
1661
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1662
|
-
case "NotAuthorizedException": return [3
|
|
1663
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1664
|
-
case "TooManyRequestsException": return [3
|
|
1665
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1666
|
-
}
|
|
1667
|
-
return [3
|
|
1658
|
+
case "InternalErrorException": return [3, 2];
|
|
1659
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1660
|
+
case "InvalidParameterException": return [3, 4];
|
|
1661
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1662
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1663
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1664
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1665
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 8];
|
|
1666
|
+
}
|
|
1667
|
+
return [3, 10];
|
|
1668
1668
|
case 2:
|
|
1669
1669
|
_c = [{}];
|
|
1670
|
-
return [4
|
|
1670
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1671
1671
|
case 3:
|
|
1672
1672
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1673
|
-
return [3
|
|
1673
|
+
return [3, 11];
|
|
1674
1674
|
case 4:
|
|
1675
1675
|
_d = [{}];
|
|
1676
|
-
return [4
|
|
1676
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1677
1677
|
case 5:
|
|
1678
1678
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1679
|
-
return [3
|
|
1679
|
+
return [3, 11];
|
|
1680
1680
|
case 6:
|
|
1681
1681
|
_e = [{}];
|
|
1682
|
-
return [4
|
|
1682
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1683
1683
|
case 7:
|
|
1684
1684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1685
|
-
return [3
|
|
1685
|
+
return [3, 11];
|
|
1686
1686
|
case 8:
|
|
1687
1687
|
_f = [{}];
|
|
1688
|
-
return [4
|
|
1688
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1689
1689
|
case 9:
|
|
1690
1690
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1691
|
-
return [3
|
|
1691
|
+
return [3, 11];
|
|
1692
1692
|
case 10:
|
|
1693
1693
|
parsedBody = parsedOutput.body;
|
|
1694
1694
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1698,7 +1698,7 @@ var deserializeAws_restJson1ListIdentityPoolUsageCommandError = function (output
|
|
|
1698
1698
|
message = response.message || response.Message || errorCode;
|
|
1699
1699
|
response.message = message;
|
|
1700
1700
|
delete response.Message;
|
|
1701
|
-
return [2
|
|
1701
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1702
1702
|
}
|
|
1703
1703
|
});
|
|
1704
1704
|
}); };
|
|
@@ -1708,7 +1708,7 @@ export var deserializeAws_restJson1ListRecordsCommand = function (output, contex
|
|
|
1708
1708
|
switch (_c.label) {
|
|
1709
1709
|
case 0:
|
|
1710
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1711
|
-
return [2
|
|
1711
|
+
return [2, deserializeAws_restJson1ListRecordsCommandError(output, context)];
|
|
1712
1712
|
}
|
|
1713
1713
|
contents = {
|
|
1714
1714
|
$metadata: deserializeMetadata(output),
|
|
@@ -1724,7 +1724,7 @@ export var deserializeAws_restJson1ListRecordsCommand = function (output, contex
|
|
|
1724
1724
|
};
|
|
1725
1725
|
_a = __expectNonNull;
|
|
1726
1726
|
_b = __expectObject;
|
|
1727
|
-
return [4
|
|
1727
|
+
return [4, parseBody(output.body, context)];
|
|
1728
1728
|
case 1:
|
|
1729
1729
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1730
1730
|
if (data.Count !== undefined && data.Count !== null) {
|
|
@@ -1754,7 +1754,7 @@ export var deserializeAws_restJson1ListRecordsCommand = function (output, contex
|
|
|
1754
1754
|
if (data.SyncSessionToken !== undefined && data.SyncSessionToken !== null) {
|
|
1755
1755
|
contents.SyncSessionToken = __expectString(data.SyncSessionToken);
|
|
1756
1756
|
}
|
|
1757
|
-
return [2
|
|
1757
|
+
return [2, Promise.resolve(contents)];
|
|
1758
1758
|
}
|
|
1759
1759
|
});
|
|
1760
1760
|
}); };
|
|
@@ -1766,47 +1766,47 @@ var deserializeAws_restJson1ListRecordsCommandError = function (output, context)
|
|
|
1766
1766
|
case 0:
|
|
1767
1767
|
_a = [__assign({}, output)];
|
|
1768
1768
|
_g = {};
|
|
1769
|
-
return [4
|
|
1769
|
+
return [4, parseBody(output.body, context)];
|
|
1770
1770
|
case 1:
|
|
1771
1771
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1772
1772
|
errorCode = "UnknownError";
|
|
1773
1773
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
1774
|
_b = errorCode;
|
|
1775
1775
|
switch (_b) {
|
|
1776
|
-
case "InternalErrorException": return [3
|
|
1777
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1778
|
-
case "InvalidParameterException": return [3
|
|
1779
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1780
|
-
case "NotAuthorizedException": return [3
|
|
1781
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1782
|
-
case "TooManyRequestsException": return [3
|
|
1783
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1784
|
-
}
|
|
1785
|
-
return [3
|
|
1776
|
+
case "InternalErrorException": return [3, 2];
|
|
1777
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1778
|
+
case "InvalidParameterException": return [3, 4];
|
|
1779
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1780
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1781
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1782
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1783
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 8];
|
|
1784
|
+
}
|
|
1785
|
+
return [3, 10];
|
|
1786
1786
|
case 2:
|
|
1787
1787
|
_c = [{}];
|
|
1788
|
-
return [4
|
|
1788
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1789
1789
|
case 3:
|
|
1790
1790
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1791
|
-
return [3
|
|
1791
|
+
return [3, 11];
|
|
1792
1792
|
case 4:
|
|
1793
1793
|
_d = [{}];
|
|
1794
|
-
return [4
|
|
1794
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1795
1795
|
case 5:
|
|
1796
1796
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1797
|
-
return [3
|
|
1797
|
+
return [3, 11];
|
|
1798
1798
|
case 6:
|
|
1799
1799
|
_e = [{}];
|
|
1800
|
-
return [4
|
|
1800
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1801
1801
|
case 7:
|
|
1802
1802
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1803
|
-
return [3
|
|
1803
|
+
return [3, 11];
|
|
1804
1804
|
case 8:
|
|
1805
1805
|
_f = [{}];
|
|
1806
|
-
return [4
|
|
1806
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1807
1807
|
case 9:
|
|
1808
1808
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1809
|
-
return [3
|
|
1809
|
+
return [3, 11];
|
|
1810
1810
|
case 10:
|
|
1811
1811
|
parsedBody = parsedOutput.body;
|
|
1812
1812
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1816,7 +1816,7 @@ var deserializeAws_restJson1ListRecordsCommandError = function (output, context)
|
|
|
1816
1816
|
message = response.message || response.Message || errorCode;
|
|
1817
1817
|
response.message = message;
|
|
1818
1818
|
delete response.Message;
|
|
1819
|
-
return [2
|
|
1819
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1820
1820
|
}
|
|
1821
1821
|
});
|
|
1822
1822
|
}); };
|
|
@@ -1826,7 +1826,7 @@ export var deserializeAws_restJson1RegisterDeviceCommand = function (output, con
|
|
|
1826
1826
|
switch (_c.label) {
|
|
1827
1827
|
case 0:
|
|
1828
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1829
|
-
return [2
|
|
1829
|
+
return [2, deserializeAws_restJson1RegisterDeviceCommandError(output, context)];
|
|
1830
1830
|
}
|
|
1831
1831
|
contents = {
|
|
1832
1832
|
$metadata: deserializeMetadata(output),
|
|
@@ -1834,13 +1834,13 @@ export var deserializeAws_restJson1RegisterDeviceCommand = function (output, con
|
|
|
1834
1834
|
};
|
|
1835
1835
|
_a = __expectNonNull;
|
|
1836
1836
|
_b = __expectObject;
|
|
1837
|
-
return [4
|
|
1837
|
+
return [4, parseBody(output.body, context)];
|
|
1838
1838
|
case 1:
|
|
1839
1839
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1840
1840
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
1841
1841
|
contents.DeviceId = __expectString(data.DeviceId);
|
|
1842
1842
|
}
|
|
1843
|
-
return [2
|
|
1843
|
+
return [2, Promise.resolve(contents)];
|
|
1844
1844
|
}
|
|
1845
1845
|
});
|
|
1846
1846
|
}); };
|
|
@@ -1852,63 +1852,63 @@ var deserializeAws_restJson1RegisterDeviceCommandError = function (output, conte
|
|
|
1852
1852
|
case 0:
|
|
1853
1853
|
_a = [__assign({}, output)];
|
|
1854
1854
|
_j = {};
|
|
1855
|
-
return [4
|
|
1855
|
+
return [4, parseBody(output.body, context)];
|
|
1856
1856
|
case 1:
|
|
1857
1857
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1858
1858
|
errorCode = "UnknownError";
|
|
1859
1859
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
1860
|
_b = errorCode;
|
|
1861
1861
|
switch (_b) {
|
|
1862
|
-
case "InternalErrorException": return [3
|
|
1863
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1864
|
-
case "InvalidConfigurationException": return [3
|
|
1865
|
-
case "com.amazonaws.cognitosync#InvalidConfigurationException": return [3
|
|
1866
|
-
case "InvalidParameterException": return [3
|
|
1867
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1868
|
-
case "NotAuthorizedException": return [3
|
|
1869
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1870
|
-
case "ResourceNotFoundException": return [3
|
|
1871
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1872
|
-
case "TooManyRequestsException": return [3
|
|
1873
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1874
|
-
}
|
|
1875
|
-
return [3
|
|
1862
|
+
case "InternalErrorException": return [3, 2];
|
|
1863
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1864
|
+
case "InvalidConfigurationException": return [3, 4];
|
|
1865
|
+
case "com.amazonaws.cognitosync#InvalidConfigurationException": return [3, 4];
|
|
1866
|
+
case "InvalidParameterException": return [3, 6];
|
|
1867
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 6];
|
|
1868
|
+
case "NotAuthorizedException": return [3, 8];
|
|
1869
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 8];
|
|
1870
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1871
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 10];
|
|
1872
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1873
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 12];
|
|
1874
|
+
}
|
|
1875
|
+
return [3, 14];
|
|
1876
1876
|
case 2:
|
|
1877
1877
|
_c = [{}];
|
|
1878
|
-
return [4
|
|
1878
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1879
1879
|
case 3:
|
|
1880
1880
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1881
|
-
return [3
|
|
1881
|
+
return [3, 15];
|
|
1882
1882
|
case 4:
|
|
1883
1883
|
_d = [{}];
|
|
1884
|
-
return [4
|
|
1884
|
+
return [4, deserializeAws_restJson1InvalidConfigurationExceptionResponse(parsedOutput, context)];
|
|
1885
1885
|
case 5:
|
|
1886
1886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1887
|
-
return [3
|
|
1887
|
+
return [3, 15];
|
|
1888
1888
|
case 6:
|
|
1889
1889
|
_e = [{}];
|
|
1890
|
-
return [4
|
|
1890
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1891
1891
|
case 7:
|
|
1892
1892
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1893
|
-
return [3
|
|
1893
|
+
return [3, 15];
|
|
1894
1894
|
case 8:
|
|
1895
1895
|
_f = [{}];
|
|
1896
|
-
return [4
|
|
1896
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1897
1897
|
case 9:
|
|
1898
1898
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1899
|
-
return [3
|
|
1899
|
+
return [3, 15];
|
|
1900
1900
|
case 10:
|
|
1901
1901
|
_g = [{}];
|
|
1902
|
-
return [4
|
|
1902
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1903
1903
|
case 11:
|
|
1904
1904
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1905
|
-
return [3
|
|
1905
|
+
return [3, 15];
|
|
1906
1906
|
case 12:
|
|
1907
1907
|
_h = [{}];
|
|
1908
|
-
return [4
|
|
1908
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1909
1909
|
case 13:
|
|
1910
1910
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1911
|
-
return [3
|
|
1911
|
+
return [3, 15];
|
|
1912
1912
|
case 14:
|
|
1913
1913
|
parsedBody = parsedOutput.body;
|
|
1914
1914
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1918,7 +1918,7 @@ var deserializeAws_restJson1RegisterDeviceCommandError = function (output, conte
|
|
|
1918
1918
|
message = response.message || response.Message || errorCode;
|
|
1919
1919
|
response.message = message;
|
|
1920
1920
|
delete response.Message;
|
|
1921
|
-
return [2
|
|
1921
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
1924
|
}); };
|
|
@@ -1928,15 +1928,15 @@ export var deserializeAws_restJson1SetCognitoEventsCommand = function (output, c
|
|
|
1928
1928
|
switch (_a.label) {
|
|
1929
1929
|
case 0:
|
|
1930
1930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
|
-
return [2
|
|
1931
|
+
return [2, deserializeAws_restJson1SetCognitoEventsCommandError(output, context)];
|
|
1932
1932
|
}
|
|
1933
1933
|
contents = {
|
|
1934
1934
|
$metadata: deserializeMetadata(output),
|
|
1935
1935
|
};
|
|
1936
|
-
return [4
|
|
1936
|
+
return [4, collectBody(output.body, context)];
|
|
1937
1937
|
case 1:
|
|
1938
1938
|
_a.sent();
|
|
1939
|
-
return [2
|
|
1939
|
+
return [2, Promise.resolve(contents)];
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
1942
|
}); };
|
|
@@ -1948,55 +1948,55 @@ var deserializeAws_restJson1SetCognitoEventsCommandError = function (output, con
|
|
|
1948
1948
|
case 0:
|
|
1949
1949
|
_a = [__assign({}, output)];
|
|
1950
1950
|
_h = {};
|
|
1951
|
-
return [4
|
|
1951
|
+
return [4, parseBody(output.body, context)];
|
|
1952
1952
|
case 1:
|
|
1953
1953
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1954
1954
|
errorCode = "UnknownError";
|
|
1955
1955
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1956
|
_b = errorCode;
|
|
1957
1957
|
switch (_b) {
|
|
1958
|
-
case "InternalErrorException": return [3
|
|
1959
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
1960
|
-
case "InvalidParameterException": return [3
|
|
1961
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
1962
|
-
case "NotAuthorizedException": return [3
|
|
1963
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
1964
|
-
case "ResourceNotFoundException": return [3
|
|
1965
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
1966
|
-
case "TooManyRequestsException": return [3
|
|
1967
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
1968
|
-
}
|
|
1969
|
-
return [3
|
|
1958
|
+
case "InternalErrorException": return [3, 2];
|
|
1959
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
1960
|
+
case "InvalidParameterException": return [3, 4];
|
|
1961
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 4];
|
|
1962
|
+
case "NotAuthorizedException": return [3, 6];
|
|
1963
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 6];
|
|
1964
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1965
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 8];
|
|
1966
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1967
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 10];
|
|
1968
|
+
}
|
|
1969
|
+
return [3, 12];
|
|
1970
1970
|
case 2:
|
|
1971
1971
|
_c = [{}];
|
|
1972
|
-
return [4
|
|
1972
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
1973
1973
|
case 3:
|
|
1974
1974
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1975
|
-
return [3
|
|
1975
|
+
return [3, 13];
|
|
1976
1976
|
case 4:
|
|
1977
1977
|
_d = [{}];
|
|
1978
|
-
return [4
|
|
1978
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1979
1979
|
case 5:
|
|
1980
1980
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1981
|
-
return [3
|
|
1981
|
+
return [3, 13];
|
|
1982
1982
|
case 6:
|
|
1983
1983
|
_e = [{}];
|
|
1984
|
-
return [4
|
|
1984
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
1985
1985
|
case 7:
|
|
1986
1986
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1987
|
-
return [3
|
|
1987
|
+
return [3, 13];
|
|
1988
1988
|
case 8:
|
|
1989
1989
|
_f = [{}];
|
|
1990
|
-
return [4
|
|
1990
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1991
1991
|
case 9:
|
|
1992
1992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1993
|
-
return [3
|
|
1993
|
+
return [3, 13];
|
|
1994
1994
|
case 10:
|
|
1995
1995
|
_g = [{}];
|
|
1996
|
-
return [4
|
|
1996
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1997
1997
|
case 11:
|
|
1998
1998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1999
|
-
return [3
|
|
1999
|
+
return [3, 13];
|
|
2000
2000
|
case 12:
|
|
2001
2001
|
parsedBody = parsedOutput.body;
|
|
2002
2002
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2006,7 +2006,7 @@ var deserializeAws_restJson1SetCognitoEventsCommandError = function (output, con
|
|
|
2006
2006
|
message = response.message || response.Message || errorCode;
|
|
2007
2007
|
response.message = message;
|
|
2008
2008
|
delete response.Message;
|
|
2009
|
-
return [2
|
|
2009
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
2012
|
}); };
|
|
@@ -2016,7 +2016,7 @@ export var deserializeAws_restJson1SetIdentityPoolConfigurationCommand = functio
|
|
|
2016
2016
|
switch (_c.label) {
|
|
2017
2017
|
case 0:
|
|
2018
2018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
|
-
return [2
|
|
2019
|
+
return [2, deserializeAws_restJson1SetIdentityPoolConfigurationCommandError(output, context)];
|
|
2020
2020
|
}
|
|
2021
2021
|
contents = {
|
|
2022
2022
|
$metadata: deserializeMetadata(output),
|
|
@@ -2026,7 +2026,7 @@ export var deserializeAws_restJson1SetIdentityPoolConfigurationCommand = functio
|
|
|
2026
2026
|
};
|
|
2027
2027
|
_a = __expectNonNull;
|
|
2028
2028
|
_b = __expectObject;
|
|
2029
|
-
return [4
|
|
2029
|
+
return [4, parseBody(output.body, context)];
|
|
2030
2030
|
case 1:
|
|
2031
2031
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2032
2032
|
if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
|
|
@@ -2038,7 +2038,7 @@ export var deserializeAws_restJson1SetIdentityPoolConfigurationCommand = functio
|
|
|
2038
2038
|
if (data.PushSync !== undefined && data.PushSync !== null) {
|
|
2039
2039
|
contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
|
|
2040
2040
|
}
|
|
2041
|
-
return [2
|
|
2041
|
+
return [2, Promise.resolve(contents)];
|
|
2042
2042
|
}
|
|
2043
2043
|
});
|
|
2044
2044
|
}); };
|
|
@@ -2050,63 +2050,63 @@ var deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = function
|
|
|
2050
2050
|
case 0:
|
|
2051
2051
|
_a = [__assign({}, output)];
|
|
2052
2052
|
_j = {};
|
|
2053
|
-
return [4
|
|
2053
|
+
return [4, parseBody(output.body, context)];
|
|
2054
2054
|
case 1:
|
|
2055
2055
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2056
2056
|
errorCode = "UnknownError";
|
|
2057
2057
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
2058
|
_b = errorCode;
|
|
2059
2059
|
switch (_b) {
|
|
2060
|
-
case "ConcurrentModificationException": return [3
|
|
2061
|
-
case "com.amazonaws.cognitosync#ConcurrentModificationException": return [3
|
|
2062
|
-
case "InternalErrorException": return [3
|
|
2063
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
2064
|
-
case "InvalidParameterException": return [3
|
|
2065
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
2066
|
-
case "NotAuthorizedException": return [3
|
|
2067
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
2068
|
-
case "ResourceNotFoundException": return [3
|
|
2069
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
2070
|
-
case "TooManyRequestsException": return [3
|
|
2071
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
2072
|
-
}
|
|
2073
|
-
return [3
|
|
2060
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2061
|
+
case "com.amazonaws.cognitosync#ConcurrentModificationException": return [3, 2];
|
|
2062
|
+
case "InternalErrorException": return [3, 4];
|
|
2063
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 4];
|
|
2064
|
+
case "InvalidParameterException": return [3, 6];
|
|
2065
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 6];
|
|
2066
|
+
case "NotAuthorizedException": return [3, 8];
|
|
2067
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 8];
|
|
2068
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2069
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 10];
|
|
2070
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2071
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 12];
|
|
2072
|
+
}
|
|
2073
|
+
return [3, 14];
|
|
2074
2074
|
case 2:
|
|
2075
2075
|
_c = [{}];
|
|
2076
|
-
return [4
|
|
2076
|
+
return [4, deserializeAws_restJson1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2077
2077
|
case 3:
|
|
2078
2078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2079
|
-
return [3
|
|
2079
|
+
return [3, 15];
|
|
2080
2080
|
case 4:
|
|
2081
2081
|
_d = [{}];
|
|
2082
|
-
return [4
|
|
2082
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
2083
2083
|
case 5:
|
|
2084
2084
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2085
|
-
return [3
|
|
2085
|
+
return [3, 15];
|
|
2086
2086
|
case 6:
|
|
2087
2087
|
_e = [{}];
|
|
2088
|
-
return [4
|
|
2088
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2089
2089
|
case 7:
|
|
2090
2090
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2091
|
-
return [3
|
|
2091
|
+
return [3, 15];
|
|
2092
2092
|
case 8:
|
|
2093
2093
|
_f = [{}];
|
|
2094
|
-
return [4
|
|
2094
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
2095
2095
|
case 9:
|
|
2096
2096
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2097
|
-
return [3
|
|
2097
|
+
return [3, 15];
|
|
2098
2098
|
case 10:
|
|
2099
2099
|
_g = [{}];
|
|
2100
|
-
return [4
|
|
2100
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2101
2101
|
case 11:
|
|
2102
2102
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2103
|
-
return [3
|
|
2103
|
+
return [3, 15];
|
|
2104
2104
|
case 12:
|
|
2105
2105
|
_h = [{}];
|
|
2106
|
-
return [4
|
|
2106
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2107
2107
|
case 13:
|
|
2108
2108
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2109
|
-
return [3
|
|
2109
|
+
return [3, 15];
|
|
2110
2110
|
case 14:
|
|
2111
2111
|
parsedBody = parsedOutput.body;
|
|
2112
2112
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2116,7 +2116,7 @@ var deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = function
|
|
|
2116
2116
|
message = response.message || response.Message || errorCode;
|
|
2117
2117
|
response.message = message;
|
|
2118
2118
|
delete response.Message;
|
|
2119
|
-
return [2
|
|
2119
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2120
2120
|
}
|
|
2121
2121
|
});
|
|
2122
2122
|
}); };
|
|
@@ -2126,15 +2126,15 @@ export var deserializeAws_restJson1SubscribeToDatasetCommand = function (output,
|
|
|
2126
2126
|
switch (_a.label) {
|
|
2127
2127
|
case 0:
|
|
2128
2128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2129
|
-
return [2
|
|
2129
|
+
return [2, deserializeAws_restJson1SubscribeToDatasetCommandError(output, context)];
|
|
2130
2130
|
}
|
|
2131
2131
|
contents = {
|
|
2132
2132
|
$metadata: deserializeMetadata(output),
|
|
2133
2133
|
};
|
|
2134
|
-
return [4
|
|
2134
|
+
return [4, collectBody(output.body, context)];
|
|
2135
2135
|
case 1:
|
|
2136
2136
|
_a.sent();
|
|
2137
|
-
return [2
|
|
2137
|
+
return [2, Promise.resolve(contents)];
|
|
2138
2138
|
}
|
|
2139
2139
|
});
|
|
2140
2140
|
}); };
|
|
@@ -2146,63 +2146,63 @@ var deserializeAws_restJson1SubscribeToDatasetCommandError = function (output, c
|
|
|
2146
2146
|
case 0:
|
|
2147
2147
|
_a = [__assign({}, output)];
|
|
2148
2148
|
_j = {};
|
|
2149
|
-
return [4
|
|
2149
|
+
return [4, parseBody(output.body, context)];
|
|
2150
2150
|
case 1:
|
|
2151
2151
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2152
2152
|
errorCode = "UnknownError";
|
|
2153
2153
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
2154
|
_b = errorCode;
|
|
2155
2155
|
switch (_b) {
|
|
2156
|
-
case "InternalErrorException": return [3
|
|
2157
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
2158
|
-
case "InvalidConfigurationException": return [3
|
|
2159
|
-
case "com.amazonaws.cognitosync#InvalidConfigurationException": return [3
|
|
2160
|
-
case "InvalidParameterException": return [3
|
|
2161
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
2162
|
-
case "NotAuthorizedException": return [3
|
|
2163
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
2164
|
-
case "ResourceNotFoundException": return [3
|
|
2165
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
2166
|
-
case "TooManyRequestsException": return [3
|
|
2167
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
2168
|
-
}
|
|
2169
|
-
return [3
|
|
2156
|
+
case "InternalErrorException": return [3, 2];
|
|
2157
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
2158
|
+
case "InvalidConfigurationException": return [3, 4];
|
|
2159
|
+
case "com.amazonaws.cognitosync#InvalidConfigurationException": return [3, 4];
|
|
2160
|
+
case "InvalidParameterException": return [3, 6];
|
|
2161
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 6];
|
|
2162
|
+
case "NotAuthorizedException": return [3, 8];
|
|
2163
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 8];
|
|
2164
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2165
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 10];
|
|
2166
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2167
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 12];
|
|
2168
|
+
}
|
|
2169
|
+
return [3, 14];
|
|
2170
2170
|
case 2:
|
|
2171
2171
|
_c = [{}];
|
|
2172
|
-
return [4
|
|
2172
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
2173
2173
|
case 3:
|
|
2174
2174
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2175
|
-
return [3
|
|
2175
|
+
return [3, 15];
|
|
2176
2176
|
case 4:
|
|
2177
2177
|
_d = [{}];
|
|
2178
|
-
return [4
|
|
2178
|
+
return [4, deserializeAws_restJson1InvalidConfigurationExceptionResponse(parsedOutput, context)];
|
|
2179
2179
|
case 5:
|
|
2180
2180
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2181
|
-
return [3
|
|
2181
|
+
return [3, 15];
|
|
2182
2182
|
case 6:
|
|
2183
2183
|
_e = [{}];
|
|
2184
|
-
return [4
|
|
2184
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2185
2185
|
case 7:
|
|
2186
2186
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2187
|
-
return [3
|
|
2187
|
+
return [3, 15];
|
|
2188
2188
|
case 8:
|
|
2189
2189
|
_f = [{}];
|
|
2190
|
-
return [4
|
|
2190
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
2191
2191
|
case 9:
|
|
2192
2192
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2193
|
-
return [3
|
|
2193
|
+
return [3, 15];
|
|
2194
2194
|
case 10:
|
|
2195
2195
|
_g = [{}];
|
|
2196
|
-
return [4
|
|
2196
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2197
2197
|
case 11:
|
|
2198
2198
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2199
|
-
return [3
|
|
2199
|
+
return [3, 15];
|
|
2200
2200
|
case 12:
|
|
2201
2201
|
_h = [{}];
|
|
2202
|
-
return [4
|
|
2202
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2203
2203
|
case 13:
|
|
2204
2204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2205
|
-
return [3
|
|
2205
|
+
return [3, 15];
|
|
2206
2206
|
case 14:
|
|
2207
2207
|
parsedBody = parsedOutput.body;
|
|
2208
2208
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2212,7 +2212,7 @@ var deserializeAws_restJson1SubscribeToDatasetCommandError = function (output, c
|
|
|
2212
2212
|
message = response.message || response.Message || errorCode;
|
|
2213
2213
|
response.message = message;
|
|
2214
2214
|
delete response.Message;
|
|
2215
|
-
return [2
|
|
2215
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2216
2216
|
}
|
|
2217
2217
|
});
|
|
2218
2218
|
}); };
|
|
@@ -2222,15 +2222,15 @@ export var deserializeAws_restJson1UnsubscribeFromDatasetCommand = function (out
|
|
|
2222
2222
|
switch (_a.label) {
|
|
2223
2223
|
case 0:
|
|
2224
2224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2225
|
-
return [2
|
|
2225
|
+
return [2, deserializeAws_restJson1UnsubscribeFromDatasetCommandError(output, context)];
|
|
2226
2226
|
}
|
|
2227
2227
|
contents = {
|
|
2228
2228
|
$metadata: deserializeMetadata(output),
|
|
2229
2229
|
};
|
|
2230
|
-
return [4
|
|
2230
|
+
return [4, collectBody(output.body, context)];
|
|
2231
2231
|
case 1:
|
|
2232
2232
|
_a.sent();
|
|
2233
|
-
return [2
|
|
2233
|
+
return [2, Promise.resolve(contents)];
|
|
2234
2234
|
}
|
|
2235
2235
|
});
|
|
2236
2236
|
}); };
|
|
@@ -2242,63 +2242,63 @@ var deserializeAws_restJson1UnsubscribeFromDatasetCommandError = function (outpu
|
|
|
2242
2242
|
case 0:
|
|
2243
2243
|
_a = [__assign({}, output)];
|
|
2244
2244
|
_j = {};
|
|
2245
|
-
return [4
|
|
2245
|
+
return [4, parseBody(output.body, context)];
|
|
2246
2246
|
case 1:
|
|
2247
2247
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2248
2248
|
errorCode = "UnknownError";
|
|
2249
2249
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
2250
|
_b = errorCode;
|
|
2251
2251
|
switch (_b) {
|
|
2252
|
-
case "InternalErrorException": return [3
|
|
2253
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
2254
|
-
case "InvalidConfigurationException": return [3
|
|
2255
|
-
case "com.amazonaws.cognitosync#InvalidConfigurationException": return [3
|
|
2256
|
-
case "InvalidParameterException": return [3
|
|
2257
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
2258
|
-
case "NotAuthorizedException": return [3
|
|
2259
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
2260
|
-
case "ResourceNotFoundException": return [3
|
|
2261
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
2262
|
-
case "TooManyRequestsException": return [3
|
|
2263
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
2264
|
-
}
|
|
2265
|
-
return [3
|
|
2252
|
+
case "InternalErrorException": return [3, 2];
|
|
2253
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
2254
|
+
case "InvalidConfigurationException": return [3, 4];
|
|
2255
|
+
case "com.amazonaws.cognitosync#InvalidConfigurationException": return [3, 4];
|
|
2256
|
+
case "InvalidParameterException": return [3, 6];
|
|
2257
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 6];
|
|
2258
|
+
case "NotAuthorizedException": return [3, 8];
|
|
2259
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 8];
|
|
2260
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2261
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 10];
|
|
2262
|
+
case "TooManyRequestsException": return [3, 12];
|
|
2263
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 12];
|
|
2264
|
+
}
|
|
2265
|
+
return [3, 14];
|
|
2266
2266
|
case 2:
|
|
2267
2267
|
_c = [{}];
|
|
2268
|
-
return [4
|
|
2268
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
2269
2269
|
case 3:
|
|
2270
2270
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2271
|
-
return [3
|
|
2271
|
+
return [3, 15];
|
|
2272
2272
|
case 4:
|
|
2273
2273
|
_d = [{}];
|
|
2274
|
-
return [4
|
|
2274
|
+
return [4, deserializeAws_restJson1InvalidConfigurationExceptionResponse(parsedOutput, context)];
|
|
2275
2275
|
case 5:
|
|
2276
2276
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2277
|
-
return [3
|
|
2277
|
+
return [3, 15];
|
|
2278
2278
|
case 6:
|
|
2279
2279
|
_e = [{}];
|
|
2280
|
-
return [4
|
|
2280
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2281
2281
|
case 7:
|
|
2282
2282
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2283
|
-
return [3
|
|
2283
|
+
return [3, 15];
|
|
2284
2284
|
case 8:
|
|
2285
2285
|
_f = [{}];
|
|
2286
|
-
return [4
|
|
2286
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
2287
2287
|
case 9:
|
|
2288
2288
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2289
|
-
return [3
|
|
2289
|
+
return [3, 15];
|
|
2290
2290
|
case 10:
|
|
2291
2291
|
_g = [{}];
|
|
2292
|
-
return [4
|
|
2292
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2293
2293
|
case 11:
|
|
2294
2294
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2295
|
-
return [3
|
|
2295
|
+
return [3, 15];
|
|
2296
2296
|
case 12:
|
|
2297
2297
|
_h = [{}];
|
|
2298
|
-
return [4
|
|
2298
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2299
2299
|
case 13:
|
|
2300
2300
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2301
|
-
return [3
|
|
2301
|
+
return [3, 15];
|
|
2302
2302
|
case 14:
|
|
2303
2303
|
parsedBody = parsedOutput.body;
|
|
2304
2304
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2308,7 +2308,7 @@ var deserializeAws_restJson1UnsubscribeFromDatasetCommandError = function (outpu
|
|
|
2308
2308
|
message = response.message || response.Message || errorCode;
|
|
2309
2309
|
response.message = message;
|
|
2310
2310
|
delete response.Message;
|
|
2311
|
-
return [2
|
|
2311
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2312
2312
|
}
|
|
2313
2313
|
});
|
|
2314
2314
|
}); };
|
|
@@ -2318,7 +2318,7 @@ export var deserializeAws_restJson1UpdateRecordsCommand = function (output, cont
|
|
|
2318
2318
|
switch (_c.label) {
|
|
2319
2319
|
case 0:
|
|
2320
2320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2321
|
-
return [2
|
|
2321
|
+
return [2, deserializeAws_restJson1UpdateRecordsCommandError(output, context)];
|
|
2322
2322
|
}
|
|
2323
2323
|
contents = {
|
|
2324
2324
|
$metadata: deserializeMetadata(output),
|
|
@@ -2326,13 +2326,13 @@ export var deserializeAws_restJson1UpdateRecordsCommand = function (output, cont
|
|
|
2326
2326
|
};
|
|
2327
2327
|
_a = __expectNonNull;
|
|
2328
2328
|
_b = __expectObject;
|
|
2329
|
-
return [4
|
|
2329
|
+
return [4, parseBody(output.body, context)];
|
|
2330
2330
|
case 1:
|
|
2331
2331
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2332
2332
|
if (data.Records !== undefined && data.Records !== null) {
|
|
2333
2333
|
contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
|
|
2334
2334
|
}
|
|
2335
|
-
return [2
|
|
2335
|
+
return [2, Promise.resolve(contents)];
|
|
2336
2336
|
}
|
|
2337
2337
|
});
|
|
2338
2338
|
}); };
|
|
@@ -2344,87 +2344,87 @@ var deserializeAws_restJson1UpdateRecordsCommandError = function (output, contex
|
|
|
2344
2344
|
case 0:
|
|
2345
2345
|
_a = [__assign({}, output)];
|
|
2346
2346
|
_m = {};
|
|
2347
|
-
return [4
|
|
2347
|
+
return [4, parseBody(output.body, context)];
|
|
2348
2348
|
case 1:
|
|
2349
2349
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
2350
2350
|
errorCode = "UnknownError";
|
|
2351
2351
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
2352
|
_b = errorCode;
|
|
2353
2353
|
switch (_b) {
|
|
2354
|
-
case "InternalErrorException": return [3
|
|
2355
|
-
case "com.amazonaws.cognitosync#InternalErrorException": return [3
|
|
2356
|
-
case "InvalidLambdaFunctionOutputException": return [3
|
|
2357
|
-
case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException": return [3
|
|
2358
|
-
case "InvalidParameterException": return [3
|
|
2359
|
-
case "com.amazonaws.cognitosync#InvalidParameterException": return [3
|
|
2360
|
-
case "LambdaThrottledException": return [3
|
|
2361
|
-
case "com.amazonaws.cognitosync#LambdaThrottledException": return [3
|
|
2362
|
-
case "LimitExceededException": return [3
|
|
2363
|
-
case "com.amazonaws.cognitosync#LimitExceededException": return [3
|
|
2364
|
-
case "NotAuthorizedException": return [3
|
|
2365
|
-
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3
|
|
2366
|
-
case "ResourceConflictException": return [3
|
|
2367
|
-
case "com.amazonaws.cognitosync#ResourceConflictException": return [3
|
|
2368
|
-
case "ResourceNotFoundException": return [3
|
|
2369
|
-
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3
|
|
2370
|
-
case "TooManyRequestsException": return [3
|
|
2371
|
-
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3
|
|
2372
|
-
}
|
|
2373
|
-
return [3
|
|
2354
|
+
case "InternalErrorException": return [3, 2];
|
|
2355
|
+
case "com.amazonaws.cognitosync#InternalErrorException": return [3, 2];
|
|
2356
|
+
case "InvalidLambdaFunctionOutputException": return [3, 4];
|
|
2357
|
+
case "com.amazonaws.cognitosync#InvalidLambdaFunctionOutputException": return [3, 4];
|
|
2358
|
+
case "InvalidParameterException": return [3, 6];
|
|
2359
|
+
case "com.amazonaws.cognitosync#InvalidParameterException": return [3, 6];
|
|
2360
|
+
case "LambdaThrottledException": return [3, 8];
|
|
2361
|
+
case "com.amazonaws.cognitosync#LambdaThrottledException": return [3, 8];
|
|
2362
|
+
case "LimitExceededException": return [3, 10];
|
|
2363
|
+
case "com.amazonaws.cognitosync#LimitExceededException": return [3, 10];
|
|
2364
|
+
case "NotAuthorizedException": return [3, 12];
|
|
2365
|
+
case "com.amazonaws.cognitosync#NotAuthorizedException": return [3, 12];
|
|
2366
|
+
case "ResourceConflictException": return [3, 14];
|
|
2367
|
+
case "com.amazonaws.cognitosync#ResourceConflictException": return [3, 14];
|
|
2368
|
+
case "ResourceNotFoundException": return [3, 16];
|
|
2369
|
+
case "com.amazonaws.cognitosync#ResourceNotFoundException": return [3, 16];
|
|
2370
|
+
case "TooManyRequestsException": return [3, 18];
|
|
2371
|
+
case "com.amazonaws.cognitosync#TooManyRequestsException": return [3, 18];
|
|
2372
|
+
}
|
|
2373
|
+
return [3, 20];
|
|
2374
2374
|
case 2:
|
|
2375
2375
|
_c = [{}];
|
|
2376
|
-
return [4
|
|
2376
|
+
return [4, deserializeAws_restJson1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
2377
2377
|
case 3:
|
|
2378
2378
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2379
|
-
return [3
|
|
2379
|
+
return [3, 21];
|
|
2380
2380
|
case 4:
|
|
2381
2381
|
_d = [{}];
|
|
2382
|
-
return [4
|
|
2382
|
+
return [4, deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse(parsedOutput, context)];
|
|
2383
2383
|
case 5:
|
|
2384
2384
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2385
|
-
return [3
|
|
2385
|
+
return [3, 21];
|
|
2386
2386
|
case 6:
|
|
2387
2387
|
_e = [{}];
|
|
2388
|
-
return [4
|
|
2388
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2389
2389
|
case 7:
|
|
2390
2390
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2391
|
-
return [3
|
|
2391
|
+
return [3, 21];
|
|
2392
2392
|
case 8:
|
|
2393
2393
|
_f = [{}];
|
|
2394
|
-
return [4
|
|
2394
|
+
return [4, deserializeAws_restJson1LambdaThrottledExceptionResponse(parsedOutput, context)];
|
|
2395
2395
|
case 9:
|
|
2396
2396
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2397
|
-
return [3
|
|
2397
|
+
return [3, 21];
|
|
2398
2398
|
case 10:
|
|
2399
2399
|
_g = [{}];
|
|
2400
|
-
return [4
|
|
2400
|
+
return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2401
2401
|
case 11:
|
|
2402
2402
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2403
|
-
return [3
|
|
2403
|
+
return [3, 21];
|
|
2404
2404
|
case 12:
|
|
2405
2405
|
_h = [{}];
|
|
2406
|
-
return [4
|
|
2406
|
+
return [4, deserializeAws_restJson1NotAuthorizedExceptionResponse(parsedOutput, context)];
|
|
2407
2407
|
case 13:
|
|
2408
2408
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2409
|
-
return [3
|
|
2409
|
+
return [3, 21];
|
|
2410
2410
|
case 14:
|
|
2411
2411
|
_j = [{}];
|
|
2412
|
-
return [4
|
|
2412
|
+
return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
2413
2413
|
case 15:
|
|
2414
2414
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2415
|
-
return [3
|
|
2415
|
+
return [3, 21];
|
|
2416
2416
|
case 16:
|
|
2417
2417
|
_k = [{}];
|
|
2418
|
-
return [4
|
|
2418
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2419
2419
|
case 17:
|
|
2420
2420
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2421
|
-
return [3
|
|
2421
|
+
return [3, 21];
|
|
2422
2422
|
case 18:
|
|
2423
2423
|
_l = [{}];
|
|
2424
|
-
return [4
|
|
2424
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2425
2425
|
case 19:
|
|
2426
2426
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2427
|
-
return [3
|
|
2427
|
+
return [3, 21];
|
|
2428
2428
|
case 20:
|
|
2429
2429
|
parsedBody = parsedOutput.body;
|
|
2430
2430
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2434,7 +2434,7 @@ var deserializeAws_restJson1UpdateRecordsCommandError = function (output, contex
|
|
|
2434
2434
|
message = response.message || response.Message || errorCode;
|
|
2435
2435
|
response.message = message;
|
|
2436
2436
|
delete response.Message;
|
|
2437
|
-
return [2
|
|
2437
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2438
2438
|
}
|
|
2439
2439
|
});
|
|
2440
2440
|
}); };
|
|
@@ -2451,7 +2451,7 @@ var deserializeAws_restJson1AlreadyStreamedExceptionResponse = function (parsedO
|
|
|
2451
2451
|
if (data.message !== undefined && data.message !== null) {
|
|
2452
2452
|
contents.message = __expectString(data.message);
|
|
2453
2453
|
}
|
|
2454
|
-
return [2
|
|
2454
|
+
return [2, contents];
|
|
2455
2455
|
});
|
|
2456
2456
|
}); };
|
|
2457
2457
|
var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2467,7 +2467,7 @@ var deserializeAws_restJson1ConcurrentModificationExceptionResponse = function (
|
|
|
2467
2467
|
if (data.message !== undefined && data.message !== null) {
|
|
2468
2468
|
contents.message = __expectString(data.message);
|
|
2469
2469
|
}
|
|
2470
|
-
return [2
|
|
2470
|
+
return [2, contents];
|
|
2471
2471
|
});
|
|
2472
2472
|
}); };
|
|
2473
2473
|
var deserializeAws_restJson1DuplicateRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2483,7 +2483,7 @@ var deserializeAws_restJson1DuplicateRequestExceptionResponse = function (parsed
|
|
|
2483
2483
|
if (data.message !== undefined && data.message !== null) {
|
|
2484
2484
|
contents.message = __expectString(data.message);
|
|
2485
2485
|
}
|
|
2486
|
-
return [2
|
|
2486
|
+
return [2, contents];
|
|
2487
2487
|
});
|
|
2488
2488
|
}); };
|
|
2489
2489
|
var deserializeAws_restJson1InternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2499,7 +2499,7 @@ var deserializeAws_restJson1InternalErrorExceptionResponse = function (parsedOut
|
|
|
2499
2499
|
if (data.message !== undefined && data.message !== null) {
|
|
2500
2500
|
contents.message = __expectString(data.message);
|
|
2501
2501
|
}
|
|
2502
|
-
return [2
|
|
2502
|
+
return [2, contents];
|
|
2503
2503
|
});
|
|
2504
2504
|
}); };
|
|
2505
2505
|
var deserializeAws_restJson1InvalidConfigurationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2515,7 +2515,7 @@ var deserializeAws_restJson1InvalidConfigurationExceptionResponse = function (pa
|
|
|
2515
2515
|
if (data.message !== undefined && data.message !== null) {
|
|
2516
2516
|
contents.message = __expectString(data.message);
|
|
2517
2517
|
}
|
|
2518
|
-
return [2
|
|
2518
|
+
return [2, contents];
|
|
2519
2519
|
});
|
|
2520
2520
|
}); };
|
|
2521
2521
|
var deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2531,7 +2531,7 @@ var deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse = funct
|
|
|
2531
2531
|
if (data.message !== undefined && data.message !== null) {
|
|
2532
2532
|
contents.message = __expectString(data.message);
|
|
2533
2533
|
}
|
|
2534
|
-
return [2
|
|
2534
|
+
return [2, contents];
|
|
2535
2535
|
});
|
|
2536
2536
|
}); };
|
|
2537
2537
|
var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2547,7 +2547,7 @@ var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsed
|
|
|
2547
2547
|
if (data.message !== undefined && data.message !== null) {
|
|
2548
2548
|
contents.message = __expectString(data.message);
|
|
2549
2549
|
}
|
|
2550
|
-
return [2
|
|
2550
|
+
return [2, contents];
|
|
2551
2551
|
});
|
|
2552
2552
|
}); };
|
|
2553
2553
|
var deserializeAws_restJson1LambdaThrottledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2563,7 +2563,7 @@ var deserializeAws_restJson1LambdaThrottledExceptionResponse = function (parsedO
|
|
|
2563
2563
|
if (data.message !== undefined && data.message !== null) {
|
|
2564
2564
|
contents.message = __expectString(data.message);
|
|
2565
2565
|
}
|
|
2566
|
-
return [2
|
|
2566
|
+
return [2, contents];
|
|
2567
2567
|
});
|
|
2568
2568
|
}); };
|
|
2569
2569
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2579,7 +2579,7 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
2579
2579
|
if (data.message !== undefined && data.message !== null) {
|
|
2580
2580
|
contents.message = __expectString(data.message);
|
|
2581
2581
|
}
|
|
2582
|
-
return [2
|
|
2582
|
+
return [2, contents];
|
|
2583
2583
|
});
|
|
2584
2584
|
}); };
|
|
2585
2585
|
var deserializeAws_restJson1NotAuthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2595,7 +2595,7 @@ var deserializeAws_restJson1NotAuthorizedExceptionResponse = function (parsedOut
|
|
|
2595
2595
|
if (data.message !== undefined && data.message !== null) {
|
|
2596
2596
|
contents.message = __expectString(data.message);
|
|
2597
2597
|
}
|
|
2598
|
-
return [2
|
|
2598
|
+
return [2, contents];
|
|
2599
2599
|
});
|
|
2600
2600
|
}); };
|
|
2601
2601
|
var deserializeAws_restJson1ResourceConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2611,7 +2611,7 @@ var deserializeAws_restJson1ResourceConflictExceptionResponse = function (parsed
|
|
|
2611
2611
|
if (data.message !== undefined && data.message !== null) {
|
|
2612
2612
|
contents.message = __expectString(data.message);
|
|
2613
2613
|
}
|
|
2614
|
-
return [2
|
|
2614
|
+
return [2, contents];
|
|
2615
2615
|
});
|
|
2616
2616
|
}); };
|
|
2617
2617
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2627,7 +2627,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2627
2627
|
if (data.message !== undefined && data.message !== null) {
|
|
2628
2628
|
contents.message = __expectString(data.message);
|
|
2629
2629
|
}
|
|
2630
|
-
return [2
|
|
2630
|
+
return [2, contents];
|
|
2631
2631
|
});
|
|
2632
2632
|
}); };
|
|
2633
2633
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2643,7 +2643,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2643
2643
|
if (data.message !== undefined && data.message !== null) {
|
|
2644
2644
|
contents.message = __expectString(data.message);
|
|
2645
2645
|
}
|
|
2646
|
-
return [2
|
|
2646
|
+
return [2, contents];
|
|
2647
2647
|
});
|
|
2648
2648
|
}); };
|
|
2649
2649
|
var serializeAws_restJson1ApplicationArnList = function (input, context) {
|
|
@@ -2712,14 +2712,14 @@ var deserializeAws_restJson1CognitoStreams = function (output, context) {
|
|
|
2712
2712
|
var deserializeAws_restJson1Dataset = function (output, context) {
|
|
2713
2713
|
return {
|
|
2714
2714
|
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
2715
|
-
?
|
|
2715
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
2716
2716
|
: undefined,
|
|
2717
2717
|
DataStorage: __expectLong(output.DataStorage),
|
|
2718
2718
|
DatasetName: __expectString(output.DatasetName),
|
|
2719
2719
|
IdentityId: __expectString(output.IdentityId),
|
|
2720
2720
|
LastModifiedBy: __expectString(output.LastModifiedBy),
|
|
2721
2721
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2722
|
-
?
|
|
2722
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2723
2723
|
: undefined,
|
|
2724
2724
|
NumRecords: __expectLong(output.NumRecords),
|
|
2725
2725
|
};
|
|
@@ -2749,7 +2749,7 @@ var deserializeAws_restJson1IdentityPoolUsage = function (output, context) {
|
|
|
2749
2749
|
DataStorage: __expectLong(output.DataStorage),
|
|
2750
2750
|
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2751
2751
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2752
|
-
?
|
|
2752
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2753
2753
|
: undefined,
|
|
2754
2754
|
SyncSessionsCount: __expectLong(output.SyncSessionsCount),
|
|
2755
2755
|
};
|
|
@@ -2771,7 +2771,7 @@ var deserializeAws_restJson1IdentityUsage = function (output, context) {
|
|
|
2771
2771
|
IdentityId: __expectString(output.IdentityId),
|
|
2772
2772
|
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2773
2773
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2774
|
-
?
|
|
2774
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2775
2775
|
: undefined,
|
|
2776
2776
|
};
|
|
2777
2777
|
};
|
|
@@ -2796,12 +2796,12 @@ var deserializeAws_restJson1PushSync = function (output, context) {
|
|
|
2796
2796
|
var deserializeAws_restJson1_Record = function (output, context) {
|
|
2797
2797
|
return {
|
|
2798
2798
|
DeviceLastModifiedDate: output.DeviceLastModifiedDate !== undefined && output.DeviceLastModifiedDate !== null
|
|
2799
|
-
?
|
|
2799
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeviceLastModifiedDate)))
|
|
2800
2800
|
: undefined,
|
|
2801
2801
|
Key: __expectString(output.Key),
|
|
2802
2802
|
LastModifiedBy: __expectString(output.LastModifiedBy),
|
|
2803
2803
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2804
|
-
?
|
|
2804
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2805
2805
|
: undefined,
|
|
2806
2806
|
SyncCount: __expectLong(output.SyncCount),
|
|
2807
2807
|
Value: __expectString(output.Value),
|
|
@@ -2826,7 +2826,6 @@ var deserializeMetadata = function (output) {
|
|
|
2826
2826
|
cfId: output.headers["x-amz-cf-id"],
|
|
2827
2827
|
});
|
|
2828
2828
|
};
|
|
2829
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2830
2829
|
var collectBody = function (streamBody, context) {
|
|
2831
2830
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2832
2831
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2834,7 +2833,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2834
2833
|
}
|
|
2835
2834
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2836
2835
|
};
|
|
2837
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2838
2836
|
var collectBodyString = function (streamBody, context) {
|
|
2839
2837
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2840
2838
|
};
|
|
@@ -2853,9 +2851,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2853
2851
|
return {};
|
|
2854
2852
|
});
|
|
2855
2853
|
};
|
|
2856
|
-
/**
|
|
2857
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2858
|
-
*/
|
|
2859
2854
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2860
2855
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2861
2856
|
var sanitizeErrorCode = function (rawValue) {
|