@aws-sdk/client-clouddirectory 3.29.0 → 3.33.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.
Files changed (194) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/CloudDirectoryClient.js +13 -13
  3. package/dist/cjs/CloudDirectoryClient.js.map +1 -1
  4. package/dist/cjs/commands/AddFacetToObjectCommand.js +3 -3
  5. package/dist/cjs/commands/AddFacetToObjectCommand.js.map +1 -1
  6. package/dist/cjs/commands/ApplySchemaCommand.js +3 -3
  7. package/dist/cjs/commands/ApplySchemaCommand.js.map +1 -1
  8. package/dist/cjs/commands/AttachObjectCommand.js +3 -3
  9. package/dist/cjs/commands/AttachObjectCommand.js.map +1 -1
  10. package/dist/cjs/commands/AttachPolicyCommand.js +3 -3
  11. package/dist/cjs/commands/AttachPolicyCommand.js.map +1 -1
  12. package/dist/cjs/commands/AttachToIndexCommand.js +3 -3
  13. package/dist/cjs/commands/AttachToIndexCommand.js.map +1 -1
  14. package/dist/cjs/commands/AttachTypedLinkCommand.js +3 -3
  15. package/dist/cjs/commands/AttachTypedLinkCommand.js.map +1 -1
  16. package/dist/cjs/commands/BatchReadCommand.js +3 -3
  17. package/dist/cjs/commands/BatchReadCommand.js.map +1 -1
  18. package/dist/cjs/commands/BatchWriteCommand.js +3 -3
  19. package/dist/cjs/commands/BatchWriteCommand.js.map +1 -1
  20. package/dist/cjs/commands/CreateDirectoryCommand.js +3 -3
  21. package/dist/cjs/commands/CreateDirectoryCommand.js.map +1 -1
  22. package/dist/cjs/commands/CreateFacetCommand.js +3 -3
  23. package/dist/cjs/commands/CreateFacetCommand.js.map +1 -1
  24. package/dist/cjs/commands/CreateIndexCommand.js +3 -3
  25. package/dist/cjs/commands/CreateIndexCommand.js.map +1 -1
  26. package/dist/cjs/commands/CreateObjectCommand.js +3 -3
  27. package/dist/cjs/commands/CreateObjectCommand.js.map +1 -1
  28. package/dist/cjs/commands/CreateSchemaCommand.js +3 -3
  29. package/dist/cjs/commands/CreateSchemaCommand.js.map +1 -1
  30. package/dist/cjs/commands/CreateTypedLinkFacetCommand.js +3 -3
  31. package/dist/cjs/commands/CreateTypedLinkFacetCommand.js.map +1 -1
  32. package/dist/cjs/commands/DeleteDirectoryCommand.js +3 -3
  33. package/dist/cjs/commands/DeleteDirectoryCommand.js.map +1 -1
  34. package/dist/cjs/commands/DeleteFacetCommand.js +3 -3
  35. package/dist/cjs/commands/DeleteFacetCommand.js.map +1 -1
  36. package/dist/cjs/commands/DeleteObjectCommand.js +3 -3
  37. package/dist/cjs/commands/DeleteObjectCommand.js.map +1 -1
  38. package/dist/cjs/commands/DeleteSchemaCommand.js +3 -3
  39. package/dist/cjs/commands/DeleteSchemaCommand.js.map +1 -1
  40. package/dist/cjs/commands/DeleteTypedLinkFacetCommand.js +3 -3
  41. package/dist/cjs/commands/DeleteTypedLinkFacetCommand.js.map +1 -1
  42. package/dist/cjs/commands/DetachFromIndexCommand.js +3 -3
  43. package/dist/cjs/commands/DetachFromIndexCommand.js.map +1 -1
  44. package/dist/cjs/commands/DetachObjectCommand.js +3 -3
  45. package/dist/cjs/commands/DetachObjectCommand.js.map +1 -1
  46. package/dist/cjs/commands/DetachPolicyCommand.js +3 -3
  47. package/dist/cjs/commands/DetachPolicyCommand.js.map +1 -1
  48. package/dist/cjs/commands/DetachTypedLinkCommand.js +3 -3
  49. package/dist/cjs/commands/DetachTypedLinkCommand.js.map +1 -1
  50. package/dist/cjs/commands/DisableDirectoryCommand.js +3 -3
  51. package/dist/cjs/commands/DisableDirectoryCommand.js.map +1 -1
  52. package/dist/cjs/commands/EnableDirectoryCommand.js +3 -3
  53. package/dist/cjs/commands/EnableDirectoryCommand.js.map +1 -1
  54. package/dist/cjs/commands/GetAppliedSchemaVersionCommand.js +3 -3
  55. package/dist/cjs/commands/GetAppliedSchemaVersionCommand.js.map +1 -1
  56. package/dist/cjs/commands/GetDirectoryCommand.js +3 -3
  57. package/dist/cjs/commands/GetDirectoryCommand.js.map +1 -1
  58. package/dist/cjs/commands/GetFacetCommand.js +3 -3
  59. package/dist/cjs/commands/GetFacetCommand.js.map +1 -1
  60. package/dist/cjs/commands/GetLinkAttributesCommand.js +3 -3
  61. package/dist/cjs/commands/GetLinkAttributesCommand.js.map +1 -1
  62. package/dist/cjs/commands/GetObjectAttributesCommand.js +3 -3
  63. package/dist/cjs/commands/GetObjectAttributesCommand.js.map +1 -1
  64. package/dist/cjs/commands/GetObjectInformationCommand.js +3 -3
  65. package/dist/cjs/commands/GetObjectInformationCommand.js.map +1 -1
  66. package/dist/cjs/commands/GetSchemaAsJsonCommand.js +3 -3
  67. package/dist/cjs/commands/GetSchemaAsJsonCommand.js.map +1 -1
  68. package/dist/cjs/commands/GetTypedLinkFacetInformationCommand.js +3 -3
  69. package/dist/cjs/commands/GetTypedLinkFacetInformationCommand.js.map +1 -1
  70. package/dist/cjs/commands/ListAppliedSchemaArnsCommand.js +3 -3
  71. package/dist/cjs/commands/ListAppliedSchemaArnsCommand.js.map +1 -1
  72. package/dist/cjs/commands/ListAttachedIndicesCommand.js +3 -3
  73. package/dist/cjs/commands/ListAttachedIndicesCommand.js.map +1 -1
  74. package/dist/cjs/commands/ListDevelopmentSchemaArnsCommand.js +3 -3
  75. package/dist/cjs/commands/ListDevelopmentSchemaArnsCommand.js.map +1 -1
  76. package/dist/cjs/commands/ListDirectoriesCommand.js +3 -3
  77. package/dist/cjs/commands/ListDirectoriesCommand.js.map +1 -1
  78. package/dist/cjs/commands/ListFacetAttributesCommand.js +3 -3
  79. package/dist/cjs/commands/ListFacetAttributesCommand.js.map +1 -1
  80. package/dist/cjs/commands/ListFacetNamesCommand.js +3 -3
  81. package/dist/cjs/commands/ListFacetNamesCommand.js.map +1 -1
  82. package/dist/cjs/commands/ListIncomingTypedLinksCommand.js +3 -3
  83. package/dist/cjs/commands/ListIncomingTypedLinksCommand.js.map +1 -1
  84. package/dist/cjs/commands/ListIndexCommand.js +3 -3
  85. package/dist/cjs/commands/ListIndexCommand.js.map +1 -1
  86. package/dist/cjs/commands/ListManagedSchemaArnsCommand.js +3 -3
  87. package/dist/cjs/commands/ListManagedSchemaArnsCommand.js.map +1 -1
  88. package/dist/cjs/commands/ListObjectAttributesCommand.js +3 -3
  89. package/dist/cjs/commands/ListObjectAttributesCommand.js.map +1 -1
  90. package/dist/cjs/commands/ListObjectChildrenCommand.js +3 -3
  91. package/dist/cjs/commands/ListObjectChildrenCommand.js.map +1 -1
  92. package/dist/cjs/commands/ListObjectParentPathsCommand.js +3 -3
  93. package/dist/cjs/commands/ListObjectParentPathsCommand.js.map +1 -1
  94. package/dist/cjs/commands/ListObjectParentsCommand.js +3 -3
  95. package/dist/cjs/commands/ListObjectParentsCommand.js.map +1 -1
  96. package/dist/cjs/commands/ListObjectPoliciesCommand.js +3 -3
  97. package/dist/cjs/commands/ListObjectPoliciesCommand.js.map +1 -1
  98. package/dist/cjs/commands/ListOutgoingTypedLinksCommand.js +3 -3
  99. package/dist/cjs/commands/ListOutgoingTypedLinksCommand.js.map +1 -1
  100. package/dist/cjs/commands/ListPolicyAttachmentsCommand.js +3 -3
  101. package/dist/cjs/commands/ListPolicyAttachmentsCommand.js.map +1 -1
  102. package/dist/cjs/commands/ListPublishedSchemaArnsCommand.js +3 -3
  103. package/dist/cjs/commands/ListPublishedSchemaArnsCommand.js.map +1 -1
  104. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  105. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  106. package/dist/cjs/commands/ListTypedLinkFacetAttributesCommand.js +3 -3
  107. package/dist/cjs/commands/ListTypedLinkFacetAttributesCommand.js.map +1 -1
  108. package/dist/cjs/commands/ListTypedLinkFacetNamesCommand.js +3 -3
  109. package/dist/cjs/commands/ListTypedLinkFacetNamesCommand.js.map +1 -1
  110. package/dist/cjs/commands/LookupPolicyCommand.js +3 -3
  111. package/dist/cjs/commands/LookupPolicyCommand.js.map +1 -1
  112. package/dist/cjs/commands/PublishSchemaCommand.js +3 -3
  113. package/dist/cjs/commands/PublishSchemaCommand.js.map +1 -1
  114. package/dist/cjs/commands/PutSchemaFromJsonCommand.js +3 -3
  115. package/dist/cjs/commands/PutSchemaFromJsonCommand.js.map +1 -1
  116. package/dist/cjs/commands/RemoveFacetFromObjectCommand.js +3 -3
  117. package/dist/cjs/commands/RemoveFacetFromObjectCommand.js.map +1 -1
  118. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  119. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  120. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  121. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  122. package/dist/cjs/commands/UpdateFacetCommand.js +3 -3
  123. package/dist/cjs/commands/UpdateFacetCommand.js.map +1 -1
  124. package/dist/cjs/commands/UpdateLinkAttributesCommand.js +3 -3
  125. package/dist/cjs/commands/UpdateLinkAttributesCommand.js.map +1 -1
  126. package/dist/cjs/commands/UpdateObjectAttributesCommand.js +3 -3
  127. package/dist/cjs/commands/UpdateObjectAttributesCommand.js.map +1 -1
  128. package/dist/cjs/commands/UpdateSchemaCommand.js +3 -3
  129. package/dist/cjs/commands/UpdateSchemaCommand.js.map +1 -1
  130. package/dist/cjs/commands/UpdateTypedLinkFacetCommand.js +3 -3
  131. package/dist/cjs/commands/UpdateTypedLinkFacetCommand.js.map +1 -1
  132. package/dist/cjs/commands/UpgradeAppliedSchemaCommand.js +3 -3
  133. package/dist/cjs/commands/UpgradeAppliedSchemaCommand.js.map +1 -1
  134. package/dist/cjs/commands/UpgradePublishedSchemaCommand.js +3 -3
  135. package/dist/cjs/commands/UpgradePublishedSchemaCommand.js.map +1 -1
  136. package/dist/cjs/endpoints.js +1 -1
  137. package/dist/cjs/endpoints.js.map +1 -1
  138. package/dist/cjs/index.js +89 -89
  139. package/dist/cjs/index.js.map +1 -1
  140. package/dist/cjs/models/index.js +1 -1
  141. package/dist/cjs/models/index.js.map +1 -1
  142. package/dist/cjs/package.json +31 -31
  143. package/dist/cjs/protocols/Aws_restJson1.js +214 -214
  144. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  145. package/dist/cjs/runtimeConfig.browser.js +4 -4
  146. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  147. package/dist/cjs/runtimeConfig.js +8 -8
  148. package/dist/cjs/runtimeConfig.js.map +1 -1
  149. package/dist/cjs/runtimeConfig.native.js +1 -1
  150. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  151. package/dist/es/package.json +31 -31
  152. package/dist/es/pagination/ListAppliedSchemaArnsPaginator.js +4 -4
  153. package/dist/es/pagination/ListAppliedSchemaArnsPaginator.js.map +1 -1
  154. package/dist/es/pagination/ListAttachedIndicesPaginator.js +4 -4
  155. package/dist/es/pagination/ListAttachedIndicesPaginator.js.map +1 -1
  156. package/dist/es/pagination/ListDevelopmentSchemaArnsPaginator.js +4 -4
  157. package/dist/es/pagination/ListDevelopmentSchemaArnsPaginator.js.map +1 -1
  158. package/dist/es/pagination/ListDirectoriesPaginator.js +4 -4
  159. package/dist/es/pagination/ListDirectoriesPaginator.js.map +1 -1
  160. package/dist/es/pagination/ListFacetAttributesPaginator.js +4 -4
  161. package/dist/es/pagination/ListFacetAttributesPaginator.js.map +1 -1
  162. package/dist/es/pagination/ListFacetNamesPaginator.js +4 -4
  163. package/dist/es/pagination/ListFacetNamesPaginator.js.map +1 -1
  164. package/dist/es/pagination/ListIndexPaginator.js +4 -4
  165. package/dist/es/pagination/ListIndexPaginator.js.map +1 -1
  166. package/dist/es/pagination/ListManagedSchemaArnsPaginator.js +4 -4
  167. package/dist/es/pagination/ListManagedSchemaArnsPaginator.js.map +1 -1
  168. package/dist/es/pagination/ListObjectAttributesPaginator.js +4 -4
  169. package/dist/es/pagination/ListObjectAttributesPaginator.js.map +1 -1
  170. package/dist/es/pagination/ListObjectChildrenPaginator.js +4 -4
  171. package/dist/es/pagination/ListObjectChildrenPaginator.js.map +1 -1
  172. package/dist/es/pagination/ListObjectParentPathsPaginator.js +4 -4
  173. package/dist/es/pagination/ListObjectParentPathsPaginator.js.map +1 -1
  174. package/dist/es/pagination/ListObjectParentsPaginator.js +4 -4
  175. package/dist/es/pagination/ListObjectParentsPaginator.js.map +1 -1
  176. package/dist/es/pagination/ListObjectPoliciesPaginator.js +4 -4
  177. package/dist/es/pagination/ListObjectPoliciesPaginator.js.map +1 -1
  178. package/dist/es/pagination/ListPolicyAttachmentsPaginator.js +4 -4
  179. package/dist/es/pagination/ListPolicyAttachmentsPaginator.js.map +1 -1
  180. package/dist/es/pagination/ListPublishedSchemaArnsPaginator.js +4 -4
  181. package/dist/es/pagination/ListPublishedSchemaArnsPaginator.js.map +1 -1
  182. package/dist/es/pagination/ListTagsForResourcePaginator.js +4 -4
  183. package/dist/es/pagination/ListTagsForResourcePaginator.js.map +1 -1
  184. package/dist/es/pagination/ListTypedLinkFacetAttributesPaginator.js +4 -4
  185. package/dist/es/pagination/ListTypedLinkFacetAttributesPaginator.js.map +1 -1
  186. package/dist/es/pagination/ListTypedLinkFacetNamesPaginator.js +4 -4
  187. package/dist/es/pagination/ListTypedLinkFacetNamesPaginator.js.map +1 -1
  188. package/dist/es/pagination/LookupPolicyPaginator.js +4 -4
  189. package/dist/es/pagination/LookupPolicyPaginator.js.map +1 -1
  190. package/dist/es/protocols/Aws_restJson1.js +7 -7
  191. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  192. package/package.json +31 -31
  193. package/protocols/Aws_restJson1.ts +9 -6
  194. package/tsconfig.json +1 -2
