@aws-sdk/client-clouddirectory 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +855 -1185
- package/dist-es/protocols/Aws_restJson1.js +1101 -1067
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { CloudDirectoryServiceException as __BaseException } from "../models/CloudDirectoryServiceException";
|
|
5
5
|
import { AccessDeniedException, BatchWriteException, CannotListParentOfRootException, DirectoryAlreadyExistsException, DirectoryDeletedException, DirectoryNotDisabledException, DirectoryNotEnabledException, FacetAlreadyExistsException, FacetInUseException, FacetNotFoundException, FacetValidationException, IncompatibleSchemaException, IndexedAttributeMissingException, InternalServiceException, InvalidArnException, InvalidAttachmentException, InvalidFacetUpdateException, InvalidNextTokenException, InvalidRuleException, InvalidSchemaDocException, InvalidTaggingRequestException, LimitExceededException, LinkNameAlreadyInUseException, NotIndexException, NotNodeException, NotPolicyException, ObjectAlreadyDetachedException, ObjectNotDetachedException, ResourceNotFoundException, RetryableConflictException, SchemaAlreadyExistsException, SchemaAlreadyPublishedException, StillContainsLinksException, TypedAttributeValue, UnsupportedIndexTypeException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AddFacetToObjectCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -10,7 +10,10 @@ export var serializeAws_restJson1AddFacetToObjectCommand = function (input, cont
|
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
|
-
headers =
|
|
13
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
14
|
+
"content-type": "application/json",
|
|
15
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
16
|
+
});
|
|
14
17
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
18
|
"/amazonclouddirectory/2017-01-11/object/facets";
|
|
16
19
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.ObjectAttributeList != null && {
|
|
@@ -37,7 +40,10 @@ export var serializeAws_restJson1ApplySchemaCommand = function (input, context)
|
|
|
37
40
|
case 0: return [4, context.endpoint()];
|
|
38
41
|
case 1:
|
|
39
42
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
40
|
-
headers =
|
|
43
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
44
|
+
"content-type": "application/json",
|
|
45
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
46
|
+
});
|
|
41
47
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
42
48
|
"/amazonclouddirectory/2017-01-11/schema/apply";
|
|
43
49
|
body = JSON.stringify(__assign({}, (input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
@@ -60,7 +66,10 @@ export var serializeAws_restJson1AttachObjectCommand = function (input, context)
|
|
|
60
66
|
case 0: return [4, context.endpoint()];
|
|
61
67
|
case 1:
|
|
62
68
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
63
|
-
headers =
|
|
69
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
70
|
+
"content-type": "application/json",
|
|
71
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
72
|
+
});
|
|
64
73
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
65
74
|
"/amazonclouddirectory/2017-01-11/object/attach";
|
|
66
75
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.ChildReference != null && {
|
|
@@ -87,7 +96,10 @@ export var serializeAws_restJson1AttachPolicyCommand = function (input, context)
|
|
|
87
96
|
case 0: return [4, context.endpoint()];
|
|
88
97
|
case 1:
|
|
89
98
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
90
|
-
headers =
|
|
99
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
100
|
+
"content-type": "application/json",
|
|
101
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
102
|
+
});
|
|
91
103
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
92
104
|
"/amazonclouddirectory/2017-01-11/policy/attach";
|
|
93
105
|
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference != null && {
|
|
@@ -114,7 +126,10 @@ export var serializeAws_restJson1AttachToIndexCommand = function (input, context
|
|
|
114
126
|
case 0: return [4, context.endpoint()];
|
|
115
127
|
case 1:
|
|
116
128
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
117
|
-
headers =
|
|
129
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
130
|
+
"content-type": "application/json",
|
|
131
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
132
|
+
});
|
|
118
133
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
119
134
|
"/amazonclouddirectory/2017-01-11/index/attach";
|
|
120
135
|
body = JSON.stringify(__assign(__assign({}, (input.IndexReference != null && {
|
|
@@ -141,7 +156,10 @@ export var serializeAws_restJson1AttachTypedLinkCommand = function (input, conte
|
|
|
141
156
|
case 0: return [4, context.endpoint()];
|
|
142
157
|
case 1:
|
|
143
158
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
144
|
-
headers =
|
|
159
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
160
|
+
"content-type": "application/json",
|
|
161
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
162
|
+
});
|
|
145
163
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
146
164
|
"/amazonclouddirectory/2017-01-11/typedlink/attach";
|
|
147
165
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
@@ -172,7 +190,11 @@ export var serializeAws_restJson1BatchReadCommand = function (input, context) {
|
|
|
172
190
|
case 0: return [4, context.endpoint()];
|
|
173
191
|
case 1:
|
|
174
192
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
175
|
-
headers =
|
|
193
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
194
|
+
"content-type": "application/json",
|
|
195
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
196
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
197
|
+
});
|
|
176
198
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
177
199
|
"/amazonclouddirectory/2017-01-11/batchread";
|
|
178
200
|
body = JSON.stringify(__assign({}, (input.Operations != null && {
|
|
@@ -197,7 +219,10 @@ export var serializeAws_restJson1BatchWriteCommand = function (input, context) {
|
|
|
197
219
|
case 0: return [4, context.endpoint()];
|
|
198
220
|
case 1:
|
|
199
221
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
200
|
-
headers =
|
|
222
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
223
|
+
"content-type": "application/json",
|
|
224
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
225
|
+
});
|
|
201
226
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
202
227
|
"/amazonclouddirectory/2017-01-11/batchwrite";
|
|
203
228
|
body = JSON.stringify(__assign({}, (input.Operations != null && {
|
|
@@ -222,7 +247,10 @@ export var serializeAws_restJson1CreateDirectoryCommand = function (input, conte
|
|
|
222
247
|
case 0: return [4, context.endpoint()];
|
|
223
248
|
case 1:
|
|
224
249
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
225
|
-
headers =
|
|
250
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
251
|
+
"content-type": "application/json",
|
|
252
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
253
|
+
});
|
|
226
254
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
227
255
|
"/amazonclouddirectory/2017-01-11/directory/create";
|
|
228
256
|
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
@@ -245,7 +273,10 @@ export var serializeAws_restJson1CreateFacetCommand = function (input, context)
|
|
|
245
273
|
case 0: return [4, context.endpoint()];
|
|
246
274
|
case 1:
|
|
247
275
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
248
|
-
headers =
|
|
276
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
277
|
+
"content-type": "application/json",
|
|
278
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
279
|
+
});
|
|
249
280
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
250
281
|
"/amazonclouddirectory/2017-01-11/facet/create";
|
|
251
282
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
@@ -270,7 +301,10 @@ export var serializeAws_restJson1CreateIndexCommand = function (input, context)
|
|
|
270
301
|
case 0: return [4, context.endpoint()];
|
|
271
302
|
case 1:
|
|
272
303
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
273
|
-
headers =
|
|
304
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
305
|
+
"content-type": "application/json",
|
|
306
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
307
|
+
});
|
|
274
308
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/index";
|
|
275
309
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IsUnique != null && { IsUnique: input.IsUnique })), (input.LinkName != null && { LinkName: input.LinkName })), (input.OrderedIndexedAttributeList != null && {
|
|
276
310
|
OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
|
|
@@ -296,7 +330,10 @@ export var serializeAws_restJson1CreateObjectCommand = function (input, context)
|
|
|
296
330
|
case 0: return [4, context.endpoint()];
|
|
297
331
|
case 1:
|
|
298
332
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
299
|
-
headers =
|
|
333
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
334
|
+
"content-type": "application/json",
|
|
335
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
336
|
+
});
|
|
300
337
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/object";
|
|
301
338
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.LinkName != null && { LinkName: input.LinkName })), (input.ObjectAttributeList != null && {
|
|
302
339
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
@@ -349,7 +386,10 @@ export var serializeAws_restJson1CreateTypedLinkFacetCommand = function (input,
|
|
|
349
386
|
case 0: return [4, context.endpoint()];
|
|
350
387
|
case 1:
|
|
351
388
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
352
|
-
headers =
|
|
389
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
390
|
+
"content-type": "application/json",
|
|
391
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
392
|
+
});
|
|
353
393
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
354
394
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/create";
|
|
355
395
|
body = JSON.stringify(__assign({}, (input.Facet != null && { Facet: serializeAws_restJson1TypedLinkFacet(input.Facet, context) })));
|
|
@@ -372,7 +412,9 @@ export var serializeAws_restJson1DeleteDirectoryCommand = function (input, conte
|
|
|
372
412
|
case 0: return [4, context.endpoint()];
|
|
373
413
|
case 1:
|
|
374
414
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
375
|
-
headers =
|
|
415
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
416
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
417
|
+
});
|
|
376
418
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
377
419
|
"/amazonclouddirectory/2017-01-11/directory";
|
|
378
420
|
return [2, new __HttpRequest({
|
|
@@ -394,7 +436,10 @@ export var serializeAws_restJson1DeleteFacetCommand = function (input, context)
|
|
|
394
436
|
case 0: return [4, context.endpoint()];
|
|
395
437
|
case 1:
|
|
396
438
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
397
|
-
headers =
|
|
439
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
440
|
+
"content-type": "application/json",
|
|
441
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
442
|
+
});
|
|
398
443
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
399
444
|
"/amazonclouddirectory/2017-01-11/facet/delete";
|
|
400
445
|
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
@@ -417,7 +462,10 @@ export var serializeAws_restJson1DeleteObjectCommand = function (input, context)
|
|
|
417
462
|
case 0: return [4, context.endpoint()];
|
|
418
463
|
case 1:
|
|
419
464
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
420
|
-
headers =
|
|
465
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
466
|
+
"content-type": "application/json",
|
|
467
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
468
|
+
});
|
|
421
469
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
422
470
|
"/amazonclouddirectory/2017-01-11/object/delete";
|
|
423
471
|
body = JSON.stringify(__assign({}, (input.ObjectReference != null && {
|
|
@@ -442,7 +490,9 @@ export var serializeAws_restJson1DeleteSchemaCommand = function (input, context)
|
|
|
442
490
|
case 0: return [4, context.endpoint()];
|
|
443
491
|
case 1:
|
|
444
492
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
445
|
-
headers =
|
|
493
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
494
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
495
|
+
});
|
|
446
496
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/schema";
|
|
447
497
|
return [2, new __HttpRequest({
|
|
448
498
|
protocol: protocol,
|
|
@@ -463,7 +513,10 @@ export var serializeAws_restJson1DeleteTypedLinkFacetCommand = function (input,
|
|
|
463
513
|
case 0: return [4, context.endpoint()];
|
|
464
514
|
case 1:
|
|
465
515
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
466
|
-
headers =
|
|
516
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
517
|
+
"content-type": "application/json",
|
|
518
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
519
|
+
});
|
|
467
520
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
468
521
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
|
|
469
522
|
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
@@ -486,7 +539,10 @@ export var serializeAws_restJson1DetachFromIndexCommand = function (input, conte
|
|
|
486
539
|
case 0: return [4, context.endpoint()];
|
|
487
540
|
case 1:
|
|
488
541
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
489
|
-
headers =
|
|
542
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
543
|
+
"content-type": "application/json",
|
|
544
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
545
|
+
});
|
|
490
546
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
491
547
|
"/amazonclouddirectory/2017-01-11/index/detach";
|
|
492
548
|
body = JSON.stringify(__assign(__assign({}, (input.IndexReference != null && {
|
|
@@ -513,7 +569,10 @@ export var serializeAws_restJson1DetachObjectCommand = function (input, context)
|
|
|
513
569
|
case 0: return [4, context.endpoint()];
|
|
514
570
|
case 1:
|
|
515
571
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
516
|
-
headers =
|
|
572
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
573
|
+
"content-type": "application/json",
|
|
574
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
575
|
+
});
|
|
517
576
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
518
577
|
"/amazonclouddirectory/2017-01-11/object/detach";
|
|
519
578
|
body = JSON.stringify(__assign(__assign({}, (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
@@ -538,7 +597,10 @@ export var serializeAws_restJson1DetachPolicyCommand = function (input, context)
|
|
|
538
597
|
case 0: return [4, context.endpoint()];
|
|
539
598
|
case 1:
|
|
540
599
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
541
|
-
headers =
|
|
600
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
601
|
+
"content-type": "application/json",
|
|
602
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
603
|
+
});
|
|
542
604
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
543
605
|
"/amazonclouddirectory/2017-01-11/policy/detach";
|
|
544
606
|
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference != null && {
|
|
@@ -565,7 +627,10 @@ export var serializeAws_restJson1DetachTypedLinkCommand = function (input, conte
|
|
|
565
627
|
case 0: return [4, context.endpoint()];
|
|
566
628
|
case 1:
|
|
567
629
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
568
|
-
headers =
|
|
630
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
631
|
+
"content-type": "application/json",
|
|
632
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
633
|
+
});
|
|
569
634
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
570
635
|
"/amazonclouddirectory/2017-01-11/typedlink/detach";
|
|
571
636
|
body = JSON.stringify(__assign({}, (input.TypedLinkSpecifier != null && {
|
|
@@ -590,7 +655,9 @@ export var serializeAws_restJson1DisableDirectoryCommand = function (input, cont
|
|
|
590
655
|
case 0: return [4, context.endpoint()];
|
|
591
656
|
case 1:
|
|
592
657
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
593
|
-
headers =
|
|
658
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
659
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
660
|
+
});
|
|
594
661
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
595
662
|
"/amazonclouddirectory/2017-01-11/directory/disable";
|
|
596
663
|
return [2, new __HttpRequest({
|
|
@@ -612,7 +679,9 @@ export var serializeAws_restJson1EnableDirectoryCommand = function (input, conte
|
|
|
612
679
|
case 0: return [4, context.endpoint()];
|
|
613
680
|
case 1:
|
|
614
681
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
615
|
-
headers =
|
|
682
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
683
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
684
|
+
});
|
|
616
685
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
617
686
|
"/amazonclouddirectory/2017-01-11/directory/enable";
|
|
618
687
|
return [2, new __HttpRequest({
|
|
@@ -659,7 +728,9 @@ export var serializeAws_restJson1GetDirectoryCommand = function (input, context)
|
|
|
659
728
|
case 0: return [4, context.endpoint()];
|
|
660
729
|
case 1:
|
|
661
730
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
662
|
-
headers =
|
|
731
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
732
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
733
|
+
});
|
|
663
734
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
664
735
|
"/amazonclouddirectory/2017-01-11/directory/get";
|
|
665
736
|
return [2, new __HttpRequest({
|
|
@@ -681,7 +752,10 @@ export var serializeAws_restJson1GetFacetCommand = function (input, context) { r
|
|
|
681
752
|
case 0: return [4, context.endpoint()];
|
|
682
753
|
case 1:
|
|
683
754
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
684
|
-
headers =
|
|
755
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
756
|
+
"content-type": "application/json",
|
|
757
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
758
|
+
});
|
|
685
759
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
|
|
686
760
|
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
687
761
|
return [2, new __HttpRequest({
|
|
@@ -703,7 +777,10 @@ export var serializeAws_restJson1GetLinkAttributesCommand = function (input, con
|
|
|
703
777
|
case 0: return [4, context.endpoint()];
|
|
704
778
|
case 1:
|
|
705
779
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
706
|
-
headers =
|
|
780
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
781
|
+
"content-type": "application/json",
|
|
782
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
783
|
+
});
|
|
707
784
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
708
785
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
|
|
709
786
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames != null && {
|
|
@@ -730,7 +807,11 @@ export var serializeAws_restJson1GetObjectAttributesCommand = function (input, c
|
|
|
730
807
|
case 0: return [4, context.endpoint()];
|
|
731
808
|
case 1:
|
|
732
809
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
733
|
-
headers =
|
|
810
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
811
|
+
"content-type": "application/json",
|
|
812
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
813
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
814
|
+
});
|
|
734
815
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
735
816
|
"/amazonclouddirectory/2017-01-11/object/attributes/get";
|
|
736
817
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames != null && {
|
|
@@ -757,7 +838,11 @@ export var serializeAws_restJson1GetObjectInformationCommand = function (input,
|
|
|
757
838
|
case 0: return [4, context.endpoint()];
|
|
758
839
|
case 1:
|
|
759
840
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
760
|
-
headers =
|
|
841
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
842
|
+
"content-type": "application/json",
|
|
843
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
844
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
845
|
+
});
|
|
761
846
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
762
847
|
"/amazonclouddirectory/2017-01-11/object/information";
|
|
763
848
|
body = JSON.stringify(__assign({}, (input.ObjectReference != null && {
|
|
@@ -782,7 +867,9 @@ export var serializeAws_restJson1GetSchemaAsJsonCommand = function (input, conte
|
|
|
782
867
|
case 0: return [4, context.endpoint()];
|
|
783
868
|
case 1:
|
|
784
869
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
785
|
-
headers =
|
|
870
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
871
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
872
|
+
});
|
|
786
873
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
787
874
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
788
875
|
return [2, new __HttpRequest({
|
|
@@ -804,7 +891,10 @@ export var serializeAws_restJson1GetTypedLinkFacetInformationCommand = function
|
|
|
804
891
|
case 0: return [4, context.endpoint()];
|
|
805
892
|
case 1:
|
|
806
893
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
807
|
-
headers =
|
|
894
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
895
|
+
"content-type": "application/json",
|
|
896
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
897
|
+
});
|
|
808
898
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
809
899
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/get";
|
|
810
900
|
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
@@ -852,7 +942,11 @@ export var serializeAws_restJson1ListAttachedIndicesCommand = function (input, c
|
|
|
852
942
|
case 0: return [4, context.endpoint()];
|
|
853
943
|
case 1:
|
|
854
944
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
855
|
-
headers =
|
|
945
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
946
|
+
"content-type": "application/json",
|
|
947
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
948
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
949
|
+
});
|
|
856
950
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
857
951
|
"/amazonclouddirectory/2017-01-11/object/indices";
|
|
858
952
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TargetReference != null && {
|
|
@@ -927,7 +1021,10 @@ export var serializeAws_restJson1ListFacetAttributesCommand = function (input, c
|
|
|
927
1021
|
case 0: return [4, context.endpoint()];
|
|
928
1022
|
case 1:
|
|
929
1023
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
930
|
-
headers =
|
|
1024
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1025
|
+
"content-type": "application/json",
|
|
1026
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1027
|
+
});
|
|
931
1028
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
932
1029
|
"/amazonclouddirectory/2017-01-11/facet/attributes";
|
|
933
1030
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Name != null && { Name: input.Name })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
@@ -950,7 +1047,10 @@ export var serializeAws_restJson1ListFacetNamesCommand = function (input, contex
|
|
|
950
1047
|
case 0: return [4, context.endpoint()];
|
|
951
1048
|
case 1:
|
|
952
1049
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
953
|
-
headers =
|
|
1050
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1051
|
+
"content-type": "application/json",
|
|
1052
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1053
|
+
});
|
|
954
1054
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
955
1055
|
"/amazonclouddirectory/2017-01-11/facet/list";
|
|
956
1056
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
@@ -973,7 +1073,10 @@ export var serializeAws_restJson1ListIncomingTypedLinksCommand = function (input
|
|
|
973
1073
|
case 0: return [4, context.endpoint()];
|
|
974
1074
|
case 1:
|
|
975
1075
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
976
|
-
headers =
|
|
1076
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1077
|
+
"content-type": "application/json",
|
|
1078
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1079
|
+
});
|
|
977
1080
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
978
1081
|
"/amazonclouddirectory/2017-01-11/typedlink/incoming";
|
|
979
1082
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges != null && {
|
|
@@ -1002,7 +1105,11 @@ export var serializeAws_restJson1ListIndexCommand = function (input, context) {
|
|
|
1002
1105
|
case 0: return [4, context.endpoint()];
|
|
1003
1106
|
case 1:
|
|
1004
1107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1005
|
-
headers =
|
|
1108
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1109
|
+
"content-type": "application/json",
|
|
1110
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1111
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1112
|
+
});
|
|
1006
1113
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1007
1114
|
"/amazonclouddirectory/2017-01-11/index/targets";
|
|
1008
1115
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IndexReference != null && {
|
|
@@ -1054,7 +1161,11 @@ export var serializeAws_restJson1ListObjectAttributesCommand = function (input,
|
|
|
1054
1161
|
case 0: return [4, context.endpoint()];
|
|
1055
1162
|
case 1:
|
|
1056
1163
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1057
|
-
headers =
|
|
1164
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1165
|
+
"content-type": "application/json",
|
|
1166
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1167
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1168
|
+
});
|
|
1058
1169
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1059
1170
|
"/amazonclouddirectory/2017-01-11/object/attributes";
|
|
1060
1171
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FacetFilter != null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
@@ -1079,7 +1190,11 @@ export var serializeAws_restJson1ListObjectChildrenCommand = function (input, co
|
|
|
1079
1190
|
case 0: return [4, context.endpoint()];
|
|
1080
1191
|
case 1:
|
|
1081
1192
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1082
|
-
headers =
|
|
1193
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1194
|
+
"content-type": "application/json",
|
|
1195
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1196
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1197
|
+
});
|
|
1083
1198
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1084
1199
|
"/amazonclouddirectory/2017-01-11/object/children";
|
|
1085
1200
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
@@ -1104,7 +1219,10 @@ export var serializeAws_restJson1ListObjectParentPathsCommand = function (input,
|
|
|
1104
1219
|
case 0: return [4, context.endpoint()];
|
|
1105
1220
|
case 1:
|
|
1106
1221
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1107
|
-
headers =
|
|
1222
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1223
|
+
"content-type": "application/json",
|
|
1224
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1225
|
+
});
|
|
1108
1226
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1109
1227
|
"/amazonclouddirectory/2017-01-11/object/parentpaths";
|
|
1110
1228
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
@@ -1129,7 +1247,11 @@ export var serializeAws_restJson1ListObjectParentsCommand = function (input, con
|
|
|
1129
1247
|
case 0: return [4, context.endpoint()];
|
|
1130
1248
|
case 1:
|
|
1131
1249
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1132
|
-
headers =
|
|
1250
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1251
|
+
"content-type": "application/json",
|
|
1252
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1253
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1254
|
+
});
|
|
1133
1255
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1134
1256
|
"/amazonclouddirectory/2017-01-11/object/parent";
|
|
1135
1257
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IncludeAllLinksToEachParent != null && {
|
|
@@ -1156,7 +1278,11 @@ export var serializeAws_restJson1ListObjectPoliciesCommand = function (input, co
|
|
|
1156
1278
|
case 0: return [4, context.endpoint()];
|
|
1157
1279
|
case 1:
|
|
1158
1280
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1159
|
-
headers =
|
|
1281
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1282
|
+
"content-type": "application/json",
|
|
1283
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1284
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1285
|
+
});
|
|
1160
1286
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1161
1287
|
"/amazonclouddirectory/2017-01-11/object/policy";
|
|
1162
1288
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
@@ -1181,7 +1307,10 @@ export var serializeAws_restJson1ListOutgoingTypedLinksCommand = function (input
|
|
|
1181
1307
|
case 0: return [4, context.endpoint()];
|
|
1182
1308
|
case 1:
|
|
1183
1309
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1184
|
-
headers =
|
|
1310
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1311
|
+
"content-type": "application/json",
|
|
1312
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1313
|
+
});
|
|
1185
1314
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1186
1315
|
"/amazonclouddirectory/2017-01-11/typedlink/outgoing";
|
|
1187
1316
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges != null && {
|
|
@@ -1210,7 +1339,11 @@ export var serializeAws_restJson1ListPolicyAttachmentsCommand = function (input,
|
|
|
1210
1339
|
case 0: return [4, context.endpoint()];
|
|
1211
1340
|
case 1:
|
|
1212
1341
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1213
|
-
headers =
|
|
1342
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1343
|
+
"content-type": "application/json",
|
|
1344
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1345
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1346
|
+
});
|
|
1214
1347
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1215
1348
|
"/amazonclouddirectory/2017-01-11/policy/attachment";
|
|
1216
1349
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyReference != null && {
|
|
@@ -1284,7 +1417,10 @@ export var serializeAws_restJson1ListTypedLinkFacetAttributesCommand = function
|
|
|
1284
1417
|
case 0: return [4, context.endpoint()];
|
|
1285
1418
|
case 1:
|
|
1286
1419
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1287
|
-
headers =
|
|
1420
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1421
|
+
"content-type": "application/json",
|
|
1422
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1423
|
+
});
|
|
1288
1424
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1289
1425
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
|
|
1290
1426
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Name != null && { Name: input.Name })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
@@ -1307,7 +1443,10 @@ export var serializeAws_restJson1ListTypedLinkFacetNamesCommand = function (inpu
|
|
|
1307
1443
|
case 0: return [4, context.endpoint()];
|
|
1308
1444
|
case 1:
|
|
1309
1445
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1310
|
-
headers =
|
|
1446
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1447
|
+
"content-type": "application/json",
|
|
1448
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1449
|
+
});
|
|
1311
1450
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1312
1451
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/list";
|
|
1313
1452
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
@@ -1330,7 +1469,10 @@ export var serializeAws_restJson1LookupPolicyCommand = function (input, context)
|
|
|
1330
1469
|
case 0: return [4, context.endpoint()];
|
|
1331
1470
|
case 1:
|
|
1332
1471
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1333
|
-
headers =
|
|
1472
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1473
|
+
"content-type": "application/json",
|
|
1474
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1475
|
+
});
|
|
1334
1476
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1335
1477
|
"/amazonclouddirectory/2017-01-11/policy/lookup";
|
|
1336
1478
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
@@ -1355,9 +1497,10 @@ export var serializeAws_restJson1PublishSchemaCommand = function (input, context
|
|
|
1355
1497
|
case 0: return [4, context.endpoint()];
|
|
1356
1498
|
case 1:
|
|
1357
1499
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1358
|
-
headers =
|
|
1500
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1501
|
+
"content-type": "application/json",
|
|
1359
1502
|
"x-amz-data-partition": input.DevelopmentSchemaArn,
|
|
1360
|
-
})
|
|
1503
|
+
});
|
|
1361
1504
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1362
1505
|
"/amazonclouddirectory/2017-01-11/schema/publish";
|
|
1363
1506
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.MinorVersion != null && { MinorVersion: input.MinorVersion })), (input.Name != null && { Name: input.Name })), (input.Version != null && { Version: input.Version })));
|
|
@@ -1380,7 +1523,10 @@ export var serializeAws_restJson1PutSchemaFromJsonCommand = function (input, con
|
|
|
1380
1523
|
case 0: return [4, context.endpoint()];
|
|
1381
1524
|
case 1:
|
|
1382
1525
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1383
|
-
headers =
|
|
1526
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1527
|
+
"content-type": "application/json",
|
|
1528
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1529
|
+
});
|
|
1384
1530
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1385
1531
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
1386
1532
|
body = JSON.stringify(__assign({}, (input.Document != null && { Document: input.Document })));
|
|
@@ -1403,7 +1549,10 @@ export var serializeAws_restJson1RemoveFacetFromObjectCommand = function (input,
|
|
|
1403
1549
|
case 0: return [4, context.endpoint()];
|
|
1404
1550
|
case 1:
|
|
1405
1551
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1406
|
-
headers =
|
|
1552
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1553
|
+
"content-type": "application/json",
|
|
1554
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1555
|
+
});
|
|
1407
1556
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1408
1557
|
"/amazonclouddirectory/2017-01-11/object/facets/delete";
|
|
1409
1558
|
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference != null && {
|
|
@@ -1477,7 +1626,10 @@ export var serializeAws_restJson1UpdateFacetCommand = function (input, context)
|
|
|
1477
1626
|
case 0: return [4, context.endpoint()];
|
|
1478
1627
|
case 1:
|
|
1479
1628
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1480
|
-
headers =
|
|
1629
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1630
|
+
"content-type": "application/json",
|
|
1631
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1632
|
+
});
|
|
1481
1633
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
|
|
1482
1634
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
1483
1635
|
AttributeUpdates: serializeAws_restJson1FacetAttributeUpdateList(input.AttributeUpdates, context),
|
|
@@ -1501,7 +1653,10 @@ export var serializeAws_restJson1UpdateLinkAttributesCommand = function (input,
|
|
|
1501
1653
|
case 0: return [4, context.endpoint()];
|
|
1502
1654
|
case 1:
|
|
1503
1655
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1504
|
-
headers =
|
|
1656
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1657
|
+
"content-type": "application/json",
|
|
1658
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1659
|
+
});
|
|
1505
1660
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1506
1661
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
|
|
1507
1662
|
body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
@@ -1528,7 +1683,10 @@ export var serializeAws_restJson1UpdateObjectAttributesCommand = function (input
|
|
|
1528
1683
|
case 0: return [4, context.endpoint()];
|
|
1529
1684
|
case 1:
|
|
1530
1685
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1531
|
-
headers =
|
|
1686
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1687
|
+
"content-type": "application/json",
|
|
1688
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1689
|
+
});
|
|
1532
1690
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1533
1691
|
"/amazonclouddirectory/2017-01-11/object/update";
|
|
1534
1692
|
body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
@@ -1555,7 +1713,10 @@ export var serializeAws_restJson1UpdateSchemaCommand = function (input, context)
|
|
|
1555
1713
|
case 0: return [4, context.endpoint()];
|
|
1556
1714
|
case 1:
|
|
1557
1715
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1558
|
-
headers =
|
|
1716
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1717
|
+
"content-type": "application/json",
|
|
1718
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1719
|
+
});
|
|
1559
1720
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1560
1721
|
"/amazonclouddirectory/2017-01-11/schema/update";
|
|
1561
1722
|
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
@@ -1578,7 +1739,10 @@ export var serializeAws_restJson1UpdateTypedLinkFacetCommand = function (input,
|
|
|
1578
1739
|
case 0: return [4, context.endpoint()];
|
|
1579
1740
|
case 1:
|
|
1580
1741
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1581
|
-
headers =
|
|
1742
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
1743
|
+
"content-type": "application/json",
|
|
1744
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1745
|
+
});
|
|
1582
1746
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1583
1747
|
"/amazonclouddirectory/2017-01-11/typedlink/facet";
|
|
1584
1748
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
@@ -1656,18 +1820,18 @@ export var deserializeAws_restJson1AddFacetToObjectCommand = function (output, c
|
|
|
1656
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1657
1821
|
return [2, deserializeAws_restJson1AddFacetToObjectCommandError(output, context)];
|
|
1658
1822
|
}
|
|
1659
|
-
contents = {
|
|
1823
|
+
contents = map({
|
|
1660
1824
|
$metadata: deserializeMetadata(output),
|
|
1661
|
-
};
|
|
1825
|
+
});
|
|
1662
1826
|
return [4, collectBody(output.body, context)];
|
|
1663
1827
|
case 1:
|
|
1664
1828
|
_a.sent();
|
|
1665
|
-
return [2,
|
|
1829
|
+
return [2, contents];
|
|
1666
1830
|
}
|
|
1667
1831
|
});
|
|
1668
1832
|
}); };
|
|
1669
1833
|
var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1670
|
-
var parsedOutput, _a,
|
|
1834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1671
1835
|
var _c;
|
|
1672
1836
|
return __generator(this, function (_d) {
|
|
1673
1837
|
switch (_d.label) {
|
|
@@ -1720,14 +1884,14 @@ var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, con
|
|
|
1720
1884
|
case 19: throw _d.sent();
|
|
1721
1885
|
case 20:
|
|
1722
1886
|
parsedBody = parsedOutput.body;
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
$metadata: $metadata,
|
|
1887
|
+
throwDefaultError({
|
|
1888
|
+
output: output,
|
|
1889
|
+
parsedBody: parsedBody,
|
|
1890
|
+
exceptionCtor: __BaseException,
|
|
1891
|
+
errorCode: errorCode,
|
|
1729
1892
|
});
|
|
1730
|
-
|
|
1893
|
+
_d.label = 21;
|
|
1894
|
+
case 21: return [2];
|
|
1731
1895
|
}
|
|
1732
1896
|
});
|
|
1733
1897
|
}); };
|
|
@@ -1739,28 +1903,26 @@ export var deserializeAws_restJson1ApplySchemaCommand = function (output, contex
|
|
|
1739
1903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1740
1904
|
return [2, deserializeAws_restJson1ApplySchemaCommandError(output, context)];
|
|
1741
1905
|
}
|
|
1742
|
-
contents = {
|
|
1906
|
+
contents = map({
|
|
1743
1907
|
$metadata: deserializeMetadata(output),
|
|
1744
|
-
|
|
1745
|
-
DirectoryArn: undefined,
|
|
1746
|
-
};
|
|
1908
|
+
});
|
|
1747
1909
|
_a = __expectNonNull;
|
|
1748
1910
|
_b = __expectObject;
|
|
1749
1911
|
return [4, parseBody(output.body, context)];
|
|
1750
1912
|
case 1:
|
|
1751
1913
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1752
|
-
if (data.AppliedSchemaArn
|
|
1914
|
+
if (data.AppliedSchemaArn != null) {
|
|
1753
1915
|
contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
|
|
1754
1916
|
}
|
|
1755
|
-
if (data.DirectoryArn
|
|
1917
|
+
if (data.DirectoryArn != null) {
|
|
1756
1918
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
1757
1919
|
}
|
|
1758
|
-
return [2,
|
|
1920
|
+
return [2, contents];
|
|
1759
1921
|
}
|
|
1760
1922
|
});
|
|
1761
1923
|
}); };
|
|
1762
1924
|
var deserializeAws_restJson1ApplySchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1763
|
-
var parsedOutput, _a,
|
|
1925
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1764
1926
|
var _c;
|
|
1765
1927
|
return __generator(this, function (_d) {
|
|
1766
1928
|
switch (_d.label) {
|
|
@@ -1813,14 +1975,14 @@ var deserializeAws_restJson1ApplySchemaCommandError = function (output, context)
|
|
|
1813
1975
|
case 19: throw _d.sent();
|
|
1814
1976
|
case 20:
|
|
1815
1977
|
parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
$metadata: $metadata,
|
|
1978
|
+
throwDefaultError({
|
|
1979
|
+
output: output,
|
|
1980
|
+
parsedBody: parsedBody,
|
|
1981
|
+
exceptionCtor: __BaseException,
|
|
1982
|
+
errorCode: errorCode,
|
|
1822
1983
|
});
|
|
1823
|
-
|
|
1984
|
+
_d.label = 21;
|
|
1985
|
+
case 21: return [2];
|
|
1824
1986
|
}
|
|
1825
1987
|
});
|
|
1826
1988
|
}); };
|
|
@@ -1832,24 +1994,23 @@ export var deserializeAws_restJson1AttachObjectCommand = function (output, conte
|
|
|
1832
1994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
1995
|
return [2, deserializeAws_restJson1AttachObjectCommandError(output, context)];
|
|
1834
1996
|
}
|
|
1835
|
-
contents = {
|
|
1997
|
+
contents = map({
|
|
1836
1998
|
$metadata: deserializeMetadata(output),
|
|
1837
|
-
|
|
1838
|
-
};
|
|
1999
|
+
});
|
|
1839
2000
|
_a = __expectNonNull;
|
|
1840
2001
|
_b = __expectObject;
|
|
1841
2002
|
return [4, parseBody(output.body, context)];
|
|
1842
2003
|
case 1:
|
|
1843
2004
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1844
|
-
if (data.AttachedObjectIdentifier
|
|
2005
|
+
if (data.AttachedObjectIdentifier != null) {
|
|
1845
2006
|
contents.AttachedObjectIdentifier = __expectString(data.AttachedObjectIdentifier);
|
|
1846
2007
|
}
|
|
1847
|
-
return [2,
|
|
2008
|
+
return [2, contents];
|
|
1848
2009
|
}
|
|
1849
2010
|
});
|
|
1850
2011
|
}); };
|
|
1851
2012
|
var deserializeAws_restJson1AttachObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1852
|
-
var parsedOutput, _a,
|
|
2013
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1853
2014
|
var _c;
|
|
1854
2015
|
return __generator(this, function (_d) {
|
|
1855
2016
|
switch (_d.label) {
|
|
@@ -1910,14 +2071,14 @@ var deserializeAws_restJson1AttachObjectCommandError = function (output, context
|
|
|
1910
2071
|
case 23: throw _d.sent();
|
|
1911
2072
|
case 24:
|
|
1912
2073
|
parsedBody = parsedOutput.body;
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
$metadata: $metadata,
|
|
2074
|
+
throwDefaultError({
|
|
2075
|
+
output: output,
|
|
2076
|
+
parsedBody: parsedBody,
|
|
2077
|
+
exceptionCtor: __BaseException,
|
|
2078
|
+
errorCode: errorCode,
|
|
1919
2079
|
});
|
|
1920
|
-
|
|
2080
|
+
_d.label = 25;
|
|
2081
|
+
case 25: return [2];
|
|
1921
2082
|
}
|
|
1922
2083
|
});
|
|
1923
2084
|
}); };
|
|
@@ -1929,18 +2090,18 @@ export var deserializeAws_restJson1AttachPolicyCommand = function (output, conte
|
|
|
1929
2090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1930
2091
|
return [2, deserializeAws_restJson1AttachPolicyCommandError(output, context)];
|
|
1931
2092
|
}
|
|
1932
|
-
contents = {
|
|
2093
|
+
contents = map({
|
|
1933
2094
|
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
2095
|
+
});
|
|
1935
2096
|
return [4, collectBody(output.body, context)];
|
|
1936
2097
|
case 1:
|
|
1937
2098
|
_a.sent();
|
|
1938
|
-
return [2,
|
|
2099
|
+
return [2, contents];
|
|
1939
2100
|
}
|
|
1940
2101
|
});
|
|
1941
2102
|
}); };
|
|
1942
2103
|
var deserializeAws_restJson1AttachPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1943
|
-
var parsedOutput, _a,
|
|
2104
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1944
2105
|
var _c;
|
|
1945
2106
|
return __generator(this, function (_d) {
|
|
1946
2107
|
switch (_d.label) {
|
|
@@ -1993,14 +2154,14 @@ var deserializeAws_restJson1AttachPolicyCommandError = function (output, context
|
|
|
1993
2154
|
case 19: throw _d.sent();
|
|
1994
2155
|
case 20:
|
|
1995
2156
|
parsedBody = parsedOutput.body;
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
$metadata: $metadata,
|
|
2157
|
+
throwDefaultError({
|
|
2158
|
+
output: output,
|
|
2159
|
+
parsedBody: parsedBody,
|
|
2160
|
+
exceptionCtor: __BaseException,
|
|
2161
|
+
errorCode: errorCode,
|
|
2002
2162
|
});
|
|
2003
|
-
|
|
2163
|
+
_d.label = 21;
|
|
2164
|
+
case 21: return [2];
|
|
2004
2165
|
}
|
|
2005
2166
|
});
|
|
2006
2167
|
}); };
|
|
@@ -2012,24 +2173,23 @@ export var deserializeAws_restJson1AttachToIndexCommand = function (output, cont
|
|
|
2012
2173
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2013
2174
|
return [2, deserializeAws_restJson1AttachToIndexCommandError(output, context)];
|
|
2014
2175
|
}
|
|
2015
|
-
contents = {
|
|
2176
|
+
contents = map({
|
|
2016
2177
|
$metadata: deserializeMetadata(output),
|
|
2017
|
-
|
|
2018
|
-
};
|
|
2178
|
+
});
|
|
2019
2179
|
_a = __expectNonNull;
|
|
2020
2180
|
_b = __expectObject;
|
|
2021
2181
|
return [4, parseBody(output.body, context)];
|
|
2022
2182
|
case 1:
|
|
2023
2183
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2024
|
-
if (data.AttachedObjectIdentifier
|
|
2184
|
+
if (data.AttachedObjectIdentifier != null) {
|
|
2025
2185
|
contents.AttachedObjectIdentifier = __expectString(data.AttachedObjectIdentifier);
|
|
2026
2186
|
}
|
|
2027
|
-
return [2,
|
|
2187
|
+
return [2, contents];
|
|
2028
2188
|
}
|
|
2029
2189
|
});
|
|
2030
2190
|
}); };
|
|
2031
2191
|
var deserializeAws_restJson1AttachToIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2032
|
-
var parsedOutput, _a,
|
|
2192
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2033
2193
|
var _c;
|
|
2034
2194
|
return __generator(this, function (_d) {
|
|
2035
2195
|
switch (_d.label) {
|
|
@@ -2094,14 +2254,14 @@ var deserializeAws_restJson1AttachToIndexCommandError = function (output, contex
|
|
|
2094
2254
|
case 25: throw _d.sent();
|
|
2095
2255
|
case 26:
|
|
2096
2256
|
parsedBody = parsedOutput.body;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
$metadata: $metadata,
|
|
2257
|
+
throwDefaultError({
|
|
2258
|
+
output: output,
|
|
2259
|
+
parsedBody: parsedBody,
|
|
2260
|
+
exceptionCtor: __BaseException,
|
|
2261
|
+
errorCode: errorCode,
|
|
2103
2262
|
});
|
|
2104
|
-
|
|
2263
|
+
_d.label = 27;
|
|
2264
|
+
case 27: return [2];
|
|
2105
2265
|
}
|
|
2106
2266
|
});
|
|
2107
2267
|
}); };
|
|
@@ -2113,24 +2273,23 @@ export var deserializeAws_restJson1AttachTypedLinkCommand = function (output, co
|
|
|
2113
2273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2114
2274
|
return [2, deserializeAws_restJson1AttachTypedLinkCommandError(output, context)];
|
|
2115
2275
|
}
|
|
2116
|
-
contents = {
|
|
2276
|
+
contents = map({
|
|
2117
2277
|
$metadata: deserializeMetadata(output),
|
|
2118
|
-
|
|
2119
|
-
};
|
|
2278
|
+
});
|
|
2120
2279
|
_a = __expectNonNull;
|
|
2121
2280
|
_b = __expectObject;
|
|
2122
2281
|
return [4, parseBody(output.body, context)];
|
|
2123
2282
|
case 1:
|
|
2124
2283
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2125
|
-
if (data.TypedLinkSpecifier
|
|
2284
|
+
if (data.TypedLinkSpecifier != null) {
|
|
2126
2285
|
contents.TypedLinkSpecifier = deserializeAws_restJson1TypedLinkSpecifier(data.TypedLinkSpecifier, context);
|
|
2127
2286
|
}
|
|
2128
|
-
return [2,
|
|
2287
|
+
return [2, contents];
|
|
2129
2288
|
}
|
|
2130
2289
|
});
|
|
2131
2290
|
}); };
|
|
2132
2291
|
var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2133
|
-
var parsedOutput, _a,
|
|
2292
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2134
2293
|
var _c;
|
|
2135
2294
|
return __generator(this, function (_d) {
|
|
2136
2295
|
switch (_d.label) {
|
|
@@ -2187,14 +2346,14 @@ var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, cont
|
|
|
2187
2346
|
case 21: throw _d.sent();
|
|
2188
2347
|
case 22:
|
|
2189
2348
|
parsedBody = parsedOutput.body;
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
$metadata: $metadata,
|
|
2349
|
+
throwDefaultError({
|
|
2350
|
+
output: output,
|
|
2351
|
+
parsedBody: parsedBody,
|
|
2352
|
+
exceptionCtor: __BaseException,
|
|
2353
|
+
errorCode: errorCode,
|
|
2196
2354
|
});
|
|
2197
|
-
|
|
2355
|
+
_d.label = 23;
|
|
2356
|
+
case 23: return [2];
|
|
2198
2357
|
}
|
|
2199
2358
|
});
|
|
2200
2359
|
}); };
|
|
@@ -2206,24 +2365,23 @@ export var deserializeAws_restJson1BatchReadCommand = function (output, context)
|
|
|
2206
2365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2207
2366
|
return [2, deserializeAws_restJson1BatchReadCommandError(output, context)];
|
|
2208
2367
|
}
|
|
2209
|
-
contents = {
|
|
2368
|
+
contents = map({
|
|
2210
2369
|
$metadata: deserializeMetadata(output),
|
|
2211
|
-
|
|
2212
|
-
};
|
|
2370
|
+
});
|
|
2213
2371
|
_a = __expectNonNull;
|
|
2214
2372
|
_b = __expectObject;
|
|
2215
2373
|
return [4, parseBody(output.body, context)];
|
|
2216
2374
|
case 1:
|
|
2217
2375
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2218
|
-
if (data.Responses
|
|
2376
|
+
if (data.Responses != null) {
|
|
2219
2377
|
contents.Responses = deserializeAws_restJson1BatchReadOperationResponseList(data.Responses, context);
|
|
2220
2378
|
}
|
|
2221
|
-
return [2,
|
|
2379
|
+
return [2, contents];
|
|
2222
2380
|
}
|
|
2223
2381
|
});
|
|
2224
2382
|
}); };
|
|
2225
2383
|
var deserializeAws_restJson1BatchReadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2226
|
-
var parsedOutput, _a,
|
|
2384
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2227
2385
|
var _c;
|
|
2228
2386
|
return __generator(this, function (_d) {
|
|
2229
2387
|
switch (_d.label) {
|
|
@@ -2268,14 +2426,14 @@ var deserializeAws_restJson1BatchReadCommandError = function (output, context) {
|
|
|
2268
2426
|
case 15: throw _d.sent();
|
|
2269
2427
|
case 16:
|
|
2270
2428
|
parsedBody = parsedOutput.body;
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
$metadata: $metadata,
|
|
2429
|
+
throwDefaultError({
|
|
2430
|
+
output: output,
|
|
2431
|
+
parsedBody: parsedBody,
|
|
2432
|
+
exceptionCtor: __BaseException,
|
|
2433
|
+
errorCode: errorCode,
|
|
2277
2434
|
});
|
|
2278
|
-
|
|
2435
|
+
_d.label = 17;
|
|
2436
|
+
case 17: return [2];
|
|
2279
2437
|
}
|
|
2280
2438
|
});
|
|
2281
2439
|
}); };
|
|
@@ -2287,24 +2445,23 @@ export var deserializeAws_restJson1BatchWriteCommand = function (output, context
|
|
|
2287
2445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2288
2446
|
return [2, deserializeAws_restJson1BatchWriteCommandError(output, context)];
|
|
2289
2447
|
}
|
|
2290
|
-
contents = {
|
|
2448
|
+
contents = map({
|
|
2291
2449
|
$metadata: deserializeMetadata(output),
|
|
2292
|
-
|
|
2293
|
-
};
|
|
2450
|
+
});
|
|
2294
2451
|
_a = __expectNonNull;
|
|
2295
2452
|
_b = __expectObject;
|
|
2296
2453
|
return [4, parseBody(output.body, context)];
|
|
2297
2454
|
case 1:
|
|
2298
2455
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2299
|
-
if (data.Responses
|
|
2456
|
+
if (data.Responses != null) {
|
|
2300
2457
|
contents.Responses = deserializeAws_restJson1BatchWriteOperationResponseList(data.Responses, context);
|
|
2301
2458
|
}
|
|
2302
|
-
return [2,
|
|
2459
|
+
return [2, contents];
|
|
2303
2460
|
}
|
|
2304
2461
|
});
|
|
2305
2462
|
}); };
|
|
2306
2463
|
var deserializeAws_restJson1BatchWriteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2307
|
-
var parsedOutput, _a,
|
|
2464
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2308
2465
|
var _c;
|
|
2309
2466
|
return __generator(this, function (_d) {
|
|
2310
2467
|
switch (_d.label) {
|
|
@@ -2353,14 +2510,14 @@ var deserializeAws_restJson1BatchWriteCommandError = function (output, context)
|
|
|
2353
2510
|
case 17: throw _d.sent();
|
|
2354
2511
|
case 18:
|
|
2355
2512
|
parsedBody = parsedOutput.body;
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
$metadata: $metadata,
|
|
2513
|
+
throwDefaultError({
|
|
2514
|
+
output: output,
|
|
2515
|
+
parsedBody: parsedBody,
|
|
2516
|
+
exceptionCtor: __BaseException,
|
|
2517
|
+
errorCode: errorCode,
|
|
2362
2518
|
});
|
|
2363
|
-
|
|
2519
|
+
_d.label = 19;
|
|
2520
|
+
case 19: return [2];
|
|
2364
2521
|
}
|
|
2365
2522
|
});
|
|
2366
2523
|
}); };
|
|
@@ -2372,36 +2529,32 @@ export var deserializeAws_restJson1CreateDirectoryCommand = function (output, co
|
|
|
2372
2529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2373
2530
|
return [2, deserializeAws_restJson1CreateDirectoryCommandError(output, context)];
|
|
2374
2531
|
}
|
|
2375
|
-
contents = {
|
|
2532
|
+
contents = map({
|
|
2376
2533
|
$metadata: deserializeMetadata(output),
|
|
2377
|
-
|
|
2378
|
-
DirectoryArn: undefined,
|
|
2379
|
-
Name: undefined,
|
|
2380
|
-
ObjectIdentifier: undefined,
|
|
2381
|
-
};
|
|
2534
|
+
});
|
|
2382
2535
|
_a = __expectNonNull;
|
|
2383
2536
|
_b = __expectObject;
|
|
2384
2537
|
return [4, parseBody(output.body, context)];
|
|
2385
2538
|
case 1:
|
|
2386
2539
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2387
|
-
if (data.AppliedSchemaArn
|
|
2540
|
+
if (data.AppliedSchemaArn != null) {
|
|
2388
2541
|
contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
|
|
2389
2542
|
}
|
|
2390
|
-
if (data.DirectoryArn
|
|
2543
|
+
if (data.DirectoryArn != null) {
|
|
2391
2544
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
2392
2545
|
}
|
|
2393
|
-
if (data.Name
|
|
2546
|
+
if (data.Name != null) {
|
|
2394
2547
|
contents.Name = __expectString(data.Name);
|
|
2395
2548
|
}
|
|
2396
|
-
if (data.ObjectIdentifier
|
|
2549
|
+
if (data.ObjectIdentifier != null) {
|
|
2397
2550
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
2398
2551
|
}
|
|
2399
|
-
return [2,
|
|
2552
|
+
return [2, contents];
|
|
2400
2553
|
}
|
|
2401
2554
|
});
|
|
2402
2555
|
}); };
|
|
2403
2556
|
var deserializeAws_restJson1CreateDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2404
|
-
var parsedOutput, _a,
|
|
2557
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2405
2558
|
var _c;
|
|
2406
2559
|
return __generator(this, function (_d) {
|
|
2407
2560
|
switch (_d.label) {
|
|
@@ -2450,14 +2603,14 @@ var deserializeAws_restJson1CreateDirectoryCommandError = function (output, cont
|
|
|
2450
2603
|
case 17: throw _d.sent();
|
|
2451
2604
|
case 18:
|
|
2452
2605
|
parsedBody = parsedOutput.body;
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
$metadata: $metadata,
|
|
2606
|
+
throwDefaultError({
|
|
2607
|
+
output: output,
|
|
2608
|
+
parsedBody: parsedBody,
|
|
2609
|
+
exceptionCtor: __BaseException,
|
|
2610
|
+
errorCode: errorCode,
|
|
2459
2611
|
});
|
|
2460
|
-
|
|
2612
|
+
_d.label = 19;
|
|
2613
|
+
case 19: return [2];
|
|
2461
2614
|
}
|
|
2462
2615
|
});
|
|
2463
2616
|
}); };
|
|
@@ -2469,18 +2622,18 @@ export var deserializeAws_restJson1CreateFacetCommand = function (output, contex
|
|
|
2469
2622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2470
2623
|
return [2, deserializeAws_restJson1CreateFacetCommandError(output, context)];
|
|
2471
2624
|
}
|
|
2472
|
-
contents = {
|
|
2625
|
+
contents = map({
|
|
2473
2626
|
$metadata: deserializeMetadata(output),
|
|
2474
|
-
};
|
|
2627
|
+
});
|
|
2475
2628
|
return [4, collectBody(output.body, context)];
|
|
2476
2629
|
case 1:
|
|
2477
2630
|
_a.sent();
|
|
2478
|
-
return [2,
|
|
2631
|
+
return [2, contents];
|
|
2479
2632
|
}
|
|
2480
2633
|
});
|
|
2481
2634
|
}); };
|
|
2482
2635
|
var deserializeAws_restJson1CreateFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2483
|
-
var parsedOutput, _a,
|
|
2636
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2484
2637
|
var _c;
|
|
2485
2638
|
return __generator(this, function (_d) {
|
|
2486
2639
|
switch (_d.label) {
|
|
@@ -2537,14 +2690,14 @@ var deserializeAws_restJson1CreateFacetCommandError = function (output, context)
|
|
|
2537
2690
|
case 21: throw _d.sent();
|
|
2538
2691
|
case 22:
|
|
2539
2692
|
parsedBody = parsedOutput.body;
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
$metadata: $metadata,
|
|
2693
|
+
throwDefaultError({
|
|
2694
|
+
output: output,
|
|
2695
|
+
parsedBody: parsedBody,
|
|
2696
|
+
exceptionCtor: __BaseException,
|
|
2697
|
+
errorCode: errorCode,
|
|
2546
2698
|
});
|
|
2547
|
-
|
|
2699
|
+
_d.label = 23;
|
|
2700
|
+
case 23: return [2];
|
|
2548
2701
|
}
|
|
2549
2702
|
});
|
|
2550
2703
|
}); };
|
|
@@ -2556,24 +2709,23 @@ export var deserializeAws_restJson1CreateIndexCommand = function (output, contex
|
|
|
2556
2709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2557
2710
|
return [2, deserializeAws_restJson1CreateIndexCommandError(output, context)];
|
|
2558
2711
|
}
|
|
2559
|
-
contents = {
|
|
2712
|
+
contents = map({
|
|
2560
2713
|
$metadata: deserializeMetadata(output),
|
|
2561
|
-
|
|
2562
|
-
};
|
|
2714
|
+
});
|
|
2563
2715
|
_a = __expectNonNull;
|
|
2564
2716
|
_b = __expectObject;
|
|
2565
2717
|
return [4, parseBody(output.body, context)];
|
|
2566
2718
|
case 1:
|
|
2567
2719
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2568
|
-
if (data.ObjectIdentifier
|
|
2720
|
+
if (data.ObjectIdentifier != null) {
|
|
2569
2721
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
2570
2722
|
}
|
|
2571
|
-
return [2,
|
|
2723
|
+
return [2, contents];
|
|
2572
2724
|
}
|
|
2573
2725
|
});
|
|
2574
2726
|
}); };
|
|
2575
2727
|
var deserializeAws_restJson1CreateIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2576
|
-
var parsedOutput, _a,
|
|
2728
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2577
2729
|
var _c;
|
|
2578
2730
|
return __generator(this, function (_d) {
|
|
2579
2731
|
switch (_d.label) {
|
|
@@ -2634,14 +2786,14 @@ var deserializeAws_restJson1CreateIndexCommandError = function (output, context)
|
|
|
2634
2786
|
case 23: throw _d.sent();
|
|
2635
2787
|
case 24:
|
|
2636
2788
|
parsedBody = parsedOutput.body;
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
$metadata: $metadata,
|
|
2789
|
+
throwDefaultError({
|
|
2790
|
+
output: output,
|
|
2791
|
+
parsedBody: parsedBody,
|
|
2792
|
+
exceptionCtor: __BaseException,
|
|
2793
|
+
errorCode: errorCode,
|
|
2643
2794
|
});
|
|
2644
|
-
|
|
2795
|
+
_d.label = 25;
|
|
2796
|
+
case 25: return [2];
|
|
2645
2797
|
}
|
|
2646
2798
|
});
|
|
2647
2799
|
}); };
|
|
@@ -2653,24 +2805,23 @@ export var deserializeAws_restJson1CreateObjectCommand = function (output, conte
|
|
|
2653
2805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2654
2806
|
return [2, deserializeAws_restJson1CreateObjectCommandError(output, context)];
|
|
2655
2807
|
}
|
|
2656
|
-
contents = {
|
|
2808
|
+
contents = map({
|
|
2657
2809
|
$metadata: deserializeMetadata(output),
|
|
2658
|
-
|
|
2659
|
-
};
|
|
2810
|
+
});
|
|
2660
2811
|
_a = __expectNonNull;
|
|
2661
2812
|
_b = __expectObject;
|
|
2662
2813
|
return [4, parseBody(output.body, context)];
|
|
2663
2814
|
case 1:
|
|
2664
2815
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2665
|
-
if (data.ObjectIdentifier
|
|
2816
|
+
if (data.ObjectIdentifier != null) {
|
|
2666
2817
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
2667
2818
|
}
|
|
2668
|
-
return [2,
|
|
2819
|
+
return [2, contents];
|
|
2669
2820
|
}
|
|
2670
2821
|
});
|
|
2671
2822
|
}); };
|
|
2672
2823
|
var deserializeAws_restJson1CreateObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2673
|
-
var parsedOutput, _a,
|
|
2824
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2674
2825
|
var _c;
|
|
2675
2826
|
return __generator(this, function (_d) {
|
|
2676
2827
|
switch (_d.label) {
|
|
@@ -2731,14 +2882,14 @@ var deserializeAws_restJson1CreateObjectCommandError = function (output, context
|
|
|
2731
2882
|
case 23: throw _d.sent();
|
|
2732
2883
|
case 24:
|
|
2733
2884
|
parsedBody = parsedOutput.body;
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
$metadata: $metadata,
|
|
2885
|
+
throwDefaultError({
|
|
2886
|
+
output: output,
|
|
2887
|
+
parsedBody: parsedBody,
|
|
2888
|
+
exceptionCtor: __BaseException,
|
|
2889
|
+
errorCode: errorCode,
|
|
2740
2890
|
});
|
|
2741
|
-
|
|
2891
|
+
_d.label = 25;
|
|
2892
|
+
case 25: return [2];
|
|
2742
2893
|
}
|
|
2743
2894
|
});
|
|
2744
2895
|
}); };
|
|
@@ -2750,24 +2901,23 @@ export var deserializeAws_restJson1CreateSchemaCommand = function (output, conte
|
|
|
2750
2901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2751
2902
|
return [2, deserializeAws_restJson1CreateSchemaCommandError(output, context)];
|
|
2752
2903
|
}
|
|
2753
|
-
contents = {
|
|
2904
|
+
contents = map({
|
|
2754
2905
|
$metadata: deserializeMetadata(output),
|
|
2755
|
-
|
|
2756
|
-
};
|
|
2906
|
+
});
|
|
2757
2907
|
_a = __expectNonNull;
|
|
2758
2908
|
_b = __expectObject;
|
|
2759
2909
|
return [4, parseBody(output.body, context)];
|
|
2760
2910
|
case 1:
|
|
2761
2911
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2762
|
-
if (data.SchemaArn
|
|
2912
|
+
if (data.SchemaArn != null) {
|
|
2763
2913
|
contents.SchemaArn = __expectString(data.SchemaArn);
|
|
2764
2914
|
}
|
|
2765
|
-
return [2,
|
|
2915
|
+
return [2, contents];
|
|
2766
2916
|
}
|
|
2767
2917
|
});
|
|
2768
2918
|
}); };
|
|
2769
2919
|
var deserializeAws_restJson1CreateSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2770
|
-
var parsedOutput, _a,
|
|
2920
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2771
2921
|
var _c;
|
|
2772
2922
|
return __generator(this, function (_d) {
|
|
2773
2923
|
switch (_d.label) {
|
|
@@ -2812,14 +2962,14 @@ var deserializeAws_restJson1CreateSchemaCommandError = function (output, context
|
|
|
2812
2962
|
case 15: throw _d.sent();
|
|
2813
2963
|
case 16:
|
|
2814
2964
|
parsedBody = parsedOutput.body;
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
$metadata: $metadata,
|
|
2965
|
+
throwDefaultError({
|
|
2966
|
+
output: output,
|
|
2967
|
+
parsedBody: parsedBody,
|
|
2968
|
+
exceptionCtor: __BaseException,
|
|
2969
|
+
errorCode: errorCode,
|
|
2821
2970
|
});
|
|
2822
|
-
|
|
2971
|
+
_d.label = 17;
|
|
2972
|
+
case 17: return [2];
|
|
2823
2973
|
}
|
|
2824
2974
|
});
|
|
2825
2975
|
}); };
|
|
@@ -2831,18 +2981,18 @@ export var deserializeAws_restJson1CreateTypedLinkFacetCommand = function (outpu
|
|
|
2831
2981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2832
2982
|
return [2, deserializeAws_restJson1CreateTypedLinkFacetCommandError(output, context)];
|
|
2833
2983
|
}
|
|
2834
|
-
contents = {
|
|
2984
|
+
contents = map({
|
|
2835
2985
|
$metadata: deserializeMetadata(output),
|
|
2836
|
-
};
|
|
2986
|
+
});
|
|
2837
2987
|
return [4, collectBody(output.body, context)];
|
|
2838
2988
|
case 1:
|
|
2839
2989
|
_a.sent();
|
|
2840
|
-
return [2,
|
|
2990
|
+
return [2, contents];
|
|
2841
2991
|
}
|
|
2842
2992
|
});
|
|
2843
2993
|
}); };
|
|
2844
2994
|
var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2845
|
-
var parsedOutput, _a,
|
|
2995
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2846
2996
|
var _c;
|
|
2847
2997
|
return __generator(this, function (_d) {
|
|
2848
2998
|
switch (_d.label) {
|
|
@@ -2899,14 +3049,14 @@ var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output,
|
|
|
2899
3049
|
case 21: throw _d.sent();
|
|
2900
3050
|
case 22:
|
|
2901
3051
|
parsedBody = parsedOutput.body;
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
$metadata: $metadata,
|
|
3052
|
+
throwDefaultError({
|
|
3053
|
+
output: output,
|
|
3054
|
+
parsedBody: parsedBody,
|
|
3055
|
+
exceptionCtor: __BaseException,
|
|
3056
|
+
errorCode: errorCode,
|
|
2908
3057
|
});
|
|
2909
|
-
|
|
3058
|
+
_d.label = 23;
|
|
3059
|
+
case 23: return [2];
|
|
2910
3060
|
}
|
|
2911
3061
|
});
|
|
2912
3062
|
}); };
|
|
@@ -2918,24 +3068,23 @@ export var deserializeAws_restJson1DeleteDirectoryCommand = function (output, co
|
|
|
2918
3068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2919
3069
|
return [2, deserializeAws_restJson1DeleteDirectoryCommandError(output, context)];
|
|
2920
3070
|
}
|
|
2921
|
-
contents = {
|
|
3071
|
+
contents = map({
|
|
2922
3072
|
$metadata: deserializeMetadata(output),
|
|
2923
|
-
|
|
2924
|
-
};
|
|
3073
|
+
});
|
|
2925
3074
|
_a = __expectNonNull;
|
|
2926
3075
|
_b = __expectObject;
|
|
2927
3076
|
return [4, parseBody(output.body, context)];
|
|
2928
3077
|
case 1:
|
|
2929
3078
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2930
|
-
if (data.DirectoryArn
|
|
3079
|
+
if (data.DirectoryArn != null) {
|
|
2931
3080
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
2932
3081
|
}
|
|
2933
|
-
return [2,
|
|
3082
|
+
return [2, contents];
|
|
2934
3083
|
}
|
|
2935
3084
|
});
|
|
2936
3085
|
}); };
|
|
2937
3086
|
var deserializeAws_restJson1DeleteDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2938
|
-
var parsedOutput, _a,
|
|
3087
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2939
3088
|
var _c;
|
|
2940
3089
|
return __generator(this, function (_d) {
|
|
2941
3090
|
switch (_d.label) {
|
|
@@ -2988,14 +3137,14 @@ var deserializeAws_restJson1DeleteDirectoryCommandError = function (output, cont
|
|
|
2988
3137
|
case 19: throw _d.sent();
|
|
2989
3138
|
case 20:
|
|
2990
3139
|
parsedBody = parsedOutput.body;
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
$metadata: $metadata,
|
|
3140
|
+
throwDefaultError({
|
|
3141
|
+
output: output,
|
|
3142
|
+
parsedBody: parsedBody,
|
|
3143
|
+
exceptionCtor: __BaseException,
|
|
3144
|
+
errorCode: errorCode,
|
|
2997
3145
|
});
|
|
2998
|
-
|
|
3146
|
+
_d.label = 21;
|
|
3147
|
+
case 21: return [2];
|
|
2999
3148
|
}
|
|
3000
3149
|
});
|
|
3001
3150
|
}); };
|
|
@@ -3007,18 +3156,18 @@ export var deserializeAws_restJson1DeleteFacetCommand = function (output, contex
|
|
|
3007
3156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3008
3157
|
return [2, deserializeAws_restJson1DeleteFacetCommandError(output, context)];
|
|
3009
3158
|
}
|
|
3010
|
-
contents = {
|
|
3159
|
+
contents = map({
|
|
3011
3160
|
$metadata: deserializeMetadata(output),
|
|
3012
|
-
};
|
|
3161
|
+
});
|
|
3013
3162
|
return [4, collectBody(output.body, context)];
|
|
3014
3163
|
case 1:
|
|
3015
3164
|
_a.sent();
|
|
3016
|
-
return [2,
|
|
3165
|
+
return [2, contents];
|
|
3017
3166
|
}
|
|
3018
3167
|
});
|
|
3019
3168
|
}); };
|
|
3020
3169
|
var deserializeAws_restJson1DeleteFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3021
|
-
var parsedOutput, _a,
|
|
3170
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3022
3171
|
var _c;
|
|
3023
3172
|
return __generator(this, function (_d) {
|
|
3024
3173
|
switch (_d.label) {
|
|
@@ -3071,14 +3220,14 @@ var deserializeAws_restJson1DeleteFacetCommandError = function (output, context)
|
|
|
3071
3220
|
case 19: throw _d.sent();
|
|
3072
3221
|
case 20:
|
|
3073
3222
|
parsedBody = parsedOutput.body;
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
$metadata: $metadata,
|
|
3223
|
+
throwDefaultError({
|
|
3224
|
+
output: output,
|
|
3225
|
+
parsedBody: parsedBody,
|
|
3226
|
+
exceptionCtor: __BaseException,
|
|
3227
|
+
errorCode: errorCode,
|
|
3080
3228
|
});
|
|
3081
|
-
|
|
3229
|
+
_d.label = 21;
|
|
3230
|
+
case 21: return [2];
|
|
3082
3231
|
}
|
|
3083
3232
|
});
|
|
3084
3233
|
}); };
|
|
@@ -3090,18 +3239,18 @@ export var deserializeAws_restJson1DeleteObjectCommand = function (output, conte
|
|
|
3090
3239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3091
3240
|
return [2, deserializeAws_restJson1DeleteObjectCommandError(output, context)];
|
|
3092
3241
|
}
|
|
3093
|
-
contents = {
|
|
3242
|
+
contents = map({
|
|
3094
3243
|
$metadata: deserializeMetadata(output),
|
|
3095
|
-
};
|
|
3244
|
+
});
|
|
3096
3245
|
return [4, collectBody(output.body, context)];
|
|
3097
3246
|
case 1:
|
|
3098
3247
|
_a.sent();
|
|
3099
|
-
return [2,
|
|
3248
|
+
return [2, contents];
|
|
3100
3249
|
}
|
|
3101
3250
|
});
|
|
3102
3251
|
}); };
|
|
3103
3252
|
var deserializeAws_restJson1DeleteObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3104
|
-
var parsedOutput, _a,
|
|
3253
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3105
3254
|
var _c;
|
|
3106
3255
|
return __generator(this, function (_d) {
|
|
3107
3256
|
switch (_d.label) {
|
|
@@ -3154,14 +3303,14 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
3154
3303
|
case 19: throw _d.sent();
|
|
3155
3304
|
case 20:
|
|
3156
3305
|
parsedBody = parsedOutput.body;
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
$metadata: $metadata,
|
|
3306
|
+
throwDefaultError({
|
|
3307
|
+
output: output,
|
|
3308
|
+
parsedBody: parsedBody,
|
|
3309
|
+
exceptionCtor: __BaseException,
|
|
3310
|
+
errorCode: errorCode,
|
|
3163
3311
|
});
|
|
3164
|
-
|
|
3312
|
+
_d.label = 21;
|
|
3313
|
+
case 21: return [2];
|
|
3165
3314
|
}
|
|
3166
3315
|
});
|
|
3167
3316
|
}); };
|
|
@@ -3173,24 +3322,23 @@ export var deserializeAws_restJson1DeleteSchemaCommand = function (output, conte
|
|
|
3173
3322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3174
3323
|
return [2, deserializeAws_restJson1DeleteSchemaCommandError(output, context)];
|
|
3175
3324
|
}
|
|
3176
|
-
contents = {
|
|
3325
|
+
contents = map({
|
|
3177
3326
|
$metadata: deserializeMetadata(output),
|
|
3178
|
-
|
|
3179
|
-
};
|
|
3327
|
+
});
|
|
3180
3328
|
_a = __expectNonNull;
|
|
3181
3329
|
_b = __expectObject;
|
|
3182
3330
|
return [4, parseBody(output.body, context)];
|
|
3183
3331
|
case 1:
|
|
3184
3332
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3185
|
-
if (data.SchemaArn
|
|
3333
|
+
if (data.SchemaArn != null) {
|
|
3186
3334
|
contents.SchemaArn = __expectString(data.SchemaArn);
|
|
3187
3335
|
}
|
|
3188
|
-
return [2,
|
|
3336
|
+
return [2, contents];
|
|
3189
3337
|
}
|
|
3190
3338
|
});
|
|
3191
3339
|
}); };
|
|
3192
3340
|
var deserializeAws_restJson1DeleteSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3193
|
-
var parsedOutput, _a,
|
|
3341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3194
3342
|
var _c;
|
|
3195
3343
|
return __generator(this, function (_d) {
|
|
3196
3344
|
switch (_d.label) {
|
|
@@ -3239,14 +3387,14 @@ var deserializeAws_restJson1DeleteSchemaCommandError = function (output, context
|
|
|
3239
3387
|
case 17: throw _d.sent();
|
|
3240
3388
|
case 18:
|
|
3241
3389
|
parsedBody = parsedOutput.body;
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
$metadata: $metadata,
|
|
3390
|
+
throwDefaultError({
|
|
3391
|
+
output: output,
|
|
3392
|
+
parsedBody: parsedBody,
|
|
3393
|
+
exceptionCtor: __BaseException,
|
|
3394
|
+
errorCode: errorCode,
|
|
3248
3395
|
});
|
|
3249
|
-
|
|
3396
|
+
_d.label = 19;
|
|
3397
|
+
case 19: return [2];
|
|
3250
3398
|
}
|
|
3251
3399
|
});
|
|
3252
3400
|
}); };
|
|
@@ -3258,18 +3406,18 @@ export var deserializeAws_restJson1DeleteTypedLinkFacetCommand = function (outpu
|
|
|
3258
3406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3259
3407
|
return [2, deserializeAws_restJson1DeleteTypedLinkFacetCommandError(output, context)];
|
|
3260
3408
|
}
|
|
3261
|
-
contents = {
|
|
3409
|
+
contents = map({
|
|
3262
3410
|
$metadata: deserializeMetadata(output),
|
|
3263
|
-
};
|
|
3411
|
+
});
|
|
3264
3412
|
return [4, collectBody(output.body, context)];
|
|
3265
3413
|
case 1:
|
|
3266
3414
|
_a.sent();
|
|
3267
|
-
return [2,
|
|
3415
|
+
return [2, contents];
|
|
3268
3416
|
}
|
|
3269
3417
|
});
|
|
3270
3418
|
}); };
|
|
3271
3419
|
var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3272
|
-
var parsedOutput, _a,
|
|
3420
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3273
3421
|
var _c;
|
|
3274
3422
|
return __generator(this, function (_d) {
|
|
3275
3423
|
switch (_d.label) {
|
|
@@ -3318,14 +3466,14 @@ var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output,
|
|
|
3318
3466
|
case 17: throw _d.sent();
|
|
3319
3467
|
case 18:
|
|
3320
3468
|
parsedBody = parsedOutput.body;
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
$metadata: $metadata,
|
|
3469
|
+
throwDefaultError({
|
|
3470
|
+
output: output,
|
|
3471
|
+
parsedBody: parsedBody,
|
|
3472
|
+
exceptionCtor: __BaseException,
|
|
3473
|
+
errorCode: errorCode,
|
|
3327
3474
|
});
|
|
3328
|
-
|
|
3475
|
+
_d.label = 19;
|
|
3476
|
+
case 19: return [2];
|
|
3329
3477
|
}
|
|
3330
3478
|
});
|
|
3331
3479
|
}); };
|
|
@@ -3337,24 +3485,23 @@ export var deserializeAws_restJson1DetachFromIndexCommand = function (output, co
|
|
|
3337
3485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3338
3486
|
return [2, deserializeAws_restJson1DetachFromIndexCommandError(output, context)];
|
|
3339
3487
|
}
|
|
3340
|
-
contents = {
|
|
3488
|
+
contents = map({
|
|
3341
3489
|
$metadata: deserializeMetadata(output),
|
|
3342
|
-
|
|
3343
|
-
};
|
|
3490
|
+
});
|
|
3344
3491
|
_a = __expectNonNull;
|
|
3345
3492
|
_b = __expectObject;
|
|
3346
3493
|
return [4, parseBody(output.body, context)];
|
|
3347
3494
|
case 1:
|
|
3348
3495
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3349
|
-
if (data.DetachedObjectIdentifier
|
|
3496
|
+
if (data.DetachedObjectIdentifier != null) {
|
|
3350
3497
|
contents.DetachedObjectIdentifier = __expectString(data.DetachedObjectIdentifier);
|
|
3351
3498
|
}
|
|
3352
|
-
return [2,
|
|
3499
|
+
return [2, contents];
|
|
3353
3500
|
}
|
|
3354
3501
|
});
|
|
3355
3502
|
}); };
|
|
3356
3503
|
var deserializeAws_restJson1DetachFromIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3357
|
-
var parsedOutput, _a,
|
|
3504
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3358
3505
|
var _c;
|
|
3359
3506
|
return __generator(this, function (_d) {
|
|
3360
3507
|
switch (_d.label) {
|
|
@@ -3411,14 +3558,14 @@ var deserializeAws_restJson1DetachFromIndexCommandError = function (output, cont
|
|
|
3411
3558
|
case 21: throw _d.sent();
|
|
3412
3559
|
case 22:
|
|
3413
3560
|
parsedBody = parsedOutput.body;
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
$metadata: $metadata,
|
|
3561
|
+
throwDefaultError({
|
|
3562
|
+
output: output,
|
|
3563
|
+
parsedBody: parsedBody,
|
|
3564
|
+
exceptionCtor: __BaseException,
|
|
3565
|
+
errorCode: errorCode,
|
|
3420
3566
|
});
|
|
3421
|
-
|
|
3567
|
+
_d.label = 23;
|
|
3568
|
+
case 23: return [2];
|
|
3422
3569
|
}
|
|
3423
3570
|
});
|
|
3424
3571
|
}); };
|
|
@@ -3430,24 +3577,23 @@ export var deserializeAws_restJson1DetachObjectCommand = function (output, conte
|
|
|
3430
3577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3431
3578
|
return [2, deserializeAws_restJson1DetachObjectCommandError(output, context)];
|
|
3432
3579
|
}
|
|
3433
|
-
contents = {
|
|
3580
|
+
contents = map({
|
|
3434
3581
|
$metadata: deserializeMetadata(output),
|
|
3435
|
-
|
|
3436
|
-
};
|
|
3582
|
+
});
|
|
3437
3583
|
_a = __expectNonNull;
|
|
3438
3584
|
_b = __expectObject;
|
|
3439
3585
|
return [4, parseBody(output.body, context)];
|
|
3440
3586
|
case 1:
|
|
3441
3587
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3442
|
-
if (data.DetachedObjectIdentifier
|
|
3588
|
+
if (data.DetachedObjectIdentifier != null) {
|
|
3443
3589
|
contents.DetachedObjectIdentifier = __expectString(data.DetachedObjectIdentifier);
|
|
3444
3590
|
}
|
|
3445
|
-
return [2,
|
|
3591
|
+
return [2, contents];
|
|
3446
3592
|
}
|
|
3447
3593
|
});
|
|
3448
3594
|
}); };
|
|
3449
3595
|
var deserializeAws_restJson1DetachObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3450
|
-
var parsedOutput, _a,
|
|
3596
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3451
3597
|
var _c;
|
|
3452
3598
|
return __generator(this, function (_d) {
|
|
3453
3599
|
switch (_d.label) {
|
|
@@ -3500,14 +3646,14 @@ var deserializeAws_restJson1DetachObjectCommandError = function (output, context
|
|
|
3500
3646
|
case 19: throw _d.sent();
|
|
3501
3647
|
case 20:
|
|
3502
3648
|
parsedBody = parsedOutput.body;
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
$metadata: $metadata,
|
|
3649
|
+
throwDefaultError({
|
|
3650
|
+
output: output,
|
|
3651
|
+
parsedBody: parsedBody,
|
|
3652
|
+
exceptionCtor: __BaseException,
|
|
3653
|
+
errorCode: errorCode,
|
|
3509
3654
|
});
|
|
3510
|
-
|
|
3655
|
+
_d.label = 21;
|
|
3656
|
+
case 21: return [2];
|
|
3511
3657
|
}
|
|
3512
3658
|
});
|
|
3513
3659
|
}); };
|
|
@@ -3519,18 +3665,18 @@ export var deserializeAws_restJson1DetachPolicyCommand = function (output, conte
|
|
|
3519
3665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3520
3666
|
return [2, deserializeAws_restJson1DetachPolicyCommandError(output, context)];
|
|
3521
3667
|
}
|
|
3522
|
-
contents = {
|
|
3668
|
+
contents = map({
|
|
3523
3669
|
$metadata: deserializeMetadata(output),
|
|
3524
|
-
};
|
|
3670
|
+
});
|
|
3525
3671
|
return [4, collectBody(output.body, context)];
|
|
3526
3672
|
case 1:
|
|
3527
3673
|
_a.sent();
|
|
3528
|
-
return [2,
|
|
3674
|
+
return [2, contents];
|
|
3529
3675
|
}
|
|
3530
3676
|
});
|
|
3531
3677
|
}); };
|
|
3532
3678
|
var deserializeAws_restJson1DetachPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3533
|
-
var parsedOutput, _a,
|
|
3679
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3534
3680
|
var _c;
|
|
3535
3681
|
return __generator(this, function (_d) {
|
|
3536
3682
|
switch (_d.label) {
|
|
@@ -3583,14 +3729,14 @@ var deserializeAws_restJson1DetachPolicyCommandError = function (output, context
|
|
|
3583
3729
|
case 19: throw _d.sent();
|
|
3584
3730
|
case 20:
|
|
3585
3731
|
parsedBody = parsedOutput.body;
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
$metadata: $metadata,
|
|
3732
|
+
throwDefaultError({
|
|
3733
|
+
output: output,
|
|
3734
|
+
parsedBody: parsedBody,
|
|
3735
|
+
exceptionCtor: __BaseException,
|
|
3736
|
+
errorCode: errorCode,
|
|
3592
3737
|
});
|
|
3593
|
-
|
|
3738
|
+
_d.label = 21;
|
|
3739
|
+
case 21: return [2];
|
|
3594
3740
|
}
|
|
3595
3741
|
});
|
|
3596
3742
|
}); };
|
|
@@ -3602,18 +3748,18 @@ export var deserializeAws_restJson1DetachTypedLinkCommand = function (output, co
|
|
|
3602
3748
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3603
3749
|
return [2, deserializeAws_restJson1DetachTypedLinkCommandError(output, context)];
|
|
3604
3750
|
}
|
|
3605
|
-
contents = {
|
|
3751
|
+
contents = map({
|
|
3606
3752
|
$metadata: deserializeMetadata(output),
|
|
3607
|
-
};
|
|
3753
|
+
});
|
|
3608
3754
|
return [4, collectBody(output.body, context)];
|
|
3609
3755
|
case 1:
|
|
3610
3756
|
_a.sent();
|
|
3611
|
-
return [2,
|
|
3757
|
+
return [2, contents];
|
|
3612
3758
|
}
|
|
3613
3759
|
});
|
|
3614
3760
|
}); };
|
|
3615
3761
|
var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3616
|
-
var parsedOutput, _a,
|
|
3762
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3617
3763
|
var _c;
|
|
3618
3764
|
return __generator(this, function (_d) {
|
|
3619
3765
|
switch (_d.label) {
|
|
@@ -3666,14 +3812,14 @@ var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, cont
|
|
|
3666
3812
|
case 19: throw _d.sent();
|
|
3667
3813
|
case 20:
|
|
3668
3814
|
parsedBody = parsedOutput.body;
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
$metadata: $metadata,
|
|
3815
|
+
throwDefaultError({
|
|
3816
|
+
output: output,
|
|
3817
|
+
parsedBody: parsedBody,
|
|
3818
|
+
exceptionCtor: __BaseException,
|
|
3819
|
+
errorCode: errorCode,
|
|
3675
3820
|
});
|
|
3676
|
-
|
|
3821
|
+
_d.label = 21;
|
|
3822
|
+
case 21: return [2];
|
|
3677
3823
|
}
|
|
3678
3824
|
});
|
|
3679
3825
|
}); };
|
|
@@ -3685,24 +3831,23 @@ export var deserializeAws_restJson1DisableDirectoryCommand = function (output, c
|
|
|
3685
3831
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3686
3832
|
return [2, deserializeAws_restJson1DisableDirectoryCommandError(output, context)];
|
|
3687
3833
|
}
|
|
3688
|
-
contents = {
|
|
3834
|
+
contents = map({
|
|
3689
3835
|
$metadata: deserializeMetadata(output),
|
|
3690
|
-
|
|
3691
|
-
};
|
|
3836
|
+
});
|
|
3692
3837
|
_a = __expectNonNull;
|
|
3693
3838
|
_b = __expectObject;
|
|
3694
3839
|
return [4, parseBody(output.body, context)];
|
|
3695
3840
|
case 1:
|
|
3696
3841
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3697
|
-
if (data.DirectoryArn
|
|
3842
|
+
if (data.DirectoryArn != null) {
|
|
3698
3843
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
3699
3844
|
}
|
|
3700
|
-
return [2,
|
|
3845
|
+
return [2, contents];
|
|
3701
3846
|
}
|
|
3702
3847
|
});
|
|
3703
3848
|
}); };
|
|
3704
3849
|
var deserializeAws_restJson1DisableDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3705
|
-
var parsedOutput, _a,
|
|
3850
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3706
3851
|
var _c;
|
|
3707
3852
|
return __generator(this, function (_d) {
|
|
3708
3853
|
switch (_d.label) {
|
|
@@ -3751,14 +3896,14 @@ var deserializeAws_restJson1DisableDirectoryCommandError = function (output, con
|
|
|
3751
3896
|
case 17: throw _d.sent();
|
|
3752
3897
|
case 18:
|
|
3753
3898
|
parsedBody = parsedOutput.body;
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
$metadata: $metadata,
|
|
3899
|
+
throwDefaultError({
|
|
3900
|
+
output: output,
|
|
3901
|
+
parsedBody: parsedBody,
|
|
3902
|
+
exceptionCtor: __BaseException,
|
|
3903
|
+
errorCode: errorCode,
|
|
3760
3904
|
});
|
|
3761
|
-
|
|
3905
|
+
_d.label = 19;
|
|
3906
|
+
case 19: return [2];
|
|
3762
3907
|
}
|
|
3763
3908
|
});
|
|
3764
3909
|
}); };
|
|
@@ -3770,24 +3915,23 @@ export var deserializeAws_restJson1EnableDirectoryCommand = function (output, co
|
|
|
3770
3915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3771
3916
|
return [2, deserializeAws_restJson1EnableDirectoryCommandError(output, context)];
|
|
3772
3917
|
}
|
|
3773
|
-
contents = {
|
|
3918
|
+
contents = map({
|
|
3774
3919
|
$metadata: deserializeMetadata(output),
|
|
3775
|
-
|
|
3776
|
-
};
|
|
3920
|
+
});
|
|
3777
3921
|
_a = __expectNonNull;
|
|
3778
3922
|
_b = __expectObject;
|
|
3779
3923
|
return [4, parseBody(output.body, context)];
|
|
3780
3924
|
case 1:
|
|
3781
3925
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3782
|
-
if (data.DirectoryArn
|
|
3926
|
+
if (data.DirectoryArn != null) {
|
|
3783
3927
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
3784
3928
|
}
|
|
3785
|
-
return [2,
|
|
3929
|
+
return [2, contents];
|
|
3786
3930
|
}
|
|
3787
3931
|
});
|
|
3788
3932
|
}); };
|
|
3789
3933
|
var deserializeAws_restJson1EnableDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3790
|
-
var parsedOutput, _a,
|
|
3934
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3791
3935
|
var _c;
|
|
3792
3936
|
return __generator(this, function (_d) {
|
|
3793
3937
|
switch (_d.label) {
|
|
@@ -3836,14 +3980,14 @@ var deserializeAws_restJson1EnableDirectoryCommandError = function (output, cont
|
|
|
3836
3980
|
case 17: throw _d.sent();
|
|
3837
3981
|
case 18:
|
|
3838
3982
|
parsedBody = parsedOutput.body;
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
$metadata: $metadata,
|
|
3983
|
+
throwDefaultError({
|
|
3984
|
+
output: output,
|
|
3985
|
+
parsedBody: parsedBody,
|
|
3986
|
+
exceptionCtor: __BaseException,
|
|
3987
|
+
errorCode: errorCode,
|
|
3845
3988
|
});
|
|
3846
|
-
|
|
3989
|
+
_d.label = 19;
|
|
3990
|
+
case 19: return [2];
|
|
3847
3991
|
}
|
|
3848
3992
|
});
|
|
3849
3993
|
}); };
|
|
@@ -3855,24 +3999,23 @@ export var deserializeAws_restJson1GetAppliedSchemaVersionCommand = function (ou
|
|
|
3855
3999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3856
4000
|
return [2, deserializeAws_restJson1GetAppliedSchemaVersionCommandError(output, context)];
|
|
3857
4001
|
}
|
|
3858
|
-
contents = {
|
|
4002
|
+
contents = map({
|
|
3859
4003
|
$metadata: deserializeMetadata(output),
|
|
3860
|
-
|
|
3861
|
-
};
|
|
4004
|
+
});
|
|
3862
4005
|
_a = __expectNonNull;
|
|
3863
4006
|
_b = __expectObject;
|
|
3864
4007
|
return [4, parseBody(output.body, context)];
|
|
3865
4008
|
case 1:
|
|
3866
4009
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3867
|
-
if (data.AppliedSchemaArn
|
|
4010
|
+
if (data.AppliedSchemaArn != null) {
|
|
3868
4011
|
contents.AppliedSchemaArn = __expectString(data.AppliedSchemaArn);
|
|
3869
4012
|
}
|
|
3870
|
-
return [2,
|
|
4013
|
+
return [2, contents];
|
|
3871
4014
|
}
|
|
3872
4015
|
});
|
|
3873
4016
|
}); };
|
|
3874
4017
|
var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3875
|
-
var parsedOutput, _a,
|
|
4018
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3876
4019
|
var _c;
|
|
3877
4020
|
return __generator(this, function (_d) {
|
|
3878
4021
|
switch (_d.label) {
|
|
@@ -3917,14 +4060,14 @@ var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (outp
|
|
|
3917
4060
|
case 15: throw _d.sent();
|
|
3918
4061
|
case 16:
|
|
3919
4062
|
parsedBody = parsedOutput.body;
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
$metadata: $metadata,
|
|
4063
|
+
throwDefaultError({
|
|
4064
|
+
output: output,
|
|
4065
|
+
parsedBody: parsedBody,
|
|
4066
|
+
exceptionCtor: __BaseException,
|
|
4067
|
+
errorCode: errorCode,
|
|
3926
4068
|
});
|
|
3927
|
-
|
|
4069
|
+
_d.label = 17;
|
|
4070
|
+
case 17: return [2];
|
|
3928
4071
|
}
|
|
3929
4072
|
});
|
|
3930
4073
|
}); };
|
|
@@ -3936,24 +4079,23 @@ export var deserializeAws_restJson1GetDirectoryCommand = function (output, conte
|
|
|
3936
4079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3937
4080
|
return [2, deserializeAws_restJson1GetDirectoryCommandError(output, context)];
|
|
3938
4081
|
}
|
|
3939
|
-
contents = {
|
|
4082
|
+
contents = map({
|
|
3940
4083
|
$metadata: deserializeMetadata(output),
|
|
3941
|
-
|
|
3942
|
-
};
|
|
4084
|
+
});
|
|
3943
4085
|
_a = __expectNonNull;
|
|
3944
4086
|
_b = __expectObject;
|
|
3945
4087
|
return [4, parseBody(output.body, context)];
|
|
3946
4088
|
case 1:
|
|
3947
4089
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3948
|
-
if (data.Directory
|
|
4090
|
+
if (data.Directory != null) {
|
|
3949
4091
|
contents.Directory = deserializeAws_restJson1Directory(data.Directory, context);
|
|
3950
4092
|
}
|
|
3951
|
-
return [2,
|
|
4093
|
+
return [2, contents];
|
|
3952
4094
|
}
|
|
3953
4095
|
});
|
|
3954
4096
|
}); };
|
|
3955
4097
|
var deserializeAws_restJson1GetDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3956
|
-
var parsedOutput, _a,
|
|
4098
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3957
4099
|
var _c;
|
|
3958
4100
|
return __generator(this, function (_d) {
|
|
3959
4101
|
switch (_d.label) {
|
|
@@ -3994,14 +4136,14 @@ var deserializeAws_restJson1GetDirectoryCommandError = function (output, context
|
|
|
3994
4136
|
case 13: throw _d.sent();
|
|
3995
4137
|
case 14:
|
|
3996
4138
|
parsedBody = parsedOutput.body;
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
$metadata: $metadata,
|
|
4139
|
+
throwDefaultError({
|
|
4140
|
+
output: output,
|
|
4141
|
+
parsedBody: parsedBody,
|
|
4142
|
+
exceptionCtor: __BaseException,
|
|
4143
|
+
errorCode: errorCode,
|
|
4003
4144
|
});
|
|
4004
|
-
|
|
4145
|
+
_d.label = 15;
|
|
4146
|
+
case 15: return [2];
|
|
4005
4147
|
}
|
|
4006
4148
|
});
|
|
4007
4149
|
}); };
|
|
@@ -4013,24 +4155,23 @@ export var deserializeAws_restJson1GetFacetCommand = function (output, context)
|
|
|
4013
4155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4014
4156
|
return [2, deserializeAws_restJson1GetFacetCommandError(output, context)];
|
|
4015
4157
|
}
|
|
4016
|
-
contents = {
|
|
4158
|
+
contents = map({
|
|
4017
4159
|
$metadata: deserializeMetadata(output),
|
|
4018
|
-
|
|
4019
|
-
};
|
|
4160
|
+
});
|
|
4020
4161
|
_a = __expectNonNull;
|
|
4021
4162
|
_b = __expectObject;
|
|
4022
4163
|
return [4, parseBody(output.body, context)];
|
|
4023
4164
|
case 1:
|
|
4024
4165
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4025
|
-
if (data.Facet
|
|
4166
|
+
if (data.Facet != null) {
|
|
4026
4167
|
contents.Facet = deserializeAws_restJson1Facet(data.Facet, context);
|
|
4027
4168
|
}
|
|
4028
|
-
return [2,
|
|
4169
|
+
return [2, contents];
|
|
4029
4170
|
}
|
|
4030
4171
|
});
|
|
4031
4172
|
}); };
|
|
4032
4173
|
var deserializeAws_restJson1GetFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4033
|
-
var parsedOutput, _a,
|
|
4174
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4034
4175
|
var _c;
|
|
4035
4176
|
return __generator(this, function (_d) {
|
|
4036
4177
|
switch (_d.label) {
|
|
@@ -4079,14 +4220,14 @@ var deserializeAws_restJson1GetFacetCommandError = function (output, context) {
|
|
|
4079
4220
|
case 17: throw _d.sent();
|
|
4080
4221
|
case 18:
|
|
4081
4222
|
parsedBody = parsedOutput.body;
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
$metadata: $metadata,
|
|
4223
|
+
throwDefaultError({
|
|
4224
|
+
output: output,
|
|
4225
|
+
parsedBody: parsedBody,
|
|
4226
|
+
exceptionCtor: __BaseException,
|
|
4227
|
+
errorCode: errorCode,
|
|
4088
4228
|
});
|
|
4089
|
-
|
|
4229
|
+
_d.label = 19;
|
|
4230
|
+
case 19: return [2];
|
|
4090
4231
|
}
|
|
4091
4232
|
});
|
|
4092
4233
|
}); };
|
|
@@ -4098,24 +4239,23 @@ export var deserializeAws_restJson1GetLinkAttributesCommand = function (output,
|
|
|
4098
4239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4099
4240
|
return [2, deserializeAws_restJson1GetLinkAttributesCommandError(output, context)];
|
|
4100
4241
|
}
|
|
4101
|
-
contents = {
|
|
4242
|
+
contents = map({
|
|
4102
4243
|
$metadata: deserializeMetadata(output),
|
|
4103
|
-
|
|
4104
|
-
};
|
|
4244
|
+
});
|
|
4105
4245
|
_a = __expectNonNull;
|
|
4106
4246
|
_b = __expectObject;
|
|
4107
4247
|
return [4, parseBody(output.body, context)];
|
|
4108
4248
|
case 1:
|
|
4109
4249
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4110
|
-
if (data.Attributes
|
|
4250
|
+
if (data.Attributes != null) {
|
|
4111
4251
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
4112
4252
|
}
|
|
4113
|
-
return [2,
|
|
4253
|
+
return [2, contents];
|
|
4114
4254
|
}
|
|
4115
4255
|
});
|
|
4116
4256
|
}); };
|
|
4117
4257
|
var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4118
|
-
var parsedOutput, _a,
|
|
4258
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4119
4259
|
var _c;
|
|
4120
4260
|
return __generator(this, function (_d) {
|
|
4121
4261
|
switch (_d.label) {
|
|
@@ -4168,14 +4308,14 @@ var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, co
|
|
|
4168
4308
|
case 19: throw _d.sent();
|
|
4169
4309
|
case 20:
|
|
4170
4310
|
parsedBody = parsedOutput.body;
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
$metadata: $metadata,
|
|
4311
|
+
throwDefaultError({
|
|
4312
|
+
output: output,
|
|
4313
|
+
parsedBody: parsedBody,
|
|
4314
|
+
exceptionCtor: __BaseException,
|
|
4315
|
+
errorCode: errorCode,
|
|
4177
4316
|
});
|
|
4178
|
-
|
|
4317
|
+
_d.label = 21;
|
|
4318
|
+
case 21: return [2];
|
|
4179
4319
|
}
|
|
4180
4320
|
});
|
|
4181
4321
|
}); };
|
|
@@ -4187,24 +4327,23 @@ export var deserializeAws_restJson1GetObjectAttributesCommand = function (output
|
|
|
4187
4327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4188
4328
|
return [2, deserializeAws_restJson1GetObjectAttributesCommandError(output, context)];
|
|
4189
4329
|
}
|
|
4190
|
-
contents = {
|
|
4330
|
+
contents = map({
|
|
4191
4331
|
$metadata: deserializeMetadata(output),
|
|
4192
|
-
|
|
4193
|
-
};
|
|
4332
|
+
});
|
|
4194
4333
|
_a = __expectNonNull;
|
|
4195
4334
|
_b = __expectObject;
|
|
4196
4335
|
return [4, parseBody(output.body, context)];
|
|
4197
4336
|
case 1:
|
|
4198
4337
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4199
|
-
if (data.Attributes
|
|
4338
|
+
if (data.Attributes != null) {
|
|
4200
4339
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
4201
4340
|
}
|
|
4202
|
-
return [2,
|
|
4341
|
+
return [2, contents];
|
|
4203
4342
|
}
|
|
4204
4343
|
});
|
|
4205
4344
|
}); };
|
|
4206
4345
|
var deserializeAws_restJson1GetObjectAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4207
|
-
var parsedOutput, _a,
|
|
4346
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4208
4347
|
var _c;
|
|
4209
4348
|
return __generator(this, function (_d) {
|
|
4210
4349
|
switch (_d.label) {
|
|
@@ -4257,14 +4396,14 @@ var deserializeAws_restJson1GetObjectAttributesCommandError = function (output,
|
|
|
4257
4396
|
case 19: throw _d.sent();
|
|
4258
4397
|
case 20:
|
|
4259
4398
|
parsedBody = parsedOutput.body;
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
$metadata: $metadata,
|
|
4399
|
+
throwDefaultError({
|
|
4400
|
+
output: output,
|
|
4401
|
+
parsedBody: parsedBody,
|
|
4402
|
+
exceptionCtor: __BaseException,
|
|
4403
|
+
errorCode: errorCode,
|
|
4266
4404
|
});
|
|
4267
|
-
|
|
4405
|
+
_d.label = 21;
|
|
4406
|
+
case 21: return [2];
|
|
4268
4407
|
}
|
|
4269
4408
|
});
|
|
4270
4409
|
}); };
|
|
@@ -4276,28 +4415,26 @@ export var deserializeAws_restJson1GetObjectInformationCommand = function (outpu
|
|
|
4276
4415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4277
4416
|
return [2, deserializeAws_restJson1GetObjectInformationCommandError(output, context)];
|
|
4278
4417
|
}
|
|
4279
|
-
contents = {
|
|
4418
|
+
contents = map({
|
|
4280
4419
|
$metadata: deserializeMetadata(output),
|
|
4281
|
-
|
|
4282
|
-
SchemaFacets: undefined,
|
|
4283
|
-
};
|
|
4420
|
+
});
|
|
4284
4421
|
_a = __expectNonNull;
|
|
4285
4422
|
_b = __expectObject;
|
|
4286
4423
|
return [4, parseBody(output.body, context)];
|
|
4287
4424
|
case 1:
|
|
4288
4425
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4289
|
-
if (data.ObjectIdentifier
|
|
4426
|
+
if (data.ObjectIdentifier != null) {
|
|
4290
4427
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
4291
4428
|
}
|
|
4292
|
-
if (data.SchemaFacets
|
|
4429
|
+
if (data.SchemaFacets != null) {
|
|
4293
4430
|
contents.SchemaFacets = deserializeAws_restJson1SchemaFacetList(data.SchemaFacets, context);
|
|
4294
4431
|
}
|
|
4295
|
-
return [2,
|
|
4432
|
+
return [2, contents];
|
|
4296
4433
|
}
|
|
4297
4434
|
});
|
|
4298
4435
|
}); };
|
|
4299
4436
|
var deserializeAws_restJson1GetObjectInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4300
|
-
var parsedOutput, _a,
|
|
4437
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4301
4438
|
var _c;
|
|
4302
4439
|
return __generator(this, function (_d) {
|
|
4303
4440
|
switch (_d.label) {
|
|
@@ -4346,14 +4483,14 @@ var deserializeAws_restJson1GetObjectInformationCommandError = function (output,
|
|
|
4346
4483
|
case 17: throw _d.sent();
|
|
4347
4484
|
case 18:
|
|
4348
4485
|
parsedBody = parsedOutput.body;
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
$metadata: $metadata,
|
|
4486
|
+
throwDefaultError({
|
|
4487
|
+
output: output,
|
|
4488
|
+
parsedBody: parsedBody,
|
|
4489
|
+
exceptionCtor: __BaseException,
|
|
4490
|
+
errorCode: errorCode,
|
|
4355
4491
|
});
|
|
4356
|
-
|
|
4492
|
+
_d.label = 19;
|
|
4493
|
+
case 19: return [2];
|
|
4357
4494
|
}
|
|
4358
4495
|
});
|
|
4359
4496
|
}); };
|
|
@@ -4365,28 +4502,26 @@ export var deserializeAws_restJson1GetSchemaAsJsonCommand = function (output, co
|
|
|
4365
4502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4366
4503
|
return [2, deserializeAws_restJson1GetSchemaAsJsonCommandError(output, context)];
|
|
4367
4504
|
}
|
|
4368
|
-
contents = {
|
|
4505
|
+
contents = map({
|
|
4369
4506
|
$metadata: deserializeMetadata(output),
|
|
4370
|
-
|
|
4371
|
-
Name: undefined,
|
|
4372
|
-
};
|
|
4507
|
+
});
|
|
4373
4508
|
_a = __expectNonNull;
|
|
4374
4509
|
_b = __expectObject;
|
|
4375
4510
|
return [4, parseBody(output.body, context)];
|
|
4376
4511
|
case 1:
|
|
4377
4512
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4378
|
-
if (data.Document
|
|
4513
|
+
if (data.Document != null) {
|
|
4379
4514
|
contents.Document = __expectString(data.Document);
|
|
4380
4515
|
}
|
|
4381
|
-
if (data.Name
|
|
4516
|
+
if (data.Name != null) {
|
|
4382
4517
|
contents.Name = __expectString(data.Name);
|
|
4383
4518
|
}
|
|
4384
|
-
return [2,
|
|
4519
|
+
return [2, contents];
|
|
4385
4520
|
}
|
|
4386
4521
|
});
|
|
4387
4522
|
}); };
|
|
4388
4523
|
var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4389
|
-
var parsedOutput, _a,
|
|
4524
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4390
4525
|
var _c;
|
|
4391
4526
|
return __generator(this, function (_d) {
|
|
4392
4527
|
switch (_d.label) {
|
|
@@ -4431,14 +4566,14 @@ var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, cont
|
|
|
4431
4566
|
case 15: throw _d.sent();
|
|
4432
4567
|
case 16:
|
|
4433
4568
|
parsedBody = parsedOutput.body;
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
$metadata: $metadata,
|
|
4569
|
+
throwDefaultError({
|
|
4570
|
+
output: output,
|
|
4571
|
+
parsedBody: parsedBody,
|
|
4572
|
+
exceptionCtor: __BaseException,
|
|
4573
|
+
errorCode: errorCode,
|
|
4440
4574
|
});
|
|
4441
|
-
|
|
4575
|
+
_d.label = 17;
|
|
4576
|
+
case 17: return [2];
|
|
4442
4577
|
}
|
|
4443
4578
|
});
|
|
4444
4579
|
}); };
|
|
@@ -4450,24 +4585,23 @@ export var deserializeAws_restJson1GetTypedLinkFacetInformationCommand = functio
|
|
|
4450
4585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4451
4586
|
return [2, deserializeAws_restJson1GetTypedLinkFacetInformationCommandError(output, context)];
|
|
4452
4587
|
}
|
|
4453
|
-
contents = {
|
|
4588
|
+
contents = map({
|
|
4454
4589
|
$metadata: deserializeMetadata(output),
|
|
4455
|
-
|
|
4456
|
-
};
|
|
4590
|
+
});
|
|
4457
4591
|
_a = __expectNonNull;
|
|
4458
4592
|
_b = __expectObject;
|
|
4459
4593
|
return [4, parseBody(output.body, context)];
|
|
4460
4594
|
case 1:
|
|
4461
4595
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4462
|
-
if (data.IdentityAttributeOrder
|
|
4596
|
+
if (data.IdentityAttributeOrder != null) {
|
|
4463
4597
|
contents.IdentityAttributeOrder = deserializeAws_restJson1AttributeNameList(data.IdentityAttributeOrder, context);
|
|
4464
4598
|
}
|
|
4465
|
-
return [2,
|
|
4599
|
+
return [2, contents];
|
|
4466
4600
|
}
|
|
4467
4601
|
});
|
|
4468
4602
|
}); };
|
|
4469
4603
|
var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4470
|
-
var parsedOutput, _a,
|
|
4604
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4471
4605
|
var _c;
|
|
4472
4606
|
return __generator(this, function (_d) {
|
|
4473
4607
|
switch (_d.label) {
|
|
@@ -4520,14 +4654,14 @@ var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function
|
|
|
4520
4654
|
case 19: throw _d.sent();
|
|
4521
4655
|
case 20:
|
|
4522
4656
|
parsedBody = parsedOutput.body;
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
$metadata: $metadata,
|
|
4657
|
+
throwDefaultError({
|
|
4658
|
+
output: output,
|
|
4659
|
+
parsedBody: parsedBody,
|
|
4660
|
+
exceptionCtor: __BaseException,
|
|
4661
|
+
errorCode: errorCode,
|
|
4529
4662
|
});
|
|
4530
|
-
|
|
4663
|
+
_d.label = 21;
|
|
4664
|
+
case 21: return [2];
|
|
4531
4665
|
}
|
|
4532
4666
|
});
|
|
4533
4667
|
}); };
|
|
@@ -4539,28 +4673,26 @@ export var deserializeAws_restJson1ListAppliedSchemaArnsCommand = function (outp
|
|
|
4539
4673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4540
4674
|
return [2, deserializeAws_restJson1ListAppliedSchemaArnsCommandError(output, context)];
|
|
4541
4675
|
}
|
|
4542
|
-
contents = {
|
|
4676
|
+
contents = map({
|
|
4543
4677
|
$metadata: deserializeMetadata(output),
|
|
4544
|
-
|
|
4545
|
-
SchemaArns: undefined,
|
|
4546
|
-
};
|
|
4678
|
+
});
|
|
4547
4679
|
_a = __expectNonNull;
|
|
4548
4680
|
_b = __expectObject;
|
|
4549
4681
|
return [4, parseBody(output.body, context)];
|
|
4550
4682
|
case 1:
|
|
4551
4683
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4552
|
-
if (data.NextToken
|
|
4684
|
+
if (data.NextToken != null) {
|
|
4553
4685
|
contents.NextToken = __expectString(data.NextToken);
|
|
4554
4686
|
}
|
|
4555
|
-
if (data.SchemaArns
|
|
4687
|
+
if (data.SchemaArns != null) {
|
|
4556
4688
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
4557
4689
|
}
|
|
4558
|
-
return [2,
|
|
4690
|
+
return [2, contents];
|
|
4559
4691
|
}
|
|
4560
4692
|
});
|
|
4561
4693
|
}); };
|
|
4562
4694
|
var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4563
|
-
var parsedOutput, _a,
|
|
4695
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4564
4696
|
var _c;
|
|
4565
4697
|
return __generator(this, function (_d) {
|
|
4566
4698
|
switch (_d.label) {
|
|
@@ -4609,14 +4741,14 @@ var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output
|
|
|
4609
4741
|
case 17: throw _d.sent();
|
|
4610
4742
|
case 18:
|
|
4611
4743
|
parsedBody = parsedOutput.body;
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
$metadata: $metadata,
|
|
4744
|
+
throwDefaultError({
|
|
4745
|
+
output: output,
|
|
4746
|
+
parsedBody: parsedBody,
|
|
4747
|
+
exceptionCtor: __BaseException,
|
|
4748
|
+
errorCode: errorCode,
|
|
4618
4749
|
});
|
|
4619
|
-
|
|
4750
|
+
_d.label = 19;
|
|
4751
|
+
case 19: return [2];
|
|
4620
4752
|
}
|
|
4621
4753
|
});
|
|
4622
4754
|
}); };
|
|
@@ -4628,28 +4760,26 @@ export var deserializeAws_restJson1ListAttachedIndicesCommand = function (output
|
|
|
4628
4760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4629
4761
|
return [2, deserializeAws_restJson1ListAttachedIndicesCommandError(output, context)];
|
|
4630
4762
|
}
|
|
4631
|
-
contents = {
|
|
4763
|
+
contents = map({
|
|
4632
4764
|
$metadata: deserializeMetadata(output),
|
|
4633
|
-
|
|
4634
|
-
NextToken: undefined,
|
|
4635
|
-
};
|
|
4765
|
+
});
|
|
4636
4766
|
_a = __expectNonNull;
|
|
4637
4767
|
_b = __expectObject;
|
|
4638
4768
|
return [4, parseBody(output.body, context)];
|
|
4639
4769
|
case 1:
|
|
4640
4770
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4641
|
-
if (data.IndexAttachments
|
|
4771
|
+
if (data.IndexAttachments != null) {
|
|
4642
4772
|
contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
|
|
4643
4773
|
}
|
|
4644
|
-
if (data.NextToken
|
|
4774
|
+
if (data.NextToken != null) {
|
|
4645
4775
|
contents.NextToken = __expectString(data.NextToken);
|
|
4646
4776
|
}
|
|
4647
|
-
return [2,
|
|
4777
|
+
return [2, contents];
|
|
4648
4778
|
}
|
|
4649
4779
|
});
|
|
4650
4780
|
}); };
|
|
4651
4781
|
var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4652
|
-
var parsedOutput, _a,
|
|
4782
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4653
4783
|
var _c;
|
|
4654
4784
|
return __generator(this, function (_d) {
|
|
4655
4785
|
switch (_d.label) {
|
|
@@ -4698,14 +4828,14 @@ var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output,
|
|
|
4698
4828
|
case 17: throw _d.sent();
|
|
4699
4829
|
case 18:
|
|
4700
4830
|
parsedBody = parsedOutput.body;
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
$metadata: $metadata,
|
|
4831
|
+
throwDefaultError({
|
|
4832
|
+
output: output,
|
|
4833
|
+
parsedBody: parsedBody,
|
|
4834
|
+
exceptionCtor: __BaseException,
|
|
4835
|
+
errorCode: errorCode,
|
|
4707
4836
|
});
|
|
4708
|
-
|
|
4837
|
+
_d.label = 19;
|
|
4838
|
+
case 19: return [2];
|
|
4709
4839
|
}
|
|
4710
4840
|
});
|
|
4711
4841
|
}); };
|
|
@@ -4717,28 +4847,26 @@ export var deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = function (
|
|
|
4717
4847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4718
4848
|
return [2, deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError(output, context)];
|
|
4719
4849
|
}
|
|
4720
|
-
contents = {
|
|
4850
|
+
contents = map({
|
|
4721
4851
|
$metadata: deserializeMetadata(output),
|
|
4722
|
-
|
|
4723
|
-
SchemaArns: undefined,
|
|
4724
|
-
};
|
|
4852
|
+
});
|
|
4725
4853
|
_a = __expectNonNull;
|
|
4726
4854
|
_b = __expectObject;
|
|
4727
4855
|
return [4, parseBody(output.body, context)];
|
|
4728
4856
|
case 1:
|
|
4729
4857
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4730
|
-
if (data.NextToken
|
|
4858
|
+
if (data.NextToken != null) {
|
|
4731
4859
|
contents.NextToken = __expectString(data.NextToken);
|
|
4732
4860
|
}
|
|
4733
|
-
if (data.SchemaArns
|
|
4861
|
+
if (data.SchemaArns != null) {
|
|
4734
4862
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
4735
4863
|
}
|
|
4736
|
-
return [2,
|
|
4864
|
+
return [2, contents];
|
|
4737
4865
|
}
|
|
4738
4866
|
});
|
|
4739
4867
|
}); };
|
|
4740
4868
|
var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4741
|
-
var parsedOutput, _a,
|
|
4869
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4742
4870
|
var _c;
|
|
4743
4871
|
return __generator(this, function (_d) {
|
|
4744
4872
|
switch (_d.label) {
|
|
@@ -4787,14 +4915,14 @@ var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (ou
|
|
|
4787
4915
|
case 17: throw _d.sent();
|
|
4788
4916
|
case 18:
|
|
4789
4917
|
parsedBody = parsedOutput.body;
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
$metadata: $metadata,
|
|
4918
|
+
throwDefaultError({
|
|
4919
|
+
output: output,
|
|
4920
|
+
parsedBody: parsedBody,
|
|
4921
|
+
exceptionCtor: __BaseException,
|
|
4922
|
+
errorCode: errorCode,
|
|
4796
4923
|
});
|
|
4797
|
-
|
|
4924
|
+
_d.label = 19;
|
|
4925
|
+
case 19: return [2];
|
|
4798
4926
|
}
|
|
4799
4927
|
});
|
|
4800
4928
|
}); };
|
|
@@ -4806,28 +4934,26 @@ export var deserializeAws_restJson1ListDirectoriesCommand = function (output, co
|
|
|
4806
4934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4807
4935
|
return [2, deserializeAws_restJson1ListDirectoriesCommandError(output, context)];
|
|
4808
4936
|
}
|
|
4809
|
-
contents = {
|
|
4937
|
+
contents = map({
|
|
4810
4938
|
$metadata: deserializeMetadata(output),
|
|
4811
|
-
|
|
4812
|
-
NextToken: undefined,
|
|
4813
|
-
};
|
|
4939
|
+
});
|
|
4814
4940
|
_a = __expectNonNull;
|
|
4815
4941
|
_b = __expectObject;
|
|
4816
4942
|
return [4, parseBody(output.body, context)];
|
|
4817
4943
|
case 1:
|
|
4818
4944
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4819
|
-
if (data.Directories
|
|
4945
|
+
if (data.Directories != null) {
|
|
4820
4946
|
contents.Directories = deserializeAws_restJson1DirectoryList(data.Directories, context);
|
|
4821
4947
|
}
|
|
4822
|
-
if (data.NextToken
|
|
4948
|
+
if (data.NextToken != null) {
|
|
4823
4949
|
contents.NextToken = __expectString(data.NextToken);
|
|
4824
4950
|
}
|
|
4825
|
-
return [2,
|
|
4951
|
+
return [2, contents];
|
|
4826
4952
|
}
|
|
4827
4953
|
});
|
|
4828
4954
|
}); };
|
|
4829
4955
|
var deserializeAws_restJson1ListDirectoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4830
|
-
var parsedOutput, _a,
|
|
4956
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4831
4957
|
var _c;
|
|
4832
4958
|
return __generator(this, function (_d) {
|
|
4833
4959
|
switch (_d.label) {
|
|
@@ -4872,14 +4998,14 @@ var deserializeAws_restJson1ListDirectoriesCommandError = function (output, cont
|
|
|
4872
4998
|
case 15: throw _d.sent();
|
|
4873
4999
|
case 16:
|
|
4874
5000
|
parsedBody = parsedOutput.body;
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
$metadata: $metadata,
|
|
5001
|
+
throwDefaultError({
|
|
5002
|
+
output: output,
|
|
5003
|
+
parsedBody: parsedBody,
|
|
5004
|
+
exceptionCtor: __BaseException,
|
|
5005
|
+
errorCode: errorCode,
|
|
4881
5006
|
});
|
|
4882
|
-
|
|
5007
|
+
_d.label = 17;
|
|
5008
|
+
case 17: return [2];
|
|
4883
5009
|
}
|
|
4884
5010
|
});
|
|
4885
5011
|
}); };
|
|
@@ -4891,28 +5017,26 @@ export var deserializeAws_restJson1ListFacetAttributesCommand = function (output
|
|
|
4891
5017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4892
5018
|
return [2, deserializeAws_restJson1ListFacetAttributesCommandError(output, context)];
|
|
4893
5019
|
}
|
|
4894
|
-
contents = {
|
|
5020
|
+
contents = map({
|
|
4895
5021
|
$metadata: deserializeMetadata(output),
|
|
4896
|
-
|
|
4897
|
-
NextToken: undefined,
|
|
4898
|
-
};
|
|
5022
|
+
});
|
|
4899
5023
|
_a = __expectNonNull;
|
|
4900
5024
|
_b = __expectObject;
|
|
4901
5025
|
return [4, parseBody(output.body, context)];
|
|
4902
5026
|
case 1:
|
|
4903
5027
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4904
|
-
if (data.Attributes
|
|
5028
|
+
if (data.Attributes != null) {
|
|
4905
5029
|
contents.Attributes = deserializeAws_restJson1FacetAttributeList(data.Attributes, context);
|
|
4906
5030
|
}
|
|
4907
|
-
if (data.NextToken
|
|
5031
|
+
if (data.NextToken != null) {
|
|
4908
5032
|
contents.NextToken = __expectString(data.NextToken);
|
|
4909
5033
|
}
|
|
4910
|
-
return [2,
|
|
5034
|
+
return [2, contents];
|
|
4911
5035
|
}
|
|
4912
5036
|
});
|
|
4913
5037
|
}); };
|
|
4914
5038
|
var deserializeAws_restJson1ListFacetAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4915
|
-
var parsedOutput, _a,
|
|
5039
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4916
5040
|
var _c;
|
|
4917
5041
|
return __generator(this, function (_d) {
|
|
4918
5042
|
switch (_d.label) {
|
|
@@ -4965,14 +5089,14 @@ var deserializeAws_restJson1ListFacetAttributesCommandError = function (output,
|
|
|
4965
5089
|
case 19: throw _d.sent();
|
|
4966
5090
|
case 20:
|
|
4967
5091
|
parsedBody = parsedOutput.body;
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
$metadata: $metadata,
|
|
5092
|
+
throwDefaultError({
|
|
5093
|
+
output: output,
|
|
5094
|
+
parsedBody: parsedBody,
|
|
5095
|
+
exceptionCtor: __BaseException,
|
|
5096
|
+
errorCode: errorCode,
|
|
4974
5097
|
});
|
|
4975
|
-
|
|
5098
|
+
_d.label = 21;
|
|
5099
|
+
case 21: return [2];
|
|
4976
5100
|
}
|
|
4977
5101
|
});
|
|
4978
5102
|
}); };
|
|
@@ -4984,28 +5108,26 @@ export var deserializeAws_restJson1ListFacetNamesCommand = function (output, con
|
|
|
4984
5108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4985
5109
|
return [2, deserializeAws_restJson1ListFacetNamesCommandError(output, context)];
|
|
4986
5110
|
}
|
|
4987
|
-
contents = {
|
|
5111
|
+
contents = map({
|
|
4988
5112
|
$metadata: deserializeMetadata(output),
|
|
4989
|
-
|
|
4990
|
-
NextToken: undefined,
|
|
4991
|
-
};
|
|
5113
|
+
});
|
|
4992
5114
|
_a = __expectNonNull;
|
|
4993
5115
|
_b = __expectObject;
|
|
4994
5116
|
return [4, parseBody(output.body, context)];
|
|
4995
5117
|
case 1:
|
|
4996
5118
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4997
|
-
if (data.FacetNames
|
|
5119
|
+
if (data.FacetNames != null) {
|
|
4998
5120
|
contents.FacetNames = deserializeAws_restJson1FacetNameList(data.FacetNames, context);
|
|
4999
5121
|
}
|
|
5000
|
-
if (data.NextToken
|
|
5122
|
+
if (data.NextToken != null) {
|
|
5001
5123
|
contents.NextToken = __expectString(data.NextToken);
|
|
5002
5124
|
}
|
|
5003
|
-
return [2,
|
|
5125
|
+
return [2, contents];
|
|
5004
5126
|
}
|
|
5005
5127
|
});
|
|
5006
5128
|
}); };
|
|
5007
5129
|
var deserializeAws_restJson1ListFacetNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5008
|
-
var parsedOutput, _a,
|
|
5130
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5009
5131
|
var _c;
|
|
5010
5132
|
return __generator(this, function (_d) {
|
|
5011
5133
|
switch (_d.label) {
|
|
@@ -5054,14 +5176,14 @@ var deserializeAws_restJson1ListFacetNamesCommandError = function (output, conte
|
|
|
5054
5176
|
case 17: throw _d.sent();
|
|
5055
5177
|
case 18:
|
|
5056
5178
|
parsedBody = parsedOutput.body;
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
$metadata: $metadata,
|
|
5179
|
+
throwDefaultError({
|
|
5180
|
+
output: output,
|
|
5181
|
+
parsedBody: parsedBody,
|
|
5182
|
+
exceptionCtor: __BaseException,
|
|
5183
|
+
errorCode: errorCode,
|
|
5063
5184
|
});
|
|
5064
|
-
|
|
5185
|
+
_d.label = 19;
|
|
5186
|
+
case 19: return [2];
|
|
5065
5187
|
}
|
|
5066
5188
|
});
|
|
5067
5189
|
}); };
|
|
@@ -5073,28 +5195,26 @@ export var deserializeAws_restJson1ListIncomingTypedLinksCommand = function (out
|
|
|
5073
5195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5074
5196
|
return [2, deserializeAws_restJson1ListIncomingTypedLinksCommandError(output, context)];
|
|
5075
5197
|
}
|
|
5076
|
-
contents = {
|
|
5198
|
+
contents = map({
|
|
5077
5199
|
$metadata: deserializeMetadata(output),
|
|
5078
|
-
|
|
5079
|
-
NextToken: undefined,
|
|
5080
|
-
};
|
|
5200
|
+
});
|
|
5081
5201
|
_a = __expectNonNull;
|
|
5082
5202
|
_b = __expectObject;
|
|
5083
5203
|
return [4, parseBody(output.body, context)];
|
|
5084
5204
|
case 1:
|
|
5085
5205
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5086
|
-
if (data.LinkSpecifiers
|
|
5206
|
+
if (data.LinkSpecifiers != null) {
|
|
5087
5207
|
contents.LinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.LinkSpecifiers, context);
|
|
5088
5208
|
}
|
|
5089
|
-
if (data.NextToken
|
|
5209
|
+
if (data.NextToken != null) {
|
|
5090
5210
|
contents.NextToken = __expectString(data.NextToken);
|
|
5091
5211
|
}
|
|
5092
|
-
return [2,
|
|
5212
|
+
return [2, contents];
|
|
5093
5213
|
}
|
|
5094
5214
|
});
|
|
5095
5215
|
}); };
|
|
5096
5216
|
var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5097
|
-
var parsedOutput, _a,
|
|
5217
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5098
5218
|
var _c;
|
|
5099
5219
|
return __generator(this, function (_d) {
|
|
5100
5220
|
switch (_d.label) {
|
|
@@ -5151,14 +5271,14 @@ var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (outpu
|
|
|
5151
5271
|
case 21: throw _d.sent();
|
|
5152
5272
|
case 22:
|
|
5153
5273
|
parsedBody = parsedOutput.body;
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
$metadata: $metadata,
|
|
5274
|
+
throwDefaultError({
|
|
5275
|
+
output: output,
|
|
5276
|
+
parsedBody: parsedBody,
|
|
5277
|
+
exceptionCtor: __BaseException,
|
|
5278
|
+
errorCode: errorCode,
|
|
5160
5279
|
});
|
|
5161
|
-
|
|
5280
|
+
_d.label = 23;
|
|
5281
|
+
case 23: return [2];
|
|
5162
5282
|
}
|
|
5163
5283
|
});
|
|
5164
5284
|
}); };
|
|
@@ -5170,28 +5290,26 @@ export var deserializeAws_restJson1ListIndexCommand = function (output, context)
|
|
|
5170
5290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5171
5291
|
return [2, deserializeAws_restJson1ListIndexCommandError(output, context)];
|
|
5172
5292
|
}
|
|
5173
|
-
contents = {
|
|
5293
|
+
contents = map({
|
|
5174
5294
|
$metadata: deserializeMetadata(output),
|
|
5175
|
-
|
|
5176
|
-
NextToken: undefined,
|
|
5177
|
-
};
|
|
5295
|
+
});
|
|
5178
5296
|
_a = __expectNonNull;
|
|
5179
5297
|
_b = __expectObject;
|
|
5180
5298
|
return [4, parseBody(output.body, context)];
|
|
5181
5299
|
case 1:
|
|
5182
5300
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5183
|
-
if (data.IndexAttachments
|
|
5301
|
+
if (data.IndexAttachments != null) {
|
|
5184
5302
|
contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
|
|
5185
5303
|
}
|
|
5186
|
-
if (data.NextToken
|
|
5304
|
+
if (data.NextToken != null) {
|
|
5187
5305
|
contents.NextToken = __expectString(data.NextToken);
|
|
5188
5306
|
}
|
|
5189
|
-
return [2,
|
|
5307
|
+
return [2, contents];
|
|
5190
5308
|
}
|
|
5191
5309
|
});
|
|
5192
5310
|
}); };
|
|
5193
5311
|
var deserializeAws_restJson1ListIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5194
|
-
var parsedOutput, _a,
|
|
5312
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5195
5313
|
var _c;
|
|
5196
5314
|
return __generator(this, function (_d) {
|
|
5197
5315
|
switch (_d.label) {
|
|
@@ -5252,14 +5370,14 @@ var deserializeAws_restJson1ListIndexCommandError = function (output, context) {
|
|
|
5252
5370
|
case 23: throw _d.sent();
|
|
5253
5371
|
case 24:
|
|
5254
5372
|
parsedBody = parsedOutput.body;
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
$metadata: $metadata,
|
|
5373
|
+
throwDefaultError({
|
|
5374
|
+
output: output,
|
|
5375
|
+
parsedBody: parsedBody,
|
|
5376
|
+
exceptionCtor: __BaseException,
|
|
5377
|
+
errorCode: errorCode,
|
|
5261
5378
|
});
|
|
5262
|
-
|
|
5379
|
+
_d.label = 25;
|
|
5380
|
+
case 25: return [2];
|
|
5263
5381
|
}
|
|
5264
5382
|
});
|
|
5265
5383
|
}); };
|
|
@@ -5271,28 +5389,26 @@ export var deserializeAws_restJson1ListManagedSchemaArnsCommand = function (outp
|
|
|
5271
5389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5272
5390
|
return [2, deserializeAws_restJson1ListManagedSchemaArnsCommandError(output, context)];
|
|
5273
5391
|
}
|
|
5274
|
-
contents = {
|
|
5392
|
+
contents = map({
|
|
5275
5393
|
$metadata: deserializeMetadata(output),
|
|
5276
|
-
|
|
5277
|
-
SchemaArns: undefined,
|
|
5278
|
-
};
|
|
5394
|
+
});
|
|
5279
5395
|
_a = __expectNonNull;
|
|
5280
5396
|
_b = __expectObject;
|
|
5281
5397
|
return [4, parseBody(output.body, context)];
|
|
5282
5398
|
case 1:
|
|
5283
5399
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5284
|
-
if (data.NextToken
|
|
5400
|
+
if (data.NextToken != null) {
|
|
5285
5401
|
contents.NextToken = __expectString(data.NextToken);
|
|
5286
5402
|
}
|
|
5287
|
-
if (data.SchemaArns
|
|
5403
|
+
if (data.SchemaArns != null) {
|
|
5288
5404
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
5289
5405
|
}
|
|
5290
|
-
return [2,
|
|
5406
|
+
return [2, contents];
|
|
5291
5407
|
}
|
|
5292
5408
|
});
|
|
5293
5409
|
}); };
|
|
5294
5410
|
var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5295
|
-
var parsedOutput, _a,
|
|
5411
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5296
5412
|
var _c;
|
|
5297
5413
|
return __generator(this, function (_d) {
|
|
5298
5414
|
switch (_d.label) {
|
|
@@ -5333,14 +5449,14 @@ var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output
|
|
|
5333
5449
|
case 13: throw _d.sent();
|
|
5334
5450
|
case 14:
|
|
5335
5451
|
parsedBody = parsedOutput.body;
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
$metadata: $metadata,
|
|
5452
|
+
throwDefaultError({
|
|
5453
|
+
output: output,
|
|
5454
|
+
parsedBody: parsedBody,
|
|
5455
|
+
exceptionCtor: __BaseException,
|
|
5456
|
+
errorCode: errorCode,
|
|
5342
5457
|
});
|
|
5343
|
-
|
|
5458
|
+
_d.label = 15;
|
|
5459
|
+
case 15: return [2];
|
|
5344
5460
|
}
|
|
5345
5461
|
});
|
|
5346
5462
|
}); };
|
|
@@ -5352,28 +5468,26 @@ export var deserializeAws_restJson1ListObjectAttributesCommand = function (outpu
|
|
|
5352
5468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5353
5469
|
return [2, deserializeAws_restJson1ListObjectAttributesCommandError(output, context)];
|
|
5354
5470
|
}
|
|
5355
|
-
contents = {
|
|
5471
|
+
contents = map({
|
|
5356
5472
|
$metadata: deserializeMetadata(output),
|
|
5357
|
-
|
|
5358
|
-
NextToken: undefined,
|
|
5359
|
-
};
|
|
5473
|
+
});
|
|
5360
5474
|
_a = __expectNonNull;
|
|
5361
5475
|
_b = __expectObject;
|
|
5362
5476
|
return [4, parseBody(output.body, context)];
|
|
5363
5477
|
case 1:
|
|
5364
5478
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5365
|
-
if (data.Attributes
|
|
5479
|
+
if (data.Attributes != null) {
|
|
5366
5480
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
5367
5481
|
}
|
|
5368
|
-
if (data.NextToken
|
|
5482
|
+
if (data.NextToken != null) {
|
|
5369
5483
|
contents.NextToken = __expectString(data.NextToken);
|
|
5370
5484
|
}
|
|
5371
|
-
return [2,
|
|
5485
|
+
return [2, contents];
|
|
5372
5486
|
}
|
|
5373
5487
|
});
|
|
5374
5488
|
}); };
|
|
5375
5489
|
var deserializeAws_restJson1ListObjectAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5376
|
-
var parsedOutput, _a,
|
|
5490
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5377
5491
|
var _c;
|
|
5378
5492
|
return __generator(this, function (_d) {
|
|
5379
5493
|
switch (_d.label) {
|
|
@@ -5430,14 +5544,14 @@ var deserializeAws_restJson1ListObjectAttributesCommandError = function (output,
|
|
|
5430
5544
|
case 21: throw _d.sent();
|
|
5431
5545
|
case 22:
|
|
5432
5546
|
parsedBody = parsedOutput.body;
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
$metadata: $metadata,
|
|
5547
|
+
throwDefaultError({
|
|
5548
|
+
output: output,
|
|
5549
|
+
parsedBody: parsedBody,
|
|
5550
|
+
exceptionCtor: __BaseException,
|
|
5551
|
+
errorCode: errorCode,
|
|
5439
5552
|
});
|
|
5440
|
-
|
|
5553
|
+
_d.label = 23;
|
|
5554
|
+
case 23: return [2];
|
|
5441
5555
|
}
|
|
5442
5556
|
});
|
|
5443
5557
|
}); };
|
|
@@ -5449,28 +5563,26 @@ export var deserializeAws_restJson1ListObjectChildrenCommand = function (output,
|
|
|
5449
5563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5450
5564
|
return [2, deserializeAws_restJson1ListObjectChildrenCommandError(output, context)];
|
|
5451
5565
|
}
|
|
5452
|
-
contents = {
|
|
5566
|
+
contents = map({
|
|
5453
5567
|
$metadata: deserializeMetadata(output),
|
|
5454
|
-
|
|
5455
|
-
NextToken: undefined,
|
|
5456
|
-
};
|
|
5568
|
+
});
|
|
5457
5569
|
_a = __expectNonNull;
|
|
5458
5570
|
_b = __expectObject;
|
|
5459
5571
|
return [4, parseBody(output.body, context)];
|
|
5460
5572
|
case 1:
|
|
5461
5573
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5462
|
-
if (data.Children
|
|
5574
|
+
if (data.Children != null) {
|
|
5463
5575
|
contents.Children = deserializeAws_restJson1LinkNameToObjectIdentifierMap(data.Children, context);
|
|
5464
5576
|
}
|
|
5465
|
-
if (data.NextToken
|
|
5577
|
+
if (data.NextToken != null) {
|
|
5466
5578
|
contents.NextToken = __expectString(data.NextToken);
|
|
5467
5579
|
}
|
|
5468
|
-
return [2,
|
|
5580
|
+
return [2, contents];
|
|
5469
5581
|
}
|
|
5470
5582
|
});
|
|
5471
5583
|
}); };
|
|
5472
5584
|
var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5473
|
-
var parsedOutput, _a,
|
|
5585
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5474
5586
|
var _c;
|
|
5475
5587
|
return __generator(this, function (_d) {
|
|
5476
5588
|
switch (_d.label) {
|
|
@@ -5527,14 +5639,14 @@ var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, c
|
|
|
5527
5639
|
case 21: throw _d.sent();
|
|
5528
5640
|
case 22:
|
|
5529
5641
|
parsedBody = parsedOutput.body;
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
$metadata: $metadata,
|
|
5642
|
+
throwDefaultError({
|
|
5643
|
+
output: output,
|
|
5644
|
+
parsedBody: parsedBody,
|
|
5645
|
+
exceptionCtor: __BaseException,
|
|
5646
|
+
errorCode: errorCode,
|
|
5536
5647
|
});
|
|
5537
|
-
|
|
5648
|
+
_d.label = 23;
|
|
5649
|
+
case 23: return [2];
|
|
5538
5650
|
}
|
|
5539
5651
|
});
|
|
5540
5652
|
}); };
|
|
@@ -5546,28 +5658,26 @@ export var deserializeAws_restJson1ListObjectParentPathsCommand = function (outp
|
|
|
5546
5658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5547
5659
|
return [2, deserializeAws_restJson1ListObjectParentPathsCommandError(output, context)];
|
|
5548
5660
|
}
|
|
5549
|
-
contents = {
|
|
5661
|
+
contents = map({
|
|
5550
5662
|
$metadata: deserializeMetadata(output),
|
|
5551
|
-
|
|
5552
|
-
PathToObjectIdentifiersList: undefined,
|
|
5553
|
-
};
|
|
5663
|
+
});
|
|
5554
5664
|
_a = __expectNonNull;
|
|
5555
5665
|
_b = __expectObject;
|
|
5556
5666
|
return [4, parseBody(output.body, context)];
|
|
5557
5667
|
case 1:
|
|
5558
5668
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5559
|
-
if (data.NextToken
|
|
5669
|
+
if (data.NextToken != null) {
|
|
5560
5670
|
contents.NextToken = __expectString(data.NextToken);
|
|
5561
5671
|
}
|
|
5562
|
-
if (data.PathToObjectIdentifiersList
|
|
5672
|
+
if (data.PathToObjectIdentifiersList != null) {
|
|
5563
5673
|
contents.PathToObjectIdentifiersList = deserializeAws_restJson1PathToObjectIdentifiersList(data.PathToObjectIdentifiersList, context);
|
|
5564
5674
|
}
|
|
5565
|
-
return [2,
|
|
5675
|
+
return [2, contents];
|
|
5566
5676
|
}
|
|
5567
5677
|
});
|
|
5568
5678
|
}); };
|
|
5569
5679
|
var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5570
|
-
var parsedOutput, _a,
|
|
5680
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5571
5681
|
var _c;
|
|
5572
5682
|
return __generator(this, function (_d) {
|
|
5573
5683
|
switch (_d.label) {
|
|
@@ -5620,14 +5730,14 @@ var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output
|
|
|
5620
5730
|
case 19: throw _d.sent();
|
|
5621
5731
|
case 20:
|
|
5622
5732
|
parsedBody = parsedOutput.body;
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
$metadata: $metadata,
|
|
5733
|
+
throwDefaultError({
|
|
5734
|
+
output: output,
|
|
5735
|
+
parsedBody: parsedBody,
|
|
5736
|
+
exceptionCtor: __BaseException,
|
|
5737
|
+
errorCode: errorCode,
|
|
5629
5738
|
});
|
|
5630
|
-
|
|
5739
|
+
_d.label = 21;
|
|
5740
|
+
case 21: return [2];
|
|
5631
5741
|
}
|
|
5632
5742
|
});
|
|
5633
5743
|
}); };
|
|
@@ -5639,32 +5749,29 @@ export var deserializeAws_restJson1ListObjectParentsCommand = function (output,
|
|
|
5639
5749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5640
5750
|
return [2, deserializeAws_restJson1ListObjectParentsCommandError(output, context)];
|
|
5641
5751
|
}
|
|
5642
|
-
contents = {
|
|
5752
|
+
contents = map({
|
|
5643
5753
|
$metadata: deserializeMetadata(output),
|
|
5644
|
-
|
|
5645
|
-
ParentLinks: undefined,
|
|
5646
|
-
Parents: undefined,
|
|
5647
|
-
};
|
|
5754
|
+
});
|
|
5648
5755
|
_a = __expectNonNull;
|
|
5649
5756
|
_b = __expectObject;
|
|
5650
5757
|
return [4, parseBody(output.body, context)];
|
|
5651
5758
|
case 1:
|
|
5652
5759
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5653
|
-
if (data.NextToken
|
|
5760
|
+
if (data.NextToken != null) {
|
|
5654
5761
|
contents.NextToken = __expectString(data.NextToken);
|
|
5655
5762
|
}
|
|
5656
|
-
if (data.ParentLinks
|
|
5763
|
+
if (data.ParentLinks != null) {
|
|
5657
5764
|
contents.ParentLinks = deserializeAws_restJson1ObjectIdentifierAndLinkNameList(data.ParentLinks, context);
|
|
5658
5765
|
}
|
|
5659
|
-
if (data.Parents
|
|
5766
|
+
if (data.Parents != null) {
|
|
5660
5767
|
contents.Parents = deserializeAws_restJson1ObjectIdentifierToLinkNameMap(data.Parents, context);
|
|
5661
5768
|
}
|
|
5662
|
-
return [2,
|
|
5769
|
+
return [2, contents];
|
|
5663
5770
|
}
|
|
5664
5771
|
});
|
|
5665
5772
|
}); };
|
|
5666
5773
|
var deserializeAws_restJson1ListObjectParentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5667
|
-
var parsedOutput, _a,
|
|
5774
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5668
5775
|
var _c;
|
|
5669
5776
|
return __generator(this, function (_d) {
|
|
5670
5777
|
switch (_d.label) {
|
|
@@ -5721,14 +5828,14 @@ var deserializeAws_restJson1ListObjectParentsCommandError = function (output, co
|
|
|
5721
5828
|
case 21: throw _d.sent();
|
|
5722
5829
|
case 22:
|
|
5723
5830
|
parsedBody = parsedOutput.body;
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
$metadata: $metadata,
|
|
5831
|
+
throwDefaultError({
|
|
5832
|
+
output: output,
|
|
5833
|
+
parsedBody: parsedBody,
|
|
5834
|
+
exceptionCtor: __BaseException,
|
|
5835
|
+
errorCode: errorCode,
|
|
5730
5836
|
});
|
|
5731
|
-
|
|
5837
|
+
_d.label = 23;
|
|
5838
|
+
case 23: return [2];
|
|
5732
5839
|
}
|
|
5733
5840
|
});
|
|
5734
5841
|
}); };
|
|
@@ -5740,28 +5847,26 @@ export var deserializeAws_restJson1ListObjectPoliciesCommand = function (output,
|
|
|
5740
5847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5741
5848
|
return [2, deserializeAws_restJson1ListObjectPoliciesCommandError(output, context)];
|
|
5742
5849
|
}
|
|
5743
|
-
contents = {
|
|
5850
|
+
contents = map({
|
|
5744
5851
|
$metadata: deserializeMetadata(output),
|
|
5745
|
-
|
|
5746
|
-
NextToken: undefined,
|
|
5747
|
-
};
|
|
5852
|
+
});
|
|
5748
5853
|
_a = __expectNonNull;
|
|
5749
5854
|
_b = __expectObject;
|
|
5750
5855
|
return [4, parseBody(output.body, context)];
|
|
5751
5856
|
case 1:
|
|
5752
5857
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5753
|
-
if (data.AttachedPolicyIds
|
|
5858
|
+
if (data.AttachedPolicyIds != null) {
|
|
5754
5859
|
contents.AttachedPolicyIds = deserializeAws_restJson1ObjectIdentifierList(data.AttachedPolicyIds, context);
|
|
5755
5860
|
}
|
|
5756
|
-
if (data.NextToken
|
|
5861
|
+
if (data.NextToken != null) {
|
|
5757
5862
|
contents.NextToken = __expectString(data.NextToken);
|
|
5758
5863
|
}
|
|
5759
|
-
return [2,
|
|
5864
|
+
return [2, contents];
|
|
5760
5865
|
}
|
|
5761
5866
|
});
|
|
5762
5867
|
}); };
|
|
5763
5868
|
var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5764
|
-
var parsedOutput, _a,
|
|
5869
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5765
5870
|
var _c;
|
|
5766
5871
|
return __generator(this, function (_d) {
|
|
5767
5872
|
switch (_d.label) {
|
|
@@ -5814,14 +5919,14 @@ var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, c
|
|
|
5814
5919
|
case 19: throw _d.sent();
|
|
5815
5920
|
case 20:
|
|
5816
5921
|
parsedBody = parsedOutput.body;
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
$metadata: $metadata,
|
|
5922
|
+
throwDefaultError({
|
|
5923
|
+
output: output,
|
|
5924
|
+
parsedBody: parsedBody,
|
|
5925
|
+
exceptionCtor: __BaseException,
|
|
5926
|
+
errorCode: errorCode,
|
|
5823
5927
|
});
|
|
5824
|
-
|
|
5928
|
+
_d.label = 21;
|
|
5929
|
+
case 21: return [2];
|
|
5825
5930
|
}
|
|
5826
5931
|
});
|
|
5827
5932
|
}); };
|
|
@@ -5833,28 +5938,26 @@ export var deserializeAws_restJson1ListOutgoingTypedLinksCommand = function (out
|
|
|
5833
5938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5834
5939
|
return [2, deserializeAws_restJson1ListOutgoingTypedLinksCommandError(output, context)];
|
|
5835
5940
|
}
|
|
5836
|
-
contents = {
|
|
5941
|
+
contents = map({
|
|
5837
5942
|
$metadata: deserializeMetadata(output),
|
|
5838
|
-
|
|
5839
|
-
TypedLinkSpecifiers: undefined,
|
|
5840
|
-
};
|
|
5943
|
+
});
|
|
5841
5944
|
_a = __expectNonNull;
|
|
5842
5945
|
_b = __expectObject;
|
|
5843
5946
|
return [4, parseBody(output.body, context)];
|
|
5844
5947
|
case 1:
|
|
5845
5948
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5846
|
-
if (data.NextToken
|
|
5949
|
+
if (data.NextToken != null) {
|
|
5847
5950
|
contents.NextToken = __expectString(data.NextToken);
|
|
5848
5951
|
}
|
|
5849
|
-
if (data.TypedLinkSpecifiers
|
|
5952
|
+
if (data.TypedLinkSpecifiers != null) {
|
|
5850
5953
|
contents.TypedLinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.TypedLinkSpecifiers, context);
|
|
5851
5954
|
}
|
|
5852
|
-
return [2,
|
|
5955
|
+
return [2, contents];
|
|
5853
5956
|
}
|
|
5854
5957
|
});
|
|
5855
5958
|
}); };
|
|
5856
5959
|
var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5857
|
-
var parsedOutput, _a,
|
|
5960
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5858
5961
|
var _c;
|
|
5859
5962
|
return __generator(this, function (_d) {
|
|
5860
5963
|
switch (_d.label) {
|
|
@@ -5911,14 +6014,14 @@ var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (outpu
|
|
|
5911
6014
|
case 21: throw _d.sent();
|
|
5912
6015
|
case 22:
|
|
5913
6016
|
parsedBody = parsedOutput.body;
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
$metadata: $metadata,
|
|
6017
|
+
throwDefaultError({
|
|
6018
|
+
output: output,
|
|
6019
|
+
parsedBody: parsedBody,
|
|
6020
|
+
exceptionCtor: __BaseException,
|
|
6021
|
+
errorCode: errorCode,
|
|
5920
6022
|
});
|
|
5921
|
-
|
|
6023
|
+
_d.label = 23;
|
|
6024
|
+
case 23: return [2];
|
|
5922
6025
|
}
|
|
5923
6026
|
});
|
|
5924
6027
|
}); };
|
|
@@ -5930,28 +6033,26 @@ export var deserializeAws_restJson1ListPolicyAttachmentsCommand = function (outp
|
|
|
5930
6033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5931
6034
|
return [2, deserializeAws_restJson1ListPolicyAttachmentsCommandError(output, context)];
|
|
5932
6035
|
}
|
|
5933
|
-
contents = {
|
|
6036
|
+
contents = map({
|
|
5934
6037
|
$metadata: deserializeMetadata(output),
|
|
5935
|
-
|
|
5936
|
-
ObjectIdentifiers: undefined,
|
|
5937
|
-
};
|
|
6038
|
+
});
|
|
5938
6039
|
_a = __expectNonNull;
|
|
5939
6040
|
_b = __expectObject;
|
|
5940
6041
|
return [4, parseBody(output.body, context)];
|
|
5941
6042
|
case 1:
|
|
5942
6043
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5943
|
-
if (data.NextToken
|
|
6044
|
+
if (data.NextToken != null) {
|
|
5944
6045
|
contents.NextToken = __expectString(data.NextToken);
|
|
5945
6046
|
}
|
|
5946
|
-
if (data.ObjectIdentifiers
|
|
6047
|
+
if (data.ObjectIdentifiers != null) {
|
|
5947
6048
|
contents.ObjectIdentifiers = deserializeAws_restJson1ObjectIdentifierList(data.ObjectIdentifiers, context);
|
|
5948
6049
|
}
|
|
5949
|
-
return [2,
|
|
6050
|
+
return [2, contents];
|
|
5950
6051
|
}
|
|
5951
6052
|
});
|
|
5952
6053
|
}); };
|
|
5953
6054
|
var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5954
|
-
var parsedOutput, _a,
|
|
6055
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5955
6056
|
var _c;
|
|
5956
6057
|
return __generator(this, function (_d) {
|
|
5957
6058
|
switch (_d.label) {
|
|
@@ -6008,14 +6109,14 @@ var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output
|
|
|
6008
6109
|
case 21: throw _d.sent();
|
|
6009
6110
|
case 22:
|
|
6010
6111
|
parsedBody = parsedOutput.body;
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
$metadata: $metadata,
|
|
6112
|
+
throwDefaultError({
|
|
6113
|
+
output: output,
|
|
6114
|
+
parsedBody: parsedBody,
|
|
6115
|
+
exceptionCtor: __BaseException,
|
|
6116
|
+
errorCode: errorCode,
|
|
6017
6117
|
});
|
|
6018
|
-
|
|
6118
|
+
_d.label = 23;
|
|
6119
|
+
case 23: return [2];
|
|
6019
6120
|
}
|
|
6020
6121
|
});
|
|
6021
6122
|
}); };
|
|
@@ -6027,28 +6128,26 @@ export var deserializeAws_restJson1ListPublishedSchemaArnsCommand = function (ou
|
|
|
6027
6128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6028
6129
|
return [2, deserializeAws_restJson1ListPublishedSchemaArnsCommandError(output, context)];
|
|
6029
6130
|
}
|
|
6030
|
-
contents = {
|
|
6131
|
+
contents = map({
|
|
6031
6132
|
$metadata: deserializeMetadata(output),
|
|
6032
|
-
|
|
6033
|
-
SchemaArns: undefined,
|
|
6034
|
-
};
|
|
6133
|
+
});
|
|
6035
6134
|
_a = __expectNonNull;
|
|
6036
6135
|
_b = __expectObject;
|
|
6037
6136
|
return [4, parseBody(output.body, context)];
|
|
6038
6137
|
case 1:
|
|
6039
6138
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6040
|
-
if (data.NextToken
|
|
6139
|
+
if (data.NextToken != null) {
|
|
6041
6140
|
contents.NextToken = __expectString(data.NextToken);
|
|
6042
6141
|
}
|
|
6043
|
-
if (data.SchemaArns
|
|
6142
|
+
if (data.SchemaArns != null) {
|
|
6044
6143
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
6045
6144
|
}
|
|
6046
|
-
return [2,
|
|
6145
|
+
return [2, contents];
|
|
6047
6146
|
}
|
|
6048
6147
|
});
|
|
6049
6148
|
}); };
|
|
6050
6149
|
var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6051
|
-
var parsedOutput, _a,
|
|
6150
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6052
6151
|
var _c;
|
|
6053
6152
|
return __generator(this, function (_d) {
|
|
6054
6153
|
switch (_d.label) {
|
|
@@ -6097,14 +6196,14 @@ var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (outp
|
|
|
6097
6196
|
case 17: throw _d.sent();
|
|
6098
6197
|
case 18:
|
|
6099
6198
|
parsedBody = parsedOutput.body;
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
$metadata: $metadata,
|
|
6199
|
+
throwDefaultError({
|
|
6200
|
+
output: output,
|
|
6201
|
+
parsedBody: parsedBody,
|
|
6202
|
+
exceptionCtor: __BaseException,
|
|
6203
|
+
errorCode: errorCode,
|
|
6106
6204
|
});
|
|
6107
|
-
|
|
6205
|
+
_d.label = 19;
|
|
6206
|
+
case 19: return [2];
|
|
6108
6207
|
}
|
|
6109
6208
|
});
|
|
6110
6209
|
}); };
|
|
@@ -6116,28 +6215,26 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
6116
6215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6117
6216
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
6118
6217
|
}
|
|
6119
|
-
contents = {
|
|
6218
|
+
contents = map({
|
|
6120
6219
|
$metadata: deserializeMetadata(output),
|
|
6121
|
-
|
|
6122
|
-
Tags: undefined,
|
|
6123
|
-
};
|
|
6220
|
+
});
|
|
6124
6221
|
_a = __expectNonNull;
|
|
6125
6222
|
_b = __expectObject;
|
|
6126
6223
|
return [4, parseBody(output.body, context)];
|
|
6127
6224
|
case 1:
|
|
6128
6225
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6129
|
-
if (data.NextToken
|
|
6226
|
+
if (data.NextToken != null) {
|
|
6130
6227
|
contents.NextToken = __expectString(data.NextToken);
|
|
6131
6228
|
}
|
|
6132
|
-
if (data.Tags
|
|
6229
|
+
if (data.Tags != null) {
|
|
6133
6230
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
6134
6231
|
}
|
|
6135
|
-
return [2,
|
|
6232
|
+
return [2, contents];
|
|
6136
6233
|
}
|
|
6137
6234
|
});
|
|
6138
6235
|
}); };
|
|
6139
6236
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6140
|
-
var parsedOutput, _a,
|
|
6237
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6141
6238
|
var _c;
|
|
6142
6239
|
return __generator(this, function (_d) {
|
|
6143
6240
|
switch (_d.label) {
|
|
@@ -6186,14 +6283,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
6186
6283
|
case 17: throw _d.sent();
|
|
6187
6284
|
case 18:
|
|
6188
6285
|
parsedBody = parsedOutput.body;
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
$metadata: $metadata,
|
|
6286
|
+
throwDefaultError({
|
|
6287
|
+
output: output,
|
|
6288
|
+
parsedBody: parsedBody,
|
|
6289
|
+
exceptionCtor: __BaseException,
|
|
6290
|
+
errorCode: errorCode,
|
|
6195
6291
|
});
|
|
6196
|
-
|
|
6292
|
+
_d.label = 19;
|
|
6293
|
+
case 19: return [2];
|
|
6197
6294
|
}
|
|
6198
6295
|
});
|
|
6199
6296
|
}); };
|
|
@@ -6205,28 +6302,26 @@ export var deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = functio
|
|
|
6205
6302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6206
6303
|
return [2, deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError(output, context)];
|
|
6207
6304
|
}
|
|
6208
|
-
contents = {
|
|
6305
|
+
contents = map({
|
|
6209
6306
|
$metadata: deserializeMetadata(output),
|
|
6210
|
-
|
|
6211
|
-
NextToken: undefined,
|
|
6212
|
-
};
|
|
6307
|
+
});
|
|
6213
6308
|
_a = __expectNonNull;
|
|
6214
6309
|
_b = __expectObject;
|
|
6215
6310
|
return [4, parseBody(output.body, context)];
|
|
6216
6311
|
case 1:
|
|
6217
6312
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6218
|
-
if (data.Attributes
|
|
6313
|
+
if (data.Attributes != null) {
|
|
6219
6314
|
contents.Attributes = deserializeAws_restJson1TypedLinkAttributeDefinitionList(data.Attributes, context);
|
|
6220
6315
|
}
|
|
6221
|
-
if (data.NextToken
|
|
6316
|
+
if (data.NextToken != null) {
|
|
6222
6317
|
contents.NextToken = __expectString(data.NextToken);
|
|
6223
6318
|
}
|
|
6224
|
-
return [2,
|
|
6319
|
+
return [2, contents];
|
|
6225
6320
|
}
|
|
6226
6321
|
});
|
|
6227
6322
|
}); };
|
|
6228
6323
|
var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6229
|
-
var parsedOutput, _a,
|
|
6324
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6230
6325
|
var _c;
|
|
6231
6326
|
return __generator(this, function (_d) {
|
|
6232
6327
|
switch (_d.label) {
|
|
@@ -6279,14 +6374,14 @@ var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function
|
|
|
6279
6374
|
case 19: throw _d.sent();
|
|
6280
6375
|
case 20:
|
|
6281
6376
|
parsedBody = parsedOutput.body;
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
$metadata: $metadata,
|
|
6377
|
+
throwDefaultError({
|
|
6378
|
+
output: output,
|
|
6379
|
+
parsedBody: parsedBody,
|
|
6380
|
+
exceptionCtor: __BaseException,
|
|
6381
|
+
errorCode: errorCode,
|
|
6288
6382
|
});
|
|
6289
|
-
|
|
6383
|
+
_d.label = 21;
|
|
6384
|
+
case 21: return [2];
|
|
6290
6385
|
}
|
|
6291
6386
|
});
|
|
6292
6387
|
}); };
|
|
@@ -6298,28 +6393,26 @@ export var deserializeAws_restJson1ListTypedLinkFacetNamesCommand = function (ou
|
|
|
6298
6393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6299
6394
|
return [2, deserializeAws_restJson1ListTypedLinkFacetNamesCommandError(output, context)];
|
|
6300
6395
|
}
|
|
6301
|
-
contents = {
|
|
6396
|
+
contents = map({
|
|
6302
6397
|
$metadata: deserializeMetadata(output),
|
|
6303
|
-
|
|
6304
|
-
NextToken: undefined,
|
|
6305
|
-
};
|
|
6398
|
+
});
|
|
6306
6399
|
_a = __expectNonNull;
|
|
6307
6400
|
_b = __expectObject;
|
|
6308
6401
|
return [4, parseBody(output.body, context)];
|
|
6309
6402
|
case 1:
|
|
6310
6403
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6311
|
-
if (data.FacetNames
|
|
6404
|
+
if (data.FacetNames != null) {
|
|
6312
6405
|
contents.FacetNames = deserializeAws_restJson1TypedLinkNameList(data.FacetNames, context);
|
|
6313
6406
|
}
|
|
6314
|
-
if (data.NextToken
|
|
6407
|
+
if (data.NextToken != null) {
|
|
6315
6408
|
contents.NextToken = __expectString(data.NextToken);
|
|
6316
6409
|
}
|
|
6317
|
-
return [2,
|
|
6410
|
+
return [2, contents];
|
|
6318
6411
|
}
|
|
6319
6412
|
});
|
|
6320
6413
|
}); };
|
|
6321
6414
|
var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6322
|
-
var parsedOutput, _a,
|
|
6415
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6323
6416
|
var _c;
|
|
6324
6417
|
return __generator(this, function (_d) {
|
|
6325
6418
|
switch (_d.label) {
|
|
@@ -6368,14 +6461,14 @@ var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (outp
|
|
|
6368
6461
|
case 17: throw _d.sent();
|
|
6369
6462
|
case 18:
|
|
6370
6463
|
parsedBody = parsedOutput.body;
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
$metadata: $metadata,
|
|
6464
|
+
throwDefaultError({
|
|
6465
|
+
output: output,
|
|
6466
|
+
parsedBody: parsedBody,
|
|
6467
|
+
exceptionCtor: __BaseException,
|
|
6468
|
+
errorCode: errorCode,
|
|
6377
6469
|
});
|
|
6378
|
-
|
|
6470
|
+
_d.label = 19;
|
|
6471
|
+
case 19: return [2];
|
|
6379
6472
|
}
|
|
6380
6473
|
});
|
|
6381
6474
|
}); };
|
|
@@ -6387,28 +6480,26 @@ export var deserializeAws_restJson1LookupPolicyCommand = function (output, conte
|
|
|
6387
6480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6388
6481
|
return [2, deserializeAws_restJson1LookupPolicyCommandError(output, context)];
|
|
6389
6482
|
}
|
|
6390
|
-
contents = {
|
|
6483
|
+
contents = map({
|
|
6391
6484
|
$metadata: deserializeMetadata(output),
|
|
6392
|
-
|
|
6393
|
-
PolicyToPathList: undefined,
|
|
6394
|
-
};
|
|
6485
|
+
});
|
|
6395
6486
|
_a = __expectNonNull;
|
|
6396
6487
|
_b = __expectObject;
|
|
6397
6488
|
return [4, parseBody(output.body, context)];
|
|
6398
6489
|
case 1:
|
|
6399
6490
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6400
|
-
if (data.NextToken
|
|
6491
|
+
if (data.NextToken != null) {
|
|
6401
6492
|
contents.NextToken = __expectString(data.NextToken);
|
|
6402
6493
|
}
|
|
6403
|
-
if (data.PolicyToPathList
|
|
6494
|
+
if (data.PolicyToPathList != null) {
|
|
6404
6495
|
contents.PolicyToPathList = deserializeAws_restJson1PolicyToPathList(data.PolicyToPathList, context);
|
|
6405
6496
|
}
|
|
6406
|
-
return [2,
|
|
6497
|
+
return [2, contents];
|
|
6407
6498
|
}
|
|
6408
6499
|
});
|
|
6409
6500
|
}); };
|
|
6410
6501
|
var deserializeAws_restJson1LookupPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6411
|
-
var parsedOutput, _a,
|
|
6502
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6412
6503
|
var _c;
|
|
6413
6504
|
return __generator(this, function (_d) {
|
|
6414
6505
|
switch (_d.label) {
|
|
@@ -6461,14 +6552,14 @@ var deserializeAws_restJson1LookupPolicyCommandError = function (output, context
|
|
|
6461
6552
|
case 19: throw _d.sent();
|
|
6462
6553
|
case 20:
|
|
6463
6554
|
parsedBody = parsedOutput.body;
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
$metadata: $metadata,
|
|
6555
|
+
throwDefaultError({
|
|
6556
|
+
output: output,
|
|
6557
|
+
parsedBody: parsedBody,
|
|
6558
|
+
exceptionCtor: __BaseException,
|
|
6559
|
+
errorCode: errorCode,
|
|
6470
6560
|
});
|
|
6471
|
-
|
|
6561
|
+
_d.label = 21;
|
|
6562
|
+
case 21: return [2];
|
|
6472
6563
|
}
|
|
6473
6564
|
});
|
|
6474
6565
|
}); };
|
|
@@ -6480,24 +6571,23 @@ export var deserializeAws_restJson1PublishSchemaCommand = function (output, cont
|
|
|
6480
6571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6481
6572
|
return [2, deserializeAws_restJson1PublishSchemaCommandError(output, context)];
|
|
6482
6573
|
}
|
|
6483
|
-
contents = {
|
|
6574
|
+
contents = map({
|
|
6484
6575
|
$metadata: deserializeMetadata(output),
|
|
6485
|
-
|
|
6486
|
-
};
|
|
6576
|
+
});
|
|
6487
6577
|
_a = __expectNonNull;
|
|
6488
6578
|
_b = __expectObject;
|
|
6489
6579
|
return [4, parseBody(output.body, context)];
|
|
6490
6580
|
case 1:
|
|
6491
6581
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6492
|
-
if (data.PublishedSchemaArn
|
|
6582
|
+
if (data.PublishedSchemaArn != null) {
|
|
6493
6583
|
contents.PublishedSchemaArn = __expectString(data.PublishedSchemaArn);
|
|
6494
6584
|
}
|
|
6495
|
-
return [2,
|
|
6585
|
+
return [2, contents];
|
|
6496
6586
|
}
|
|
6497
6587
|
});
|
|
6498
6588
|
}); };
|
|
6499
6589
|
var deserializeAws_restJson1PublishSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6500
|
-
var parsedOutput, _a,
|
|
6590
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6501
6591
|
var _c;
|
|
6502
6592
|
return __generator(this, function (_d) {
|
|
6503
6593
|
switch (_d.label) {
|
|
@@ -6546,14 +6636,14 @@ var deserializeAws_restJson1PublishSchemaCommandError = function (output, contex
|
|
|
6546
6636
|
case 17: throw _d.sent();
|
|
6547
6637
|
case 18:
|
|
6548
6638
|
parsedBody = parsedOutput.body;
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
$metadata: $metadata,
|
|
6639
|
+
throwDefaultError({
|
|
6640
|
+
output: output,
|
|
6641
|
+
parsedBody: parsedBody,
|
|
6642
|
+
exceptionCtor: __BaseException,
|
|
6643
|
+
errorCode: errorCode,
|
|
6555
6644
|
});
|
|
6556
|
-
|
|
6645
|
+
_d.label = 19;
|
|
6646
|
+
case 19: return [2];
|
|
6557
6647
|
}
|
|
6558
6648
|
});
|
|
6559
6649
|
}); };
|
|
@@ -6565,24 +6655,23 @@ export var deserializeAws_restJson1PutSchemaFromJsonCommand = function (output,
|
|
|
6565
6655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6566
6656
|
return [2, deserializeAws_restJson1PutSchemaFromJsonCommandError(output, context)];
|
|
6567
6657
|
}
|
|
6568
|
-
contents = {
|
|
6658
|
+
contents = map({
|
|
6569
6659
|
$metadata: deserializeMetadata(output),
|
|
6570
|
-
|
|
6571
|
-
};
|
|
6660
|
+
});
|
|
6572
6661
|
_a = __expectNonNull;
|
|
6573
6662
|
_b = __expectObject;
|
|
6574
6663
|
return [4, parseBody(output.body, context)];
|
|
6575
6664
|
case 1:
|
|
6576
6665
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6577
|
-
if (data.Arn
|
|
6666
|
+
if (data.Arn != null) {
|
|
6578
6667
|
contents.Arn = __expectString(data.Arn);
|
|
6579
6668
|
}
|
|
6580
|
-
return [2,
|
|
6669
|
+
return [2, contents];
|
|
6581
6670
|
}
|
|
6582
6671
|
});
|
|
6583
6672
|
}); };
|
|
6584
6673
|
var deserializeAws_restJson1PutSchemaFromJsonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6585
|
-
var parsedOutput, _a,
|
|
6674
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6586
6675
|
var _c;
|
|
6587
6676
|
return __generator(this, function (_d) {
|
|
6588
6677
|
switch (_d.label) {
|
|
@@ -6631,14 +6720,14 @@ var deserializeAws_restJson1PutSchemaFromJsonCommandError = function (output, co
|
|
|
6631
6720
|
case 17: throw _d.sent();
|
|
6632
6721
|
case 18:
|
|
6633
6722
|
parsedBody = parsedOutput.body;
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
$metadata: $metadata,
|
|
6723
|
+
throwDefaultError({
|
|
6724
|
+
output: output,
|
|
6725
|
+
parsedBody: parsedBody,
|
|
6726
|
+
exceptionCtor: __BaseException,
|
|
6727
|
+
errorCode: errorCode,
|
|
6640
6728
|
});
|
|
6641
|
-
|
|
6729
|
+
_d.label = 19;
|
|
6730
|
+
case 19: return [2];
|
|
6642
6731
|
}
|
|
6643
6732
|
});
|
|
6644
6733
|
}); };
|
|
@@ -6650,18 +6739,18 @@ export var deserializeAws_restJson1RemoveFacetFromObjectCommand = function (outp
|
|
|
6650
6739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6651
6740
|
return [2, deserializeAws_restJson1RemoveFacetFromObjectCommandError(output, context)];
|
|
6652
6741
|
}
|
|
6653
|
-
contents = {
|
|
6742
|
+
contents = map({
|
|
6654
6743
|
$metadata: deserializeMetadata(output),
|
|
6655
|
-
};
|
|
6744
|
+
});
|
|
6656
6745
|
return [4, collectBody(output.body, context)];
|
|
6657
6746
|
case 1:
|
|
6658
6747
|
_a.sent();
|
|
6659
|
-
return [2,
|
|
6748
|
+
return [2, contents];
|
|
6660
6749
|
}
|
|
6661
6750
|
});
|
|
6662
6751
|
}); };
|
|
6663
6752
|
var deserializeAws_restJson1RemoveFacetFromObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6664
|
-
var parsedOutput, _a,
|
|
6753
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6665
6754
|
var _c;
|
|
6666
6755
|
return __generator(this, function (_d) {
|
|
6667
6756
|
switch (_d.label) {
|
|
@@ -6714,14 +6803,14 @@ var deserializeAws_restJson1RemoveFacetFromObjectCommandError = function (output
|
|
|
6714
6803
|
case 19: throw _d.sent();
|
|
6715
6804
|
case 20:
|
|
6716
6805
|
parsedBody = parsedOutput.body;
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
$metadata: $metadata,
|
|
6806
|
+
throwDefaultError({
|
|
6807
|
+
output: output,
|
|
6808
|
+
parsedBody: parsedBody,
|
|
6809
|
+
exceptionCtor: __BaseException,
|
|
6810
|
+
errorCode: errorCode,
|
|
6723
6811
|
});
|
|
6724
|
-
|
|
6812
|
+
_d.label = 21;
|
|
6813
|
+
case 21: return [2];
|
|
6725
6814
|
}
|
|
6726
6815
|
});
|
|
6727
6816
|
}); };
|
|
@@ -6733,18 +6822,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
6733
6822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6734
6823
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
6735
6824
|
}
|
|
6736
|
-
contents = {
|
|
6825
|
+
contents = map({
|
|
6737
6826
|
$metadata: deserializeMetadata(output),
|
|
6738
|
-
};
|
|
6827
|
+
});
|
|
6739
6828
|
return [4, collectBody(output.body, context)];
|
|
6740
6829
|
case 1:
|
|
6741
6830
|
_a.sent();
|
|
6742
|
-
return [2,
|
|
6831
|
+
return [2, contents];
|
|
6743
6832
|
}
|
|
6744
6833
|
});
|
|
6745
6834
|
}); };
|
|
6746
6835
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6747
|
-
var parsedOutput, _a,
|
|
6836
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6748
6837
|
var _c;
|
|
6749
6838
|
return __generator(this, function (_d) {
|
|
6750
6839
|
switch (_d.label) {
|
|
@@ -6793,14 +6882,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
6793
6882
|
case 17: throw _d.sent();
|
|
6794
6883
|
case 18:
|
|
6795
6884
|
parsedBody = parsedOutput.body;
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
$metadata: $metadata,
|
|
6885
|
+
throwDefaultError({
|
|
6886
|
+
output: output,
|
|
6887
|
+
parsedBody: parsedBody,
|
|
6888
|
+
exceptionCtor: __BaseException,
|
|
6889
|
+
errorCode: errorCode,
|
|
6802
6890
|
});
|
|
6803
|
-
|
|
6891
|
+
_d.label = 19;
|
|
6892
|
+
case 19: return [2];
|
|
6804
6893
|
}
|
|
6805
6894
|
});
|
|
6806
6895
|
}); };
|
|
@@ -6812,18 +6901,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
6812
6901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6813
6902
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
6814
6903
|
}
|
|
6815
|
-
contents = {
|
|
6904
|
+
contents = map({
|
|
6816
6905
|
$metadata: deserializeMetadata(output),
|
|
6817
|
-
};
|
|
6906
|
+
});
|
|
6818
6907
|
return [4, collectBody(output.body, context)];
|
|
6819
6908
|
case 1:
|
|
6820
6909
|
_a.sent();
|
|
6821
|
-
return [2,
|
|
6910
|
+
return [2, contents];
|
|
6822
6911
|
}
|
|
6823
6912
|
});
|
|
6824
6913
|
}); };
|
|
6825
6914
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6826
|
-
var parsedOutput, _a,
|
|
6915
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6827
6916
|
var _c;
|
|
6828
6917
|
return __generator(this, function (_d) {
|
|
6829
6918
|
switch (_d.label) {
|
|
@@ -6872,14 +6961,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
6872
6961
|
case 17: throw _d.sent();
|
|
6873
6962
|
case 18:
|
|
6874
6963
|
parsedBody = parsedOutput.body;
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
$metadata: $metadata,
|
|
6964
|
+
throwDefaultError({
|
|
6965
|
+
output: output,
|
|
6966
|
+
parsedBody: parsedBody,
|
|
6967
|
+
exceptionCtor: __BaseException,
|
|
6968
|
+
errorCode: errorCode,
|
|
6881
6969
|
});
|
|
6882
|
-
|
|
6970
|
+
_d.label = 19;
|
|
6971
|
+
case 19: return [2];
|
|
6883
6972
|
}
|
|
6884
6973
|
});
|
|
6885
6974
|
}); };
|
|
@@ -6891,18 +6980,18 @@ export var deserializeAws_restJson1UpdateFacetCommand = function (output, contex
|
|
|
6891
6980
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6892
6981
|
return [2, deserializeAws_restJson1UpdateFacetCommandError(output, context)];
|
|
6893
6982
|
}
|
|
6894
|
-
contents = {
|
|
6983
|
+
contents = map({
|
|
6895
6984
|
$metadata: deserializeMetadata(output),
|
|
6896
|
-
};
|
|
6985
|
+
});
|
|
6897
6986
|
return [4, collectBody(output.body, context)];
|
|
6898
6987
|
case 1:
|
|
6899
6988
|
_a.sent();
|
|
6900
|
-
return [2,
|
|
6989
|
+
return [2, contents];
|
|
6901
6990
|
}
|
|
6902
6991
|
});
|
|
6903
6992
|
}); };
|
|
6904
6993
|
var deserializeAws_restJson1UpdateFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6905
|
-
var parsedOutput, _a,
|
|
6994
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6906
6995
|
var _c;
|
|
6907
6996
|
return __generator(this, function (_d) {
|
|
6908
6997
|
switch (_d.label) {
|
|
@@ -6963,14 +7052,14 @@ var deserializeAws_restJson1UpdateFacetCommandError = function (output, context)
|
|
|
6963
7052
|
case 23: throw _d.sent();
|
|
6964
7053
|
case 24:
|
|
6965
7054
|
parsedBody = parsedOutput.body;
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
$metadata: $metadata,
|
|
7055
|
+
throwDefaultError({
|
|
7056
|
+
output: output,
|
|
7057
|
+
parsedBody: parsedBody,
|
|
7058
|
+
exceptionCtor: __BaseException,
|
|
7059
|
+
errorCode: errorCode,
|
|
6972
7060
|
});
|
|
6973
|
-
|
|
7061
|
+
_d.label = 25;
|
|
7062
|
+
case 25: return [2];
|
|
6974
7063
|
}
|
|
6975
7064
|
});
|
|
6976
7065
|
}); };
|
|
@@ -6982,18 +7071,18 @@ export var deserializeAws_restJson1UpdateLinkAttributesCommand = function (outpu
|
|
|
6982
7071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6983
7072
|
return [2, deserializeAws_restJson1UpdateLinkAttributesCommandError(output, context)];
|
|
6984
7073
|
}
|
|
6985
|
-
contents = {
|
|
7074
|
+
contents = map({
|
|
6986
7075
|
$metadata: deserializeMetadata(output),
|
|
6987
|
-
};
|
|
7076
|
+
});
|
|
6988
7077
|
return [4, collectBody(output.body, context)];
|
|
6989
7078
|
case 1:
|
|
6990
7079
|
_a.sent();
|
|
6991
|
-
return [2,
|
|
7080
|
+
return [2, contents];
|
|
6992
7081
|
}
|
|
6993
7082
|
});
|
|
6994
7083
|
}); };
|
|
6995
7084
|
var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6996
|
-
var parsedOutput, _a,
|
|
7085
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6997
7086
|
var _c;
|
|
6998
7087
|
return __generator(this, function (_d) {
|
|
6999
7088
|
switch (_d.label) {
|
|
@@ -7046,14 +7135,14 @@ var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output,
|
|
|
7046
7135
|
case 19: throw _d.sent();
|
|
7047
7136
|
case 20:
|
|
7048
7137
|
parsedBody = parsedOutput.body;
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
$metadata: $metadata,
|
|
7138
|
+
throwDefaultError({
|
|
7139
|
+
output: output,
|
|
7140
|
+
parsedBody: parsedBody,
|
|
7141
|
+
exceptionCtor: __BaseException,
|
|
7142
|
+
errorCode: errorCode,
|
|
7055
7143
|
});
|
|
7056
|
-
|
|
7144
|
+
_d.label = 21;
|
|
7145
|
+
case 21: return [2];
|
|
7057
7146
|
}
|
|
7058
7147
|
});
|
|
7059
7148
|
}); };
|
|
@@ -7065,24 +7154,23 @@ export var deserializeAws_restJson1UpdateObjectAttributesCommand = function (out
|
|
|
7065
7154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7066
7155
|
return [2, deserializeAws_restJson1UpdateObjectAttributesCommandError(output, context)];
|
|
7067
7156
|
}
|
|
7068
|
-
contents = {
|
|
7157
|
+
contents = map({
|
|
7069
7158
|
$metadata: deserializeMetadata(output),
|
|
7070
|
-
|
|
7071
|
-
};
|
|
7159
|
+
});
|
|
7072
7160
|
_a = __expectNonNull;
|
|
7073
7161
|
_b = __expectObject;
|
|
7074
7162
|
return [4, parseBody(output.body, context)];
|
|
7075
7163
|
case 1:
|
|
7076
7164
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7077
|
-
if (data.ObjectIdentifier
|
|
7165
|
+
if (data.ObjectIdentifier != null) {
|
|
7078
7166
|
contents.ObjectIdentifier = __expectString(data.ObjectIdentifier);
|
|
7079
7167
|
}
|
|
7080
|
-
return [2,
|
|
7168
|
+
return [2, contents];
|
|
7081
7169
|
}
|
|
7082
7170
|
});
|
|
7083
7171
|
}); };
|
|
7084
7172
|
var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7085
|
-
var parsedOutput, _a,
|
|
7173
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
7086
7174
|
var _c;
|
|
7087
7175
|
return __generator(this, function (_d) {
|
|
7088
7176
|
switch (_d.label) {
|
|
@@ -7139,14 +7227,14 @@ var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (outpu
|
|
|
7139
7227
|
case 21: throw _d.sent();
|
|
7140
7228
|
case 22:
|
|
7141
7229
|
parsedBody = parsedOutput.body;
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
$metadata: $metadata,
|
|
7230
|
+
throwDefaultError({
|
|
7231
|
+
output: output,
|
|
7232
|
+
parsedBody: parsedBody,
|
|
7233
|
+
exceptionCtor: __BaseException,
|
|
7234
|
+
errorCode: errorCode,
|
|
7148
7235
|
});
|
|
7149
|
-
|
|
7236
|
+
_d.label = 23;
|
|
7237
|
+
case 23: return [2];
|
|
7150
7238
|
}
|
|
7151
7239
|
});
|
|
7152
7240
|
}); };
|
|
@@ -7158,24 +7246,23 @@ export var deserializeAws_restJson1UpdateSchemaCommand = function (output, conte
|
|
|
7158
7246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7159
7247
|
return [2, deserializeAws_restJson1UpdateSchemaCommandError(output, context)];
|
|
7160
7248
|
}
|
|
7161
|
-
contents = {
|
|
7249
|
+
contents = map({
|
|
7162
7250
|
$metadata: deserializeMetadata(output),
|
|
7163
|
-
|
|
7164
|
-
};
|
|
7251
|
+
});
|
|
7165
7252
|
_a = __expectNonNull;
|
|
7166
7253
|
_b = __expectObject;
|
|
7167
7254
|
return [4, parseBody(output.body, context)];
|
|
7168
7255
|
case 1:
|
|
7169
7256
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7170
|
-
if (data.SchemaArn
|
|
7257
|
+
if (data.SchemaArn != null) {
|
|
7171
7258
|
contents.SchemaArn = __expectString(data.SchemaArn);
|
|
7172
7259
|
}
|
|
7173
|
-
return [2,
|
|
7260
|
+
return [2, contents];
|
|
7174
7261
|
}
|
|
7175
7262
|
});
|
|
7176
7263
|
}); };
|
|
7177
7264
|
var deserializeAws_restJson1UpdateSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7178
|
-
var parsedOutput, _a,
|
|
7265
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
7179
7266
|
var _c;
|
|
7180
7267
|
return __generator(this, function (_d) {
|
|
7181
7268
|
switch (_d.label) {
|
|
@@ -7220,14 +7307,14 @@ var deserializeAws_restJson1UpdateSchemaCommandError = function (output, context
|
|
|
7220
7307
|
case 15: throw _d.sent();
|
|
7221
7308
|
case 16:
|
|
7222
7309
|
parsedBody = parsedOutput.body;
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
$metadata: $metadata,
|
|
7310
|
+
throwDefaultError({
|
|
7311
|
+
output: output,
|
|
7312
|
+
parsedBody: parsedBody,
|
|
7313
|
+
exceptionCtor: __BaseException,
|
|
7314
|
+
errorCode: errorCode,
|
|
7229
7315
|
});
|
|
7230
|
-
|
|
7316
|
+
_d.label = 17;
|
|
7317
|
+
case 17: return [2];
|
|
7231
7318
|
}
|
|
7232
7319
|
});
|
|
7233
7320
|
}); };
|
|
@@ -7239,18 +7326,18 @@ export var deserializeAws_restJson1UpdateTypedLinkFacetCommand = function (outpu
|
|
|
7239
7326
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7240
7327
|
return [2, deserializeAws_restJson1UpdateTypedLinkFacetCommandError(output, context)];
|
|
7241
7328
|
}
|
|
7242
|
-
contents = {
|
|
7329
|
+
contents = map({
|
|
7243
7330
|
$metadata: deserializeMetadata(output),
|
|
7244
|
-
};
|
|
7331
|
+
});
|
|
7245
7332
|
return [4, collectBody(output.body, context)];
|
|
7246
7333
|
case 1:
|
|
7247
7334
|
_a.sent();
|
|
7248
|
-
return [2,
|
|
7335
|
+
return [2, contents];
|
|
7249
7336
|
}
|
|
7250
7337
|
});
|
|
7251
7338
|
}); };
|
|
7252
7339
|
var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7253
|
-
var parsedOutput, _a,
|
|
7340
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
7254
7341
|
var _c;
|
|
7255
7342
|
return __generator(this, function (_d) {
|
|
7256
7343
|
switch (_d.label) {
|
|
@@ -7311,14 +7398,14 @@ var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output,
|
|
|
7311
7398
|
case 23: throw _d.sent();
|
|
7312
7399
|
case 24:
|
|
7313
7400
|
parsedBody = parsedOutput.body;
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
$metadata: $metadata,
|
|
7401
|
+
throwDefaultError({
|
|
7402
|
+
output: output,
|
|
7403
|
+
parsedBody: parsedBody,
|
|
7404
|
+
exceptionCtor: __BaseException,
|
|
7405
|
+
errorCode: errorCode,
|
|
7320
7406
|
});
|
|
7321
|
-
|
|
7407
|
+
_d.label = 25;
|
|
7408
|
+
case 25: return [2];
|
|
7322
7409
|
}
|
|
7323
7410
|
});
|
|
7324
7411
|
}); };
|
|
@@ -7330,28 +7417,26 @@ export var deserializeAws_restJson1UpgradeAppliedSchemaCommand = function (outpu
|
|
|
7330
7417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7331
7418
|
return [2, deserializeAws_restJson1UpgradeAppliedSchemaCommandError(output, context)];
|
|
7332
7419
|
}
|
|
7333
|
-
contents = {
|
|
7420
|
+
contents = map({
|
|
7334
7421
|
$metadata: deserializeMetadata(output),
|
|
7335
|
-
|
|
7336
|
-
UpgradedSchemaArn: undefined,
|
|
7337
|
-
};
|
|
7422
|
+
});
|
|
7338
7423
|
_a = __expectNonNull;
|
|
7339
7424
|
_b = __expectObject;
|
|
7340
7425
|
return [4, parseBody(output.body, context)];
|
|
7341
7426
|
case 1:
|
|
7342
7427
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7343
|
-
if (data.DirectoryArn
|
|
7428
|
+
if (data.DirectoryArn != null) {
|
|
7344
7429
|
contents.DirectoryArn = __expectString(data.DirectoryArn);
|
|
7345
7430
|
}
|
|
7346
|
-
if (data.UpgradedSchemaArn
|
|
7431
|
+
if (data.UpgradedSchemaArn != null) {
|
|
7347
7432
|
contents.UpgradedSchemaArn = __expectString(data.UpgradedSchemaArn);
|
|
7348
7433
|
}
|
|
7349
|
-
return [2,
|
|
7434
|
+
return [2, contents];
|
|
7350
7435
|
}
|
|
7351
7436
|
});
|
|
7352
7437
|
}); };
|
|
7353
7438
|
var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7354
|
-
var parsedOutput, _a,
|
|
7439
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
7355
7440
|
var _c;
|
|
7356
7441
|
return __generator(this, function (_d) {
|
|
7357
7442
|
switch (_d.label) {
|
|
@@ -7404,14 +7489,14 @@ var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output,
|
|
|
7404
7489
|
case 19: throw _d.sent();
|
|
7405
7490
|
case 20:
|
|
7406
7491
|
parsedBody = parsedOutput.body;
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
$metadata: $metadata,
|
|
7492
|
+
throwDefaultError({
|
|
7493
|
+
output: output,
|
|
7494
|
+
parsedBody: parsedBody,
|
|
7495
|
+
exceptionCtor: __BaseException,
|
|
7496
|
+
errorCode: errorCode,
|
|
7413
7497
|
});
|
|
7414
|
-
|
|
7498
|
+
_d.label = 21;
|
|
7499
|
+
case 21: return [2];
|
|
7415
7500
|
}
|
|
7416
7501
|
});
|
|
7417
7502
|
}); };
|
|
@@ -7423,24 +7508,23 @@ export var deserializeAws_restJson1UpgradePublishedSchemaCommand = function (out
|
|
|
7423
7508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7424
7509
|
return [2, deserializeAws_restJson1UpgradePublishedSchemaCommandError(output, context)];
|
|
7425
7510
|
}
|
|
7426
|
-
contents = {
|
|
7511
|
+
contents = map({
|
|
7427
7512
|
$metadata: deserializeMetadata(output),
|
|
7428
|
-
|
|
7429
|
-
};
|
|
7513
|
+
});
|
|
7430
7514
|
_a = __expectNonNull;
|
|
7431
7515
|
_b = __expectObject;
|
|
7432
7516
|
return [4, parseBody(output.body, context)];
|
|
7433
7517
|
case 1:
|
|
7434
7518
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
7435
|
-
if (data.UpgradedSchemaArn
|
|
7519
|
+
if (data.UpgradedSchemaArn != null) {
|
|
7436
7520
|
contents.UpgradedSchemaArn = __expectString(data.UpgradedSchemaArn);
|
|
7437
7521
|
}
|
|
7438
|
-
return [2,
|
|
7522
|
+
return [2, contents];
|
|
7439
7523
|
}
|
|
7440
7524
|
});
|
|
7441
7525
|
}); };
|
|
7442
7526
|
var deserializeAws_restJson1UpgradePublishedSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7443
|
-
var parsedOutput, _a,
|
|
7527
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
7444
7528
|
var _c;
|
|
7445
7529
|
return __generator(this, function (_d) {
|
|
7446
7530
|
switch (_d.label) {
|
|
@@ -7493,23 +7577,24 @@ var deserializeAws_restJson1UpgradePublishedSchemaCommandError = function (outpu
|
|
|
7493
7577
|
case 19: throw _d.sent();
|
|
7494
7578
|
case 20:
|
|
7495
7579
|
parsedBody = parsedOutput.body;
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
$metadata: $metadata,
|
|
7580
|
+
throwDefaultError({
|
|
7581
|
+
output: output,
|
|
7582
|
+
parsedBody: parsedBody,
|
|
7583
|
+
exceptionCtor: __BaseException,
|
|
7584
|
+
errorCode: errorCode,
|
|
7502
7585
|
});
|
|
7503
|
-
|
|
7586
|
+
_d.label = 21;
|
|
7587
|
+
case 21: return [2];
|
|
7504
7588
|
}
|
|
7505
7589
|
});
|
|
7506
7590
|
}); };
|
|
7591
|
+
var map = __map;
|
|
7507
7592
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7508
7593
|
var contents, data, exception;
|
|
7509
7594
|
return __generator(this, function (_a) {
|
|
7510
|
-
contents = {};
|
|
7595
|
+
contents = map({});
|
|
7511
7596
|
data = parsedOutput.body;
|
|
7512
|
-
if (data.Message
|
|
7597
|
+
if (data.Message != null) {
|
|
7513
7598
|
contents.Message = __expectString(data.Message);
|
|
7514
7599
|
}
|
|
7515
7600
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7519,15 +7604,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
7519
7604
|
var deserializeAws_restJson1BatchWriteExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7520
7605
|
var contents, data, exception;
|
|
7521
7606
|
return __generator(this, function (_a) {
|
|
7522
|
-
contents = {};
|
|
7607
|
+
contents = map({});
|
|
7523
7608
|
data = parsedOutput.body;
|
|
7524
|
-
if (data.Index
|
|
7609
|
+
if (data.Index != null) {
|
|
7525
7610
|
contents.Index = __expectInt32(data.Index);
|
|
7526
7611
|
}
|
|
7527
|
-
if (data.Message
|
|
7612
|
+
if (data.Message != null) {
|
|
7528
7613
|
contents.Message = __expectString(data.Message);
|
|
7529
7614
|
}
|
|
7530
|
-
if (data.Type
|
|
7615
|
+
if (data.Type != null) {
|
|
7531
7616
|
contents.Type = __expectString(data.Type);
|
|
7532
7617
|
}
|
|
7533
7618
|
exception = new BatchWriteException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7537,9 +7622,9 @@ var deserializeAws_restJson1BatchWriteExceptionResponse = function (parsedOutput
|
|
|
7537
7622
|
var deserializeAws_restJson1CannotListParentOfRootExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7538
7623
|
var contents, data, exception;
|
|
7539
7624
|
return __generator(this, function (_a) {
|
|
7540
|
-
contents = {};
|
|
7625
|
+
contents = map({});
|
|
7541
7626
|
data = parsedOutput.body;
|
|
7542
|
-
if (data.Message
|
|
7627
|
+
if (data.Message != null) {
|
|
7543
7628
|
contents.Message = __expectString(data.Message);
|
|
7544
7629
|
}
|
|
7545
7630
|
exception = new CannotListParentOfRootException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7549,9 +7634,9 @@ var deserializeAws_restJson1CannotListParentOfRootExceptionResponse = function (
|
|
|
7549
7634
|
var deserializeAws_restJson1DirectoryAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7550
7635
|
var contents, data, exception;
|
|
7551
7636
|
return __generator(this, function (_a) {
|
|
7552
|
-
contents = {};
|
|
7637
|
+
contents = map({});
|
|
7553
7638
|
data = parsedOutput.body;
|
|
7554
|
-
if (data.Message
|
|
7639
|
+
if (data.Message != null) {
|
|
7555
7640
|
contents.Message = __expectString(data.Message);
|
|
7556
7641
|
}
|
|
7557
7642
|
exception = new DirectoryAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7561,9 +7646,9 @@ var deserializeAws_restJson1DirectoryAlreadyExistsExceptionResponse = function (
|
|
|
7561
7646
|
var deserializeAws_restJson1DirectoryDeletedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7562
7647
|
var contents, data, exception;
|
|
7563
7648
|
return __generator(this, function (_a) {
|
|
7564
|
-
contents = {};
|
|
7649
|
+
contents = map({});
|
|
7565
7650
|
data = parsedOutput.body;
|
|
7566
|
-
if (data.Message
|
|
7651
|
+
if (data.Message != null) {
|
|
7567
7652
|
contents.Message = __expectString(data.Message);
|
|
7568
7653
|
}
|
|
7569
7654
|
exception = new DirectoryDeletedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7573,9 +7658,9 @@ var deserializeAws_restJson1DirectoryDeletedExceptionResponse = function (parsed
|
|
|
7573
7658
|
var deserializeAws_restJson1DirectoryNotDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7574
7659
|
var contents, data, exception;
|
|
7575
7660
|
return __generator(this, function (_a) {
|
|
7576
|
-
contents = {};
|
|
7661
|
+
contents = map({});
|
|
7577
7662
|
data = parsedOutput.body;
|
|
7578
|
-
if (data.Message
|
|
7663
|
+
if (data.Message != null) {
|
|
7579
7664
|
contents.Message = __expectString(data.Message);
|
|
7580
7665
|
}
|
|
7581
7666
|
exception = new DirectoryNotDisabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7585,9 +7670,9 @@ var deserializeAws_restJson1DirectoryNotDisabledExceptionResponse = function (pa
|
|
|
7585
7670
|
var deserializeAws_restJson1DirectoryNotEnabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7586
7671
|
var contents, data, exception;
|
|
7587
7672
|
return __generator(this, function (_a) {
|
|
7588
|
-
contents = {};
|
|
7673
|
+
contents = map({});
|
|
7589
7674
|
data = parsedOutput.body;
|
|
7590
|
-
if (data.Message
|
|
7675
|
+
if (data.Message != null) {
|
|
7591
7676
|
contents.Message = __expectString(data.Message);
|
|
7592
7677
|
}
|
|
7593
7678
|
exception = new DirectoryNotEnabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7597,9 +7682,9 @@ var deserializeAws_restJson1DirectoryNotEnabledExceptionResponse = function (par
|
|
|
7597
7682
|
var deserializeAws_restJson1FacetAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7598
7683
|
var contents, data, exception;
|
|
7599
7684
|
return __generator(this, function (_a) {
|
|
7600
|
-
contents = {};
|
|
7685
|
+
contents = map({});
|
|
7601
7686
|
data = parsedOutput.body;
|
|
7602
|
-
if (data.Message
|
|
7687
|
+
if (data.Message != null) {
|
|
7603
7688
|
contents.Message = __expectString(data.Message);
|
|
7604
7689
|
}
|
|
7605
7690
|
exception = new FacetAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7609,9 +7694,9 @@ var deserializeAws_restJson1FacetAlreadyExistsExceptionResponse = function (pars
|
|
|
7609
7694
|
var deserializeAws_restJson1FacetInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7610
7695
|
var contents, data, exception;
|
|
7611
7696
|
return __generator(this, function (_a) {
|
|
7612
|
-
contents = {};
|
|
7697
|
+
contents = map({});
|
|
7613
7698
|
data = parsedOutput.body;
|
|
7614
|
-
if (data.Message
|
|
7699
|
+
if (data.Message != null) {
|
|
7615
7700
|
contents.Message = __expectString(data.Message);
|
|
7616
7701
|
}
|
|
7617
7702
|
exception = new FacetInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7621,9 +7706,9 @@ var deserializeAws_restJson1FacetInUseExceptionResponse = function (parsedOutput
|
|
|
7621
7706
|
var deserializeAws_restJson1FacetNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7622
7707
|
var contents, data, exception;
|
|
7623
7708
|
return __generator(this, function (_a) {
|
|
7624
|
-
contents = {};
|
|
7709
|
+
contents = map({});
|
|
7625
7710
|
data = parsedOutput.body;
|
|
7626
|
-
if (data.Message
|
|
7711
|
+
if (data.Message != null) {
|
|
7627
7712
|
contents.Message = __expectString(data.Message);
|
|
7628
7713
|
}
|
|
7629
7714
|
exception = new FacetNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7633,9 +7718,9 @@ var deserializeAws_restJson1FacetNotFoundExceptionResponse = function (parsedOut
|
|
|
7633
7718
|
var deserializeAws_restJson1FacetValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7634
7719
|
var contents, data, exception;
|
|
7635
7720
|
return __generator(this, function (_a) {
|
|
7636
|
-
contents = {};
|
|
7721
|
+
contents = map({});
|
|
7637
7722
|
data = parsedOutput.body;
|
|
7638
|
-
if (data.Message
|
|
7723
|
+
if (data.Message != null) {
|
|
7639
7724
|
contents.Message = __expectString(data.Message);
|
|
7640
7725
|
}
|
|
7641
7726
|
exception = new FacetValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7645,9 +7730,9 @@ var deserializeAws_restJson1FacetValidationExceptionResponse = function (parsedO
|
|
|
7645
7730
|
var deserializeAws_restJson1IncompatibleSchemaExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7646
7731
|
var contents, data, exception;
|
|
7647
7732
|
return __generator(this, function (_a) {
|
|
7648
|
-
contents = {};
|
|
7733
|
+
contents = map({});
|
|
7649
7734
|
data = parsedOutput.body;
|
|
7650
|
-
if (data.Message
|
|
7735
|
+
if (data.Message != null) {
|
|
7651
7736
|
contents.Message = __expectString(data.Message);
|
|
7652
7737
|
}
|
|
7653
7738
|
exception = new IncompatibleSchemaException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7657,9 +7742,9 @@ var deserializeAws_restJson1IncompatibleSchemaExceptionResponse = function (pars
|
|
|
7657
7742
|
var deserializeAws_restJson1IndexedAttributeMissingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7658
7743
|
var contents, data, exception;
|
|
7659
7744
|
return __generator(this, function (_a) {
|
|
7660
|
-
contents = {};
|
|
7745
|
+
contents = map({});
|
|
7661
7746
|
data = parsedOutput.body;
|
|
7662
|
-
if (data.Message
|
|
7747
|
+
if (data.Message != null) {
|
|
7663
7748
|
contents.Message = __expectString(data.Message);
|
|
7664
7749
|
}
|
|
7665
7750
|
exception = new IndexedAttributeMissingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7669,9 +7754,9 @@ var deserializeAws_restJson1IndexedAttributeMissingExceptionResponse = function
|
|
|
7669
7754
|
var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7670
7755
|
var contents, data, exception;
|
|
7671
7756
|
return __generator(this, function (_a) {
|
|
7672
|
-
contents = {};
|
|
7757
|
+
contents = map({});
|
|
7673
7758
|
data = parsedOutput.body;
|
|
7674
|
-
if (data.Message
|
|
7759
|
+
if (data.Message != null) {
|
|
7675
7760
|
contents.Message = __expectString(data.Message);
|
|
7676
7761
|
}
|
|
7677
7762
|
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7681,9 +7766,9 @@ var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedO
|
|
|
7681
7766
|
var deserializeAws_restJson1InvalidArnExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7682
7767
|
var contents, data, exception;
|
|
7683
7768
|
return __generator(this, function (_a) {
|
|
7684
|
-
contents = {};
|
|
7769
|
+
contents = map({});
|
|
7685
7770
|
data = parsedOutput.body;
|
|
7686
|
-
if (data.Message
|
|
7771
|
+
if (data.Message != null) {
|
|
7687
7772
|
contents.Message = __expectString(data.Message);
|
|
7688
7773
|
}
|
|
7689
7774
|
exception = new InvalidArnException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7693,9 +7778,9 @@ var deserializeAws_restJson1InvalidArnExceptionResponse = function (parsedOutput
|
|
|
7693
7778
|
var deserializeAws_restJson1InvalidAttachmentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7694
7779
|
var contents, data, exception;
|
|
7695
7780
|
return __generator(this, function (_a) {
|
|
7696
|
-
contents = {};
|
|
7781
|
+
contents = map({});
|
|
7697
7782
|
data = parsedOutput.body;
|
|
7698
|
-
if (data.Message
|
|
7783
|
+
if (data.Message != null) {
|
|
7699
7784
|
contents.Message = __expectString(data.Message);
|
|
7700
7785
|
}
|
|
7701
7786
|
exception = new InvalidAttachmentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7705,9 +7790,9 @@ var deserializeAws_restJson1InvalidAttachmentExceptionResponse = function (parse
|
|
|
7705
7790
|
var deserializeAws_restJson1InvalidFacetUpdateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7706
7791
|
var contents, data, exception;
|
|
7707
7792
|
return __generator(this, function (_a) {
|
|
7708
|
-
contents = {};
|
|
7793
|
+
contents = map({});
|
|
7709
7794
|
data = parsedOutput.body;
|
|
7710
|
-
if (data.Message
|
|
7795
|
+
if (data.Message != null) {
|
|
7711
7796
|
contents.Message = __expectString(data.Message);
|
|
7712
7797
|
}
|
|
7713
7798
|
exception = new InvalidFacetUpdateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7717,9 +7802,9 @@ var deserializeAws_restJson1InvalidFacetUpdateExceptionResponse = function (pars
|
|
|
7717
7802
|
var deserializeAws_restJson1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7718
7803
|
var contents, data, exception;
|
|
7719
7804
|
return __generator(this, function (_a) {
|
|
7720
|
-
contents = {};
|
|
7805
|
+
contents = map({});
|
|
7721
7806
|
data = parsedOutput.body;
|
|
7722
|
-
if (data.Message
|
|
7807
|
+
if (data.Message != null) {
|
|
7723
7808
|
contents.Message = __expectString(data.Message);
|
|
7724
7809
|
}
|
|
7725
7810
|
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7729,9 +7814,9 @@ var deserializeAws_restJson1InvalidNextTokenExceptionResponse = function (parsed
|
|
|
7729
7814
|
var deserializeAws_restJson1InvalidRuleExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7730
7815
|
var contents, data, exception;
|
|
7731
7816
|
return __generator(this, function (_a) {
|
|
7732
|
-
contents = {};
|
|
7817
|
+
contents = map({});
|
|
7733
7818
|
data = parsedOutput.body;
|
|
7734
|
-
if (data.Message
|
|
7819
|
+
if (data.Message != null) {
|
|
7735
7820
|
contents.Message = __expectString(data.Message);
|
|
7736
7821
|
}
|
|
7737
7822
|
exception = new InvalidRuleException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7741,9 +7826,9 @@ var deserializeAws_restJson1InvalidRuleExceptionResponse = function (parsedOutpu
|
|
|
7741
7826
|
var deserializeAws_restJson1InvalidSchemaDocExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7742
7827
|
var contents, data, exception;
|
|
7743
7828
|
return __generator(this, function (_a) {
|
|
7744
|
-
contents = {};
|
|
7829
|
+
contents = map({});
|
|
7745
7830
|
data = parsedOutput.body;
|
|
7746
|
-
if (data.Message
|
|
7831
|
+
if (data.Message != null) {
|
|
7747
7832
|
contents.Message = __expectString(data.Message);
|
|
7748
7833
|
}
|
|
7749
7834
|
exception = new InvalidSchemaDocException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7753,9 +7838,9 @@ var deserializeAws_restJson1InvalidSchemaDocExceptionResponse = function (parsed
|
|
|
7753
7838
|
var deserializeAws_restJson1InvalidTaggingRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7754
7839
|
var contents, data, exception;
|
|
7755
7840
|
return __generator(this, function (_a) {
|
|
7756
|
-
contents = {};
|
|
7841
|
+
contents = map({});
|
|
7757
7842
|
data = parsedOutput.body;
|
|
7758
|
-
if (data.Message
|
|
7843
|
+
if (data.Message != null) {
|
|
7759
7844
|
contents.Message = __expectString(data.Message);
|
|
7760
7845
|
}
|
|
7761
7846
|
exception = new InvalidTaggingRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7765,9 +7850,9 @@ var deserializeAws_restJson1InvalidTaggingRequestExceptionResponse = function (p
|
|
|
7765
7850
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7766
7851
|
var contents, data, exception;
|
|
7767
7852
|
return __generator(this, function (_a) {
|
|
7768
|
-
contents = {};
|
|
7853
|
+
contents = map({});
|
|
7769
7854
|
data = parsedOutput.body;
|
|
7770
|
-
if (data.Message
|
|
7855
|
+
if (data.Message != null) {
|
|
7771
7856
|
contents.Message = __expectString(data.Message);
|
|
7772
7857
|
}
|
|
7773
7858
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7777,9 +7862,9 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
7777
7862
|
var deserializeAws_restJson1LinkNameAlreadyInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7778
7863
|
var contents, data, exception;
|
|
7779
7864
|
return __generator(this, function (_a) {
|
|
7780
|
-
contents = {};
|
|
7865
|
+
contents = map({});
|
|
7781
7866
|
data = parsedOutput.body;
|
|
7782
|
-
if (data.Message
|
|
7867
|
+
if (data.Message != null) {
|
|
7783
7868
|
contents.Message = __expectString(data.Message);
|
|
7784
7869
|
}
|
|
7785
7870
|
exception = new LinkNameAlreadyInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7789,9 +7874,9 @@ var deserializeAws_restJson1LinkNameAlreadyInUseExceptionResponse = function (pa
|
|
|
7789
7874
|
var deserializeAws_restJson1NotIndexExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7790
7875
|
var contents, data, exception;
|
|
7791
7876
|
return __generator(this, function (_a) {
|
|
7792
|
-
contents = {};
|
|
7877
|
+
contents = map({});
|
|
7793
7878
|
data = parsedOutput.body;
|
|
7794
|
-
if (data.Message
|
|
7879
|
+
if (data.Message != null) {
|
|
7795
7880
|
contents.Message = __expectString(data.Message);
|
|
7796
7881
|
}
|
|
7797
7882
|
exception = new NotIndexException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7801,9 +7886,9 @@ var deserializeAws_restJson1NotIndexExceptionResponse = function (parsedOutput,
|
|
|
7801
7886
|
var deserializeAws_restJson1NotNodeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7802
7887
|
var contents, data, exception;
|
|
7803
7888
|
return __generator(this, function (_a) {
|
|
7804
|
-
contents = {};
|
|
7889
|
+
contents = map({});
|
|
7805
7890
|
data = parsedOutput.body;
|
|
7806
|
-
if (data.Message
|
|
7891
|
+
if (data.Message != null) {
|
|
7807
7892
|
contents.Message = __expectString(data.Message);
|
|
7808
7893
|
}
|
|
7809
7894
|
exception = new NotNodeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7813,9 +7898,9 @@ var deserializeAws_restJson1NotNodeExceptionResponse = function (parsedOutput, c
|
|
|
7813
7898
|
var deserializeAws_restJson1NotPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7814
7899
|
var contents, data, exception;
|
|
7815
7900
|
return __generator(this, function (_a) {
|
|
7816
|
-
contents = {};
|
|
7901
|
+
contents = map({});
|
|
7817
7902
|
data = parsedOutput.body;
|
|
7818
|
-
if (data.Message
|
|
7903
|
+
if (data.Message != null) {
|
|
7819
7904
|
contents.Message = __expectString(data.Message);
|
|
7820
7905
|
}
|
|
7821
7906
|
exception = new NotPolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7825,9 +7910,9 @@ var deserializeAws_restJson1NotPolicyExceptionResponse = function (parsedOutput,
|
|
|
7825
7910
|
var deserializeAws_restJson1ObjectAlreadyDetachedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7826
7911
|
var contents, data, exception;
|
|
7827
7912
|
return __generator(this, function (_a) {
|
|
7828
|
-
contents = {};
|
|
7913
|
+
contents = map({});
|
|
7829
7914
|
data = parsedOutput.body;
|
|
7830
|
-
if (data.Message
|
|
7915
|
+
if (data.Message != null) {
|
|
7831
7916
|
contents.Message = __expectString(data.Message);
|
|
7832
7917
|
}
|
|
7833
7918
|
exception = new ObjectAlreadyDetachedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7837,9 +7922,9 @@ var deserializeAws_restJson1ObjectAlreadyDetachedExceptionResponse = function (p
|
|
|
7837
7922
|
var deserializeAws_restJson1ObjectNotDetachedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7838
7923
|
var contents, data, exception;
|
|
7839
7924
|
return __generator(this, function (_a) {
|
|
7840
|
-
contents = {};
|
|
7925
|
+
contents = map({});
|
|
7841
7926
|
data = parsedOutput.body;
|
|
7842
|
-
if (data.Message
|
|
7927
|
+
if (data.Message != null) {
|
|
7843
7928
|
contents.Message = __expectString(data.Message);
|
|
7844
7929
|
}
|
|
7845
7930
|
exception = new ObjectNotDetachedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7849,9 +7934,9 @@ var deserializeAws_restJson1ObjectNotDetachedExceptionResponse = function (parse
|
|
|
7849
7934
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7850
7935
|
var contents, data, exception;
|
|
7851
7936
|
return __generator(this, function (_a) {
|
|
7852
|
-
contents = {};
|
|
7937
|
+
contents = map({});
|
|
7853
7938
|
data = parsedOutput.body;
|
|
7854
|
-
if (data.Message
|
|
7939
|
+
if (data.Message != null) {
|
|
7855
7940
|
contents.Message = __expectString(data.Message);
|
|
7856
7941
|
}
|
|
7857
7942
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7861,9 +7946,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
7861
7946
|
var deserializeAws_restJson1RetryableConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7862
7947
|
var contents, data, exception;
|
|
7863
7948
|
return __generator(this, function (_a) {
|
|
7864
|
-
contents = {};
|
|
7949
|
+
contents = map({});
|
|
7865
7950
|
data = parsedOutput.body;
|
|
7866
|
-
if (data.Message
|
|
7951
|
+
if (data.Message != null) {
|
|
7867
7952
|
contents.Message = __expectString(data.Message);
|
|
7868
7953
|
}
|
|
7869
7954
|
exception = new RetryableConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7873,9 +7958,9 @@ var deserializeAws_restJson1RetryableConflictExceptionResponse = function (parse
|
|
|
7873
7958
|
var deserializeAws_restJson1SchemaAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7874
7959
|
var contents, data, exception;
|
|
7875
7960
|
return __generator(this, function (_a) {
|
|
7876
|
-
contents = {};
|
|
7961
|
+
contents = map({});
|
|
7877
7962
|
data = parsedOutput.body;
|
|
7878
|
-
if (data.Message
|
|
7963
|
+
if (data.Message != null) {
|
|
7879
7964
|
contents.Message = __expectString(data.Message);
|
|
7880
7965
|
}
|
|
7881
7966
|
exception = new SchemaAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7885,9 +7970,9 @@ var deserializeAws_restJson1SchemaAlreadyExistsExceptionResponse = function (par
|
|
|
7885
7970
|
var deserializeAws_restJson1SchemaAlreadyPublishedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7886
7971
|
var contents, data, exception;
|
|
7887
7972
|
return __generator(this, function (_a) {
|
|
7888
|
-
contents = {};
|
|
7973
|
+
contents = map({});
|
|
7889
7974
|
data = parsedOutput.body;
|
|
7890
|
-
if (data.Message
|
|
7975
|
+
if (data.Message != null) {
|
|
7891
7976
|
contents.Message = __expectString(data.Message);
|
|
7892
7977
|
}
|
|
7893
7978
|
exception = new SchemaAlreadyPublishedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7897,9 +7982,9 @@ var deserializeAws_restJson1SchemaAlreadyPublishedExceptionResponse = function (
|
|
|
7897
7982
|
var deserializeAws_restJson1StillContainsLinksExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7898
7983
|
var contents, data, exception;
|
|
7899
7984
|
return __generator(this, function (_a) {
|
|
7900
|
-
contents = {};
|
|
7985
|
+
contents = map({});
|
|
7901
7986
|
data = parsedOutput.body;
|
|
7902
|
-
if (data.Message
|
|
7987
|
+
if (data.Message != null) {
|
|
7903
7988
|
contents.Message = __expectString(data.Message);
|
|
7904
7989
|
}
|
|
7905
7990
|
exception = new StillContainsLinksException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7909,9 +7994,9 @@ var deserializeAws_restJson1StillContainsLinksExceptionResponse = function (pars
|
|
|
7909
7994
|
var deserializeAws_restJson1UnsupportedIndexTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7910
7995
|
var contents, data, exception;
|
|
7911
7996
|
return __generator(this, function (_a) {
|
|
7912
|
-
contents = {};
|
|
7997
|
+
contents = map({});
|
|
7913
7998
|
data = parsedOutput.body;
|
|
7914
|
-
if (data.Message
|
|
7999
|
+
if (data.Message != null) {
|
|
7915
8000
|
contents.Message = __expectString(data.Message);
|
|
7916
8001
|
}
|
|
7917
8002
|
exception = new UnsupportedIndexTypeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7921,9 +8006,9 @@ var deserializeAws_restJson1UnsupportedIndexTypeExceptionResponse = function (pa
|
|
|
7921
8006
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7922
8007
|
var contents, data, exception;
|
|
7923
8008
|
return __generator(this, function (_a) {
|
|
7924
|
-
contents = {};
|
|
8009
|
+
contents = map({});
|
|
7925
8010
|
data = parsedOutput.body;
|
|
7926
|
-
if (data.Message
|
|
8011
|
+
if (data.Message != null) {
|
|
7927
8012
|
contents.Message = __expectString(data.Message);
|
|
7928
8013
|
}
|
|
7929
8014
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -7940,9 +8025,6 @@ var serializeAws_restJson1AttributeKeyAndValueList = function (input, context) {
|
|
|
7940
8025
|
return input
|
|
7941
8026
|
.filter(function (e) { return e != null; })
|
|
7942
8027
|
.map(function (entry) {
|
|
7943
|
-
if (entry === null) {
|
|
7944
|
-
return null;
|
|
7945
|
-
}
|
|
7946
8028
|
return serializeAws_restJson1AttributeKeyAndValue(entry, context);
|
|
7947
8029
|
});
|
|
7948
8030
|
};
|
|
@@ -7950,9 +8032,6 @@ var serializeAws_restJson1AttributeKeyList = function (input, context) {
|
|
|
7950
8032
|
return input
|
|
7951
8033
|
.filter(function (e) { return e != null; })
|
|
7952
8034
|
.map(function (entry) {
|
|
7953
|
-
if (entry === null) {
|
|
7954
|
-
return null;
|
|
7955
|
-
}
|
|
7956
8035
|
return serializeAws_restJson1AttributeKey(entry, context);
|
|
7957
8036
|
});
|
|
7958
8037
|
};
|
|
@@ -7963,9 +8042,6 @@ var serializeAws_restJson1AttributeNameAndValueList = function (input, context)
|
|
|
7963
8042
|
return input
|
|
7964
8043
|
.filter(function (e) { return e != null; })
|
|
7965
8044
|
.map(function (entry) {
|
|
7966
|
-
if (entry === null) {
|
|
7967
|
-
return null;
|
|
7968
|
-
}
|
|
7969
8045
|
return serializeAws_restJson1AttributeNameAndValue(entry, context);
|
|
7970
8046
|
});
|
|
7971
8047
|
};
|
|
@@ -7973,9 +8049,6 @@ var serializeAws_restJson1AttributeNameList = function (input, context) {
|
|
|
7973
8049
|
return input
|
|
7974
8050
|
.filter(function (e) { return e != null; })
|
|
7975
8051
|
.map(function (entry) {
|
|
7976
|
-
if (entry === null) {
|
|
7977
|
-
return null;
|
|
7978
|
-
}
|
|
7979
8052
|
return entry;
|
|
7980
8053
|
});
|
|
7981
8054
|
};
|
|
@@ -8180,9 +8253,6 @@ var serializeAws_restJson1BatchReadOperationList = function (input, context) {
|
|
|
8180
8253
|
return input
|
|
8181
8254
|
.filter(function (e) { return e != null; })
|
|
8182
8255
|
.map(function (entry) {
|
|
8183
|
-
if (entry === null) {
|
|
8184
|
-
return null;
|
|
8185
|
-
}
|
|
8186
8256
|
return serializeAws_restJson1BatchReadOperation(entry, context);
|
|
8187
8257
|
});
|
|
8188
8258
|
};
|
|
@@ -8242,9 +8312,6 @@ var serializeAws_restJson1BatchWriteOperationList = function (input, context) {
|
|
|
8242
8312
|
return input
|
|
8243
8313
|
.filter(function (e) { return e != null; })
|
|
8244
8314
|
.map(function (entry) {
|
|
8245
|
-
if (entry === null) {
|
|
8246
|
-
return null;
|
|
8247
|
-
}
|
|
8248
8315
|
return serializeAws_restJson1BatchWriteOperation(entry, context);
|
|
8249
8316
|
});
|
|
8250
8317
|
};
|
|
@@ -8264,9 +8331,6 @@ var serializeAws_restJson1FacetAttributeList = function (input, context) {
|
|
|
8264
8331
|
return input
|
|
8265
8332
|
.filter(function (e) { return e != null; })
|
|
8266
8333
|
.map(function (entry) {
|
|
8267
|
-
if (entry === null) {
|
|
8268
|
-
return null;
|
|
8269
|
-
}
|
|
8270
8334
|
return serializeAws_restJson1FacetAttribute(entry, context);
|
|
8271
8335
|
});
|
|
8272
8336
|
};
|
|
@@ -8280,9 +8344,6 @@ var serializeAws_restJson1FacetAttributeUpdateList = function (input, context) {
|
|
|
8280
8344
|
return input
|
|
8281
8345
|
.filter(function (e) { return e != null; })
|
|
8282
8346
|
.map(function (entry) {
|
|
8283
|
-
if (entry === null) {
|
|
8284
|
-
return null;
|
|
8285
|
-
}
|
|
8286
8347
|
return serializeAws_restJson1FacetAttributeUpdate(entry, context);
|
|
8287
8348
|
});
|
|
8288
8349
|
};
|
|
@@ -8302,9 +8363,6 @@ var serializeAws_restJson1LinkAttributeUpdateList = function (input, context) {
|
|
|
8302
8363
|
return input
|
|
8303
8364
|
.filter(function (e) { return e != null; })
|
|
8304
8365
|
.map(function (entry) {
|
|
8305
|
-
if (entry === null) {
|
|
8306
|
-
return null;
|
|
8307
|
-
}
|
|
8308
8366
|
return serializeAws_restJson1LinkAttributeUpdate(entry, context);
|
|
8309
8367
|
});
|
|
8310
8368
|
};
|
|
@@ -8322,9 +8380,6 @@ var serializeAws_restJson1ObjectAttributeRangeList = function (input, context) {
|
|
|
8322
8380
|
return input
|
|
8323
8381
|
.filter(function (e) { return e != null; })
|
|
8324
8382
|
.map(function (entry) {
|
|
8325
|
-
if (entry === null) {
|
|
8326
|
-
return null;
|
|
8327
|
-
}
|
|
8328
8383
|
return serializeAws_restJson1ObjectAttributeRange(entry, context);
|
|
8329
8384
|
});
|
|
8330
8385
|
};
|
|
@@ -8339,9 +8394,6 @@ var serializeAws_restJson1ObjectAttributeUpdateList = function (input, context)
|
|
|
8339
8394
|
return input
|
|
8340
8395
|
.filter(function (e) { return e != null; })
|
|
8341
8396
|
.map(function (entry) {
|
|
8342
|
-
if (entry === null) {
|
|
8343
|
-
return null;
|
|
8344
|
-
}
|
|
8345
8397
|
return serializeAws_restJson1ObjectAttributeUpdate(entry, context);
|
|
8346
8398
|
});
|
|
8347
8399
|
};
|
|
@@ -8378,9 +8430,6 @@ var serializeAws_restJson1SchemaFacetList = function (input, context) {
|
|
|
8378
8430
|
return input
|
|
8379
8431
|
.filter(function (e) { return e != null; })
|
|
8380
8432
|
.map(function (entry) {
|
|
8381
|
-
if (entry === null) {
|
|
8382
|
-
return null;
|
|
8383
|
-
}
|
|
8384
8433
|
return serializeAws_restJson1SchemaFacet(entry, context);
|
|
8385
8434
|
});
|
|
8386
8435
|
};
|
|
@@ -8391,9 +8440,6 @@ var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
|
8391
8440
|
return input
|
|
8392
8441
|
.filter(function (e) { return e != null; })
|
|
8393
8442
|
.map(function (entry) {
|
|
8394
|
-
if (entry === null) {
|
|
8395
|
-
return null;
|
|
8396
|
-
}
|
|
8397
8443
|
return entry;
|
|
8398
8444
|
});
|
|
8399
8445
|
};
|
|
@@ -8401,9 +8447,6 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
8401
8447
|
return input
|
|
8402
8448
|
.filter(function (e) { return e != null; })
|
|
8403
8449
|
.map(function (entry) {
|
|
8404
|
-
if (entry === null) {
|
|
8405
|
-
return null;
|
|
8406
|
-
}
|
|
8407
8450
|
return serializeAws_restJson1Tag(entry, context);
|
|
8408
8451
|
});
|
|
8409
8452
|
};
|
|
@@ -8431,9 +8474,6 @@ var serializeAws_restJson1TypedLinkAttributeDefinitionList = function (input, co
|
|
|
8431
8474
|
return input
|
|
8432
8475
|
.filter(function (e) { return e != null; })
|
|
8433
8476
|
.map(function (entry) {
|
|
8434
|
-
if (entry === null) {
|
|
8435
|
-
return null;
|
|
8436
|
-
}
|
|
8437
8477
|
return serializeAws_restJson1TypedLinkAttributeDefinition(entry, context);
|
|
8438
8478
|
});
|
|
8439
8479
|
};
|
|
@@ -8444,9 +8484,6 @@ var serializeAws_restJson1TypedLinkAttributeRangeList = function (input, context
|
|
|
8444
8484
|
return input
|
|
8445
8485
|
.filter(function (e) { return e != null; })
|
|
8446
8486
|
.map(function (entry) {
|
|
8447
|
-
if (entry === null) {
|
|
8448
|
-
return null;
|
|
8449
|
-
}
|
|
8450
8487
|
return serializeAws_restJson1TypedLinkAttributeRange(entry, context);
|
|
8451
8488
|
});
|
|
8452
8489
|
};
|
|
@@ -8466,9 +8503,6 @@ var serializeAws_restJson1TypedLinkFacetAttributeUpdateList = function (input, c
|
|
|
8466
8503
|
return input
|
|
8467
8504
|
.filter(function (e) { return e != null; })
|
|
8468
8505
|
.map(function (entry) {
|
|
8469
|
-
if (entry === null) {
|
|
8470
|
-
return null;
|
|
8471
|
-
}
|
|
8472
8506
|
return serializeAws_restJson1TypedLinkFacetAttributeUpdate(entry, context);
|
|
8473
8507
|
});
|
|
8474
8508
|
};
|
|
@@ -9120,7 +9154,7 @@ var deserializeAws_restJson1TagList = function (output, context) {
|
|
|
9120
9154
|
return retVal;
|
|
9121
9155
|
};
|
|
9122
9156
|
var deserializeAws_restJson1TypedAttributeValue = function (output, context) {
|
|
9123
|
-
if (output.BinaryValue
|
|
9157
|
+
if (output.BinaryValue != null) {
|
|
9124
9158
|
return {
|
|
9125
9159
|
BinaryValue: context.base64Decoder(output.BinaryValue),
|
|
9126
9160
|
};
|
|
@@ -9128,7 +9162,7 @@ var deserializeAws_restJson1TypedAttributeValue = function (output, context) {
|
|
|
9128
9162
|
if (__expectBoolean(output.BooleanValue) !== undefined) {
|
|
9129
9163
|
return { BooleanValue: __expectBoolean(output.BooleanValue) };
|
|
9130
9164
|
}
|
|
9131
|
-
if (output.DatetimeValue
|
|
9165
|
+
if (output.DatetimeValue != null) {
|
|
9132
9166
|
return {
|
|
9133
9167
|
DatetimeValue: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DatetimeValue))),
|
|
9134
9168
|
};
|