@aws-sdk/client-clouddirectory 3.54.1 → 3.58.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 (97) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/CloudDirectoryClient.js +13 -13
  3. package/dist-cjs/commands/AddFacetToObjectCommand.js +3 -3
  4. package/dist-cjs/commands/ApplySchemaCommand.js +3 -3
  5. package/dist-cjs/commands/AttachObjectCommand.js +3 -3
  6. package/dist-cjs/commands/AttachPolicyCommand.js +3 -3
  7. package/dist-cjs/commands/AttachToIndexCommand.js +3 -3
  8. package/dist-cjs/commands/AttachTypedLinkCommand.js +3 -3
  9. package/dist-cjs/commands/BatchReadCommand.js +3 -3
  10. package/dist-cjs/commands/BatchWriteCommand.js +3 -3
  11. package/dist-cjs/commands/CreateDirectoryCommand.js +3 -3
  12. package/dist-cjs/commands/CreateFacetCommand.js +3 -3
  13. package/dist-cjs/commands/CreateIndexCommand.js +3 -3
  14. package/dist-cjs/commands/CreateObjectCommand.js +3 -3
  15. package/dist-cjs/commands/CreateSchemaCommand.js +3 -3
  16. package/dist-cjs/commands/CreateTypedLinkFacetCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteDirectoryCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteFacetCommand.js +3 -3
  19. package/dist-cjs/commands/DeleteObjectCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteSchemaCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteTypedLinkFacetCommand.js +3 -3
  22. package/dist-cjs/commands/DetachFromIndexCommand.js +3 -3
  23. package/dist-cjs/commands/DetachObjectCommand.js +3 -3
  24. package/dist-cjs/commands/DetachPolicyCommand.js +3 -3
  25. package/dist-cjs/commands/DetachTypedLinkCommand.js +3 -3
  26. package/dist-cjs/commands/DisableDirectoryCommand.js +3 -3
  27. package/dist-cjs/commands/EnableDirectoryCommand.js +3 -3
  28. package/dist-cjs/commands/GetAppliedSchemaVersionCommand.js +3 -3
  29. package/dist-cjs/commands/GetDirectoryCommand.js +3 -3
  30. package/dist-cjs/commands/GetFacetCommand.js +3 -3
  31. package/dist-cjs/commands/GetLinkAttributesCommand.js +3 -3
  32. package/dist-cjs/commands/GetObjectAttributesCommand.js +3 -3
  33. package/dist-cjs/commands/GetObjectInformationCommand.js +3 -3
  34. package/dist-cjs/commands/GetSchemaAsJsonCommand.js +3 -3
  35. package/dist-cjs/commands/GetTypedLinkFacetInformationCommand.js +3 -3
  36. package/dist-cjs/commands/ListAppliedSchemaArnsCommand.js +3 -3
  37. package/dist-cjs/commands/ListAttachedIndicesCommand.js +3 -3
  38. package/dist-cjs/commands/ListDevelopmentSchemaArnsCommand.js +3 -3
  39. package/dist-cjs/commands/ListDirectoriesCommand.js +3 -3
  40. package/dist-cjs/commands/ListFacetAttributesCommand.js +3 -3
  41. package/dist-cjs/commands/ListFacetNamesCommand.js +3 -3
  42. package/dist-cjs/commands/ListIncomingTypedLinksCommand.js +3 -3
  43. package/dist-cjs/commands/ListIndexCommand.js +3 -3
  44. package/dist-cjs/commands/ListManagedSchemaArnsCommand.js +3 -3
  45. package/dist-cjs/commands/ListObjectAttributesCommand.js +3 -3
  46. package/dist-cjs/commands/ListObjectChildrenCommand.js +3 -3
  47. package/dist-cjs/commands/ListObjectParentPathsCommand.js +3 -3
  48. package/dist-cjs/commands/ListObjectParentsCommand.js +3 -3
  49. package/dist-cjs/commands/ListObjectPoliciesCommand.js +3 -3
  50. package/dist-cjs/commands/ListOutgoingTypedLinksCommand.js +3 -3
  51. package/dist-cjs/commands/ListPolicyAttachmentsCommand.js +3 -3
  52. package/dist-cjs/commands/ListPublishedSchemaArnsCommand.js +3 -3
  53. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  54. package/dist-cjs/commands/ListTypedLinkFacetAttributesCommand.js +3 -3
  55. package/dist-cjs/commands/ListTypedLinkFacetNamesCommand.js +3 -3
  56. package/dist-cjs/commands/LookupPolicyCommand.js +3 -3
  57. package/dist-cjs/commands/PublishSchemaCommand.js +3 -3
  58. package/dist-cjs/commands/PutSchemaFromJsonCommand.js +3 -3
  59. package/dist-cjs/commands/RemoveFacetFromObjectCommand.js +3 -3
  60. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  61. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  62. package/dist-cjs/commands/UpdateFacetCommand.js +3 -3
  63. package/dist-cjs/commands/UpdateLinkAttributesCommand.js +3 -3
  64. package/dist-cjs/commands/UpdateObjectAttributesCommand.js +3 -3
  65. package/dist-cjs/commands/UpdateSchemaCommand.js +3 -3
  66. package/dist-cjs/commands/UpdateTypedLinkFacetCommand.js +3 -3
  67. package/dist-cjs/commands/UpgradeAppliedSchemaCommand.js +3 -3
  68. package/dist-cjs/commands/UpgradePublishedSchemaCommand.js +3 -3
  69. package/dist-cjs/endpoints.js +1 -1
  70. package/dist-cjs/protocols/Aws_restJson1.js +315 -315
  71. package/dist-cjs/runtimeConfig.browser.js +4 -4
  72. package/dist-cjs/runtimeConfig.js +9 -9
  73. package/dist-cjs/runtimeConfig.native.js +1 -1
  74. package/dist-es/CloudDirectory.js +66 -66
  75. package/dist-es/pagination/ListAppliedSchemaArnsPaginator.js +4 -4
  76. package/dist-es/pagination/ListAttachedIndicesPaginator.js +4 -4
  77. package/dist-es/pagination/ListDevelopmentSchemaArnsPaginator.js +4 -4
  78. package/dist-es/pagination/ListDirectoriesPaginator.js +4 -4
  79. package/dist-es/pagination/ListFacetAttributesPaginator.js +4 -4
  80. package/dist-es/pagination/ListFacetNamesPaginator.js +4 -4
  81. package/dist-es/pagination/ListIndexPaginator.js +4 -4
  82. package/dist-es/pagination/ListManagedSchemaArnsPaginator.js +4 -4
  83. package/dist-es/pagination/ListObjectAttributesPaginator.js +4 -4
  84. package/dist-es/pagination/ListObjectChildrenPaginator.js +4 -4
  85. package/dist-es/pagination/ListObjectParentPathsPaginator.js +4 -4
  86. package/dist-es/pagination/ListObjectParentsPaginator.js +4 -4
  87. package/dist-es/pagination/ListObjectPoliciesPaginator.js +4 -4
  88. package/dist-es/pagination/ListPolicyAttachmentsPaginator.js +4 -4
  89. package/dist-es/pagination/ListPublishedSchemaArnsPaginator.js +4 -4
  90. package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -4
  91. package/dist-es/pagination/ListTypedLinkFacetAttributesPaginator.js +4 -4
  92. package/dist-es/pagination/ListTypedLinkFacetNamesPaginator.js +4 -4
  93. package/dist-es/pagination/LookupPolicyPaginator.js +4 -4
  94. package/dist-es/protocols/Aws_restJson1.js +66 -66
  95. package/dist-types/runtimeConfig.native.d.ts +2 -2
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  97. package/package.json +34 -34
@@ -11,7 +11,7 @@ export var serializeAws_restJson1AddFacetToObjectCommand = function (input, cont
11
11
  case 1:
12
12
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
13
13
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
14
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
14
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
15
15
  "/amazonclouddirectory/2017-01-11/object/facets";
16
16
  body = JSON.stringify(__assign(__assign(__assign({}, (input.ObjectAttributeList !== undefined &&
17
17
  input.ObjectAttributeList !== null && {
@@ -41,7 +41,7 @@ export var serializeAws_restJson1ApplySchemaCommand = function (input, context)
41
41
  case 1:
42
42
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
43
43
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
44
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
44
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
45
45
  "/amazonclouddirectory/2017-01-11/schema/apply";
46
46
  body = JSON.stringify(__assign({}, (input.PublishedSchemaArn !== undefined &&
47
47
  input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn })));
@@ -65,7 +65,7 @@ export var serializeAws_restJson1AttachObjectCommand = function (input, context)
65
65
  case 1:
66
66
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
67
67
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
68
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
68
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
69
69
  "/amazonclouddirectory/2017-01-11/object/attach";
70
70
  body = JSON.stringify(__assign(__assign(__assign({}, (input.ChildReference !== undefined &&
71
71
  input.ChildReference !== null && {
@@ -94,7 +94,7 @@ export var serializeAws_restJson1AttachPolicyCommand = function (input, context)
94
94
  case 1:
95
95
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
96
96
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
97
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
97
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
98
98
  "/amazonclouddirectory/2017-01-11/policy/attach";
99
99
  body = JSON.stringify(__assign(__assign({}, (input.ObjectReference !== undefined &&
100
100
  input.ObjectReference !== null && {
@@ -123,7 +123,7 @@ export var serializeAws_restJson1AttachToIndexCommand = function (input, context
123
123
  case 1:
124
124
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
125
125
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
126
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
126
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
127
127
  "/amazonclouddirectory/2017-01-11/index/attach";
128
128
  body = JSON.stringify(__assign(__assign({}, (input.IndexReference !== undefined &&
129
129
  input.IndexReference !== null && {
@@ -152,7 +152,7 @@ export var serializeAws_restJson1AttachTypedLinkCommand = function (input, conte
152
152
  case 1:
153
153
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
154
154
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
155
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
155
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
156
156
  "/amazonclouddirectory/2017-01-11/typedlink/attach";
157
157
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes !== undefined &&
158
158
  input.Attributes !== null && {
@@ -187,7 +187,7 @@ export var serializeAws_restJson1BatchReadCommand = function (input, context) {
187
187
  case 1:
188
188
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
189
189
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
190
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
190
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
191
191
  "/amazonclouddirectory/2017-01-11/batchread";
192
192
  body = JSON.stringify(__assign({}, (input.Operations !== undefined &&
193
193
  input.Operations !== null && {
@@ -213,7 +213,7 @@ export var serializeAws_restJson1BatchWriteCommand = function (input, context) {
213
213
  case 1:
214
214
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
215
215
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
216
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
216
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
217
217
  "/amazonclouddirectory/2017-01-11/batchwrite";
218
218
  body = JSON.stringify(__assign({}, (input.Operations !== undefined &&
219
219
  input.Operations !== null && {
@@ -239,7 +239,7 @@ export var serializeAws_restJson1CreateDirectoryCommand = function (input, conte
239
239
  case 1:
240
240
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
241
241
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
242
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
242
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
243
243
  "/amazonclouddirectory/2017-01-11/directory/create";
244
244
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
245
245
  return [2, new __HttpRequest({
@@ -262,7 +262,7 @@ export var serializeAws_restJson1CreateFacetCommand = function (input, context)
262
262
  case 1:
263
263
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
264
264
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
265
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
265
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
266
266
  "/amazonclouddirectory/2017-01-11/facet/create";
267
267
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Attributes !== undefined &&
268
268
  input.Attributes !== null && { Attributes: serializeAws_restJson1FacetAttributeList(input.Attributes, context) })), (input.FacetStyle !== undefined && input.FacetStyle !== null && { FacetStyle: input.FacetStyle })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ObjectType !== undefined && input.ObjectType !== null && { ObjectType: input.ObjectType })));
@@ -286,7 +286,7 @@ export var serializeAws_restJson1CreateIndexCommand = function (input, context)
286
286
  case 1:
287
287
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
288
288
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
289
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/index";
289
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/index";
290
290
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IsUnique !== undefined && input.IsUnique !== null && { IsUnique: input.IsUnique })), (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.OrderedIndexedAttributeList !== undefined &&
291
291
  input.OrderedIndexedAttributeList !== null && {
292
292
  OrderedIndexedAttributeList: serializeAws_restJson1AttributeKeyList(input.OrderedIndexedAttributeList, context),
@@ -314,7 +314,7 @@ export var serializeAws_restJson1CreateObjectCommand = function (input, context)
314
314
  case 1:
315
315
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
316
316
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
317
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/object";
317
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/object";
318
318
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.ObjectAttributeList !== undefined &&
319
319
  input.ObjectAttributeList !== null && {
320
320
  ObjectAttributeList: serializeAws_restJson1AttributeKeyAndValueList(input.ObjectAttributeList, context),
@@ -347,7 +347,7 @@ export var serializeAws_restJson1CreateSchemaCommand = function (input, context)
347
347
  headers = {
348
348
  "content-type": "application/json",
349
349
  };
350
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
350
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
351
351
  "/amazonclouddirectory/2017-01-11/schema/create";
352
352
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
353
353
  return [2, new __HttpRequest({
@@ -370,7 +370,7 @@ export var serializeAws_restJson1CreateTypedLinkFacetCommand = function (input,
370
370
  case 1:
371
371
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
372
372
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
373
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
373
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
374
374
  "/amazonclouddirectory/2017-01-11/typedlink/facet/create";
375
375
  body = JSON.stringify(__assign({}, (input.Facet !== undefined &&
376
376
  input.Facet !== null && { Facet: serializeAws_restJson1TypedLinkFacet(input.Facet, context) })));
@@ -394,7 +394,7 @@ export var serializeAws_restJson1DeleteDirectoryCommand = function (input, conte
394
394
  case 1:
395
395
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
396
396
  headers = __assign({}, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
397
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
397
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
398
398
  "/amazonclouddirectory/2017-01-11/directory";
399
399
  return [2, new __HttpRequest({
400
400
  protocol: protocol,
@@ -416,7 +416,7 @@ export var serializeAws_restJson1DeleteFacetCommand = function (input, context)
416
416
  case 1:
417
417
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
418
418
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
419
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
419
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
420
420
  "/amazonclouddirectory/2017-01-11/facet/delete";
421
421
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
422
422
  return [2, new __HttpRequest({
@@ -439,7 +439,7 @@ export var serializeAws_restJson1DeleteObjectCommand = function (input, context)
439
439
  case 1:
440
440
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
441
441
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
442
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
442
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
443
443
  "/amazonclouddirectory/2017-01-11/object/delete";
444
444
  body = JSON.stringify(__assign({}, (input.ObjectReference !== undefined &&
445
445
  input.ObjectReference !== null && {
@@ -465,7 +465,7 @@ export var serializeAws_restJson1DeleteSchemaCommand = function (input, context)
465
465
  case 1:
466
466
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
467
467
  headers = __assign({}, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
468
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/schema";
468
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/schema";
469
469
  return [2, new __HttpRequest({
470
470
  protocol: protocol,
471
471
  hostname: hostname,
@@ -486,7 +486,7 @@ export var serializeAws_restJson1DeleteTypedLinkFacetCommand = function (input,
486
486
  case 1:
487
487
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
488
488
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
489
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
489
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
490
490
  "/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
491
491
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
492
492
  return [2, new __HttpRequest({
@@ -509,7 +509,7 @@ export var serializeAws_restJson1DetachFromIndexCommand = function (input, conte
509
509
  case 1:
510
510
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
511
511
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
512
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
512
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
513
513
  "/amazonclouddirectory/2017-01-11/index/detach";
514
514
  body = JSON.stringify(__assign(__assign({}, (input.IndexReference !== undefined &&
515
515
  input.IndexReference !== null && {
@@ -538,7 +538,7 @@ export var serializeAws_restJson1DetachObjectCommand = function (input, context)
538
538
  case 1:
539
539
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
540
540
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
541
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
541
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
542
542
  "/amazonclouddirectory/2017-01-11/object/detach";
543
543
  body = JSON.stringify(__assign(__assign({}, (input.LinkName !== undefined && input.LinkName !== null && { LinkName: input.LinkName })), (input.ParentReference !== undefined &&
544
544
  input.ParentReference !== null && {
@@ -564,7 +564,7 @@ export var serializeAws_restJson1DetachPolicyCommand = function (input, context)
564
564
  case 1:
565
565
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
566
566
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
567
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
567
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
568
568
  "/amazonclouddirectory/2017-01-11/policy/detach";
569
569
  body = JSON.stringify(__assign(__assign({}, (input.ObjectReference !== undefined &&
570
570
  input.ObjectReference !== null && {
@@ -593,7 +593,7 @@ export var serializeAws_restJson1DetachTypedLinkCommand = function (input, conte
593
593
  case 1:
594
594
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
595
595
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
596
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
596
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
597
597
  "/amazonclouddirectory/2017-01-11/typedlink/detach";
598
598
  body = JSON.stringify(__assign({}, (input.TypedLinkSpecifier !== undefined &&
599
599
  input.TypedLinkSpecifier !== null && {
@@ -619,7 +619,7 @@ export var serializeAws_restJson1DisableDirectoryCommand = function (input, cont
619
619
  case 1:
620
620
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
621
621
  headers = __assign({}, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
622
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
622
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
623
623
  "/amazonclouddirectory/2017-01-11/directory/disable";
624
624
  return [2, new __HttpRequest({
625
625
  protocol: protocol,
@@ -641,7 +641,7 @@ export var serializeAws_restJson1EnableDirectoryCommand = function (input, conte
641
641
  case 1:
642
642
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
643
643
  headers = __assign({}, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
644
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
644
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
645
645
  "/amazonclouddirectory/2017-01-11/directory/enable";
646
646
  return [2, new __HttpRequest({
647
647
  protocol: protocol,
@@ -665,7 +665,7 @@ export var serializeAws_restJson1GetAppliedSchemaVersionCommand = function (inpu
665
665
  headers = {
666
666
  "content-type": "application/json",
667
667
  };
668
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
668
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
669
669
  "/amazonclouddirectory/2017-01-11/schema/getappliedschema";
670
670
  body = JSON.stringify(__assign({}, (input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn })));
671
671
  return [2, new __HttpRequest({
@@ -688,7 +688,7 @@ export var serializeAws_restJson1GetDirectoryCommand = function (input, context)
688
688
  case 1:
689
689
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
690
690
  headers = __assign({}, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
691
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
691
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
692
692
  "/amazonclouddirectory/2017-01-11/directory/get";
693
693
  return [2, new __HttpRequest({
694
694
  protocol: protocol,
@@ -710,7 +710,7 @@ export var serializeAws_restJson1GetFacetCommand = function (input, context) { r
710
710
  case 1:
711
711
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
712
712
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
713
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
713
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
714
714
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
715
715
  return [2, new __HttpRequest({
716
716
  protocol: protocol,
@@ -732,7 +732,7 @@ export var serializeAws_restJson1GetLinkAttributesCommand = function (input, con
732
732
  case 1:
733
733
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
734
734
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
735
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
735
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
736
736
  "/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
737
737
  body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames !== undefined &&
738
738
  input.AttributeNames !== null && {
@@ -762,7 +762,7 @@ export var serializeAws_restJson1GetObjectAttributesCommand = function (input, c
762
762
  case 1:
763
763
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
764
764
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
765
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
765
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
766
766
  "/amazonclouddirectory/2017-01-11/object/attributes/get";
767
767
  body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeNames !== undefined &&
768
768
  input.AttributeNames !== null && {
@@ -792,7 +792,7 @@ export var serializeAws_restJson1GetObjectInformationCommand = function (input,
792
792
  case 1:
793
793
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
794
794
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
795
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
795
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
796
796
  "/amazonclouddirectory/2017-01-11/object/information";
797
797
  body = JSON.stringify(__assign({}, (input.ObjectReference !== undefined &&
798
798
  input.ObjectReference !== null && {
@@ -818,7 +818,7 @@ export var serializeAws_restJson1GetSchemaAsJsonCommand = function (input, conte
818
818
  case 1:
819
819
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
820
820
  headers = __assign({}, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
821
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
821
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
822
822
  "/amazonclouddirectory/2017-01-11/schema/json";
823
823
  return [2, new __HttpRequest({
824
824
  protocol: protocol,
@@ -840,7 +840,7 @@ export var serializeAws_restJson1GetTypedLinkFacetInformationCommand = function
840
840
  case 1:
841
841
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
842
842
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
843
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
843
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
844
844
  "/amazonclouddirectory/2017-01-11/typedlink/facet/get";
845
845
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
846
846
  return [2, new __HttpRequest({
@@ -865,7 +865,7 @@ export var serializeAws_restJson1ListAppliedSchemaArnsCommand = function (input,
865
865
  headers = {
866
866
  "content-type": "application/json",
867
867
  };
868
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
868
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
869
869
  "/amazonclouddirectory/2017-01-11/schema/applied";
870
870
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DirectoryArn !== undefined && input.DirectoryArn !== null && { DirectoryArn: input.DirectoryArn })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn })));
871
871
  return [2, new __HttpRequest({
@@ -888,7 +888,7 @@ export var serializeAws_restJson1ListAttachedIndicesCommand = function (input, c
888
888
  case 1:
889
889
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
890
890
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
891
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
891
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
892
892
  "/amazonclouddirectory/2017-01-11/object/indices";
893
893
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TargetReference !== undefined &&
894
894
  input.TargetReference !== null && {
@@ -916,7 +916,7 @@ export var serializeAws_restJson1ListDevelopmentSchemaArnsCommand = function (in
916
916
  headers = {
917
917
  "content-type": "application/json",
918
918
  };
919
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
919
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
920
920
  "/amazonclouddirectory/2017-01-11/schema/development";
921
921
  body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
922
922
  return [2, new __HttpRequest({
@@ -941,7 +941,7 @@ export var serializeAws_restJson1ListDirectoriesCommand = function (input, conte
941
941
  headers = {
942
942
  "content-type": "application/json",
943
943
  };
944
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
944
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
945
945
  "/amazonclouddirectory/2017-01-11/directory/list";
946
946
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.state !== undefined && input.state !== null && { state: input.state })));
947
947
  return [2, new __HttpRequest({
@@ -964,7 +964,7 @@ export var serializeAws_restJson1ListFacetAttributesCommand = function (input, c
964
964
  case 1:
965
965
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
966
966
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
967
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
967
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
968
968
  "/amazonclouddirectory/2017-01-11/facet/attributes";
969
969
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
970
970
  return [2, new __HttpRequest({
@@ -987,7 +987,7 @@ export var serializeAws_restJson1ListFacetNamesCommand = function (input, contex
987
987
  case 1:
988
988
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
989
989
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
990
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
990
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
991
991
  "/amazonclouddirectory/2017-01-11/facet/list";
992
992
  body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
993
993
  return [2, new __HttpRequest({
@@ -1010,7 +1010,7 @@ export var serializeAws_restJson1ListIncomingTypedLinksCommand = function (input
1010
1010
  case 1:
1011
1011
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1012
1012
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1013
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1013
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1014
1014
  "/amazonclouddirectory/2017-01-11/typedlink/incoming";
1015
1015
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel !== undefined &&
1016
1016
  input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges !== undefined &&
@@ -1043,7 +1043,7 @@ export var serializeAws_restJson1ListIndexCommand = function (input, context) {
1043
1043
  case 1:
1044
1044
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1045
1045
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
1046
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1046
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1047
1047
  "/amazonclouddirectory/2017-01-11/index/targets";
1048
1048
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IndexReference !== undefined &&
1049
1049
  input.IndexReference !== null && {
@@ -1074,7 +1074,7 @@ export var serializeAws_restJson1ListManagedSchemaArnsCommand = function (input,
1074
1074
  headers = {
1075
1075
  "content-type": "application/json",
1076
1076
  };
1077
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1077
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1078
1078
  "/amazonclouddirectory/2017-01-11/schema/managed";
1079
1079
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn })));
1080
1080
  return [2, new __HttpRequest({
@@ -1097,7 +1097,7 @@ export var serializeAws_restJson1ListObjectAttributesCommand = function (input,
1097
1097
  case 1:
1098
1098
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1099
1099
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
1100
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1100
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1101
1101
  "/amazonclouddirectory/2017-01-11/object/attributes";
1102
1102
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FacetFilter !== undefined &&
1103
1103
  input.FacetFilter !== null && { FacetFilter: serializeAws_restJson1SchemaFacet(input.FacetFilter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
@@ -1124,7 +1124,7 @@ export var serializeAws_restJson1ListObjectChildrenCommand = function (input, co
1124
1124
  case 1:
1125
1125
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1126
1126
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
1127
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1127
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1128
1128
  "/amazonclouddirectory/2017-01-11/object/children";
1129
1129
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
1130
1130
  input.ObjectReference !== null && {
@@ -1150,7 +1150,7 @@ export var serializeAws_restJson1ListObjectParentPathsCommand = function (input,
1150
1150
  case 1:
1151
1151
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1152
1152
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1153
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1153
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1154
1154
  "/amazonclouddirectory/2017-01-11/object/parentpaths";
1155
1155
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
1156
1156
  input.ObjectReference !== null && {
@@ -1176,7 +1176,7 @@ export var serializeAws_restJson1ListObjectParentsCommand = function (input, con
1176
1176
  case 1:
1177
1177
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1178
1178
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
1179
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1179
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1180
1180
  "/amazonclouddirectory/2017-01-11/object/parent";
1181
1181
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IncludeAllLinksToEachParent !== undefined &&
1182
1182
  input.IncludeAllLinksToEachParent !== null && { IncludeAllLinksToEachParent: input.IncludeAllLinksToEachParent })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
@@ -1203,7 +1203,7 @@ export var serializeAws_restJson1ListObjectPoliciesCommand = function (input, co
1203
1203
  case 1:
1204
1204
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1205
1205
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
1206
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1206
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1207
1207
  "/amazonclouddirectory/2017-01-11/object/policy";
1208
1208
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
1209
1209
  input.ObjectReference !== null && {
@@ -1229,7 +1229,7 @@ export var serializeAws_restJson1ListOutgoingTypedLinksCommand = function (input
1229
1229
  case 1:
1230
1230
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1231
1231
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1232
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1232
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1233
1233
  "/amazonclouddirectory/2017-01-11/typedlink/outgoing";
1234
1234
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistencyLevel !== undefined &&
1235
1235
  input.ConsistencyLevel !== null && { ConsistencyLevel: input.ConsistencyLevel })), (input.FilterAttributeRanges !== undefined &&
@@ -1262,7 +1262,7 @@ export var serializeAws_restJson1ListPolicyAttachmentsCommand = function (input,
1262
1262
  case 1:
1263
1263
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1264
1264
  headers = __assign(__assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn })), (isSerializableHeaderValue(input.ConsistencyLevel) && { "x-amz-consistency-level": input.ConsistencyLevel }));
1265
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1265
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1266
1266
  "/amazonclouddirectory/2017-01-11/policy/attachment";
1267
1267
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.PolicyReference !== undefined &&
1268
1268
  input.PolicyReference !== null && {
@@ -1290,7 +1290,7 @@ export var serializeAws_restJson1ListPublishedSchemaArnsCommand = function (inpu
1290
1290
  headers = {
1291
1291
  "content-type": "application/json",
1292
1292
  };
1293
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1293
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1294
1294
  "/amazonclouddirectory/2017-01-11/schema/published";
1295
1295
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SchemaArn !== undefined && input.SchemaArn !== null && { SchemaArn: input.SchemaArn })));
1296
1296
  return [2, new __HttpRequest({
@@ -1315,7 +1315,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
1315
1315
  headers = {
1316
1316
  "content-type": "application/json",
1317
1317
  };
1318
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/tags";
1318
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/tags";
1319
1319
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })));
1320
1320
  return [2, new __HttpRequest({
1321
1321
  protocol: protocol,
@@ -1337,7 +1337,7 @@ export var serializeAws_restJson1ListTypedLinkFacetAttributesCommand = function
1337
1337
  case 1:
1338
1338
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1339
1339
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
1340
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1340
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1341
1341
  "/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
1342
1342
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
1343
1343
  return [2, new __HttpRequest({
@@ -1360,7 +1360,7 @@ export var serializeAws_restJson1ListTypedLinkFacetNamesCommand = function (inpu
1360
1360
  case 1:
1361
1361
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1362
1362
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
1363
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1363
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1364
1364
  "/amazonclouddirectory/2017-01-11/typedlink/facet/list";
1365
1365
  body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
1366
1366
  return [2, new __HttpRequest({
@@ -1383,7 +1383,7 @@ export var serializeAws_restJson1LookupPolicyCommand = function (input, context)
1383
1383
  case 1:
1384
1384
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1385
1385
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1386
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1386
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1387
1387
  "/amazonclouddirectory/2017-01-11/policy/lookup";
1388
1388
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObjectReference !== undefined &&
1389
1389
  input.ObjectReference !== null && {
@@ -1411,7 +1411,7 @@ export var serializeAws_restJson1PublishSchemaCommand = function (input, context
1411
1411
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DevelopmentSchemaArn) && {
1412
1412
  "x-amz-data-partition": input.DevelopmentSchemaArn,
1413
1413
  }));
1414
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1414
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1415
1415
  "/amazonclouddirectory/2017-01-11/schema/publish";
1416
1416
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MinorVersion !== undefined && input.MinorVersion !== null && { MinorVersion: input.MinorVersion })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Version !== undefined && input.Version !== null && { Version: input.Version })));
1417
1417
  return [2, new __HttpRequest({
@@ -1434,7 +1434,7 @@ export var serializeAws_restJson1PutSchemaFromJsonCommand = function (input, con
1434
1434
  case 1:
1435
1435
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1436
1436
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
1437
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1437
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1438
1438
  "/amazonclouddirectory/2017-01-11/schema/json";
1439
1439
  body = JSON.stringify(__assign({}, (input.Document !== undefined && input.Document !== null && { Document: input.Document })));
1440
1440
  return [2, new __HttpRequest({
@@ -1457,7 +1457,7 @@ export var serializeAws_restJson1RemoveFacetFromObjectCommand = function (input,
1457
1457
  case 1:
1458
1458
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1459
1459
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1460
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1460
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1461
1461
  "/amazonclouddirectory/2017-01-11/object/facets/delete";
1462
1462
  body = JSON.stringify(__assign(__assign({}, (input.ObjectReference !== undefined &&
1463
1463
  input.ObjectReference !== null && {
@@ -1486,7 +1486,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1486
1486
  headers = {
1487
1487
  "content-type": "application/json",
1488
1488
  };
1489
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/tags/add";
1489
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/tags/add";
1490
1490
  body = JSON.stringify(__assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined &&
1491
1491
  input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
1492
1492
  return [2, new __HttpRequest({
@@ -1511,7 +1511,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1511
1511
  headers = {
1512
1512
  "content-type": "application/json",
1513
1513
  };
1514
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1514
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1515
1515
  "/amazonclouddirectory/2017-01-11/tags/remove";
1516
1516
  body = JSON.stringify(__assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
1517
1517
  input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
@@ -1535,7 +1535,7 @@ export var serializeAws_restJson1UpdateFacetCommand = function (input, context)
1535
1535
  case 1:
1536
1536
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1537
1537
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
1538
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
1538
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/amazonclouddirectory/2017-01-11/facet";
1539
1539
  body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates !== undefined &&
1540
1540
  input.AttributeUpdates !== null && {
1541
1541
  AttributeUpdates: serializeAws_restJson1FacetAttributeUpdateList(input.AttributeUpdates, context),
@@ -1560,7 +1560,7 @@ export var serializeAws_restJson1UpdateLinkAttributesCommand = function (input,
1560
1560
  case 1:
1561
1561
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1562
1562
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1563
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1563
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1564
1564
  "/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
1565
1565
  body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates !== undefined &&
1566
1566
  input.AttributeUpdates !== null && {
@@ -1589,7 +1589,7 @@ export var serializeAws_restJson1UpdateObjectAttributesCommand = function (input
1589
1589
  case 1:
1590
1590
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1591
1591
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.DirectoryArn) && { "x-amz-data-partition": input.DirectoryArn }));
1592
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1592
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1593
1593
  "/amazonclouddirectory/2017-01-11/object/update";
1594
1594
  body = JSON.stringify(__assign(__assign({}, (input.AttributeUpdates !== undefined &&
1595
1595
  input.AttributeUpdates !== null && {
@@ -1618,7 +1618,7 @@ export var serializeAws_restJson1UpdateSchemaCommand = function (input, context)
1618
1618
  case 1:
1619
1619
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1620
1620
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
1621
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1621
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1622
1622
  "/amazonclouddirectory/2017-01-11/schema/update";
1623
1623
  body = JSON.stringify(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
1624
1624
  return [2, new __HttpRequest({
@@ -1641,7 +1641,7 @@ export var serializeAws_restJson1UpdateTypedLinkFacetCommand = function (input,
1641
1641
  case 1:
1642
1642
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1643
1643
  headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.SchemaArn) && { "x-amz-data-partition": input.SchemaArn }));
1644
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1644
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1645
1645
  "/amazonclouddirectory/2017-01-11/typedlink/facet";
1646
1646
  body = JSON.stringify(__assign(__assign(__assign({}, (input.AttributeUpdates !== undefined &&
1647
1647
  input.AttributeUpdates !== null && {
@@ -1672,7 +1672,7 @@ export var serializeAws_restJson1UpgradeAppliedSchemaCommand = function (input,
1672
1672
  headers = {
1673
1673
  "content-type": "application/json",
1674
1674
  };
1675
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1675
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1676
1676
  "/amazonclouddirectory/2017-01-11/schema/upgradeapplied";
1677
1677
  body = JSON.stringify(__assign(__assign(__assign({}, (input.DirectoryArn !== undefined && input.DirectoryArn !== null && { DirectoryArn: input.DirectoryArn })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.PublishedSchemaArn !== undefined &&
1678
1678
  input.PublishedSchemaArn !== null && { PublishedSchemaArn: input.PublishedSchemaArn })));
@@ -1698,7 +1698,7 @@ export var serializeAws_restJson1UpgradePublishedSchemaCommand = function (input
1698
1698
  headers = {
1699
1699
  "content-type": "application/json",
1700
1700
  };
1701
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1701
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1702
1702
  "/amazonclouddirectory/2017-01-11/schema/upgradepublished";
1703
1703
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.DevelopmentSchemaArn !== undefined &&
1704
1704
  input.DevelopmentSchemaArn !== null && { DevelopmentSchemaArn: input.DevelopmentSchemaArn })), (input.DryRun !== undefined && input.DryRun !== null && { DryRun: input.DryRun })), (input.MinorVersion !== undefined && input.MinorVersion !== null && { MinorVersion: input.MinorVersion })), (input.PublishedSchemaArn !== undefined &&