@@ -1881,12 +1881,12 @@ const deserializeAws_restJson1ApplySchemaCommand = async (output, context) => {
1881
1881
  AppliedSchemaArn: undefined,
1882
1882
  DirectoryArn: undefined,
1883
1883
  };
1884
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1884
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1885
1885
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
1886
- contents.AppliedSchemaArn = (0, smithy_client_1.expectString)(data.AppliedSchemaArn);
1886
+ contents.AppliedSchemaArn = smithy_client_1.expectString(data.AppliedSchemaArn);
1887
1887
  }
1888
1888
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
1889
- contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
1889
+ contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
1890
1890
  }
1891
1891
  return Promise.resolve(contents);
1892
1892
  };
@@ -1996,9 +1996,9 @@ const deserializeAws_restJson1AttachObjectCommand = async (output, context) => {
1996
1996
  $metadata: deserializeMetadata(output),
1997
1997
  AttachedObjectIdentifier: undefined,
1998
1998
  };
1999
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1999
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2000
2000
  if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
2001
- contents.AttachedObjectIdentifier = (0, smithy_client_1.expectString)(data.AttachedObjectIdentifier);
2001
+ contents.AttachedObjectIdentifier = smithy_client_1.expectString(data.AttachedObjectIdentifier);
2002
2002
  }
2003
2003
  return Promise.resolve(contents);
2004
2004
  };
@@ -2232,9 +2232,9 @@ const deserializeAws_restJson1AttachToIndexCommand = async (output, context) =>
2232
2232
  $metadata: deserializeMetadata(output),
2233
2233
  AttachedObjectIdentifier: undefined,
2234
2234
  };
2235
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2235
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2236
2236
  if (data.AttachedObjectIdentifier !== undefined && data.AttachedObjectIdentifier !== null) {
2237
- contents.AttachedObjectIdentifier = (0, smithy_client_1.expectString)(data.AttachedObjectIdentifier);
2237
+ contents.AttachedObjectIdentifier = smithy_client_1.expectString(data.AttachedObjectIdentifier);
2238
2238
  }
2239
2239
  return Promise.resolve(contents);
2240
2240
  };
@@ -2368,7 +2368,7 @@ const deserializeAws_restJson1AttachTypedLinkCommand = async (output, context) =
2368
2368
  $metadata: deserializeMetadata(output),
2369
2369
  TypedLinkSpecifier: undefined,
2370
2370
  };
2371
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2371
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2372
2372
  if (data.TypedLinkSpecifier !== undefined && data.TypedLinkSpecifier !== null) {
2373
2373
  contents.TypedLinkSpecifier = deserializeAws_restJson1TypedLinkSpecifier(data.TypedLinkSpecifier, context);
2374
2374
  }
@@ -2488,7 +2488,7 @@ const deserializeAws_restJson1BatchReadCommand = async (output, context) => {
2488
2488
  $metadata: deserializeMetadata(output),
2489
2489
  Responses: undefined,
2490
2490
  };
2491
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2491
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2492
2492
  if (data.Responses !== undefined && data.Responses !== null) {
2493
2493
  contents.Responses = deserializeAws_restJson1BatchReadOperationResponseList(data.Responses, context);
2494
2494
  }
@@ -2584,7 +2584,7 @@ const deserializeAws_restJson1BatchWriteCommand = async (output, context) => {
2584
2584
  $metadata: deserializeMetadata(output),
2585
2585
  Responses: undefined,
2586
2586
  };
2587
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2587
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2588
2588
  if (data.Responses !== undefined && data.Responses !== null) {
2589
2589
  contents.Responses = deserializeAws_restJson1BatchWriteOperationResponseList(data.Responses, context);
2590
2590
  }
@@ -2691,18 +2691,18 @@ const deserializeAws_restJson1CreateDirectoryCommand = async (output, context) =
2691
2691
  Name: undefined,
2692
2692
  ObjectIdentifier: undefined,
2693
2693
  };
2694
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2694
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2695
2695
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
2696
- contents.AppliedSchemaArn = (0, smithy_client_1.expectString)(data.AppliedSchemaArn);
2696
+ contents.AppliedSchemaArn = smithy_client_1.expectString(data.AppliedSchemaArn);
2697
2697
  }
2698
2698
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
2699
- contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
2699
+ contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
2700
2700
  }
2701
2701
  if (data.Name !== undefined && data.Name !== null) {
2702
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
2702
+ contents.Name = smithy_client_1.expectString(data.Name);
2703
2703
  }
2704
2704
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
2705
- contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
2705
+ contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
2706
2706
  }
2707
2707
  return Promise.resolve(contents);
2708
2708
  };
@@ -2920,9 +2920,9 @@ const deserializeAws_restJson1CreateIndexCommand = async (output, context) => {
2920
2920
  $metadata: deserializeMetadata(output),
2921
2921
  ObjectIdentifier: undefined,
2922
2922
  };
2923
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2923
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2924
2924
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
2925
- contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
2925
+ contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
2926
2926
  }
2927
2927
  return Promise.resolve(contents);
2928
2928
  };
@@ -3048,9 +3048,9 @@ const deserializeAws_restJson1CreateObjectCommand = async (output, context) => {
3048
3048
  $metadata: deserializeMetadata(output),
3049
3049
  ObjectIdentifier: undefined,
3050
3050
  };
3051
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3051
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3052
3052
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
3053
- contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
3053
+ contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
3054
3054
  }
3055
3055
  return Promise.resolve(contents);
3056
3056
  };
@@ -3176,9 +3176,9 @@ const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
3176
3176
  $metadata: deserializeMetadata(output),
3177
3177
  SchemaArn: undefined,
3178
3178
  };
3179
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3179
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3180
3180
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
3181
- contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
3181
+ contents.SchemaArn = smithy_client_1.expectString(data.SchemaArn);
3182
3182
  }
3183
3183
  return Promise.resolve(contents);
3184
3184
  };
@@ -3388,9 +3388,9 @@ const deserializeAws_restJson1DeleteDirectoryCommand = async (output, context) =
3388
3388
  $metadata: deserializeMetadata(output),
3389
3389
  DirectoryArn: undefined,
3390
3390
  };
3391
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3391
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3392
3392
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
3393
- contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
3393
+ contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
3394
3394
  }
3395
3395
  return Promise.resolve(contents);
3396
3396
  };
@@ -3716,9 +3716,9 @@ const deserializeAws_restJson1DeleteSchemaCommand = async (output, context) => {
3716
3716
  $metadata: deserializeMetadata(output),
3717
3717
  SchemaArn: undefined,
3718
3718
  };
