@aws-sdk/client-clouddirectory 3.121.0 → 3.127.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.
@@ -17,16 +17,13 @@ const serializeAws_restJson1AddFacetToObjectCommand = async (input, context) =>
17
17
  "/amazonclouddirectory/2017-01-11/object/facets";
18
18
  let body;
19
19
  body = JSON.stringify({
20
- ...(input.ObjectAttributeList !== undefined &&
21
- input.ObjectAttributeList !== null && {
20
+ ...(input.ObjectAttributeList != null && {
22
21
  ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
23
22
  }),
24
- ...(input.ObjectReference !== undefined &&
25
- input.ObjectReference !== null && {
23
+ ...(input.ObjectReference != null && {
26
24
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
27
25
  }),
28
- ...(input.SchemaFacet !== undefined &&
29
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
26
+ ...(input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
30
27
  });
31
28
  return new protocol_http_1.HttpRequest({
32
29
  protocol,
@@ -49,8 +46,7 @@ const serializeAws_restJson1ApplySchemaCommand = async (input, context) => {
49
46
  "/amazonclouddirectory/2017-01-11/schema/apply";
50
47
  let body;
51
48
  body = JSON.stringify({
52
- ...(input.PublishedSchemaArn !== undefined &&
53
- input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn }),
49
+ ...(input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn }),
54
50
  });
55
51
  return new protocol_http_1.HttpRequest({
56
52
  protocol,
@@ -73,13 +69,11 @@ const serializeAws_restJson1AttachObjectCommand = async (input, context) => {
73
69
  "/amazonclouddirectory/2017-01-11/object/attach";
74
70
  let body;
75
71
  body = JSON.stringify({
76
- ...(input.ChildReference !== undefined &&
77
- input.ChildReference !== null && {
72
+ ...(input.ChildReference != null && {
78
73
  ChildReference: serializeAws_restJson1ObjectReference(input.ChildReference, context),
79
74
  }),
80
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
81
- ...(input.ParentReference !== undefined &&
82
- input.ParentReference !== null && {
75
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
76
+ ...(input.ParentReference != null && {
83
77
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
84
78
  }),
85
79
  });
@@ -104,12 +98,10 @@ const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
104
98
  "/amazonclouddirectory/2017-01-11/policy/attach";
105
99
  let body;
106
100
  body = JSON.stringify({
107
- ...(input.ObjectReference !== undefined &&
108
- input.ObjectReference !== null && {
101
+ ...(input.ObjectReference != null && {
109
102
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
110
103
  }),
111
- ...(input.PolicyReference !== undefined &&
112
- input.PolicyReference !== null && {
104
+ ...(input.PolicyReference != null && {
113
105
  PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
114
106
  }),
115
107
  });
@@ -134,12 +126,10 @@ const serializeAws_restJson1AttachToIndexCommand = async (input, context) => {
134
126
  "/amazonclouddirectory/2017-01-11/index/attach";
135
127
  let body;
136
128
  body = JSON.stringify({
137
- ...(input.IndexReference !== undefined &&
138
- input.IndexReference !== null && {
129
+ ...(input.IndexReference != null && {
139
130
  IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
140
131
  }),
141
- ...(input.TargetReference !== undefined &&
142
- input.TargetReference !== null && {
132
+ ...(input.TargetReference != null && {
143
133
  TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
144
134
  }),
145
135
  });
@@ -164,20 +154,16 @@ const serializeAws_restJson1AttachTypedLinkCommand = async (input, context) => {
164
154
  "/amazonclouddirectory/2017-01-11/typedlink/attach";
165
155
  let body;
166
156
  body = JSON.stringify({
167
- ...(input.Attributes !== undefined &&
168
- input.Attributes !== null && {
157
+ ...(input.Attributes != null && {
169
158
  Attributes: serializeAws_restJson1AttributeNameAndValueList(input.Attributes, context),
170
159
  }),
171
- ...(input.SourceObjectReference !== undefined &&
172
- input.SourceObjectReference !== null && {
160
+ ...(input.SourceObjectReference != null && {
173
161
  SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
174
162
  }),
175
- ...(input.TargetObjectReference !== undefined &&
176
- input.TargetObjectReference !== null && {
163
+ ...(input.TargetObjectReference != null && {
177
164
  TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
178
165
  }),
179
- ...(input.TypedLinkFacet !== undefined &&
180
- input.TypedLinkFacet !== null && {
166
+ ...(input.TypedLinkFacet != null && {
181
167
  TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
182
168
  }),
183
169
  });
@@ -203,8 +189,7 @@ const serializeAws_restJson1BatchReadCommand = async (input, context) => {
203
189
  "/amazonclouddirectory/2017-01-11/batchread";
204
190
  let body;
205
191
  body = JSON.stringify({
206
- ...(input.Operations !== undefined &&
207
- input.Operations !== null && {
192
+ ...(input.Operations != null && {
208
193
  Operations: serializeAws_restJson1BatchReadOperationList(input.Operations, context),
209
194
  }),
210
195
  });
@@ -229,8 +214,7 @@ const serializeAws_restJson1BatchWriteCommand = async (input, context) => {
229
214
  "/amazonclouddirectory/2017-01-11/batchwrite";
230
215
  let body;
231
216
  body = JSON.stringify({
232
- ...(input.Operations !== undefined &&
233
- input.Operations !== null && {
217
+ ...(input.Operations != null && {
234
218
  Operations: serializeAws_restJson1BatchWriteOperationList(input.Operations, context),
235
219
  }),
236
220
  });
@@ -255,7 +239,7 @@ const serializeAws_restJson1CreateDirectoryCommand = async (input, context) => {
255
239
  "/amazonclouddirectory/2017-01-11/directory/create";
256
240
  let body;
257
241
  body = JSON.stringify({
258
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
242
+ ...(input.Name != null && { Name: input.Name }),
259
243
  });
260
244
  return new protocol_http_1.HttpRequest({
261
245
  protocol,
@@ -278,11 +262,12 @@ const serializeAws_restJson1CreateFacetCommand = async (input, context) => {
278
262
  "/amazonclouddirectory/2017-01-11/facet/create";
279
263
  let body;
280
264
  body = JSON.stringify({
281
- ...(input.Attributes !== undefined &&
282
- input.Attributes !== null && { Attributes: serializeAws_restJson1FacetAttributeList(input.Attributes, context) }),
283
- ...(input.FacetStyle !== undefined && input.FacetStyle !== null && { FacetStyle: input.FacetStyle }),
284
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
285
- ...(input.ObjectType !== undefined && input.ObjectType !== null && { ObjectType: input.ObjectType }),
265
+ ...(input.Attributes != null && {
266
+ Attributes: serializeAws_restJson1FacetAttributeList(input.Attributes, context),
267
+ }),
268
+ ...(input.FacetStyle != null && { FacetStyle: input.FacetStyle }),
269
+ ...(input.Name != null && { Name: input.Name }),
270
+ ...(input.ObjectType != null && { ObjectType: input.ObjectType }),
286
271
  });
287
272
  return new protocol_http_1.HttpRequest({
288
273
  protocol,
@@ -304,14 +289,12 @@ const serializeAws_restJson1CreateIndexCommand = async (input, context) => {
304
289
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/index";
305
290
  let body;
306
291
  body = JSON.stringify({
307
- ...(input.IsUnique !== undefined && input.IsUnique !== null && { IsUnique: input.IsUnique }),
308
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
309
- ...(input.OrderedIndexedAttributeList !== undefined &&
310
- input.OrderedIndexedAttributeList !== null && {
292
+ ...(input.IsUnique != null && { IsUnique: input.IsUnique }),
293
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
294
+ ...(input.OrderedIndexedAttributeList != null && {
311
295
  OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
312
296
  }),
313
- ...(input.ParentReference !== undefined &&
314
- input.ParentReference !== null && {
297
+ ...(input.ParentReference != null && {
315
298
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
316
299
  }),
317
300
  });
@@ -335,17 +318,14 @@ const serializeAws_restJson1CreateObjectCommand = async (input, context) => {
335
318
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/object";
336
319
  let body;
337
320
  body = JSON.stringify({
338
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
339
- ...(input.ObjectAttributeList !== undefined &&
340
- input.ObjectAttributeList !== null && {
321
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
322
+ ...(input.ObjectAttributeList != null && {
341
323
  ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
342
324
  }),
343
- ...(input.ParentReference !== undefined &&
344
- input.ParentReference !== null && {
325
+ ...(input.ParentReference != null && {
345
326
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
346
327
  }),
347
- ...(input.SchemaFacets !== undefined &&
348
- input.SchemaFacets !== null && {
328
+ ...(input.SchemaFacets != null && {
349
329
  SchemaFacets: serializeAws_restJson1SchemaFacetList(input.SchemaFacets, context),
350
330
  }),
351
331
  });
@@ -369,7 +349,7 @@ const serializeAws_restJson1CreateSchemaCommand = async (input, context) => {
369
349
  "/amazonclouddirectory/2017-01-11/schema/create";
370
350
  let body;
371
351
  body = JSON.stringify({
372
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
352
+ ...(input.Name != null && { Name: input.Name }),
373
353
  });
374
354
  return new protocol_http_1.HttpRequest({
375
355
  protocol,
@@ -392,8 +372,7 @@ const serializeAws_restJson1CreateTypedLinkFacetCommand = async (input, context)
392
372
  "/amazonclouddirectory/2017-01-11/typedlink/facet/create";
393
373
  let body;
394
374
  body = JSON.stringify({
395
- ...(input.Facet !== undefined &&
396
- input.Facet !== null && { Facet: serializeAws_restJson1TypedLinkFacet(input.Facet, context) }),
375
+ ...(input.Facet != null && { Facet: serializeAws_restJson1TypedLinkFacet(input.Facet, context) }),
397
376
  });
398
377
  return new protocol_http_1.HttpRequest({
399
378
  protocol,
@@ -435,7 +414,7 @@ const serializeAws_restJson1DeleteFacetCommand = async (input, context) => {
435
414
  "/amazonclouddirectory/2017-01-11/facet/delete";
436
415
  let body;
437
416
  body = JSON.stringify({
438
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
417
+ ...(input.Name != null && { Name: input.Name }),
439
418
  });
440
419
  return new protocol_http_1.HttpRequest({
441
420
  protocol,
@@ -458,8 +437,7 @@ const serializeAws_restJson1DeleteObjectCommand = async (input, context) => {
458
437
  "/amazonclouddirectory/2017-01-11/object/delete";
459
438
  let body;
460
439
  body = JSON.stringify({
461
- ...(input.ObjectReference !== undefined &&
462
- input.ObjectReference !== null && {
440
+ ...(input.ObjectReference != null && {
463
441
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
464
442
  }),
465
443
  });
@@ -502,7 +480,7 @@ const serializeAws_restJson1DeleteTypedLinkFacetCommand = async (input, context)
502
480
  "/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
503
481
  let body;
504
482
  body = JSON.stringify({
505
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
483
+ ...(input.Name != null && { Name: input.Name }),
506
484
  });
507
485
  return new protocol_http_1.HttpRequest({
508
486
  protocol,
@@ -525,12 +503,10 @@ const serializeAws_restJson1DetachFromIndexCommand = async (input, context) => {
525
503
  "/amazonclouddirectory/2017-01-11/index/detach";
526
504
  let body;
527
505
  body = JSON.stringify({
528
- ...(input.IndexReference !== undefined &&
529
- input.IndexReference !== null && {
506
+ ...(input.IndexReference != null && {
530
507
  IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
531
508
  }),
532
- ...(input.TargetReference !== undefined &&
533
- input.TargetReference !== null && {
509
+ ...(input.TargetReference != null && {
534
510
  TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
535
511
  }),
536
512
  });
@@ -555,9 +531,8 @@ const serializeAws_restJson1DetachObjectCommand = async (input, context) => {
555
531
  "/amazonclouddirectory/2017-01-11/object/detach";
556
532
  let body;
557
533
  body = JSON.stringify({
558
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
559
- ...(input.ParentReference !== undefined &&
560
- input.ParentReference !== null && {
534
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
535
+ ...(input.ParentReference != null && {
561
536
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
562
537
  }),
563
538
  });
@@ -582,12 +557,10 @@ const serializeAws_restJson1DetachPolicyCommand = async (input, context) => {
582
557
  "/amazonclouddirectory/2017-01-11/policy/detach";
583
558
  let body;
584
559
  body = JSON.stringify({
585
- ...(input.ObjectReference !== undefined &&
586
- input.ObjectReference !== null && {
560
+ ...(input.ObjectReference != null && {
587
561
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
588
562
  }),
589
- ...(input.PolicyReference !== undefined &&
590
- input.PolicyReference !== null && {
563
+ ...(input.PolicyReference != null && {
591
564
  PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
592
565
  }),
593
566
  });
@@ -612,8 +585,7 @@ const serializeAws_restJson1DetachTypedLinkCommand = async (input, context) => {
612
585
  "/amazonclouddirectory/2017-01-11/typedlink/detach";
613
586
  let body;
614
587
  body = JSON.stringify({
615
- ...(input.TypedLinkSpecifier !== undefined &&
616
- input.TypedLinkSpecifier !== null && {
588
+ ...(input.TypedLinkSpecifier != null && {
617
589
  TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
618
590
  }),
619
591
  });
@@ -675,7 +647,7 @@ const serializeAws_restJson1GetAppliedSchemaVersionCommand = async (input, conte
675
647
  "/amazonclouddirectory/2017-01-11/schema/getappliedschema";
676
648
  let body;
677
649
  body = JSON.stringify({
678
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
650
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
679
651
  });
680
652
  return new protocol_http_1.HttpRequest({
681
653
  protocol,
@@ -716,7 +688,7 @@ const serializeAws_restJson1GetFacetCommand = async (input, context) => {
716
688
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
717
689
  let body;
718
690
  body = JSON.stringify({
719
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
691
+ ...(input.Name != null && { Name: input.Name }),
720
692
  });
721
693
  return new protocol_http_1.HttpRequest({
722
694
  protocol,
@@ -739,14 +711,11 @@ const serializeAws_restJson1GetLinkAttributesCommand = async (input, context) =>
739
711
  "/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
740
712
  let body;
741
713
  body = JSON.stringify({
742
- ...(input.AttributeNames !== undefined &&
743
- input.AttributeNames !== null && {
714
+ ...(input.AttributeNames != null && {
744
715
  AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
745
716
  }),
746
- ...(input.ConsistencyLevel !== undefined &&
747
- input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel }),
748
- ...(input.TypedLinkSpecifier !== undefined &&
749
- input.TypedLinkSpecifier !== null && {
717
+ ...(input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel }),
718
+ ...(input.TypedLinkSpecifier != null && {
750
719
  TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
751
720
  }),
752
721
  });
@@ -772,16 +741,13 @@ const serializeAws_restJson1GetObjectAttributesCommand = async (input, context)
772
741
  "/amazonclouddirectory/2017-01-11/object/attributes/get";
773
742
  let body;
774
743
  body = JSON.stringify({
775
- ...(input.AttributeNames !== undefined &&
776
- input.AttributeNames !== null && {
744
+ ...(input.AttributeNames != null && {
777
745
  AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
778
746
  }),
779
- ...(input.ObjectReference !== undefined &&
780
- input.ObjectReference !== null && {
747
+ ...(input.ObjectReference != null && {
781
748
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
782
749
  }),
783
- ...(input.SchemaFacet !== undefined &&
784
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
750
+ ...(input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
785
751
  });
786
752
  return new protocol_http_1.HttpRequest({
787
753
  protocol,
@@ -805,8 +771,7 @@ const serializeAws_restJson1GetObjectInformationCommand = async (input, context)
805
771
  "/amazonclouddirectory/2017-01-11/object/information";
806
772
  let body;
807
773
  body = JSON.stringify({
808
- ...(input.ObjectReference !== undefined &&
809
- input.ObjectReference !== null && {
774
+ ...(input.ObjectReference != null && {
810
775
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
811
776
  }),
812
777
  });
@@ -850,7 +815,7 @@ const serializeAws_restJson1GetTypedLinkFacetInformationCommand = async (input,
850
815
  "/amazonclouddirectory/2017-01-11/typedlink/facet/get";
851
816
  let body;
852
817
  body = JSON.stringify({
853
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
818
+ ...(input.Name != null && { Name: input.Name }),
854
819
  });
855
820
  return new protocol_http_1.HttpRequest({
856
821
  protocol,
@@ -872,10 +837,10 @@ const serializeAws_restJson1ListAppliedSchemaArnsCommand = async (input, context
872
837
  "/amazonclouddirectory/2017-01-11/schema/applied";
873
838
  let body;
874
839
  body = JSON.stringify({
875
- ...(input.DirectoryArn !== undefined && input.DirectoryArn !== null && { DirectoryArn: input.DirectoryArn }),
876
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
877
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
878
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
840
+ ...(input.DirectoryArn != null && { DirectoryArn: input.DirectoryArn }),
841
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
842
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
843
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
879
844
  });
880
845
  return new protocol_http_1.HttpRequest({
881
846
  protocol,
@@ -899,10 +864,9 @@ const serializeAws_restJson1ListAttachedIndicesCommand = async (input, context)
899
864
  "/amazonclouddirectory/2017-01-11/object/indices";
900
865
  let body;
901
866
  body = JSON.stringify({
902
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
903
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
904
- ...(input.TargetReference !== undefined &&
905
- input.TargetReference !== null && {
867
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
868
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
869
+ ...(input.TargetReference != null && {
906
870
  TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
907
871
  }),
908
872
  });
@@ -926,8 +890,8 @@ const serializeAws_restJson1ListDevelopmentSchemaArnsCommand = async (input, con
926
890
  "/amazonclouddirectory/2017-01-11/schema/development";
927
891
  let body;
928
892
  body = JSON.stringify({
929
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
930
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
893
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
894
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
931
895
  });
932
896
  return new protocol_http_1.HttpRequest({
933
897
  protocol,
@@ -949,9 +913,9 @@ const serializeAws_restJson1ListDirectoriesCommand = async (input, context) => {
949
913
  "/amazonclouddirectory/2017-01-11/directory/list";
950
914
  let body;
951
915
  body = JSON.stringify({
952
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
953
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
954
- ...(input.state !== undefined && input.state !== null && { state: input.state }),
916
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
917
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
918
+ ...(input.state != null && { state: input.state }),
955
919
  });
956
920
  return new protocol_http_1.HttpRequest({
957
921
  protocol,
@@ -974,9 +938,9 @@ const serializeAws_restJson1ListFacetAttributesCommand = async (input, context)
974
938
  "/amazonclouddirectory/2017-01-11/facet/attributes";
975
939
  let body;
976
940
  body = JSON.stringify({
977
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
978
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
979
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
941
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
942
+ ...(input.Name != null && { Name: input.Name }),
943
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
980
944
  });
981
945
  return new protocol_http_1.HttpRequest({
982
946
  protocol,
@@ -999,8 +963,8 @@ const serializeAws_restJson1ListFacetNamesCommand = async (input, context) => {
999
963
  "/amazonclouddirectory/2017-01-11/facet/list";
1000
964
  let body;
1001
965
  body = JSON.stringify({
1002
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1003
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
966
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
967
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1004
968
  });
1005
969
  return new protocol_http_1.HttpRequest({
1006
970
  protocol,
@@ -1023,20 +987,16 @@ const serializeAws_restJson1ListIncomingTypedLinksCommand = async (input, contex
1023
987
  "/amazonclouddirectory/2017-01-11/typedlink/incoming";
1024
988
  let body;
1025
989
  body = JSON.stringify({
1026
- ...(input.ConsistencyLevel !== undefined &&
1027
- input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel }),
1028
- ...(input.FilterAttributeRanges !== undefined &&
1029
- input.FilterAttributeRanges !== null && {
990
+ ...(input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel }),
991
+ ...(input.FilterAttributeRanges != null && {
1030
992
  FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
1031
993
  }),
1032
- ...(input.FilterTypedLink !== undefined &&
1033
- input.FilterTypedLink !== null && {
994
+ ...(input.FilterTypedLink != null && {
1034
995
  FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
1035
996
  }),
1036
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1037
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1038
- ...(input.ObjectReference !== undefined &&
1039
- input.ObjectReference !== null && {
997
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
998
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
999
+ ...(input.ObjectReference != null && {
1040
1000
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1041
1001
  }),
1042
1002
  });
@@ -1062,14 +1022,12 @@ const serializeAws_restJson1ListIndexCommand = async (input, context) => {
1062
1022
  "/amazonclouddirectory/2017-01-11/index/targets";
1063
1023
  let body;
1064
1024
  body = JSON.stringify({
1065
- ...(input.IndexReference !== undefined &&
1066
- input.IndexReference !== null && {
1025
+ ...(input.IndexReference != null && {
1067
1026
  IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
1068
1027
  }),
1069
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1070
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1071
- ...(input.RangesOnIndexedValues !== undefined &&
1072
- input.RangesOnIndexedValues !== null && {
1028
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1029
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1030
+ ...(input.RangesOnIndexedValues != null && {
1073
1031
  RangesOnIndexedValues: serializeAws_restJson1ObjectAttributeRangeList(input.RangesOnIndexedValues, context),
1074
1032
  }),
1075
1033
  });
@@ -1093,9 +1051,9 @@ const serializeAws_restJson1ListManagedSchemaArnsCommand = async (input, context
1093
1051
  "/amazonclouddirectory/2017-01-11/schema/managed";
1094
1052
  let body;
1095
1053
  body = JSON.stringify({
1096
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1097
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1098
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
1054
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1055
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1056
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
1099
1057
  });
1100
1058
  return new protocol_http_1.HttpRequest({
1101
1059
  protocol,
@@ -1119,12 +1077,10 @@ const serializeAws_restJson1ListObjectAttributesCommand = async (input, context)
1119
1077
  "/amazonclouddirectory/2017-01-11/object/attributes";
1120
1078
  let body;
1121
1079
  body = JSON.stringify({
1122
- ...(input.FacetFilter !== undefined &&
1123
- input.FacetFilter !== null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) }),
1124
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1125
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1126
- ...(input.ObjectReference !== undefined &&
1127
- input.ObjectReference !== null && {
1080
+ ...(input.FacetFilter != null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) }),
1081
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1082
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1083
+ ...(input.ObjectReference != null && {
1128
1084
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1129
1085
  }),
1130
1086
  });
@@ -1150,10 +1106,9 @@ const serializeAws_restJson1ListObjectChildrenCommand = async (input, context) =
1150
1106
  "/amazonclouddirectory/2017-01-11/object/children";
1151
1107
  let body;
1152
1108
  body = JSON.stringify({
1153
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1154
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1155
- ...(input.ObjectReference !== undefined &&
1156
- input.ObjectReference !== null && {
1109
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1110
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1111
+ ...(input.ObjectReference != null && {
1157
1112
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1158
1113
  }),
1159
1114
  });
@@ -1178,10 +1133,9 @@ const serializeAws_restJson1ListObjectParentPathsCommand = async (input, context
1178
1133
  "/amazonclouddirectory/2017-01-11/object/parentpaths";
1179
1134
  let body;
1180
1135
  body = JSON.stringify({
1181
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1182
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1183
- ...(input.ObjectReference !== undefined &&
1184
- input.ObjectReference !== null && {
1136
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1137
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1138
+ ...(input.ObjectReference != null && {
1185
1139
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1186
1140
  }),
1187
1141
  });
@@ -1207,12 +1161,12 @@ const serializeAws_restJson1ListObjectParentsCommand = async (input, context) =>
1207
1161
  "/amazonclouddirectory/2017-01-11/object/parent";
1208
1162
  let body;
1209
1163
  body = JSON.stringify({
1210
- ...(input.IncludeAllLinksToEachParent !== undefined &&
1211
- input.IncludeAllLinksToEachParent !== null && { IncludeAllLinksToEachParent: input.IncludeAllLinksToEachParent }),
1212
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1213
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1214
- ...(input.ObjectReference !== undefined &&
1215
- input.ObjectReference !== null && {
1164
+ ...(input.IncludeAllLinksToEachParent != null && {
1165
+ IncludeAllLinksToEachParent: input.IncludeAllLinksToEachParent,
1166
+ }),
1167
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1168
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1169
+ ...(input.ObjectReference != null && {
1216
1170
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1217
1171
  }),
1218
1172
  });
@@ -1238,10 +1192,9 @@ const serializeAws_restJson1ListObjectPoliciesCommand = async (input, context) =
1238
1192
  "/amazonclouddirectory/2017-01-11/object/policy";
1239
1193
  let body;
1240
1194
  body = JSON.stringify({
1241
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1242
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1243
- ...(input.ObjectReference !== undefined &&
1244
- input.ObjectReference !== null && {
1195
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1196
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1197
+ ...(input.ObjectReference != null && {
1245
1198
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1246
1199
  }),
1247
1200
  });
@@ -1266,20 +1219,16 @@ const serializeAws_restJson1ListOutgoingTypedLinksCommand = async (input, contex
1266
1219
  "/amazonclouddirectory/2017-01-11/typedlink/outgoing";
1267
1220
  let body;
1268
1221
  body = JSON.stringify({
1269
- ...(input.ConsistencyLevel !== undefined &&
1270
- input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel }),
1271
- ...(input.FilterAttributeRanges !== undefined &&
1272
- input.FilterAttributeRanges !== null && {
1222
+ ...(input.ConsistencyLevel != null && { ConsistencyLevel: input.ConsistencyLevel }),
1223
+ ...(input.FilterAttributeRanges != null && {
1273
1224
  FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
1274
1225
  }),
1275
- ...(input.FilterTypedLink !== undefined &&
1276
- input.FilterTypedLink !== null && {
1226
+ ...(input.FilterTypedLink != null && {
1277
1227
  FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
1278
1228
  }),
1279
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1280
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1281
- ...(input.ObjectReference !== undefined &&
1282
- input.ObjectReference !== null && {
1229
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1230
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1231
+ ...(input.ObjectReference != null && {
1283
1232
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1284
1233
  }),
1285
1234
  });
@@ -1305,10 +1254,9 @@ const serializeAws_restJson1ListPolicyAttachmentsCommand = async (input, context
1305
1254
  "/amazonclouddirectory/2017-01-11/policy/attachment";
1306
1255
  let body;
1307
1256
  body = JSON.stringify({
1308
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1309
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1310
- ...(input.PolicyReference !== undefined &&
1311
- input.PolicyReference !== null && {
1257
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1258
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1259
+ ...(input.PolicyReference != null && {
1312
1260
  PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
1313
1261
  }),
1314
1262
  });
@@ -1332,9 +1280,9 @@ const serializeAws_restJson1ListPublishedSchemaArnsCommand = async (input, conte
1332
1280
  "/amazonclouddirectory/2017-01-11/schema/published";
1333
1281
  let body;
1334
1282
  body = JSON.stringify({
1335
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1336
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1337
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
1283
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1284
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1285
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
1338
1286
  });
1339
1287
  return new protocol_http_1.HttpRequest({
1340
1288
  protocol,
@@ -1355,9 +1303,9 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
1355
1303
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags";
1356
1304
  let body;
1357
1305
  body = JSON.stringify({
1358
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1359
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1360
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1306
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1307
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1308
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1361
1309
  });
1362
1310
  return new protocol_http_1.HttpRequest({
1363
1311
  protocol,
@@ -1380,9 +1328,9 @@ const serializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (input,
1380
1328
  "/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
1381
1329
  let body;
1382
1330
  body = JSON.stringify({
1383
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1384
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1385
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1331
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1332
+ ...(input.Name != null && { Name: input.Name }),
1333
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1386
1334
  });
1387
1335
  return new protocol_http_1.HttpRequest({
1388
1336
  protocol,
@@ -1405,8 +1353,8 @@ const serializeAws_restJson1ListTypedLinkFacetNamesCommand = async (input, conte
1405
1353
  "/amazonclouddirectory/2017-01-11/typedlink/facet/list";
1406
1354
  let body;
1407
1355
  body = JSON.stringify({
1408
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1409
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1356
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1357
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1410
1358
  });
1411
1359
  return new protocol_http_1.HttpRequest({
1412
1360
  protocol,
@@ -1429,10 +1377,9 @@ const serializeAws_restJson1LookupPolicyCommand = async (input, context) => {
1429
1377
  "/amazonclouddirectory/2017-01-11/policy/lookup";
1430
1378
  let body;
1431
1379
  body = JSON.stringify({
1432
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1433
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
1434
- ...(input.ObjectReference !== undefined &&
1435
- input.ObjectReference !== null && {
1380
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1381
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
1382
+ ...(input.ObjectReference != null && {
1436
1383
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1437
1384
  }),
1438
1385
  });
@@ -1459,9 +1406,9 @@ const serializeAws_restJson1PublishSchemaCommand = async (input, context) => {
1459
1406
  "/amazonclouddirectory/2017-01-11/schema/publish";
1460
1407
  let body;
1461
1408
  body = JSON.stringify({
1462
- ...(input.MinorVersion !== undefined && input.MinorVersion !== null && { MinorVersion: input.MinorVersion }),
1463
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1464
- ...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
1409
+ ...(input.MinorVersion != null && { MinorVersion: input.MinorVersion }),
1410
+ ...(input.Name != null && { Name: input.Name }),
1411
+ ...(input.Version != null && { Version: input.Version }),
1465
1412
  });
1466
1413
  return new protocol_http_1.HttpRequest({
1467
1414
  protocol,
@@ -1484,7 +1431,7 @@ const serializeAws_restJson1PutSchemaFromJsonCommand = async (input, context) =>
1484
1431
  "/amazonclouddirectory/2017-01-11/schema/json";
1485
1432
  let body;
1486
1433
  body = JSON.stringify({
1487
- ...(input.Document !== undefined && input.Document !== null && { Document: input.Document }),
1434
+ ...(input.Document != null && { Document: input.Document }),
1488
1435
  });
1489
1436
  return new protocol_http_1.HttpRequest({
1490
1437
  protocol,
@@ -1507,12 +1454,10 @@ const serializeAws_restJson1RemoveFacetFromObjectCommand = async (input, context
1507
1454
  "/amazonclouddirectory/2017-01-11/object/facets/delete";
1508
1455
  let body;
1509
1456
  body = JSON.stringify({
1510
- ...(input.ObjectReference !== undefined &&
1511
- input.ObjectReference !== null && {
1457
+ ...(input.ObjectReference != null && {
1512
1458
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1513
1459
  }),
1514
- ...(input.SchemaFacet !== undefined &&
1515
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
1460
+ ...(input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
1516
1461
  });
1517
1462
  return new protocol_http_1.HttpRequest({
1518
1463
  protocol,
@@ -1533,9 +1478,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1533
1478
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags/add";
1534
1479
  let body;
1535
1480
  body = JSON.stringify({
1536
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1537
- ...(input.Tags !== undefined &&
1538
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
1481
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1482
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
1539
1483
  });
1540
1484
  return new protocol_http_1.HttpRequest({
1541
1485
  protocol,
@@ -1557,9 +1501,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1557
1501
  "/amazonclouddirectory/2017-01-11/tags/remove";
1558
1502
  let body;
1559
1503
  body = JSON.stringify({
1560
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
1561
- ...(input.TagKeys !== undefined &&
1562
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
1504
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
1505
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
1563
1506
  });
1564
1507
  return new protocol_http_1.HttpRequest({
1565
1508
  protocol,
@@ -1581,12 +1524,11 @@ const serializeAws_restJson1UpdateFacetCommand = async (input, context) => {
1581
1524
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
1582
1525
  let body;
1583
1526
  body = JSON.stringify({
1584
- ...(input.AttributeUpdates !== undefined &&
1585
- input.AttributeUpdates !== null && {
1527
+ ...(input.AttributeUpdates != null && {
1586
1528
  AttributeUpdates: serializeAws_restJson1FacetAttributeUpdateList(input.AttributeUpdates, context),
1587
1529
  }),
1588
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1589
- ...(input.ObjectType !== undefined && input.ObjectType !== null && { ObjectType: input.ObjectType }),
1530
+ ...(input.Name != null && { Name: input.Name }),
1531
+ ...(input.ObjectType != null && { ObjectType: input.ObjectType }),
1590
1532
  });
1591
1533
  return new protocol_http_1.HttpRequest({
1592
1534
  protocol,
@@ -1609,12 +1551,10 @@ const serializeAws_restJson1UpdateLinkAttributesCommand = async (input, context)
1609
1551
  "/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
1610
1552
  let body;
1611
1553
  body = JSON.stringify({
1612
- ...(input.AttributeUpdates !== undefined &&
1613
- input.AttributeUpdates !== null && {
1554
+ ...(input.AttributeUpdates != null && {
1614
1555
  AttributeUpdates: serializeAws_restJson1LinkAttributeUpdateList(input.AttributeUpdates, context),
1615
1556
  }),
1616
- ...(input.TypedLinkSpecifier !== undefined &&
1617
- input.TypedLinkSpecifier !== null && {
1557
+ ...(input.TypedLinkSpecifier != null && {
1618
1558
  TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
1619
1559
  }),
1620
1560
  });
@@ -1639,12 +1579,10 @@ const serializeAws_restJson1UpdateObjectAttributesCommand = async (input, contex
1639
1579
  "/amazonclouddirectory/2017-01-11/object/update";
1640
1580
  let body;
1641
1581
  body = JSON.stringify({
1642
- ...(input.AttributeUpdates !== undefined &&
1643
- input.AttributeUpdates !== null && {
1582
+ ...(input.AttributeUpdates != null && {
1644
1583
  AttributeUpdates: serializeAws_restJson1ObjectAttributeUpdateList(input.AttributeUpdates, context),
1645
1584
  }),
1646
- ...(input.ObjectReference !== undefined &&
1647
- input.ObjectReference !== null && {
1585
+ ...(input.ObjectReference != null && {
1648
1586
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
1649
1587
  }),
1650
1588
  });
@@ -1669,7 +1607,7 @@ const serializeAws_restJson1UpdateSchemaCommand = async (input, context) => {
1669
1607
  "/amazonclouddirectory/2017-01-11/schema/update";
1670
1608
  let body;
1671
1609
  body = JSON.stringify({
1672
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1610
+ ...(input.Name != null && { Name: input.Name }),
1673
1611
  });
1674
1612
  return new protocol_http_1.HttpRequest({
1675
1613
  protocol,
@@ -1692,15 +1630,13 @@ const serializeAws_restJson1UpdateTypedLinkFacetCommand = async (input, context)
1692
1630
  "/amazonclouddirectory/2017-01-11/typedlink/facet";
1693
1631
  let body;
1694
1632
  body = JSON.stringify({
1695
- ...(input.AttributeUpdates !== undefined &&
1696
- input.AttributeUpdates !== null && {
1633
+ ...(input.AttributeUpdates != null && {
1697
1634
  AttributeUpdates: serializeAws_restJson1TypedLinkFacetAttributeUpdateList(input.AttributeUpdates, context),
1698
1635
  }),
1699
- ...(input.IdentityAttributeOrder !== undefined &&
1700
- input.IdentityAttributeOrder !== null && {
1636
+ ...(input.IdentityAttributeOrder != null && {
1701
1637
  IdentityAttributeOrder: serializeAws_restJson1AttributeNameList(input.IdentityAttributeOrder, context),
1702
1638
  }),
1703
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1639
+ ...(input.Name != null && { Name: input.Name }),
1704
1640
  });
1705
1641
  return new protocol_http_1.HttpRequest({
1706
1642
  protocol,
@@ -1722,10 +1658,9 @@ const serializeAws_restJson1UpgradeAppliedSchemaCommand = async (input, context)
1722
1658
  "/amazonclouddirectory/2017-01-11/schema/upgradeapplied";
1723
1659
  let body;
1724
1660
  body = JSON.stringify({
1725
- ...(input.DirectoryArn !== undefined && input.DirectoryArn !== null && { DirectoryArn: input.DirectoryArn }),
1726
- ...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
1727
- ...(input.PublishedSchemaArn !== undefined &&
1728
- input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn }),
1661
+ ...(input.DirectoryArn != null && { DirectoryArn: input.DirectoryArn }),
1662
+ ...(input.DryRun != null && { DryRun: input.DryRun }),
1663
+ ...(input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn }),
1729
1664
  });
1730
1665
  return new protocol_http_1.HttpRequest({
1731
1666
  protocol,
@@ -1747,12 +1682,10 @@ const serializeAws_restJson1UpgradePublishedSchemaCommand = async (input, contex
1747
1682
  "/amazonclouddirectory/2017-01-11/schema/upgradepublished";
1748
1683
  let body;
1749
1684
  body = JSON.stringify({
1750
- ...(input.DevelopmentSchemaArn !== undefined &&
1751
- input.DevelopmentSchemaArn !== null && { DevelopmentSchemaArn: input.DevelopmentSchemaArn }),
1752
- ...(input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun }),
1753
- ...(input.MinorVersion !== undefined && input.MinorVersion !== null && { MinorVersion: input.MinorVersion }),
1754
- ...(input.PublishedSchemaArn !== undefined &&
1755
- input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn }),
1685
+ ...(input.DevelopmentSchemaArn != null && { DevelopmentSchemaArn: input.DevelopmentSchemaArn }),
1686
+ ...(input.DryRun != null && { DryRun: input.DryRun }),
1687
+ ...(input.MinorVersion != null && { MinorVersion: input.MinorVersion }),
1688
+ ...(input.PublishedSchemaArn != null && { PublishedSchemaArn: input.PublishedSchemaArn }),
1756
1689
  });
1757
1690
  return new protocol_http_1.HttpRequest({
1758
1691
  protocol,
@@ -6308,17 +6241,15 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
6308
6241
  };
6309
6242
  const serializeAws_restJson1AttributeKey = (input, context) => {
6310
6243
  return {
6311
- ...(input.FacetName !== undefined && input.FacetName !== null && { FacetName: input.FacetName }),
6312
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6313
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
6244
+ ...(input.FacetName != null && { FacetName: input.FacetName }),
6245
+ ...(input.Name != null && { Name: input.Name }),
6246
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
6314
6247
  };
6315
6248
  };
6316
6249
  const serializeAws_restJson1AttributeKeyAndValue = (input, context) => {
6317
6250
  return {
6318
- ...(input.Key !== undefined &&
6319
- input.Key !== null && { Key: serializeAws_restJson1AttributeKey(input.Key, context) }),
6320
- ...(input.Value !== undefined &&
6321
- input.Value !== null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }),
6251
+ ...(input.Key != null && { Key: serializeAws_restJson1AttributeKey(input.Key, context) }),
6252
+ ...(input.Value != null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }),
6322
6253
  };
6323
6254
  };
6324
6255
  const serializeAws_restJson1AttributeKeyAndValueList = (input, context) => {
@@ -6343,9 +6274,8 @@ const serializeAws_restJson1AttributeKeyList = (input, context) => {
6343
6274
  };
6344
6275
  const serializeAws_restJson1AttributeNameAndValue = (input, context) => {
6345
6276
  return {
6346
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
6347
- ...(input.Value !== undefined &&
6348
- input.Value !== null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }),
6277
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
6278
+ ...(input.Value != null && { Value: serializeAws_restJson1TypedAttributeValue(input.Value, context) }),
6349
6279
  };
6350
6280
  };
6351
6281
  const serializeAws_restJson1AttributeNameAndValueList = (input, context) => {
@@ -6370,379 +6300,316 @@ const serializeAws_restJson1AttributeNameList = (input, context) => {
6370
6300
  };
6371
6301
  const serializeAws_restJson1BatchAddFacetToObject = (input, context) => {
6372
6302
  return {
6373
- ...(input.ObjectAttributeList !== undefined &&
6374
- input.ObjectAttributeList !== null && {
6303
+ ...(input.ObjectAttributeList != null && {
6375
6304
  ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
6376
6305
  }),
6377
- ...(input.ObjectReference !== undefined &&
6378
- input.ObjectReference !== null && {
6306
+ ...(input.ObjectReference != null && {
6379
6307
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6380
6308
  }),
6381
- ...(input.SchemaFacet !== undefined &&
6382
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
6309
+ ...(input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
6383
6310
  };
6384
6311
  };
6385
6312
  const serializeAws_restJson1BatchAttachObject = (input, context) => {
6386
6313
  return {
6387
- ...(input.ChildReference !== undefined &&
6388
- input.ChildReference !== null && {
6314
+ ...(input.ChildReference != null && {
6389
6315
  ChildReference: serializeAws_restJson1ObjectReference(input.ChildReference, context),
6390
6316
  }),
6391
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
6392
- ...(input.ParentReference !== undefined &&
6393
- input.ParentReference !== null && {
6317
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
6318
+ ...(input.ParentReference != null && {
6394
6319
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
6395
6320
  }),
6396
6321
  };
6397
6322
  };
6398
6323
  const serializeAws_restJson1BatchAttachPolicy = (input, context) => {
6399
6324
  return {
6400
- ...(input.ObjectReference !== undefined &&
6401
- input.ObjectReference !== null && {
6325
+ ...(input.ObjectReference != null && {
6402
6326
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6403
6327
  }),
6404
- ...(input.PolicyReference !== undefined &&
6405
- input.PolicyReference !== null && {
6328
+ ...(input.PolicyReference != null && {
6406
6329
  PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
6407
6330
  }),
6408
6331
  };
6409
6332
  };
6410
6333
  const serializeAws_restJson1BatchAttachToIndex = (input, context) => {
6411
6334
  return {
6412
- ...(input.IndexReference !== undefined &&
6413
- input.IndexReference !== null && {
6335
+ ...(input.IndexReference != null && {
6414
6336
  IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
6415
6337
  }),
6416
- ...(input.TargetReference !== undefined &&
6417
- input.TargetReference !== null && {
6338
+ ...(input.TargetReference != null && {
6418
6339
  TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
6419
6340
  }),
6420
6341
  };
6421
6342
  };
6422
6343
  const serializeAws_restJson1BatchAttachTypedLink = (input, context) => {
6423
6344
  return {
6424
- ...(input.Attributes !== undefined &&
6425
- input.Attributes !== null && {
6345
+ ...(input.Attributes != null && {
6426
6346
  Attributes: serializeAws_restJson1AttributeNameAndValueList(input.Attributes, context),
6427
6347
  }),
6428
- ...(input.SourceObjectReference !== undefined &&
6429
- input.SourceObjectReference !== null && {
6348
+ ...(input.SourceObjectReference != null && {
6430
6349
  SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
6431
6350
  }),
6432
- ...(input.TargetObjectReference !== undefined &&
6433
- input.TargetObjectReference !== null && {
6351
+ ...(input.TargetObjectReference != null && {
6434
6352
  TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
6435
6353
  }),
6436
- ...(input.TypedLinkFacet !== undefined &&
6437
- input.TypedLinkFacet !== null && {
6354
+ ...(input.TypedLinkFacet != null && {
6438
6355
  TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
6439
6356
  }),
6440
6357
  };
6441
6358
  };
6442
6359
  const serializeAws_restJson1BatchCreateIndex = (input, context) => {
6443
6360
  return {
6444
- ...(input.BatchReferenceName !== undefined &&
6445
- input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName }),
6446
- ...(input.IsUnique !== undefined && input.IsUnique !== null && { IsUnique: input.IsUnique }),
6447
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
6448
- ...(input.OrderedIndexedAttributeList !== undefined &&
6449
- input.OrderedIndexedAttributeList !== null && {
6361
+ ...(input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName }),
6362
+ ...(input.IsUnique != null && { IsUnique: input.IsUnique }),
6363
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
6364
+ ...(input.OrderedIndexedAttributeList != null && {
6450
6365
  OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
6451
6366
  }),
6452
- ...(input.ParentReference !== undefined &&
6453
- input.ParentReference !== null && {
6367
+ ...(input.ParentReference != null && {
6454
6368
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
6455
6369
  }),
6456
6370
  };
6457
6371
  };
6458
6372
  const serializeAws_restJson1BatchCreateObject = (input, context) => {
6459
6373
  return {
6460
- ...(input.BatchReferenceName !== undefined &&
6461
- input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName }),
6462
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
6463
- ...(input.ObjectAttributeList !== undefined &&
6464
- input.ObjectAttributeList !== null && {
6374
+ ...(input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName }),
6375
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
6376
+ ...(input.ObjectAttributeList != null && {
6465
6377
  ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
6466
6378
  }),
6467
- ...(input.ParentReference !== undefined &&
6468
- input.ParentReference !== null && {
6379
+ ...(input.ParentReference != null && {
6469
6380
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
6470
6381
  }),
6471
- ...(input.SchemaFacet !== undefined &&
6472
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacetList(input.SchemaFacet, context) }),
6382
+ ...(input.SchemaFacet != null && {
6383
+ SchemaFacet: serializeAws_restJson1SchemaFacetList(input.SchemaFacet, context),
6384
+ }),
6473
6385
  };
6474
6386
  };
6475
6387
  const serializeAws_restJson1BatchDeleteObject = (input, context) => {
6476
6388
  return {
6477
- ...(input.ObjectReference !== undefined &&
6478
- input.ObjectReference !== null && {
6389
+ ...(input.ObjectReference != null && {
6479
6390
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6480
6391
  }),
6481
6392
  };
6482
6393
  };
6483
6394
  const serializeAws_restJson1BatchDetachFromIndex = (input, context) => {
6484
6395
  return {
6485
- ...(input.IndexReference !== undefined &&
6486
- input.IndexReference !== null && {
6396
+ ...(input.IndexReference != null && {
6487
6397
  IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
6488
6398
  }),
6489
- ...(input.TargetReference !== undefined &&
6490
- input.TargetReference !== null && {
6399
+ ...(input.TargetReference != null && {
6491
6400
  TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
6492
6401
  }),
6493
6402
  };
6494
6403
  };
6495
6404
  const serializeAws_restJson1BatchDetachObject = (input, context) => {
6496
6405
  return {
6497
- ...(input.BatchReferenceName !== undefined &&
6498
- input.BatchReferenceName !== null && { BatchReferenceName: input.BatchReferenceName }),
6499
- ...(input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName }),
6500
- ...(input.ParentReference !== undefined &&
6501
- input.ParentReference !== null && {
6406
+ ...(input.BatchReferenceName != null && { BatchReferenceName: input.BatchReferenceName }),
6407
+ ...(input.LinkName != null && { LinkName: input.LinkName }),
6408
+ ...(input.ParentReference != null && {
6502
6409
  ParentReference: serializeAws_restJson1ObjectReference(input.ParentReference, context),
6503
6410
  }),
6504
6411
  };
6505
6412
  };
6506
6413
  const serializeAws_restJson1BatchDetachPolicy = (input, context) => {
6507
6414
  return {
6508
- ...(input.ObjectReference !== undefined &&
6509
- input.ObjectReference !== null && {
6415
+ ...(input.ObjectReference != null && {
6510
6416
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6511
6417
  }),
6512
- ...(input.PolicyReference !== undefined &&
6513
- input.PolicyReference !== null && {
6418
+ ...(input.PolicyReference != null && {
6514
6419
  PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
6515
6420
  }),
6516
6421
  };
6517
6422
  };
6518
6423
  const serializeAws_restJson1BatchDetachTypedLink = (input, context) => {
6519
6424
  return {
6520
- ...(input.TypedLinkSpecifier !== undefined &&
6521
- input.TypedLinkSpecifier !== null && {
6425
+ ...(input.TypedLinkSpecifier != null && {
6522
6426
  TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
6523
6427
  }),
6524
6428
  };
6525
6429
  };
6526
6430
  const serializeAws_restJson1BatchGetLinkAttributes = (input, context) => {
6527
6431
  return {
6528
- ...(input.AttributeNames !== undefined &&
6529
- input.AttributeNames !== null && {
6432
+ ...(input.AttributeNames != null && {
6530
6433
  AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
6531
6434
  }),
6532
- ...(input.TypedLinkSpecifier !== undefined &&
6533
- input.TypedLinkSpecifier !== null && {
6435
+ ...(input.TypedLinkSpecifier != null && {
6534
6436
  TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
6535
6437
  }),
6536
6438
  };
6537
6439
  };
6538
6440
  const serializeAws_restJson1BatchGetObjectAttributes = (input, context) => {
6539
6441
  return {
6540
- ...(input.AttributeNames !== undefined &&
6541
- input.AttributeNames !== null && {
6442
+ ...(input.AttributeNames != null && {
6542
6443
  AttributeNames: serializeAws_restJson1AttributeNameList(input.AttributeNames, context),
6543
6444
  }),
6544
- ...(input.ObjectReference !== undefined &&
6545
- input.ObjectReference !== null && {
6445
+ ...(input.ObjectReference != null && {
6546
6446
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6547
6447
  }),
6548
- ...(input.SchemaFacet !== undefined &&
6549
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
6448
+ ...(input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
6550
6449
  };
6551
6450
  };
6552
6451
  const serializeAws_restJson1BatchGetObjectInformation = (input, context) => {
6553
6452
  return {
6554
- ...(input.ObjectReference !== undefined &&
6555
- input.ObjectReference !== null && {
6453
+ ...(input.ObjectReference != null && {
6556
6454
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6557
6455
  }),
6558
6456
  };
6559
6457
  };
6560
6458
  const serializeAws_restJson1BatchListAttachedIndices = (input, context) => {
6561
6459
  return {
6562
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6563
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6564
- ...(input.TargetReference !== undefined &&
6565
- input.TargetReference !== null && {
6460
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6461
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6462
+ ...(input.TargetReference != null && {
6566
6463
  TargetReference: serializeAws_restJson1ObjectReference(input.TargetReference, context),
6567
6464
  }),
6568
6465
  };
6569
6466
  };
6570
6467
  const serializeAws_restJson1BatchListIncomingTypedLinks = (input, context) => {
6571
6468
  return {
6572
- ...(input.FilterAttributeRanges !== undefined &&
6573
- input.FilterAttributeRanges !== null && {
6469
+ ...(input.FilterAttributeRanges != null && {
6574
6470
  FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
6575
6471
  }),
6576
- ...(input.FilterTypedLink !== undefined &&
6577
- input.FilterTypedLink !== null && {
6472
+ ...(input.FilterTypedLink != null && {
6578
6473
  FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
6579
6474
  }),
6580
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6581
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6582
- ...(input.ObjectReference !== undefined &&
6583
- input.ObjectReference !== null && {
6475
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6476
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6477
+ ...(input.ObjectReference != null && {
6584
6478
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6585
6479
  }),
6586
6480
  };
6587
6481
  };
6588
6482
  const serializeAws_restJson1BatchListIndex = (input, context) => {
6589
6483
  return {
6590
- ...(input.IndexReference !== undefined &&
6591
- input.IndexReference !== null && {
6484
+ ...(input.IndexReference != null && {
6592
6485
  IndexReference: serializeAws_restJson1ObjectReference(input.IndexReference, context),
6593
6486
  }),
6594
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6595
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6596
- ...(input.RangesOnIndexedValues !== undefined &&
6597
- input.RangesOnIndexedValues !== null && {
6487
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6488
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6489
+ ...(input.RangesOnIndexedValues != null && {
6598
6490
  RangesOnIndexedValues: serializeAws_restJson1ObjectAttributeRangeList(input.RangesOnIndexedValues, context),
6599
6491
  }),
6600
6492
  };
6601
6493
  };
6602
6494
  const serializeAws_restJson1BatchListObjectAttributes = (input, context) => {
6603
6495
  return {
6604
- ...(input.FacetFilter !== undefined &&
6605
- input.FacetFilter !== null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) }),
6606
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6607
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6608
- ...(input.ObjectReference !== undefined &&
6609
- input.ObjectReference !== null && {
6496
+ ...(input.FacetFilter != null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) }),
6497
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6498
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6499
+ ...(input.ObjectReference != null && {
6610
6500
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6611
6501
  }),
6612
6502
  };
6613
6503
  };
6614
6504
  const serializeAws_restJson1BatchListObjectChildren = (input, context) => {
6615
6505
  return {
6616
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6617
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6618
- ...(input.ObjectReference !== undefined &&
6619
- input.ObjectReference !== null && {
6506
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6507
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6508
+ ...(input.ObjectReference != null && {
6620
6509
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6621
6510
  }),
6622
6511
  };
6623
6512
  };
6624
6513
  const serializeAws_restJson1BatchListObjectParentPaths = (input, context) => {
6625
6514
  return {
6626
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6627
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6628
- ...(input.ObjectReference !== undefined &&
6629
- input.ObjectReference !== null && {
6515
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6516
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6517
+ ...(input.ObjectReference != null && {
6630
6518
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6631
6519
  }),
6632
6520
  };
6633
6521
  };
6634
6522
  const serializeAws_restJson1BatchListObjectParents = (input, context) => {
6635
6523
  return {
6636
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6637
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6638
- ...(input.ObjectReference !== undefined &&
6639
- input.ObjectReference !== null && {
6524
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6525
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6526
+ ...(input.ObjectReference != null && {
6640
6527
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6641
6528
  }),
6642
6529
  };
6643
6530
  };
6644
6531
  const serializeAws_restJson1BatchListObjectPolicies = (input, context) => {
6645
6532
  return {
6646
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6647
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6648
- ...(input.ObjectReference !== undefined &&
6649
- input.ObjectReference !== null && {
6533
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6534
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6535
+ ...(input.ObjectReference != null && {
6650
6536
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6651
6537
  }),
6652
6538
  };
6653
6539
  };
6654
6540
  const serializeAws_restJson1BatchListOutgoingTypedLinks = (input, context) => {
6655
6541
  return {
6656
- ...(input.FilterAttributeRanges !== undefined &&
6657
- input.FilterAttributeRanges !== null && {
6542
+ ...(input.FilterAttributeRanges != null && {
6658
6543
  FilterAttributeRanges: serializeAws_restJson1TypedLinkAttributeRangeList(input.FilterAttributeRanges, context),
6659
6544
  }),
6660
- ...(input.FilterTypedLink !== undefined &&
6661
- input.FilterTypedLink !== null && {
6545
+ ...(input.FilterTypedLink != null && {
6662
6546
  FilterTypedLink: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.FilterTypedLink, context),
6663
6547
  }),
6664
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6665
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6666
- ...(input.ObjectReference !== undefined &&
6667
- input.ObjectReference !== null && {
6548
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6549
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6550
+ ...(input.ObjectReference != null && {
6668
6551
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6669
6552
  }),
6670
6553
  };
6671
6554
  };
6672
6555
  const serializeAws_restJson1BatchListPolicyAttachments = (input, context) => {
6673
6556
  return {
6674
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6675
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6676
- ...(input.PolicyReference !== undefined &&
6677
- input.PolicyReference !== null && {
6557
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6558
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6559
+ ...(input.PolicyReference != null && {
6678
6560
  PolicyReference: serializeAws_restJson1ObjectReference(input.PolicyReference, context),
6679
6561
  }),
6680
6562
  };
6681
6563
  };
6682
6564
  const serializeAws_restJson1BatchLookupPolicy = (input, context) => {
6683
6565
  return {
6684
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
6685
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
6686
- ...(input.ObjectReference !== undefined &&
6687
- input.ObjectReference !== null && {
6566
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
6567
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
6568
+ ...(input.ObjectReference != null && {
6688
6569
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6689
6570
  }),
6690
6571
  };
6691
6572
  };
6692
6573
  const serializeAws_restJson1BatchReadOperation = (input, context) => {
6693
6574
  return {
6694
- ...(input.GetLinkAttributes !== undefined &&
6695
- input.GetLinkAttributes !== null && {
6575
+ ...(input.GetLinkAttributes != null && {
6696
6576
  GetLinkAttributes: serializeAws_restJson1BatchGetLinkAttributes(input.GetLinkAttributes, context),
6697
6577
  }),
6698
- ...(input.GetObjectAttributes !== undefined &&
6699
- input.GetObjectAttributes !== null && {
6578
+ ...(input.GetObjectAttributes != null && {
6700
6579
  GetObjectAttributes: serializeAws_restJson1BatchGetObjectAttributes(input.GetObjectAttributes, context),
6701
6580
  }),
6702
- ...(input.GetObjectInformation !== undefined &&
6703
- input.GetObjectInformation !== null && {
6581
+ ...(input.GetObjectInformation != null && {
6704
6582
  GetObjectInformation: serializeAws_restJson1BatchGetObjectInformation(input.GetObjectInformation, context),
6705
6583
  }),
6706
- ...(input.ListAttachedIndices !== undefined &&
6707
- input.ListAttachedIndices !== null && {
6584
+ ...(input.ListAttachedIndices != null && {
6708
6585
  ListAttachedIndices: serializeAws_restJson1BatchListAttachedIndices(input.ListAttachedIndices, context),
6709
6586
  }),
6710
- ...(input.ListIncomingTypedLinks !== undefined &&
6711
- input.ListIncomingTypedLinks !== null && {
6587
+ ...(input.ListIncomingTypedLinks != null && {
6712
6588
  ListIncomingTypedLinks: serializeAws_restJson1BatchListIncomingTypedLinks(input.ListIncomingTypedLinks, context),
6713
6589
  }),
6714
- ...(input.ListIndex !== undefined &&
6715
- input.ListIndex !== null && { ListIndex: serializeAws_restJson1BatchListIndex(input.ListIndex, context) }),
6716
- ...(input.ListObjectAttributes !== undefined &&
6717
- input.ListObjectAttributes !== null && {
6590
+ ...(input.ListIndex != null && { ListIndex: serializeAws_restJson1BatchListIndex(input.ListIndex, context) }),
6591
+ ...(input.ListObjectAttributes != null && {
6718
6592
  ListObjectAttributes: serializeAws_restJson1BatchListObjectAttributes(input.ListObjectAttributes, context),
6719
6593
  }),
6720
- ...(input.ListObjectChildren !== undefined &&
6721
- input.ListObjectChildren !== null && {
6594
+ ...(input.ListObjectChildren != null && {
6722
6595
  ListObjectChildren: serializeAws_restJson1BatchListObjectChildren(input.ListObjectChildren, context),
6723
6596
  }),
6724
- ...(input.ListObjectParentPaths !== undefined &&
6725
- input.ListObjectParentPaths !== null && {
6597
+ ...(input.ListObjectParentPaths != null && {
6726
6598
  ListObjectParentPaths: serializeAws_restJson1BatchListObjectParentPaths(input.ListObjectParentPaths, context),
6727
6599
  }),
6728
- ...(input.ListObjectParents !== undefined &&
6729
- input.ListObjectParents !== null && {
6600
+ ...(input.ListObjectParents != null && {
6730
6601
  ListObjectParents: serializeAws_restJson1BatchListObjectParents(input.ListObjectParents, context),
6731
6602
  }),
6732
- ...(input.ListObjectPolicies !== undefined &&
6733
- input.ListObjectPolicies !== null && {
6603
+ ...(input.ListObjectPolicies != null && {
6734
6604
  ListObjectPolicies: serializeAws_restJson1BatchListObjectPolicies(input.ListObjectPolicies, context),
6735
6605
  }),
6736
- ...(input.ListOutgoingTypedLinks !== undefined &&
6737
- input.ListOutgoingTypedLinks !== null && {
6606
+ ...(input.ListOutgoingTypedLinks != null && {
6738
6607
  ListOutgoingTypedLinks: serializeAws_restJson1BatchListOutgoingTypedLinks(input.ListOutgoingTypedLinks, context),
6739
6608
  }),
6740
- ...(input.ListPolicyAttachments !== undefined &&
6741
- input.ListPolicyAttachments !== null && {
6609
+ ...(input.ListPolicyAttachments != null && {
6742
6610
  ListPolicyAttachments: serializeAws_restJson1BatchListPolicyAttachments(input.ListPolicyAttachments, context),
6743
6611
  }),
6744
- ...(input.LookupPolicy !== undefined &&
6745
- input.LookupPolicy !== null && {
6612
+ ...(input.LookupPolicy != null && {
6746
6613
  LookupPolicy: serializeAws_restJson1BatchLookupPolicy(input.LookupPolicy, context),
6747
6614
  }),
6748
6615
  };
@@ -6759,98 +6626,77 @@ const serializeAws_restJson1BatchReadOperationList = (input, context) => {
6759
6626
  };
6760
6627
  const serializeAws_restJson1BatchRemoveFacetFromObject = (input, context) => {
6761
6628
  return {
6762
- ...(input.ObjectReference !== undefined &&
6763
- input.ObjectReference !== null && {
6629
+ ...(input.ObjectReference != null && {
6764
6630
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6765
6631
  }),
6766
- ...(input.SchemaFacet !== undefined &&
6767
- input.SchemaFacet !== null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
6632
+ ...(input.SchemaFacet != null && { SchemaFacet: serializeAws_restJson1SchemaFacet(input.SchemaFacet, context) }),
6768
6633
  };
6769
6634
  };
6770
6635
  const serializeAws_restJson1BatchUpdateLinkAttributes = (input, context) => {
6771
6636
  return {
6772
- ...(input.AttributeUpdates !== undefined &&
6773
- input.AttributeUpdates !== null && {
6637
+ ...(input.AttributeUpdates != null && {
6774
6638
  AttributeUpdates: serializeAws_restJson1LinkAttributeUpdateList(input.AttributeUpdates, context),
6775
6639
  }),
6776
- ...(input.TypedLinkSpecifier !== undefined &&
6777
- input.TypedLinkSpecifier !== null && {
6640
+ ...(input.TypedLinkSpecifier != null && {
6778
6641
  TypedLinkSpecifier: serializeAws_restJson1TypedLinkSpecifier(input.TypedLinkSpecifier, context),
6779
6642
  }),
6780
6643
  };
6781
6644
  };
6782
6645
  const serializeAws_restJson1BatchUpdateObjectAttributes = (input, context) => {
6783
6646
  return {
6784
- ...(input.AttributeUpdates !== undefined &&
6785
- input.AttributeUpdates !== null && {
6647
+ ...(input.AttributeUpdates != null && {
6786
6648
  AttributeUpdates: serializeAws_restJson1ObjectAttributeUpdateList(input.AttributeUpdates, context),
6787
6649
  }),
6788
- ...(input.ObjectReference !== undefined &&
6789
- input.ObjectReference !== null && {
6650
+ ...(input.ObjectReference != null && {
6790
6651
  ObjectReference: serializeAws_restJson1ObjectReference(input.ObjectReference, context),
6791
6652
  }),
6792
6653
  };
6793
6654
  };
6794
6655
  const serializeAws_restJson1BatchWriteOperation = (input, context) => {
6795
6656
  return {
6796
- ...(input.AddFacetToObject !== undefined &&
6797
- input.AddFacetToObject !== null && {
6657
+ ...(input.AddFacetToObject != null && {
6798
6658
  AddFacetToObject: serializeAws_restJson1BatchAddFacetToObject(input.AddFacetToObject, context),
6799
6659
  }),
6800
- ...(input.AttachObject !== undefined &&
6801
- input.AttachObject !== null && {
6660
+ ...(input.AttachObject != null && {
6802
6661
  AttachObject: serializeAws_restJson1BatchAttachObject(input.AttachObject, context),
6803
6662
  }),
6804
- ...(input.AttachPolicy !== undefined &&
6805
- input.AttachPolicy !== null && {
6663
+ ...(input.AttachPolicy != null && {
6806
6664
  AttachPolicy: serializeAws_restJson1BatchAttachPolicy(input.AttachPolicy, context),
6807
6665
  }),
6808
- ...(input.AttachToIndex !== undefined &&
6809
- input.AttachToIndex !== null && {
6666
+ ...(input.AttachToIndex != null && {
6810
6667
  AttachToIndex: serializeAws_restJson1BatchAttachToIndex(input.AttachToIndex, context),
6811
6668
  }),
6812
- ...(input.AttachTypedLink !== undefined &&
6813
- input.AttachTypedLink !== null && {
6669
+ ...(input.AttachTypedLink != null && {
6814
6670
  AttachTypedLink: serializeAws_restJson1BatchAttachTypedLink(input.AttachTypedLink, context),
6815
6671
  }),
6816
- ...(input.CreateIndex !== undefined &&
6817
- input.CreateIndex !== null && {
6672
+ ...(input.CreateIndex != null && {
6818
6673
  CreateIndex: serializeAws_restJson1BatchCreateIndex(input.CreateIndex, context),
6819
6674
  }),
6820
- ...(input.CreateObject !== undefined &&
6821
- input.CreateObject !== null && {
6675
+ ...(input.CreateObject != null && {
6822
6676
  CreateObject: serializeAws_restJson1BatchCreateObject(input.CreateObject, context),
6823
6677
  }),
6824
- ...(input.DeleteObject !== undefined &&
6825
- input.DeleteObject !== null && {
6678
+ ...(input.DeleteObject != null && {
6826
6679
  DeleteObject: serializeAws_restJson1BatchDeleteObject(input.DeleteObject, context),
6827
6680
  }),
6828
- ...(input.DetachFromIndex !== undefined &&
6829
- input.DetachFromIndex !== null && {
6681
+ ...(input.DetachFromIndex != null && {
6830
6682
  DetachFromIndex: serializeAws_restJson1BatchDetachFromIndex(input.DetachFromIndex, context),
6831
6683
  }),
6832
- ...(input.DetachObject !== undefined &&
6833
- input.DetachObject !== null && {
6684
+ ...(input.DetachObject != null && {
6834
6685
  DetachObject: serializeAws_restJson1BatchDetachObject(input.DetachObject, context),
6835
6686
  }),
6836
- ...(input.DetachPolicy !== undefined &&
6837
- input.DetachPolicy !== null && {
6687
+ ...(input.DetachPolicy != null && {
6838
6688
  DetachPolicy: serializeAws_restJson1BatchDetachPolicy(input.DetachPolicy, context),
6839
6689
  }),
6840
- ...(input.DetachTypedLink !== undefined &&
6841
- input.DetachTypedLink !== null && {
6690
+ ...(input.DetachTypedLink != null && {
6842
6691
  DetachTypedLink: serializeAws_restJson1BatchDetachTypedLink(input.DetachTypedLink, context),
6843
6692
  }),
6844
- ...(input.RemoveFacetFromObject !== undefined &&
6845
- input.RemoveFacetFromObject !== null && {
6693
+ ...(input.RemoveFacetFromObject != null && {
6846
6694
  RemoveFacetFromObject: serializeAws_restJson1BatchRemoveFacetFromObject(input.RemoveFacetFromObject, context),
6847
6695
  }),
6848
- ...(input.UpdateLinkAttributes !== undefined &&
6849
- input.UpdateLinkAttributes !== null && {
6696
+ ...(input.UpdateLinkAttributes != null && {
6850
6697
  UpdateLinkAttributes: serializeAws_restJson1BatchUpdateLinkAttributes(input.UpdateLinkAttributes, context),
6851
6698
  }),
6852
- ...(input.UpdateObjectAttributes !== undefined &&
6853
- input.UpdateObjectAttributes !== null && {
6699
+ ...(input.UpdateObjectAttributes != null && {
6854
6700
  UpdateObjectAttributes: serializeAws_restJson1BatchUpdateObjectAttributes(input.UpdateObjectAttributes, context),
6855
6701
  }),
6856
6702
  };
@@ -6867,29 +6713,24 @@ const serializeAws_restJson1BatchWriteOperationList = (input, context) => {
6867
6713
  };
6868
6714
  const serializeAws_restJson1FacetAttribute = (input, context) => {
6869
6715
  return {
6870
- ...(input.AttributeDefinition !== undefined &&
6871
- input.AttributeDefinition !== null && {
6716
+ ...(input.AttributeDefinition != null && {
6872
6717
  AttributeDefinition: serializeAws_restJson1FacetAttributeDefinition(input.AttributeDefinition, context),
6873
6718
  }),
6874
- ...(input.AttributeReference !== undefined &&
6875
- input.AttributeReference !== null && {
6719
+ ...(input.AttributeReference != null && {
6876
6720
  AttributeReference: serializeAws_restJson1FacetAttributeReference(input.AttributeReference, context),
6877
6721
  }),
6878
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6879
- ...(input.RequiredBehavior !== undefined &&
6880
- input.RequiredBehavior !== null && { RequiredBehavior: input.RequiredBehavior }),
6722
+ ...(input.Name != null && { Name: input.Name }),
6723
+ ...(input.RequiredBehavior != null && { RequiredBehavior: input.RequiredBehavior }),
6881
6724
  };
6882
6725
  };
6883
6726
  const serializeAws_restJson1FacetAttributeDefinition = (input, context) => {
6884
6727
  return {
6885
- ...(input.DefaultValue !== undefined &&
6886
- input.DefaultValue !== null && {
6728
+ ...(input.DefaultValue != null && {
6887
6729
  DefaultValue: serializeAws_restJson1TypedAttributeValue(input.DefaultValue, context),
6888
6730
  }),
6889
- ...(input.IsImmutable !== undefined && input.IsImmutable !== null && { IsImmutable: input.IsImmutable }),
6890
- ...(input.Rules !== undefined &&
6891
- input.Rules !== null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) }),
6892
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
6731
+ ...(input.IsImmutable != null && { IsImmutable: input.IsImmutable }),
6732
+ ...(input.Rules != null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) }),
6733
+ ...(input.Type != null && { Type: input.Type }),
6893
6734
  };
6894
6735
  };
6895
6736
  const serializeAws_restJson1FacetAttributeList = (input, context) => {
@@ -6904,17 +6745,14 @@ const serializeAws_restJson1FacetAttributeList = (input, context) => {
6904
6745
  };
6905
6746
  const serializeAws_restJson1FacetAttributeReference = (input, context) => {
6906
6747
  return {
6907
- ...(input.TargetAttributeName !== undefined &&
6908
- input.TargetAttributeName !== null && { TargetAttributeName: input.TargetAttributeName }),
6909
- ...(input.TargetFacetName !== undefined &&
6910
- input.TargetFacetName !== null && { TargetFacetName: input.TargetFacetName }),
6748
+ ...(input.TargetAttributeName != null && { TargetAttributeName: input.TargetAttributeName }),
6749
+ ...(input.TargetFacetName != null && { TargetFacetName: input.TargetFacetName }),
6911
6750
  };
6912
6751
  };
6913
6752
  const serializeAws_restJson1FacetAttributeUpdate = (input, context) => {
6914
6753
  return {
6915
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
6916
- ...(input.Attribute !== undefined &&
6917
- input.Attribute !== null && { Attribute: serializeAws_restJson1FacetAttribute(input.Attribute, context) }),
6754
+ ...(input.Action != null && { Action: input.Action }),
6755
+ ...(input.Attribute != null && { Attribute: serializeAws_restJson1FacetAttribute(input.Attribute, context) }),
6918
6756
  };
6919
6757
  };
6920
6758
  const serializeAws_restJson1FacetAttributeUpdateList = (input, context) => {
@@ -6929,22 +6767,20 @@ const serializeAws_restJson1FacetAttributeUpdateList = (input, context) => {
6929
6767
  };
6930
6768
  const serializeAws_restJson1LinkAttributeAction = (input, context) => {
6931
6769
  return {
6932
- ...(input.AttributeActionType !== undefined &&
6933
- input.AttributeActionType !== null && { AttributeActionType: input.AttributeActionType }),
6934
- ...(input.AttributeUpdateValue !== undefined &&
6935
- input.AttributeUpdateValue !== null && {
6770
+ ...(input.AttributeActionType != null && { AttributeActionType: input.AttributeActionType }),
6771
+ ...(input.AttributeUpdateValue != null && {
6936
6772
  AttributeUpdateValue: serializeAws_restJson1TypedAttributeValue(input.AttributeUpdateValue, context),
6937
6773
  }),
6938
6774
  };
6939
6775
  };
6940
6776
  const serializeAws_restJson1LinkAttributeUpdate = (input, context) => {
6941
6777
  return {
6942
- ...(input.AttributeAction !== undefined &&
6943
- input.AttributeAction !== null && {
6778
+ ...(input.AttributeAction != null && {
6944
6779
  AttributeAction: serializeAws_restJson1LinkAttributeAction(input.AttributeAction, context),
6945
6780
  }),
6946
- ...(input.AttributeKey !== undefined &&
6947
- input.AttributeKey !== null && { AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context) }),
6781
+ ...(input.AttributeKey != null && {
6782
+ AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context),
6783
+ }),
6948
6784
  };
6949
6785
  };
6950
6786
  const serializeAws_restJson1LinkAttributeUpdateList = (input, context) => {
@@ -6959,20 +6795,18 @@ const serializeAws_restJson1LinkAttributeUpdateList = (input, context) => {
6959
6795
  };
6960
6796
  const serializeAws_restJson1ObjectAttributeAction = (input, context) => {
6961
6797
  return {
6962
- ...(input.ObjectAttributeActionType !== undefined &&
6963
- input.ObjectAttributeActionType !== null && { ObjectAttributeActionType: input.ObjectAttributeActionType }),
6964
- ...(input.ObjectAttributeUpdateValue !== undefined &&
6965
- input.ObjectAttributeUpdateValue !== null && {
6798
+ ...(input.ObjectAttributeActionType != null && { ObjectAttributeActionType: input.ObjectAttributeActionType }),
6799
+ ...(input.ObjectAttributeUpdateValue != null && {
6966
6800
  ObjectAttributeUpdateValue: serializeAws_restJson1TypedAttributeValue(input.ObjectAttributeUpdateValue, context),
6967
6801
  }),
6968
6802
  };
6969
6803
  };
6970
6804
  const serializeAws_restJson1ObjectAttributeRange = (input, context) => {
6971
6805
  return {
6972
- ...(input.AttributeKey !== undefined &&
6973
- input.AttributeKey !== null && { AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context) }),
6974
- ...(input.Range !== undefined &&
6975
- input.Range !== null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }),
6806
+ ...(input.AttributeKey != null && {
6807
+ AttributeKey: serializeAws_restJson1AttributeKey(input.AttributeKey, context),
6808
+ }),
6809
+ ...(input.Range != null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }),
6976
6810
  };
6977
6811
  };
6978
6812
  const serializeAws_restJson1ObjectAttributeRangeList = (input, context) => {
@@ -6987,12 +6821,10 @@ const serializeAws_restJson1ObjectAttributeRangeList = (input, context) => {
6987
6821
  };
6988
6822
  const serializeAws_restJson1ObjectAttributeUpdate = (input, context) => {
6989
6823
  return {
6990
- ...(input.ObjectAttributeAction !== undefined &&
6991
- input.ObjectAttributeAction !== null && {
6824
+ ...(input.ObjectAttributeAction != null && {
6992
6825
  ObjectAttributeAction: serializeAws_restJson1ObjectAttributeAction(input.ObjectAttributeAction, context),
6993
6826
  }),
6994
- ...(input.ObjectAttributeKey !== undefined &&
6995
- input.ObjectAttributeKey !== null && {
6827
+ ...(input.ObjectAttributeKey != null && {
6996
6828
  ObjectAttributeKey: serializeAws_restJson1AttributeKey(input.ObjectAttributeKey, context),
6997
6829
  }),
6998
6830
  };
@@ -7009,14 +6841,13 @@ const serializeAws_restJson1ObjectAttributeUpdateList = (input, context) => {
7009
6841
  };
7010
6842
  const serializeAws_restJson1ObjectReference = (input, context) => {
7011
6843
  return {
7012
- ...(input.Selector !== undefined && input.Selector !== null && { Selector: input.Selector }),
6844
+ ...(input.Selector != null && { Selector: input.Selector }),
7013
6845
  };
7014
6846
  };
7015
6847
  const serializeAws_restJson1Rule = (input, context) => {
7016
6848
  return {
7017
- ...(input.Parameters !== undefined &&
7018
- input.Parameters !== null && { Parameters: serializeAws_restJson1RuleParameterMap(input.Parameters, context) }),
7019
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
6849
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1RuleParameterMap(input.Parameters, context) }),
6850
+ ...(input.Type != null && { Type: input.Type }),
7020
6851
  };
7021
6852
  };
7022
6853
  const serializeAws_restJson1RuleMap = (input, context) => {
@@ -7043,8 +6874,8 @@ const serializeAws_restJson1RuleParameterMap = (input, context) => {
7043
6874
  };
7044
6875
  const serializeAws_restJson1SchemaFacet = (input, context) => {
7045
6876
  return {
7046
- ...(input.FacetName !== undefined && input.FacetName !== null && { FacetName: input.FacetName }),
7047
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
6877
+ ...(input.FacetName != null && { FacetName: input.FacetName }),
6878
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
7048
6879
  };
7049
6880
  };
7050
6881
  const serializeAws_restJson1SchemaFacetList = (input, context) => {
@@ -7059,8 +6890,8 @@ const serializeAws_restJson1SchemaFacetList = (input, context) => {
7059
6890
  };
7060
6891
  const serializeAws_restJson1Tag = (input, context) => {
7061
6892
  return {
7062
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
7063
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
6893
+ ...(input.Key != null && { Key: input.Key }),
6894
+ ...(input.Value != null && { Value: input.Value }),
7064
6895
  };
7065
6896
  };
7066
6897
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -7095,29 +6926,24 @@ const serializeAws_restJson1TypedAttributeValue = (input, context) => {
7095
6926
  };
7096
6927
  const serializeAws_restJson1TypedAttributeValueRange = (input, context) => {
7097
6928
  return {
7098
- ...(input.EndMode !== undefined && input.EndMode !== null && { EndMode: input.EndMode }),
7099
- ...(input.EndValue !== undefined &&
7100
- input.EndValue !== null && { EndValue: serializeAws_restJson1TypedAttributeValue(input.EndValue, context) }),
7101
- ...(input.StartMode !== undefined && input.StartMode !== null && { StartMode: input.StartMode }),
7102
- ...(input.StartValue !== undefined &&
7103
- input.StartValue !== null && {
6929
+ ...(input.EndMode != null && { EndMode: input.EndMode }),
6930
+ ...(input.EndValue != null && { EndValue: serializeAws_restJson1TypedAttributeValue(input.EndValue, context) }),
6931
+ ...(input.StartMode != null && { StartMode: input.StartMode }),
6932
+ ...(input.StartValue != null && {
7104
6933
  StartValue: serializeAws_restJson1TypedAttributeValue(input.StartValue, context),
7105
6934
  }),
7106
6935
  };
7107
6936
  };
7108
6937
  const serializeAws_restJson1TypedLinkAttributeDefinition = (input, context) => {
7109
6938
  return {
7110
- ...(input.DefaultValue !== undefined &&
7111
- input.DefaultValue !== null && {
6939
+ ...(input.DefaultValue != null && {
7112
6940
  DefaultValue: serializeAws_restJson1TypedAttributeValue(input.DefaultValue, context),
7113
6941
  }),
7114
- ...(input.IsImmutable !== undefined && input.IsImmutable !== null && { IsImmutable: input.IsImmutable }),
7115
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
7116
- ...(input.RequiredBehavior !== undefined &&
7117
- input.RequiredBehavior !== null && { RequiredBehavior: input.RequiredBehavior }),
7118
- ...(input.Rules !== undefined &&
7119
- input.Rules !== null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) }),
7120
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
6942
+ ...(input.IsImmutable != null && { IsImmutable: input.IsImmutable }),
6943
+ ...(input.Name != null && { Name: input.Name }),
6944
+ ...(input.RequiredBehavior != null && { RequiredBehavior: input.RequiredBehavior }),
6945
+ ...(input.Rules != null && { Rules: serializeAws_restJson1RuleMap(input.Rules, context) }),
6946
+ ...(input.Type != null && { Type: input.Type }),
7121
6947
  };
7122
6948
  };
7123
6949
  const serializeAws_restJson1TypedLinkAttributeDefinitionList = (input, context) => {
@@ -7132,9 +6958,8 @@ const serializeAws_restJson1TypedLinkAttributeDefinitionList = (input, context)
7132
6958
  };
7133
6959
  const serializeAws_restJson1TypedLinkAttributeRange = (input, context) => {
7134
6960
  return {
7135
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
7136
- ...(input.Range !== undefined &&
7137
- input.Range !== null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }),
6961
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
6962
+ ...(input.Range != null && { Range: serializeAws_restJson1TypedAttributeValueRange(input.Range, context) }),
7138
6963
  };
7139
6964
  };
7140
6965
  const serializeAws_restJson1TypedLinkAttributeRangeList = (input, context) => {
@@ -7149,22 +6974,19 @@ const serializeAws_restJson1TypedLinkAttributeRangeList = (input, context) => {
7149
6974
  };
7150
6975
  const serializeAws_restJson1TypedLinkFacet = (input, context) => {
7151
6976
  return {
7152
- ...(input.Attributes !== undefined &&
7153
- input.Attributes !== null && {
6977
+ ...(input.Attributes != null && {
7154
6978
  Attributes: serializeAws_restJson1TypedLinkAttributeDefinitionList(input.Attributes, context),
7155
6979
  }),
7156
- ...(input.IdentityAttributeOrder !== undefined &&
7157
- input.IdentityAttributeOrder !== null && {
6980
+ ...(input.IdentityAttributeOrder != null && {
7158
6981
  IdentityAttributeOrder: serializeAws_restJson1AttributeNameList(input.IdentityAttributeOrder, context),
7159
6982
  }),
7160
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6983
+ ...(input.Name != null && { Name: input.Name }),
7161
6984
  };
7162
6985
  };
7163
6986
  const serializeAws_restJson1TypedLinkFacetAttributeUpdate = (input, context) => {
7164
6987
  return {
7165
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
7166
- ...(input.Attribute !== undefined &&
7167
- input.Attribute !== null && {
6988
+ ...(input.Action != null && { Action: input.Action }),
6989
+ ...(input.Attribute != null && {
7168
6990
  Attribute: serializeAws_restJson1TypedLinkAttributeDefinition(input.Attribute, context),
7169
6991
  }),
7170
6992
  };
@@ -7181,26 +7003,22 @@ const serializeAws_restJson1TypedLinkFacetAttributeUpdateList = (input, context)
7181
7003
  };
7182
7004
  const serializeAws_restJson1TypedLinkSchemaAndFacetName = (input, context) => {
7183
7005
  return {
7184
- ...(input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn }),
7185
- ...(input.TypedLinkName !== undefined && input.TypedLinkName !== null && { TypedLinkName: input.TypedLinkName }),
7006
+ ...(input.SchemaArn != null && { SchemaArn: input.SchemaArn }),
7007
+ ...(input.TypedLinkName != null && { TypedLinkName: input.TypedLinkName }),
7186
7008
  };
7187
7009
  };
7188
7010
  const serializeAws_restJson1TypedLinkSpecifier = (input, context) => {
7189
7011
  return {
7190
- ...(input.IdentityAttributeValues !== undefined &&
7191
- input.IdentityAttributeValues !== null && {
7012
+ ...(input.IdentityAttributeValues != null && {
7192
7013
  IdentityAttributeValues: serializeAws_restJson1AttributeNameAndValueList(input.IdentityAttributeValues, context),
7193
7014
  }),
7194
- ...(input.SourceObjectReference !== undefined &&
7195
- input.SourceObjectReference !== null && {
7015
+ ...(input.SourceObjectReference != null && {
7196
7016
  SourceObjectReference: serializeAws_restJson1ObjectReference(input.SourceObjectReference, context),
7197
7017
  }),
7198
- ...(input.TargetObjectReference !== undefined &&
7199
- input.TargetObjectReference !== null && {
7018
+ ...(input.TargetObjectReference != null && {
7200
7019
  TargetObjectReference: serializeAws_restJson1ObjectReference(input.TargetObjectReference, context),
7201
7020
  }),
7202
- ...(input.TypedLinkFacet !== undefined &&
7203
- input.TypedLinkFacet !== null && {
7021
+ ...(input.TypedLinkFacet != null && {
7204
7022
  TypedLinkFacet: serializeAws_restJson1TypedLinkSchemaAndFacetName(input.TypedLinkFacet, context),
7205
7023
  }),
7206
7024
  };
@@ -7225,10 +7043,8 @@ const deserializeAws_restJson1AttributeKey = (output, context) => {
7225
7043
  };
7226
7044
  const deserializeAws_restJson1AttributeKeyAndValue = (output, context) => {
7227
7045
  return {
7228
- Key: output.Key !== undefined && output.Key !== null
7229
- ? deserializeAws_restJson1AttributeKey(output.Key, context)
7230
- : undefined,
7231
- Value: output.Value !== undefined && output.Value !== null
7046
+ Key: output.Key != null ? deserializeAws_restJson1AttributeKey(output.Key, context) : undefined,
7047
+ Value: output.Value != null
7232
7048
  ? deserializeAws_restJson1TypedAttributeValue((0, smithy_client_1.expectUnion)(output.Value), context)
7233
7049
  : undefined,
7234
7050
  };
@@ -7247,7 +7063,7 @@ const deserializeAws_restJson1AttributeKeyAndValueList = (output, context) => {
7247
7063
  const deserializeAws_restJson1AttributeNameAndValue = (output, context) => {
7248
7064
  return {
7249
7065
  AttributeName: (0, smithy_client_1.expectString)(output.AttributeName),
7250
- Value: output.Value !== undefined && output.Value !== null
7066
+ Value: output.Value != null
7251
7067
  ? deserializeAws_restJson1TypedAttributeValue((0, smithy_client_1.expectUnion)(output.Value), context)
7252
7068
  : undefined,
7253
7069
  };
@@ -7292,7 +7108,7 @@ const deserializeAws_restJson1BatchAttachToIndexResponse = (output, context) =>
7292
7108
  };
7293
7109
  const deserializeAws_restJson1BatchAttachTypedLinkResponse = (output, context) => {
7294
7110
  return {
7295
- TypedLinkSpecifier: output.TypedLinkSpecifier !== undefined && output.TypedLinkSpecifier !== null
7111
+ TypedLinkSpecifier: output.TypedLinkSpecifier != null
7296
7112
  ? deserializeAws_restJson1TypedLinkSpecifier(output.TypedLinkSpecifier, context)
7297
7113
  : undefined,
7298
7114
  };
@@ -7328,14 +7144,14 @@ const deserializeAws_restJson1BatchDetachTypedLinkResponse = (output, context) =
7328
7144
  };
7329
7145
  const deserializeAws_restJson1BatchGetLinkAttributesResponse = (output, context) => {
7330
7146
  return {
7331
- Attributes: output.Attributes !== undefined && output.Attributes !== null
7147
+ Attributes: output.Attributes != null
7332
7148
  ? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
7333
7149
  : undefined,
7334
7150
  };
7335
7151
  };
7336
7152
  const deserializeAws_restJson1BatchGetObjectAttributesResponse = (output, context) => {
7337
7153
  return {
7338
- Attributes: output.Attributes !== undefined && output.Attributes !== null
7154
+ Attributes: output.Attributes != null
7339
7155
  ? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
7340
7156
  : undefined,
7341
7157
  };
@@ -7343,14 +7159,12 @@ const deserializeAws_restJson1BatchGetObjectAttributesResponse = (output, contex
7343
7159
  const deserializeAws_restJson1BatchGetObjectInformationResponse = (output, context) => {
7344
7160
  return {
7345
7161
  ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
7346
- SchemaFacets: output.SchemaFacets !== undefined && output.SchemaFacets !== null
7347
- ? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context)
7348
- : undefined,
7162
+ SchemaFacets: output.SchemaFacets != null ? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context) : undefined,
7349
7163
  };
7350
7164
  };
7351
7165
  const deserializeAws_restJson1BatchListAttachedIndicesResponse = (output, context) => {
7352
7166
  return {
7353
- IndexAttachments: output.IndexAttachments !== undefined && output.IndexAttachments !== null
7167
+ IndexAttachments: output.IndexAttachments != null
7354
7168
  ? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
7355
7169
  : undefined,
7356
7170
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -7358,7 +7172,7 @@ const deserializeAws_restJson1BatchListAttachedIndicesResponse = (output, contex
7358
7172
  };
7359
7173
  const deserializeAws_restJson1BatchListIncomingTypedLinksResponse = (output, context) => {
7360
7174
  return {
7361
- LinkSpecifiers: output.LinkSpecifiers !== undefined && output.LinkSpecifiers !== null
7175
+ LinkSpecifiers: output.LinkSpecifiers != null
7362
7176
  ? deserializeAws_restJson1TypedLinkSpecifierList(output.LinkSpecifiers, context)
7363
7177
  : undefined,
7364
7178
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -7366,7 +7180,7 @@ const deserializeAws_restJson1BatchListIncomingTypedLinksResponse = (output, con
7366
7180
  };
7367
7181
  const deserializeAws_restJson1BatchListIndexResponse = (output, context) => {
7368
7182
  return {
7369
- IndexAttachments: output.IndexAttachments !== undefined && output.IndexAttachments !== null
7183
+ IndexAttachments: output.IndexAttachments != null
7370
7184
  ? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
7371
7185
  : undefined,
7372
7186
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -7374,7 +7188,7 @@ const deserializeAws_restJson1BatchListIndexResponse = (output, context) => {
7374
7188
  };
7375
7189
  const deserializeAws_restJson1BatchListObjectAttributesResponse = (output, context) => {
7376
7190
  return {
7377
- Attributes: output.Attributes !== undefined && output.Attributes !== null
7191
+ Attributes: output.Attributes != null
7378
7192
  ? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
7379
7193
  : undefined,
7380
7194
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -7382,7 +7196,7 @@ const deserializeAws_restJson1BatchListObjectAttributesResponse = (output, conte
7382
7196
  };
7383
7197
  const deserializeAws_restJson1BatchListObjectChildrenResponse = (output, context) => {
7384
7198
  return {
7385
- Children: output.Children !== undefined && output.Children !== null
7199
+ Children: output.Children != null
7386
7200
  ? deserializeAws_restJson1LinkNameToObjectIdentifierMap(output.Children, context)
7387
7201
  : undefined,
7388
7202
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -7391,7 +7205,7 @@ const deserializeAws_restJson1BatchListObjectChildrenResponse = (output, context
7391
7205
  const deserializeAws_restJson1BatchListObjectParentPathsResponse = (output, context) => {
7392
7206
  return {
7393
7207
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
7394
- PathToObjectIdentifiersList: output.PathToObjectIdentifiersList !== undefined && output.PathToObjectIdentifiersList !== null
7208
+ PathToObjectIdentifiersList: output.PathToObjectIdentifiersList != null
7395
7209
  ? deserializeAws_restJson1PathToObjectIdentifiersList(output.PathToObjectIdentifiersList, context)
7396
7210
  : undefined,
7397
7211
  };
@@ -7399,14 +7213,14 @@ const deserializeAws_restJson1BatchListObjectParentPathsResponse = (output, cont
7399
7213
  const deserializeAws_restJson1BatchListObjectParentsResponse = (output, context) => {
7400
7214
  return {
7401
7215
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
7402
- ParentLinks: output.ParentLinks !== undefined && output.ParentLinks !== null
7216
+ ParentLinks: output.ParentLinks != null
7403
7217
  ? deserializeAws_restJson1ObjectIdentifierAndLinkNameList(output.ParentLinks, context)
7404
7218
  : undefined,
7405
7219
  };
7406
7220
  };
7407
7221
  const deserializeAws_restJson1BatchListObjectPoliciesResponse = (output, context) => {
7408
7222
  return {
7409
- AttachedPolicyIds: output.AttachedPolicyIds !== undefined && output.AttachedPolicyIds !== null
7223
+ AttachedPolicyIds: output.AttachedPolicyIds != null
7410
7224
  ? deserializeAws_restJson1ObjectIdentifierList(output.AttachedPolicyIds, context)
7411
7225
  : undefined,
7412
7226
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -7415,7 +7229,7 @@ const deserializeAws_restJson1BatchListObjectPoliciesResponse = (output, context
7415
7229
  const deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = (output, context) => {
7416
7230
  return {
7417
7231
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
7418
- TypedLinkSpecifiers: output.TypedLinkSpecifiers !== undefined && output.TypedLinkSpecifiers !== null
7232
+ TypedLinkSpecifiers: output.TypedLinkSpecifiers != null
7419
7233
  ? deserializeAws_restJson1TypedLinkSpecifierList(output.TypedLinkSpecifiers, context)
7420
7234
  : undefined,
7421
7235
  };
@@ -7423,7 +7237,7 @@ const deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = (output, con
7423
7237
  const deserializeAws_restJson1BatchListPolicyAttachmentsResponse = (output, context) => {
7424
7238
  return {
7425
7239
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
7426
- ObjectIdentifiers: output.ObjectIdentifiers !== undefined && output.ObjectIdentifiers !== null
7240
+ ObjectIdentifiers: output.ObjectIdentifiers != null
7427
7241
  ? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
7428
7242
  : undefined,
7429
7243
  };
@@ -7431,7 +7245,7 @@ const deserializeAws_restJson1BatchListPolicyAttachmentsResponse = (output, cont
7431
7245
  const deserializeAws_restJson1BatchLookupPolicyResponse = (output, context) => {
7432
7246
  return {
7433
7247
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
7434
- PolicyToPathList: output.PolicyToPathList !== undefined && output.PolicyToPathList !== null
7248
+ PolicyToPathList: output.PolicyToPathList != null
7435
7249
  ? deserializeAws_restJson1PolicyToPathList(output.PolicyToPathList, context)
7436
7250
  : undefined,
7437
7251
  };
@@ -7444,10 +7258,10 @@ const deserializeAws_restJson1BatchReadException = (output, context) => {
7444
7258
  };
7445
7259
  const deserializeAws_restJson1BatchReadOperationResponse = (output, context) => {
7446
7260
  return {
7447
- ExceptionResponse: output.ExceptionResponse !== undefined && output.ExceptionResponse !== null
7261
+ ExceptionResponse: output.ExceptionResponse != null
7448
7262
  ? deserializeAws_restJson1BatchReadException(output.ExceptionResponse, context)
7449
7263
  : undefined,
7450
- SuccessfulResponse: output.SuccessfulResponse !== undefined && output.SuccessfulResponse !== null
7264
+ SuccessfulResponse: output.SuccessfulResponse != null
7451
7265
  ? deserializeAws_restJson1BatchReadSuccessfulResponse(output.SuccessfulResponse, context)
7452
7266
  : undefined,
7453
7267
  };
@@ -7465,46 +7279,44 @@ const deserializeAws_restJson1BatchReadOperationResponseList = (output, context)
7465
7279
  };
7466
7280
  const deserializeAws_restJson1BatchReadSuccessfulResponse = (output, context) => {
7467
7281
  return {
7468
- GetLinkAttributes: output.GetLinkAttributes !== undefined && output.GetLinkAttributes !== null
7282
+ GetLinkAttributes: output.GetLinkAttributes != null
7469
7283
  ? deserializeAws_restJson1BatchGetLinkAttributesResponse(output.GetLinkAttributes, context)
7470
7284
  : undefined,
7471
- GetObjectAttributes: output.GetObjectAttributes !== undefined && output.GetObjectAttributes !== null
7285
+ GetObjectAttributes: output.GetObjectAttributes != null
7472
7286
  ? deserializeAws_restJson1BatchGetObjectAttributesResponse(output.GetObjectAttributes, context)
7473
7287
  : undefined,
7474
- GetObjectInformation: output.GetObjectInformation !== undefined && output.GetObjectInformation !== null
7288
+ GetObjectInformation: output.GetObjectInformation != null
7475
7289
  ? deserializeAws_restJson1BatchGetObjectInformationResponse(output.GetObjectInformation, context)
7476
7290
  : undefined,
7477
- ListAttachedIndices: output.ListAttachedIndices !== undefined && output.ListAttachedIndices !== null
7291
+ ListAttachedIndices: output.ListAttachedIndices != null
7478
7292
  ? deserializeAws_restJson1BatchListAttachedIndicesResponse(output.ListAttachedIndices, context)
7479
7293
  : undefined,
7480
- ListIncomingTypedLinks: output.ListIncomingTypedLinks !== undefined && output.ListIncomingTypedLinks !== null
7294
+ ListIncomingTypedLinks: output.ListIncomingTypedLinks != null
7481
7295
  ? deserializeAws_restJson1BatchListIncomingTypedLinksResponse(output.ListIncomingTypedLinks, context)
7482
7296
  : undefined,
7483
- ListIndex: output.ListIndex !== undefined && output.ListIndex !== null
7484
- ? deserializeAws_restJson1BatchListIndexResponse(output.ListIndex, context)
7485
- : undefined,
7486
- ListObjectAttributes: output.ListObjectAttributes !== undefined && output.ListObjectAttributes !== null
7297
+ ListIndex: output.ListIndex != null ? deserializeAws_restJson1BatchListIndexResponse(output.ListIndex, context) : undefined,
7298
+ ListObjectAttributes: output.ListObjectAttributes != null
7487
7299
  ? deserializeAws_restJson1BatchListObjectAttributesResponse(output.ListObjectAttributes, context)
7488
7300
  : undefined,
7489
- ListObjectChildren: output.ListObjectChildren !== undefined && output.ListObjectChildren !== null
7301
+ ListObjectChildren: output.ListObjectChildren != null
7490
7302
  ? deserializeAws_restJson1BatchListObjectChildrenResponse(output.ListObjectChildren, context)
7491
7303
  : undefined,
7492
- ListObjectParentPaths: output.ListObjectParentPaths !== undefined && output.ListObjectParentPaths !== null
7304
+ ListObjectParentPaths: output.ListObjectParentPaths != null
7493
7305
  ? deserializeAws_restJson1BatchListObjectParentPathsResponse(output.ListObjectParentPaths, context)
7494
7306
  : undefined,
7495
- ListObjectParents: output.ListObjectParents !== undefined && output.ListObjectParents !== null
7307
+ ListObjectParents: output.ListObjectParents != null
7496
7308
  ? deserializeAws_restJson1BatchListObjectParentsResponse(output.ListObjectParents, context)
7497
7309
  : undefined,
7498
- ListObjectPolicies: output.ListObjectPolicies !== undefined && output.ListObjectPolicies !== null
7310
+ ListObjectPolicies: output.ListObjectPolicies != null
7499
7311
  ? deserializeAws_restJson1BatchListObjectPoliciesResponse(output.ListObjectPolicies, context)
7500
7312
  : undefined,
7501
- ListOutgoingTypedLinks: output.ListOutgoingTypedLinks !== undefined && output.ListOutgoingTypedLinks !== null
7313
+ ListOutgoingTypedLinks: output.ListOutgoingTypedLinks != null
7502
7314
  ? deserializeAws_restJson1BatchListOutgoingTypedLinksResponse(output.ListOutgoingTypedLinks, context)
7503
7315
  : undefined,
7504
- ListPolicyAttachments: output.ListPolicyAttachments !== undefined && output.ListPolicyAttachments !== null
7316
+ ListPolicyAttachments: output.ListPolicyAttachments != null
7505
7317
  ? deserializeAws_restJson1BatchListPolicyAttachmentsResponse(output.ListPolicyAttachments, context)
7506
7318
  : undefined,
7507
- LookupPolicy: output.LookupPolicy !== undefined && output.LookupPolicy !== null
7319
+ LookupPolicy: output.LookupPolicy != null
7508
7320
  ? deserializeAws_restJson1BatchLookupPolicyResponse(output.LookupPolicy, context)
7509
7321
  : undefined,
7510
7322
  };
@@ -7522,49 +7334,49 @@ const deserializeAws_restJson1BatchUpdateObjectAttributesResponse = (output, con
7522
7334
  };
7523
7335
  const deserializeAws_restJson1BatchWriteOperationResponse = (output, context) => {
7524
7336
  return {
7525
- AddFacetToObject: output.AddFacetToObject !== undefined && output.AddFacetToObject !== null
7337
+ AddFacetToObject: output.AddFacetToObject != null
7526
7338
  ? deserializeAws_restJson1BatchAddFacetToObjectResponse(output.AddFacetToObject, context)
7527
7339
  : undefined,
7528
- AttachObject: output.AttachObject !== undefined && output.AttachObject !== null
7340
+ AttachObject: output.AttachObject != null
7529
7341
  ? deserializeAws_restJson1BatchAttachObjectResponse(output.AttachObject, context)
7530
7342
  : undefined,
7531
- AttachPolicy: output.AttachPolicy !== undefined && output.AttachPolicy !== null
7343
+ AttachPolicy: output.AttachPolicy != null
7532
7344
  ? deserializeAws_restJson1BatchAttachPolicyResponse(output.AttachPolicy, context)
7533
7345
  : undefined,
7534
- AttachToIndex: output.AttachToIndex !== undefined && output.AttachToIndex !== null
7346
+ AttachToIndex: output.AttachToIndex != null
7535
7347
  ? deserializeAws_restJson1BatchAttachToIndexResponse(output.AttachToIndex, context)
7536
7348
  : undefined,
7537
- AttachTypedLink: output.AttachTypedLink !== undefined && output.AttachTypedLink !== null
7349
+ AttachTypedLink: output.AttachTypedLink != null
7538
7350
  ? deserializeAws_restJson1BatchAttachTypedLinkResponse(output.AttachTypedLink, context)
7539
7351
  : undefined,
7540
- CreateIndex: output.CreateIndex !== undefined && output.CreateIndex !== null
7352
+ CreateIndex: output.CreateIndex != null
7541
7353
  ? deserializeAws_restJson1BatchCreateIndexResponse(output.CreateIndex, context)
7542
7354
  : undefined,
7543
- CreateObject: output.CreateObject !== undefined && output.CreateObject !== null
7355
+ CreateObject: output.CreateObject != null
7544
7356
  ? deserializeAws_restJson1BatchCreateObjectResponse(output.CreateObject, context)
7545
7357
  : undefined,
7546
- DeleteObject: output.DeleteObject !== undefined && output.DeleteObject !== null
7358
+ DeleteObject: output.DeleteObject != null
7547
7359
  ? deserializeAws_restJson1BatchDeleteObjectResponse(output.DeleteObject, context)
7548
7360
  : undefined,
7549
- DetachFromIndex: output.DetachFromIndex !== undefined && output.DetachFromIndex !== null
7361
+ DetachFromIndex: output.DetachFromIndex != null
7550
7362
  ? deserializeAws_restJson1BatchDetachFromIndexResponse(output.DetachFromIndex, context)
7551
7363
  : undefined,
7552
- DetachObject: output.DetachObject !== undefined && output.DetachObject !== null
7364
+ DetachObject: output.DetachObject != null
7553
7365
  ? deserializeAws_restJson1BatchDetachObjectResponse(output.DetachObject, context)
7554
7366
  : undefined,
7555
- DetachPolicy: output.DetachPolicy !== undefined && output.DetachPolicy !== null
7367
+ DetachPolicy: output.DetachPolicy != null
7556
7368
  ? deserializeAws_restJson1BatchDetachPolicyResponse(output.DetachPolicy, context)
7557
7369
  : undefined,
7558
- DetachTypedLink: output.DetachTypedLink !== undefined && output.DetachTypedLink !== null
7370
+ DetachTypedLink: output.DetachTypedLink != null
7559
7371
  ? deserializeAws_restJson1BatchDetachTypedLinkResponse(output.DetachTypedLink, context)
7560
7372
  : undefined,
7561
- RemoveFacetFromObject: output.RemoveFacetFromObject !== undefined && output.RemoveFacetFromObject !== null
7373
+ RemoveFacetFromObject: output.RemoveFacetFromObject != null
7562
7374
  ? deserializeAws_restJson1BatchRemoveFacetFromObjectResponse(output.RemoveFacetFromObject, context)
7563
7375
  : undefined,
7564
- UpdateLinkAttributes: output.UpdateLinkAttributes !== undefined && output.UpdateLinkAttributes !== null
7376
+ UpdateLinkAttributes: output.UpdateLinkAttributes != null
7565
7377
  ? deserializeAws_restJson1BatchUpdateLinkAttributesResponse(output.UpdateLinkAttributes, context)
7566
7378
  : undefined,
7567
- UpdateObjectAttributes: output.UpdateObjectAttributes !== undefined && output.UpdateObjectAttributes !== null
7379
+ UpdateObjectAttributes: output.UpdateObjectAttributes != null
7568
7380
  ? deserializeAws_restJson1BatchUpdateObjectAttributesResponse(output.UpdateObjectAttributes, context)
7569
7381
  : undefined,
7570
7382
  };
@@ -7582,7 +7394,7 @@ const deserializeAws_restJson1BatchWriteOperationResponseList = (output, context
7582
7394
  };
7583
7395
  const deserializeAws_restJson1Directory = (output, context) => {
7584
7396
  return {
7585
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
7397
+ CreationDateTime: output.CreationDateTime != null
7586
7398
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
7587
7399
  : undefined,
7588
7400
  DirectoryArn: (0, smithy_client_1.expectString)(output.DirectoryArn),
@@ -7610,10 +7422,10 @@ const deserializeAws_restJson1Facet = (output, context) => {
7610
7422
  };
7611
7423
  const deserializeAws_restJson1FacetAttribute = (output, context) => {
7612
7424
  return {
7613
- AttributeDefinition: output.AttributeDefinition !== undefined && output.AttributeDefinition !== null
7425
+ AttributeDefinition: output.AttributeDefinition != null
7614
7426
  ? deserializeAws_restJson1FacetAttributeDefinition(output.AttributeDefinition, context)
7615
7427
  : undefined,
7616
- AttributeReference: output.AttributeReference !== undefined && output.AttributeReference !== null
7428
+ AttributeReference: output.AttributeReference != null
7617
7429
  ? deserializeAws_restJson1FacetAttributeReference(output.AttributeReference, context)
7618
7430
  : undefined,
7619
7431
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -7622,13 +7434,11 @@ const deserializeAws_restJson1FacetAttribute = (output, context) => {
7622
7434
  };
7623
7435
  const deserializeAws_restJson1FacetAttributeDefinition = (output, context) => {
7624
7436
  return {
7625
- DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
7437
+ DefaultValue: output.DefaultValue != null
7626
7438
  ? deserializeAws_restJson1TypedAttributeValue((0, smithy_client_1.expectUnion)(output.DefaultValue), context)
7627
7439
  : undefined,
7628
7440
  IsImmutable: (0, smithy_client_1.expectBoolean)(output.IsImmutable),
7629
- Rules: output.Rules !== undefined && output.Rules !== null
7630
- ? deserializeAws_restJson1RuleMap(output.Rules, context)
7631
- : undefined,
7441
+ Rules: output.Rules != null ? deserializeAws_restJson1RuleMap(output.Rules, context) : undefined,
7632
7442
  Type: (0, smithy_client_1.expectString)(output.Type),
7633
7443
  };
7634
7444
  };
@@ -7662,7 +7472,7 @@ const deserializeAws_restJson1FacetNameList = (output, context) => {
7662
7472
  };
7663
7473
  const deserializeAws_restJson1IndexAttachment = (output, context) => {
7664
7474
  return {
7665
- IndexedAttributes: output.IndexedAttributes !== undefined && output.IndexedAttributes !== null
7475
+ IndexedAttributes: output.IndexedAttributes != null
7666
7476
  ? deserializeAws_restJson1AttributeKeyAndValueList(output.IndexedAttributes, context)
7667
7477
  : undefined,
7668
7478
  ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
@@ -7736,7 +7546,7 @@ const deserializeAws_restJson1ObjectReference = (output, context) => {
7736
7546
  };
7737
7547
  const deserializeAws_restJson1PathToObjectIdentifiers = (output, context) => {
7738
7548
  return {
7739
- ObjectIdentifiers: output.ObjectIdentifiers !== undefined && output.ObjectIdentifiers !== null
7549
+ ObjectIdentifiers: output.ObjectIdentifiers != null
7740
7550
  ? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
7741
7551
  : undefined,
7742
7552
  Path: (0, smithy_client_1.expectString)(output.Path),
@@ -7774,9 +7584,7 @@ const deserializeAws_restJson1PolicyAttachmentList = (output, context) => {
7774
7584
  const deserializeAws_restJson1PolicyToPath = (output, context) => {
7775
7585
  return {
7776
7586
  Path: (0, smithy_client_1.expectString)(output.Path),
7777
- Policies: output.Policies !== undefined && output.Policies !== null
7778
- ? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context)
7779
- : undefined,
7587
+ Policies: output.Policies != null ? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context) : undefined,
7780
7588
  };
7781
7589
  };
7782
7590
  const deserializeAws_restJson1PolicyToPathList = (output, context) => {
@@ -7792,9 +7600,7 @@ const deserializeAws_restJson1PolicyToPathList = (output, context) => {
7792
7600
  };
7793
7601
  const deserializeAws_restJson1Rule = (output, context) => {
7794
7602
  return {
7795
- Parameters: output.Parameters !== undefined && output.Parameters !== null
7796
- ? deserializeAws_restJson1RuleParameterMap(output.Parameters, context)
7797
- : undefined,
7603
+ Parameters: output.Parameters != null ? deserializeAws_restJson1RuleParameterMap(output.Parameters, context) : undefined,
7798
7604
  Type: (0, smithy_client_1.expectString)(output.Type),
7799
7605
  };
7800
7606
  };
@@ -7878,15 +7684,13 @@ const deserializeAws_restJson1TypedAttributeValue = (output, context) => {
7878
7684
  };
7879
7685
  const deserializeAws_restJson1TypedLinkAttributeDefinition = (output, context) => {
7880
7686
  return {
7881
- DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
7687
+ DefaultValue: output.DefaultValue != null
7882
7688
  ? deserializeAws_restJson1TypedAttributeValue((0, smithy_client_1.expectUnion)(output.DefaultValue), context)
7883
7689
  : undefined,
7884
7690
  IsImmutable: (0, smithy_client_1.expectBoolean)(output.IsImmutable),
7885
7691
  Name: (0, smithy_client_1.expectString)(output.Name),
7886
7692
  RequiredBehavior: (0, smithy_client_1.expectString)(output.RequiredBehavior),
7887
- Rules: output.Rules !== undefined && output.Rules !== null
7888
- ? deserializeAws_restJson1RuleMap(output.Rules, context)
7889
- : undefined,
7693
+ Rules: output.Rules != null ? deserializeAws_restJson1RuleMap(output.Rules, context) : undefined,
7890
7694
  Type: (0, smithy_client_1.expectString)(output.Type),
7891
7695
  };
7892
7696
  };
@@ -7920,16 +7724,16 @@ const deserializeAws_restJson1TypedLinkSchemaAndFacetName = (output, context) =>
7920
7724
  };
7921
7725
  const deserializeAws_restJson1TypedLinkSpecifier = (output, context) => {
7922
7726
  return {
7923
- IdentityAttributeValues: output.IdentityAttributeValues !== undefined && output.IdentityAttributeValues !== null
7727
+ IdentityAttributeValues: output.IdentityAttributeValues != null
7924
7728
  ? deserializeAws_restJson1AttributeNameAndValueList(output.IdentityAttributeValues, context)
7925
7729
  : undefined,
7926
- SourceObjectReference: output.SourceObjectReference !== undefined && output.SourceObjectReference !== null
7730
+ SourceObjectReference: output.SourceObjectReference != null
7927
7731
  ? deserializeAws_restJson1ObjectReference(output.SourceObjectReference, context)
7928
7732
  : undefined,
7929
- TargetObjectReference: output.TargetObjectReference !== undefined && output.TargetObjectReference !== null
7733
+ TargetObjectReference: output.TargetObjectReference != null
7930
7734
  ? deserializeAws_restJson1ObjectReference(output.TargetObjectReference, context)
7931
7735
  : undefined,
7932
- TypedLinkFacet: output.TypedLinkFacet !== undefined && output.TypedLinkFacet !== null
7736
+ TypedLinkFacet: output.TypedLinkFacet != null
7933
7737
  ? deserializeAws_restJson1TypedLinkSchemaAndFacetName(output.TypedLinkFacet, context)
7934
7738
  : undefined,
7935
7739
  };