@aws-sdk/client-clouddirectory 3.121.0 → 3.130.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 +399 -592
- package/dist-es/protocols/Aws_restJson1.js +279 -472
- 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,
|
|
@@ -7998,12 +7931,10 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
7998
7931
|
});
|
|
7999
7932
|
}); };
|
|
8000
7933
|
var serializeAws_restJson1AttributeKey = function (input, context) {
|
|
8001
|
-
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 }));
|
|
8002
7935
|
};
|
|
8003
7936
|
var serializeAws_restJson1AttributeKeyAndValue = function (input, context) {
|
|
8004
|
-
return __assign(__assign({}, (input.Key
|
|
8005
|
-
input.Key !== null && { Key: serializeAws_restJson1AttributeKey(input.Key, context) })), (input.Value !== undefined &&
|
|
8006
|
-
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) }));
|
|
8007
7938
|
};
|
|
8008
7939
|
var serializeAws_restJson1AttributeKeyAndValueList = function (input, context) {
|
|
8009
7940
|
return input
|
|
@@ -8026,8 +7957,7 @@ var serializeAws_restJson1AttributeKeyList = function (input, context) {
|
|
|
8026
7957
|
});
|
|
8027
7958
|
};
|
|
8028
7959
|
var serializeAws_restJson1AttributeNameAndValue = function (input, context) {
|
|
8029
|
-
return __assign(__assign({}, (input.AttributeName
|
|
8030
|
-
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) }));
|
|
8031
7961
|
};
|
|
8032
7962
|
var serializeAws_restJson1AttributeNameAndValueList = function (input, context) {
|
|
8033
7963
|
return input
|
|
@@ -8050,262 +7980,199 @@ var serializeAws_restJson1AttributeNameList = function (input, context) {
|
|
|
8050
7980
|
});
|
|
8051
7981
|
};
|
|
8052
7982
|
var serializeAws_restJson1BatchAddFacetToObject = function (input, context) {
|
|
8053
|
-
return __assign(__assign(__assign({}, (input.ObjectAttributeList
|
|
8054
|
-
input.ObjectAttributeList !== null && {
|
|
7983
|
+
return __assign(__assign(__assign({}, (input.ObjectAttributeList != null && {
|
|
8055
7984
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
8056
|
-
})), (input.ObjectReference
|
|
8057
|
-
input.ObjectReference !== null && {
|
|
7985
|
+
})), (input.ObjectReference != null && {
|
|
8058
7986
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8059
|
-
})), (input.SchemaFacet
|
|
8060
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
7987
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8061
7988
|
};
|
|
8062
7989
|
var serializeAws_restJson1BatchAttachObject = function (input, context) {
|
|
8063
|
-
return __assign(__assign(__assign({}, (input.ChildReference
|
|
8064
|
-
input.ChildReference !== null && {
|
|
7990
|
+
return __assign(__assign(__assign({}, (input.ChildReference != null && {
|
|
8065
7991
|
ChildReference: serializeAws_restJson1ObjectReference(input.ChildReference, context),
|
|
8066
|
-
})), (input.LinkName
|
|
8067
|
-
input.ParentReference !== null && {
|
|
7992
|
+
})), (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
8068
7993
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8069
7994
|
}));
|
|
8070
7995
|
};
|
|
8071
7996
|
var serializeAws_restJson1BatchAttachPolicy = function (input, context) {
|
|
8072
|
-
return __assign(__assign({}, (input.ObjectReference
|
|
8073
|
-
input.ObjectReference !== null && {
|
|
7997
|
+
return __assign(__assign({}, (input.ObjectReference != null && {
|
|
8074
7998
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8075
|
-
})), (input.PolicyReference
|
|
8076
|
-
input.PolicyReference !== null && {
|
|
7999
|
+
})), (input.PolicyReference != null && {
|
|
8077
8000
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
8078
8001
|
}));
|
|
8079
8002
|
};
|
|
8080
8003
|
var serializeAws_restJson1BatchAttachToIndex = function (input, context) {
|
|
8081
|
-
return __assign(__assign({}, (input.IndexReference
|
|
8082
|
-
input.IndexReference !== null && {
|
|
8004
|
+
return __assign(__assign({}, (input.IndexReference != null && {
|
|
8083
8005
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
8084
|
-
})), (input.TargetReference
|
|
8085
|
-
input.TargetReference !== null && {
|
|
8006
|
+
})), (input.TargetReference != null && {
|
|
8086
8007
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
8087
8008
|
}));
|
|
8088
8009
|
};
|
|
8089
8010
|
var serializeAws_restJson1BatchAttachTypedLink = function (input, context) {
|
|
8090
|
-
return __assign(__assign(__assign(__assign({}, (input.Attributes
|
|
8091
|
-
input.Attributes !== null && {
|
|
8011
|
+
return __assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
8092
8012
|
Attributes: serializeAws_restJson1AttributeNameAndValueList(input.Attributes, context),
|
|
8093
|
-
})), (input.SourceObjectReference
|
|
8094
|
-
input.SourceObjectReference !== null && {
|
|
8013
|
+
})), (input.SourceObjectReference != null && {
|
|
8095
8014
|
SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
|
|
8096
|
-
})), (input.TargetObjectReference
|
|
8097
|
-
input.TargetObjectReference !== null && {
|
|
8015
|
+
})), (input.TargetObjectReference != null && {
|
|
8098
8016
|
TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
|
|
8099
|
-
})), (input.TypedLinkFacet
|
|
8100
|
-
input.TypedLinkFacet !== null && {
|
|
8017
|
+
})), (input.TypedLinkFacet != null && {
|
|
8101
8018
|
TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
|
|
8102
8019
|
}));
|
|
8103
8020
|
};
|
|
8104
8021
|
var serializeAws_restJson1BatchCreateIndex = function (input, context) {
|
|
8105
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchReferenceName
|
|
8106
|
-
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 &&
|
|
8107
|
-
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 && {
|
|
8108
8023
|
OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
|
|
8109
|
-
})), (input.ParentReference
|
|
8110
|
-
input.ParentReference !== null && {
|
|
8024
|
+
})), (input.ParentReference != null && {
|
|
8111
8025
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8112
8026
|
}));
|
|
8113
8027
|
};
|
|
8114
8028
|
var serializeAws_restJson1BatchCreateObject = function (input, context) {
|
|
8115
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.BatchReferenceName
|
|
8116
|
-
input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.ObjectAttributeList !== undefined &&
|
|
8117
|
-
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 && {
|
|
8118
8030
|
ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
|
|
8119
|
-
})), (input.ParentReference
|
|
8120
|
-
input.ParentReference !== null && {
|
|
8031
|
+
})), (input.ParentReference != null && {
|
|
8121
8032
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8122
|
-
})), (input.SchemaFacet
|
|
8123
|
-
|
|
8033
|
+
})), (input.SchemaFacet != null && {
|
|
8034
|
+
SchemaFacet: serializeAws_restJson1SchemaFacetList(input.SchemaFacet, context),
|
|
8035
|
+
}));
|
|
8124
8036
|
};
|
|
8125
8037
|
var serializeAws_restJson1BatchDeleteObject = function (input, context) {
|
|
8126
|
-
return __assign({}, (input.ObjectReference
|
|
8127
|
-
input.ObjectReference !== null && {
|
|
8038
|
+
return __assign({}, (input.ObjectReference != null && {
|
|
8128
8039
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8129
8040
|
}));
|
|
8130
8041
|
};
|
|
8131
8042
|
var serializeAws_restJson1BatchDetachFromIndex = function (input, context) {
|
|
8132
|
-
return __assign(__assign({}, (input.IndexReference
|
|
8133
|
-
input.IndexReference !== null && {
|
|
8043
|
+
return __assign(__assign({}, (input.IndexReference != null && {
|
|
8134
8044
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
8135
|
-
})), (input.TargetReference
|
|
8136
|
-
input.TargetReference !== null && {
|
|
8045
|
+
})), (input.TargetReference != null && {
|
|
8137
8046
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
8138
8047
|
}));
|
|
8139
8048
|
};
|
|
8140
8049
|
var serializeAws_restJson1BatchDetachObject = function (input, context) {
|
|
8141
|
-
return __assign(__assign(__assign({}, (input.BatchReferenceName
|
|
8142
|
-
input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.ParentReference !== undefined &&
|
|
8143
|
-
input.ParentReference !== null && {
|
|
8050
|
+
return __assign(__assign(__assign({}, (input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName })), (input.LinkName != null && { LinkName: input.LinkName })), (input.ParentReference != null && {
|
|
8144
8051
|
ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
|
|
8145
8052
|
}));
|
|
8146
8053
|
};
|
|
8147
8054
|
var serializeAws_restJson1BatchDetachPolicy = function (input, context) {
|
|
8148
|
-
return __assign(__assign({}, (input.ObjectReference
|
|
8149
|
-
input.ObjectReference !== null && {
|
|
8055
|
+
return __assign(__assign({}, (input.ObjectReference != null && {
|
|
8150
8056
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8151
|
-
})), (input.PolicyReference
|
|
8152
|
-
input.PolicyReference !== null && {
|
|
8057
|
+
})), (input.PolicyReference != null && {
|
|
8153
8058
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
8154
8059
|
}));
|
|
8155
8060
|
};
|
|
8156
8061
|
var serializeAws_restJson1BatchDetachTypedLink = function (input, context) {
|
|
8157
|
-
return __assign({}, (input.TypedLinkSpecifier
|
|
8158
|
-
input.TypedLinkSpecifier !== null && {
|
|
8062
|
+
return __assign({}, (input.TypedLinkSpecifier != null && {
|
|
8159
8063
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
8160
8064
|
}));
|
|
8161
8065
|
};
|
|
8162
8066
|
var serializeAws_restJson1BatchGetLinkAttributes = function (input, context) {
|
|
8163
|
-
return __assign(__assign({}, (input.AttributeNames
|
|
8164
|
-
input.AttributeNames !== null && {
|
|
8067
|
+
return __assign(__assign({}, (input.AttributeNames != null && {
|
|
8165
8068
|
AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
|
|
8166
|
-
})), (input.TypedLinkSpecifier
|
|
8167
|
-
input.TypedLinkSpecifier !== null && {
|
|
8069
|
+
})), (input.TypedLinkSpecifier != null && {
|
|
8168
8070
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
8169
8071
|
}));
|
|
8170
8072
|
};
|
|
8171
8073
|
var serializeAws_restJson1BatchGetObjectAttributes = function (input, context) {
|
|
8172
|
-
return __assign(__assign(__assign({}, (input.AttributeNames
|
|
8173
|
-
input.AttributeNames !== null && {
|
|
8074
|
+
return __assign(__assign(__assign({}, (input.AttributeNames != null && {
|
|
8174
8075
|
AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
|
|
8175
|
-
})), (input.ObjectReference
|
|
8176
|
-
input.ObjectReference !== null && {
|
|
8076
|
+
})), (input.ObjectReference != null && {
|
|
8177
8077
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8178
|
-
})), (input.SchemaFacet
|
|
8179
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8078
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8180
8079
|
};
|
|
8181
8080
|
var serializeAws_restJson1BatchGetObjectInformation = function (input, context) {
|
|
8182
|
-
return __assign({}, (input.ObjectReference
|
|
8183
|
-
input.ObjectReference !== null && {
|
|
8081
|
+
return __assign({}, (input.ObjectReference != null && {
|
|
8184
8082
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8185
8083
|
}));
|
|
8186
8084
|
};
|
|
8187
8085
|
var serializeAws_restJson1BatchListAttachedIndices = function (input, context) {
|
|
8188
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8189
|
-
input.TargetReference !== null && {
|
|
8086
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TargetReference != null && {
|
|
8190
8087
|
TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
|
|
8191
8088
|
}));
|
|
8192
8089
|
};
|
|
8193
8090
|
var serializeAws_restJson1BatchListIncomingTypedLinks = function (input, context) {
|
|
8194
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges
|
|
8195
|
-
input.FilterAttributeRanges !== null && {
|
|
8091
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges != null && {
|
|
8196
8092
|
FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
|
|
8197
|
-
})), (input.FilterTypedLink
|
|
8198
|
-
input.FilterTypedLink !== null && {
|
|
8093
|
+
})), (input.FilterTypedLink != null && {
|
|
8199
8094
|
FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
|
|
8200
|
-
})), (input.MaxResults
|
|
8201
|
-
input.ObjectReference !== null && {
|
|
8095
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8202
8096
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8203
8097
|
}));
|
|
8204
8098
|
};
|
|
8205
8099
|
var serializeAws_restJson1BatchListIndex = function (input, context) {
|
|
8206
|
-
return __assign(__assign(__assign(__assign({}, (input.IndexReference
|
|
8207
|
-
input.IndexReference !== null && {
|
|
8100
|
+
return __assign(__assign(__assign(__assign({}, (input.IndexReference != null && {
|
|
8208
8101
|
IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
|
|
8209
|
-
})), (input.MaxResults
|
|
8210
|
-
input.RangesOnIndexedValues !== null && {
|
|
8102
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.RangesOnIndexedValues != null && {
|
|
8211
8103
|
RangesOnIndexedValues: serializeAws_restJson1ObjectAttributeRangeList(input.RangesOnIndexedValues, context),
|
|
8212
8104
|
}));
|
|
8213
8105
|
};
|
|
8214
8106
|
var serializeAws_restJson1BatchListObjectAttributes = function (input, context) {
|
|
8215
|
-
return __assign(__assign(__assign(__assign({}, (input.FacetFilter
|
|
8216
|
-
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 &&
|
|
8217
|
-
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 && {
|
|
8218
8108
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8219
8109
|
}));
|
|
8220
8110
|
};
|
|
8221
8111
|
var serializeAws_restJson1BatchListObjectChildren = function (input, context) {
|
|
8222
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8223
|
-
input.ObjectReference !== null && {
|
|
8112
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8224
8113
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8225
8114
|
}));
|
|
8226
8115
|
};
|
|
8227
8116
|
var serializeAws_restJson1BatchListObjectParentPaths = function (input, context) {
|
|
8228
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8229
|
-
input.ObjectReference !== null && {
|
|
8117
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8230
8118
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8231
8119
|
}));
|
|
8232
8120
|
};
|
|
8233
8121
|
var serializeAws_restJson1BatchListObjectParents = function (input, context) {
|
|
8234
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8235
|
-
input.ObjectReference !== null && {
|
|
8122
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8236
8123
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8237
8124
|
}));
|
|
8238
8125
|
};
|
|
8239
8126
|
var serializeAws_restJson1BatchListObjectPolicies = function (input, context) {
|
|
8240
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8241
|
-
input.ObjectReference !== null && {
|
|
8127
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8242
8128
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8243
8129
|
}));
|
|
8244
8130
|
};
|
|
8245
8131
|
var serializeAws_restJson1BatchListOutgoingTypedLinks = function (input, context) {
|
|
8246
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges
|
|
8247
|
-
input.FilterAttributeRanges !== null && {
|
|
8132
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.FilterAttributeRanges != null && {
|
|
8248
8133
|
FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
|
|
8249
|
-
})), (input.FilterTypedLink
|
|
8250
|
-
input.FilterTypedLink !== null && {
|
|
8134
|
+
})), (input.FilterTypedLink != null && {
|
|
8251
8135
|
FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
|
|
8252
|
-
})), (input.MaxResults
|
|
8253
|
-
input.ObjectReference !== null && {
|
|
8136
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8254
8137
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8255
8138
|
}));
|
|
8256
8139
|
};
|
|
8257
8140
|
var serializeAws_restJson1BatchListPolicyAttachments = function (input, context) {
|
|
8258
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8259
|
-
input.PolicyReference !== null && {
|
|
8141
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyReference != null && {
|
|
8260
8142
|
PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
|
|
8261
8143
|
}));
|
|
8262
8144
|
};
|
|
8263
8145
|
var serializeAws_restJson1BatchLookupPolicy = function (input, context) {
|
|
8264
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
8265
|
-
input.ObjectReference !== null && {
|
|
8146
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ObjectReference != null && {
|
|
8266
8147
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8267
8148
|
}));
|
|
8268
8149
|
};
|
|
8269
8150
|
var serializeAws_restJson1BatchReadOperation = function (input, context) {
|
|
8270
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GetLinkAttributes
|
|
8271
|
-
input.GetLinkAttributes !== null && {
|
|
8151
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GetLinkAttributes != null && {
|
|
8272
8152
|
GetLinkAttributes: serializeAws_restJson1BatchGetLinkAttributes(input.GetLinkAttributes, context),
|
|
8273
|
-
})), (input.GetObjectAttributes
|
|
8274
|
-
input.GetObjectAttributes !== null && {
|
|
8153
|
+
})), (input.GetObjectAttributes != null && {
|
|
8275
8154
|
GetObjectAttributes: serializeAws_restJson1BatchGetObjectAttributes(input.GetObjectAttributes, context),
|
|
8276
|
-
})), (input.GetObjectInformation
|
|
8277
|
-
input.GetObjectInformation !== null && {
|
|
8155
|
+
})), (input.GetObjectInformation != null && {
|
|
8278
8156
|
GetObjectInformation: serializeAws_restJson1BatchGetObjectInformation(input.GetObjectInformation, context),
|
|
8279
|
-
})), (input.ListAttachedIndices
|
|
8280
|
-
input.ListAttachedIndices !== null && {
|
|
8157
|
+
})), (input.ListAttachedIndices != null && {
|
|
8281
8158
|
ListAttachedIndices: serializeAws_restJson1BatchListAttachedIndices(input.ListAttachedIndices, context),
|
|
8282
|
-
})), (input.ListIncomingTypedLinks
|
|
8283
|
-
input.ListIncomingTypedLinks !== null && {
|
|
8159
|
+
})), (input.ListIncomingTypedLinks != null && {
|
|
8284
8160
|
ListIncomingTypedLinks: serializeAws_restJson1BatchListIncomingTypedLinks(input.ListIncomingTypedLinks, context),
|
|
8285
|
-
})), (input.ListIndex
|
|
8286
|
-
input.ListIndex !== null && { ListIndex: serializeAws_restJson1BatchListIndex(input.ListIndex, context) })), (input.ListObjectAttributes !== undefined &&
|
|
8287
|
-
input.ListObjectAttributes !== null && {
|
|
8161
|
+
})), (input.ListIndex != null && { ListIndex: serializeAws_restJson1BatchListIndex(input.ListIndex, context) })), (input.ListObjectAttributes != null && {
|
|
8288
8162
|
ListObjectAttributes: serializeAws_restJson1BatchListObjectAttributes(input.ListObjectAttributes, context),
|
|
8289
|
-
})), (input.ListObjectChildren
|
|
8290
|
-
input.ListObjectChildren !== null && {
|
|
8163
|
+
})), (input.ListObjectChildren != null && {
|
|
8291
8164
|
ListObjectChildren: serializeAws_restJson1BatchListObjectChildren(input.ListObjectChildren, context),
|
|
8292
|
-
})), (input.ListObjectParentPaths
|
|
8293
|
-
input.ListObjectParentPaths !== null && {
|
|
8165
|
+
})), (input.ListObjectParentPaths != null && {
|
|
8294
8166
|
ListObjectParentPaths: serializeAws_restJson1BatchListObjectParentPaths(input.ListObjectParentPaths, context),
|
|
8295
|
-
})), (input.ListObjectParents
|
|
8296
|
-
input.ListObjectParents !== null && {
|
|
8167
|
+
})), (input.ListObjectParents != null && {
|
|
8297
8168
|
ListObjectParents: serializeAws_restJson1BatchListObjectParents(input.ListObjectParents, context),
|
|
8298
|
-
})), (input.ListObjectPolicies
|
|
8299
|
-
input.ListObjectPolicies !== null && {
|
|
8169
|
+
})), (input.ListObjectPolicies != null && {
|
|
8300
8170
|
ListObjectPolicies: serializeAws_restJson1BatchListObjectPolicies(input.ListObjectPolicies, context),
|
|
8301
|
-
})), (input.ListOutgoingTypedLinks
|
|
8302
|
-
input.ListOutgoingTypedLinks !== null && {
|
|
8171
|
+
})), (input.ListOutgoingTypedLinks != null && {
|
|
8303
8172
|
ListOutgoingTypedLinks: serializeAws_restJson1BatchListOutgoingTypedLinks(input.ListOutgoingTypedLinks, context),
|
|
8304
|
-
})), (input.ListPolicyAttachments
|
|
8305
|
-
input.ListPolicyAttachments !== null && {
|
|
8173
|
+
})), (input.ListPolicyAttachments != null && {
|
|
8306
8174
|
ListPolicyAttachments: serializeAws_restJson1BatchListPolicyAttachments(input.ListPolicyAttachments, context),
|
|
8307
|
-
})), (input.LookupPolicy
|
|
8308
|
-
input.LookupPolicy !== null && {
|
|
8175
|
+
})), (input.LookupPolicy != null && {
|
|
8309
8176
|
LookupPolicy: serializeAws_restJson1BatchLookupPolicy(input.LookupPolicy, context),
|
|
8310
8177
|
}));
|
|
8311
8178
|
};
|
|
@@ -8320,75 +8187,54 @@ var serializeAws_restJson1BatchReadOperationList = function (input, context) {
|
|
|
8320
8187
|
});
|
|
8321
8188
|
};
|
|
8322
8189
|
var serializeAws_restJson1BatchRemoveFacetFromObject = function (input, context) {
|
|
8323
|
-
return __assign(__assign({}, (input.ObjectReference
|
|
8324
|
-
input.ObjectReference !== null && {
|
|
8190
|
+
return __assign(__assign({}, (input.ObjectReference != null && {
|
|
8325
8191
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8326
|
-
})), (input.SchemaFacet
|
|
8327
|
-
input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8192
|
+
})), (input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }));
|
|
8328
8193
|
};
|
|
8329
8194
|
var serializeAws_restJson1BatchUpdateLinkAttributes = function (input, context) {
|
|
8330
|
-
return __assign(__assign({}, (input.AttributeUpdates
|
|
8331
|
-
input.AttributeUpdates !== null && {
|
|
8195
|
+
return __assign(__assign({}, (input.AttributeUpdates != null && {
|
|
8332
8196
|
AttributeUpdates: serializeAws_restJson1LinkAttributeUpdateList(input.AttributeUpdates, context),
|
|
8333
|
-
})), (input.TypedLinkSpecifier
|
|
8334
|
-
input.TypedLinkSpecifier !== null && {
|
|
8197
|
+
})), (input.TypedLinkSpecifier != null && {
|
|
8335
8198
|
TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
|
|
8336
8199
|
}));
|
|
8337
8200
|
};
|
|
8338
8201
|
var serializeAws_restJson1BatchUpdateObjectAttributes = function (input, context) {
|
|
8339
|
-
return __assign(__assign({}, (input.AttributeUpdates
|
|
8340
|
-
input.AttributeUpdates !== null && {
|
|
8202
|
+
return __assign(__assign({}, (input.AttributeUpdates != null && {
|
|
8341
8203
|
AttributeUpdates: serializeAws_restJson1ObjectAttributeUpdateList(input.AttributeUpdates, context),
|
|
8342
|
-
})), (input.ObjectReference
|
|
8343
|
-
input.ObjectReference !== null && {
|
|
8204
|
+
})), (input.ObjectReference != null && {
|
|
8344
8205
|
ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
|
|
8345
8206
|
}));
|
|
8346
8207
|
};
|
|
8347
8208
|
var serializeAws_restJson1BatchWriteOperation = function (input, context) {
|
|
8348
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddFacetToObject
|
|
8349
|
-
input.AddFacetToObject !== null && {
|
|
8209
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AddFacetToObject != null && {
|
|
8350
8210
|
AddFacetToObject: serializeAws_restJson1BatchAddFacetToObject(input.AddFacetToObject, context),
|
|
8351
|
-
})), (input.AttachObject
|
|
8352
|
-
input.AttachObject !== null && {
|
|
8211
|
+
})), (input.AttachObject != null && {
|
|
8353
8212
|
AttachObject: serializeAws_restJson1BatchAttachObject(input.AttachObject, context),
|
|
8354
|
-
})), (input.AttachPolicy
|
|
8355
|
-
input.AttachPolicy !== null && {
|
|
8213
|
+
})), (input.AttachPolicy != null && {
|
|
8356
8214
|
AttachPolicy: serializeAws_restJson1BatchAttachPolicy(input.AttachPolicy, context),
|
|
8357
|
-
})), (input.AttachToIndex
|
|
8358
|
-
input.AttachToIndex !== null && {
|
|
8215
|
+
})), (input.AttachToIndex != null && {
|
|
8359
8216
|
AttachToIndex: serializeAws_restJson1BatchAttachToIndex(input.AttachToIndex, context),
|
|
8360
|
-
})), (input.AttachTypedLink
|
|
8361
|
-
input.AttachTypedLink !== null && {
|
|
8217
|
+
})), (input.AttachTypedLink != null && {
|
|
8362
8218
|
AttachTypedLink: serializeAws_restJson1BatchAttachTypedLink(input.AttachTypedLink, context),
|
|
8363
|
-
})), (input.CreateIndex
|
|
8364
|
-
input.CreateIndex !== null && {
|
|
8219
|
+
})), (input.CreateIndex != null && {
|
|
8365
8220
|
CreateIndex: serializeAws_restJson1BatchCreateIndex(input.CreateIndex, context),
|
|
8366
|
-
})), (input.CreateObject
|
|
8367
|
-
input.CreateObject !== null && {
|
|
8221
|
+
})), (input.CreateObject != null && {
|
|
8368
8222
|
CreateObject: serializeAws_restJson1BatchCreateObject(input.CreateObject, context),
|
|
8369
|
-
})), (input.DeleteObject
|
|
8370
|
-
input.DeleteObject !== null && {
|
|
8223
|
+
})), (input.DeleteObject != null && {
|
|
8371
8224
|
DeleteObject: serializeAws_restJson1BatchDeleteObject(input.DeleteObject, context),
|
|
8372
|
-
})), (input.DetachFromIndex
|
|
8373
|
-
input.DetachFromIndex !== null && {
|
|
8225
|
+
})), (input.DetachFromIndex != null && {
|
|
8374
8226
|
DetachFromIndex: serializeAws_restJson1BatchDetachFromIndex(input.DetachFromIndex, context),
|
|
8375
|
-
})), (input.DetachObject
|
|
8376
|
-
input.DetachObject !== null && {
|
|
8227
|
+
})), (input.DetachObject != null && {
|
|
8377
8228
|
DetachObject: serializeAws_restJson1BatchDetachObject(input.DetachObject, context),
|
|
8378
|
-
})), (input.DetachPolicy
|
|
8379
|
-
input.DetachPolicy !== null && {
|
|
8229
|
+
})), (input.DetachPolicy != null && {
|
|
8380
8230
|
DetachPolicy: serializeAws_restJson1BatchDetachPolicy(input.DetachPolicy, context),
|
|
8381
|
-
})), (input.DetachTypedLink
|
|
8382
|
-
input.DetachTypedLink !== null && {
|
|
8231
|
+
})), (input.DetachTypedLink != null && {
|
|
8383
8232
|
DetachTypedLink: serializeAws_restJson1BatchDetachTypedLink(input.DetachTypedLink, context),
|
|
8384
|
-
})), (input.RemoveFacetFromObject
|
|
8385
|
-
input.RemoveFacetFromObject !== null && {
|
|
8233
|
+
})), (input.RemoveFacetFromObject != null && {
|
|
8386
8234
|
RemoveFacetFromObject: serializeAws_restJson1BatchRemoveFacetFromObject(input.RemoveFacetFromObject, context),
|
|
8387
|
-
})), (input.UpdateLinkAttributes
|
|
8388
|
-
input.UpdateLinkAttributes !== null && {
|
|
8235
|
+
})), (input.UpdateLinkAttributes != null && {
|
|
8389
8236
|
UpdateLinkAttributes: serializeAws_restJson1BatchUpdateLinkAttributes(input.UpdateLinkAttributes, context),
|
|
8390
|
-
})), (input.UpdateObjectAttributes
|
|
8391
|
-
input.UpdateObjectAttributes !== null && {
|
|
8237
|
+
})), (input.UpdateObjectAttributes != null && {
|
|
8392
8238
|
UpdateObjectAttributes: serializeAws_restJson1BatchUpdateObjectAttributes(input.UpdateObjectAttributes, context),
|
|
8393
8239
|
}));
|
|
8394
8240
|
};
|
|
@@ -8403,21 +8249,16 @@ var serializeAws_restJson1BatchWriteOperationList = function (input, context) {
|
|
|
8403
8249
|
});
|
|
8404
8250
|
};
|
|
8405
8251
|
var serializeAws_restJson1FacetAttribute = function (input, context) {
|
|
8406
|
-
return __assign(__assign(__assign(__assign({}, (input.AttributeDefinition
|
|
8407
|
-
input.AttributeDefinition !== null && {
|
|
8252
|
+
return __assign(__assign(__assign(__assign({}, (input.AttributeDefinition != null && {
|
|
8408
8253
|
AttributeDefinition: serializeAws_restJson1FacetAttributeDefinition(input.AttributeDefinition, context),
|
|
8409
|
-
})), (input.AttributeReference
|
|
8410
|
-
input.AttributeReference !== null && {
|
|
8254
|
+
})), (input.AttributeReference != null && {
|
|
8411
8255
|
AttributeReference: serializeAws_restJson1FacetAttributeReference(input.AttributeReference, context),
|
|
8412
|
-
})), (input.Name
|
|
8413
|
-
input.RequiredBehavior !== null && { RequiredBehavior: input.RequiredBehavior }));
|
|
8256
|
+
})), (input.Name != null && { Name: input.Name })), (input.RequiredBehavior != null && { RequiredBehavior: input.RequiredBehavior }));
|
|
8414
8257
|
};
|
|
8415
8258
|
var serializeAws_restJson1FacetAttributeDefinition = function (input, context) {
|
|
8416
|
-
return __assign(__assign(__assign(__assign({}, (input.DefaultValue
|
|
8417
|
-
input.DefaultValue !== null && {
|
|
8259
|
+
return __assign(__assign(__assign(__assign({}, (input.DefaultValue != null && {
|
|
8418
8260
|
DefaultValue: serializeAws_restJson1TypedAttributeValue(input.DefaultValue, context),
|
|
8419
|
-
})), (input.IsImmutable
|
|
8420
|
-
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 }));
|
|
8421
8262
|
};
|
|
8422
8263
|
var serializeAws_restJson1FacetAttributeList = function (input, context) {
|
|
8423
8264
|
return input
|
|
@@ -8430,13 +8271,10 @@ var serializeAws_restJson1FacetAttributeList = function (input, context) {
|
|
|
8430
8271
|
});
|
|
8431
8272
|
};
|
|
8432
8273
|
var serializeAws_restJson1FacetAttributeReference = function (input, context) {
|
|
8433
|
-
return __assign(__assign({}, (input.TargetAttributeName
|
|
8434
|
-
input.TargetAttributeName !== null && { TargetAttributeName: input.TargetAttributeName })), (input.TargetFacetName !== undefined &&
|
|
8435
|
-
input.TargetFacetName !== null && { TargetFacetName: input.TargetFacetName }));
|
|
8274
|
+
return __assign(__assign({}, (input.TargetAttributeName != null && { TargetAttributeName: input.TargetAttributeName })), (input.TargetFacetName != null && { TargetFacetName: input.TargetFacetName }));
|
|
8436
8275
|
};
|
|
8437
8276
|
var serializeAws_restJson1FacetAttributeUpdate = function (input, context) {
|
|
8438
|
-
return __assign(__assign({}, (input.Action
|
|
8439
|
-
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) }));
|
|
8440
8278
|
};
|
|
8441
8279
|
var serializeAws_restJson1FacetAttributeUpdateList = function (input, context) {
|
|
8442
8280
|
return input
|
|
@@ -8449,18 +8287,16 @@ var serializeAws_restJson1FacetAttributeUpdateList = function (input, context) {
|
|
|
8449
8287
|
});
|
|
8450
8288
|
};
|
|
8451
8289
|
var serializeAws_restJson1LinkAttributeAction = function (input, context) {
|
|
8452
|
-
return __assign(__assign({}, (input.AttributeActionType
|
|
8453
|
-
input.AttributeActionType !== null && { AttributeActionType: input.AttributeActionType })), (input.AttributeUpdateValue !== undefined &&
|
|
8454
|
-
input.AttributeUpdateValue !== null && {
|
|
8290
|
+
return __assign(__assign({}, (input.AttributeActionType != null && { AttributeActionType: input.AttributeActionType })), (input.AttributeUpdateValue != null && {
|
|
8455
8291
|
AttributeUpdateValue: serializeAws_restJson1TypedAttributeValue(input.AttributeUpdateValue, context),
|
|
8456
8292
|
}));
|
|
8457
8293
|
};
|
|
8458
8294
|
var serializeAws_restJson1LinkAttributeUpdate = function (input, context) {
|
|
8459
|
-
return __assign(__assign({}, (input.AttributeAction
|
|
8460
|
-
input.AttributeAction !== null && {
|
|
8295
|
+
return __assign(__assign({}, (input.AttributeAction != null && {
|
|
8461
8296
|
AttributeAction: serializeAws_restJson1LinkAttributeAction(input.AttributeAction, context),
|
|
8462
|
-
})), (input.AttributeKey
|
|
8463
|
-
|
|
8297
|
+
})), (input.AttributeKey != null && {
|
|
8298
|
+
AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context),
|
|
8299
|
+
}));
|
|
8464
8300
|
};
|
|
8465
8301
|
var serializeAws_restJson1LinkAttributeUpdateList = function (input, context) {
|
|
8466
8302
|
return input
|
|
@@ -8473,16 +8309,14 @@ var serializeAws_restJson1LinkAttributeUpdateList = function (input, context) {
|
|
|
8473
8309
|
});
|
|
8474
8310
|
};
|
|
8475
8311
|
var serializeAws_restJson1ObjectAttributeAction = function (input, context) {
|
|
8476
|
-
return __assign(__assign({}, (input.ObjectAttributeActionType
|
|
8477
|
-
input.ObjectAttributeActionType !== null && { ObjectAttributeActionType: input.ObjectAttributeActionType })), (input.ObjectAttributeUpdateValue !== undefined &&
|
|
8478
|
-
input.ObjectAttributeUpdateValue !== null && {
|
|
8312
|
+
return __assign(__assign({}, (input.ObjectAttributeActionType != null && { ObjectAttributeActionType: input.ObjectAttributeActionType })), (input.ObjectAttributeUpdateValue != null && {
|
|
8479
8313
|
ObjectAttributeUpdateValue: serializeAws_restJson1TypedAttributeValue(input.ObjectAttributeUpdateValue, context),
|
|
8480
8314
|
}));
|
|
8481
8315
|
};
|
|
8482
8316
|
var serializeAws_restJson1ObjectAttributeRange = function (input, context) {
|
|
8483
|
-
return __assign(__assign({}, (input.AttributeKey
|
|
8484
|
-
|
|
8485
|
-
|
|
8317
|
+
return __assign(__assign({}, (input.AttributeKey != null && {
|
|
8318
|
+
AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context),
|
|
8319
|
+
})), (input.Range != null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }));
|
|
8486
8320
|
};
|
|
8487
8321
|
var serializeAws_restJson1ObjectAttributeRangeList = function (input, context) {
|
|
8488
8322
|
return input
|
|
@@ -8495,11 +8329,9 @@ var serializeAws_restJson1ObjectAttributeRangeList = function (input, context) {
|
|
|
8495
8329
|
});
|
|
8496
8330
|
};
|
|
8497
8331
|
var serializeAws_restJson1ObjectAttributeUpdate = function (input, context) {
|
|
8498
|
-
return __assign(__assign({}, (input.ObjectAttributeAction
|
|
8499
|
-
input.ObjectAttributeAction !== null && {
|
|
8332
|
+
return __assign(__assign({}, (input.ObjectAttributeAction != null && {
|
|
8500
8333
|
ObjectAttributeAction: serializeAws_restJson1ObjectAttributeAction(input.ObjectAttributeAction, context),
|
|
8501
|
-
})), (input.ObjectAttributeKey
|
|
8502
|
-
input.ObjectAttributeKey !== null && {
|
|
8334
|
+
})), (input.ObjectAttributeKey != null && {
|
|
8503
8335
|
ObjectAttributeKey: serializeAws_restJson1AttributeKey(input.ObjectAttributeKey, context),
|
|
8504
8336
|
}));
|
|
8505
8337
|
};
|
|
@@ -8514,11 +8346,10 @@ var serializeAws_restJson1ObjectAttributeUpdateList = function (input, context)
|
|
|
8514
8346
|
});
|
|
8515
8347
|
};
|
|
8516
8348
|
var serializeAws_restJson1ObjectReference = function (input, context) {
|
|
8517
|
-
return __assign({}, (input.Selector
|
|
8349
|
+
return __assign({}, (input.Selector != null && { Selector: input.Selector }));
|
|
8518
8350
|
};
|
|
8519
8351
|
var serializeAws_restJson1Rule = function (input, context) {
|
|
8520
|
-
return __assign(__assign({}, (input.Parameters
|
|
8521
|
-
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 }));
|
|
8522
8353
|
};
|
|
8523
8354
|
var serializeAws_restJson1RuleMap = function (input, context) {
|
|
8524
8355
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -8541,7 +8372,7 @@ var serializeAws_restJson1RuleParameterMap = function (input, context) {
|
|
|
8541
8372
|
}, {});
|
|
8542
8373
|
};
|
|
8543
8374
|
var serializeAws_restJson1SchemaFacet = function (input, context) {
|
|
8544
|
-
return __assign(__assign({}, (input.FacetName
|
|
8375
|
+
return __assign(__assign({}, (input.FacetName != null && { FacetName: input.FacetName })), (input.SchemaArn != null && { SchemaArn: input.SchemaArn }));
|
|
8545
8376
|
};
|
|
8546
8377
|
var serializeAws_restJson1SchemaFacetList = function (input, context) {
|
|
8547
8378
|
return input
|
|
@@ -8554,7 +8385,7 @@ var serializeAws_restJson1SchemaFacetList = function (input, context) {
|
|
|
8554
8385
|
});
|
|
8555
8386
|
};
|
|
8556
8387
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
8557
|
-
return __assign(__assign({}, (input.Key
|
|
8388
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
8558
8389
|
};
|
|
8559
8390
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
8560
8391
|
return input
|
|
@@ -8587,19 +8418,14 @@ var serializeAws_restJson1TypedAttributeValue = function (input, context) {
|
|
|
8587
8418
|
});
|
|
8588
8419
|
};
|
|
8589
8420
|
var serializeAws_restJson1TypedAttributeValueRange = function (input, context) {
|
|
8590
|
-
return __assign(__assign(__assign(__assign({}, (input.EndMode
|
|
8591
|
-
input.EndValue !== null && { EndValue: serializeAws_restJson1TypedAttributeValue(input.EndValue, context) })), (input.StartMode !== undefined && input.StartMode !== null && { StartMode: input.StartMode })), (input.StartValue !== undefined &&
|
|
8592
|
-
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 && {
|
|
8593
8422
|
StartValue: serializeAws_restJson1TypedAttributeValue(input.StartValue, context),
|
|
8594
8423
|
}));
|
|
8595
8424
|
};
|
|
8596
8425
|
var serializeAws_restJson1TypedLinkAttributeDefinition = function (input, context) {
|
|
8597
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue
|
|
8598
|
-
input.DefaultValue !== null && {
|
|
8426
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue != null && {
|
|
8599
8427
|
DefaultValue: serializeAws_restJson1TypedAttributeValue(input.DefaultValue, context),
|
|
8600
|
-
})), (input.IsImmutable
|
|
8601
|
-
input.RequiredBehavior !== null && { RequiredBehavior: input.RequiredBehavior })), (input.Rules !== undefined &&
|
|
8602
|
-
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 }));
|
|
8603
8429
|
};
|
|
8604
8430
|
var serializeAws_restJson1TypedLinkAttributeDefinitionList = function (input, context) {
|
|
8605
8431
|
return input
|
|
@@ -8612,8 +8438,7 @@ var serializeAws_restJson1TypedLinkAttributeDefinitionList = function (input, co
|
|
|
8612
8438
|
});
|
|
8613
8439
|
};
|
|
8614
8440
|
var serializeAws_restJson1TypedLinkAttributeRange = function (input, context) {
|
|
8615
|
-
return __assign(__assign({}, (input.AttributeName
|
|
8616
|
-
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) }));
|
|
8617
8442
|
};
|
|
8618
8443
|
var serializeAws_restJson1TypedLinkAttributeRangeList = function (input, context) {
|
|
8619
8444
|
return input
|
|
@@ -8626,17 +8451,14 @@ var serializeAws_restJson1TypedLinkAttributeRangeList = function (input, context
|
|
|
8626
8451
|
});
|
|
8627
8452
|
};
|
|
8628
8453
|
var serializeAws_restJson1TypedLinkFacet = function (input, context) {
|
|
8629
|
-
return __assign(__assign(__assign({}, (input.Attributes
|
|
8630
|
-
input.Attributes !== null && {
|
|
8454
|
+
return __assign(__assign(__assign({}, (input.Attributes != null && {
|
|
8631
8455
|
Attributes: serializeAws_restJson1TypedLinkAttributeDefinitionList(input.Attributes, context),
|
|
8632
|
-
})), (input.IdentityAttributeOrder
|
|
8633
|
-
input.IdentityAttributeOrder !== null && {
|
|
8456
|
+
})), (input.IdentityAttributeOrder != null && {
|
|
8634
8457
|
IdentityAttributeOrder: serializeAws_restJson1AttributeNameList(input.IdentityAttributeOrder, context),
|
|
8635
|
-
})), (input.Name
|
|
8458
|
+
})), (input.Name != null && { Name: input.Name }));
|
|
8636
8459
|
};
|
|
8637
8460
|
var serializeAws_restJson1TypedLinkFacetAttributeUpdate = function (input, context) {
|
|
8638
|
-
return __assign(__assign({}, (input.Action
|
|
8639
|
-
input.Attribute !== null && {
|
|
8461
|
+
return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Attribute != null && {
|
|
8640
8462
|
Attribute: serializeAws_restJson1TypedLinkAttributeDefinition(input.Attribute, context),
|
|
8641
8463
|
}));
|
|
8642
8464
|
};
|
|
@@ -8651,20 +8473,16 @@ var serializeAws_restJson1TypedLinkFacetAttributeUpdateList = function (input, c
|
|
|
8651
8473
|
});
|
|
8652
8474
|
};
|
|
8653
8475
|
var serializeAws_restJson1TypedLinkSchemaAndFacetName = function (input, context) {
|
|
8654
|
-
return __assign(__assign({}, (input.SchemaArn
|
|
8476
|
+
return __assign(__assign({}, (input.SchemaArn != null && { SchemaArn: input.SchemaArn })), (input.TypedLinkName != null && { TypedLinkName: input.TypedLinkName }));
|
|
8655
8477
|
};
|
|
8656
8478
|
var serializeAws_restJson1TypedLinkSpecifier = function (input, context) {
|
|
8657
|
-
return __assign(__assign(__assign(__assign({}, (input.IdentityAttributeValues
|
|
8658
|
-
input.IdentityAttributeValues !== null && {
|
|
8479
|
+
return __assign(__assign(__assign(__assign({}, (input.IdentityAttributeValues != null && {
|
|
8659
8480
|
IdentityAttributeValues: serializeAws_restJson1AttributeNameAndValueList(input.IdentityAttributeValues, context),
|
|
8660
|
-
})), (input.SourceObjectReference
|
|
8661
|
-
input.SourceObjectReference !== null && {
|
|
8481
|
+
})), (input.SourceObjectReference != null && {
|
|
8662
8482
|
SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
|
|
8663
|
-
})), (input.TargetObjectReference
|
|
8664
|
-
input.TargetObjectReference !== null && {
|
|
8483
|
+
})), (input.TargetObjectReference != null && {
|
|
8665
8484
|
TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
|
|
8666
|
-
})), (input.TypedLinkFacet
|
|
8667
|
-
input.TypedLinkFacet !== null && {
|
|
8485
|
+
})), (input.TypedLinkFacet != null && {
|
|
8668
8486
|
TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
|
|
8669
8487
|
}));
|
|
8670
8488
|
};
|
|
@@ -8688,10 +8506,8 @@ var deserializeAws_restJson1AttributeKey = function (output, context) {
|
|
|
8688
8506
|
};
|
|
8689
8507
|
var deserializeAws_restJson1AttributeKeyAndValue = function (output, context) {
|
|
8690
8508
|
return {
|
|
8691
|
-
Key: output.Key
|
|
8692
|
-
|
|
8693
|
-
: undefined,
|
|
8694
|
-
Value: output.Value !== undefined && output.Value !== null
|
|
8509
|
+
Key: output.Key != null ? deserializeAws_restJson1AttributeKey(output.Key, context) : undefined,
|
|
8510
|
+
Value: output.Value != null
|
|
8695
8511
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
|
|
8696
8512
|
: undefined,
|
|
8697
8513
|
};
|
|
@@ -8710,7 +8526,7 @@ var deserializeAws_restJson1AttributeKeyAndValueList = function (output, context
|
|
|
8710
8526
|
var deserializeAws_restJson1AttributeNameAndValue = function (output, context) {
|
|
8711
8527
|
return {
|
|
8712
8528
|
AttributeName: __expectString(output.AttributeName),
|
|
8713
|
-
Value: output.Value
|
|
8529
|
+
Value: output.Value != null
|
|
8714
8530
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.Value), context)
|
|
8715
8531
|
: undefined,
|
|
8716
8532
|
};
|
|
@@ -8755,7 +8571,7 @@ var deserializeAws_restJson1BatchAttachToIndexResponse = function (output, conte
|
|
|
8755
8571
|
};
|
|
8756
8572
|
var deserializeAws_restJson1BatchAttachTypedLinkResponse = function (output, context) {
|
|
8757
8573
|
return {
|
|
8758
|
-
TypedLinkSpecifier: output.TypedLinkSpecifier
|
|
8574
|
+
TypedLinkSpecifier: output.TypedLinkSpecifier != null
|
|
8759
8575
|
? deserializeAws_restJson1TypedLinkSpecifier(output.TypedLinkSpecifier, context)
|
|
8760
8576
|
: undefined,
|
|
8761
8577
|
};
|
|
@@ -8791,14 +8607,14 @@ var deserializeAws_restJson1BatchDetachTypedLinkResponse = function (output, con
|
|
|
8791
8607
|
};
|
|
8792
8608
|
var deserializeAws_restJson1BatchGetLinkAttributesResponse = function (output, context) {
|
|
8793
8609
|
return {
|
|
8794
|
-
Attributes: output.Attributes
|
|
8610
|
+
Attributes: output.Attributes != null
|
|
8795
8611
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
|
|
8796
8612
|
: undefined,
|
|
8797
8613
|
};
|
|
8798
8614
|
};
|
|
8799
8615
|
var deserializeAws_restJson1BatchGetObjectAttributesResponse = function (output, context) {
|
|
8800
8616
|
return {
|
|
8801
|
-
Attributes: output.Attributes
|
|
8617
|
+
Attributes: output.Attributes != null
|
|
8802
8618
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
|
|
8803
8619
|
: undefined,
|
|
8804
8620
|
};
|
|
@@ -8806,14 +8622,12 @@ var deserializeAws_restJson1BatchGetObjectAttributesResponse = function (output,
|
|
|
8806
8622
|
var deserializeAws_restJson1BatchGetObjectInformationResponse = function (output, context) {
|
|
8807
8623
|
return {
|
|
8808
8624
|
ObjectIdentifier: __expectString(output.ObjectIdentifier),
|
|
8809
|
-
SchemaFacets: output.SchemaFacets
|
|
8810
|
-
? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context)
|
|
8811
|
-
: undefined,
|
|
8625
|
+
SchemaFacets: output.SchemaFacets != null ? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context) : undefined,
|
|
8812
8626
|
};
|
|
8813
8627
|
};
|
|
8814
8628
|
var deserializeAws_restJson1BatchListAttachedIndicesResponse = function (output, context) {
|
|
8815
8629
|
return {
|
|
8816
|
-
IndexAttachments: output.IndexAttachments
|
|
8630
|
+
IndexAttachments: output.IndexAttachments != null
|
|
8817
8631
|
? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
|
|
8818
8632
|
: undefined,
|
|
8819
8633
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8821,7 +8635,7 @@ var deserializeAws_restJson1BatchListAttachedIndicesResponse = function (output,
|
|
|
8821
8635
|
};
|
|
8822
8636
|
var deserializeAws_restJson1BatchListIncomingTypedLinksResponse = function (output, context) {
|
|
8823
8637
|
return {
|
|
8824
|
-
LinkSpecifiers: output.LinkSpecifiers
|
|
8638
|
+
LinkSpecifiers: output.LinkSpecifiers != null
|
|
8825
8639
|
? deserializeAws_restJson1TypedLinkSpecifierList(output.LinkSpecifiers, context)
|
|
8826
8640
|
: undefined,
|
|
8827
8641
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8829,7 +8643,7 @@ var deserializeAws_restJson1BatchListIncomingTypedLinksResponse = function (outp
|
|
|
8829
8643
|
};
|
|
8830
8644
|
var deserializeAws_restJson1BatchListIndexResponse = function (output, context) {
|
|
8831
8645
|
return {
|
|
8832
|
-
IndexAttachments: output.IndexAttachments
|
|
8646
|
+
IndexAttachments: output.IndexAttachments != null
|
|
8833
8647
|
? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
|
|
8834
8648
|
: undefined,
|
|
8835
8649
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8837,7 +8651,7 @@ var deserializeAws_restJson1BatchListIndexResponse = function (output, context)
|
|
|
8837
8651
|
};
|
|
8838
8652
|
var deserializeAws_restJson1BatchListObjectAttributesResponse = function (output, context) {
|
|
8839
8653
|
return {
|
|
8840
|
-
Attributes: output.Attributes
|
|
8654
|
+
Attributes: output.Attributes != null
|
|
8841
8655
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
|
|
8842
8656
|
: undefined,
|
|
8843
8657
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8845,7 +8659,7 @@ var deserializeAws_restJson1BatchListObjectAttributesResponse = function (output
|
|
|
8845
8659
|
};
|
|
8846
8660
|
var deserializeAws_restJson1BatchListObjectChildrenResponse = function (output, context) {
|
|
8847
8661
|
return {
|
|
8848
|
-
Children: output.Children
|
|
8662
|
+
Children: output.Children != null
|
|
8849
8663
|
? deserializeAws_restJson1LinkNameToObjectIdentifierMap(output.Children, context)
|
|
8850
8664
|
: undefined,
|
|
8851
8665
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8854,7 +8668,7 @@ var deserializeAws_restJson1BatchListObjectChildrenResponse = function (output,
|
|
|
8854
8668
|
var deserializeAws_restJson1BatchListObjectParentPathsResponse = function (output, context) {
|
|
8855
8669
|
return {
|
|
8856
8670
|
NextToken: __expectString(output.NextToken),
|
|
8857
|
-
PathToObjectIdentifiersList: output.PathToObjectIdentifiersList
|
|
8671
|
+
PathToObjectIdentifiersList: output.PathToObjectIdentifiersList != null
|
|
8858
8672
|
? deserializeAws_restJson1PathToObjectIdentifiersList(output.PathToObjectIdentifiersList, context)
|
|
8859
8673
|
: undefined,
|
|
8860
8674
|
};
|
|
@@ -8862,14 +8676,14 @@ var deserializeAws_restJson1BatchListObjectParentPathsResponse = function (outpu
|
|
|
8862
8676
|
var deserializeAws_restJson1BatchListObjectParentsResponse = function (output, context) {
|
|
8863
8677
|
return {
|
|
8864
8678
|
NextToken: __expectString(output.NextToken),
|
|
8865
|
-
ParentLinks: output.ParentLinks
|
|
8679
|
+
ParentLinks: output.ParentLinks != null
|
|
8866
8680
|
? deserializeAws_restJson1ObjectIdentifierAndLinkNameList(output.ParentLinks, context)
|
|
8867
8681
|
: undefined,
|
|
8868
8682
|
};
|
|
8869
8683
|
};
|
|
8870
8684
|
var deserializeAws_restJson1BatchListObjectPoliciesResponse = function (output, context) {
|
|
8871
8685
|
return {
|
|
8872
|
-
AttachedPolicyIds: output.AttachedPolicyIds
|
|
8686
|
+
AttachedPolicyIds: output.AttachedPolicyIds != null
|
|
8873
8687
|
? deserializeAws_restJson1ObjectIdentifierList(output.AttachedPolicyIds, context)
|
|
8874
8688
|
: undefined,
|
|
8875
8689
|
NextToken: __expectString(output.NextToken),
|
|
@@ -8878,7 +8692,7 @@ var deserializeAws_restJson1BatchListObjectPoliciesResponse = function (output,
|
|
|
8878
8692
|
var deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = function (output, context) {
|
|
8879
8693
|
return {
|
|
8880
8694
|
NextToken: __expectString(output.NextToken),
|
|
8881
|
-
TypedLinkSpecifiers: output.TypedLinkSpecifiers
|
|
8695
|
+
TypedLinkSpecifiers: output.TypedLinkSpecifiers != null
|
|
8882
8696
|
? deserializeAws_restJson1TypedLinkSpecifierList(output.TypedLinkSpecifiers, context)
|
|
8883
8697
|
: undefined,
|
|
8884
8698
|
};
|
|
@@ -8886,7 +8700,7 @@ var deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = function (outp
|
|
|
8886
8700
|
var deserializeAws_restJson1BatchListPolicyAttachmentsResponse = function (output, context) {
|
|
8887
8701
|
return {
|
|
8888
8702
|
NextToken: __expectString(output.NextToken),
|
|
8889
|
-
ObjectIdentifiers: output.ObjectIdentifiers
|
|
8703
|
+
ObjectIdentifiers: output.ObjectIdentifiers != null
|
|
8890
8704
|
? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
|
|
8891
8705
|
: undefined,
|
|
8892
8706
|
};
|
|
@@ -8894,7 +8708,7 @@ var deserializeAws_restJson1BatchListPolicyAttachmentsResponse = function (outpu
|
|
|
8894
8708
|
var deserializeAws_restJson1BatchLookupPolicyResponse = function (output, context) {
|
|
8895
8709
|
return {
|
|
8896
8710
|
NextToken: __expectString(output.NextToken),
|
|
8897
|
-
PolicyToPathList: output.PolicyToPathList
|
|
8711
|
+
PolicyToPathList: output.PolicyToPathList != null
|
|
8898
8712
|
? deserializeAws_restJson1PolicyToPathList(output.PolicyToPathList, context)
|
|
8899
8713
|
: undefined,
|
|
8900
8714
|
};
|
|
@@ -8907,10 +8721,10 @@ var deserializeAws_restJson1BatchReadException = function (output, context) {
|
|
|
8907
8721
|
};
|
|
8908
8722
|
var deserializeAws_restJson1BatchReadOperationResponse = function (output, context) {
|
|
8909
8723
|
return {
|
|
8910
|
-
ExceptionResponse: output.ExceptionResponse
|
|
8724
|
+
ExceptionResponse: output.ExceptionResponse != null
|
|
8911
8725
|
? deserializeAws_restJson1BatchReadException(output.ExceptionResponse, context)
|
|
8912
8726
|
: undefined,
|
|
8913
|
-
SuccessfulResponse: output.SuccessfulResponse
|
|
8727
|
+
SuccessfulResponse: output.SuccessfulResponse != null
|
|
8914
8728
|
? deserializeAws_restJson1BatchReadSuccessfulResponse(output.SuccessfulResponse, context)
|
|
8915
8729
|
: undefined,
|
|
8916
8730
|
};
|
|
@@ -8928,46 +8742,44 @@ var deserializeAws_restJson1BatchReadOperationResponseList = function (output, c
|
|
|
8928
8742
|
};
|
|
8929
8743
|
var deserializeAws_restJson1BatchReadSuccessfulResponse = function (output, context) {
|
|
8930
8744
|
return {
|
|
8931
|
-
GetLinkAttributes: output.GetLinkAttributes
|
|
8745
|
+
GetLinkAttributes: output.GetLinkAttributes != null
|
|
8932
8746
|
? deserializeAws_restJson1BatchGetLinkAttributesResponse(output.GetLinkAttributes, context)
|
|
8933
8747
|
: undefined,
|
|
8934
|
-
GetObjectAttributes: output.GetObjectAttributes
|
|
8748
|
+
GetObjectAttributes: output.GetObjectAttributes != null
|
|
8935
8749
|
? deserializeAws_restJson1BatchGetObjectAttributesResponse(output.GetObjectAttributes, context)
|
|
8936
8750
|
: undefined,
|
|
8937
|
-
GetObjectInformation: output.GetObjectInformation
|
|
8751
|
+
GetObjectInformation: output.GetObjectInformation != null
|
|
8938
8752
|
? deserializeAws_restJson1BatchGetObjectInformationResponse(output.GetObjectInformation, context)
|
|
8939
8753
|
: undefined,
|
|
8940
|
-
ListAttachedIndices: output.ListAttachedIndices
|
|
8754
|
+
ListAttachedIndices: output.ListAttachedIndices != null
|
|
8941
8755
|
? deserializeAws_restJson1BatchListAttachedIndicesResponse(output.ListAttachedIndices, context)
|
|
8942
8756
|
: undefined,
|
|
8943
|
-
ListIncomingTypedLinks: output.ListIncomingTypedLinks
|
|
8757
|
+
ListIncomingTypedLinks: output.ListIncomingTypedLinks != null
|
|
8944
8758
|
? deserializeAws_restJson1BatchListIncomingTypedLinksResponse(output.ListIncomingTypedLinks, context)
|
|
8945
8759
|
: undefined,
|
|
8946
|
-
ListIndex: output.ListIndex
|
|
8947
|
-
|
|
8948
|
-
: undefined,
|
|
8949
|
-
ListObjectAttributes: output.ListObjectAttributes !== undefined && output.ListObjectAttributes !== null
|
|
8760
|
+
ListIndex: output.ListIndex != null ? deserializeAws_restJson1BatchListIndexResponse(output.ListIndex, context) : undefined,
|
|
8761
|
+
ListObjectAttributes: output.ListObjectAttributes != null
|
|
8950
8762
|
? deserializeAws_restJson1BatchListObjectAttributesResponse(output.ListObjectAttributes, context)
|
|
8951
8763
|
: undefined,
|
|
8952
|
-
ListObjectChildren: output.ListObjectChildren
|
|
8764
|
+
ListObjectChildren: output.ListObjectChildren != null
|
|
8953
8765
|
? deserializeAws_restJson1BatchListObjectChildrenResponse(output.ListObjectChildren, context)
|
|
8954
8766
|
: undefined,
|
|
8955
|
-
ListObjectParentPaths: output.ListObjectParentPaths
|
|
8767
|
+
ListObjectParentPaths: output.ListObjectParentPaths != null
|
|
8956
8768
|
? deserializeAws_restJson1BatchListObjectParentPathsResponse(output.ListObjectParentPaths, context)
|
|
8957
8769
|
: undefined,
|
|
8958
|
-
ListObjectParents: output.ListObjectParents
|
|
8770
|
+
ListObjectParents: output.ListObjectParents != null
|
|
8959
8771
|
? deserializeAws_restJson1BatchListObjectParentsResponse(output.ListObjectParents, context)
|
|
8960
8772
|
: undefined,
|
|
8961
|
-
ListObjectPolicies: output.ListObjectPolicies
|
|
8773
|
+
ListObjectPolicies: output.ListObjectPolicies != null
|
|
8962
8774
|
? deserializeAws_restJson1BatchListObjectPoliciesResponse(output.ListObjectPolicies, context)
|
|
8963
8775
|
: undefined,
|
|
8964
|
-
ListOutgoingTypedLinks: output.ListOutgoingTypedLinks
|
|
8776
|
+
ListOutgoingTypedLinks: output.ListOutgoingTypedLinks != null
|
|
8965
8777
|
? deserializeAws_restJson1BatchListOutgoingTypedLinksResponse(output.ListOutgoingTypedLinks, context)
|
|
8966
8778
|
: undefined,
|
|
8967
|
-
ListPolicyAttachments: output.ListPolicyAttachments
|
|
8779
|
+
ListPolicyAttachments: output.ListPolicyAttachments != null
|
|
8968
8780
|
? deserializeAws_restJson1BatchListPolicyAttachmentsResponse(output.ListPolicyAttachments, context)
|
|
8969
8781
|
: undefined,
|
|
8970
|
-
LookupPolicy: output.LookupPolicy
|
|
8782
|
+
LookupPolicy: output.LookupPolicy != null
|
|
8971
8783
|
? deserializeAws_restJson1BatchLookupPolicyResponse(output.LookupPolicy, context)
|
|
8972
8784
|
: undefined,
|
|
8973
8785
|
};
|
|
@@ -8985,49 +8797,49 @@ var deserializeAws_restJson1BatchUpdateObjectAttributesResponse = function (outp
|
|
|
8985
8797
|
};
|
|
8986
8798
|
var deserializeAws_restJson1BatchWriteOperationResponse = function (output, context) {
|
|
8987
8799
|
return {
|
|
8988
|
-
AddFacetToObject: output.AddFacetToObject
|
|
8800
|
+
AddFacetToObject: output.AddFacetToObject != null
|
|
8989
8801
|
? deserializeAws_restJson1BatchAddFacetToObjectResponse(output.AddFacetToObject, context)
|
|
8990
8802
|
: undefined,
|
|
8991
|
-
AttachObject: output.AttachObject
|
|
8803
|
+
AttachObject: output.AttachObject != null
|
|
8992
8804
|
? deserializeAws_restJson1BatchAttachObjectResponse(output.AttachObject, context)
|
|
8993
8805
|
: undefined,
|
|
8994
|
-
AttachPolicy: output.AttachPolicy
|
|
8806
|
+
AttachPolicy: output.AttachPolicy != null
|
|
8995
8807
|
? deserializeAws_restJson1BatchAttachPolicyResponse(output.AttachPolicy, context)
|
|
8996
8808
|
: undefined,
|
|
8997
|
-
AttachToIndex: output.AttachToIndex
|
|
8809
|
+
AttachToIndex: output.AttachToIndex != null
|
|
8998
8810
|
? deserializeAws_restJson1BatchAttachToIndexResponse(output.AttachToIndex, context)
|
|
8999
8811
|
: undefined,
|
|
9000
|
-
AttachTypedLink: output.AttachTypedLink
|
|
8812
|
+
AttachTypedLink: output.AttachTypedLink != null
|
|
9001
8813
|
? deserializeAws_restJson1BatchAttachTypedLinkResponse(output.AttachTypedLink, context)
|
|
9002
8814
|
: undefined,
|
|
9003
|
-
CreateIndex: output.CreateIndex
|
|
8815
|
+
CreateIndex: output.CreateIndex != null
|
|
9004
8816
|
? deserializeAws_restJson1BatchCreateIndexResponse(output.CreateIndex, context)
|
|
9005
8817
|
: undefined,
|
|
9006
|
-
CreateObject: output.CreateObject
|
|
8818
|
+
CreateObject: output.CreateObject != null
|
|
9007
8819
|
? deserializeAws_restJson1BatchCreateObjectResponse(output.CreateObject, context)
|
|
9008
8820
|
: undefined,
|
|
9009
|
-
DeleteObject: output.DeleteObject
|
|
8821
|
+
DeleteObject: output.DeleteObject != null
|
|
9010
8822
|
? deserializeAws_restJson1BatchDeleteObjectResponse(output.DeleteObject, context)
|
|
9011
8823
|
: undefined,
|
|
9012
|
-
DetachFromIndex: output.DetachFromIndex
|
|
8824
|
+
DetachFromIndex: output.DetachFromIndex != null
|
|
9013
8825
|
? deserializeAws_restJson1BatchDetachFromIndexResponse(output.DetachFromIndex, context)
|
|
9014
8826
|
: undefined,
|
|
9015
|
-
DetachObject: output.DetachObject
|
|
8827
|
+
DetachObject: output.DetachObject != null
|
|
9016
8828
|
? deserializeAws_restJson1BatchDetachObjectResponse(output.DetachObject, context)
|
|
9017
8829
|
: undefined,
|
|
9018
|
-
DetachPolicy: output.DetachPolicy
|
|
8830
|
+
DetachPolicy: output.DetachPolicy != null
|
|
9019
8831
|
? deserializeAws_restJson1BatchDetachPolicyResponse(output.DetachPolicy, context)
|
|
9020
8832
|
: undefined,
|
|
9021
|
-
DetachTypedLink: output.DetachTypedLink
|
|
8833
|
+
DetachTypedLink: output.DetachTypedLink != null
|
|
9022
8834
|
? deserializeAws_restJson1BatchDetachTypedLinkResponse(output.DetachTypedLink, context)
|
|
9023
8835
|
: undefined,
|
|
9024
|
-
RemoveFacetFromObject: output.RemoveFacetFromObject
|
|
8836
|
+
RemoveFacetFromObject: output.RemoveFacetFromObject != null
|
|
9025
8837
|
? deserializeAws_restJson1BatchRemoveFacetFromObjectResponse(output.RemoveFacetFromObject, context)
|
|
9026
8838
|
: undefined,
|
|
9027
|
-
UpdateLinkAttributes: output.UpdateLinkAttributes
|
|
8839
|
+
UpdateLinkAttributes: output.UpdateLinkAttributes != null
|
|
9028
8840
|
? deserializeAws_restJson1BatchUpdateLinkAttributesResponse(output.UpdateLinkAttributes, context)
|
|
9029
8841
|
: undefined,
|
|
9030
|
-
UpdateObjectAttributes: output.UpdateObjectAttributes
|
|
8842
|
+
UpdateObjectAttributes: output.UpdateObjectAttributes != null
|
|
9031
8843
|
? deserializeAws_restJson1BatchUpdateObjectAttributesResponse(output.UpdateObjectAttributes, context)
|
|
9032
8844
|
: undefined,
|
|
9033
8845
|
};
|
|
@@ -9045,7 +8857,7 @@ var deserializeAws_restJson1BatchWriteOperationResponseList = function (output,
|
|
|
9045
8857
|
};
|
|
9046
8858
|
var deserializeAws_restJson1Directory = function (output, context) {
|
|
9047
8859
|
return {
|
|
9048
|
-
CreationDateTime: output.CreationDateTime
|
|
8860
|
+
CreationDateTime: output.CreationDateTime != null
|
|
9049
8861
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
|
|
9050
8862
|
: undefined,
|
|
9051
8863
|
DirectoryArn: __expectString(output.DirectoryArn),
|
|
@@ -9073,10 +8885,10 @@ var deserializeAws_restJson1Facet = function (output, context) {
|
|
|
9073
8885
|
};
|
|
9074
8886
|
var deserializeAws_restJson1FacetAttribute = function (output, context) {
|
|
9075
8887
|
return {
|
|
9076
|
-
AttributeDefinition: output.AttributeDefinition
|
|
8888
|
+
AttributeDefinition: output.AttributeDefinition != null
|
|
9077
8889
|
? deserializeAws_restJson1FacetAttributeDefinition(output.AttributeDefinition, context)
|
|
9078
8890
|
: undefined,
|
|
9079
|
-
AttributeReference: output.AttributeReference
|
|
8891
|
+
AttributeReference: output.AttributeReference != null
|
|
9080
8892
|
? deserializeAws_restJson1FacetAttributeReference(output.AttributeReference, context)
|
|
9081
8893
|
: undefined,
|
|
9082
8894
|
Name: __expectString(output.Name),
|
|
@@ -9085,13 +8897,11 @@ var deserializeAws_restJson1FacetAttribute = function (output, context) {
|
|
|
9085
8897
|
};
|
|
9086
8898
|
var deserializeAws_restJson1FacetAttributeDefinition = function (output, context) {
|
|
9087
8899
|
return {
|
|
9088
|
-
DefaultValue: output.DefaultValue
|
|
8900
|
+
DefaultValue: output.DefaultValue != null
|
|
9089
8901
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
|
|
9090
8902
|
: undefined,
|
|
9091
8903
|
IsImmutable: __expectBoolean(output.IsImmutable),
|
|
9092
|
-
Rules: output.Rules
|
|
9093
|
-
? deserializeAws_restJson1RuleMap(output.Rules, context)
|
|
9094
|
-
: undefined,
|
|
8904
|
+
Rules: output.Rules != null ? deserializeAws_restJson1RuleMap(output.Rules, context) : undefined,
|
|
9095
8905
|
Type: __expectString(output.Type),
|
|
9096
8906
|
};
|
|
9097
8907
|
};
|
|
@@ -9125,7 +8935,7 @@ var deserializeAws_restJson1FacetNameList = function (output, context) {
|
|
|
9125
8935
|
};
|
|
9126
8936
|
var deserializeAws_restJson1IndexAttachment = function (output, context) {
|
|
9127
8937
|
return {
|
|
9128
|
-
IndexedAttributes: output.IndexedAttributes
|
|
8938
|
+
IndexedAttributes: output.IndexedAttributes != null
|
|
9129
8939
|
? deserializeAws_restJson1AttributeKeyAndValueList(output.IndexedAttributes, context)
|
|
9130
8940
|
: undefined,
|
|
9131
8941
|
ObjectIdentifier: __expectString(output.ObjectIdentifier),
|
|
@@ -9197,7 +9007,7 @@ var deserializeAws_restJson1ObjectReference = function (output, context) {
|
|
|
9197
9007
|
};
|
|
9198
9008
|
var deserializeAws_restJson1PathToObjectIdentifiers = function (output, context) {
|
|
9199
9009
|
return {
|
|
9200
|
-
ObjectIdentifiers: output.ObjectIdentifiers
|
|
9010
|
+
ObjectIdentifiers: output.ObjectIdentifiers != null
|
|
9201
9011
|
? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
|
|
9202
9012
|
: undefined,
|
|
9203
9013
|
Path: __expectString(output.Path),
|
|
@@ -9235,9 +9045,7 @@ var deserializeAws_restJson1PolicyAttachmentList = function (output, context) {
|
|
|
9235
9045
|
var deserializeAws_restJson1PolicyToPath = function (output, context) {
|
|
9236
9046
|
return {
|
|
9237
9047
|
Path: __expectString(output.Path),
|
|
9238
|
-
Policies: output.Policies
|
|
9239
|
-
? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context)
|
|
9240
|
-
: undefined,
|
|
9048
|
+
Policies: output.Policies != null ? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context) : undefined,
|
|
9241
9049
|
};
|
|
9242
9050
|
};
|
|
9243
9051
|
var deserializeAws_restJson1PolicyToPathList = function (output, context) {
|
|
@@ -9253,9 +9061,7 @@ var deserializeAws_restJson1PolicyToPathList = function (output, context) {
|
|
|
9253
9061
|
};
|
|
9254
9062
|
var deserializeAws_restJson1Rule = function (output, context) {
|
|
9255
9063
|
return {
|
|
9256
|
-
Parameters: output.Parameters
|
|
9257
|
-
? deserializeAws_restJson1RuleParameterMap(output.Parameters, context)
|
|
9258
|
-
: undefined,
|
|
9064
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1RuleParameterMap(output.Parameters, context) : undefined,
|
|
9259
9065
|
Type: __expectString(output.Type),
|
|
9260
9066
|
};
|
|
9261
9067
|
};
|
|
@@ -9337,15 +9143,13 @@ var deserializeAws_restJson1TypedAttributeValue = function (output, context) {
|
|
|
9337
9143
|
};
|
|
9338
9144
|
var deserializeAws_restJson1TypedLinkAttributeDefinition = function (output, context) {
|
|
9339
9145
|
return {
|
|
9340
|
-
DefaultValue: output.DefaultValue
|
|
9146
|
+
DefaultValue: output.DefaultValue != null
|
|
9341
9147
|
? deserializeAws_restJson1TypedAttributeValue(__expectUnion(output.DefaultValue), context)
|
|
9342
9148
|
: undefined,
|
|
9343
9149
|
IsImmutable: __expectBoolean(output.IsImmutable),
|
|
9344
9150
|
Name: __expectString(output.Name),
|
|
9345
9151
|
RequiredBehavior: __expectString(output.RequiredBehavior),
|
|
9346
|
-
Rules: output.Rules
|
|
9347
|
-
? deserializeAws_restJson1RuleMap(output.Rules, context)
|
|
9348
|
-
: undefined,
|
|
9152
|
+
Rules: output.Rules != null ? deserializeAws_restJson1RuleMap(output.Rules, context) : undefined,
|
|
9349
9153
|
Type: __expectString(output.Type),
|
|
9350
9154
|
};
|
|
9351
9155
|
};
|
|
@@ -9379,16 +9183,16 @@ var deserializeAws_restJson1TypedLinkSchemaAndFacetName = function (output, cont
|
|
|
9379
9183
|
};
|
|
9380
9184
|
var deserializeAws_restJson1TypedLinkSpecifier = function (output, context) {
|
|
9381
9185
|
return {
|
|
9382
|
-
IdentityAttributeValues: output.IdentityAttributeValues
|
|
9186
|
+
IdentityAttributeValues: output.IdentityAttributeValues != null
|
|
9383
9187
|
? deserializeAws_restJson1AttributeNameAndValueList(output.IdentityAttributeValues, context)
|
|
9384
9188
|
: undefined,
|
|
9385
|
-
SourceObjectReference: output.SourceObjectReference
|
|
9189
|
+
SourceObjectReference: output.SourceObjectReference != null
|
|
9386
9190
|
? deserializeAws_restJson1ObjectReference(output.SourceObjectReference, context)
|
|
9387
9191
|
: undefined,
|
|
9388
|
-
TargetObjectReference: output.TargetObjectReference
|
|
9192
|
+
TargetObjectReference: output.TargetObjectReference != null
|
|
9389
9193
|
? deserializeAws_restJson1ObjectReference(output.TargetObjectReference, context)
|
|
9390
9194
|
: undefined,
|
|
9391
|
-
TypedLinkFacet: output.TypedLinkFacet
|
|
9195
|
+
TypedLinkFacet: output.TypedLinkFacet != null
|
|
9392
9196
|
? deserializeAws_restJson1TypedLinkSchemaAndFacetName(output.TypedLinkFacet, context)
|
|
9393
9197
|
: undefined,
|
|
9394
9198
|
};
|
|
@@ -9442,6 +9246,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
9442
9246
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
9443
9247
|
var sanitizeErrorCode = function (rawValue) {
|
|
9444
9248
|
var cleanValue = rawValue;
|
|
9249
|
+
if (typeof cleanValue === "number") {
|
|
9250
|
+
cleanValue = cleanValue.toString();
|
|
9251
|
+
}
|
|
9445
9252
|
if (cleanValue.indexOf(":") >= 0) {
|
|
9446
9253
|
cleanValue = cleanValue.split(":")[0];
|
|
9447
9254
|
}
|