3719
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3719
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3720
3720
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
3721
- contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
3721
+ contents.SchemaArn = smithy_client_1.expectString(data.SchemaArn);
3722
3722
  }
3723
3723
  return Promise.resolve(contents);
3724
3724
  };
@@ -3920,9 +3920,9 @@ const deserializeAws_restJson1DetachFromIndexCommand = async (output, context) =
3920
3920
  $metadata: deserializeMetadata(output),
3921
3921
  DetachedObjectIdentifier: undefined,
3922
3922
  };
3923
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3923
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3924
3924
  if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
3925
- contents.DetachedObjectIdentifier = (0, smithy_client_1.expectString)(data.DetachedObjectIdentifier);
3925
+ contents.DetachedObjectIdentifier = smithy_client_1.expectString(data.DetachedObjectIdentifier);
3926
3926
  }
3927
3927
  return Promise.resolve(contents);
3928
3928
  };
@@ -4040,9 +4040,9 @@ const deserializeAws_restJson1DetachObjectCommand = async (output, context) => {
4040
4040
  $metadata: deserializeMetadata(output),
4041
4041
  DetachedObjectIdentifier: undefined,
4042
4042
  };
4043
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4043
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4044
4044
  if (data.DetachedObjectIdentifier !== undefined && data.DetachedObjectIdentifier !== null) {
4045
- contents.DetachedObjectIdentifier = (0, smithy_client_1.expectString)(data.DetachedObjectIdentifier);
4045
+ contents.DetachedObjectIdentifier = smithy_client_1.expectString(data.DetachedObjectIdentifier);
4046
4046
  }
4047
4047
  return Promise.resolve(contents);
4048
4048
  };
@@ -4368,9 +4368,9 @@ const deserializeAws_restJson1DisableDirectoryCommand = async (output, context)
4368
4368
  $metadata: deserializeMetadata(output),
4369
4369
  DirectoryArn: undefined,
4370
4370
  };
4371
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4371
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4372
4372
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
4373
- contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
4373
+ contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
4374
4374
  }
4375
4375
  return Promise.resolve(contents);
4376
4376
  };
@@ -4472,9 +4472,9 @@ const deserializeAws_restJson1EnableDirectoryCommand = async (output, context) =
4472
4472
  $metadata: deserializeMetadata(output),
4473
4473
  DirectoryArn: undefined,
4474
4474
  };
4475
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4475
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4476
4476
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
4477
- contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
4477
+ contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
4478
4478
  }
4479
4479
  return Promise.resolve(contents);
4480
4480
  };
@@ -4576,9 +4576,9 @@ const deserializeAws_restJson1GetAppliedSchemaVersionCommand = async (output, co
4576
4576
  $metadata: deserializeMetadata(output),
4577
4577
  AppliedSchemaArn: undefined,
4578
4578
  };
4579
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4579
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4580
4580
  if (data.AppliedSchemaArn !== undefined && data.AppliedSchemaArn !== null) {
4581
- contents.AppliedSchemaArn = (0, smithy_client_1.expectString)(data.AppliedSchemaArn);
4581
+ contents.AppliedSchemaArn = smithy_client_1.expectString(data.AppliedSchemaArn);
4582
4582
  }
4583
4583
  return Promise.resolve(contents);
4584
4584
  };
@@ -4672,7 +4672,7 @@ const deserializeAws_restJson1GetDirectoryCommand = async (output, context) => {
4672
4672
  $metadata: deserializeMetadata(output),
4673
4673
  Directory: undefined,
4674
4674
  };
4675
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4675
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4676
4676
  if (data.Directory !== undefined && data.Directory !== null) {
4677
4677
  contents.Directory = deserializeAws_restJson1Directory(data.Directory, context);
4678
4678
  }
@@ -4760,7 +4760,7 @@ const deserializeAws_restJson1GetFacetCommand = async (output, context) => {
4760
4760
  $metadata: deserializeMetadata(output),
4761
4761
  Facet: undefined,
4762
4762
  };
4763
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4763
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4764
4764
  if (data.Facet !== undefined && data.Facet !== null) {
4765
4765
  contents.Facet = deserializeAws_restJson1Facet(data.Facet, context);
4766
4766
  }
@@ -4864,7 +4864,7 @@ const deserializeAws_restJson1GetLinkAttributesCommand = async (output, context)
4864
4864
  $metadata: deserializeMetadata(output),
4865
4865
  Attributes: undefined,
4866
4866
  };
4867
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4867
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4868
4868
  if (data.Attributes !== undefined && data.Attributes !== null) {
4869
4869
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
4870
4870
  }
@@ -4976,7 +4976,7 @@ const deserializeAws_restJson1GetObjectAttributesCommand = async (output, contex
4976
4976
  $metadata: deserializeMetadata(output),
4977
4977
  Attributes: undefined,
4978
4978
  };
4979
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4979
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4980
4980
  if (data.Attributes !== undefined && data.Attributes !== null) {
4981
4981
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
4982
4982
  }
@@ -5089,9 +5089,9 @@ const deserializeAws_restJson1GetObjectInformationCommand = async (output, conte
5089
5089
  ObjectIdentifier: undefined,
5090
5090
  SchemaFacets: undefined,
5091
5091
  };
5092
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5092
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5093
5093
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
5094
- contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
5094
+ contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
5095
5095
  }
5096
5096
  if (data.SchemaFacets !== undefined && data.SchemaFacets !== null) {
5097
5097
  contents.SchemaFacets = deserializeAws_restJson1SchemaFacetList(data.SchemaFacets, context);
@@ -5197,12 +5197,12 @@ const deserializeAws_restJson1GetSchemaAsJsonCommand = async (output, context) =
5197
5197
  Document: undefined,
5198
5198
  Name: undefined,
5199
5199
  };
5200
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5200
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5201
5201
  if (data.Document !== undefined && data.Document !== null) {
5202
- contents.Document = (0, smithy_client_1.expectString)(data.Document);
5202
+ contents.Document = smithy_client_1.expectString(data.Document);
5203
5203
  }
5204
5204
  if (data.Name !== undefined && data.Name !== null) {
5205
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
5205
+ contents.Name = smithy_client_1.expectString(data.Name);
5206
5206
  }
5207
5207
  return Promise.resolve(contents);
5208
5208
  };
@@ -5296,7 +5296,7 @@ const deserializeAws_restJson1GetTypedLinkFacetInformationCommand = async (outpu
5296
5296
  $metadata: deserializeMetadata(output),
5297
5297
  IdentityAttributeOrder: undefined,
5298
5298
  };
5299
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5299
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5300
5300
  if (data.IdentityAttributeOrder !== undefined && data.IdentityAttributeOrder !== null) {
5301
5301
  contents.IdentityAttributeOrder = deserializeAws_restJson1AttributeNameList(data.IdentityAttributeOrder, context);
5302
5302
  }
@@ -5409,9 +5409,9 @@ const deserializeAws_restJson1ListAppliedSchemaArnsCommand = async (output, cont
5409
5409
  NextToken: undefined,
5410
5410
  SchemaArns: undefined,
5411
5411
  };
5412
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5412
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5413
5413
  if (data.NextToken !== undefined && data.NextToken !== null) {
5414
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5414
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
5415
5415
  }
5416
5416
  if (data.SchemaArns !== undefined && data.SchemaArns !== null) {
5417
5417
  contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
@@ -5517,12 +5517,12 @@ const deserializeAws_restJson1ListAttachedIndicesCommand = async (output, contex
5517
5517
  IndexAttachments: undefined,
5518
5518
  NextToken: undefined,
5519
5519
  };
5520
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5520
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5521
5521
  if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
5522
5522
  contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
5523
5523
  }
5524
5524
  if (data.NextToken !== undefined && data.NextToken !== null) {
5525
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5525
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
5526
5526
  }
5527
5527
  return Promise.resolve(contents);
5528
5528
  };
@@ -5625,9 +5625,9 @@ const deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = async (output,
5625
5625
  NextToken: undefined,
5626
5626
  SchemaArns: undefined,
5627
5627
  };
5628
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5628
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5629
5629
  if (data.NextToken !== undefined && data.NextToken !== null) {
5630
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5630
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
5631
5631
  }
5632
5632
  if (data.SchemaArns !== undefined && data.SchemaArns !== null) {
5633
5633
  contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
@@ -5733,12 +5733,12 @@ const deserializeAws_restJson1ListDirectoriesCommand = async (output, context) =
5733
5733
  Directories: undefined,
5734
5734
  NextToken: undefined,
5735
5735
  };
5736
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5736
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5737
5737
  if (data.Directories !== undefined && data.Directories !== null) {
5738
5738
  contents.Directories = deserializeAws_restJson1DirectoryList(data.Directories, context);
5739
5739
  }
5740
5740
  if (data.NextToken !== undefined && data.NextToken !== null) {
5741
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5741
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
5742
5742
  }
5743
5743
  return Promise.resolve(contents);
5744
5744
  };
@@ -5833,12 +5833,12 @@ const deserializeAws_restJson1ListFacetAttributesCommand = async (output, contex
5833
5833
  Attributes: undefined,
5834
5834
  NextToken: undefined,
5835
5835
  };
5836
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5836
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5837
5837
  if (data.Attributes !== undefined && data.Attributes !== null) {
5838
5838
  contents.Attributes = deserializeAws_restJson1FacetAttributeList(data.Attributes, context);
5839
5839
  }
5840
5840
  if (data.NextToken !== undefined && data.NextToken !== null) {
5841
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5841
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
5842
5842
  }
5843
5843
  return Promise.resolve(contents);
5844
5844
  };
@@ -5949,12 +5949,12 @@ const deserializeAws_restJson1ListFacetNamesCommand = async (output, context) =>
5949
5949
  FacetNames: undefined,
5950
5950
  NextToken: undefined,
5951
5951
  };
5952
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5952
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5953
5953
  if (data.FacetNames !== undefined && data.FacetNames !== null) {
5954
5954
  contents.FacetNames = deserializeAws_restJson1FacetNameList(data.FacetNames, context);
5955
5955
  }
5956
5956
  if (data.NextToken !== undefined && data.NextToken !== null) {
5957
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
5957
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
5958
5958
  }
5959
5959
  return Promise.resolve(contents);
5960
5960
  };
@@ -6057,12 +6057,12 @@ const deserializeAws_restJson1ListIncomingTypedLinksCommand = async (output, con
6057
6057
  LinkSpecifiers: undefined,
6058
6058
  NextToken: undefined,
6059
6059
  };
6060
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6060
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6061
6061
  if (data.LinkSpecifiers !== undefined && data.LinkSpecifiers !== null) {
6062
6062
  contents.LinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.LinkSpecifiers, context);
6063
6063
  }
6064
6064
  if (data.NextToken !== undefined && data.NextToken !== null) {
6065
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6065
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6066
6066
  }
6067
6067
  return Promise.resolve(contents);
6068
6068
  };
@@ -6181,12 +6181,12 @@ const deserializeAws_restJson1ListIndexCommand = async (output, context) => {
6181
6181
  IndexAttachments: undefined,
6182
6182
  NextToken: undefined,
6183
6183
  };
6184
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6184
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6185
6185
  if (data.IndexAttachments !== undefined && data.IndexAttachments !== null) {
6186
6186
  contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
6187
6187
  }
