@aws-sdk/client-clouddirectory 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +726 -857
- package/dist-es/protocols/Aws_restJson1.js +606 -737
- package/package.json +26 -26
|
@@ -13,14 +13,11 @@ export var serializeAws_restJson1AddFacetToObjectCommand = function (input, cont
|
|
|
13
13
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
15
|
"/amazonclouddirectory/2017-01-11/object/facets";
|
|
16
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ObjectAttributeList
|
|
17
|
-
input.ObjectAttributeList !== null && {
|
|
16
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ObjectAttributeList != null && {
|
|
18
17
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
19
|
-
})), (input.ObjectReference
|
|
20
|
-
input.ObjectReference !== null && {
|
|
18
|
+
})), (input.ObjectReference != null && {
|
|
21
19
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
22
|
-
})), (input.SchemaFacet
|
|
23
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) })));
|
|
20
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) })));
|
|
24
21
|
return [2, new __HttpRequest({
|
|
25
22
|
protocol: protocol,
|
|
26
23
|
hostname: hostname,
|
|
@@ -43,8 +40,7 @@ export var serializeAws_restJson1ApplySchemaCommand = function (input, context)
|
|
|
43
40
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
44
41
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
45
42
|
"/amazonclouddirectory/2017-01-11/schema/apply";
|
|
46
|
-
body = JSON.stringify(__assign({}, (input.PublishedSchemaArn
|
|
47
|
-
input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
43
|
+
body = JSON.stringify(__assign({}, (input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
48
44
|
return [2, new __HttpRequest({
|
|
49
45
|
protocol: protocol,
|
|
50
46
|
hostname: hostname,
|
|
@@ -67,11 +63,9 @@ export var serializeAws_restJson1AttachObjectCommand = function (input, context)
|
|
|
67
63
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
68
64
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
69
65
|
"/amazonclouddirectory/2017-01-11/object/attach";
|
|
70
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.ChildReference
|
|
71
|
-
input.ChildReference !== null && {
|
|
66
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ChildReference != null && {
|
|
72
67
|
ChildReference: serializeAws_restJson1ObjectReference(input.ChildReference, context),
|
|
73
|
-
})), (input.LinkName
|
|
74
|
-
input.ParentReference !== null && {
|
|
68
|
+
})), (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
75
69
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
76
70
|
})));
|
|
77
71
|
return [2, new __HttpRequest({
|
|
@@ -96,11 +90,9 @@ export var serializeAws_restJson1AttachPolicyCommand = function (input, context)
|
|
|
96
90
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
97
91
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
98
92
|
"/amazonclouddirectory/2017-01-11/policy/attach";
|
|
99
|
-
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference
|
|
100
|
-
input.ObjectReference !== null && {
|
|
93
|
+
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference != null && {
|
|
101
94
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
102
|
-
})), (input.PolicyReference
|
|
103
|
-
input.PolicyReference !== null && {
|
|
95
|
+
})), (input.PolicyReference != null && {
|
|
104
96
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
105
97
|
})));
|
|
106
98
|
return [2, new __HttpRequest({
|
|
@@ -125,11 +117,9 @@ export var serializeAws_restJson1AttachToIndexCommand = function (input, context
|
|
|
125
117
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
126
118
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
127
119
|
"/amazonclouddirectory/2017-01-11/index/attach";
|
|
128
|
-
body = JSON.stringify(__assign(__assign({}, (input.IndexReference
|
|
129
|
-
input.IndexReference !== null && {
|
|
120
|
+
body = JSON.stringify(__assign(__assign({}, (input.IndexReference != null && {
|
|
130
121
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
131
|
-
})), (input.TargetReference
|
|
132
|
-
input.TargetReference !== null && {
|
|
122
|
+
})), (input.TargetReference != null && {
|
|
133
123
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
134
124
|
})));
|
|
135
125
|
return [2, new __HttpRequest({
|
|
@@ -154,17 +144,13 @@ export var serializeAws_restJson1AttachTypedLinkCommand = function (input, conte
|
|
|
154
144
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
155
145
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
156
146
|
"/amazonclouddirectory/2017-01-11/typedlink/attach";
|
|
157
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes
|
|
158
|
-
input.Attributes !== null && {
|
|
147
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
159
148
|
Attributes: serializeAws_restJson1AttributeNameAndValueList(input.Attributes, context),
|
|
160
|
-
})), (input.SourceObjectReference
|
|
161
|
-
input.SourceObjectReference !== null && {
|
|
149
|
+
})), (input.SourceObjectReference != null && {
|
|
162
150
|
SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
|
|
163
|
-
})), (input.TargetObjectReference
|
|
164
|
-
input.TargetObjectReference !== null && {
|
|
151
|
+
})), (input.TargetObjectReference != null && {
|
|
165
152
|
TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
|
|
166
|
-
})), (input.TypedLinkFacet
|
|
167
|
-
input.TypedLinkFacet !== null && {
|
|
153
|
+
})), (input.TypedLinkFacet != null && {
|
|
168
154
|
TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
|
|
169
155
|
})));
|
|
170
156
|
return [2, new __HttpRequest({
|
|
@@ -189,8 +175,7 @@ export var serializeAws_restJson1BatchReadCommand = function (input, context) {
|
|
|
189
175
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
190
176
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
191
177
|
"/amazonclouddirectory/2017-01-11/batchread";
|
|
192
|
-
body = JSON.stringify(__assign({}, (input.Operations
|
|
193
|
-
input.Operations !== null && {
|
|
178
|
+
body = JSON.stringify(__assign({}, (input.Operations != null && {
|
|
194
179
|
Operations: serializeAws_restJson1BatchReadOperationList(input.Operations, context),
|
|
195
180
|
})));
|
|
196
181
|
return [2, new __HttpRequest({
|
|
@@ -215,8 +200,7 @@ export var serializeAws_restJson1BatchWriteCommand = function (input, context) {
|
|
|
215
200
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
216
201
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
217
202
|
"/amazonclouddirectory/2017-01-11/batchwrite";
|
|
218
|
-
body = JSON.stringify(__assign({}, (input.Operations
|
|
219
|
-
input.Operations !== null && {
|
|
203
|
+
body = JSON.stringify(__assign({}, (input.Operations != null && {
|
|
220
204
|
Operations: serializeAws_restJson1BatchWriteOperationList(input.Operations, context),
|
|
221
205
|
})));
|
|
222
206
|
return [2, new __HttpRequest({
|
|
@@ -241,7 +225,7 @@ export var serializeAws_restJson1CreateDirectoryCommand = function (input, conte
|
|
|
241
225
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
242
226
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
243
227
|
"/amazonclouddirectory/2017-01-11/directory/create";
|
|
244
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
228
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
245
229
|
return [2, new __HttpRequest({
|
|
246
230
|
protocol: protocol,
|
|
247
231
|
hostname: hostname,
|
|
@@ -264,8 +248,9 @@ export var serializeAws_restJson1CreateFacetCommand = function (input, context)
|
|
|
264
248
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
265
249
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
266
250
|
"/amazonclouddirectory/2017-01-11/facet/create";
|
|
267
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes
|
|
268
|
-
|
|
251
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
252
|
+
Attributes: serializeAws_restJson1FacetAttributeList(input.Attributes, context),
|
|
253
|
+
})), (input.FacetStyle != null && { FacetStyle: input.FacetStyle })), (input.Name != null && { Name: input.Name })), (input.ObjectType != null && { ObjectType: input.ObjectType })));
|
|
269
254
|
return [2, new __HttpRequest({
|
|
270
255
|
protocol: protocol,
|
|
271
256
|
hostname: hostname,
|
|
@@ -287,11 +272,9 @@ export var serializeAws_restJson1CreateIndexCommand = function (input, context)
|
|
|
287
272
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
288
273
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
289
274
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/index";
|
|
290
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IsUnique
|
|
291
|
-
input.OrderedIndexedAttributeList !== null && {
|
|
275
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IsUnique != null && { IsUnique: input.IsUnique })), (input.LinkName != null && { LinkName: input.LinkName })), (input.OrderedIndexedAttributeList != null && {
|
|
292
276
|
OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
|
|
293
|
-
})), (input.ParentReference
|
|
294
|
-
input.ParentReference !== null && {
|
|
277
|
+
})), (input.ParentReference != null && {
|
|
295
278
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
296
279
|
})));
|
|
297
280
|
return [2, new __HttpRequest({
|
|
@@ -315,14 +298,11 @@ export var serializeAws_restJson1CreateObjectCommand = function (input, context)
|
|
|
315
298
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
316
299
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
317
300
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/object";
|
|
318
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.LinkName
|
|
319
|
-
input.ObjectAttributeList !== null && {
|
|
301
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.LinkName != null && { LinkName: input.LinkName })), (input.ObjectAttributeList != null && {
|
|
320
302
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
321
|
-
})), (input.ParentReference
|
|
322
|
-
input.ParentReference !== null && {
|
|
303
|
+
})), (input.ParentReference != null && {
|
|
323
304
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
324
|
-
})), (input.SchemaFacets
|
|
325
|
-
input.SchemaFacets !== null && {
|
|
305
|
+
})), (input.SchemaFacets != null && {
|
|
326
306
|
SchemaFacets: serializeAws_restJson1SchemaFacetList(input.SchemaFacets, context),
|
|
327
307
|
})));
|
|
328
308
|
return [2, new __HttpRequest({
|
|
@@ -349,7 +329,7 @@ export var serializeAws_restJson1CreateSchemaCommand = function (input, context)
|
|
|
349
329
|
};
|
|
350
330
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
351
331
|
"/amazonclouddirectory/2017-01-11/schema/create";
|
|
352
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
332
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
353
333
|
return [2, new __HttpRequest({
|
|
354
334
|
protocol: protocol,
|
|
355
335
|
hostname: hostname,
|
|
@@ -372,8 +352,7 @@ export var serializeAws_restJson1CreateTypedLinkFacetCommand = function (input,
|
|
|
372
352
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
373
353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
374
354
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/create";
|
|
375
|
-
body = JSON.stringify(__assign({}, (input.Facet
|
|
376
|
-
input.Facet !== null && { Facet: serializeAws_restJson1TypedLinkFacet(input.Facet, context) })));
|
|
355
|
+
body = JSON.stringify(__assign({}, (input.Facet != null && { Facet: serializeAws_restJson1TypedLinkFacet(input.Facet, context) })));
|
|
377
356
|
return [2, new __HttpRequest({
|
|
378
357
|
protocol: protocol,
|
|
379
358
|
hostname: hostname,
|
|
@@ -418,7 +397,7 @@ export var serializeAws_restJson1DeleteFacetCommand = function (input, context)
|
|
|
418
397
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
419
398
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
420
399
|
"/amazonclouddirectory/2017-01-11/facet/delete";
|
|
421
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
400
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
422
401
|
return [2, new __HttpRequest({
|
|
423
402
|
protocol: protocol,
|
|
424
403
|
hostname: hostname,
|
|
@@ -441,8 +420,7 @@ export var serializeAws_restJson1DeleteObjectCommand = function (input, context)
|
|
|
441
420
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
442
421
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
443
422
|
"/amazonclouddirectory/2017-01-11/object/delete";
|
|
444
|
-
body = JSON.stringify(__assign({}, (input.ObjectReference
|
|
445
|
-
input.ObjectReference !== null && {
|
|
423
|
+
body = JSON.stringify(__assign({}, (input.ObjectReference != null && {
|
|
446
424
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
447
425
|
})));
|
|
448
426
|
return [2, new __HttpRequest({
|
|
@@ -488,7 +466,7 @@ export var serializeAws_restJson1DeleteTypedLinkFacetCommand = function (input,
|
|
|
488
466
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
489
467
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
490
468
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
|
|
491
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
469
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
492
470
|
return [2, new __HttpRequest({
|
|
493
471
|
protocol: protocol,
|
|
494
472
|
hostname: hostname,
|
|
@@ -511,11 +489,9 @@ export var serializeAws_restJson1DetachFromIndexCommand = function (input, conte
|
|
|
511
489
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
512
490
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
513
491
|
"/amazonclouddirectory/2017-01-11/index/detach";
|
|
514
|
-
body = JSON.stringify(__assign(__assign({}, (input.IndexReference
|
|
515
|
-
input.IndexReference !== null && {
|
|
492
|
+
body = JSON.stringify(__assign(__assign({}, (input.IndexReference != null && {
|
|
516
493
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
517
|
-
})), (input.TargetReference
|
|
518
|
-
input.TargetReference !== null && {
|
|
494
|
+
})), (input.TargetReference != null && {
|
|
519
495
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
520
496
|
})));
|
|
521
497
|
return [2, new __HttpRequest({
|
|
@@ -540,8 +516,7 @@ export var serializeAws_restJson1DetachObjectCommand = function (input, context)
|
|
|
540
516
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
541
517
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
542
518
|
"/amazonclouddirectory/2017-01-11/object/detach";
|
|
543
|
-
body = JSON.stringify(__assign(__assign({}, (input.LinkName
|
|
544
|
-
input.ParentReference !== null && {
|
|
519
|
+
body = JSON.stringify(__assign(__assign({}, (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
545
520
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
546
521
|
})));
|
|
547
522
|
return [2, new __HttpRequest({
|
|
@@ -566,11 +541,9 @@ export var serializeAws_restJson1DetachPolicyCommand = function (input, context)
|
|
|
566
541
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
567
542
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
568
543
|
"/amazonclouddirectory/2017-01-11/policy/detach";
|
|
569
|
-
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference
|
|
570
|
-
input.ObjectReference !== null && {
|
|
544
|
+
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference != null && {
|
|
571
545
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
572
|
-
})), (input.PolicyReference
|
|
573
|
-
input.PolicyReference !== null && {
|
|
546
|
+
})), (input.PolicyReference != null && {
|
|
574
547
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
575
548
|
})));
|
|
576
549
|
return [2, new __HttpRequest({
|
|
@@ -595,8 +568,7 @@ export var serializeAws_restJson1DetachTypedLinkCommand = function (input, conte
|
|
|
595
568
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
596
569
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
597
570
|
"/amazonclouddirectory/2017-01-11/typedlink/detach";
|
|
598
|
-
body = JSON.stringify(__assign({}, (input.TypedLinkSpecifier
|
|
599
|
-
input.TypedLinkSpecifier !== null && {
|
|
571
|
+
body = JSON.stringify(__assign({}, (input.TypedLinkSpecifier != null && {
|
|
600
572
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
601
573
|
})));
|
|
602
574
|
return [2, new __HttpRequest({
|
|
@@ -667,7 +639,7 @@ export var serializeAws_restJson1GetAppliedSchemaVersionCommand = function (inpu
|
|
|
667
639
|
};
|
|
668
640
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
669
641
|
"/amazonclouddirectory/2017-01-11/schema/getappliedschema";
|
|
670
|
-
body = JSON.stringify(__assign({}, (input.SchemaArn
|
|
642
|
+
body = JSON.stringify(__assign({}, (input.SchemaArn != null && { SchemaArn: input.SchemaArn })));
|
|
671
643
|
return [2, new __HttpRequest({
|
|
672
644
|
protocol: protocol,
|
|
673
645
|
hostname: hostname,
|
|
@@ -711,7 +683,7 @@ export var serializeAws_restJson1GetFacetCommand = function (input, context) { r
|
|
|
711
683
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
712
684
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
713
685
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
|
|
714
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
686
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
715
687
|
return [2, new __HttpRequest({
|
|
716
688
|
protocol: protocol,
|
|
717
689
|
hostname: hostname,
|
|
@@ -734,12 +706,9 @@ export var serializeAws_restJson1GetLinkAttributesCommand = function (input, con
|
|
|
734
706
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
735
707
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
736
708
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
|
|
737
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames
|
|
738
|
-
input.AttributeNames !== null && {
|
|
709
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames != null && {
|
|
739
710
|
AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
|
|
740
|
-
})), (input.ConsistencyLevel
|
|
741
|
-
input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel })), (input.TypedLinkSpecifier !== undefined &&
|
|
742
|
-
input.TypedLinkSpecifier !== null && {
|
|
711
|
+
})), (input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel })), (input.TypedLinkSpecifier != null && {
|
|
743
712
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
744
713
|
})));
|
|
745
714
|
return [2, new __HttpRequest({
|
|
@@ -764,14 +733,11 @@ export var serializeAws_restJson1GetObjectAttributesCommand = function (input, c
|
|
|
764
733
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
765
734
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
766
735
|
"/amazonclouddirectory/2017-01-11/object/attributes/get";
|
|
767
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames
|
|
768
|
-
input.AttributeNames !== null && {
|
|
736
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames != null && {
|
|
769
737
|
AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
|
|
770
|
-
})), (input.ObjectReference
|
|
771
|
-
input.ObjectReference !== null && {
|
|
738
|
+
})), (input.ObjectReference != null && {
|
|
772
739
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
773
|
-
})), (input.SchemaFacet
|
|
774
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) })));
|
|
740
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) })));
|
|
775
741
|
return [2, new __HttpRequest({
|
|
776
742
|
protocol: protocol,
|
|
777
743
|
hostname: hostname,
|
|
@@ -794,8 +760,7 @@ export var serializeAws_restJson1GetObjectInformationCommand = function (input,
|
|
|
794
760
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
795
761
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
796
762
|
"/amazonclouddirectory/2017-01-11/object/information";
|
|
797
|
-
body = JSON.stringify(__assign({}, (input.ObjectReference
|
|
798
|
-
input.ObjectReference !== null && {
|
|
763
|
+
body = JSON.stringify(__assign({}, (input.ObjectReference != null && {
|
|
799
764
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
800
765
|
})));
|
|
801
766
|
return [2, new __HttpRequest({
|
|
@@ -842,7 +807,7 @@ export var serializeAws_restJson1GetTypedLinkFacetInformationCommand = function
|
|
|
842
807
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
843
808
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
844
809
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/get";
|
|
845
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
810
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
846
811
|
return [2, new __HttpRequest({
|
|
847
812
|
protocol: protocol,
|
|
848
813
|
hostname: hostname,
|
|
@@ -867,7 +832,7 @@ export var serializeAws_restJson1ListAppliedSchemaArnsCommand = function (input,
|
|
|
867
832
|
};
|
|
868
833
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
869
834
|
"/amazonclouddirectory/2017-01-11/schema/applied";
|
|
870
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DirectoryArn
|
|
835
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DirectoryArn != null && { DirectoryArn: input.DirectoryArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaArn != null && { SchemaArn: input.SchemaArn })));
|
|
871
836
|
return [2, new __HttpRequest({
|
|
872
837
|
protocol: protocol,
|
|
873
838
|
hostname: hostname,
|
|
@@ -890,8 +855,7 @@ export var serializeAws_restJson1ListAttachedIndicesCommand = function (input, c
|
|
|
890
855
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
891
856
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
892
857
|
"/amazonclouddirectory/2017-01-11/object/indices";
|
|
893
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
894
|
-
input.TargetReference !== null && {
|
|
858
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TargetReference != null && {
|
|
895
859
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
896
860
|
})));
|
|
897
861
|
return [2, new __HttpRequest({
|
|
@@ -918,7 +882,7 @@ export var serializeAws_restJson1ListDevelopmentSchemaArnsCommand = function (in
|
|
|
918
882
|
};
|
|
919
883
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
920
884
|
"/amazonclouddirectory/2017-01-11/schema/development";
|
|
921
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
885
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
922
886
|
return [2, new __HttpRequest({
|
|
923
887
|
protocol: protocol,
|
|
924
888
|
hostname: hostname,
|
|
@@ -943,7 +907,7 @@ export var serializeAws_restJson1ListDirectoriesCommand = function (input, conte
|
|
|
943
907
|
};
|
|
944
908
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
945
909
|
"/amazonclouddirectory/2017-01-11/directory/list";
|
|
946
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
910
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.state != null && { state: input.state })));
|
|
947
911
|
return [2, new __HttpRequest({
|
|
948
912
|
protocol: protocol,
|
|
949
913
|
hostname: hostname,
|
|
@@ -966,7 +930,7 @@ export var serializeAws_restJson1ListFacetAttributesCommand = function (input, c
|
|
|
966
930
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
967
931
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
968
932
|
"/amazonclouddirectory/2017-01-11/facet/attributes";
|
|
969
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
933
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Name != null && { Name: input.Name })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
970
934
|
return [2, new __HttpRequest({
|
|
971
935
|
protocol: protocol,
|
|
972
936
|
hostname: hostname,
|
|
@@ -989,7 +953,7 @@ export var serializeAws_restJson1ListFacetNamesCommand = function (input, contex
|
|
|
989
953
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
990
954
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
991
955
|
"/amazonclouddirectory/2017-01-11/facet/list";
|
|
992
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
956
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
993
957
|
return [2, new __HttpRequest({
|
|
994
958
|
protocol: protocol,
|
|
995
959
|
hostname: hostname,
|
|
@@ -1012,15 +976,11 @@ export var serializeAws_restJson1ListIncomingTypedLinksCommand = function (input
|
|
|
1012
976
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1013
977
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1014
978
|
"/amazonclouddirectory/2017-01-11/typedlink/incoming";
|
|
1015
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel
|
|
1016
|
-
input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges !== undefined &&
|
|
1017
|
-
input.FilterAttributeRanges !== null && {
|
|
979
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges != null && {
|
|
1018
980
|
FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
|
|
1019
|
-
})), (input.FilterTypedLink
|
|
1020
|
-
input.FilterTypedLink !== null && {
|
|
981
|
+
})), (input.FilterTypedLink != null && {
|
|
1021
982
|
FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
|
|
1022
|
-
})), (input.MaxResults
|
|
1023
|
-
input.ObjectReference !== null && {
|
|
983
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1024
984
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1025
985
|
})));
|
|
1026
986
|
return [2, new __HttpRequest({
|
|
@@ -1045,11 +1005,9 @@ export var serializeAws_restJson1ListIndexCommand = function (input, context) {
|
|
|
1045
1005
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
1046
1006
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1047
1007
|
"/amazonclouddirectory/2017-01-11/index/targets";
|
|
1048
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IndexReference
|
|
1049
|
-
input.IndexReference !== null && {
|
|
1008
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IndexReference != null && {
|
|
1050
1009
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
1051
|
-
})), (input.MaxResults
|
|
1052
|
-
input.RangesOnIndexedValues !== null && {
|
|
1010
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.RangesOnIndexedValues != null && {
|
|
1053
1011
|
RangesOnIndexedValues: serializeAws_restJson1ObjectAttributeRangeList(input.RangesOnIndexedValues, context),
|
|
1054
1012
|
})));
|
|
1055
1013
|
return [2, new __HttpRequest({
|
|
@@ -1076,7 +1034,7 @@ export var serializeAws_restJson1ListManagedSchemaArnsCommand = function (input,
|
|
|
1076
1034
|
};
|
|
1077
1035
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1078
1036
|
"/amazonclouddirectory/2017-01-11/schema/managed";
|
|
1079
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1037
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaArn != null && { SchemaArn: input.SchemaArn })));
|
|
1080
1038
|
return [2, new __HttpRequest({
|
|
1081
1039
|
protocol: protocol,
|
|
1082
1040
|
hostname: hostname,
|
|
@@ -1099,9 +1057,7 @@ export var serializeAws_restJson1ListObjectAttributesCommand = function (input,
|
|
|
1099
1057
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
1100
1058
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1101
1059
|
"/amazonclouddirectory/2017-01-11/object/attributes";
|
|
1102
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FacetFilter
|
|
1103
|
-
input.FacetFilter !== null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
|
|
1104
|
-
input.ObjectReference !== null && {
|
|
1060
|
+
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 && {
|
|
1105
1061
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1106
1062
|
})));
|
|
1107
1063
|
return [2, new __HttpRequest({
|
|
@@ -1126,8 +1082,7 @@ export var serializeAws_restJson1ListObjectChildrenCommand = function (input, co
|
|
|
1126
1082
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
1127
1083
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1128
1084
|
"/amazonclouddirectory/2017-01-11/object/children";
|
|
1129
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1130
|
-
input.ObjectReference !== null && {
|
|
1085
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1131
1086
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1132
1087
|
})));
|
|
1133
1088
|
return [2, new __HttpRequest({
|
|
@@ -1152,8 +1107,7 @@ export var serializeAws_restJson1ListObjectParentPathsCommand = function (input,
|
|
|
1152
1107
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1153
1108
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1154
1109
|
"/amazonclouddirectory/2017-01-11/object/parentpaths";
|
|
1155
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1156
|
-
input.ObjectReference !== null && {
|
|
1110
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1157
1111
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1158
1112
|
})));
|
|
1159
1113
|
return [2, new __HttpRequest({
|
|
@@ -1178,9 +1132,9 @@ export var serializeAws_restJson1ListObjectParentsCommand = function (input, con
|
|
|
1178
1132
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
1179
1133
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1180
1134
|
"/amazonclouddirectory/2017-01-11/object/parent";
|
|
1181
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IncludeAllLinksToEachParent
|
|
1182
|
-
|
|
1183
|
-
|
|
1135
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IncludeAllLinksToEachParent != null && {
|
|
1136
|
+
IncludeAllLinksToEachParent: input.IncludeAllLinksToEachParent,
|
|
1137
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1184
1138
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1185
1139
|
})));
|
|
1186
1140
|
return [2, new __HttpRequest({
|
|
@@ -1205,8 +1159,7 @@ export var serializeAws_restJson1ListObjectPoliciesCommand = function (input, co
|
|
|
1205
1159
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
1206
1160
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1207
1161
|
"/amazonclouddirectory/2017-01-11/object/policy";
|
|
1208
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1209
|
-
input.ObjectReference !== null && {
|
|
1162
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1210
1163
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1211
1164
|
})));
|
|
1212
1165
|
return [2, new __HttpRequest({
|
|
@@ -1231,15 +1184,11 @@ export var serializeAws_restJson1ListOutgoingTypedLinksCommand = function (input
|
|
|
1231
1184
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1232
1185
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1233
1186
|
"/amazonclouddirectory/2017-01-11/typedlink/outgoing";
|
|
1234
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel
|
|
1235
|
-
input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges !== undefined &&
|
|
1236
|
-
input.FilterAttributeRanges !== null && {
|
|
1187
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges != null && {
|
|
1237
1188
|
FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
|
|
1238
|
-
})), (input.FilterTypedLink
|
|
1239
|
-
input.FilterTypedLink !== null && {
|
|
1189
|
+
})), (input.FilterTypedLink != null && {
|
|
1240
1190
|
FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
|
|
1241
|
-
})), (input.MaxResults
|
|
1242
|
-
input.ObjectReference !== null && {
|
|
1191
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1243
1192
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1244
1193
|
})));
|
|
1245
1194
|
return [2, new __HttpRequest({
|
|
@@ -1264,8 +1213,7 @@ export var serializeAws_restJson1ListPolicyAttachmentsCommand = function (input,
|
|
|
1264
1213
|
headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
|
|
1265
1214
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1266
1215
|
"/amazonclouddirectory/2017-01-11/policy/attachment";
|
|
1267
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1268
|
-
input.PolicyReference !== null && {
|
|
1216
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyReference != null && {
|
|
1269
1217
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
1270
1218
|
})));
|
|
1271
1219
|
return [2, new __HttpRequest({
|
|
@@ -1292,7 +1240,7 @@ export var serializeAws_restJson1ListPublishedSchemaArnsCommand = function (inpu
|
|
|
1292
1240
|
};
|
|
1293
1241
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1294
1242
|
"/amazonclouddirectory/2017-01-11/schema/published";
|
|
1295
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1243
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SchemaArn != null && { SchemaArn: input.SchemaArn })));
|
|
1296
1244
|
return [2, new __HttpRequest({
|
|
1297
1245
|
protocol: protocol,
|
|
1298
1246
|
hostname: hostname,
|
|
@@ -1316,7 +1264,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1316
1264
|
"content-type": "application/json",
|
|
1317
1265
|
};
|
|
1318
1266
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/tags";
|
|
1319
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1267
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })));
|
|
1320
1268
|
return [2, new __HttpRequest({
|
|
1321
1269
|
protocol: protocol,
|
|
1322
1270
|
hostname: hostname,
|
|
@@ -1339,7 +1287,7 @@ export var serializeAws_restJson1ListTypedLinkFacetAttributesCommand = function
|
|
|
1339
1287
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
1340
1288
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1341
1289
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
|
|
1342
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1290
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Name != null && { Name: input.Name })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1343
1291
|
return [2, new __HttpRequest({
|
|
1344
1292
|
protocol: protocol,
|
|
1345
1293
|
hostname: hostname,
|
|
@@ -1362,7 +1310,7 @@ export var serializeAws_restJson1ListTypedLinkFacetNamesCommand = function (inpu
|
|
|
1362
1310
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
1363
1311
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1364
1312
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/list";
|
|
1365
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1313
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1366
1314
|
return [2, new __HttpRequest({
|
|
1367
1315
|
protocol: protocol,
|
|
1368
1316
|
hostname: hostname,
|
|
@@ -1385,8 +1333,7 @@ export var serializeAws_restJson1LookupPolicyCommand = function (input, context)
|
|
|
1385
1333
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1386
1334
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1387
1335
|
"/amazonclouddirectory/2017-01-11/policy/lookup";
|
|
1388
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults
|
|
1389
|
-
input.ObjectReference !== null && {
|
|
1336
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
1390
1337
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1391
1338
|
})));
|
|
1392
1339
|
return [2, new __HttpRequest({
|
|
@@ -1413,7 +1360,7 @@ export var serializeAws_restJson1PublishSchemaCommand = function (input, context
|
|
|
1413
1360
|
}));
|
|
1414
1361
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1415
1362
|
"/amazonclouddirectory/2017-01-11/schema/publish";
|
|
1416
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MinorVersion
|
|
1363
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.MinorVersion != null && { MinorVersion: input.MinorVersion })), (input.Name != null && { Name: input.Name })), (input.Version != null && { Version: input.Version })));
|
|
1417
1364
|
return [2, new __HttpRequest({
|
|
1418
1365
|
protocol: protocol,
|
|
1419
1366
|
hostname: hostname,
|
|
@@ -1436,7 +1383,7 @@ export var serializeAws_restJson1PutSchemaFromJsonCommand = function (input, con
|
|
|
1436
1383
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
1437
1384
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1438
1385
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
1439
|
-
body = JSON.stringify(__assign({}, (input.Document
|
|
1386
|
+
body = JSON.stringify(__assign({}, (input.Document != null && { Document: input.Document })));
|
|
1440
1387
|
return [2, new __HttpRequest({
|
|
1441
1388
|
protocol: protocol,
|
|
1442
1389
|
hostname: hostname,
|
|
@@ -1459,11 +1406,9 @@ export var serializeAws_restJson1RemoveFacetFromObjectCommand = function (input,
|
|
|
1459
1406
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1460
1407
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1461
1408
|
"/amazonclouddirectory/2017-01-11/object/facets/delete";
|
|
1462
|
-
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference
|
|
1463
|
-
input.ObjectReference !== null && {
|
|
1409
|
+
body = JSON.stringify(__assign(__assign({}, (input.ObjectReference != null && {
|
|
1464
1410
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1465
|
-
})), (input.SchemaFacet
|
|
1466
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) })));
|
|
1411
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) })));
|
|
1467
1412
|
return [2, new __HttpRequest({
|
|
1468
1413
|
protocol: protocol,
|
|
1469
1414
|
hostname: hostname,
|
|
@@ -1487,8 +1432,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1487
1432
|
"content-type": "application/json",
|
|
1488
1433
|
};
|
|
1489
1434
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/tags/add";
|
|
1490
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceArn
|
|
1491
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1435
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1492
1436
|
return [2, new __HttpRequest({
|
|
1493
1437
|
protocol: protocol,
|
|
1494
1438
|
hostname: hostname,
|
|
@@ -1513,8 +1457,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1513
1457
|
};
|
|
1514
1458
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1515
1459
|
"/amazonclouddirectory/2017-01-11/tags/remove";
|
|
1516
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceArn
|
|
1517
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
1460
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
1518
1461
|
return [2, new __HttpRequest({
|
|
1519
1462
|
protocol: protocol,
|
|
1520
1463
|
hostname: hostname,
|
|
@@ -1536,10 +1479,9 @@ export var serializeAws_restJson1UpdateFacetCommand = function (input, context)
|
|
|
1536
1479
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1537
1480
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
1538
1481
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
|
|
1539
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates
|
|
1540
|
-
input.AttributeUpdates !== null && {
|
|
1482
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
1541
1483
|
AttributeUpdates: serializeAws_restJson1FacetAttributeUpdateList(input.AttributeUpdates, context),
|
|
1542
|
-
})), (input.Name
|
|
1484
|
+
})), (input.Name != null && { Name: input.Name })), (input.ObjectType != null && { ObjectType: input.ObjectType })));
|
|
1543
1485
|
return [2, new __HttpRequest({
|
|
1544
1486
|
protocol: protocol,
|
|
1545
1487
|
hostname: hostname,
|
|
@@ -1562,11 +1504,9 @@ export var serializeAws_restJson1UpdateLinkAttributesCommand = function (input,
|
|
|
1562
1504
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1563
1505
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1564
1506
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
|
|
1565
|
-
body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates
|
|
1566
|
-
input.AttributeUpdates !== null && {
|
|
1507
|
+
body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
1567
1508
|
AttributeUpdates: serializeAws_restJson1LinkAttributeUpdateList(input.AttributeUpdates, context),
|
|
1568
|
-
})), (input.TypedLinkSpecifier
|
|
1569
|
-
input.TypedLinkSpecifier !== null && {
|
|
1509
|
+
})), (input.TypedLinkSpecifier != null && {
|
|
1570
1510
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
1571
1511
|
})));
|
|
1572
1512
|
return [2, new __HttpRequest({
|
|
@@ -1591,11 +1531,9 @@ export var serializeAws_restJson1UpdateObjectAttributesCommand = function (input
|
|
|
1591
1531
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
|
|
1592
1532
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1593
1533
|
"/amazonclouddirectory/2017-01-11/object/update";
|
|
1594
|
-
body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates
|
|
1595
|
-
input.AttributeUpdates !== null && {
|
|
1534
|
+
body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
1596
1535
|
AttributeUpdates: serializeAws_restJson1ObjectAttributeUpdateList(input.AttributeUpdates, context),
|
|
1597
|
-
})), (input.ObjectReference
|
|
1598
|
-
input.ObjectReference !== null && {
|
|
1536
|
+
})), (input.ObjectReference != null && {
|
|
1599
1537
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
1600
1538
|
})));
|
|
1601
1539
|
return [2, new __HttpRequest({
|
|
@@ -1620,7 +1558,7 @@ export var serializeAws_restJson1UpdateSchemaCommand = function (input, context)
|
|
|
1620
1558
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
1621
1559
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1622
1560
|
"/amazonclouddirectory/2017-01-11/schema/update";
|
|
1623
|
-
body = JSON.stringify(__assign({}, (input.Name
|
|
1561
|
+
body = JSON.stringify(__assign({}, (input.Name != null && { Name: input.Name })));
|
|
1624
1562
|
return [2, new __HttpRequest({
|
|
1625
1563
|
protocol: protocol,
|
|
1626
1564
|
hostname: hostname,
|
|
@@ -1643,13 +1581,11 @@ export var serializeAws_restJson1UpdateTypedLinkFacetCommand = function (input,
|
|
|
1643
1581
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
|
|
1644
1582
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1645
1583
|
"/amazonclouddirectory/2017-01-11/typedlink/facet";
|
|
1646
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates
|
|
1647
|
-
input.AttributeUpdates !== null && {
|
|
1584
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates != null && {
|
|
1648
1585
|
AttributeUpdates: serializeAws_restJson1TypedLinkFacetAttributeUpdateList(input.AttributeUpdates, context),
|
|
1649
|
-
})), (input.IdentityAttributeOrder
|
|
1650
|
-
input.IdentityAttributeOrder !== null && {
|
|
1586
|
+
})), (input.IdentityAttributeOrder != null && {
|
|
1651
1587
|
IdentityAttributeOrder: serializeAws_restJson1AttributeNameList(input.IdentityAttributeOrder, context),
|
|
1652
|
-
})), (input.Name
|
|
1588
|
+
})), (input.Name != null && { Name: input.Name })));
|
|
1653
1589
|
return [2, new __HttpRequest({
|
|
1654
1590
|
protocol: protocol,
|
|
1655
1591
|
hostname: hostname,
|
|
@@ -1674,8 +1610,7 @@ export var serializeAws_restJson1UpgradeAppliedSchemaCommand = function (input,
|
|
|
1674
1610
|
};
|
|
1675
1611
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1676
1612
|
"/amazonclouddirectory/2017-01-11/schema/upgradeapplied";
|
|
1677
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DirectoryArn
|
|
1678
|
-
input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
1613
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DirectoryArn != null && { DirectoryArn: input.DirectoryArn })), (input.DryRun != null && { DryRun: input.DryRun })), (input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
1679
1614
|
return [2, new __HttpRequest({
|
|
1680
1615
|
protocol: protocol,
|
|
1681
1616
|
hostname: hostname,
|
|
@@ -1700,9 +1635,7 @@ export var serializeAws_restJson1UpgradePublishedSchemaCommand = function (input
|
|
|
1700
1635
|
};
|
|
1701
1636
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1702
1637
|
"/amazonclouddirectory/2017-01-11/schema/upgradepublished";
|
|
1703
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DevelopmentSchemaArn
|
|
1704
|
-
input.DevelopmentSchemaArn !== null && { DevelopmentSchemaArn: input.DevelopmentSchemaArn })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.MinorVersion !== undefined && input.MinorVersion !== null && { MinorVersion: input.MinorVersion })), (input.PublishedSchemaArn !== undefined &&
|
|
1705
|
-
input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
1638
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DevelopmentSchemaArn != null && { DevelopmentSchemaArn: input.DevelopmentSchemaArn })), (input.DryRun != null && { DryRun: input.DryRun })), (input.MinorVersion != null && { MinorVersion: input.MinorVersion })), (input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn })));
|
|
1706
1639
|
return [2, new __HttpRequest({
|
|
1707
1640
|
protocol: protocol,
|
|
1708
1641
|
hostname: hostname,
|
|
@@ -1734,7 +1667,7 @@ export var deserializeAws_restJson1AddFacetToObjectCommand = function (output, c
|
|
|
1734
1667
|
});
|
|
1735
1668
|
}); };
|
|
1736
1669
|
var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1737
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1670
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1738
1671
|
var _c;
|
|
1739
1672
|
return __generator(this, function (_d) {
|
|
1740
1673
|
switch (_d.label) {
|
|
@@ -1744,7 +1677,6 @@ var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, con
|
|
|
1744
1677
|
return [4, parseBody(output.body, context)];
|
|
1745
1678
|
case 1:
|
|
1746
1679
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1747
|
-
errorCode = "UnknownError";
|
|
1748
1680
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
1681
|
_b = errorCode;
|
|
1750
1682
|
switch (_b) {
|
|
@@ -1788,10 +1720,12 @@ var deserializeAws_restJson1AddFacetToObjectCommandError = function (output, con
|
|
|
1788
1720
|
case 19: throw _d.sent();
|
|
1789
1721
|
case 20:
|
|
1790
1722
|
parsedBody = parsedOutput.body;
|
|
1723
|
+
$metadata = deserializeMetadata(output);
|
|
1724
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1791
1725
|
response = new __BaseException({
|
|
1792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1793
1727
|
$fault: "client",
|
|
1794
|
-
$metadata:
|
|
1728
|
+
$metadata: $metadata,
|
|
1795
1729
|
});
|
|
1796
1730
|
throw __decorateServiceException(response, parsedBody);
|
|
1797
1731
|
}
|
|
@@ -1826,7 +1760,7 @@ export var deserializeAws_restJson1ApplySchemaCommand = function (output, contex
|
|
|
1826
1760
|
});
|
|
1827
1761
|
}); };
|
|
1828
1762
|
var deserializeAws_restJson1ApplySchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1829
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1763
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1830
1764
|
var _c;
|
|
1831
1765
|
return __generator(this, function (_d) {
|
|
1832
1766
|
switch (_d.label) {
|
|
@@ -1836,7 +1770,6 @@ var deserializeAws_restJson1ApplySchemaCommandError = function (output, context)
|
|
|
1836
1770
|
return [4, parseBody(output.body, context)];
|
|
1837
1771
|
case 1:
|
|
1838
1772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1839
|
-
errorCode = "UnknownError";
|
|
1840
1773
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1774
|
_b = errorCode;
|
|
1842
1775
|
switch (_b) {
|
|
@@ -1880,10 +1813,12 @@ var deserializeAws_restJson1ApplySchemaCommandError = function (output, context)
|
|
|
1880
1813
|
case 19: throw _d.sent();
|
|
1881
1814
|
case 20:
|
|
1882
1815
|
parsedBody = parsedOutput.body;
|
|
1816
|
+
$metadata = deserializeMetadata(output);
|
|
1817
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1883
1818
|
response = new __BaseException({
|
|
1884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1885
1820
|
$fault: "client",
|
|
1886
|
-
$metadata:
|
|
1821
|
+
$metadata: $metadata,
|
|
1887
1822
|
});
|
|
1888
1823
|
throw __decorateServiceException(response, parsedBody);
|
|
1889
1824
|
}
|
|
@@ -1914,7 +1849,7 @@ export var deserializeAws_restJson1AttachObjectCommand = function (output, conte
|
|
|
1914
1849
|
});
|
|
1915
1850
|
}); };
|
|
1916
1851
|
var deserializeAws_restJson1AttachObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1917
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1852
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1918
1853
|
var _c;
|
|
1919
1854
|
return __generator(this, function (_d) {
|
|
1920
1855
|
switch (_d.label) {
|
|
@@ -1924,7 +1859,6 @@ var deserializeAws_restJson1AttachObjectCommandError = function (output, context
|
|
|
1924
1859
|
return [4, parseBody(output.body, context)];
|
|
1925
1860
|
case 1:
|
|
1926
1861
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1927
|
-
errorCode = "UnknownError";
|
|
1928
1862
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
1863
|
_b = errorCode;
|
|
1930
1864
|
switch (_b) {
|
|
@@ -1976,10 +1910,12 @@ var deserializeAws_restJson1AttachObjectCommandError = function (output, context
|
|
|
1976
1910
|
case 23: throw _d.sent();
|
|
1977
1911
|
case 24:
|
|
1978
1912
|
parsedBody = parsedOutput.body;
|
|
1913
|
+
$metadata = deserializeMetadata(output);
|
|
1914
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1979
1915
|
response = new __BaseException({
|
|
1980
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1916
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1981
1917
|
$fault: "client",
|
|
1982
|
-
$metadata:
|
|
1918
|
+
$metadata: $metadata,
|
|
1983
1919
|
});
|
|
1984
1920
|
throw __decorateServiceException(response, parsedBody);
|
|
1985
1921
|
}
|
|
@@ -2004,7 +1940,7 @@ export var deserializeAws_restJson1AttachPolicyCommand = function (output, conte
|
|
|
2004
1940
|
});
|
|
2005
1941
|
}); };
|
|
2006
1942
|
var deserializeAws_restJson1AttachPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2007
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1943
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2008
1944
|
var _c;
|
|
2009
1945
|
return __generator(this, function (_d) {
|
|
2010
1946
|
switch (_d.label) {
|
|
@@ -2014,7 +1950,6 @@ var deserializeAws_restJson1AttachPolicyCommandError = function (output, context
|
|
|
2014
1950
|
return [4, parseBody(output.body, context)];
|
|
2015
1951
|
case 1:
|
|
2016
1952
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2017
|
-
errorCode = "UnknownError";
|
|
2018
1953
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2019
1954
|
_b = errorCode;
|
|
2020
1955
|
switch (_b) {
|
|
@@ -2058,10 +1993,12 @@ var deserializeAws_restJson1AttachPolicyCommandError = function (output, context
|
|
|
2058
1993
|
case 19: throw _d.sent();
|
|
2059
1994
|
case 20:
|
|
2060
1995
|
parsedBody = parsedOutput.body;
|
|
1996
|
+
$metadata = deserializeMetadata(output);
|
|
1997
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2061
1998
|
response = new __BaseException({
|
|
2062
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2063
2000
|
$fault: "client",
|
|
2064
|
-
$metadata:
|
|
2001
|
+
$metadata: $metadata,
|
|
2065
2002
|
});
|
|
2066
2003
|
throw __decorateServiceException(response, parsedBody);
|
|
2067
2004
|
}
|
|
@@ -2092,7 +2029,7 @@ export var deserializeAws_restJson1AttachToIndexCommand = function (output, cont
|
|
|
2092
2029
|
});
|
|
2093
2030
|
}); };
|
|
2094
2031
|
var deserializeAws_restJson1AttachToIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2095
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2032
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2096
2033
|
var _c;
|
|
2097
2034
|
return __generator(this, function (_d) {
|
|
2098
2035
|
switch (_d.label) {
|
|
@@ -2102,7 +2039,6 @@ var deserializeAws_restJson1AttachToIndexCommandError = function (output, contex
|
|
|
2102
2039
|
return [4, parseBody(output.body, context)];
|
|
2103
2040
|
case 1:
|
|
2104
2041
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2105
|
-
errorCode = "UnknownError";
|
|
2106
2042
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
2043
|
_b = errorCode;
|
|
2108
2044
|
switch (_b) {
|
|
@@ -2158,10 +2094,12 @@ var deserializeAws_restJson1AttachToIndexCommandError = function (output, contex
|
|
|
2158
2094
|
case 25: throw _d.sent();
|
|
2159
2095
|
case 26:
|
|
2160
2096
|
parsedBody = parsedOutput.body;
|
|
2097
|
+
$metadata = deserializeMetadata(output);
|
|
2098
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2161
2099
|
response = new __BaseException({
|
|
2162
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2163
2101
|
$fault: "client",
|
|
2164
|
-
$metadata:
|
|
2102
|
+
$metadata: $metadata,
|
|
2165
2103
|
});
|
|
2166
2104
|
throw __decorateServiceException(response, parsedBody);
|
|
2167
2105
|
}
|
|
@@ -2192,7 +2130,7 @@ export var deserializeAws_restJson1AttachTypedLinkCommand = function (output, co
|
|
|
2192
2130
|
});
|
|
2193
2131
|
}); };
|
|
2194
2132
|
var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2195
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2133
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2196
2134
|
var _c;
|
|
2197
2135
|
return __generator(this, function (_d) {
|
|
2198
2136
|
switch (_d.label) {
|
|
@@ -2202,7 +2140,6 @@ var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, cont
|
|
|
2202
2140
|
return [4, parseBody(output.body, context)];
|
|
2203
2141
|
case 1:
|
|
2204
2142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2205
|
-
errorCode = "UnknownError";
|
|
2206
2143
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
2144
|
_b = errorCode;
|
|
2208
2145
|
switch (_b) {
|
|
@@ -2250,10 +2187,12 @@ var deserializeAws_restJson1AttachTypedLinkCommandError = function (output, cont
|
|
|
2250
2187
|
case 21: throw _d.sent();
|
|
2251
2188
|
case 22:
|
|
2252
2189
|
parsedBody = parsedOutput.body;
|
|
2190
|
+
$metadata = deserializeMetadata(output);
|
|
2191
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2253
2192
|
response = new __BaseException({
|
|
2254
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2255
2194
|
$fault: "client",
|
|
2256
|
-
$metadata:
|
|
2195
|
+
$metadata: $metadata,
|
|
2257
2196
|
});
|
|
2258
2197
|
throw __decorateServiceException(response, parsedBody);
|
|
2259
2198
|
}
|
|
@@ -2284,7 +2223,7 @@ export var deserializeAws_restJson1BatchReadCommand = function (output, context)
|
|
|
2284
2223
|
});
|
|
2285
2224
|
}); };
|
|
2286
2225
|
var deserializeAws_restJson1BatchReadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2287
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2226
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2288
2227
|
var _c;
|
|
2289
2228
|
return __generator(this, function (_d) {
|
|
2290
2229
|
switch (_d.label) {
|
|
@@ -2294,7 +2233,6 @@ var deserializeAws_restJson1BatchReadCommandError = function (output, context) {
|
|
|
2294
2233
|
return [4, parseBody(output.body, context)];
|
|
2295
2234
|
case 1:
|
|
2296
2235
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2297
|
-
errorCode = "UnknownError";
|
|
2298
2236
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
2237
|
_b = errorCode;
|
|
2300
2238
|
switch (_b) {
|
|
@@ -2330,10 +2268,12 @@ var deserializeAws_restJson1BatchReadCommandError = function (output, context) {
|
|
|
2330
2268
|
case 15: throw _d.sent();
|
|
2331
2269
|
case 16:
|
|
2332
2270
|
parsedBody = parsedOutput.body;
|
|
2271
|
+
$metadata = deserializeMetadata(output);
|
|
2272
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2333
2273
|
response = new __BaseException({
|
|
2334
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2274
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2335
2275
|
$fault: "client",
|
|
2336
|
-
$metadata:
|
|
2276
|
+
$metadata: $metadata,
|
|
2337
2277
|
});
|
|
2338
2278
|
throw __decorateServiceException(response, parsedBody);
|
|
2339
2279
|
}
|
|
@@ -2364,7 +2304,7 @@ export var deserializeAws_restJson1BatchWriteCommand = function (output, context
|
|
|
2364
2304
|
});
|
|
2365
2305
|
}); };
|
|
2366
2306
|
var deserializeAws_restJson1BatchWriteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2367
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2307
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2368
2308
|
var _c;
|
|
2369
2309
|
return __generator(this, function (_d) {
|
|
2370
2310
|
switch (_d.label) {
|
|
@@ -2374,7 +2314,6 @@ var deserializeAws_restJson1BatchWriteCommandError = function (output, context)
|
|
|
2374
2314
|
return [4, parseBody(output.body, context)];
|
|
2375
2315
|
case 1:
|
|
2376
2316
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2377
|
-
errorCode = "UnknownError";
|
|
2378
2317
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
2318
|
_b = errorCode;
|
|
2380
2319
|
switch (_b) {
|
|
@@ -2414,10 +2353,12 @@ var deserializeAws_restJson1BatchWriteCommandError = function (output, context)
|
|
|
2414
2353
|
case 17: throw _d.sent();
|
|
2415
2354
|
case 18:
|
|
2416
2355
|
parsedBody = parsedOutput.body;
|
|
2356
|
+
$metadata = deserializeMetadata(output);
|
|
2357
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2417
2358
|
response = new __BaseException({
|
|
2418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2419
2360
|
$fault: "client",
|
|
2420
|
-
$metadata:
|
|
2361
|
+
$metadata: $metadata,
|
|
2421
2362
|
});
|
|
2422
2363
|
throw __decorateServiceException(response, parsedBody);
|
|
2423
2364
|
}
|
|
@@ -2460,7 +2401,7 @@ export var deserializeAws_restJson1CreateDirectoryCommand = function (output, co
|
|
|
2460
2401
|
});
|
|
2461
2402
|
}); };
|
|
2462
2403
|
var deserializeAws_restJson1CreateDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2463
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2404
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2464
2405
|
var _c;
|
|
2465
2406
|
return __generator(this, function (_d) {
|
|
2466
2407
|
switch (_d.label) {
|
|
@@ -2470,7 +2411,6 @@ var deserializeAws_restJson1CreateDirectoryCommandError = function (output, cont
|
|
|
2470
2411
|
return [4, parseBody(output.body, context)];
|
|
2471
2412
|
case 1:
|
|
2472
2413
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2473
|
-
errorCode = "UnknownError";
|
|
2474
2414
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2475
2415
|
_b = errorCode;
|
|
2476
2416
|
switch (_b) {
|
|
@@ -2510,10 +2450,12 @@ var deserializeAws_restJson1CreateDirectoryCommandError = function (output, cont
|
|
|
2510
2450
|
case 17: throw _d.sent();
|
|
2511
2451
|
case 18:
|
|
2512
2452
|
parsedBody = parsedOutput.body;
|
|
2453
|
+
$metadata = deserializeMetadata(output);
|
|
2454
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2513
2455
|
response = new __BaseException({
|
|
2514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2456
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2515
2457
|
$fault: "client",
|
|
2516
|
-
$metadata:
|
|
2458
|
+
$metadata: $metadata,
|
|
2517
2459
|
});
|
|
2518
2460
|
throw __decorateServiceException(response, parsedBody);
|
|
2519
2461
|
}
|
|
@@ -2538,7 +2480,7 @@ export var deserializeAws_restJson1CreateFacetCommand = function (output, contex
|
|
|
2538
2480
|
});
|
|
2539
2481
|
}); };
|
|
2540
2482
|
var deserializeAws_restJson1CreateFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2541
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2483
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2542
2484
|
var _c;
|
|
2543
2485
|
return __generator(this, function (_d) {
|
|
2544
2486
|
switch (_d.label) {
|
|
@@ -2548,7 +2490,6 @@ var deserializeAws_restJson1CreateFacetCommandError = function (output, context)
|
|
|
2548
2490
|
return [4, parseBody(output.body, context)];
|
|
2549
2491
|
case 1:
|
|
2550
2492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2551
|
-
errorCode = "UnknownError";
|
|
2552
2493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2494
|
_b = errorCode;
|
|
2554
2495
|
switch (_b) {
|
|
@@ -2596,10 +2537,12 @@ var deserializeAws_restJson1CreateFacetCommandError = function (output, context)
|
|
|
2596
2537
|
case 21: throw _d.sent();
|
|
2597
2538
|
case 22:
|
|
2598
2539
|
parsedBody = parsedOutput.body;
|
|
2540
|
+
$metadata = deserializeMetadata(output);
|
|
2541
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2599
2542
|
response = new __BaseException({
|
|
2600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2543
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2601
2544
|
$fault: "client",
|
|
2602
|
-
$metadata:
|
|
2545
|
+
$metadata: $metadata,
|
|
2603
2546
|
});
|
|
2604
2547
|
throw __decorateServiceException(response, parsedBody);
|
|
2605
2548
|
}
|
|
@@ -2630,7 +2573,7 @@ export var deserializeAws_restJson1CreateIndexCommand = function (output, contex
|
|
|
2630
2573
|
});
|
|
2631
2574
|
}); };
|
|
2632
2575
|
var deserializeAws_restJson1CreateIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2633
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2576
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2634
2577
|
var _c;
|
|
2635
2578
|
return __generator(this, function (_d) {
|
|
2636
2579
|
switch (_d.label) {
|
|
@@ -2640,7 +2583,6 @@ var deserializeAws_restJson1CreateIndexCommandError = function (output, context)
|
|
|
2640
2583
|
return [4, parseBody(output.body, context)];
|
|
2641
2584
|
case 1:
|
|
2642
2585
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2643
|
-
errorCode = "UnknownError";
|
|
2644
2586
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2645
2587
|
_b = errorCode;
|
|
2646
2588
|
switch (_b) {
|
|
@@ -2692,10 +2634,12 @@ var deserializeAws_restJson1CreateIndexCommandError = function (output, context)
|
|
|
2692
2634
|
case 23: throw _d.sent();
|
|
2693
2635
|
case 24:
|
|
2694
2636
|
parsedBody = parsedOutput.body;
|
|
2637
|
+
$metadata = deserializeMetadata(output);
|
|
2638
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2695
2639
|
response = new __BaseException({
|
|
2696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2640
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2697
2641
|
$fault: "client",
|
|
2698
|
-
$metadata:
|
|
2642
|
+
$metadata: $metadata,
|
|
2699
2643
|
});
|
|
2700
2644
|
throw __decorateServiceException(response, parsedBody);
|
|
2701
2645
|
}
|
|
@@ -2726,7 +2670,7 @@ export var deserializeAws_restJson1CreateObjectCommand = function (output, conte
|
|
|
2726
2670
|
});
|
|
2727
2671
|
}); };
|
|
2728
2672
|
var deserializeAws_restJson1CreateObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2729
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2673
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2730
2674
|
var _c;
|
|
2731
2675
|
return __generator(this, function (_d) {
|
|
2732
2676
|
switch (_d.label) {
|
|
@@ -2736,7 +2680,6 @@ var deserializeAws_restJson1CreateObjectCommandError = function (output, context
|
|
|
2736
2680
|
return [4, parseBody(output.body, context)];
|
|
2737
2681
|
case 1:
|
|
2738
2682
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2739
|
-
errorCode = "UnknownError";
|
|
2740
2683
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2741
2684
|
_b = errorCode;
|
|
2742
2685
|
switch (_b) {
|
|
@@ -2788,10 +2731,12 @@ var deserializeAws_restJson1CreateObjectCommandError = function (output, context
|
|
|
2788
2731
|
case 23: throw _d.sent();
|
|
2789
2732
|
case 24:
|
|
2790
2733
|
parsedBody = parsedOutput.body;
|
|
2734
|
+
$metadata = deserializeMetadata(output);
|
|
2735
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2791
2736
|
response = new __BaseException({
|
|
2792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2793
2738
|
$fault: "client",
|
|
2794
|
-
$metadata:
|
|
2739
|
+
$metadata: $metadata,
|
|
2795
2740
|
});
|
|
2796
2741
|
throw __decorateServiceException(response, parsedBody);
|
|
2797
2742
|
}
|
|
@@ -2822,7 +2767,7 @@ export var deserializeAws_restJson1CreateSchemaCommand = function (output, conte
|
|
|
2822
2767
|
});
|
|
2823
2768
|
}); };
|
|
2824
2769
|
var deserializeAws_restJson1CreateSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2825
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2770
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2826
2771
|
var _c;
|
|
2827
2772
|
return __generator(this, function (_d) {
|
|
2828
2773
|
switch (_d.label) {
|
|
@@ -2832,7 +2777,6 @@ var deserializeAws_restJson1CreateSchemaCommandError = function (output, context
|
|
|
2832
2777
|
return [4, parseBody(output.body, context)];
|
|
2833
2778
|
case 1:
|
|
2834
2779
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2835
|
-
errorCode = "UnknownError";
|
|
2836
2780
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
2781
|
_b = errorCode;
|
|
2838
2782
|
switch (_b) {
|
|
@@ -2868,10 +2812,12 @@ var deserializeAws_restJson1CreateSchemaCommandError = function (output, context
|
|
|
2868
2812
|
case 15: throw _d.sent();
|
|
2869
2813
|
case 16:
|
|
2870
2814
|
parsedBody = parsedOutput.body;
|
|
2815
|
+
$metadata = deserializeMetadata(output);
|
|
2816
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2871
2817
|
response = new __BaseException({
|
|
2872
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2873
2819
|
$fault: "client",
|
|
2874
|
-
$metadata:
|
|
2820
|
+
$metadata: $metadata,
|
|
2875
2821
|
});
|
|
2876
2822
|
throw __decorateServiceException(response, parsedBody);
|
|
2877
2823
|
}
|
|
@@ -2896,7 +2842,7 @@ export var deserializeAws_restJson1CreateTypedLinkFacetCommand = function (outpu
|
|
|
2896
2842
|
});
|
|
2897
2843
|
}); };
|
|
2898
2844
|
var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2899
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2845
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2900
2846
|
var _c;
|
|
2901
2847
|
return __generator(this, function (_d) {
|
|
2902
2848
|
switch (_d.label) {
|
|
@@ -2906,7 +2852,6 @@ var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output,
|
|
|
2906
2852
|
return [4, parseBody(output.body, context)];
|
|
2907
2853
|
case 1:
|
|
2908
2854
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2909
|
-
errorCode = "UnknownError";
|
|
2910
2855
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2911
2856
|
_b = errorCode;
|
|
2912
2857
|
switch (_b) {
|
|
@@ -2954,10 +2899,12 @@ var deserializeAws_restJson1CreateTypedLinkFacetCommandError = function (output,
|
|
|
2954
2899
|
case 21: throw _d.sent();
|
|
2955
2900
|
case 22:
|
|
2956
2901
|
parsedBody = parsedOutput.body;
|
|
2902
|
+
$metadata = deserializeMetadata(output);
|
|
2903
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2957
2904
|
response = new __BaseException({
|
|
2958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2905
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2959
2906
|
$fault: "client",
|
|
2960
|
-
$metadata:
|
|
2907
|
+
$metadata: $metadata,
|
|
2961
2908
|
});
|
|
2962
2909
|
throw __decorateServiceException(response, parsedBody);
|
|
2963
2910
|
}
|
|
@@ -2988,7 +2935,7 @@ export var deserializeAws_restJson1DeleteDirectoryCommand = function (output, co
|
|
|
2988
2935
|
});
|
|
2989
2936
|
}); };
|
|
2990
2937
|
var deserializeAws_restJson1DeleteDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2991
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2992
2939
|
var _c;
|
|
2993
2940
|
return __generator(this, function (_d) {
|
|
2994
2941
|
switch (_d.label) {
|
|
@@ -2998,7 +2945,6 @@ var deserializeAws_restJson1DeleteDirectoryCommandError = function (output, cont
|
|
|
2998
2945
|
return [4, parseBody(output.body, context)];
|
|
2999
2946
|
case 1:
|
|
3000
2947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3001
|
-
errorCode = "UnknownError";
|
|
3002
2948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3003
2949
|
_b = errorCode;
|
|
3004
2950
|
switch (_b) {
|
|
@@ -3042,10 +2988,12 @@ var deserializeAws_restJson1DeleteDirectoryCommandError = function (output, cont
|
|
|
3042
2988
|
case 19: throw _d.sent();
|
|
3043
2989
|
case 20:
|
|
3044
2990
|
parsedBody = parsedOutput.body;
|
|
2991
|
+
$metadata = deserializeMetadata(output);
|
|
2992
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3045
2993
|
response = new __BaseException({
|
|
3046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3047
2995
|
$fault: "client",
|
|
3048
|
-
$metadata:
|
|
2996
|
+
$metadata: $metadata,
|
|
3049
2997
|
});
|
|
3050
2998
|
throw __decorateServiceException(response, parsedBody);
|
|
3051
2999
|
}
|
|
@@ -3070,7 +3018,7 @@ export var deserializeAws_restJson1DeleteFacetCommand = function (output, contex
|
|
|
3070
3018
|
});
|
|
3071
3019
|
}); };
|
|
3072
3020
|
var deserializeAws_restJson1DeleteFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3073
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3021
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3074
3022
|
var _c;
|
|
3075
3023
|
return __generator(this, function (_d) {
|
|
3076
3024
|
switch (_d.label) {
|
|
@@ -3080,7 +3028,6 @@ var deserializeAws_restJson1DeleteFacetCommandError = function (output, context)
|
|
|
3080
3028
|
return [4, parseBody(output.body, context)];
|
|
3081
3029
|
case 1:
|
|
3082
3030
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3083
|
-
errorCode = "UnknownError";
|
|
3084
3031
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3085
3032
|
_b = errorCode;
|
|
3086
3033
|
switch (_b) {
|
|
@@ -3124,10 +3071,12 @@ var deserializeAws_restJson1DeleteFacetCommandError = function (output, context)
|
|
|
3124
3071
|
case 19: throw _d.sent();
|
|
3125
3072
|
case 20:
|
|
3126
3073
|
parsedBody = parsedOutput.body;
|
|
3074
|
+
$metadata = deserializeMetadata(output);
|
|
3075
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3127
3076
|
response = new __BaseException({
|
|
3128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3129
3078
|
$fault: "client",
|
|
3130
|
-
$metadata:
|
|
3079
|
+
$metadata: $metadata,
|
|
3131
3080
|
});
|
|
3132
3081
|
throw __decorateServiceException(response, parsedBody);
|
|
3133
3082
|
}
|
|
@@ -3152,7 +3101,7 @@ export var deserializeAws_restJson1DeleteObjectCommand = function (output, conte
|
|
|
3152
3101
|
});
|
|
3153
3102
|
}); };
|
|
3154
3103
|
var deserializeAws_restJson1DeleteObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3155
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3104
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3156
3105
|
var _c;
|
|
3157
3106
|
return __generator(this, function (_d) {
|
|
3158
3107
|
switch (_d.label) {
|
|
@@ -3162,7 +3111,6 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
3162
3111
|
return [4, parseBody(output.body, context)];
|
|
3163
3112
|
case 1:
|
|
3164
3113
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3165
|
-
errorCode = "UnknownError";
|
|
3166
3114
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3167
3115
|
_b = errorCode;
|
|
3168
3116
|
switch (_b) {
|
|
@@ -3206,10 +3154,12 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
3206
3154
|
case 19: throw _d.sent();
|
|
3207
3155
|
case 20:
|
|
3208
3156
|
parsedBody = parsedOutput.body;
|
|
3157
|
+
$metadata = deserializeMetadata(output);
|
|
3158
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3209
3159
|
response = new __BaseException({
|
|
3210
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3160
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3211
3161
|
$fault: "client",
|
|
3212
|
-
$metadata:
|
|
3162
|
+
$metadata: $metadata,
|
|
3213
3163
|
});
|
|
3214
3164
|
throw __decorateServiceException(response, parsedBody);
|
|
3215
3165
|
}
|
|
@@ -3240,7 +3190,7 @@ export var deserializeAws_restJson1DeleteSchemaCommand = function (output, conte
|
|
|
3240
3190
|
});
|
|
3241
3191
|
}); };
|
|
3242
3192
|
var deserializeAws_restJson1DeleteSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3243
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3193
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3244
3194
|
var _c;
|
|
3245
3195
|
return __generator(this, function (_d) {
|
|
3246
3196
|
switch (_d.label) {
|
|
@@ -3250,7 +3200,6 @@ var deserializeAws_restJson1DeleteSchemaCommandError = function (output, context
|
|
|
3250
3200
|
return [4, parseBody(output.body, context)];
|
|
3251
3201
|
case 1:
|
|
3252
3202
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3253
|
-
errorCode = "UnknownError";
|
|
3254
3203
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3255
3204
|
_b = errorCode;
|
|
3256
3205
|
switch (_b) {
|
|
@@ -3290,10 +3239,12 @@ var deserializeAws_restJson1DeleteSchemaCommandError = function (output, context
|
|
|
3290
3239
|
case 17: throw _d.sent();
|
|
3291
3240
|
case 18:
|
|
3292
3241
|
parsedBody = parsedOutput.body;
|
|
3242
|
+
$metadata = deserializeMetadata(output);
|
|
3243
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3293
3244
|
response = new __BaseException({
|
|
3294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3295
3246
|
$fault: "client",
|
|
3296
|
-
$metadata:
|
|
3247
|
+
$metadata: $metadata,
|
|
3297
3248
|
});
|
|
3298
3249
|
throw __decorateServiceException(response, parsedBody);
|
|
3299
3250
|
}
|
|
@@ -3318,7 +3269,7 @@ export var deserializeAws_restJson1DeleteTypedLinkFacetCommand = function (outpu
|
|
|
3318
3269
|
});
|
|
3319
3270
|
}); };
|
|
3320
3271
|
var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3321
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3272
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3322
3273
|
var _c;
|
|
3323
3274
|
return __generator(this, function (_d) {
|
|
3324
3275
|
switch (_d.label) {
|
|
@@ -3328,7 +3279,6 @@ var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output,
|
|
|
3328
3279
|
return [4, parseBody(output.body, context)];
|
|
3329
3280
|
case 1:
|
|
3330
3281
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3331
|
-
errorCode = "UnknownError";
|
|
3332
3282
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
3283
|
_b = errorCode;
|
|
3334
3284
|
switch (_b) {
|
|
@@ -3368,10 +3318,12 @@ var deserializeAws_restJson1DeleteTypedLinkFacetCommandError = function (output,
|
|
|
3368
3318
|
case 17: throw _d.sent();
|
|
3369
3319
|
case 18:
|
|
3370
3320
|
parsedBody = parsedOutput.body;
|
|
3321
|
+
$metadata = deserializeMetadata(output);
|
|
3322
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3371
3323
|
response = new __BaseException({
|
|
3372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3373
3325
|
$fault: "client",
|
|
3374
|
-
$metadata:
|
|
3326
|
+
$metadata: $metadata,
|
|
3375
3327
|
});
|
|
3376
3328
|
throw __decorateServiceException(response, parsedBody);
|
|
3377
3329
|
}
|
|
@@ -3402,7 +3354,7 @@ export var deserializeAws_restJson1DetachFromIndexCommand = function (output, co
|
|
|
3402
3354
|
});
|
|
3403
3355
|
}); };
|
|
3404
3356
|
var deserializeAws_restJson1DetachFromIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3405
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3357
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3406
3358
|
var _c;
|
|
3407
3359
|
return __generator(this, function (_d) {
|
|
3408
3360
|
switch (_d.label) {
|
|
@@ -3412,7 +3364,6 @@ var deserializeAws_restJson1DetachFromIndexCommandError = function (output, cont
|
|
|
3412
3364
|
return [4, parseBody(output.body, context)];
|
|
3413
3365
|
case 1:
|
|
3414
3366
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3415
|
-
errorCode = "UnknownError";
|
|
3416
3367
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3417
3368
|
_b = errorCode;
|
|
3418
3369
|
switch (_b) {
|
|
@@ -3460,10 +3411,12 @@ var deserializeAws_restJson1DetachFromIndexCommandError = function (output, cont
|
|
|
3460
3411
|
case 21: throw _d.sent();
|
|
3461
3412
|
case 22:
|
|
3462
3413
|
parsedBody = parsedOutput.body;
|
|
3414
|
+
$metadata = deserializeMetadata(output);
|
|
3415
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3463
3416
|
response = new __BaseException({
|
|
3464
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3417
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3465
3418
|
$fault: "client",
|
|
3466
|
-
$metadata:
|
|
3419
|
+
$metadata: $metadata,
|
|
3467
3420
|
});
|
|
3468
3421
|
throw __decorateServiceException(response, parsedBody);
|
|
3469
3422
|
}
|
|
@@ -3494,7 +3447,7 @@ export var deserializeAws_restJson1DetachObjectCommand = function (output, conte
|
|
|
3494
3447
|
});
|
|
3495
3448
|
}); };
|
|
3496
3449
|
var deserializeAws_restJson1DetachObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3497
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3450
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3498
3451
|
var _c;
|
|
3499
3452
|
return __generator(this, function (_d) {
|
|
3500
3453
|
switch (_d.label) {
|
|
@@ -3504,7 +3457,6 @@ var deserializeAws_restJson1DetachObjectCommandError = function (output, context
|
|
|
3504
3457
|
return [4, parseBody(output.body, context)];
|
|
3505
3458
|
case 1:
|
|
3506
3459
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3507
|
-
errorCode = "UnknownError";
|
|
3508
3460
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3509
3461
|
_b = errorCode;
|
|
3510
3462
|
switch (_b) {
|
|
@@ -3548,10 +3500,12 @@ var deserializeAws_restJson1DetachObjectCommandError = function (output, context
|
|
|
3548
3500
|
case 19: throw _d.sent();
|
|
3549
3501
|
case 20:
|
|
3550
3502
|
parsedBody = parsedOutput.body;
|
|
3503
|
+
$metadata = deserializeMetadata(output);
|
|
3504
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3551
3505
|
response = new __BaseException({
|
|
3552
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3553
3507
|
$fault: "client",
|
|
3554
|
-
$metadata:
|
|
3508
|
+
$metadata: $metadata,
|
|
3555
3509
|
});
|
|
3556
3510
|
throw __decorateServiceException(response, parsedBody);
|
|
3557
3511
|
}
|
|
@@ -3576,7 +3530,7 @@ export var deserializeAws_restJson1DetachPolicyCommand = function (output, conte
|
|
|
3576
3530
|
});
|
|
3577
3531
|
}); };
|
|
3578
3532
|
var deserializeAws_restJson1DetachPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3579
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3533
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3580
3534
|
var _c;
|
|
3581
3535
|
return __generator(this, function (_d) {
|
|
3582
3536
|
switch (_d.label) {
|
|
@@ -3586,7 +3540,6 @@ var deserializeAws_restJson1DetachPolicyCommandError = function (output, context
|
|
|
3586
3540
|
return [4, parseBody(output.body, context)];
|
|
3587
3541
|
case 1:
|
|
3588
3542
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3589
|
-
errorCode = "UnknownError";
|
|
3590
3543
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3591
3544
|
_b = errorCode;
|
|
3592
3545
|
switch (_b) {
|
|
@@ -3630,10 +3583,12 @@ var deserializeAws_restJson1DetachPolicyCommandError = function (output, context
|
|
|
3630
3583
|
case 19: throw _d.sent();
|
|
3631
3584
|
case 20:
|
|
3632
3585
|
parsedBody = parsedOutput.body;
|
|
3586
|
+
$metadata = deserializeMetadata(output);
|
|
3587
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3633
3588
|
response = new __BaseException({
|
|
3634
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3635
3590
|
$fault: "client",
|
|
3636
|
-
$metadata:
|
|
3591
|
+
$metadata: $metadata,
|
|
3637
3592
|
});
|
|
3638
3593
|
throw __decorateServiceException(response, parsedBody);
|
|
3639
3594
|
}
|
|
@@ -3658,7 +3613,7 @@ export var deserializeAws_restJson1DetachTypedLinkCommand = function (output, co
|
|
|
3658
3613
|
});
|
|
3659
3614
|
}); };
|
|
3660
3615
|
var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3661
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3616
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3662
3617
|
var _c;
|
|
3663
3618
|
return __generator(this, function (_d) {
|
|
3664
3619
|
switch (_d.label) {
|
|
@@ -3668,7 +3623,6 @@ var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, cont
|
|
|
3668
3623
|
return [4, parseBody(output.body, context)];
|
|
3669
3624
|
case 1:
|
|
3670
3625
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3671
|
-
errorCode = "UnknownError";
|
|
3672
3626
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3673
3627
|
_b = errorCode;
|
|
3674
3628
|
switch (_b) {
|
|
@@ -3712,10 +3666,12 @@ var deserializeAws_restJson1DetachTypedLinkCommandError = function (output, cont
|
|
|
3712
3666
|
case 19: throw _d.sent();
|
|
3713
3667
|
case 20:
|
|
3714
3668
|
parsedBody = parsedOutput.body;
|
|
3669
|
+
$metadata = deserializeMetadata(output);
|
|
3670
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3715
3671
|
response = new __BaseException({
|
|
3716
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3717
3673
|
$fault: "client",
|
|
3718
|
-
$metadata:
|
|
3674
|
+
$metadata: $metadata,
|
|
3719
3675
|
});
|
|
3720
3676
|
throw __decorateServiceException(response, parsedBody);
|
|
3721
3677
|
}
|
|
@@ -3746,7 +3702,7 @@ export var deserializeAws_restJson1DisableDirectoryCommand = function (output, c
|
|
|
3746
3702
|
});
|
|
3747
3703
|
}); };
|
|
3748
3704
|
var deserializeAws_restJson1DisableDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3749
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3705
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3750
3706
|
var _c;
|
|
3751
3707
|
return __generator(this, function (_d) {
|
|
3752
3708
|
switch (_d.label) {
|
|
@@ -3756,7 +3712,6 @@ var deserializeAws_restJson1DisableDirectoryCommandError = function (output, con
|
|
|
3756
3712
|
return [4, parseBody(output.body, context)];
|
|
3757
3713
|
case 1:
|
|
3758
3714
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3759
|
-
errorCode = "UnknownError";
|
|
3760
3715
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3761
3716
|
_b = errorCode;
|
|
3762
3717
|
switch (_b) {
|
|
@@ -3796,10 +3751,12 @@ var deserializeAws_restJson1DisableDirectoryCommandError = function (output, con
|
|
|
3796
3751
|
case 17: throw _d.sent();
|
|
3797
3752
|
case 18:
|
|
3798
3753
|
parsedBody = parsedOutput.body;
|
|
3754
|
+
$metadata = deserializeMetadata(output);
|
|
3755
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3799
3756
|
response = new __BaseException({
|
|
3800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3801
3758
|
$fault: "client",
|
|
3802
|
-
$metadata:
|
|
3759
|
+
$metadata: $metadata,
|
|
3803
3760
|
});
|
|
3804
3761
|
throw __decorateServiceException(response, parsedBody);
|
|
3805
3762
|
}
|
|
@@ -3830,7 +3787,7 @@ export var deserializeAws_restJson1EnableDirectoryCommand = function (output, co
|
|
|
3830
3787
|
});
|
|
3831
3788
|
}); };
|
|
3832
3789
|
var deserializeAws_restJson1EnableDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3833
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3790
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3834
3791
|
var _c;
|
|
3835
3792
|
return __generator(this, function (_d) {
|
|
3836
3793
|
switch (_d.label) {
|
|
@@ -3840,7 +3797,6 @@ var deserializeAws_restJson1EnableDirectoryCommandError = function (output, cont
|
|
|
3840
3797
|
return [4, parseBody(output.body, context)];
|
|
3841
3798
|
case 1:
|
|
3842
3799
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3843
|
-
errorCode = "UnknownError";
|
|
3844
3800
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3845
3801
|
_b = errorCode;
|
|
3846
3802
|
switch (_b) {
|
|
@@ -3880,10 +3836,12 @@ var deserializeAws_restJson1EnableDirectoryCommandError = function (output, cont
|
|
|
3880
3836
|
case 17: throw _d.sent();
|
|
3881
3837
|
case 18:
|
|
3882
3838
|
parsedBody = parsedOutput.body;
|
|
3839
|
+
$metadata = deserializeMetadata(output);
|
|
3840
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3883
3841
|
response = new __BaseException({
|
|
3884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3842
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3885
3843
|
$fault: "client",
|
|
3886
|
-
$metadata:
|
|
3844
|
+
$metadata: $metadata,
|
|
3887
3845
|
});
|
|
3888
3846
|
throw __decorateServiceException(response, parsedBody);
|
|
3889
3847
|
}
|
|
@@ -3914,7 +3872,7 @@ export var deserializeAws_restJson1GetAppliedSchemaVersionCommand = function (ou
|
|
|
3914
3872
|
});
|
|
3915
3873
|
}); };
|
|
3916
3874
|
var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3917
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3875
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3918
3876
|
var _c;
|
|
3919
3877
|
return __generator(this, function (_d) {
|
|
3920
3878
|
switch (_d.label) {
|
|
@@ -3924,7 +3882,6 @@ var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (outp
|
|
|
3924
3882
|
return [4, parseBody(output.body, context)];
|
|
3925
3883
|
case 1:
|
|
3926
3884
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3927
|
-
errorCode = "UnknownError";
|
|
3928
3885
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3929
3886
|
_b = errorCode;
|
|
3930
3887
|
switch (_b) {
|
|
@@ -3960,10 +3917,12 @@ var deserializeAws_restJson1GetAppliedSchemaVersionCommandError = function (outp
|
|
|
3960
3917
|
case 15: throw _d.sent();
|
|
3961
3918
|
case 16:
|
|
3962
3919
|
parsedBody = parsedOutput.body;
|
|
3920
|
+
$metadata = deserializeMetadata(output);
|
|
3921
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3963
3922
|
response = new __BaseException({
|
|
3964
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3923
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3965
3924
|
$fault: "client",
|
|
3966
|
-
$metadata:
|
|
3925
|
+
$metadata: $metadata,
|
|
3967
3926
|
});
|
|
3968
3927
|
throw __decorateServiceException(response, parsedBody);
|
|
3969
3928
|
}
|
|
@@ -3994,7 +3953,7 @@ export var deserializeAws_restJson1GetDirectoryCommand = function (output, conte
|
|
|
3994
3953
|
});
|
|
3995
3954
|
}); };
|
|
3996
3955
|
var deserializeAws_restJson1GetDirectoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3997
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3956
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3998
3957
|
var _c;
|
|
3999
3958
|
return __generator(this, function (_d) {
|
|
4000
3959
|
switch (_d.label) {
|
|
@@ -4004,7 +3963,6 @@ var deserializeAws_restJson1GetDirectoryCommandError = function (output, context
|
|
|
4004
3963
|
return [4, parseBody(output.body, context)];
|
|
4005
3964
|
case 1:
|
|
4006
3965
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4007
|
-
errorCode = "UnknownError";
|
|
4008
3966
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4009
3967
|
_b = errorCode;
|
|
4010
3968
|
switch (_b) {
|
|
@@ -4036,10 +3994,12 @@ var deserializeAws_restJson1GetDirectoryCommandError = function (output, context
|
|
|
4036
3994
|
case 13: throw _d.sent();
|
|
4037
3995
|
case 14:
|
|
4038
3996
|
parsedBody = parsedOutput.body;
|
|
3997
|
+
$metadata = deserializeMetadata(output);
|
|
3998
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4039
3999
|
response = new __BaseException({
|
|
4040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4000
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4041
4001
|
$fault: "client",
|
|
4042
|
-
$metadata:
|
|
4002
|
+
$metadata: $metadata,
|
|
4043
4003
|
});
|
|
4044
4004
|
throw __decorateServiceException(response, parsedBody);
|
|
4045
4005
|
}
|
|
@@ -4070,7 +4030,7 @@ export var deserializeAws_restJson1GetFacetCommand = function (output, context)
|
|
|
4070
4030
|
});
|
|
4071
4031
|
}); };
|
|
4072
4032
|
var deserializeAws_restJson1GetFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4073
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4033
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4074
4034
|
var _c;
|
|
4075
4035
|
return __generator(this, function (_d) {
|
|
4076
4036
|
switch (_d.label) {
|
|
@@ -4080,7 +4040,6 @@ var deserializeAws_restJson1GetFacetCommandError = function (output, context) {
|
|
|
4080
4040
|
return [4, parseBody(output.body, context)];
|
|
4081
4041
|
case 1:
|
|
4082
4042
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4083
|
-
errorCode = "UnknownError";
|
|
4084
4043
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4085
4044
|
_b = errorCode;
|
|
4086
4045
|
switch (_b) {
|
|
@@ -4120,10 +4079,12 @@ var deserializeAws_restJson1GetFacetCommandError = function (output, context) {
|
|
|
4120
4079
|
case 17: throw _d.sent();
|
|
4121
4080
|
case 18:
|
|
4122
4081
|
parsedBody = parsedOutput.body;
|
|
4082
|
+
$metadata = deserializeMetadata(output);
|
|
4083
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4123
4084
|
response = new __BaseException({
|
|
4124
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4085
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4125
4086
|
$fault: "client",
|
|
4126
|
-
$metadata:
|
|
4087
|
+
$metadata: $metadata,
|
|
4127
4088
|
});
|
|
4128
4089
|
throw __decorateServiceException(response, parsedBody);
|
|
4129
4090
|
}
|
|
@@ -4154,7 +4115,7 @@ export var deserializeAws_restJson1GetLinkAttributesCommand = function (output,
|
|
|
4154
4115
|
});
|
|
4155
4116
|
}); };
|
|
4156
4117
|
var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4157
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4118
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4158
4119
|
var _c;
|
|
4159
4120
|
return __generator(this, function (_d) {
|
|
4160
4121
|
switch (_d.label) {
|
|
@@ -4164,7 +4125,6 @@ var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, co
|
|
|
4164
4125
|
return [4, parseBody(output.body, context)];
|
|
4165
4126
|
case 1:
|
|
4166
4127
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4167
|
-
errorCode = "UnknownError";
|
|
4168
4128
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4169
4129
|
_b = errorCode;
|
|
4170
4130
|
switch (_b) {
|
|
@@ -4208,10 +4168,12 @@ var deserializeAws_restJson1GetLinkAttributesCommandError = function (output, co
|
|
|
4208
4168
|
case 19: throw _d.sent();
|
|
4209
4169
|
case 20:
|
|
4210
4170
|
parsedBody = parsedOutput.body;
|
|
4171
|
+
$metadata = deserializeMetadata(output);
|
|
4172
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4211
4173
|
response = new __BaseException({
|
|
4212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4213
4175
|
$fault: "client",
|
|
4214
|
-
$metadata:
|
|
4176
|
+
$metadata: $metadata,
|
|
4215
4177
|
});
|
|
4216
4178
|
throw __decorateServiceException(response, parsedBody);
|
|
4217
4179
|
}
|
|
@@ -4242,7 +4204,7 @@ export var deserializeAws_restJson1GetObjectAttributesCommand = function (output
|
|
|
4242
4204
|
});
|
|
4243
4205
|
}); };
|
|
4244
4206
|
var deserializeAws_restJson1GetObjectAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4245
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4207
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4246
4208
|
var _c;
|
|
4247
4209
|
return __generator(this, function (_d) {
|
|
4248
4210
|
switch (_d.label) {
|
|
@@ -4252,7 +4214,6 @@ var deserializeAws_restJson1GetObjectAttributesCommandError = function (output,
|
|
|
4252
4214
|
return [4, parseBody(output.body, context)];
|
|
4253
4215
|
case 1:
|
|
4254
4216
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4255
|
-
errorCode = "UnknownError";
|
|
4256
4217
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4257
4218
|
_b = errorCode;
|
|
4258
4219
|
switch (_b) {
|
|
@@ -4296,10 +4257,12 @@ var deserializeAws_restJson1GetObjectAttributesCommandError = function (output,
|
|
|
4296
4257
|
case 19: throw _d.sent();
|
|
4297
4258
|
case 20:
|
|
4298
4259
|
parsedBody = parsedOutput.body;
|
|
4260
|
+
$metadata = deserializeMetadata(output);
|
|
4261
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4299
4262
|
response = new __BaseException({
|
|
4300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4263
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4301
4264
|
$fault: "client",
|
|
4302
|
-
$metadata:
|
|
4265
|
+
$metadata: $metadata,
|
|
4303
4266
|
});
|
|
4304
4267
|
throw __decorateServiceException(response, parsedBody);
|
|
4305
4268
|
}
|
|
@@ -4334,7 +4297,7 @@ export var deserializeAws_restJson1GetObjectInformationCommand = function (outpu
|
|
|
4334
4297
|
});
|
|
4335
4298
|
}); };
|
|
4336
4299
|
var deserializeAws_restJson1GetObjectInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4337
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4300
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4338
4301
|
var _c;
|
|
4339
4302
|
return __generator(this, function (_d) {
|
|
4340
4303
|
switch (_d.label) {
|
|
@@ -4344,7 +4307,6 @@ var deserializeAws_restJson1GetObjectInformationCommandError = function (output,
|
|
|
4344
4307
|
return [4, parseBody(output.body, context)];
|
|
4345
4308
|
case 1:
|
|
4346
4309
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4347
|
-
errorCode = "UnknownError";
|
|
4348
4310
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4349
4311
|
_b = errorCode;
|
|
4350
4312
|
switch (_b) {
|
|
@@ -4384,10 +4346,12 @@ var deserializeAws_restJson1GetObjectInformationCommandError = function (output,
|
|
|
4384
4346
|
case 17: throw _d.sent();
|
|
4385
4347
|
case 18:
|
|
4386
4348
|
parsedBody = parsedOutput.body;
|
|
4349
|
+
$metadata = deserializeMetadata(output);
|
|
4350
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4387
4351
|
response = new __BaseException({
|
|
4388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4352
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4389
4353
|
$fault: "client",
|
|
4390
|
-
$metadata:
|
|
4354
|
+
$metadata: $metadata,
|
|
4391
4355
|
});
|
|
4392
4356
|
throw __decorateServiceException(response, parsedBody);
|
|
4393
4357
|
}
|
|
@@ -4422,7 +4386,7 @@ export var deserializeAws_restJson1GetSchemaAsJsonCommand = function (output, co
|
|
|
4422
4386
|
});
|
|
4423
4387
|
}); };
|
|
4424
4388
|
var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4425
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4389
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4426
4390
|
var _c;
|
|
4427
4391
|
return __generator(this, function (_d) {
|
|
4428
4392
|
switch (_d.label) {
|
|
@@ -4432,7 +4396,6 @@ var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, cont
|
|
|
4432
4396
|
return [4, parseBody(output.body, context)];
|
|
4433
4397
|
case 1:
|
|
4434
4398
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4435
|
-
errorCode = "UnknownError";
|
|
4436
4399
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4437
4400
|
_b = errorCode;
|
|
4438
4401
|
switch (_b) {
|
|
@@ -4468,10 +4431,12 @@ var deserializeAws_restJson1GetSchemaAsJsonCommandError = function (output, cont
|
|
|
4468
4431
|
case 15: throw _d.sent();
|
|
4469
4432
|
case 16:
|
|
4470
4433
|
parsedBody = parsedOutput.body;
|
|
4434
|
+
$metadata = deserializeMetadata(output);
|
|
4435
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4471
4436
|
response = new __BaseException({
|
|
4472
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4473
4438
|
$fault: "client",
|
|
4474
|
-
$metadata:
|
|
4439
|
+
$metadata: $metadata,
|
|
4475
4440
|
});
|
|
4476
4441
|
throw __decorateServiceException(response, parsedBody);
|
|
4477
4442
|
}
|
|
@@ -4502,7 +4467,7 @@ export var deserializeAws_restJson1GetTypedLinkFacetInformationCommand = functio
|
|
|
4502
4467
|
});
|
|
4503
4468
|
}); };
|
|
4504
4469
|
var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4505
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4470
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4506
4471
|
var _c;
|
|
4507
4472
|
return __generator(this, function (_d) {
|
|
4508
4473
|
switch (_d.label) {
|
|
@@ -4512,7 +4477,6 @@ var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function
|
|
|
4512
4477
|
return [4, parseBody(output.body, context)];
|
|
4513
4478
|
case 1:
|
|
4514
4479
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4515
|
-
errorCode = "UnknownError";
|
|
4516
4480
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4517
4481
|
_b = errorCode;
|
|
4518
4482
|
switch (_b) {
|
|
@@ -4556,10 +4520,12 @@ var deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = function
|
|
|
4556
4520
|
case 19: throw _d.sent();
|
|
4557
4521
|
case 20:
|
|
4558
4522
|
parsedBody = parsedOutput.body;
|
|
4523
|
+
$metadata = deserializeMetadata(output);
|
|
4524
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4559
4525
|
response = new __BaseException({
|
|
4560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4561
4527
|
$fault: "client",
|
|
4562
|
-
$metadata:
|
|
4528
|
+
$metadata: $metadata,
|
|
4563
4529
|
});
|
|
4564
4530
|
throw __decorateServiceException(response, parsedBody);
|
|
4565
4531
|
}
|
|
@@ -4594,7 +4560,7 @@ export var deserializeAws_restJson1ListAppliedSchemaArnsCommand = function (outp
|
|
|
4594
4560
|
});
|
|
4595
4561
|
}); };
|
|
4596
4562
|
var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4597
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4563
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4598
4564
|
var _c;
|
|
4599
4565
|
return __generator(this, function (_d) {
|
|
4600
4566
|
switch (_d.label) {
|
|
@@ -4604,7 +4570,6 @@ var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output
|
|
|
4604
4570
|
return [4, parseBody(output.body, context)];
|
|
4605
4571
|
case 1:
|
|
4606
4572
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4607
|
-
errorCode = "UnknownError";
|
|
4608
4573
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4609
4574
|
_b = errorCode;
|
|
4610
4575
|
switch (_b) {
|
|
@@ -4644,10 +4609,12 @@ var deserializeAws_restJson1ListAppliedSchemaArnsCommandError = function (output
|
|
|
4644
4609
|
case 17: throw _d.sent();
|
|
4645
4610
|
case 18:
|
|
4646
4611
|
parsedBody = parsedOutput.body;
|
|
4612
|
+
$metadata = deserializeMetadata(output);
|
|
4613
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4647
4614
|
response = new __BaseException({
|
|
4648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4649
4616
|
$fault: "client",
|
|
4650
|
-
$metadata:
|
|
4617
|
+
$metadata: $metadata,
|
|
4651
4618
|
});
|
|
4652
4619
|
throw __decorateServiceException(response, parsedBody);
|
|
4653
4620
|
}
|
|
@@ -4682,7 +4649,7 @@ export var deserializeAws_restJson1ListAttachedIndicesCommand = function (output
|
|
|
4682
4649
|
});
|
|
4683
4650
|
}); };
|
|
4684
4651
|
var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4685
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4652
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4686
4653
|
var _c;
|
|
4687
4654
|
return __generator(this, function (_d) {
|
|
4688
4655
|
switch (_d.label) {
|
|
@@ -4692,7 +4659,6 @@ var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output,
|
|
|
4692
4659
|
return [4, parseBody(output.body, context)];
|
|
4693
4660
|
case 1:
|
|
4694
4661
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4695
|
-
errorCode = "UnknownError";
|
|
4696
4662
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4697
4663
|
_b = errorCode;
|
|
4698
4664
|
switch (_b) {
|
|
@@ -4732,10 +4698,12 @@ var deserializeAws_restJson1ListAttachedIndicesCommandError = function (output,
|
|
|
4732
4698
|
case 17: throw _d.sent();
|
|
4733
4699
|
case 18:
|
|
4734
4700
|
parsedBody = parsedOutput.body;
|
|
4701
|
+
$metadata = deserializeMetadata(output);
|
|
4702
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4735
4703
|
response = new __BaseException({
|
|
4736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4704
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4737
4705
|
$fault: "client",
|
|
4738
|
-
$metadata:
|
|
4706
|
+
$metadata: $metadata,
|
|
4739
4707
|
});
|
|
4740
4708
|
throw __decorateServiceException(response, parsedBody);
|
|
4741
4709
|
}
|
|
@@ -4770,7 +4738,7 @@ export var deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = function (
|
|
|
4770
4738
|
});
|
|
4771
4739
|
}); };
|
|
4772
4740
|
var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4773
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4741
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4774
4742
|
var _c;
|
|
4775
4743
|
return __generator(this, function (_d) {
|
|
4776
4744
|
switch (_d.label) {
|
|
@@ -4780,7 +4748,6 @@ var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (ou
|
|
|
4780
4748
|
return [4, parseBody(output.body, context)];
|
|
4781
4749
|
case 1:
|
|
4782
4750
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4783
|
-
errorCode = "UnknownError";
|
|
4784
4751
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4785
4752
|
_b = errorCode;
|
|
4786
4753
|
switch (_b) {
|
|
@@ -4820,10 +4787,12 @@ var deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = function (ou
|
|
|
4820
4787
|
case 17: throw _d.sent();
|
|
4821
4788
|
case 18:
|
|
4822
4789
|
parsedBody = parsedOutput.body;
|
|
4790
|
+
$metadata = deserializeMetadata(output);
|
|
4791
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4823
4792
|
response = new __BaseException({
|
|
4824
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4825
4794
|
$fault: "client",
|
|
4826
|
-
$metadata:
|
|
4795
|
+
$metadata: $metadata,
|
|
4827
4796
|
});
|
|
4828
4797
|
throw __decorateServiceException(response, parsedBody);
|
|
4829
4798
|
}
|
|
@@ -4858,7 +4827,7 @@ export var deserializeAws_restJson1ListDirectoriesCommand = function (output, co
|
|
|
4858
4827
|
});
|
|
4859
4828
|
}); };
|
|
4860
4829
|
var deserializeAws_restJson1ListDirectoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4861
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4830
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4862
4831
|
var _c;
|
|
4863
4832
|
return __generator(this, function (_d) {
|
|
4864
4833
|
switch (_d.label) {
|
|
@@ -4868,7 +4837,6 @@ var deserializeAws_restJson1ListDirectoriesCommandError = function (output, cont
|
|
|
4868
4837
|
return [4, parseBody(output.body, context)];
|
|
4869
4838
|
case 1:
|
|
4870
4839
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4871
|
-
errorCode = "UnknownError";
|
|
4872
4840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4873
4841
|
_b = errorCode;
|
|
4874
4842
|
switch (_b) {
|
|
@@ -4904,10 +4872,12 @@ var deserializeAws_restJson1ListDirectoriesCommandError = function (output, cont
|
|
|
4904
4872
|
case 15: throw _d.sent();
|
|
4905
4873
|
case 16:
|
|
4906
4874
|
parsedBody = parsedOutput.body;
|
|
4875
|
+
$metadata = deserializeMetadata(output);
|
|
4876
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4907
4877
|
response = new __BaseException({
|
|
4908
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4909
4879
|
$fault: "client",
|
|
4910
|
-
$metadata:
|
|
4880
|
+
$metadata: $metadata,
|
|
4911
4881
|
});
|
|
4912
4882
|
throw __decorateServiceException(response, parsedBody);
|
|
4913
4883
|
}
|
|
@@ -4942,7 +4912,7 @@ export var deserializeAws_restJson1ListFacetAttributesCommand = function (output
|
|
|
4942
4912
|
});
|
|
4943
4913
|
}); };
|
|
4944
4914
|
var deserializeAws_restJson1ListFacetAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4945
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4915
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4946
4916
|
var _c;
|
|
4947
4917
|
return __generator(this, function (_d) {
|
|
4948
4918
|
switch (_d.label) {
|
|
@@ -4952,7 +4922,6 @@ var deserializeAws_restJson1ListFacetAttributesCommandError = function (output,
|
|
|
4952
4922
|
return [4, parseBody(output.body, context)];
|
|
4953
4923
|
case 1:
|
|
4954
4924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4955
|
-
errorCode = "UnknownError";
|
|
4956
4925
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4957
4926
|
_b = errorCode;
|
|
4958
4927
|
switch (_b) {
|
|
@@ -4996,10 +4965,12 @@ var deserializeAws_restJson1ListFacetAttributesCommandError = function (output,
|
|
|
4996
4965
|
case 19: throw _d.sent();
|
|
4997
4966
|
case 20:
|
|
4998
4967
|
parsedBody = parsedOutput.body;
|
|
4968
|
+
$metadata = deserializeMetadata(output);
|
|
4969
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4999
4970
|
response = new __BaseException({
|
|
5000
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5001
4972
|
$fault: "client",
|
|
5002
|
-
$metadata:
|
|
4973
|
+
$metadata: $metadata,
|
|
5003
4974
|
});
|
|
5004
4975
|
throw __decorateServiceException(response, parsedBody);
|
|
5005
4976
|
}
|
|
@@ -5034,7 +5005,7 @@ export var deserializeAws_restJson1ListFacetNamesCommand = function (output, con
|
|
|
5034
5005
|
});
|
|
5035
5006
|
}); };
|
|
5036
5007
|
var deserializeAws_restJson1ListFacetNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5037
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5008
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5038
5009
|
var _c;
|
|
5039
5010
|
return __generator(this, function (_d) {
|
|
5040
5011
|
switch (_d.label) {
|
|
@@ -5044,7 +5015,6 @@ var deserializeAws_restJson1ListFacetNamesCommandError = function (output, conte
|
|
|
5044
5015
|
return [4, parseBody(output.body, context)];
|
|
5045
5016
|
case 1:
|
|
5046
5017
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5047
|
-
errorCode = "UnknownError";
|
|
5048
5018
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5049
5019
|
_b = errorCode;
|
|
5050
5020
|
switch (_b) {
|
|
@@ -5084,10 +5054,12 @@ var deserializeAws_restJson1ListFacetNamesCommandError = function (output, conte
|
|
|
5084
5054
|
case 17: throw _d.sent();
|
|
5085
5055
|
case 18:
|
|
5086
5056
|
parsedBody = parsedOutput.body;
|
|
5057
|
+
$metadata = deserializeMetadata(output);
|
|
5058
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5087
5059
|
response = new __BaseException({
|
|
5088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5060
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5089
5061
|
$fault: "client",
|
|
5090
|
-
$metadata:
|
|
5062
|
+
$metadata: $metadata,
|
|
5091
5063
|
});
|
|
5092
5064
|
throw __decorateServiceException(response, parsedBody);
|
|
5093
5065
|
}
|
|
@@ -5122,7 +5094,7 @@ export var deserializeAws_restJson1ListIncomingTypedLinksCommand = function (out
|
|
|
5122
5094
|
});
|
|
5123
5095
|
}); };
|
|
5124
5096
|
var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5125
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5097
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5126
5098
|
var _c;
|
|
5127
5099
|
return __generator(this, function (_d) {
|
|
5128
5100
|
switch (_d.label) {
|
|
@@ -5132,7 +5104,6 @@ var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (outpu
|
|
|
5132
5104
|
return [4, parseBody(output.body, context)];
|
|
5133
5105
|
case 1:
|
|
5134
5106
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5135
|
-
errorCode = "UnknownError";
|
|
5136
5107
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5137
5108
|
_b = errorCode;
|
|
5138
5109
|
switch (_b) {
|
|
@@ -5180,10 +5151,12 @@ var deserializeAws_restJson1ListIncomingTypedLinksCommandError = function (outpu
|
|
|
5180
5151
|
case 21: throw _d.sent();
|
|
5181
5152
|
case 22:
|
|
5182
5153
|
parsedBody = parsedOutput.body;
|
|
5154
|
+
$metadata = deserializeMetadata(output);
|
|
5155
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5183
5156
|
response = new __BaseException({
|
|
5184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5185
5158
|
$fault: "client",
|
|
5186
|
-
$metadata:
|
|
5159
|
+
$metadata: $metadata,
|
|
5187
5160
|
});
|
|
5188
5161
|
throw __decorateServiceException(response, parsedBody);
|
|
5189
5162
|
}
|
|
@@ -5218,7 +5191,7 @@ export var deserializeAws_restJson1ListIndexCommand = function (output, context)
|
|
|
5218
5191
|
});
|
|
5219
5192
|
}); };
|
|
5220
5193
|
var deserializeAws_restJson1ListIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5221
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5194
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5222
5195
|
var _c;
|
|
5223
5196
|
return __generator(this, function (_d) {
|
|
5224
5197
|
switch (_d.label) {
|
|
@@ -5228,7 +5201,6 @@ var deserializeAws_restJson1ListIndexCommandError = function (output, context) {
|
|
|
5228
5201
|
return [4, parseBody(output.body, context)];
|
|
5229
5202
|
case 1:
|
|
5230
5203
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5231
|
-
errorCode = "UnknownError";
|
|
5232
5204
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5233
5205
|
_b = errorCode;
|
|
5234
5206
|
switch (_b) {
|
|
@@ -5280,10 +5252,12 @@ var deserializeAws_restJson1ListIndexCommandError = function (output, context) {
|
|
|
5280
5252
|
case 23: throw _d.sent();
|
|
5281
5253
|
case 24:
|
|
5282
5254
|
parsedBody = parsedOutput.body;
|
|
5255
|
+
$metadata = deserializeMetadata(output);
|
|
5256
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5283
5257
|
response = new __BaseException({
|
|
5284
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5285
5259
|
$fault: "client",
|
|
5286
|
-
$metadata:
|
|
5260
|
+
$metadata: $metadata,
|
|
5287
5261
|
});
|
|
5288
5262
|
throw __decorateServiceException(response, parsedBody);
|
|
5289
5263
|
}
|
|
@@ -5318,7 +5292,7 @@ export var deserializeAws_restJson1ListManagedSchemaArnsCommand = function (outp
|
|
|
5318
5292
|
});
|
|
5319
5293
|
}); };
|
|
5320
5294
|
var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5321
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5295
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5322
5296
|
var _c;
|
|
5323
5297
|
return __generator(this, function (_d) {
|
|
5324
5298
|
switch (_d.label) {
|
|
@@ -5328,7 +5302,6 @@ var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output
|
|
|
5328
5302
|
return [4, parseBody(output.body, context)];
|
|
5329
5303
|
case 1:
|
|
5330
5304
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5331
|
-
errorCode = "UnknownError";
|
|
5332
5305
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5333
5306
|
_b = errorCode;
|
|
5334
5307
|
switch (_b) {
|
|
@@ -5360,10 +5333,12 @@ var deserializeAws_restJson1ListManagedSchemaArnsCommandError = function (output
|
|
|
5360
5333
|
case 13: throw _d.sent();
|
|
5361
5334
|
case 14:
|
|
5362
5335
|
parsedBody = parsedOutput.body;
|
|
5336
|
+
$metadata = deserializeMetadata(output);
|
|
5337
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5363
5338
|
response = new __BaseException({
|
|
5364
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5339
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5365
5340
|
$fault: "client",
|
|
5366
|
-
$metadata:
|
|
5341
|
+
$metadata: $metadata,
|
|
5367
5342
|
});
|
|
5368
5343
|
throw __decorateServiceException(response, parsedBody);
|
|
5369
5344
|
}
|
|
@@ -5398,7 +5373,7 @@ export var deserializeAws_restJson1ListObjectAttributesCommand = function (outpu
|
|
|
5398
5373
|
});
|
|
5399
5374
|
}); };
|
|
5400
5375
|
var deserializeAws_restJson1ListObjectAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5401
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5376
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5402
5377
|
var _c;
|
|
5403
5378
|
return __generator(this, function (_d) {
|
|
5404
5379
|
switch (_d.label) {
|
|
@@ -5408,7 +5383,6 @@ var deserializeAws_restJson1ListObjectAttributesCommandError = function (output,
|
|
|
5408
5383
|
return [4, parseBody(output.body, context)];
|
|
5409
5384
|
case 1:
|
|
5410
5385
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5411
|
-
errorCode = "UnknownError";
|
|
5412
5386
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5413
5387
|
_b = errorCode;
|
|
5414
5388
|
switch (_b) {
|
|
@@ -5456,10 +5430,12 @@ var deserializeAws_restJson1ListObjectAttributesCommandError = function (output,
|
|
|
5456
5430
|
case 21: throw _d.sent();
|
|
5457
5431
|
case 22:
|
|
5458
5432
|
parsedBody = parsedOutput.body;
|
|
5433
|
+
$metadata = deserializeMetadata(output);
|
|
5434
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5459
5435
|
response = new __BaseException({
|
|
5460
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5461
5437
|
$fault: "client",
|
|
5462
|
-
$metadata:
|
|
5438
|
+
$metadata: $metadata,
|
|
5463
5439
|
});
|
|
5464
5440
|
throw __decorateServiceException(response, parsedBody);
|
|
5465
5441
|
}
|
|
@@ -5494,7 +5470,7 @@ export var deserializeAws_restJson1ListObjectChildrenCommand = function (output,
|
|
|
5494
5470
|
});
|
|
5495
5471
|
}); };
|
|
5496
5472
|
var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5497
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5473
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5498
5474
|
var _c;
|
|
5499
5475
|
return __generator(this, function (_d) {
|
|
5500
5476
|
switch (_d.label) {
|
|
@@ -5504,7 +5480,6 @@ var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, c
|
|
|
5504
5480
|
return [4, parseBody(output.body, context)];
|
|
5505
5481
|
case 1:
|
|
5506
5482
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5507
|
-
errorCode = "UnknownError";
|
|
5508
5483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5509
5484
|
_b = errorCode;
|
|
5510
5485
|
switch (_b) {
|
|
@@ -5552,10 +5527,12 @@ var deserializeAws_restJson1ListObjectChildrenCommandError = function (output, c
|
|
|
5552
5527
|
case 21: throw _d.sent();
|
|
5553
5528
|
case 22:
|
|
5554
5529
|
parsedBody = parsedOutput.body;
|
|
5530
|
+
$metadata = deserializeMetadata(output);
|
|
5531
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5555
5532
|
response = new __BaseException({
|
|
5556
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5533
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5557
5534
|
$fault: "client",
|
|
5558
|
-
$metadata:
|
|
5535
|
+
$metadata: $metadata,
|
|
5559
5536
|
});
|
|
5560
5537
|
throw __decorateServiceException(response, parsedBody);
|
|
5561
5538
|
}
|
|
@@ -5590,7 +5567,7 @@ export var deserializeAws_restJson1ListObjectParentPathsCommand = function (outp
|
|
|
5590
5567
|
});
|
|
5591
5568
|
}); };
|
|
5592
5569
|
var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5593
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5570
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5594
5571
|
var _c;
|
|
5595
5572
|
return __generator(this, function (_d) {
|
|
5596
5573
|
switch (_d.label) {
|
|
@@ -5600,7 +5577,6 @@ var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output
|
|
|
5600
5577
|
return [4, parseBody(output.body, context)];
|
|
5601
5578
|
case 1:
|
|
5602
5579
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5603
|
-
errorCode = "UnknownError";
|
|
5604
5580
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5605
5581
|
_b = errorCode;
|
|
5606
5582
|
switch (_b) {
|
|
@@ -5644,10 +5620,12 @@ var deserializeAws_restJson1ListObjectParentPathsCommandError = function (output
|
|
|
5644
5620
|
case 19: throw _d.sent();
|
|
5645
5621
|
case 20:
|
|
5646
5622
|
parsedBody = parsedOutput.body;
|
|
5623
|
+
$metadata = deserializeMetadata(output);
|
|
5624
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5647
5625
|
response = new __BaseException({
|
|
5648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5649
5627
|
$fault: "client",
|
|
5650
|
-
$metadata:
|
|
5628
|
+
$metadata: $metadata,
|
|
5651
5629
|
});
|
|
5652
5630
|
throw __decorateServiceException(response, parsedBody);
|
|
5653
5631
|
}
|
|
@@ -5686,7 +5664,7 @@ export var deserializeAws_restJson1ListObjectParentsCommand = function (output,
|
|
|
5686
5664
|
});
|
|
5687
5665
|
}); };
|
|
5688
5666
|
var deserializeAws_restJson1ListObjectParentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5689
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5667
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5690
5668
|
var _c;
|
|
5691
5669
|
return __generator(this, function (_d) {
|
|
5692
5670
|
switch (_d.label) {
|
|
@@ -5696,7 +5674,6 @@ var deserializeAws_restJson1ListObjectParentsCommandError = function (output, co
|
|
|
5696
5674
|
return [4, parseBody(output.body, context)];
|
|
5697
5675
|
case 1:
|
|
5698
5676
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5699
|
-
errorCode = "UnknownError";
|
|
5700
5677
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5701
5678
|
_b = errorCode;
|
|
5702
5679
|
switch (_b) {
|
|
@@ -5744,10 +5721,12 @@ var deserializeAws_restJson1ListObjectParentsCommandError = function (output, co
|
|
|
5744
5721
|
case 21: throw _d.sent();
|
|
5745
5722
|
case 22:
|
|
5746
5723
|
parsedBody = parsedOutput.body;
|
|
5724
|
+
$metadata = deserializeMetadata(output);
|
|
5725
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5747
5726
|
response = new __BaseException({
|
|
5748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5727
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5749
5728
|
$fault: "client",
|
|
5750
|
-
$metadata:
|
|
5729
|
+
$metadata: $metadata,
|
|
5751
5730
|
});
|
|
5752
5731
|
throw __decorateServiceException(response, parsedBody);
|
|
5753
5732
|
}
|
|
@@ -5782,7 +5761,7 @@ export var deserializeAws_restJson1ListObjectPoliciesCommand = function (output,
|
|
|
5782
5761
|
});
|
|
5783
5762
|
}); };
|
|
5784
5763
|
var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5785
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5764
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5786
5765
|
var _c;
|
|
5787
5766
|
return __generator(this, function (_d) {
|
|
5788
5767
|
switch (_d.label) {
|
|
@@ -5792,7 +5771,6 @@ var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, c
|
|
|
5792
5771
|
return [4, parseBody(output.body, context)];
|
|
5793
5772
|
case 1:
|
|
5794
5773
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5795
|
-
errorCode = "UnknownError";
|
|
5796
5774
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5797
5775
|
_b = errorCode;
|
|
5798
5776
|
switch (_b) {
|
|
@@ -5836,10 +5814,12 @@ var deserializeAws_restJson1ListObjectPoliciesCommandError = function (output, c
|
|
|
5836
5814
|
case 19: throw _d.sent();
|
|
5837
5815
|
case 20:
|
|
5838
5816
|
parsedBody = parsedOutput.body;
|
|
5817
|
+
$metadata = deserializeMetadata(output);
|
|
5818
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5839
5819
|
response = new __BaseException({
|
|
5840
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5841
5821
|
$fault: "client",
|
|
5842
|
-
$metadata:
|
|
5822
|
+
$metadata: $metadata,
|
|
5843
5823
|
});
|
|
5844
5824
|
throw __decorateServiceException(response, parsedBody);
|
|
5845
5825
|
}
|
|
@@ -5874,7 +5854,7 @@ export var deserializeAws_restJson1ListOutgoingTypedLinksCommand = function (out
|
|
|
5874
5854
|
});
|
|
5875
5855
|
}); };
|
|
5876
5856
|
var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5877
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5857
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5878
5858
|
var _c;
|
|
5879
5859
|
return __generator(this, function (_d) {
|
|
5880
5860
|
switch (_d.label) {
|
|
@@ -5884,7 +5864,6 @@ var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (outpu
|
|
|
5884
5864
|
return [4, parseBody(output.body, context)];
|
|
5885
5865
|
case 1:
|
|
5886
5866
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5887
|
-
errorCode = "UnknownError";
|
|
5888
5867
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5889
5868
|
_b = errorCode;
|
|
5890
5869
|
switch (_b) {
|
|
@@ -5932,10 +5911,12 @@ var deserializeAws_restJson1ListOutgoingTypedLinksCommandError = function (outpu
|
|
|
5932
5911
|
case 21: throw _d.sent();
|
|
5933
5912
|
case 22:
|
|
5934
5913
|
parsedBody = parsedOutput.body;
|
|
5914
|
+
$metadata = deserializeMetadata(output);
|
|
5915
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5935
5916
|
response = new __BaseException({
|
|
5936
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5917
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5937
5918
|
$fault: "client",
|
|
5938
|
-
$metadata:
|
|
5919
|
+
$metadata: $metadata,
|
|
5939
5920
|
});
|
|
5940
5921
|
throw __decorateServiceException(response, parsedBody);
|
|
5941
5922
|
}
|
|
@@ -5970,7 +5951,7 @@ export var deserializeAws_restJson1ListPolicyAttachmentsCommand = function (outp
|
|
|
5970
5951
|
});
|
|
5971
5952
|
}); };
|
|
5972
5953
|
var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5973
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5954
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5974
5955
|
var _c;
|
|
5975
5956
|
return __generator(this, function (_d) {
|
|
5976
5957
|
switch (_d.label) {
|
|
@@ -5980,7 +5961,6 @@ var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output
|
|
|
5980
5961
|
return [4, parseBody(output.body, context)];
|
|
5981
5962
|
case 1:
|
|
5982
5963
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5983
|
-
errorCode = "UnknownError";
|
|
5984
5964
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5985
5965
|
_b = errorCode;
|
|
5986
5966
|
switch (_b) {
|
|
@@ -6028,10 +6008,12 @@ var deserializeAws_restJson1ListPolicyAttachmentsCommandError = function (output
|
|
|
6028
6008
|
case 21: throw _d.sent();
|
|
6029
6009
|
case 22:
|
|
6030
6010
|
parsedBody = parsedOutput.body;
|
|
6011
|
+
$metadata = deserializeMetadata(output);
|
|
6012
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6031
6013
|
response = new __BaseException({
|
|
6032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6033
6015
|
$fault: "client",
|
|
6034
|
-
$metadata:
|
|
6016
|
+
$metadata: $metadata,
|
|
6035
6017
|
});
|
|
6036
6018
|
throw __decorateServiceException(response, parsedBody);
|
|
6037
6019
|
}
|
|
@@ -6066,7 +6048,7 @@ export var deserializeAws_restJson1ListPublishedSchemaArnsCommand = function (ou
|
|
|
6066
6048
|
});
|
|
6067
6049
|
}); };
|
|
6068
6050
|
var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6069
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6051
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6070
6052
|
var _c;
|
|
6071
6053
|
return __generator(this, function (_d) {
|
|
6072
6054
|
switch (_d.label) {
|
|
@@ -6076,7 +6058,6 @@ var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (outp
|
|
|
6076
6058
|
return [4, parseBody(output.body, context)];
|
|
6077
6059
|
case 1:
|
|
6078
6060
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6079
|
-
errorCode = "UnknownError";
|
|
6080
6061
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6081
6062
|
_b = errorCode;
|
|
6082
6063
|
switch (_b) {
|
|
@@ -6116,10 +6097,12 @@ var deserializeAws_restJson1ListPublishedSchemaArnsCommandError = function (outp
|
|
|
6116
6097
|
case 17: throw _d.sent();
|
|
6117
6098
|
case 18:
|
|
6118
6099
|
parsedBody = parsedOutput.body;
|
|
6100
|
+
$metadata = deserializeMetadata(output);
|
|
6101
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6119
6102
|
response = new __BaseException({
|
|
6120
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6103
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6121
6104
|
$fault: "client",
|
|
6122
|
-
$metadata:
|
|
6105
|
+
$metadata: $metadata,
|
|
6123
6106
|
});
|
|
6124
6107
|
throw __decorateServiceException(response, parsedBody);
|
|
6125
6108
|
}
|
|
@@ -6154,7 +6137,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
6154
6137
|
});
|
|
6155
6138
|
}); };
|
|
6156
6139
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6157
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6140
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6158
6141
|
var _c;
|
|
6159
6142
|
return __generator(this, function (_d) {
|
|
6160
6143
|
switch (_d.label) {
|
|
@@ -6164,7 +6147,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
6164
6147
|
return [4, parseBody(output.body, context)];
|
|
6165
6148
|
case 1:
|
|
6166
6149
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6167
|
-
errorCode = "UnknownError";
|
|
6168
6150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6169
6151
|
_b = errorCode;
|
|
6170
6152
|
switch (_b) {
|
|
@@ -6204,10 +6186,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
6204
6186
|
case 17: throw _d.sent();
|
|
6205
6187
|
case 18:
|
|
6206
6188
|
parsedBody = parsedOutput.body;
|
|
6189
|
+
$metadata = deserializeMetadata(output);
|
|
6190
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6207
6191
|
response = new __BaseException({
|
|
6208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6209
6193
|
$fault: "client",
|
|
6210
|
-
$metadata:
|
|
6194
|
+
$metadata: $metadata,
|
|
6211
6195
|
});
|
|
6212
6196
|
throw __decorateServiceException(response, parsedBody);
|
|
6213
6197
|
}
|
|
@@ -6242,7 +6226,7 @@ export var deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = functio
|
|
|
6242
6226
|
});
|
|
6243
6227
|
}); };
|
|
6244
6228
|
var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6245
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6229
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6246
6230
|
var _c;
|
|
6247
6231
|
return __generator(this, function (_d) {
|
|
6248
6232
|
switch (_d.label) {
|
|
@@ -6252,7 +6236,6 @@ var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function
|
|
|
6252
6236
|
return [4, parseBody(output.body, context)];
|
|
6253
6237
|
case 1:
|
|
6254
6238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6255
|
-
errorCode = "UnknownError";
|
|
6256
6239
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6257
6240
|
_b = errorCode;
|
|
6258
6241
|
switch (_b) {
|
|
@@ -6296,10 +6279,12 @@ var deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = function
|
|
|
6296
6279
|
case 19: throw _d.sent();
|
|
6297
6280
|
case 20:
|
|
6298
6281
|
parsedBody = parsedOutput.body;
|
|
6282
|
+
$metadata = deserializeMetadata(output);
|
|
6283
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6299
6284
|
response = new __BaseException({
|
|
6300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6301
6286
|
$fault: "client",
|
|
6302
|
-
$metadata:
|
|
6287
|
+
$metadata: $metadata,
|
|
6303
6288
|
});
|
|
6304
6289
|
throw __decorateServiceException(response, parsedBody);
|
|
6305
6290
|
}
|
|
@@ -6334,7 +6319,7 @@ export var deserializeAws_restJson1ListTypedLinkFacetNamesCommand = function (ou
|
|
|
6334
6319
|
});
|
|
6335
6320
|
}); };
|
|
6336
6321
|
var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6337
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6322
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6338
6323
|
var _c;
|
|
6339
6324
|
return __generator(this, function (_d) {
|
|
6340
6325
|
switch (_d.label) {
|
|
@@ -6344,7 +6329,6 @@ var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (outp
|
|
|
6344
6329
|
return [4, parseBody(output.body, context)];
|
|
6345
6330
|
case 1:
|
|
6346
6331
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6347
|
-
errorCode = "UnknownError";
|
|
6348
6332
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6349
6333
|
_b = errorCode;
|
|
6350
6334
|
switch (_b) {
|
|
@@ -6384,10 +6368,12 @@ var deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = function (outp
|
|
|
6384
6368
|
case 17: throw _d.sent();
|
|
6385
6369
|
case 18:
|
|
6386
6370
|
parsedBody = parsedOutput.body;
|
|
6371
|
+
$metadata = deserializeMetadata(output);
|
|
6372
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6387
6373
|
response = new __BaseException({
|
|
6388
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6389
6375
|
$fault: "client",
|
|
6390
|
-
$metadata:
|
|
6376
|
+
$metadata: $metadata,
|
|
6391
6377
|
});
|
|
6392
6378
|
throw __decorateServiceException(response, parsedBody);
|
|
6393
6379
|
}
|
|
@@ -6422,7 +6408,7 @@ export var deserializeAws_restJson1LookupPolicyCommand = function (output, conte
|
|
|
6422
6408
|
});
|
|
6423
6409
|
}); };
|
|
6424
6410
|
var deserializeAws_restJson1LookupPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6425
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6411
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6426
6412
|
var _c;
|
|
6427
6413
|
return __generator(this, function (_d) {
|
|
6428
6414
|
switch (_d.label) {
|
|
@@ -6432,7 +6418,6 @@ var deserializeAws_restJson1LookupPolicyCommandError = function (output, context
|
|
|
6432
6418
|
return [4, parseBody(output.body, context)];
|
|
6433
6419
|
case 1:
|
|
6434
6420
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6435
|
-
errorCode = "UnknownError";
|
|
6436
6421
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6437
6422
|
_b = errorCode;
|
|
6438
6423
|
switch (_b) {
|
|
@@ -6476,10 +6461,12 @@ var deserializeAws_restJson1LookupPolicyCommandError = function (output, context
|
|
|
6476
6461
|
case 19: throw _d.sent();
|
|
6477
6462
|
case 20:
|
|
6478
6463
|
parsedBody = parsedOutput.body;
|
|
6464
|
+
$metadata = deserializeMetadata(output);
|
|
6465
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6479
6466
|
response = new __BaseException({
|
|
6480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6467
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6481
6468
|
$fault: "client",
|
|
6482
|
-
$metadata:
|
|
6469
|
+
$metadata: $metadata,
|
|
6483
6470
|
});
|
|
6484
6471
|
throw __decorateServiceException(response, parsedBody);
|
|
6485
6472
|
}
|
|
@@ -6510,7 +6497,7 @@ export var deserializeAws_restJson1PublishSchemaCommand = function (output, cont
|
|
|
6510
6497
|
});
|
|
6511
6498
|
}); };
|
|
6512
6499
|
var deserializeAws_restJson1PublishSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6513
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6500
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6514
6501
|
var _c;
|
|
6515
6502
|
return __generator(this, function (_d) {
|
|
6516
6503
|
switch (_d.label) {
|
|
@@ -6520,7 +6507,6 @@ var deserializeAws_restJson1PublishSchemaCommandError = function (output, contex
|
|
|
6520
6507
|
return [4, parseBody(output.body, context)];
|
|
6521
6508
|
case 1:
|
|
6522
6509
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6523
|
-
errorCode = "UnknownError";
|
|
6524
6510
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6525
6511
|
_b = errorCode;
|
|
6526
6512
|
switch (_b) {
|
|
@@ -6560,10 +6546,12 @@ var deserializeAws_restJson1PublishSchemaCommandError = function (output, contex
|
|
|
6560
6546
|
case 17: throw _d.sent();
|
|
6561
6547
|
case 18:
|
|
6562
6548
|
parsedBody = parsedOutput.body;
|
|
6549
|
+
$metadata = deserializeMetadata(output);
|
|
6550
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6563
6551
|
response = new __BaseException({
|
|
6564
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6552
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6565
6553
|
$fault: "client",
|
|
6566
|
-
$metadata:
|
|
6554
|
+
$metadata: $metadata,
|
|
6567
6555
|
});
|
|
6568
6556
|
throw __decorateServiceException(response, parsedBody);
|
|
6569
6557
|
}
|
|
@@ -6594,7 +6582,7 @@ export var deserializeAws_restJson1PutSchemaFromJsonCommand = function (output,
|
|
|
6594
6582
|
});
|
|
6595
6583
|
}); };
|
|
6596
6584
|
var deserializeAws_restJson1PutSchemaFromJsonCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6597
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6585
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6598
6586
|
var _c;
|
|
6599
6587
|
return __generator(this, function (_d) {
|
|
6600
6588
|
switch (_d.label) {
|
|
@@ -6604,7 +6592,6 @@ var deserializeAws_restJson1PutSchemaFromJsonCommandError = function (output, co
|
|
|
6604
6592
|
return [4, parseBody(output.body, context)];
|
|
6605
6593
|
case 1:
|
|
6606
6594
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6607
|
-
errorCode = "UnknownError";
|
|
6608
6595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6609
6596
|
_b = errorCode;
|
|
6610
6597
|
switch (_b) {
|
|
@@ -6644,10 +6631,12 @@ var deserializeAws_restJson1PutSchemaFromJsonCommandError = function (output, co
|
|
|
6644
6631
|
case 17: throw _d.sent();
|
|
6645
6632
|
case 18:
|
|
6646
6633
|
parsedBody = parsedOutput.body;
|
|
6634
|
+
$metadata = deserializeMetadata(output);
|
|
6635
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6647
6636
|
response = new __BaseException({
|
|
6648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6649
6638
|
$fault: "client",
|
|
6650
|
-
$metadata:
|
|
6639
|
+
$metadata: $metadata,
|
|
6651
6640
|
});
|
|
6652
6641
|
throw __decorateServiceException(response, parsedBody);
|
|
6653
6642
|
}
|
|
@@ -6672,7 +6661,7 @@ export var deserializeAws_restJson1RemoveFacetFromObjectCommand = function (outp
|
|
|
6672
6661
|
});
|
|
6673
6662
|
}); };
|
|
6674
6663
|
var deserializeAws_restJson1RemoveFacetFromObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6675
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6664
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6676
6665
|
var _c;
|
|
6677
6666
|
return __generator(this, function (_d) {
|
|
6678
6667
|
switch (_d.label) {
|
|
@@ -6682,7 +6671,6 @@ var deserializeAws_restJson1RemoveFacetFromObjectCommandError = function (output
|
|
|
6682
6671
|
return [4, parseBody(output.body, context)];
|
|
6683
6672
|
case 1:
|
|
6684
6673
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6685
|
-
errorCode = "UnknownError";
|
|
6686
6674
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6687
6675
|
_b = errorCode;
|
|
6688
6676
|
switch (_b) {
|
|
@@ -6726,10 +6714,12 @@ var deserializeAws_restJson1RemoveFacetFromObjectCommandError = function (output
|
|
|
6726
6714
|
case 19: throw _d.sent();
|
|
6727
6715
|
case 20:
|
|
6728
6716
|
parsedBody = parsedOutput.body;
|
|
6717
|
+
$metadata = deserializeMetadata(output);
|
|
6718
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6729
6719
|
response = new __BaseException({
|
|
6730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6731
6721
|
$fault: "client",
|
|
6732
|
-
$metadata:
|
|
6722
|
+
$metadata: $metadata,
|
|
6733
6723
|
});
|
|
6734
6724
|
throw __decorateServiceException(response, parsedBody);
|
|
6735
6725
|
}
|
|
@@ -6754,7 +6744,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
6754
6744
|
});
|
|
6755
6745
|
}); };
|
|
6756
6746
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6757
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6747
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6758
6748
|
var _c;
|
|
6759
6749
|
return __generator(this, function (_d) {
|
|
6760
6750
|
switch (_d.label) {
|
|
@@ -6764,7 +6754,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
6764
6754
|
return [4, parseBody(output.body, context)];
|
|
6765
6755
|
case 1:
|
|
6766
6756
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6767
|
-
errorCode = "UnknownError";
|
|
6768
6757
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6769
6758
|
_b = errorCode;
|
|
6770
6759
|
switch (_b) {
|
|
@@ -6804,10 +6793,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
6804
6793
|
case 17: throw _d.sent();
|
|
6805
6794
|
case 18:
|
|
6806
6795
|
parsedBody = parsedOutput.body;
|
|
6796
|
+
$metadata = deserializeMetadata(output);
|
|
6797
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6807
6798
|
response = new __BaseException({
|
|
6808
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6799
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6809
6800
|
$fault: "client",
|
|
6810
|
-
$metadata:
|
|
6801
|
+
$metadata: $metadata,
|
|
6811
6802
|
});
|
|
6812
6803
|
throw __decorateServiceException(response, parsedBody);
|
|
6813
6804
|
}
|
|
@@ -6832,7 +6823,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
6832
6823
|
});
|
|
6833
6824
|
}); };
|
|
6834
6825
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6835
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6826
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6836
6827
|
var _c;
|
|
6837
6828
|
return __generator(this, function (_d) {
|
|
6838
6829
|
switch (_d.label) {
|
|
@@ -6842,7 +6833,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
6842
6833
|
return [4, parseBody(output.body, context)];
|
|
6843
6834
|
case 1:
|
|
6844
6835
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6845
|
-
errorCode = "UnknownError";
|
|
6846
6836
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6847
6837
|
_b = errorCode;
|
|
6848
6838
|
switch (_b) {
|
|
@@ -6882,10 +6872,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
6882
6872
|
case 17: throw _d.sent();
|
|
6883
6873
|
case 18:
|
|
6884
6874
|
parsedBody = parsedOutput.body;
|
|
6875
|
+
$metadata = deserializeMetadata(output);
|
|
6876
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6885
6877
|
response = new __BaseException({
|
|
6886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6887
6879
|
$fault: "client",
|
|
6888
|
-
$metadata:
|
|
6880
|
+
$metadata: $metadata,
|
|
6889
6881
|
});
|
|
6890
6882
|
throw __decorateServiceException(response, parsedBody);
|
|
6891
6883
|
}
|
|
@@ -6910,7 +6902,7 @@ export var deserializeAws_restJson1UpdateFacetCommand = function (output, contex
|
|
|
6910
6902
|
});
|
|
6911
6903
|
}); };
|
|
6912
6904
|
var deserializeAws_restJson1UpdateFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6913
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6905
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6914
6906
|
var _c;
|
|
6915
6907
|
return __generator(this, function (_d) {
|
|
6916
6908
|
switch (_d.label) {
|
|
@@ -6920,7 +6912,6 @@ var deserializeAws_restJson1UpdateFacetCommandError = function (output, context)
|
|
|
6920
6912
|
return [4, parseBody(output.body, context)];
|
|
6921
6913
|
case 1:
|
|
6922
6914
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6923
|
-
errorCode = "UnknownError";
|
|
6924
6915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6925
6916
|
_b = errorCode;
|
|
6926
6917
|
switch (_b) {
|
|
@@ -6972,10 +6963,12 @@ var deserializeAws_restJson1UpdateFacetCommandError = function (output, context)
|
|
|
6972
6963
|
case 23: throw _d.sent();
|
|
6973
6964
|
case 24:
|
|
6974
6965
|
parsedBody = parsedOutput.body;
|
|
6966
|
+
$metadata = deserializeMetadata(output);
|
|
6967
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6975
6968
|
response = new __BaseException({
|
|
6976
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6969
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6977
6970
|
$fault: "client",
|
|
6978
|
-
$metadata:
|
|
6971
|
+
$metadata: $metadata,
|
|
6979
6972
|
});
|
|
6980
6973
|
throw __decorateServiceException(response, parsedBody);
|
|
6981
6974
|
}
|
|
@@ -7000,7 +6993,7 @@ export var deserializeAws_restJson1UpdateLinkAttributesCommand = function (outpu
|
|
|
7000
6993
|
});
|
|
7001
6994
|
}); };
|
|
7002
6995
|
var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7003
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
6996
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
7004
6997
|
var _c;
|
|
7005
6998
|
return __generator(this, function (_d) {
|
|
7006
6999
|
switch (_d.label) {
|
|
@@ -7010,7 +7003,6 @@ var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output,
|
|
|
7010
7003
|
return [4, parseBody(output.body, context)];
|
|
7011
7004
|
case 1:
|
|
7012
7005
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7013
|
-
errorCode = "UnknownError";
|
|
7014
7006
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7015
7007
|
_b = errorCode;
|
|
7016
7008
|
switch (_b) {
|
|
@@ -7054,10 +7046,12 @@ var deserializeAws_restJson1UpdateLinkAttributesCommandError = function (output,
|
|
|
7054
7046
|
case 19: throw _d.sent();
|
|
7055
7047
|
case 20:
|
|
7056
7048
|
parsedBody = parsedOutput.body;
|
|
7049
|
+
$metadata = deserializeMetadata(output);
|
|
7050
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7057
7051
|
response = new __BaseException({
|
|
7058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7059
7053
|
$fault: "client",
|
|
7060
|
-
$metadata:
|
|
7054
|
+
$metadata: $metadata,
|
|
7061
7055
|
});
|
|
7062
7056
|
throw __decorateServiceException(response, parsedBody);
|
|
7063
7057
|
}
|
|
@@ -7088,7 +7082,7 @@ export var deserializeAws_restJson1UpdateObjectAttributesCommand = function (out
|
|
|
7088
7082
|
});
|
|
7089
7083
|
}); };
|
|
7090
7084
|
var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7091
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
7085
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
7092
7086
|
var _c;
|
|
7093
7087
|
return __generator(this, function (_d) {
|
|
7094
7088
|
switch (_d.label) {
|
|
@@ -7098,7 +7092,6 @@ var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (outpu
|
|
|
7098
7092
|
return [4, parseBody(output.body, context)];
|
|
7099
7093
|
case 1:
|
|
7100
7094
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7101
|
-
errorCode = "UnknownError";
|
|
7102
7095
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7103
7096
|
_b = errorCode;
|
|
7104
7097
|
switch (_b) {
|
|
@@ -7146,10 +7139,12 @@ var deserializeAws_restJson1UpdateObjectAttributesCommandError = function (outpu
|
|
|
7146
7139
|
case 21: throw _d.sent();
|
|
7147
7140
|
case 22:
|
|
7148
7141
|
parsedBody = parsedOutput.body;
|
|
7142
|
+
$metadata = deserializeMetadata(output);
|
|
7143
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7149
7144
|
response = new __BaseException({
|
|
7150
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7151
7146
|
$fault: "client",
|
|
7152
|
-
$metadata:
|
|
7147
|
+
$metadata: $metadata,
|
|
7153
7148
|
});
|
|
7154
7149
|
throw __decorateServiceException(response, parsedBody);
|
|
7155
7150
|
}
|
|
@@ -7180,7 +7175,7 @@ export var deserializeAws_restJson1UpdateSchemaCommand = function (output, conte
|
|
|
7180
7175
|
});
|
|
7181
7176
|
}); };
|
|
7182
7177
|
var deserializeAws_restJson1UpdateSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7183
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
7178
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
7184
7179
|
var _c;
|
|
7185
7180
|
return __generator(this, function (_d) {
|
|
7186
7181
|
switch (_d.label) {
|
|
@@ -7190,7 +7185,6 @@ var deserializeAws_restJson1UpdateSchemaCommandError = function (output, context
|
|
|
7190
7185
|
return [4, parseBody(output.body, context)];
|
|
7191
7186
|
case 1:
|
|
7192
7187
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7193
|
-
errorCode = "UnknownError";
|
|
7194
7188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7195
7189
|
_b = errorCode;
|
|
7196
7190
|
switch (_b) {
|
|
@@ -7226,10 +7220,12 @@ var deserializeAws_restJson1UpdateSchemaCommandError = function (output, context
|
|
|
7226
7220
|
case 15: throw _d.sent();
|
|
7227
7221
|
case 16:
|
|
7228
7222
|
parsedBody = parsedOutput.body;
|
|
7223
|
+
$metadata = deserializeMetadata(output);
|
|
7224
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7229
7225
|
response = new __BaseException({
|
|
7230
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7231
7227
|
$fault: "client",
|
|
7232
|
-
$metadata:
|
|
7228
|
+
$metadata: $metadata,
|
|
7233
7229
|
});
|
|
7234
7230
|
throw __decorateServiceException(response, parsedBody);
|
|
7235
7231
|
}
|
|
@@ -7254,7 +7250,7 @@ export var deserializeAws_restJson1UpdateTypedLinkFacetCommand = function (outpu
|
|
|
7254
7250
|
});
|
|
7255
7251
|
}); };
|
|
7256
7252
|
var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7257
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
7253
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
7258
7254
|
var _c;
|
|
7259
7255
|
return __generator(this, function (_d) {
|
|
7260
7256
|
switch (_d.label) {
|
|
@@ -7264,7 +7260,6 @@ var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output,
|
|
|
7264
7260
|
return [4, parseBody(output.body, context)];
|
|
7265
7261
|
case 1:
|
|
7266
7262
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7267
|
-
errorCode = "UnknownError";
|
|
7268
7263
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7269
7264
|
_b = errorCode;
|
|
7270
7265
|
switch (_b) {
|
|
@@ -7316,10 +7311,12 @@ var deserializeAws_restJson1UpdateTypedLinkFacetCommandError = function (output,
|
|
|
7316
7311
|
case 23: throw _d.sent();
|
|
7317
7312
|
case 24:
|
|
7318
7313
|
parsedBody = parsedOutput.body;
|
|
7314
|
+
$metadata = deserializeMetadata(output);
|
|
7315
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7319
7316
|
response = new __BaseException({
|
|
7320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7321
7318
|
$fault: "client",
|
|
7322
|
-
$metadata:
|
|
7319
|
+
$metadata: $metadata,
|
|
7323
7320
|
});
|
|
7324
7321
|
throw __decorateServiceException(response, parsedBody);
|
|
7325
7322
|
}
|
|
@@ -7354,7 +7351,7 @@ export var deserializeAws_restJson1UpgradeAppliedSchemaCommand = function (outpu
|
|
|
7354
7351
|
});
|
|
7355
7352
|
}); };
|
|
7356
7353
|
var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7357
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
7354
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
7358
7355
|
var _c;
|
|
7359
7356
|
return __generator(this, function (_d) {
|
|
7360
7357
|
switch (_d.label) {
|
|
@@ -7364,7 +7361,6 @@ var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output,
|
|
|
7364
7361
|
return [4, parseBody(output.body, context)];
|
|
7365
7362
|
case 1:
|
|
7366
7363
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7367
|
-
errorCode = "UnknownError";
|
|
7368
7364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7369
7365
|
_b = errorCode;
|
|
7370
7366
|
switch (_b) {
|
|
@@ -7408,10 +7404,12 @@ var deserializeAws_restJson1UpgradeAppliedSchemaCommandError = function (output,
|
|
|
7408
7404
|
case 19: throw _d.sent();
|
|
7409
7405
|
case 20:
|
|
7410
7406
|
parsedBody = parsedOutput.body;
|
|
7407
|
+
$metadata = deserializeMetadata(output);
|
|
7408
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7411
7409
|
response = new __BaseException({
|
|
7412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7413
7411
|
$fault: "client",
|
|
7414
|
-
$metadata:
|
|
7412
|
+
$metadata: $metadata,
|
|
7415
7413
|
});
|
|
7416
7414
|
throw __decorateServiceException(response, parsedBody);
|
|
7417
7415
|
}
|
|
@@ -7442,7 +7440,7 @@ export var deserializeAws_restJson1UpgradePublishedSchemaCommand = function (out
|
|
|
7442
7440
|
});
|
|
7443
7441
|
}); };
|
|
7444
7442
|
var deserializeAws_restJson1UpgradePublishedSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7445
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
7443
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
7446
7444
|
var _c;
|
|
7447
7445
|
return __generator(this, function (_d) {
|
|
7448
7446
|
switch (_d.label) {
|
|
@@ -7452,7 +7450,6 @@ var deserializeAws_restJson1UpgradePublishedSchemaCommandError = function (outpu
|
|
|
7452
7450
|
return [4, parseBody(output.body, context)];
|
|
7453
7451
|
case 1:
|
|
7454
7452
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
7455
|
-
errorCode = "UnknownError";
|
|
7456
7453
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7457
7454
|
_b = errorCode;
|
|
7458
7455
|
switch (_b) {
|
|
@@ -7496,10 +7493,12 @@ var deserializeAws_restJson1UpgradePublishedSchemaCommandError = function (outpu
|
|
|
7496
7493
|
case 19: throw _d.sent();
|
|
7497
7494
|
case 20:
|
|
7498
7495
|
parsedBody = parsedOutput.body;
|
|
7496
|
+
$metadata = deserializeMetadata(output);
|
|
7497
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
7499
7498
|
response = new __BaseException({
|
|
7500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
7501
7500
|
$fault: "client",
|
|
7502
|
-
$metadata:
|
|
7501
|
+
$metadata: $metadata,
|
|
7503
7502
|
});
|
|
7504
7503
|
throw __decorateServiceException(response, parsedBody);
|
|
7505
7504
|
}
|
|
@@ -7932,12 +7931,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
7932
7931
|
});
|
|
7933
7932
|
}); };
|
|
7934
7933
|
var serializeAws_restJson1AttributeKey = function (input, context) {
|
|
7935
|
-
return __assign(__assign(__assign({}, (input.FacetName
|
|
7934
|
+
return __assign(__assign(__assign({}, (input.FacetName != null && { FacetName: input.FacetName })), (input.Name != null && { Name: input.Name })), (input.SchemaArn != null && { SchemaArn: input.SchemaArn }));
|
|
7936
7935
|
};
|
|
7937
7936
|
var serializeAws_restJson1AttributeKeyAndValue = function (input, context) {
|
|
7938
|
-
return __assign(__assign({}, (input.Key
|
|
7939
|
-
input.Key !== null && { Key: serializeAws_restJson1AttributeKey(input.Key, context) })), (input.Value !== undefined &&
|
|
7940
|
-
input.Value !== null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }));
|
|
7937
|
+
return __assign(__assign({}, (input.Key != null && { Key: serializeAws_restJson1AttributeKey(input.Key, context) })), (input.Value != null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }));
|
|
7941
7938
|
};
|
|
7942
7939
|
var serializeAws_restJson1AttributeKeyAndValueList = function (input, context) {
|
|
7943
7940
|
return input
|
|
@@ -7960,8 +7957,7 @@ var serializeAws_restJson1AttributeKeyList = function (input, context) {
|
|
|
7960
7957
|
});
|
|
7961
7958
|
};
|
|
7962
7959
|
var serializeAws_restJson1AttributeNameAndValue = function (input, context) {
|
|
7963
|
-
return __assign(__assign({}, (input.AttributeName
|
|
7964
|
-
input.Value !== null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }));
|
|
7960
|
+
return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.Value != null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }));
|
|
7965
7961
|
};
|
|
7966
7962
|
var serializeAws_restJson1AttributeNameAndValueList = function (input, context) {
|
|
7967
7963
|
return input
|
|
@@ -7984,262 +7980,199 @@ var serializeAws_restJson1AttributeNameList = function (input, context) {
|
|
|
7984
7980
|
});
|
|
7985
7981
|
};
|
|
7986
7982
|
var serializeAws_restJson1BatchAddFacetToObject = function (input, context) {
|
|
7987
|
-
return __assign(__assign(__assign({}, (input.ObjectAttributeList
|
|
7988
|
-
input.ObjectAttributeList !== null && {
|
|
7983
|
+
return __assign(__assign(__assign({}, (input.ObjectAttributeList != null && {
|
|
7989
7984
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
7990
|
-
})), (input.ObjectReference
|
|
7991
|
-
input.ObjectReference !== null && {
|
|
7985
|
+
})), (input.ObjectReference != null && {
|
|
7992
7986
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
7993
|
-
})), (input.SchemaFacet
|
|
7994
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
7987
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
7995
7988
|
};
|
|
7996
7989
|
var serializeAws_restJson1BatchAttachObject = function (input, context) {
|
|
7997
|
-
return __assign(__assign(__assign({}, (input.ChildReference
|
|
7998
|
-
input.ChildReference !== null && {
|
|
7990
|
+
return __assign(__assign(__assign({}, (input.ChildReference != null && {
|
|
7999
7991
|
ChildReference: serializeAws_restJson1ObjectReference(input.ChildReference, context),
|
|
8000
|
-
})), (input.LinkName
|
|
8001
|
-
input.ParentReference !== null && {
|
|
7992
|
+
})), (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
8002
7993
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8003
7994
|
}));
|
|
8004
7995
|
};
|
|
8005
7996
|
var serializeAws_restJson1BatchAttachPolicy = function (input, context) {
|
|
8006
|
-
return __assign(__assign({}, (input.ObjectReference
|
|
8007
|
-
input.ObjectReference !== null && {
|
|
7997
|
+
return __assign(__assign({}, (input.ObjectReference != null && {
|
|
8008
7998
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8009
|
-
})), (input.PolicyReference
|
|
8010
|
-
input.PolicyReference !== null && {
|
|
7999
|
+
})), (input.PolicyReference != null && {
|
|
8011
8000
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
8012
8001
|
}));
|
|
8013
8002
|
};
|
|
8014
8003
|
var serializeAws_restJson1BatchAttachToIndex = function (input, context) {
|
|
8015
|
-
return __assign(__assign({}, (input.IndexReference
|
|
8016
|
-
input.IndexReference !== null && {
|
|
8004
|
+
return __assign(__assign({}, (input.IndexReference != null && {
|
|
8017
8005
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
8018
|
-
})), (input.TargetReference
|
|
8019
|
-
input.TargetReference !== null && {
|
|
8006
|
+
})), (input.TargetReference != null && {
|
|
8020
8007
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
8021
8008
|
}));
|
|
8022
8009
|
};
|
|
8023
8010
|
var serializeAws_restJson1BatchAttachTypedLink = function (input, context) {
|
|
8024
|
-
return __assign(__assign(__assign(__assign({}, (input.Attributes
|
|
8025
|
-
input.Attributes !== null && {
|
|
8011
|
+
return __assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
8026
8012
|
Attributes: serializeAws_restJson1AttributeNameAndValueList(input.Attributes, context),
|
|
8027
|
-
})), (input.SourceObjectReference
|
|
8028
|
-
input.SourceObjectReference !== null && {
|
|
8013
|
+
})), (input.SourceObjectReference != null && {
|
|
8029
8014
|
SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
|
|
8030
|
-
})), (input.TargetObjectReference
|
|
8031
|
-
input.TargetObjectReference !== null && {
|
|
8015
|
+
})), (input.TargetObjectReference != null && {
|
|
8032
8016
|
TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
|
|
8033
|
-
})), (input.TypedLinkFacet
|
|
8034
|
-
input.TypedLinkFacet !== null && {
|
|
8017
|
+
})), (input.TypedLinkFacet != null && {
|
|
8035
8018
|
TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
|
|
8036
8019
|
}));
|
|
8037
8020
|
};
|
|
8038
8021
|
var serializeAws_restJson1BatchCreateIndex = function (input, context) {
|
|
8039
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchReferenceName
|
|
8040
|
-
input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName })), (input.IsUnique !== undefined && input.IsUnique !== null && { IsUnique: input.IsUnique })), (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.OrderedIndexedAttributeList !== undefined &&
|
|
8041
|
-
input.OrderedIndexedAttributeList !== null && {
|
|
8022
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName })), (input.IsUnique != null && { IsUnique: input.IsUnique })), (input.LinkName != null && { LinkName: input.LinkName })), (input.OrderedIndexedAttributeList != null && {
|
|
8042
8023
|
OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
|
|
8043
|
-
})), (input.ParentReference
|
|
8044
|
-
input.ParentReference !== null && {
|
|
8024
|
+
})), (input.ParentReference != null && {
|
|
8045
8025
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8046
8026
|
}));
|
|
8047
8027
|
};
|
|
8048
8028
|
var serializeAws_restJson1BatchCreateObject = function (input, context) {
|
|
8049
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchReferenceName
|
|
8050
|
-
input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.ObjectAttributeList !== undefined &&
|
|
8051
|
-
input.ObjectAttributeList !== null && {
|
|
8029
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName != null && { LinkName: input.LinkName })), (input.ObjectAttributeList != null && {
|
|
8052
8030
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
8053
|
-
})), (input.ParentReference
|
|
8054
|
-
input.ParentReference !== null && {
|
|
8031
|
+
})), (input.ParentReference != null && {
|
|
8055
8032
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8056
|
-
})), (input.SchemaFacet
|
|
8057
|
-
|
|
8033
|
+
})), (input.SchemaFacet != null && {
|
|
8034
|
+
SchemaFacet: serializeAws_restJson1SchemaFacetList(input.SchemaFacet, context),
|
|
8035
|
+
}));
|
|
8058
8036
|
};
|
|
8059
8037
|
var serializeAws_restJson1BatchDeleteObject = function (input, context) {
|
|
8060
|
-
return __assign({}, (input.ObjectReference
|
|
8061
|
-
input.ObjectReference !== null && {
|
|
8038
|
+
return __assign({}, (input.ObjectReference != null && {
|
|
8062
8039
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8063
8040
|
}));
|
|
8064
8041
|
};
|
|
8065
8042
|
var serializeAws_restJson1BatchDetachFromIndex = function (input, context) {
|
|
8066
|
-
return __assign(__assign({}, (input.IndexReference
|
|
8067
|
-
input.IndexReference !== null && {
|
|
8043
|
+
return __assign(__assign({}, (input.IndexReference != null && {
|
|
8068
8044
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
8069
|
-
})), (input.TargetReference
|
|
8070
|
-
input.TargetReference !== null && {
|
|
8045
|
+
})), (input.TargetReference != null && {
|
|
8071
8046
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
8072
8047
|
}));
|
|
8073
8048
|
};
|
|
8074
8049
|
var serializeAws_restJson1BatchDetachObject = function (input, context) {
|
|
8075
|
-
return __assign(__assign(__assign({}, (input.BatchReferenceName
|
|
8076
|
-
input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.ParentReference !== undefined &&
|
|
8077
|
-
input.ParentReference !== null && {
|
|
8050
|
+
return __assign(__assign(__assign({}, (input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
8078
8051
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8079
8052
|
}));
|
|
8080
8053
|
};
|
|
8081
8054
|
var serializeAws_restJson1BatchDetachPolicy = function (input, context) {
|
|
8082
|
-
return __assign(__assign({}, (input.ObjectReference
|
|
8083
|
-
input.ObjectReference !== null && {
|
|
8055
|
+
return __assign(__assign({}, (input.ObjectReference != null && {
|
|
8084
8056
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8085
|
-
})), (input.PolicyReference
|
|
8086
|
-
input.PolicyReference !== null && {
|
|
8057
|
+
})), (input.PolicyReference != null && {
|
|
8087
8058
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
8088
8059
|
}));
|
|
8089
8060
|
};
|
|
8090
8061
|
var serializeAws_restJson1BatchDetachTypedLink = function (input, context) {
|
|
8091
|
-
return __assign({}, (input.TypedLinkSpecifier
|
|
8092
|
-
input.TypedLinkSpecifier !== null && {
|
|
8062
|
+
return __assign({}, (input.TypedLinkSpecifier != null && {
|
|
8093
8063
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
8094
8064
|
}));
|
|
8095
8065
|
};
|
|
8096
8066
|
var serializeAws_restJson1BatchGetLinkAttributes = function (input, context) {
|
|
8097
|
-
return __assign(__assign({}, (input.AttributeNames
|
|
8098
|
-
input.AttributeNames !== null && {
|
|
8067
|
+
return __assign(__assign({}, (input.AttributeNames != null && {
|
|
8099
8068
|
AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
|
|
8100
|
-
})), (input.TypedLinkSpecifier
|
|
8101
|
-
input.TypedLinkSpecifier !== null && {
|
|
8069
|
+
})), (input.TypedLinkSpecifier != null && {
|
|
8102
8070
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
8103
8071
|
}));
|
|
8104
8072
|
};
|
|
8105
8073
|
var serializeAws_restJson1BatchGetObjectAttributes = function (input, context) {
|
|
8106
|
-
return __assign(__assign(__assign({}, (input.AttributeNames
|
|
8107
|
-
input.AttributeNames !== null && {
|
|
8074
|
+
return __assign(__assign(__assign({}, (input.AttributeNames != null && {
|
|
8108
8075
|
AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
|
|
8109
|
-
})), (input.ObjectReference
|
|
8110
|
-
input.ObjectReference !== null && {
|
|
8076
|
+
})), (input.ObjectReference != null && {
|
|
8111
8077
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8112
|
-
})), (input.SchemaFacet
|
|
8113
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8078
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8114
8079
|
};
|
|
8115
8080
|
var serializeAws_restJson1BatchGetObjectInformation = function (input, context) {
|
|
8116
|
-
return __assign({}, (input.ObjectReference
|
|
8117
|
-
input.ObjectReference !== null && {
|
|
8081
|
+
return __assign({}, (input.ObjectReference != null && {
|
|
8118
8082
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8119
8083
|
}));
|
|
8120
8084
|
};
|
|
8121
8085
|
var serializeAws_restJson1BatchListAttachedIndices = function (input, context) {
|
|
8122
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8123
|
-
input.TargetReference !== null && {
|
|
8086
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TargetReference != null && {
|
|
8124
8087
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
8125
8088
|
}));
|
|
8126
8089
|
};
|
|
8127
8090
|
var serializeAws_restJson1BatchListIncomingTypedLinks = function (input, context) {
|
|
8128
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges
|
|
8129
|
-
input.FilterAttributeRanges !== null && {
|
|
8091
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges != null && {
|
|
8130
8092
|
FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
|
|
8131
|
-
})), (input.FilterTypedLink
|
|
8132
|
-
input.FilterTypedLink !== null && {
|
|
8093
|
+
})), (input.FilterTypedLink != null && {
|
|
8133
8094
|
FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
|
|
8134
|
-
})), (input.MaxResults
|
|
8135
|
-
input.ObjectReference !== null && {
|
|
8095
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8136
8096
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8137
8097
|
}));
|
|
8138
8098
|
};
|
|
8139
8099
|
var serializeAws_restJson1BatchListIndex = function (input, context) {
|
|
8140
|
-
return __assign(__assign(__assign(__assign({}, (input.IndexReference
|
|
8141
|
-
input.IndexReference !== null && {
|
|
8100
|
+
return __assign(__assign(__assign(__assign({}, (input.IndexReference != null && {
|
|
8142
8101
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
8143
|
-
})), (input.MaxResults
|
|
8144
|
-
input.RangesOnIndexedValues !== null && {
|
|
8102
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.RangesOnIndexedValues != null && {
|
|
8145
8103
|
RangesOnIndexedValues: serializeAws_restJson1ObjectAttributeRangeList(input.RangesOnIndexedValues, context),
|
|
8146
8104
|
}));
|
|
8147
8105
|
};
|
|
8148
8106
|
var serializeAws_restJson1BatchListObjectAttributes = function (input, context) {
|
|
8149
|
-
return __assign(__assign(__assign(__assign({}, (input.FacetFilter
|
|
8150
|
-
input.FacetFilter !== null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
|
|
8151
|
-
input.ObjectReference !== null && {
|
|
8107
|
+
return __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 && {
|
|
8152
8108
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8153
8109
|
}));
|
|
8154
8110
|
};
|
|
8155
8111
|
var serializeAws_restJson1BatchListObjectChildren = function (input, context) {
|
|
8156
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8157
|
-
input.ObjectReference !== null && {
|
|
8112
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8158
8113
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8159
8114
|
}));
|
|
8160
8115
|
};
|
|
8161
8116
|
var serializeAws_restJson1BatchListObjectParentPaths = function (input, context) {
|
|
8162
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8163
|
-
input.ObjectReference !== null && {
|
|
8117
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8164
8118
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8165
8119
|
}));
|
|
8166
8120
|
};
|
|
8167
8121
|
var serializeAws_restJson1BatchListObjectParents = function (input, context) {
|
|
8168
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8169
|
-
input.ObjectReference !== null && {
|
|
8122
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8170
8123
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8171
8124
|
}));
|
|
8172
8125
|
};
|
|
8173
8126
|
var serializeAws_restJson1BatchListObjectPolicies = function (input, context) {
|
|
8174
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8175
|
-
input.ObjectReference !== null && {
|
|
8127
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8176
8128
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8177
8129
|
}));
|
|
8178
8130
|
};
|
|
8179
8131
|
var serializeAws_restJson1BatchListOutgoingTypedLinks = function (input, context) {
|
|
8180
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges
|
|
8181
|
-
input.FilterAttributeRanges !== null && {
|
|
8132
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges != null && {
|
|
8182
8133
|
FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
|
|
8183
|
-
})), (input.FilterTypedLink
|
|
8184
|
-
input.FilterTypedLink !== null && {
|
|
8134
|
+
})), (input.FilterTypedLink != null && {
|
|
8185
8135
|
FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
|
|
8186
|
-
})), (input.MaxResults
|
|
8187
|
-
input.ObjectReference !== null && {
|
|
8136
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8188
8137
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8189
8138
|
}));
|
|
8190
8139
|
};
|
|
8191
8140
|
var serializeAws_restJson1BatchListPolicyAttachments = function (input, context) {
|
|
8192
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8193
|
-
input.PolicyReference !== null && {
|
|
8141
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyReference != null && {
|
|
8194
8142
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
8195
8143
|
}));
|
|
8196
8144
|
};
|
|
8197
8145
|
var serializeAws_restJson1BatchLookupPolicy = function (input, context) {
|
|
8198
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8199
|
-
input.ObjectReference !== null && {
|
|
8146
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8200
8147
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8201
8148
|
}));
|
|
8202
8149
|
};
|
|
8203
8150
|
var serializeAws_restJson1BatchReadOperation = function (input, context) {
|
|
8204
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GetLinkAttributes
|
|
8205
|
-
input.GetLinkAttributes !== null && {
|
|
8151
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GetLinkAttributes != null && {
|
|
8206
8152
|
GetLinkAttributes: serializeAws_restJson1BatchGetLinkAttributes(input.GetLinkAttributes, context),
|
|
8207
|
-
})), (input.GetObjectAttributes
|
|
8208
|
-
input.GetObjectAttributes !== null && {
|
|
8153
|
+
})), (input.GetObjectAttributes != null && {
|
|
8209
8154
|
GetObjectAttributes: serializeAws_restJson1BatchGetObjectAttributes(input.GetObjectAttributes, context),
|
|
8210
|
-
})), (input.GetObjectInformation
|
|
8211
|
-
input.GetObjectInformation !== null && {
|
|
8155
|
+
})), (input.GetObjectInformation != null && {
|
|
8212
8156
|
GetObjectInformation: serializeAws_restJson1BatchGetObjectInformation(input.GetObjectInformation, context),
|
|
8213
|
-
})), (input.ListAttachedIndices
|
|
8214
|
-
input.ListAttachedIndices !== null && {
|
|
8157
|
+
})), (input.ListAttachedIndices != null && {
|
|
8215
8158
|
ListAttachedIndices: serializeAws_restJson1BatchListAttachedIndices(input.ListAttachedIndices, context),
|
|
8216
|
-
})), (input.ListIncomingTypedLinks
|
|
8217
|
-
input.ListIncomingTypedLinks !== null && {
|
|
8159
|
+
})), (input.ListIncomingTypedLinks != null && {
|
|
8218
8160
|
ListIncomingTypedLinks: serializeAws_restJson1BatchListIncomingTypedLinks(input.ListIncomingTypedLinks, context),
|
|
8219
|
-
})), (input.ListIndex
|
|
8220
|
-
input.ListIndex !== null && { ListIndex: serializeAws_restJson1BatchListIndex(input.ListIndex, context) })), (input.ListObjectAttributes !== undefined &&
|
|
8221
|
-
input.ListObjectAttributes !== null && {
|
|
8161
|
+
})), (input.ListIndex != null && { ListIndex: serializeAws_restJson1BatchListIndex(input.ListIndex, context) })), (input.ListObjectAttributes != null && {
|
|
8222
8162
|
ListObjectAttributes: serializeAws_restJson1BatchListObjectAttributes(input.ListObjectAttributes, context),
|
|
8223
|
-
})), (input.ListObjectChildren
|
|
8224
|
-
input.ListObjectChildren !== null && {
|
|
8163
|
+
})), (input.ListObjectChildren != null && {
|
|
8225
8164
|
ListObjectChildren: serializeAws_restJson1BatchListObjectChildren(input.ListObjectChildren, context),
|
|
8226
|
-
})), (input.ListObjectParentPaths
|
|
8227
|
-
input.ListObjectParentPaths !== null && {
|
|
8165
|
+
})), (input.ListObjectParentPaths != null && {
|
|
8228
8166
|
ListObjectParentPaths: serializeAws_restJson1BatchListObjectParentPaths(input.ListObjectParentPaths, context),
|
|
8229
|
-
})), (input.ListObjectParents
|
|
8230
|
-
input.ListObjectParents !== null && {
|
|
8167
|
+
})), (input.ListObjectParents != null && {
|
|
8231
8168
|
ListObjectParents: serializeAws_restJson1BatchListObjectParents(input.ListObjectParents, context),
|
|
8232
|
-
})), (input.ListObjectPolicies
|
|
8233
|
-
input.ListObjectPolicies !== null && {
|
|
8169
|
+
})), (input.ListObjectPolicies != null && {
|
|
8234
8170
|
ListObjectPolicies: serializeAws_restJson1BatchListObjectPolicies(input.ListObjectPolicies, context),
|
|
8235
|
-
})), (input.ListOutgoingTypedLinks
|
|
8236
|
-
input.ListOutgoingTypedLinks !== null && {
|
|
8171
|
+
})), (input.ListOutgoingTypedLinks != null && {
|
|
8237
8172
|
ListOutgoingTypedLinks: serializeAws_restJson1BatchListOutgoingTypedLinks(input.ListOutgoingTypedLinks, context),
|
|
8238
|
-
})), (input.ListPolicyAttachments
|
|
8239
|
-
input.ListPolicyAttachments !== null && {
|
|
8173
|
+
})), (input.ListPolicyAttachments != null && {
|
|
8240
8174
|
ListPolicyAttachments: serializeAws_restJson1BatchListPolicyAttachments(input.ListPolicyAttachments, context),
|
|
8241
|
-
})), (input.LookupPolicy
|
|
8242
|
-
input.LookupPolicy !== null && {
|
|
8175
|
+
})), (input.LookupPolicy != null && {
|
|
8243
8176
|
LookupPolicy: serializeAws_restJson1BatchLookupPolicy(input.LookupPolicy, context),
|
|
8244
8177
|
}));
|
|
8245
8178
|
};
|
|
@@ -8254,75 +8187,54 @@ var serializeAws_restJson1BatchReadOperationList = function (input, context) {
|
|
|
8254
8187
|
});
|
|
8255
8188
|
};
|
|
8256
8189
|
var serializeAws_restJson1BatchRemoveFacetFromObject = function (input, context) {
|
|
8257
|
-
return __assign(__assign({}, (input.ObjectReference
|
|
8258
|
-
input.ObjectReference !== null && {
|
|
8190
|
+
return __assign(__assign({}, (input.ObjectReference != null && {
|
|
8259
8191
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8260
|
-
})), (input.SchemaFacet
|
|
8261
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8192
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8262
8193
|
};
|
|
8263
8194
|
var serializeAws_restJson1BatchUpdateLinkAttributes = function (input, context) {
|
|
8264
|
-
return __assign(__assign({}, (input.AttributeUpdates
|
|
8265
|
-
input.AttributeUpdates !== null && {
|
|
8195
|
+
return __assign(__assign({}, (input.AttributeUpdates != null && {
|
|
8266
8196
|
AttributeUpdates: serializeAws_restJson1LinkAttributeUpdateList(input.AttributeUpdates, context),
|
|
8267
|
-
})), (input.TypedLinkSpecifier
|
|
8268
|
-
input.TypedLinkSpecifier !== null && {
|
|
8197
|
+
})), (input.TypedLinkSpecifier != null && {
|
|
8269
8198
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
8270
8199
|
}));
|
|
8271
8200
|
};
|
|
8272
8201
|
var serializeAws_restJson1BatchUpdateObjectAttributes = function (input, context) {
|
|
8273
|
-
return __assign(__assign({}, (input.AttributeUpdates
|
|
8274
|
-
input.AttributeUpdates !== null && {
|
|
8202
|
+
return __assign(__assign({}, (input.AttributeUpdates != null && {
|
|
8275
8203
|
AttributeUpdates: serializeAws_restJson1ObjectAttributeUpdateList(input.AttributeUpdates, context),
|
|
8276
|
-
})), (input.ObjectReference
|
|
8277
|
-
input.ObjectReference !== null && {
|
|
8204
|
+
})), (input.ObjectReference != null && {
|
|
8278
8205
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8279
8206
|
}));
|
|
8280
8207
|
};
|
|
8281
8208
|
var serializeAws_restJson1BatchWriteOperation = function (input, context) {
|
|
8282
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddFacetToObject
|
|
8283
|
-
input.AddFacetToObject !== null && {
|
|
8209
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddFacetToObject != null && {
|
|
8284
8210
|
AddFacetToObject: serializeAws_restJson1BatchAddFacetToObject(input.AddFacetToObject, context),
|
|
8285
|
-
})), (input.AttachObject
|
|
8286
|
-
input.AttachObject !== null && {
|
|
8211
|
+
})), (input.AttachObject != null && {
|
|
8287
8212
|
AttachObject: serializeAws_restJson1BatchAttachObject(input.AttachObject, context),
|
|
8288
|
-
})), (input.AttachPolicy
|
|
8289
|
-
input.AttachPolicy !== null && {
|
|
8213
|
+
})), (input.AttachPolicy != null && {
|
|
8290
8214
|
AttachPolicy: serializeAws_restJson1BatchAttachPolicy(input.AttachPolicy, context),
|
|
8291
|
-
})), (input.AttachToIndex
|
|
8292
|
-
input.AttachToIndex !== null && {
|
|
8215
|
+
})), (input.AttachToIndex != null && {
|
|
8293
8216
|
AttachToIndex: serializeAws_restJson1BatchAttachToIndex(input.AttachToIndex, context),
|
|
8294
|
-
})), (input.AttachTypedLink
|
|
8295
|
-
input.AttachTypedLink !== null && {
|
|
8217
|
+
})), (input.AttachTypedLink != null && {
|
|
8296
8218
|
AttachTypedLink: serializeAws_restJson1BatchAttachTypedLink(input.AttachTypedLink, context),
|
|
8297
|
-
})), (input.CreateIndex
|
|
8298
|
-
input.CreateIndex !== null && {
|
|
8219
|
+
})), (input.CreateIndex != null && {
|
|
8299
8220
|
CreateIndex: serializeAws_restJson1BatchCreateIndex(input.CreateIndex, context),
|
|
8300
|
-
})), (input.CreateObject
|
|
8301
|
-
input.CreateObject !== null && {
|
|
8221
|
+
})), (input.CreateObject != null && {
|
|
8302
8222
|
CreateObject: serializeAws_restJson1BatchCreateObject(input.CreateObject, context),
|
|
8303
|
-
})), (input.DeleteObject
|
|
8304
|
-
input.DeleteObject !== null && {
|
|
8223
|
+
})), (input.DeleteObject != null && {
|
|
8305
8224
|
DeleteObject: serializeAws_restJson1BatchDeleteObject(input.DeleteObject, context),
|
|
8306
|
-
})), (input.DetachFromIndex
|
|
8307
|
-
input.DetachFromIndex !== null && {
|
|
8225
|
+
})), (input.DetachFromIndex != null && {
|
|
8308
8226
|
DetachFromIndex: serializeAws_restJson1BatchDetachFromIndex(input.DetachFromIndex, context),
|
|
8309
|
-
})), (input.DetachObject
|
|
8310
|
-
input.DetachObject !== null && {
|
|
8227
|
+
})), (input.DetachObject != null && {
|
|
8311
8228
|
DetachObject: serializeAws_restJson1BatchDetachObject(input.DetachObject, context),
|
|
8312
|
-
})), (input.DetachPolicy
|
|
8313
|
-
input.DetachPolicy !== null && {
|
|
8229
|
+
})), (input.DetachPolicy != null && {
|
|
8314
8230
|
DetachPolicy: serializeAws_restJson1BatchDetachPolicy(input.DetachPolicy, context),
|
|
8315
|
-
})), (input.DetachTypedLink
|
|
8316
|
-
input.DetachTypedLink !== null && {
|
|
8231
|
+
})), (input.DetachTypedLink != null && {
|
|
8317
8232
|
DetachTypedLink: serializeAws_restJson1BatchDetachTypedLink(input.DetachTypedLink, context),
|
|
8318
|
-
})), (input.RemoveFacetFromObject
|
|
8319
|
-
input.RemoveFacetFromObject !== null && {
|
|
8233
|
+
})), (input.RemoveFacetFromObject != null && {
|
|
8320
8234
|
RemoveFacetFromObject: serializeAws_restJson1BatchRemoveFacetFromObject(input.RemoveFacetFromObject, context),
|
|
8321
|
-
})), (input.UpdateLinkAttributes
|
|
8322
|
-
input.UpdateLinkAttributes !== null && {
|
|
8235
|
+
})), (input.UpdateLinkAttributes != null && {
|
|
8323
8236
|
UpdateLinkAttributes: serializeAws_restJson1BatchUpdateLinkAttributes(input.UpdateLinkAttributes, context),
|
|
8324
|
-
})), (input.UpdateObjectAttributes
|
|
8325
|
-
input.UpdateObjectAttributes !== null && {
|
|
8237
|
+
})), (input.UpdateObjectAttributes != null && {
|
|
8326
8238
|
UpdateObjectAttributes: serializeAws_restJson1BatchUpdateObjectAttributes(input.UpdateObjectAttributes, context),
|
|
8327
8239
|
}));
|
|
8328
8240
|
};
|
|
@@ -8337,21 +8249,16 @@ var serializeAws_restJson1BatchWriteOperationList = function (input, context) {
|
|
|
8337
8249
|
});
|
|
8338
8250
|
};
|
|
8339
8251
|
var serializeAws_restJson1FacetAttribute = function (input, context) {
|
|
8340
|
-
return __assign(__assign(__assign(__assign({}, (input.AttributeDefinition
|
|
8341
|
-
input.AttributeDefinition !== null && {
|
|
8252
|
+
return __assign(__assign(__assign(__assign({}, (input.AttributeDefinition != null && {
|
|
8342
8253
|
AttributeDefinition: serializeAws_restJson1FacetAttributeDefinition(input.AttributeDefinition, context),
|
|
8343
|
-
})), (input.AttributeReference
|
|
8344
|
-
input.AttributeReference !== null && {
|
|
8254
|
+
})), (input.AttributeReference != null && {
|
|
8345
8255
|
AttributeReference: serializeAws_restJson1FacetAttributeReference(input.AttributeReference, context),
|
|
8346
|
-
})), (input.Name
|
|
8347
|
-
input.RequiredBehavior !== null && { RequiredBehavior: input.RequiredBehavior }));
|
|
8256
|
+
})), (input.Name != null && { Name: input.Name })), (input.RequiredBehavior != null && { RequiredBehavior: input.RequiredBehavior }));
|
|
8348
8257
|
};
|
|
8349
8258
|
var serializeAws_restJson1FacetAttributeDefinition = function (input, context) {
|
|
8350
|
-
return __assign(__assign(__assign(__assign({}, (input.DefaultValue
|
|
8351
|
-
input.DefaultValue !== null && {
|
|
8259
|
+
return __assign(__assign(__assign(__assign({}, (input.DefaultValue != null && {
|
|
8352
8260
|
DefaultValue: serializeAws_restJson1TypedAttributeValue(input.DefaultValue, context),
|
|
8353
|
-
})), (input.IsImmutable
|
|
8354
|
-
input.Rules !== null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
8261
|
+
})), (input.IsImmutable != null && { IsImmutable: input.IsImmutable })), (input.Rules != null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) })), (input.Type != null && { Type: input.Type }));
|
|
8355
8262
|
};
|
|
8356
8263
|
var serializeAws_restJson1FacetAttributeList = function (input, context) {
|
|
8357
8264
|
return input
|
|
@@ -8364,13 +8271,10 @@ var serializeAws_restJson1FacetAttributeList = function (input, context) {
|
|
|
8364
8271
|
});
|
|
8365
8272
|
};
|
|
8366
8273
|
var serializeAws_restJson1FacetAttributeReference = function (input, context) {
|
|
8367
|
-
return __assign(__assign({}, (input.TargetAttributeName
|
|
8368
|
-
input.TargetAttributeName !== null && { TargetAttributeName: input.TargetAttributeName })), (input.TargetFacetName !== undefined &&
|
|
8369
|
-
input.TargetFacetName !== null && { TargetFacetName: input.TargetFacetName }));
|
|
8274
|
+
return __assign(__assign({}, (input.TargetAttributeName != null && { TargetAttributeName: input.TargetAttributeName })), (input.TargetFacetName != null && { TargetFacetName: input.TargetFacetName }));
|
|
8370
8275
|
};
|
|
8371
8276
|
var serializeAws_restJson1FacetAttributeUpdate = function (input, context) {
|
|
8372
|
-
return __assign(__assign({}, (input.Action
|
|
8373
|
-
input.Attribute !== null && { Attribute: serializeAws_restJson1FacetAttribute(input.Attribute, context) }));
|
|
8277
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Attribute != null && { Attribute: serializeAws_restJson1FacetAttribute(input.Attribute, context) }));
|
|
8374
8278
|
};
|
|
8375
8279
|
var serializeAws_restJson1FacetAttributeUpdateList = function (input, context) {
|
|
8376
8280
|
return input
|
|
@@ -8383,18 +8287,16 @@ var serializeAws_restJson1FacetAttributeUpdateList = function (input, context) {
|
|
|
8383
8287
|
});
|
|
8384
8288
|
};
|
|
8385
8289
|
var serializeAws_restJson1LinkAttributeAction = function (input, context) {
|
|
8386
|
-
return __assign(__assign({}, (input.AttributeActionType
|
|
8387
|
-
input.AttributeActionType !== null && { AttributeActionType: input.AttributeActionType })), (input.AttributeUpdateValue !== undefined &&
|
|
8388
|
-
input.AttributeUpdateValue !== null && {
|
|
8290
|
+
return __assign(__assign({}, (input.AttributeActionType != null && { AttributeActionType: input.AttributeActionType })), (input.AttributeUpdateValue != null && {
|
|
8389
8291
|
AttributeUpdateValue: serializeAws_restJson1TypedAttributeValue(input.AttributeUpdateValue, context),
|
|
8390
8292
|
}));
|
|
8391
8293
|
};
|
|
8392
8294
|
var serializeAws_restJson1LinkAttributeUpdate = function (input, context) {
|
|
8393
|
-
return __assign(__assign({}, (input.AttributeAction
|
|
8394
|
-
input.AttributeAction !== null && {
|
|
8295
|
+
return __assign(__assign({}, (input.AttributeAction != null && {
|
|
8395
8296
|
AttributeAction: serializeAws_restJson1LinkAttributeAction(input.AttributeAction, context),
|
|
8396
|
-
})), (input.AttributeKey
|
|
8397
|
-
|
|
8297
|
+
})), (input.AttributeKey != null && {
|
|
8298
|
+
AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context),
|
|
8299
|
+
}));
|
|
8398
8300
|
};
|
|
8399
8301
|
var serializeAws_restJson1LinkAttributeUpdateList = function (input, context) {
|
|
8400
8302
|
return input
|
|
@@ -8407,16 +8309,14 @@ var serializeAws_restJson1LinkAttributeUpdateList = function (input, context) {
|
|
|
8407
8309
|
});
|
|
8408
8310
|
};
|
|
8409
8311
|
var serializeAws_restJson1ObjectAttributeAction = function (input, context) {
|
|
8410
|
-
return __assign(__assign({}, (input.ObjectAttributeActionType
|
|
8411
|
-
input.ObjectAttributeActionType !== null && { ObjectAttributeActionType: input.ObjectAttributeActionType })), (input.ObjectAttributeUpdateValue !== undefined &&
|
|
8412
|
-
input.ObjectAttributeUpdateValue !== null && {
|
|
8312
|
+
return __assign(__assign({}, (input.ObjectAttributeActionType != null && { ObjectAttributeActionType: input.ObjectAttributeActionType })), (input.ObjectAttributeUpdateValue != null && {
|
|
8413
8313
|
ObjectAttributeUpdateValue: serializeAws_restJson1TypedAttributeValue(input.ObjectAttributeUpdateValue, context),
|
|
8414
8314
|
}));
|
|
8415
8315
|
};
|
|
8416
8316
|
var serializeAws_restJson1ObjectAttributeRange = function (input, context) {
|
|
8417
|
-
return __assign(__assign({}, (input.AttributeKey
|
|
8418
|
-
|
|
8419
|
-
|
|
8317
|
+
return __assign(__assign({}, (input.AttributeKey != null && {
|
|
8318
|
+
AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context),
|
|
8319
|
+
})), (input.Range != null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }));
|
|
8420
8320
|
};
|
|
8421
8321
|
var serializeAws_restJson1ObjectAttributeRangeList = function (input, context) {
|
|
8422
8322
|
return input
|
|
@@ -8429,11 +8329,9 @@ var serializeAws_restJson1ObjectAttributeRangeList = function (input, context) {
|
|
|
8429
8329
|
});
|
|
8430
8330
|
};
|
|
8431
8331
|
var serializeAws_restJson1ObjectAttributeUpdate = function (input, context) {
|
|
8432
|
-
return __assign(__assign({}, (input.ObjectAttributeAction
|
|
8433
|
-
input.ObjectAttributeAction !== null && {
|
|
8332
|
+
return __assign(__assign({}, (input.ObjectAttributeAction != null && {
|
|
8434
8333
|
ObjectAttributeAction: serializeAws_restJson1ObjectAttributeAction(input.ObjectAttributeAction, context),
|
|
8435
|
-
})), (input.ObjectAttributeKey
|
|
8436
|
-
input.ObjectAttributeKey !== null && {
|
|
8334
|
+
})), (input.ObjectAttributeKey != null && {
|
|
8437
8335
|
ObjectAttributeKey: serializeAws_restJson1AttributeKey(input.ObjectAttributeKey, context),
|
|
8438
8336
|
}));
|
|
8439
8337
|
};
|
|
@@ -8448,11 +8346,10 @@ var serializeAws_restJson1ObjectAttributeUpdateList = function (input, context)
|
|
|
8448
8346
|
});
|
|
8449
8347
|
};
|
|
8450
8348
|
var serializeAws_restJson1ObjectReference = function (input, context) {
|
|
8451
|
-
return __assign({}, (input.Selector
|
|
8349
|
+
return __assign({}, (input.Selector != null && { Selector: input.Selector }));
|
|
8452
8350
|
};
|
|
8453
8351
|
var serializeAws_restJson1Rule = function (input, context) {
|
|
8454
|
-
return __assign(__assign({}, (input.Parameters
|
|
8455
|
-
input.Parameters !== null && { Parameters: serializeAws_restJson1RuleParameterMap(input.Parameters, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
8352
|
+
return __assign(__assign({}, (input.Parameters != null && { Parameters: serializeAws_restJson1RuleParameterMap(input.Parameters, context) })), (input.Type != null && { Type: input.Type }));
|
|
8456
8353
|
};
|
|
8457
8354
|
var serializeAws_restJson1RuleMap = function (input, context) {
|
|
8458
8355
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -8475,7 +8372,7 @@ var serializeAws_restJson1RuleParameterMap = function (input, context) {
|
|
|
8475
8372
|
}, {});
|
|
8476
8373
|
};
|
|
8477
8374
|
var serializeAws_restJson1SchemaFacet = function (input, context) {
|
|
8478
|
-
return __assign(__assign({}, (input.FacetName
|
|
8375
|
+
return __assign(__assign({}, (input.FacetName != null && { FacetName: input.FacetName })), (input.SchemaArn != null && { SchemaArn: input.SchemaArn }));
|
|
8479
8376
|
};
|
|
8480
8377
|
var serializeAws_restJson1SchemaFacetList = function (input, context) {
|
|
8481
8378
|
return input
|
|
@@ -8488,7 +8385,7 @@ var serializeAws_restJson1SchemaFacetList = function (input, context) {
|
|
|
8488
8385
|
});
|
|
8489
8386
|
};
|
|
8490
8387
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
8491
|
-
return __assign(__assign({}, (input.Key
|
|
8388
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
8492
8389
|
};
|
|
8493
8390
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
8494
8391
|
return input
|
|
@@ -8521,19 +8418,14 @@ var serializeAws_restJson1TypedAttributeValue = function (input, context) {
|
|
|
8521
8418
|
});
|
|
8522
8419
|
};
|
|
8523
8420
|
var serializeAws_restJson1TypedAttributeValueRange = function (input, context) {
|
|
8524
|
-
return __assign(__assign(__assign(__assign({}, (input.EndMode
|
|
8525
|
-
input.EndValue !== null && { EndValue: serializeAws_restJson1TypedAttributeValue(input.EndValue, context) })), (input.StartMode !== undefined && input.StartMode !== null && { StartMode: input.StartMode })), (input.StartValue !== undefined &&
|
|
8526
|
-
input.StartValue !== null && {
|
|
8421
|
+
return __assign(__assign(__assign(__assign({}, (input.EndMode != null && { EndMode: input.EndMode })), (input.EndValue != null && { EndValue: serializeAws_restJson1TypedAttributeValue(input.EndValue, context) })), (input.StartMode != null && { StartMode: input.StartMode })), (input.StartValue != null && {
|
|
8527
8422
|
StartValue: serializeAws_restJson1TypedAttributeValue(input.StartValue, context),
|
|
8528
8423
|
}));
|
|
8529
8424
|
};
|
|
8530
8425
|
var serializeAws_restJson1TypedLinkAttributeDefinition = function (input, context) {
|
|
8531
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue
|
|
8532
|
-
input.DefaultValue !== null && {
|
|
8426
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue != null && {
|
|
8533
8427
|
DefaultValue: serializeAws_restJson1TypedAttributeValue(input.DefaultValue, context),
|
|
8534
|
-
})), (input.IsImmutable
|
|
8535
|
-
input.RequiredBehavior !== null && { RequiredBehavior: input.RequiredBehavior })), (input.Rules !== undefined &&
|
|
8536
|
-
input.Rules !== null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
8428
|
+
})), (input.IsImmutable != null && { IsImmutable: input.IsImmutable })), (input.Name != null && { Name: input.Name })), (input.RequiredBehavior != null && { RequiredBehavior: input.RequiredBehavior })), (input.Rules != null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) })), (input.Type != null && { Type: input.Type }));
|
|
8537
8429
|
};
|
|
8538
8430
|
var serializeAws_restJson1TypedLinkAttributeDefinitionList = function (input, context) {
|
|
8539
8431
|
return input
|
|
@@ -8546,8 +8438,7 @@ var serializeAws_restJson1TypedLinkAttributeDefinitionList = function (input, co
|
|
|
8546
8438
|
});
|
|
8547
8439
|
};
|
|
8548
8440
|
var serializeAws_restJson1TypedLinkAttributeRange = function (input, context) {
|
|
8549
|
-
return __assign(__assign({}, (input.AttributeName
|
|
8550
|
-
input.Range !== null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }));
|
|
8441
|
+
return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.Range != null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }));
|
|
8551
8442
|
};
|
|
8552
8443
|
var serializeAws_restJson1TypedLinkAttributeRangeList = function (input, context) {
|
|
8553
8444
|
return input
|
|
@@ -8560,17 +8451,14 @@ var serializeAws_restJson1TypedLinkAttributeRangeList = function (input, context
|
|
|
8560
8451
|
});
|
|
8561
8452
|
};
|
|
8562
8453
|
var serializeAws_restJson1TypedLinkFacet = function (input, context) {
|
|
8563
|
-
return __assign(__assign(__assign({}, (input.Attributes
|
|
8564
|
-
input.Attributes !== null && {
|
|
8454
|
+
return __assign(__assign(__assign({}, (input.Attributes != null && {
|
|
8565
8455
|
Attributes: serializeAws_restJson1TypedLinkAttributeDefinitionList(input.Attributes, context),
|
|
8566
|
-
})), (input.IdentityAttributeOrder
|
|
8567
|
-
input.IdentityAttributeOrder !== null && {
|
|
8456
|
+
})), (input.IdentityAttributeOrder != null && {
|
|
8568
8457
|
IdentityAttributeOrder: serializeAws_restJson1AttributeNameList(input.IdentityAttributeOrder, context),
|
|
8569
|
-
})), (input.Name
|
|
8458
|
+
})), (input.Name != null && { Name: input.Name }));
|
|
8570
8459
|
};
|
|
8571
8460
|
var serializeAws_restJson1TypedLinkFacetAttributeUpdate = function (input, context) {
|
|
8572
|
-
return __assign(__assign({}, (input.Action
|
|
8573
|
-
input.Attribute !== null && {
|
|
8461
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Attribute != null && {
|
|
8574
8462
|
Attribute: serializeAws_restJson1TypedLinkAttributeDefinition(input.Attribute, context),
|
|
8575
8463
|
}));
|
|
8576
8464
|
};
|
|
@@ -8585,20 +8473,16 @@ var serializeAws_restJson1TypedLinkFacetAttributeUpdateList = function (input, c
|
|
|
8585
8473
|
});
|
|
8586
8474
|
};
|
|
8587
8475
|
var serializeAws_restJson1TypedLinkSchemaAndFacetName = function (input, context) {
|
|
8588
|
-
return __assign(__assign({}, (input.SchemaArn
|
|
8476
|
+
return __assign(__assign({}, (input.SchemaArn != null && { SchemaArn: input.SchemaArn })), (input.TypedLinkName != null && { TypedLinkName: input.TypedLinkName }));
|
|
8589
8477
|
};
|
|
8590
8478
|
var serializeAws_restJson1TypedLinkSpecifier = function (input, context) {
|
|
8591
|
-
return __assign(__assign(__assign(__assign({}, (input.IdentityAttributeValues
|
|
8592
|
-
input.IdentityAttributeValues !== null && {
|
|
8479
|
+
return __assign(__assign(__assign(__assign({}, (input.IdentityAttributeValues != null && {
|
|
8593
8480
|
IdentityAttributeValues: serializeAws_restJson1AttributeNameAndValueList(input.IdentityAttributeValues, context),
|
|
8594
|
-
})), (input.SourceObjectReference
|
|
8595
|
-
input.SourceObjectReference !== null && {
|
|
8481
|
+
})), (input.SourceObjectReference != null && {
|
|
8596
8482
|
SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
|
|
8597
|
-
})), (input.TargetObjectReference
|
|
8598
|
-
input.TargetObjectReference !== null && {
|
|
8483
|
+
})), (input.TargetObjectReference != null && {
|
|
8599
8484
|
TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
|
|
8600
|
-
})), (input.TypedLinkFacet
|
|
8601
|
-
input.TypedLinkFacet !== null && {
|
|
8485
|
+
})), (input.TypedLinkFacet != null && {
|
|
8602
8486
|
TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
|
|
8603
8487
|
}));
|
|
8604
8488
|
};
|
|
@@ -8622,10 +8506,8 @@ var deserializeAws_restJson1AttributeKey = function (output, context) {
|
|
|
8622
8506
|
};
|
|
8623
8507
|
var deserializeAws_restJson1AttributeKeyAndValue = function (output, context) {
|
|
8624
8508
|
return {
|
|
8625
|
-
Key: output.Key
|
|
8626
|
-
|
|
8627
|
-
: undefined,
|
|
8628
|
-
Value: output.Value !== undefined && output.Value !== null
|
|
8509
|
+
Key: output.Key != null ? deserializeAws_restJson1AttributeKey(output.Key, context) : undefined,
|
|
8510
|
+
Value: output.Value != null
|
|
8629
8511
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
|
|
8630
8512
|
: undefined,
|
|
8631
8513
|
};
|
|
@@ -8644,7 +8526,7 @@ var deserializeAws_restJson1AttributeKeyAndValueList = function (output, context
|
|
|
8644
8526
|
var deserializeAws_restJson1AttributeNameAndValue = function (output, context) {
|
|
8645
8527
|
return {
|
|
8646
8528
|
AttributeName: __expectString(output.AttributeName),
|
|
8647
|
-
Value: output.Value
|
|
8529
|
+
Value: output.Value != null
|
|
8648
8530
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
|
|
8649
8531
|
: undefined,
|
|
8650
8532
|
};
|
|
@@ -8689,7 +8571,7 @@ var deserializeAws_restJson1BatchAttachToIndexResponse = function (output, conte
|
|
|
8689
8571
|
};
|
|
8690
8572
|
var deserializeAws_restJson1BatchAttachTypedLinkResponse = function (output, context) {
|
|
8691
8573
|
return {
|
|
8692
|
-
TypedLinkSpecifier: output.TypedLinkSpecifier
|
|
8574
|
+
TypedLinkSpecifier: output.TypedLinkSpecifier != null
|
|
8693
8575
|
? deserializeAws_restJson1TypedLinkSpecifier(output.TypedLinkSpecifier, context)
|
|
8694
8576
|
: undefined,
|
|
8695
8577
|
};
|
|
@@ -8725,14 +8607,14 @@ var deserializeAws_restJson1BatchDetachTypedLinkResponse = function (output, con
|
|
|
8725
8607
|
};
|
|
8726
8608
|
var deserializeAws_restJson1BatchGetLinkAttributesResponse = function (output, context) {
|
|
8727
8609
|
return {
|
|
8728
|
-
Attributes: output.Attributes
|
|
8610
|
+
Attributes: output.Attributes != null
|
|
8729
8611
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
|
|
8730
8612
|
: undefined,
|
|
8731
8613
|
};
|
|
8732
8614
|
};
|
|
8733
8615
|
var deserializeAws_restJson1BatchGetObjectAttributesResponse = function (output, context) {
|
|
8734
8616
|
return {
|
|
8735
|
-
Attributes: output.Attributes
|
|
8617
|
+
Attributes: output.Attributes != null
|
|
8736
8618
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
|
|
8737
8619
|
: undefined,
|
|
8738
8620
|
};
|
|
@@ -8740,14 +8622,12 @@ var deserializeAws_restJson1BatchGetObjectAttributesResponse = function (output,
|
|
|
8740
8622
|
var deserializeAws_restJson1BatchGetObjectInformationResponse = function (output, context) {
|
|
8741
8623
|
return {
|
|
8742
8624
|
ObjectIdentifier: __expectString(output.ObjectIdentifier),
|
|
8743
|
-
SchemaFacets: output.SchemaFacets
|
|
8744
|
-
? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context)
|
|
8745
|
-
: undefined,
|
|
8625
|
+
SchemaFacets: output.SchemaFacets != null ? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context) : undefined,
|
|
8746
8626
|
};
|
|
8747
8627
|
};
|
|
8748
8628
|
var deserializeAws_restJson1BatchListAttachedIndicesResponse = function (output, context) {
|
|
8749
8629
|
return {
|
|
8750
|
-
IndexAttachments: output.IndexAttachments
|
|
8630
|
+
IndexAttachments: output.IndexAttachments != null
|
|
8751
8631
|
? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
|
|
8752
8632
|
: undefined,
|
|
8753
8633
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8755,7 +8635,7 @@ var deserializeAws_restJson1BatchListAttachedIndicesResponse = function (output,
|
|
|
8755
8635
|
};
|
|
8756
8636
|
var deserializeAws_restJson1BatchListIncomingTypedLinksResponse = function (output, context) {
|
|
8757
8637
|
return {
|
|
8758
|
-
LinkSpecifiers: output.LinkSpecifiers
|
|
8638
|
+
LinkSpecifiers: output.LinkSpecifiers != null
|
|
8759
8639
|
? deserializeAws_restJson1TypedLinkSpecifierList(output.LinkSpecifiers, context)
|
|
8760
8640
|
: undefined,
|
|
8761
8641
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8763,7 +8643,7 @@ var deserializeAws_restJson1BatchListIncomingTypedLinksResponse = function (outp
|
|
|
8763
8643
|
};
|
|
8764
8644
|
var deserializeAws_restJson1BatchListIndexResponse = function (output, context) {
|
|
8765
8645
|
return {
|
|
8766
|
-
IndexAttachments: output.IndexAttachments
|
|
8646
|
+
IndexAttachments: output.IndexAttachments != null
|
|
8767
8647
|
? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
|
|
8768
8648
|
: undefined,
|
|
8769
8649
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8771,7 +8651,7 @@ var deserializeAws_restJson1BatchListIndexResponse = function (output, context)
|
|
|
8771
8651
|
};
|
|
8772
8652
|
var deserializeAws_restJson1BatchListObjectAttributesResponse = function (output, context) {
|
|
8773
8653
|
return {
|
|
8774
|
-
Attributes: output.Attributes
|
|
8654
|
+
Attributes: output.Attributes != null
|
|
8775
8655
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
|
|
8776
8656
|
: undefined,
|
|
8777
8657
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8779,7 +8659,7 @@ var deserializeAws_restJson1BatchListObjectAttributesResponse = function (output
|
|
|
8779
8659
|
};
|
|
8780
8660
|
var deserializeAws_restJson1BatchListObjectChildrenResponse = function (output, context) {
|
|
8781
8661
|
return {
|
|
8782
|
-
Children: output.Children
|
|
8662
|
+
Children: output.Children != null
|
|
8783
8663
|
? deserializeAws_restJson1LinkNameToObjectIdentifierMap(output.Children, context)
|
|
8784
8664
|
: undefined,
|
|
8785
8665
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8788,7 +8668,7 @@ var deserializeAws_restJson1BatchListObjectChildrenResponse = function (output,
|
|
|
8788
8668
|
var deserializeAws_restJson1BatchListObjectParentPathsResponse = function (output, context) {
|
|
8789
8669
|
return {
|
|
8790
8670
|
NextToken: __expectString(output.NextToken),
|
|
8791
|
-
PathToObjectIdentifiersList: output.PathToObjectIdentifiersList
|
|
8671
|
+
PathToObjectIdentifiersList: output.PathToObjectIdentifiersList != null
|
|
8792
8672
|
? deserializeAws_restJson1PathToObjectIdentifiersList(output.PathToObjectIdentifiersList, context)
|
|
8793
8673
|
: undefined,
|
|
8794
8674
|
};
|
|
@@ -8796,14 +8676,14 @@ var deserializeAws_restJson1BatchListObjectParentPathsResponse = function (outpu
|
|
|
8796
8676
|
var deserializeAws_restJson1BatchListObjectParentsResponse = function (output, context) {
|
|
8797
8677
|
return {
|
|
8798
8678
|
NextToken: __expectString(output.NextToken),
|
|
8799
|
-
ParentLinks: output.ParentLinks
|
|
8679
|
+
ParentLinks: output.ParentLinks != null
|
|
8800
8680
|
? deserializeAws_restJson1ObjectIdentifierAndLinkNameList(output.ParentLinks, context)
|
|
8801
8681
|
: undefined,
|
|
8802
8682
|
};
|
|
8803
8683
|
};
|
|
8804
8684
|
var deserializeAws_restJson1BatchListObjectPoliciesResponse = function (output, context) {
|
|
8805
8685
|
return {
|
|
8806
|
-
AttachedPolicyIds: output.AttachedPolicyIds
|
|
8686
|
+
AttachedPolicyIds: output.AttachedPolicyIds != null
|
|
8807
8687
|
? deserializeAws_restJson1ObjectIdentifierList(output.AttachedPolicyIds, context)
|
|
8808
8688
|
: undefined,
|
|
8809
8689
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8812,7 +8692,7 @@ var deserializeAws_restJson1BatchListObjectPoliciesResponse = function (output,
|
|
|
8812
8692
|
var deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = function (output, context) {
|
|
8813
8693
|
return {
|
|
8814
8694
|
NextToken: __expectString(output.NextToken),
|
|
8815
|
-
TypedLinkSpecifiers: output.TypedLinkSpecifiers
|
|
8695
|
+
TypedLinkSpecifiers: output.TypedLinkSpecifiers != null
|
|
8816
8696
|
? deserializeAws_restJson1TypedLinkSpecifierList(output.TypedLinkSpecifiers, context)
|
|
8817
8697
|
: undefined,
|
|
8818
8698
|
};
|
|
@@ -8820,7 +8700,7 @@ var deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = function (outp
|
|
|
8820
8700
|
var deserializeAws_restJson1BatchListPolicyAttachmentsResponse = function (output, context) {
|
|
8821
8701
|
return {
|
|
8822
8702
|
NextToken: __expectString(output.NextToken),
|
|
8823
|
-
ObjectIdentifiers: output.ObjectIdentifiers
|
|
8703
|
+
ObjectIdentifiers: output.ObjectIdentifiers != null
|
|
8824
8704
|
? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
|
|
8825
8705
|
: undefined,
|
|
8826
8706
|
};
|
|
@@ -8828,7 +8708,7 @@ var deserializeAws_restJson1BatchListPolicyAttachmentsResponse = function (outpu
|
|
|
8828
8708
|
var deserializeAws_restJson1BatchLookupPolicyResponse = function (output, context) {
|
|
8829
8709
|
return {
|
|
8830
8710
|
NextToken: __expectString(output.NextToken),
|
|
8831
|
-
PolicyToPathList: output.PolicyToPathList
|
|
8711
|
+
PolicyToPathList: output.PolicyToPathList != null
|
|
8832
8712
|
? deserializeAws_restJson1PolicyToPathList(output.PolicyToPathList, context)
|
|
8833
8713
|
: undefined,
|
|
8834
8714
|
};
|
|
@@ -8841,10 +8721,10 @@ var deserializeAws_restJson1BatchReadException = function (output, context) {
|
|
|
8841
8721
|
};
|
|
8842
8722
|
var deserializeAws_restJson1BatchReadOperationResponse = function (output, context) {
|
|
8843
8723
|
return {
|
|
8844
|
-
ExceptionResponse: output.ExceptionResponse
|
|
8724
|
+
ExceptionResponse: output.ExceptionResponse != null
|
|
8845
8725
|
? deserializeAws_restJson1BatchReadException(output.ExceptionResponse, context)
|
|
8846
8726
|
: undefined,
|
|
8847
|
-
SuccessfulResponse: output.SuccessfulResponse
|
|
8727
|
+
SuccessfulResponse: output.SuccessfulResponse != null
|
|
8848
8728
|
? deserializeAws_restJson1BatchReadSuccessfulResponse(output.SuccessfulResponse, context)
|
|
8849
8729
|
: undefined,
|
|
8850
8730
|
};
|
|
@@ -8862,46 +8742,44 @@ var deserializeAws_restJson1BatchReadOperationResponseList = function (output, c
|
|
|
8862
8742
|
};
|
|
8863
8743
|
var deserializeAws_restJson1BatchReadSuccessfulResponse = function (output, context) {
|
|
8864
8744
|
return {
|
|
8865
|
-
GetLinkAttributes: output.GetLinkAttributes
|
|
8745
|
+
GetLinkAttributes: output.GetLinkAttributes != null
|
|
8866
8746
|
? deserializeAws_restJson1BatchGetLinkAttributesResponse(output.GetLinkAttributes, context)
|
|
8867
8747
|
: undefined,
|
|
8868
|
-
GetObjectAttributes: output.GetObjectAttributes
|
|
8748
|
+
GetObjectAttributes: output.GetObjectAttributes != null
|
|
8869
8749
|
? deserializeAws_restJson1BatchGetObjectAttributesResponse(output.GetObjectAttributes, context)
|
|
8870
8750
|
: undefined,
|
|
8871
|
-
GetObjectInformation: output.GetObjectInformation
|
|
8751
|
+
GetObjectInformation: output.GetObjectInformation != null
|
|
8872
8752
|
? deserializeAws_restJson1BatchGetObjectInformationResponse(output.GetObjectInformation, context)
|
|
8873
8753
|
: undefined,
|
|
8874
|
-
ListAttachedIndices: output.ListAttachedIndices
|
|
8754
|
+
ListAttachedIndices: output.ListAttachedIndices != null
|
|
8875
8755
|
? deserializeAws_restJson1BatchListAttachedIndicesResponse(output.ListAttachedIndices, context)
|
|
8876
8756
|
: undefined,
|
|
8877
|
-
ListIncomingTypedLinks: output.ListIncomingTypedLinks
|
|
8757
|
+
ListIncomingTypedLinks: output.ListIncomingTypedLinks != null
|
|
8878
8758
|
? deserializeAws_restJson1BatchListIncomingTypedLinksResponse(output.ListIncomingTypedLinks, context)
|
|
8879
8759
|
: undefined,
|
|
8880
|
-
ListIndex: output.ListIndex
|
|
8881
|
-
|
|
8882
|
-
: undefined,
|
|
8883
|
-
ListObjectAttributes: output.ListObjectAttributes !== undefined && output.ListObjectAttributes !== null
|
|
8760
|
+
ListIndex: output.ListIndex != null ? deserializeAws_restJson1BatchListIndexResponse(output.ListIndex, context) : undefined,
|
|
8761
|
+
ListObjectAttributes: output.ListObjectAttributes != null
|
|
8884
8762
|
? deserializeAws_restJson1BatchListObjectAttributesResponse(output.ListObjectAttributes, context)
|
|
8885
8763
|
: undefined,
|
|
8886
|
-
ListObjectChildren: output.ListObjectChildren
|
|
8764
|
+
ListObjectChildren: output.ListObjectChildren != null
|
|
8887
8765
|
? deserializeAws_restJson1BatchListObjectChildrenResponse(output.ListObjectChildren, context)
|
|
8888
8766
|
: undefined,
|
|
8889
|
-
ListObjectParentPaths: output.ListObjectParentPaths
|
|
8767
|
+
ListObjectParentPaths: output.ListObjectParentPaths != null
|
|
8890
8768
|
? deserializeAws_restJson1BatchListObjectParentPathsResponse(output.ListObjectParentPaths, context)
|
|
8891
8769
|
: undefined,
|
|
8892
|
-
ListObjectParents: output.ListObjectParents
|
|
8770
|
+
ListObjectParents: output.ListObjectParents != null
|
|
8893
8771
|
? deserializeAws_restJson1BatchListObjectParentsResponse(output.ListObjectParents, context)
|
|
8894
8772
|
: undefined,
|
|
8895
|
-
ListObjectPolicies: output.ListObjectPolicies
|
|
8773
|
+
ListObjectPolicies: output.ListObjectPolicies != null
|
|
8896
8774
|
? deserializeAws_restJson1BatchListObjectPoliciesResponse(output.ListObjectPolicies, context)
|
|
8897
8775
|
: undefined,
|
|
8898
|
-
ListOutgoingTypedLinks: output.ListOutgoingTypedLinks
|
|
8776
|
+
ListOutgoingTypedLinks: output.ListOutgoingTypedLinks != null
|
|
8899
8777
|
? deserializeAws_restJson1BatchListOutgoingTypedLinksResponse(output.ListOutgoingTypedLinks, context)
|
|
8900
8778
|
: undefined,
|
|
8901
|
-
ListPolicyAttachments: output.ListPolicyAttachments
|
|
8779
|
+
ListPolicyAttachments: output.ListPolicyAttachments != null
|
|
8902
8780
|
? deserializeAws_restJson1BatchListPolicyAttachmentsResponse(output.ListPolicyAttachments, context)
|
|
8903
8781
|
: undefined,
|
|
8904
|
-
LookupPolicy: output.LookupPolicy
|
|
8782
|
+
LookupPolicy: output.LookupPolicy != null
|
|
8905
8783
|
? deserializeAws_restJson1BatchLookupPolicyResponse(output.LookupPolicy, context)
|
|
8906
8784
|
: undefined,
|
|
8907
8785
|
};
|
|
@@ -8919,49 +8797,49 @@ var deserializeAws_restJson1BatchUpdateObjectAttributesResponse = function (outp
|
|
|
8919
8797
|
};
|
|
8920
8798
|
var deserializeAws_restJson1BatchWriteOperationResponse = function (output, context) {
|
|
8921
8799
|
return {
|
|
8922
|
-
AddFacetToObject: output.AddFacetToObject
|
|
8800
|
+
AddFacetToObject: output.AddFacetToObject != null
|
|
8923
8801
|
? deserializeAws_restJson1BatchAddFacetToObjectResponse(output.AddFacetToObject, context)
|
|
8924
8802
|
: undefined,
|
|
8925
|
-
AttachObject: output.AttachObject
|
|
8803
|
+
AttachObject: output.AttachObject != null
|
|
8926
8804
|
? deserializeAws_restJson1BatchAttachObjectResponse(output.AttachObject, context)
|
|
8927
8805
|
: undefined,
|
|
8928
|
-
AttachPolicy: output.AttachPolicy
|
|
8806
|
+
AttachPolicy: output.AttachPolicy != null
|
|
8929
8807
|
? deserializeAws_restJson1BatchAttachPolicyResponse(output.AttachPolicy, context)
|
|
8930
8808
|
: undefined,
|
|
8931
|
-
AttachToIndex: output.AttachToIndex
|
|
8809
|
+
AttachToIndex: output.AttachToIndex != null
|
|
8932
8810
|
? deserializeAws_restJson1BatchAttachToIndexResponse(output.AttachToIndex, context)
|
|
8933
8811
|
: undefined,
|
|
8934
|
-
AttachTypedLink: output.AttachTypedLink
|
|
8812
|
+
AttachTypedLink: output.AttachTypedLink != null
|
|
8935
8813
|
? deserializeAws_restJson1BatchAttachTypedLinkResponse(output.AttachTypedLink, context)
|
|
8936
8814
|
: undefined,
|
|
8937
|
-
CreateIndex: output.CreateIndex
|
|
8815
|
+
CreateIndex: output.CreateIndex != null
|
|
8938
8816
|
? deserializeAws_restJson1BatchCreateIndexResponse(output.CreateIndex, context)
|
|
8939
8817
|
: undefined,
|
|
8940
|
-
CreateObject: output.CreateObject
|
|
8818
|
+
CreateObject: output.CreateObject != null
|
|
8941
8819
|
? deserializeAws_restJson1BatchCreateObjectResponse(output.CreateObject, context)
|
|
8942
8820
|
: undefined,
|
|
8943
|
-
DeleteObject: output.DeleteObject
|
|
8821
|
+
DeleteObject: output.DeleteObject != null
|
|
8944
8822
|
? deserializeAws_restJson1BatchDeleteObjectResponse(output.DeleteObject, context)
|
|
8945
8823
|
: undefined,
|
|
8946
|
-
DetachFromIndex: output.DetachFromIndex
|
|
8824
|
+
DetachFromIndex: output.DetachFromIndex != null
|
|
8947
8825
|
? deserializeAws_restJson1BatchDetachFromIndexResponse(output.DetachFromIndex, context)
|
|
8948
8826
|
: undefined,
|
|
8949
|
-
DetachObject: output.DetachObject
|
|
8827
|
+
DetachObject: output.DetachObject != null
|
|
8950
8828
|
? deserializeAws_restJson1BatchDetachObjectResponse(output.DetachObject, context)
|
|
8951
8829
|
: undefined,
|
|
8952
|
-
DetachPolicy: output.DetachPolicy
|
|
8830
|
+
DetachPolicy: output.DetachPolicy != null
|
|
8953
8831
|
? deserializeAws_restJson1BatchDetachPolicyResponse(output.DetachPolicy, context)
|
|
8954
8832
|
: undefined,
|
|
8955
|
-
DetachTypedLink: output.DetachTypedLink
|
|
8833
|
+
DetachTypedLink: output.DetachTypedLink != null
|
|
8956
8834
|
? deserializeAws_restJson1BatchDetachTypedLinkResponse(output.DetachTypedLink, context)
|
|
8957
8835
|
: undefined,
|
|
8958
|
-
RemoveFacetFromObject: output.RemoveFacetFromObject
|
|
8836
|
+
RemoveFacetFromObject: output.RemoveFacetFromObject != null
|
|
8959
8837
|
? deserializeAws_restJson1BatchRemoveFacetFromObjectResponse(output.RemoveFacetFromObject, context)
|
|
8960
8838
|
: undefined,
|
|
8961
|
-
UpdateLinkAttributes: output.UpdateLinkAttributes
|
|
8839
|
+
UpdateLinkAttributes: output.UpdateLinkAttributes != null
|
|
8962
8840
|
? deserializeAws_restJson1BatchUpdateLinkAttributesResponse(output.UpdateLinkAttributes, context)
|
|
8963
8841
|
: undefined,
|
|
8964
|
-
UpdateObjectAttributes: output.UpdateObjectAttributes
|
|
8842
|
+
UpdateObjectAttributes: output.UpdateObjectAttributes != null
|
|
8965
8843
|
? deserializeAws_restJson1BatchUpdateObjectAttributesResponse(output.UpdateObjectAttributes, context)
|
|
8966
8844
|
: undefined,
|
|
8967
8845
|
};
|
|
@@ -8979,7 +8857,7 @@ var deserializeAws_restJson1BatchWriteOperationResponseList = function (output,
|
|
|
8979
8857
|
};
|
|
8980
8858
|
var deserializeAws_restJson1Directory = function (output, context) {
|
|
8981
8859
|
return {
|
|
8982
|
-
CreationDateTime: output.CreationDateTime
|
|
8860
|
+
CreationDateTime: output.CreationDateTime != null
|
|
8983
8861
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
|
|
8984
8862
|
: undefined,
|
|
8985
8863
|
DirectoryArn: __expectString(output.DirectoryArn),
|
|
@@ -9007,10 +8885,10 @@ var deserializeAws_restJson1Facet = function (output, context) {
|
|
|
9007
8885
|
};
|
|
9008
8886
|
var deserializeAws_restJson1FacetAttribute = function (output, context) {
|
|
9009
8887
|
return {
|
|
9010
|
-
AttributeDefinition: output.AttributeDefinition
|
|
8888
|
+
AttributeDefinition: output.AttributeDefinition != null
|
|
9011
8889
|
? deserializeAws_restJson1FacetAttributeDefinition(output.AttributeDefinition, context)
|
|
9012
8890
|
: undefined,
|
|
9013
|
-
AttributeReference: output.AttributeReference
|
|
8891
|
+
AttributeReference: output.AttributeReference != null
|
|
9014
8892
|
? deserializeAws_restJson1FacetAttributeReference(output.AttributeReference, context)
|
|
9015
8893
|
: undefined,
|
|
9016
8894
|
Name: __expectString(output.Name),
|
|
@@ -9019,13 +8897,11 @@ var deserializeAws_restJson1FacetAttribute = function (output, context) {
|
|
|
9019
8897
|
};
|
|
9020
8898
|
var deserializeAws_restJson1FacetAttributeDefinition = function (output, context) {
|
|
9021
8899
|
return {
|
|
9022
|
-
DefaultValue: output.DefaultValue
|
|
8900
|
+
DefaultValue: output.DefaultValue != null
|
|
9023
8901
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
|
|
9024
8902
|
: undefined,
|
|
9025
8903
|
IsImmutable: __expectBoolean(output.IsImmutable),
|
|
9026
|
-
Rules: output.Rules
|
|
9027
|
-
? deserializeAws_restJson1RuleMap(output.Rules, context)
|
|
9028
|
-
: undefined,
|
|
8904
|
+
Rules: output.Rules != null ? deserializeAws_restJson1RuleMap(output.Rules, context) : undefined,
|
|
9029
8905
|
Type: __expectString(output.Type),
|
|
9030
8906
|
};
|
|
9031
8907
|
};
|
|
@@ -9059,7 +8935,7 @@ var deserializeAws_restJson1FacetNameList = function (output, context) {
|
|
|
9059
8935
|
};
|
|
9060
8936
|
var deserializeAws_restJson1IndexAttachment = function (output, context) {
|
|
9061
8937
|
return {
|
|
9062
|
-
IndexedAttributes: output.IndexedAttributes
|
|
8938
|
+
IndexedAttributes: output.IndexedAttributes != null
|
|
9063
8939
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.IndexedAttributes, context)
|
|
9064
8940
|
: undefined,
|
|
9065
8941
|
ObjectIdentifier: __expectString(output.ObjectIdentifier),
|
|
@@ -9131,7 +9007,7 @@ var deserializeAws_restJson1ObjectReference = function (output, context) {
|
|
|
9131
9007
|
};
|
|
9132
9008
|
var deserializeAws_restJson1PathToObjectIdentifiers = function (output, context) {
|
|
9133
9009
|
return {
|
|
9134
|
-
ObjectIdentifiers: output.ObjectIdentifiers
|
|
9010
|
+
ObjectIdentifiers: output.ObjectIdentifiers != null
|
|
9135
9011
|
? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
|
|
9136
9012
|
: undefined,
|
|
9137
9013
|
Path: __expectString(output.Path),
|
|
@@ -9169,9 +9045,7 @@ var deserializeAws_restJson1PolicyAttachmentList = function (output, context) {
|
|
|
9169
9045
|
var deserializeAws_restJson1PolicyToPath = function (output, context) {
|
|
9170
9046
|
return {
|
|
9171
9047
|
Path: __expectString(output.Path),
|
|
9172
|
-
Policies: output.Policies
|
|
9173
|
-
? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context)
|
|
9174
|
-
: undefined,
|
|
9048
|
+
Policies: output.Policies != null ? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context) : undefined,
|
|
9175
9049
|
};
|
|
9176
9050
|
};
|
|
9177
9051
|
var deserializeAws_restJson1PolicyToPathList = function (output, context) {
|
|
@@ -9187,9 +9061,7 @@ var deserializeAws_restJson1PolicyToPathList = function (output, context) {
|
|
|
9187
9061
|
};
|
|
9188
9062
|
var deserializeAws_restJson1Rule = function (output, context) {
|
|
9189
9063
|
return {
|
|
9190
|
-
Parameters: output.Parameters
|
|
9191
|
-
? deserializeAws_restJson1RuleParameterMap(output.Parameters, context)
|
|
9192
|
-
: undefined,
|
|
9064
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1RuleParameterMap(output.Parameters, context) : undefined,
|
|
9193
9065
|
Type: __expectString(output.Type),
|
|
9194
9066
|
};
|
|
9195
9067
|
};
|
|
@@ -9271,15 +9143,13 @@ var deserializeAws_restJson1TypedAttributeValue = function (output, context) {
|
|
|
9271
9143
|
};
|
|
9272
9144
|
var deserializeAws_restJson1TypedLinkAttributeDefinition = function (output, context) {
|
|
9273
9145
|
return {
|
|
9274
|
-
DefaultValue: output.DefaultValue
|
|
9146
|
+
DefaultValue: output.DefaultValue != null
|
|
9275
9147
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
|
|
9276
9148
|
: undefined,
|
|
9277
9149
|
IsImmutable: __expectBoolean(output.IsImmutable),
|
|
9278
9150
|
Name: __expectString(output.Name),
|
|
9279
9151
|
RequiredBehavior: __expectString(output.RequiredBehavior),
|
|
9280
|
-
Rules: output.Rules
|
|
9281
|
-
? deserializeAws_restJson1RuleMap(output.Rules, context)
|
|
9282
|
-
: undefined,
|
|
9152
|
+
Rules: output.Rules != null ? deserializeAws_restJson1RuleMap(output.Rules, context) : undefined,
|
|
9283
9153
|
Type: __expectString(output.Type),
|
|
9284
9154
|
};
|
|
9285
9155
|
};
|
|
@@ -9313,16 +9183,16 @@ var deserializeAws_restJson1TypedLinkSchemaAndFacetName = function (output, cont
|
|
|
9313
9183
|
};
|
|
9314
9184
|
var deserializeAws_restJson1TypedLinkSpecifier = function (output, context) {
|
|
9315
9185
|
return {
|
|
9316
|
-
IdentityAttributeValues: output.IdentityAttributeValues
|
|
9186
|
+
IdentityAttributeValues: output.IdentityAttributeValues != null
|
|
9317
9187
|
? deserializeAws_restJson1AttributeNameAndValueList(output.IdentityAttributeValues, context)
|
|
9318
9188
|
: undefined,
|
|
9319
|
-
SourceObjectReference: output.SourceObjectReference
|
|
9189
|
+
SourceObjectReference: output.SourceObjectReference != null
|
|
9320
9190
|
? deserializeAws_restJson1ObjectReference(output.SourceObjectReference, context)
|
|
9321
9191
|
: undefined,
|
|
9322
|
-
TargetObjectReference: output.TargetObjectReference
|
|
9192
|
+
TargetObjectReference: output.TargetObjectReference != null
|
|
9323
9193
|
? deserializeAws_restJson1ObjectReference(output.TargetObjectReference, context)
|
|
9324
9194
|
: undefined,
|
|
9325
|
-
TypedLinkFacet: output.TypedLinkFacet
|
|
9195
|
+
TypedLinkFacet: output.TypedLinkFacet != null
|
|
9326
9196
|
? deserializeAws_restJson1TypedLinkSchemaAndFacetName(output.TypedLinkFacet, context)
|
|
9327
9197
|
: undefined,
|
|
9328
9198
|
};
|
|
@@ -9394,5 +9264,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
9394
9264
|
if (data["__type"] !== undefined) {
|
|
9395
9265
|
return sanitizeErrorCode(data["__type"]);
|
|
9396
9266
|
}
|
|
9397
|
-
return "";
|
|
9398
9267
|
};
|