6188
6188
  if (data.NextToken !== undefined && data.NextToken !== null) {
6189
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6189
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6190
6190
  }
6191
6191
  return Promise.resolve(contents);
6192
6192
  };
@@ -6313,9 +6313,9 @@ const deserializeAws_restJson1ListManagedSchemaArnsCommand = async (output, cont
6313
6313
  NextToken: undefined,
6314
6314
  SchemaArns: undefined,
6315
6315
  };
6316
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6316
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6317
6317
  if (data.NextToken !== undefined && data.NextToken !== null) {
6318
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6318
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6319
6319
  }
6320
6320
  if (data.SchemaArns !== undefined && data.SchemaArns !== null) {
6321
6321
  contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
@@ -6405,12 +6405,12 @@ const deserializeAws_restJson1ListObjectAttributesCommand = async (output, conte
6405
6405
  Attributes: undefined,
6406
6406
  NextToken: undefined,
6407
6407
  };
6408
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6408
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6409
6409
  if (data.Attributes !== undefined && data.Attributes !== null) {
6410
6410
  contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
6411
6411
  }
6412
6412
  if (data.NextToken !== undefined && data.NextToken !== null) {
6413
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6413
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6414
6414
  }
6415
6415
  return Promise.resolve(contents);
6416
6416
  };
@@ -6529,12 +6529,12 @@ const deserializeAws_restJson1ListObjectChildrenCommand = async (output, context
6529
6529
  Children: undefined,
6530
6530
  NextToken: undefined,
6531
6531
  };
6532
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6532
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6533
6533
  if (data.Children !== undefined && data.Children !== null) {
6534
6534
  contents.Children = deserializeAws_restJson1LinkNameToObjectIdentifierMap(data.Children, context);
6535
6535
  }
6536
6536
  if (data.NextToken !== undefined && data.NextToken !== null) {
6537
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6537
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6538
6538
  }
6539
6539
  return Promise.resolve(contents);
6540
6540
  };
@@ -6653,9 +6653,9 @@ const deserializeAws_restJson1ListObjectParentPathsCommand = async (output, cont
6653
6653
  NextToken: undefined,
6654
6654
  PathToObjectIdentifiersList: undefined,
6655
6655
  };
6656
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6656
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6657
6657
  if (data.NextToken !== undefined && data.NextToken !== null) {
6658
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6658
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6659
6659
  }
6660
6660
  if (data.PathToObjectIdentifiersList !== undefined && data.PathToObjectIdentifiersList !== null) {
6661
6661
  contents.PathToObjectIdentifiersList = deserializeAws_restJson1PathToObjectIdentifiersList(data.PathToObjectIdentifiersList, context);
@@ -6770,9 +6770,9 @@ const deserializeAws_restJson1ListObjectParentsCommand = async (output, context)
6770
6770
  ParentLinks: undefined,
6771
6771
  Parents: undefined,
6772
6772
  };
6773
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6773
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6774
6774
  if (data.NextToken !== undefined && data.NextToken !== null) {
6775
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6775
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6776
6776
  }
6777
6777
  if (data.ParentLinks !== undefined && data.ParentLinks !== null) {
6778
6778
  contents.ParentLinks = deserializeAws_restJson1ObjectIdentifierAndLinkNameList(data.ParentLinks, context);
@@ -6897,12 +6897,12 @@ const deserializeAws_restJson1ListObjectPoliciesCommand = async (output, context
6897
6897
  AttachedPolicyIds: undefined,
6898
6898
  NextToken: undefined,
6899
6899
  };
6900
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6900
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6901
6901
  if (data.AttachedPolicyIds !== undefined && data.AttachedPolicyIds !== null) {
6902
6902
  contents.AttachedPolicyIds = deserializeAws_restJson1ObjectIdentifierList(data.AttachedPolicyIds, context);
6903
6903
  }
6904
6904
  if (data.NextToken !== undefined && data.NextToken !== null) {
6905
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
6905
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
6906
6906
  }
6907
6907
  return Promise.resolve(contents);
6908
6908
  };
@@ -7013,9 +7013,9 @@ const deserializeAws_restJson1ListOutgoingTypedLinksCommand = async (output, con
7013
7013
  NextToken: undefined,
7014
7014
  TypedLinkSpecifiers: undefined,
7015
7015
  };
7016
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7016
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7017
7017
  if (data.NextToken !== undefined && data.NextToken !== null) {
7018
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7018
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7019
7019
  }
7020
7020
  if (data.TypedLinkSpecifiers !== undefined && data.TypedLinkSpecifiers !== null) {
7021
7021
  contents.TypedLinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.TypedLinkSpecifiers, context);
@@ -7137,9 +7137,9 @@ const deserializeAws_restJson1ListPolicyAttachmentsCommand = async (output, cont
7137
7137
  NextToken: undefined,
7138
7138
  ObjectIdentifiers: undefined,
7139
7139
  };
7140
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7140
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7141
7141
  if (data.NextToken !== undefined && data.NextToken !== null) {
7142
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7142
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7143
7143
  }
7144
7144
  if (data.ObjectIdentifiers !== undefined && data.ObjectIdentifiers !== null) {
7145
7145
  contents.ObjectIdentifiers = deserializeAws_restJson1ObjectIdentifierList(data.ObjectIdentifiers, context);
@@ -7261,9 +7261,9 @@ const deserializeAws_restJson1ListPublishedSchemaArnsCommand = async (output, co
7261
7261
  NextToken: undefined,
7262
7262
  SchemaArns: undefined,
7263
7263
  };
7264
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7264
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7265
7265
  if (data.NextToken !== undefined && data.NextToken !== null) {
7266
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7266
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7267
7267
  }
7268
7268
  if (data.SchemaArns !== undefined && data.SchemaArns !== null) {
7269
7269
  contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
@@ -7369,9 +7369,9 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
7369
7369
  NextToken: undefined,
7370
7370
  Tags: undefined,
7371
7371
  };
7372
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7372
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7373
7373
  if (data.NextToken !== undefined && data.NextToken !== null) {
7374
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7374
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7375
7375
  }
7376
7376
  if (data.Tags !== undefined && data.Tags !== null) {
7377
7377
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
@@ -7477,12 +7477,12 @@ const deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (outpu
7477
7477
  Attributes: undefined,
7478
7478
  NextToken: undefined,
7479
7479
  };
7480
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7480
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7481
7481
  if (data.Attributes !== undefined && data.Attributes !== null) {
7482
7482
  contents.Attributes = deserializeAws_restJson1TypedLinkAttributeDefinitionList(data.Attributes, context);
7483
7483
  }
7484
7484
  if (data.NextToken !== undefined && data.NextToken !== null) {
7485
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7485
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7486
7486
  }
7487
7487
  return Promise.resolve(contents);
7488
7488
  };
@@ -7593,12 +7593,12 @@ const deserializeAws_restJson1ListTypedLinkFacetNamesCommand = async (output, co
7593
7593
  FacetNames: undefined,
7594
7594
  NextToken: undefined,
7595
7595
  };
7596
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7596
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7597
7597
  if (data.FacetNames !== undefined && data.FacetNames !== null) {
7598
7598
  contents.FacetNames = deserializeAws_restJson1TypedLinkNameList(data.FacetNames, context);
7599
7599
  }
7600
7600
  if (data.NextToken !== undefined && data.NextToken !== null) {
7601
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7601
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7602
7602
  }
7603
7603
  return Promise.resolve(contents);
7604
7604
  };
@@ -7701,9 +7701,9 @@ const deserializeAws_restJson1LookupPolicyCommand = async (output, context) => {
7701
7701
  NextToken: undefined,
7702
7702
  PolicyToPathList: undefined,
7703
7703
  };
7704
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7704
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7705
7705
  if (data.NextToken !== undefined && data.NextToken !== null) {
7706
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
7706
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
7707
7707
  }
7708
7708
  if (data.PolicyToPathList !== undefined && data.PolicyToPathList !== null) {
7709
7709
  contents.PolicyToPathList = deserializeAws_restJson1PolicyToPathList(data.PolicyToPathList, context);
@@ -7816,9 +7816,9 @@ const deserializeAws_restJson1PublishSchemaCommand = async (output, context) =>
7816
7816
  $metadata: deserializeMetadata(output),
7817
7817
  PublishedSchemaArn: undefined,
7818
7818
  };
7819
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7819
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7820
7820
  if (data.PublishedSchemaArn !== undefined && data.PublishedSchemaArn !== null) {
7821
- contents.PublishedSchemaArn = (0, smithy_client_1.expectString)(data.PublishedSchemaArn);
7821
+ contents.PublishedSchemaArn = smithy_client_1.expectString(data.PublishedSchemaArn);
7822
7822
  }
7823
7823
  return Promise.resolve(contents);
7824
7824
  };
@@ -7920,9 +7920,9 @@ const deserializeAws_restJson1PutSchemaFromJsonCommand = async (output, context)
7920
7920
  $metadata: deserializeMetadata(output),
7921
7921
  Arn: undefined,
7922
7922
  };
7923
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7923
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7924
7924
  if (data.Arn !== undefined && data.Arn !== null) {
7925
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
7925
+ contents.Arn = smithy_client_1.expectString(data.Arn);
7926
7926
  }
7927
7927
  return Promise.resolve(contents);
7928
7928
  };
@@ -8564,9 +8564,9 @@ const deserializeAws_restJson1UpdateObjectAttributesCommand = async (output, con
8564
8564
  $metadata: deserializeMetadata(output),
8565
8565
  ObjectIdentifier: undefined,
8566
8566
  };
8567
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8567
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8568
8568
  if (data.ObjectIdentifier !== undefined && data.ObjectIdentifier !== null) {
8569
- contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
8569
+ contents.ObjectIdentifier = smithy_client_1.expectString(data.ObjectIdentifier);
8570
8570
  }
8571
8571
  return Promise.resolve(contents);
8572
8572
  };
@@ -8684,9 +8684,9 @@ const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
8684
8684
  $metadata: deserializeMetadata(output),
8685
8685
  SchemaArn: undefined,
8686
8686
  };
8687
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8687
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8688
8688
  if (data.SchemaArn !== undefined && data.SchemaArn !== null) {
8689
- contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
8689
+ contents.SchemaArn = smithy_client_1.expectString(data.SchemaArn);
8690
8690
  }
8691
8691
  return Promise.resolve(contents);
8692
8692
  };
@@ -8905,12 +8905,12 @@ const deserializeAws_restJson1UpgradeAppliedSchemaCommand = async (output, conte
8905
8905
  DirectoryArn: undefined,
8906
8906
  UpgradedSchemaArn: undefined,
8907
8907
  };
8908
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8908
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8909
8909
  if (data.DirectoryArn !== undefined && data.DirectoryArn !== null) {
8910
- contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
8910
+ contents.DirectoryArn = smithy_client_1.expectString(data.DirectoryArn);
8911
8911
  }
8912
8912
  if (data.UpgradedSchemaArn !== undefined && data.UpgradedSchemaArn !== null) {
8913
- contents.UpgradedSchemaArn = (0, smithy_client_1.expectString)(data.UpgradedSchemaArn);
8913
+ contents.UpgradedSchemaArn = smithy_client_1.expectString(data.UpgradedSchemaArn);
8914
8914
  }
8915
8915
  return Promise.resolve(contents);
8916
8916
  };
@@ -9020,9 +9020,9 @@ const deserializeAws_restJson1UpgradePublishedSchemaCommand = async (output, con
9020
9020
  $metadata: deserializeMetadata(output),
9021
9021
  UpgradedSchemaArn: undefined,
9022
9022
  };
9023
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
9023
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9024
9024
  if (data.UpgradedSchemaArn !== undefined && data.UpgradedSchemaArn !== null) {
9025
- contents.UpgradedSchemaArn = (0, smithy_client_1.expectString)(data.UpgradedSchemaArn);
9025
+ contents.UpgradedSchemaArn = smithy_client_1.expectString(data.UpgradedSchemaArn);
9026
9026
  }
9027
9027
  return Promise.resolve(contents);
9028
9028
  };
@@ -9133,7 +9133,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
9133
9133
  };
9134
9134
  const data = parsedOutput.body;
9135
9135
  if (data.Message !== undefined && data.Message !== null) {
9136
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9136
+ contents.Message = smithy_client_1.expectString(data.Message);
9137
9137
  }
9138
9138
  return contents;
9139
9139
  };
@@ -9148,13 +9148,13 @@ const deserializeAws_restJson1BatchWriteExceptionResponse = async (parsedOutput,
9148
9148
  };
9149
9149
  const data = parsedOutput.body;
9150
9150
  if (data.Index !== undefined && data.Index !== null) {
9151
- contents.Index = (0, smithy_client_1.expectInt32)(data.Index);
9151
+ contents.Index = smithy_client_1.expectInt32(data.Index);
9152
9152
  }
9153
9153
  if (data.Message !== undefined && data.Message !== null) {
9154
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9154
+ contents.Message = smithy_client_1.expectString(data.Message);
9155
9155
  }
9156
9156
  if (data.Type !== undefined && data.Type !== null) {
9157
- contents.Type = (0, smithy_client_1.expectString)(data.Type);
9157
+ contents.Type = smithy_client_1.expectString(data.Type);
9158
9158
  }
9159
9159
  return contents;
9160
9160
  };
@@ -9167,7 +9167,7 @@ const deserializeAws_restJson1CannotListParentOfRootExceptionResponse = async (p
9167
9167
  };
9168
9168
  const data = parsedOutput.body;
9169
9169
  if (data.Message !== undefined && data.Message !== null) {
9170
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9170
+ contents.Message = smithy_client_1.expectString(data.Message);
9171
9171
  }
9172
9172
  return contents;
9173
9173
  };
@@ -9180,7 +9180,7 @@ const deserializeAws_restJson1DirectoryAlreadyExistsExceptionResponse = async (p
9180
9180
  };
9181
9181
  const data = parsedOutput.body;
9182
9182
  if (data.Message !== undefined && data.Message !== null) {
9183
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9183
+ contents.Message = smithy_client_1.expectString(data.Message);
9184
9184
  }
9185
9185
  return contents;
9186
9186
  };
@@ -9193,7 +9193,7 @@ const deserializeAws_restJson1DirectoryDeletedExceptionResponse = async (parsedO
9193
9193
  };
9194
9194
  const data = parsedOutput.body;
9195
9195
  if (data.Message !== undefined && data.Message !== null) {
9196
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9196
+ contents.Message = smithy_client_1.expectString(data.Message);
9197
9197
  }
9198
9198
  return contents;
9199
9199
  };
@@ -9206,7 +9206,7 @@ const deserializeAws_restJson1DirectoryNotDisabledExceptionResponse = async (par
9206
9206
  };
9207
9207
  const data = parsedOutput.body;
9208
9208
  if (data.Message !== undefined && data.Message !== null) {
9209
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9209
+ contents.Message = smithy_client_1.expectString(data.Message);
9210
9210
  }
9211
9211
  return contents;
9212
9212
  };
@@ -9219,7 +9219,7 @@ const deserializeAws_restJson1DirectoryNotEnabledExceptionResponse = async (pars
9219
9219
  };
9220
9220
  const data = parsedOutput.body;
9221
9221
  if (data.Message !== undefined && data.Message !== null) {
9222
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9222
+ contents.Message = smithy_client_1.expectString(data.Message);
9223
9223
  }
9224
9224
  return contents;
9225
9225
  };
@@ -9232,7 +9232,7 @@ const deserializeAws_restJson1FacetAlreadyExistsExceptionResponse = async (parse
9232
9232
  };
9233
9233
  const data = parsedOutput.body;
9234
9234
  if (data.Message !== undefined && data.Message !== null) {
9235
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9235
+ contents.Message = smithy_client_1.expectString(data.Message);
9236
9236
  }
9237
9237
  return contents;
9238
9238
  };
@@ -9245,7 +9245,7 @@ const deserializeAws_restJson1FacetInUseExceptionResponse = async (parsedOutput,
9245
9245
  };
9246
9246
  const data = parsedOutput.body;
9247
9247
  if (data.Message !== undefined && data.Message !== null) {
9248
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9248
+ contents.Message = smithy_client_1.expectString(data.Message);
9249
9249
  }
9250
9250
  return contents;
9251
9251
  };
@@ -9258,7 +9258,7 @@ const deserializeAws_restJson1FacetNotFoundExceptionResponse = async (parsedOutp
9258
9258
  };
9259
9259
  const data = parsedOutput.body;
9260
9260
  if (data.Message !== undefined && data.Message !== null) {
9261
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9261
+ contents.Message = smithy_client_1.expectString(data.Message);
9262
9262
  }
9263
9263
  return contents;
9264
9264
  };
@@ -9271,7 +9271,7 @@ const deserializeAws_restJson1FacetValidationExceptionResponse = async (parsedOu
9271
9271
  };
9272
9272
  const data = parsedOutput.body;
9273
9273
  if (data.Message !== undefined && data.Message !== null) {
9274
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9274
+ contents.Message = smithy_client_1.expectString(data.Message);
9275
9275
  }
9276
9276
  return contents;
9277
9277
  };
@@ -9284,7 +9284,7 @@ const deserializeAws_restJson1IncompatibleSchemaExceptionResponse = async (parse
9284
9284
  };
9285
9285
  const data = parsedOutput.body;
9286
9286
  if (data.Message !== undefined && data.Message !== null) {
9287
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9287
+ contents.Message = smithy_client_1.expectString(data.Message);
9288
9288
  }
9289
9289
  return contents;
9290
9290
  };
@@ -9297,7 +9297,7 @@ const deserializeAws_restJson1IndexedAttributeMissingExceptionResponse = async (
9297
9297
  };
9298
9298
  const data = parsedOutput.body;
9299
9299
  if (data.Message !== undefined && data.Message !== null) {
9300
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9300
+ contents.Message = smithy_client_1.expectString(data.Message);
9301
9301
  }
9302
9302
  return contents;
9303
9303
  };
@@ -9310,7 +9310,7 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
9310
9310
  };
9311
9311
  const data = parsedOutput.body;
9312
9312
  if (data.Message !== undefined && data.Message !== null) {
9313
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9313
+ contents.Message = smithy_client_1.expectString(data.Message);
9314
9314
  }
9315
9315
  return contents;
9316
9316
  };
@@ -9323,7 +9323,7 @@ const deserializeAws_restJson1InvalidArnExceptionResponse = async (parsedOutput,
9323
9323
  };
9324
9324
  const data = parsedOutput.body;
9325
9325
  if (data.Message !== undefined && data.Message !== null) {
9326
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9326
+ contents.Message = smithy_client_1.expectString(data.Message);
9327
9327
  }
9328
9328
  return contents;
9329
9329
  };
@@ -9336,7 +9336,7 @@ const deserializeAws_restJson1InvalidAttachmentExceptionResponse = async (parsed
9336
9336
  };
9337
9337
  const data = parsedOutput.body;
9338
9338
  if (data.Message !== undefined && data.Message !== null) {
9339
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9339
+ contents.Message = smithy_client_1.expectString(data.Message);
9340
9340
  }
9341
9341
  return contents;
9342
9342
  };
@@ -9349,7 +9349,7 @@ const deserializeAws_restJson1InvalidFacetUpdateExceptionResponse = async (parse
9349
9349
  };
9350
9350
  const data = parsedOutput.body;
9351
9351
  if (data.Message !== undefined && data.Message !== null) {
9352
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9352
+ contents.Message = smithy_client_1.expectString(data.Message);
9353
9353
  }
9354
9354
  return contents;
9355
9355
  };
@@ -9362,7 +9362,7 @@ const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedO
9362
9362
  };
9363
9363
  const data = parsedOutput.body;
9364
9364
  if (data.Message !== undefined && data.Message !== null) {
9365
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9365
+ contents.Message = smithy_client_1.expectString(data.Message);
9366
9366
  }
9367
9367
  return contents;
9368
9368
  };
@@ -9375,7 +9375,7 @@ const deserializeAws_restJson1InvalidRuleExceptionResponse = async (parsedOutput
9375
9375
  };
9376
9376
  const data = parsedOutput.body;
9377
9377
  if (data.Message !== undefined && data.Message !== null) {
9378
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9378
+ contents.Message = smithy_client_1.expectString(data.Message);
9379
9379
  }
9380
9380
  return contents;
9381
9381
  };
@@ -9388,7 +9388,7 @@ const deserializeAws_restJson1InvalidSchemaDocExceptionResponse = async (parsedO
9388
9388
  };
9389
9389
  const data = parsedOutput.body;
9390
9390
  if (data.Message !== undefined && data.Message !== null) {
9391
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9391
+ contents.Message = smithy_client_1.expectString(data.Message);
9392
9392
  }
9393
9393
  return contents;
9394
9394
  };
@@ -9401,7 +9401,7 @@ const deserializeAws_restJson1InvalidTaggingRequestExceptionResponse = async (pa
9401
9401
  };
9402
9402
  const data = parsedOutput.body;
9403
9403
  if (data.Message !== undefined && data.Message !== null) {
9404
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9404
+ contents.Message = smithy_client_1.expectString(data.Message);
9405
9405
  }
9406
9406
  return contents;
9407
9407
  };
@@ -9414,7 +9414,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
9414
9414
  };
9415
9415
  const data = parsedOutput.body;
9416
9416
  if (data.Message !== undefined && data.Message !== null) {
9417
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9417
+ contents.Message = smithy_client_1.expectString(data.Message);
9418
9418
  }
9419
9419
  return contents;
9420
9420
  };
@@ -9427,7 +9427,7 @@ const deserializeAws_restJson1LinkNameAlreadyInUseExceptionResponse = async (par
9427
9427
  };
9428
9428
  const data = parsedOutput.body;
9429
9429
  if (data.Message !== undefined && data.Message !== null) {
9430
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9430
+ contents.Message = smithy_client_1.expectString(data.Message);
9431
9431
  }
9432
9432
  return contents;
9433
9433
  };
@@ -9440,7 +9440,7 @@ const deserializeAws_restJson1NotIndexExceptionResponse = async (parsedOutput, c
9440
9440
  };
9441
9441
  const data = parsedOutput.body;
9442
9442
  if (data.Message !== undefined && data.Message !== null) {
9443
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9443
+ contents.Message = smithy_client_1.expectString(data.Message);
9444
9444
  }
9445
9445
  return contents;
9446
9446
  };
@@ -9453,7 +9453,7 @@ const deserializeAws_restJson1NotNodeExceptionResponse = async (parsedOutput, co
9453
9453
  };
9454
9454
  const data = parsedOutput.body;
9455
9455
  if (data.Message !== undefined && data.Message !== null) {
9456
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9456
+ contents.Message = smithy_client_1.expectString(data.Message);
9457
9457
  }
9458
9458
  return contents;
9459
9459
  };
@@ -9466,7 +9466,7 @@ const deserializeAws_restJson1NotPolicyExceptionResponse = async (parsedOutput,
9466
9466
  };
9467
9467
  const data = parsedOutput.body;
9468
9468
  if (data.Message !== undefined && data.Message !== null) {
9469
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9469
+ contents.Message = smithy_client_1.expectString(data.Message);
9470
9470
  }
9471
9471
  return contents;
9472
9472
  };
@@ -9479,7 +9479,7 @@ const deserializeAws_restJson1ObjectAlreadyDetachedExceptionResponse = async (pa
9479
9479
  };
9480
9480
  const data = parsedOutput.body;
9481
9481
  if (data.Message !== undefined && data.Message !== null) {
9482
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9482
+ contents.Message = smithy_client_1.expectString(data.Message);
9483
9483
  }
9484
9484
  return contents;
9485
9485
  };
@@ -9492,7 +9492,7 @@ const deserializeAws_restJson1ObjectNotDetachedExceptionResponse = async (parsed
9492
9492
  };
9493
9493
  const data = parsedOutput.body;
9494
9494
  if (data.Message !== undefined && data.Message !== null) {
9495
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9495
+ contents.Message = smithy_client_1.expectString(data.Message);
9496
9496
  }
9497
9497
  return contents;
9498
9498
  };
@@ -9505,7 +9505,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
9505
9505
  };
9506
9506
  const data = parsedOutput.body;
9507
9507
  if (data.Message !== undefined && data.Message !== null) {
9508
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9508
+ contents.Message = smithy_client_1.expectString(data.Message);
9509
9509
  }
9510
9510
  return contents;
9511
9511
  };
@@ -9518,7 +9518,7 @@ const deserializeAws_restJson1RetryableConflictExceptionResponse = async (parsed
9518
9518
  };
9519
9519
  const data = parsedOutput.body;
9520
9520
  if (data.Message !== undefined && data.Message !== null) {
9521
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9521
+ contents.Message = smithy_client_1.expectString(data.Message);
9522
9522
  }
9523
9523
  return contents;
9524
9524
  };
@@ -9531,7 +9531,7 @@ const deserializeAws_restJson1SchemaAlreadyExistsExceptionResponse = async (pars
9531
9531
  };
9532
9532
  const data = parsedOutput.body;
9533
9533
  if (data.Message !== undefined && data.Message !== null) {
9534
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9534
+ contents.Message = smithy_client_1.expectString(data.Message);
9535
9535
  }
9536
9536
  return contents;
9537
9537
  };
@@ -9544,7 +9544,7 @@ const deserializeAws_restJson1SchemaAlreadyPublishedExceptionResponse = async (p
9544
9544
  };
9545
9545
  const data = parsedOutput.body;
9546
9546
  if (data.Message !== undefined && data.Message !== null) {
9547
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9547
+ contents.Message = smithy_client_1.expectString(data.Message);
9548
9548
  }
9549
9549
  return contents;
9550
9550
  };
@@ -9557,7 +9557,7 @@ const deserializeAws_restJson1StillContainsLinksExceptionResponse = async (parse
9557
9557
  };
9558
9558
  const data = parsedOutput.body;
9559
9559
  if (data.Message !== undefined && data.Message !== null) {
9560
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9560
+ contents.Message = smithy_client_1.expectString(data.Message);
9561
9561
  }
9562
9562
  return contents;
9563
9563
  };
@@ -9570,7 +9570,7 @@ const deserializeAws_restJson1UnsupportedIndexTypeExceptionResponse = async (par
9570
9570
  };
9571
9571
  const data = parsedOutput.body;
9572
9572
  if (data.Message !== undefined && data.Message !== null) {
9573
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9573
+ contents.Message = smithy_client_1.expectString(data.Message);
9574
9574
  }
9575
9575
  return contents;
9576
9576
  };
@@ -9583,7 +9583,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
9583
9583
  };
9584
9584
  const data = parsedOutput.body;
9585
9585
  if (data.Message !== undefined && data.Message !== null) {
9586
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
9586
+ contents.Message = smithy_client_1.expectString(data.Message);
9587
9587
  }
9588
9588
  return contents;
9589
9589
  };
@@ -10493,14 +10493,14 @@ const deserializeAws_restJson1Arns = (output, context) => {
10493
10493
  if (entry === null) {
10494
10494
  return null;
10495
10495
  }
10496
- return (0, smithy_client_1.expectString)(entry);
10496
+ return smithy_client_1.expectString(entry);
10497
10497
  });
10498
10498
  };
10499
10499
  const deserializeAws_restJson1AttributeKey = (output, context) => {
10500
10500
  return {
10501
- FacetName: (0, smithy_client_1.expectString)(output.FacetName),
10502
- Name: (0, smithy_client_1.expectString)(output.Name),
10503
- SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
10501
+ FacetName: smithy_client_1.expectString(output.FacetName),
10502
+ Name: smithy_client_1.expectString(output.Name),
10503
+ SchemaArn: smithy_client_1.expectString(output.SchemaArn),
10504
10504
  };
10505
10505
  };
10506
10506
  const deserializeAws_restJson1AttributeKeyAndValue = (output, context) => {
@@ -10509,7 +10509,7 @@ const deserializeAws_restJson1AttributeKeyAndValue = (output, context) => {
10509
10509
  ? deserializeAws_restJson1AttributeKey(output.Key, context)
10510
10510
  : undefined,
10511
10511
  Value: output.Value !== undefined && output.Value !== null
10512
- ? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
10512
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.Value), context)
10513
10513
  : undefined,
10514
10514
  };
10515
10515
  };
@@ -10525,9 +10525,9 @@ const deserializeAws_restJson1AttributeKeyAndValueList = (output, context) => {
10525
10525
  };
10526
10526
  const deserializeAws_restJson1AttributeNameAndValue = (output, context) => {
10527
10527
  return {
10528
- AttributeName: (0, smithy_client_1.expectString)(output.AttributeName),
10528
+ AttributeName: smithy_client_1.expectString(output.AttributeName),
10529
10529
  Value: output.Value !== undefined && output.Value !== null
10530
- ? deserializeAws_restJson1TypedAttributeValue(output.Value, context)
10530
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.Value), context)
10531
10531
  : undefined,
10532
10532
  };
10533
10533
  };
@@ -10548,7 +10548,7 @@ const deserializeAws_restJson1AttributeNameList = (output, context) => {
10548
10548
  if (entry === null) {
10549
10549
  return null;
10550
10550
  }
10551
- return (0, smithy_client_1.expectString)(entry);
10551
+ return smithy_client_1.expectString(entry);
10552
10552
  });
10553
10553
  };
10554
10554
  const deserializeAws_restJson1BatchAddFacetToObjectResponse = (output, context) => {
@@ -10556,7 +10556,7 @@ const deserializeAws_restJson1BatchAddFacetToObjectResponse = (output, context)
10556
10556
  };
10557
10557
  const deserializeAws_restJson1BatchAttachObjectResponse = (output, context) => {
10558
10558
  return {
10559
- attachedObjectIdentifier: (0, smithy_client_1.expectString)(output.attachedObjectIdentifier),
10559
+ attachedObjectIdentifier: smithy_client_1.expectString(output.attachedObjectIdentifier),
10560
10560
  };
10561
10561
  };
10562
10562
  const deserializeAws_restJson1BatchAttachPolicyResponse = (output, context) => {
@@ -10564,7 +10564,7 @@ const deserializeAws_restJson1BatchAttachPolicyResponse = (output, context) => {
10564
10564
  };
10565
10565
  const deserializeAws_restJson1BatchAttachToIndexResponse = (output, context) => {
10566
10566
  return {
10567
- AttachedObjectIdentifier: (0, smithy_client_1.expectString)(output.AttachedObjectIdentifier),
10567
+ AttachedObjectIdentifier: smithy_client_1.expectString(output.AttachedObjectIdentifier),
10568
10568
  };
10569
10569
  };
10570
10570
  const deserializeAws_restJson1BatchAttachTypedLinkResponse = (output, context) => {
@@ -10576,12 +10576,12 @@ const deserializeAws_restJson1BatchAttachTypedLinkResponse = (output, context) =
10576
10576
  };
10577
10577
  const deserializeAws_restJson1BatchCreateIndexResponse = (output, context) => {
10578
10578
  return {
10579
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
10579
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
10580
10580
  };
10581
10581
  };
10582
10582
  const deserializeAws_restJson1BatchCreateObjectResponse = (output, context) => {
10583
10583
  return {
10584
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
10584
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
10585
10585
  };
10586
10586
  };
10587
10587
  const deserializeAws_restJson1BatchDeleteObjectResponse = (output, context) => {
@@ -10589,12 +10589,12 @@ const deserializeAws_restJson1BatchDeleteObjectResponse = (output, context) => {
10589
10589
  };
10590
10590
  const deserializeAws_restJson1BatchDetachFromIndexResponse = (output, context) => {
10591
10591
  return {
10592
- DetachedObjectIdentifier: (0, smithy_client_1.expectString)(output.DetachedObjectIdentifier),
10592
+ DetachedObjectIdentifier: smithy_client_1.expectString(output.DetachedObjectIdentifier),
10593
10593
  };
10594
10594
  };
10595
10595
  const deserializeAws_restJson1BatchDetachObjectResponse = (output, context) => {
10596
10596
  return {
10597
- detachedObjectIdentifier: (0, smithy_client_1.expectString)(output.detachedObjectIdentifier),
10597
+ detachedObjectIdentifier: smithy_client_1.expectString(output.detachedObjectIdentifier),
10598
10598
  };
10599
10599
  };
10600
10600
  const deserializeAws_restJson1BatchDetachPolicyResponse = (output, context) => {
@@ -10619,7 +10619,7 @@ const deserializeAws_restJson1BatchGetObjectAttributesResponse = (output, contex
10619
10619
  };
10620
10620
  const deserializeAws_restJson1BatchGetObjectInformationResponse = (output, context) => {
10621
10621
  return {
10622
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
10622
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
10623
10623
  SchemaFacets: output.SchemaFacets !== undefined && output.SchemaFacets !== null
10624
10624
  ? deserializeAws_restJson1SchemaFacetList(output.SchemaFacets, context)
10625
10625
  : undefined,
@@ -10630,7 +10630,7 @@ const deserializeAws_restJson1BatchListAttachedIndicesResponse = (output, contex
10630
10630
  IndexAttachments: output.IndexAttachments !== undefined && output.IndexAttachments !== null
10631
10631
  ? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
10632
10632
  : undefined,
10633
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10633
+ NextToken: smithy_client_1.expectString(output.NextToken),
10634
10634
  };
10635
10635
  };
10636
10636
  const deserializeAws_restJson1BatchListIncomingTypedLinksResponse = (output, context) => {
@@ -10638,7 +10638,7 @@ const deserializeAws_restJson1BatchListIncomingTypedLinksResponse = (output, con
10638
10638
  LinkSpecifiers: output.LinkSpecifiers !== undefined && output.LinkSpecifiers !== null
10639
10639
  ? deserializeAws_restJson1TypedLinkSpecifierList(output.LinkSpecifiers, context)
10640
10640
  : undefined,
10641
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10641
+ NextToken: smithy_client_1.expectString(output.NextToken),
10642
10642
  };
10643
10643
  };
10644
10644
  const deserializeAws_restJson1BatchListIndexResponse = (output, context) => {
@@ -10646,7 +10646,7 @@ const deserializeAws_restJson1BatchListIndexResponse = (output, context) => {
10646
10646
  IndexAttachments: output.IndexAttachments !== undefined && output.IndexAttachments !== null
10647
10647
  ? deserializeAws_restJson1IndexAttachmentList(output.IndexAttachments, context)
10648
10648
  : undefined,
10649
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10649
+ NextToken: smithy_client_1.expectString(output.NextToken),
10650
10650
  };
10651
10651
  };
10652
10652
  const deserializeAws_restJson1BatchListObjectAttributesResponse = (output, context) => {
@@ -10654,7 +10654,7 @@ const deserializeAws_restJson1BatchListObjectAttributesResponse = (output, conte
10654
10654
  Attributes: output.Attributes !== undefined && output.Attributes !== null
10655
10655
  ? deserializeAws_restJson1AttributeKeyAndValueList(output.Attributes, context)
10656
10656
  : undefined,
10657
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10657
+ NextToken: smithy_client_1.expectString(output.NextToken),
10658
10658
  };
10659
10659
  };
10660
10660
  const deserializeAws_restJson1BatchListObjectChildrenResponse = (output, context) => {
@@ -10662,12 +10662,12 @@ const deserializeAws_restJson1BatchListObjectChildrenResponse = (output, context
10662
10662
  Children: output.Children !== undefined && output.Children !== null
10663
10663
  ? deserializeAws_restJson1LinkNameToObjectIdentifierMap(output.Children, context)
10664
10664
  : undefined,
10665
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10665
+ NextToken: smithy_client_1.expectString(output.NextToken),
10666
10666
  };
10667
10667
  };
10668
10668
  const deserializeAws_restJson1BatchListObjectParentPathsResponse = (output, context) => {
10669
10669
  return {
10670
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10670
+ NextToken: smithy_client_1.expectString(output.NextToken),
10671
10671
  PathToObjectIdentifiersList: output.PathToObjectIdentifiersList !== undefined && output.PathToObjectIdentifiersList !== null
10672
10672
  ? deserializeAws_restJson1PathToObjectIdentifiersList(output.PathToObjectIdentifiersList, context)
10673
10673
  : undefined,
@@ -10675,7 +10675,7 @@ const deserializeAws_restJson1BatchListObjectParentPathsResponse = (output, cont
10675
10675
  };
10676
10676
  const deserializeAws_restJson1BatchListObjectParentsResponse = (output, context) => {
10677
10677
  return {
10678
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10678
+ NextToken: smithy_client_1.expectString(output.NextToken),
10679
10679
  ParentLinks: output.ParentLinks !== undefined && output.ParentLinks !== null
10680
10680
  ? deserializeAws_restJson1ObjectIdentifierAndLinkNameList(output.ParentLinks, context)
10681
10681
  : undefined,
@@ -10686,12 +10686,12 @@ const deserializeAws_restJson1BatchListObjectPoliciesResponse = (output, context
10686
10686
  AttachedPolicyIds: output.AttachedPolicyIds !== undefined && output.AttachedPolicyIds !== null
10687
10687
  ? deserializeAws_restJson1ObjectIdentifierList(output.AttachedPolicyIds, context)
10688
10688
  : undefined,
10689
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10689
+ NextToken: smithy_client_1.expectString(output.NextToken),
10690
10690
  };
10691
10691
  };
10692
10692
  const deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = (output, context) => {
10693
10693
  return {
10694
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10694
+ NextToken: smithy_client_1.expectString(output.NextToken),
10695
10695
  TypedLinkSpecifiers: output.TypedLinkSpecifiers !== undefined && output.TypedLinkSpecifiers !== null
10696
10696
  ? deserializeAws_restJson1TypedLinkSpecifierList(output.TypedLinkSpecifiers, context)
10697
10697
  : undefined,
@@ -10699,7 +10699,7 @@ const deserializeAws_restJson1BatchListOutgoingTypedLinksResponse = (output, con
10699
10699
  };
10700
10700
  const deserializeAws_restJson1BatchListPolicyAttachmentsResponse = (output, context) => {
10701
10701
  return {
10702
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10702
+ NextToken: smithy_client_1.expectString(output.NextToken),
10703
10703
  ObjectIdentifiers: output.ObjectIdentifiers !== undefined && output.ObjectIdentifiers !== null
10704
10704
  ? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
10705
10705
  : undefined,
@@ -10707,7 +10707,7 @@ const deserializeAws_restJson1BatchListPolicyAttachmentsResponse = (output, cont
10707
10707
  };
10708
10708
  const deserializeAws_restJson1BatchLookupPolicyResponse = (output, context) => {
10709
10709
  return {
10710
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
10710
+ NextToken: smithy_client_1.expectString(output.NextToken),
10711
10711
  PolicyToPathList: output.PolicyToPathList !== undefined && output.PolicyToPathList !== null
10712
10712
  ? deserializeAws_restJson1PolicyToPathList(output.PolicyToPathList, context)
10713
10713
  : undefined,
@@ -10715,8 +10715,8 @@ const deserializeAws_restJson1BatchLookupPolicyResponse = (output, context) => {
10715
10715
  };
10716
10716
  const deserializeAws_restJson1BatchReadException = (output, context) => {
10717
10717
  return {
10718
- Message: (0, smithy_client_1.expectString)(output.Message),
10719
- Type: (0, smithy_client_1.expectString)(output.Type),
10718
+ Message: smithy_client_1.expectString(output.Message),
10719
+ Type: smithy_client_1.expectString(output.Type),
10720
10720
  };
10721
10721
  };
10722
10722
  const deserializeAws_restJson1BatchReadOperationResponse = (output, context) => {
@@ -10793,7 +10793,7 @@ const deserializeAws_restJson1BatchUpdateLinkAttributesResponse = (output, conte
10793
10793
  };
10794
10794
  const deserializeAws_restJson1BatchUpdateObjectAttributesResponse = (output, context) => {
10795
10795
  return {
10796
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
10796
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
10797
10797
  };
10798
10798
  };
10799
10799
  const deserializeAws_restJson1BatchWriteOperationResponse = (output, context) => {
@@ -10858,11 +10858,11 @@ const deserializeAws_restJson1BatchWriteOperationResponseList = (output, context
10858
10858
  const deserializeAws_restJson1Directory = (output, context) => {
10859
10859
  return {
10860
10860
  CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
10861
- ? new Date(Math.round(output.CreationDateTime * 1000))
10861
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDateTime)))
10862
10862
  : undefined,
10863
- DirectoryArn: (0, smithy_client_1.expectString)(output.DirectoryArn),
10864
- Name: (0, smithy_client_1.expectString)(output.Name),
10865
- State: (0, smithy_client_1.expectString)(output.State),
10863
+ DirectoryArn: smithy_client_1.expectString(output.DirectoryArn),
10864
+ Name: smithy_client_1.expectString(output.Name),
10865
+ State: smithy_client_1.expectString(output.State),
10866
10866
  };
10867
10867
  };
10868
10868
  const deserializeAws_restJson1DirectoryList = (output, context) => {
@@ -10877,9 +10877,9 @@ const deserializeAws_restJson1DirectoryList = (output, context) => {
10877
10877
  };
10878
10878
  const deserializeAws_restJson1Facet = (output, context) => {
10879
10879
  return {
10880
- FacetStyle: (0, smithy_client_1.expectString)(output.FacetStyle),
10881
- Name: (0, smithy_client_1.expectString)(output.Name),
10882
- ObjectType: (0, smithy_client_1.expectString)(output.ObjectType),
10880
+ FacetStyle: smithy_client_1.expectString(output.FacetStyle),
10881
+ Name: smithy_client_1.expectString(output.Name),
10882
+ ObjectType: smithy_client_1.expectString(output.ObjectType),
10883
10883
  };
10884
10884
  };
10885
10885
  const deserializeAws_restJson1FacetAttribute = (output, context) => {
@@ -10890,20 +10890,20 @@ const deserializeAws_restJson1FacetAttribute = (output, context) => {
10890
10890
  AttributeReference: output.AttributeReference !== undefined && output.AttributeReference !== null
10891
10891
  ? deserializeAws_restJson1FacetAttributeReference(output.AttributeReference, context)
10892
10892
  : undefined,
10893
- Name: (0, smithy_client_1.expectString)(output.Name),
10894
- RequiredBehavior: (0, smithy_client_1.expectString)(output.RequiredBehavior),
10893
+ Name: smithy_client_1.expectString(output.Name),
10894
+ RequiredBehavior: smithy_client_1.expectString(output.RequiredBehavior),
10895
10895
  };
10896
10896
  };
10897
10897
  const deserializeAws_restJson1FacetAttributeDefinition = (output, context) => {
10898
10898
  return {
10899
10899
  DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
10900
- ? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
10900
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.DefaultValue), context)
10901
10901
  : undefined,
10902
- IsImmutable: (0, smithy_client_1.expectBoolean)(output.IsImmutable),
10902
+ IsImmutable: smithy_client_1.expectBoolean(output.IsImmutable),
10903
10903
  Rules: output.Rules !== undefined && output.Rules !== null
10904
10904
  ? deserializeAws_restJson1RuleMap(output.Rules, context)
10905
10905
  : undefined,
10906
- Type: (0, smithy_client_1.expectString)(output.Type),
10906
+ Type: smithy_client_1.expectString(output.Type),
10907
10907
  };
10908
10908
  };
10909
10909
  const deserializeAws_restJson1FacetAttributeList = (output, context) => {
@@ -10918,8 +10918,8 @@ const deserializeAws_restJson1FacetAttributeList = (output, context) => {
10918
10918
  };
10919
10919
  const deserializeAws_restJson1FacetAttributeReference = (output, context) => {
10920
10920
  return {
10921
- TargetAttributeName: (0, smithy_client_1.expectString)(output.TargetAttributeName),
10922
- TargetFacetName: (0, smithy_client_1.expectString)(output.TargetFacetName),
10921
+ TargetAttributeName: smithy_client_1.expectString(output.TargetAttributeName),
10922
+ TargetFacetName: smithy_client_1.expectString(output.TargetFacetName),
10923
10923
  };
10924
10924
  };
10925
10925
  const deserializeAws_restJson1FacetNameList = (output, context) => {
@@ -10929,7 +10929,7 @@ const deserializeAws_restJson1FacetNameList = (output, context) => {
10929
10929
  if (entry === null) {
10930
10930
  return null;
10931
10931
  }
10932
- return (0, smithy_client_1.expectString)(entry);
10932
+ return smithy_client_1.expectString(entry);
10933
10933
  });
10934
10934
  };
10935
10935
  const deserializeAws_restJson1IndexAttachment = (output, context) => {
@@ -10937,7 +10937,7 @@ const deserializeAws_restJson1IndexAttachment = (output, context) => {
10937
10937
  IndexedAttributes: output.IndexedAttributes !== undefined && output.IndexedAttributes !== null
10938
10938
  ? deserializeAws_restJson1AttributeKeyAndValueList(output.IndexedAttributes, context)
10939
10939
  : undefined,
10940
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
10940
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
10941
10941
  };
10942
10942
  };
10943
10943
  const deserializeAws_restJson1IndexAttachmentList = (output, context) => {
@@ -10957,7 +10957,7 @@ const deserializeAws_restJson1LinkNameToObjectIdentifierMap = (output, context)
10957
10957
  }
10958
10958
  return {
10959
10959
  ...acc,
10960
- [key]: (0, smithy_client_1.expectString)(value),
10960
+ [key]: smithy_client_1.expectString(value),
10961
10961
  };
10962
10962
  }, {});
10963
10963
  };
@@ -10973,8 +10973,8 @@ const deserializeAws_restJson1ObjectIdentifierAndLinkNameList = (output, context
10973
10973
  };
10974
10974
  const deserializeAws_restJson1ObjectIdentifierAndLinkNameTuple = (output, context) => {
10975
10975
  return {
10976
- LinkName: (0, smithy_client_1.expectString)(output.LinkName),
10977
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
10976
+ LinkName: smithy_client_1.expectString(output.LinkName),
10977
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
10978
10978
  };
10979
10979
  };
10980
10980
  const deserializeAws_restJson1ObjectIdentifierList = (output, context) => {
@@ -10984,7 +10984,7 @@ const deserializeAws_restJson1ObjectIdentifierList = (output, context) => {
10984
10984
  if (entry === null) {
10985
10985
  return null;
10986
10986
  }
10987
- return (0, smithy_client_1.expectString)(entry);
10987
+ return smithy_client_1.expectString(entry);
10988
10988
  });
10989
10989
  };
10990
10990
  const deserializeAws_restJson1ObjectIdentifierToLinkNameMap = (output, context) => {
@@ -10994,13 +10994,13 @@ const deserializeAws_restJson1ObjectIdentifierToLinkNameMap = (output, context)
10994
10994
  }
10995
10995
  return {
10996
10996
  ...acc,
10997
- [key]: (0, smithy_client_1.expectString)(value),
10997
+ [key]: smithy_client_1.expectString(value),
10998
10998
  };
10999
10999
  }, {});
11000
11000
  };
11001
11001
  const deserializeAws_restJson1ObjectReference = (output, context) => {
11002
11002
  return {
11003
- Selector: (0, smithy_client_1.expectString)(output.Selector),
11003
+ Selector: smithy_client_1.expectString(output.Selector),
11004
11004
  };
11005
11005
  };
11006
11006
  const deserializeAws_restJson1PathToObjectIdentifiers = (output, context) => {
@@ -11008,7 +11008,7 @@ const deserializeAws_restJson1PathToObjectIdentifiers = (output, context) => {
11008
11008
  ObjectIdentifiers: output.ObjectIdentifiers !== undefined && output.ObjectIdentifiers !== null
11009
11009
  ? deserializeAws_restJson1ObjectIdentifierList(output.ObjectIdentifiers, context)
11010
11010
  : undefined,
11011
- Path: (0, smithy_client_1.expectString)(output.Path),
11011
+ Path: smithy_client_1.expectString(output.Path),
11012
11012
  };
11013
11013
  };
11014
11014
  const deserializeAws_restJson1PathToObjectIdentifiersList = (output, context) => {
@@ -11023,9 +11023,9 @@ const deserializeAws_restJson1PathToObjectIdentifiersList = (output, context) =>
11023
11023
  };
11024
11024
  const deserializeAws_restJson1PolicyAttachment = (output, context) => {
11025
11025
  return {
11026
- ObjectIdentifier: (0, smithy_client_1.expectString)(output.ObjectIdentifier),
11027
- PolicyId: (0, smithy_client_1.expectString)(output.PolicyId),
11028
- PolicyType: (0, smithy_client_1.expectString)(output.PolicyType),
11026
+ ObjectIdentifier: smithy_client_1.expectString(output.ObjectIdentifier),
11027
+ PolicyId: smithy_client_1.expectString(output.PolicyId),
11028
+ PolicyType: smithy_client_1.expectString(output.PolicyType),
11029
11029
  };
11030
11030
  };
11031
11031
  const deserializeAws_restJson1PolicyAttachmentList = (output, context) => {
@@ -11040,7 +11040,7 @@ const deserializeAws_restJson1PolicyAttachmentList = (output, context) => {
11040
11040
  };
11041
11041
  const deserializeAws_restJson1PolicyToPath = (output, context) => {
11042
11042
  return {
11043
- Path: (0, smithy_client_1.expectString)(output.Path),
11043
+ Path: smithy_client_1.expectString(output.Path),
11044
11044
  Policies: output.Policies !== undefined && output.Policies !== null
11045
11045
  ? deserializeAws_restJson1PolicyAttachmentList(output.Policies, context)
11046
11046
  : undefined,
@@ -11061,7 +11061,7 @@ const deserializeAws_restJson1Rule = (output, context) => {
11061
11061
  Parameters: output.Parameters !== undefined && output.Parameters !== null
11062
11062
  ? deserializeAws_restJson1RuleParameterMap(output.Parameters, context)
11063
11063
  : undefined,
11064
- Type: (0, smithy_client_1.expectString)(output.Type),
11064
+ Type: smithy_client_1.expectString(output.Type),
11065
11065
  };
11066
11066
  };
11067
11067
  const deserializeAws_restJson1RuleMap = (output, context) => {
@@ -11082,14 +11082,14 @@ const deserializeAws_restJson1RuleParameterMap = (output, context) => {
11082
11082
  }
11083
11083
  return {
11084
11084
  ...acc,
11085
- [key]: (0, smithy_client_1.expectString)(value),
11085
+ [key]: smithy_client_1.expectString(value),
11086
11086
  };
11087
11087
  }, {});
11088
11088
  };
11089
11089
  const deserializeAws_restJson1SchemaFacet = (output, context) => {
11090
11090
  return {
11091
- FacetName: (0, smithy_client_1.expectString)(output.FacetName),
11092
- SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
11091
+ FacetName: smithy_client_1.expectString(output.FacetName),
11092
+ SchemaArn: smithy_client_1.expectString(output.SchemaArn),
11093
11093
  };
11094
11094
  };
11095
11095
  const deserializeAws_restJson1SchemaFacetList = (output, context) => {
@@ -11104,8 +11104,8 @@ const deserializeAws_restJson1SchemaFacetList = (output, context) => {
11104
11104
  };
11105
11105
  const deserializeAws_restJson1Tag = (output, context) => {
11106
11106
  return {
11107
- Key: (0, smithy_client_1.expectString)(output.Key),
11108
- Value: (0, smithy_client_1.expectString)(output.Value),
11107
+ Key: smithy_client_1.expectString(output.Key),
11108
+ Value: smithy_client_1.expectString(output.Value),
11109
11109
  };
11110
11110
  };
11111
11111
  const deserializeAws_restJson1TagList = (output, context) => {
@@ -11124,34 +11124,34 @@ const deserializeAws_restJson1TypedAttributeValue = (output, context) => {
11124
11124
  BinaryValue: context.base64Decoder(output.BinaryValue),
11125
11125
  };
11126
11126
  }
11127
- if ((0, smithy_client_1.expectBoolean)(output.BooleanValue) !== undefined) {
11128
- return { BooleanValue: (0, smithy_client_1.expectBoolean)(output.BooleanValue) };
11127
+ if (smithy_client_1.expectBoolean(output.BooleanValue) !== undefined) {
11128
+ return { BooleanValue: smithy_client_1.expectBoolean(output.BooleanValue) };
11129
11129
  }
11130
11130
  if (output.DatetimeValue !== undefined && output.DatetimeValue !== null) {
11131
11131
  return {
11132
- DatetimeValue: new Date(Math.round(output.DatetimeValue * 1000)),
11132
+ DatetimeValue: smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DatetimeValue))),
11133
11133
  };
11134
11134
  }
11135
- if ((0, smithy_client_1.expectString)(output.NumberValue) !== undefined) {
11136
- return { NumberValue: (0, smithy_client_1.expectString)(output.NumberValue) };
11135
+ if (smithy_client_1.expectString(output.NumberValue) !== undefined) {
11136
+ return { NumberValue: smithy_client_1.expectString(output.NumberValue) };
11137
11137
  }
11138
- if ((0, smithy_client_1.expectString)(output.StringValue) !== undefined) {
11139
- return { StringValue: (0, smithy_client_1.expectString)(output.StringValue) };
11138
+ if (smithy_client_1.expectString(output.StringValue) !== undefined) {
11139
+ return { StringValue: smithy_client_1.expectString(output.StringValue) };
11140
11140
  }
11141
11141
  return { $unknown: Object.entries(output)[0] };
11142
11142
  };
11143
11143
  const deserializeAws_restJson1TypedLinkAttributeDefinition = (output, context) => {
11144
11144
  return {
11145
11145
  DefaultValue: output.DefaultValue !== undefined && output.DefaultValue !== null
11146
- ? deserializeAws_restJson1TypedAttributeValue(output.DefaultValue, context)
11146
+ ? deserializeAws_restJson1TypedAttributeValue(smithy_client_1.expectUnion(output.DefaultValue), context)
11147
11147
  : undefined,
11148
- IsImmutable: (0, smithy_client_1.expectBoolean)(output.IsImmutable),
11149
- Name: (0, smithy_client_1.expectString)(output.Name),
11150
- RequiredBehavior: (0, smithy_client_1.expectString)(output.RequiredBehavior),
11148
+ IsImmutable: smithy_client_1.expectBoolean(output.IsImmutable),
11149
+ Name: smithy_client_1.expectString(output.Name),
11150
+ RequiredBehavior: smithy_client_1.expectString(output.RequiredBehavior),
11151
11151
  Rules: output.Rules !== undefined && output.Rules !== null
11152
11152
  ? deserializeAws_restJson1RuleMap(output.Rules, context)
11153
11153
  : undefined,
11154
- Type: (0, smithy_client_1.expectString)(output.Type),
11154
+ Type: smithy_client_1.expectString(output.Type),
11155
11155
  };
11156
11156
  };
11157
11157
  const deserializeAws_restJson1TypedLinkAttributeDefinitionList = (output, context) => {
@@ -11171,13 +11171,13 @@ const deserializeAws_restJson1TypedLinkNameList = (output, context) => {
11171
11171
  if (entry === null) {
11172
11172
  return null;
11173
11173
  }
11174
- return (0, smithy_client_1.expectString)(entry);
11174
+ return smithy_client_1.expectString(entry);
11175
11175
  });
11176
11176
  };
11177
11177
  const deserializeAws_restJson1TypedLinkSchemaAndFacetName = (output, context) => {
11178
11178
  return {
11179
- SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
11180
- TypedLinkName: (0, smithy_client_1.expectString)(output.TypedLinkName),
11179
+ SchemaArn: smithy_client_1.expectString(output.SchemaArn),
11180
+ TypedLinkName: smithy_client_1.expectString(output.TypedLinkName),
11181
11181
  };
11182
11182
  };
11183
11183
  const deserializeAws_restJson1TypedLinkSpecifier = (output, context) => {