@aws-sdk/client-workdocs 3.294.0 → 3.295.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 (147) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/WorkDocs.js +15 -0
  3. package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +4 -4
  4. package/dist-cjs/commands/ActivateUserCommand.js +4 -4
  5. package/dist-cjs/commands/AddResourcePermissionsCommand.js +4 -4
  6. package/dist-cjs/commands/CreateCommentCommand.js +4 -4
  7. package/dist-cjs/commands/CreateCustomMetadataCommand.js +4 -4
  8. package/dist-cjs/commands/CreateFolderCommand.js +4 -4
  9. package/dist-cjs/commands/CreateLabelsCommand.js +4 -4
  10. package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +4 -4
  11. package/dist-cjs/commands/CreateUserCommand.js +4 -4
  12. package/dist-cjs/commands/DeactivateUserCommand.js +4 -4
  13. package/dist-cjs/commands/DeleteCommentCommand.js +4 -4
  14. package/dist-cjs/commands/DeleteCustomMetadataCommand.js +4 -4
  15. package/dist-cjs/commands/DeleteDocumentCommand.js +4 -4
  16. package/dist-cjs/commands/DeleteDocumentVersionCommand.js +4 -4
  17. package/dist-cjs/commands/DeleteFolderCommand.js +4 -4
  18. package/dist-cjs/commands/DeleteFolderContentsCommand.js +4 -4
  19. package/dist-cjs/commands/DeleteLabelsCommand.js +4 -4
  20. package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +4 -4
  21. package/dist-cjs/commands/DeleteUserCommand.js +4 -4
  22. package/dist-cjs/commands/DescribeActivitiesCommand.js +4 -4
  23. package/dist-cjs/commands/DescribeCommentsCommand.js +4 -4
  24. package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +4 -4
  25. package/dist-cjs/commands/DescribeFolderContentsCommand.js +4 -4
  26. package/dist-cjs/commands/DescribeGroupsCommand.js +4 -4
  27. package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +4 -4
  28. package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +4 -4
  29. package/dist-cjs/commands/DescribeRootFoldersCommand.js +4 -4
  30. package/dist-cjs/commands/DescribeUsersCommand.js +4 -4
  31. package/dist-cjs/commands/GetCurrentUserCommand.js +4 -4
  32. package/dist-cjs/commands/GetDocumentCommand.js +4 -4
  33. package/dist-cjs/commands/GetDocumentPathCommand.js +4 -4
  34. package/dist-cjs/commands/GetDocumentVersionCommand.js +4 -4
  35. package/dist-cjs/commands/GetFolderCommand.js +4 -4
  36. package/dist-cjs/commands/GetFolderPathCommand.js +4 -4
  37. package/dist-cjs/commands/GetResourcesCommand.js +4 -4
  38. package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +4 -4
  39. package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +4 -4
  40. package/dist-cjs/commands/RemoveResourcePermissionCommand.js +4 -4
  41. package/dist-cjs/commands/RestoreDocumentVersionsCommand.js +4 -4
  42. package/dist-cjs/commands/SearchResourcesCommand.js +46 -0
  43. package/dist-cjs/commands/UpdateDocumentCommand.js +4 -4
  44. package/dist-cjs/commands/UpdateDocumentVersionCommand.js +4 -4
  45. package/dist-cjs/commands/UpdateFolderCommand.js +4 -4
  46. package/dist-cjs/commands/UpdateUserCommand.js +4 -4
  47. package/dist-cjs/commands/index.js +1 -0
  48. package/dist-cjs/endpoint/ruleset.js +3 -3
  49. package/dist-cjs/models/models_0.js +168 -3
  50. package/dist-cjs/pagination/DescribeActivitiesPaginator.js +29 -0
  51. package/dist-cjs/pagination/DescribeCommentsPaginator.js +29 -0
  52. package/dist-cjs/pagination/DescribeGroupsPaginator.js +29 -0
  53. package/dist-cjs/pagination/DescribeNotificationSubscriptionsPaginator.js +29 -0
  54. package/dist-cjs/pagination/DescribeResourcePermissionsPaginator.js +29 -0
  55. package/dist-cjs/pagination/DescribeRootFoldersPaginator.js +29 -0
  56. package/dist-cjs/pagination/SearchResourcesPaginator.js +29 -0
  57. package/dist-cjs/pagination/index.js +7 -0
  58. package/dist-cjs/protocols/Aws_restJson1.js +245 -2
  59. package/dist-es/WorkDocs.js +15 -0
  60. package/dist-es/commands/AbortDocumentVersionUploadCommand.js +4 -4
  61. package/dist-es/commands/ActivateUserCommand.js +4 -4
  62. package/dist-es/commands/AddResourcePermissionsCommand.js +4 -4
  63. package/dist-es/commands/CreateCommentCommand.js +4 -4
  64. package/dist-es/commands/CreateCustomMetadataCommand.js +4 -4
  65. package/dist-es/commands/CreateFolderCommand.js +4 -4
  66. package/dist-es/commands/CreateLabelsCommand.js +4 -4
  67. package/dist-es/commands/CreateNotificationSubscriptionCommand.js +4 -4
  68. package/dist-es/commands/CreateUserCommand.js +4 -4
  69. package/dist-es/commands/DeactivateUserCommand.js +4 -4
  70. package/dist-es/commands/DeleteCommentCommand.js +4 -4
  71. package/dist-es/commands/DeleteCustomMetadataCommand.js +4 -4
  72. package/dist-es/commands/DeleteDocumentCommand.js +4 -4
  73. package/dist-es/commands/DeleteDocumentVersionCommand.js +4 -4
  74. package/dist-es/commands/DeleteFolderCommand.js +4 -4
  75. package/dist-es/commands/DeleteFolderContentsCommand.js +4 -4
  76. package/dist-es/commands/DeleteLabelsCommand.js +4 -4
  77. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +4 -4
  78. package/dist-es/commands/DeleteUserCommand.js +4 -4
  79. package/dist-es/commands/DescribeActivitiesCommand.js +4 -4
  80. package/dist-es/commands/DescribeCommentsCommand.js +4 -4
  81. package/dist-es/commands/DescribeDocumentVersionsCommand.js +4 -4
  82. package/dist-es/commands/DescribeFolderContentsCommand.js +4 -4
  83. package/dist-es/commands/DescribeGroupsCommand.js +4 -4
  84. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +4 -4
  85. package/dist-es/commands/DescribeResourcePermissionsCommand.js +4 -4
  86. package/dist-es/commands/DescribeRootFoldersCommand.js +4 -4
  87. package/dist-es/commands/DescribeUsersCommand.js +4 -4
  88. package/dist-es/commands/GetCurrentUserCommand.js +4 -4
  89. package/dist-es/commands/GetDocumentCommand.js +4 -4
  90. package/dist-es/commands/GetDocumentPathCommand.js +4 -4
  91. package/dist-es/commands/GetDocumentVersionCommand.js +4 -4
  92. package/dist-es/commands/GetFolderCommand.js +4 -4
  93. package/dist-es/commands/GetFolderPathCommand.js +4 -4
  94. package/dist-es/commands/GetResourcesCommand.js +4 -4
  95. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +4 -4
  96. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +4 -4
  97. package/dist-es/commands/RemoveResourcePermissionCommand.js +4 -4
  98. package/dist-es/commands/RestoreDocumentVersionsCommand.js +4 -4
  99. package/dist-es/commands/SearchResourcesCommand.js +42 -0
  100. package/dist-es/commands/UpdateDocumentCommand.js +4 -4
  101. package/dist-es/commands/UpdateDocumentVersionCommand.js +4 -4
  102. package/dist-es/commands/UpdateFolderCommand.js +4 -4
  103. package/dist-es/commands/UpdateUserCommand.js +4 -4
  104. package/dist-es/commands/index.js +1 -0
  105. package/dist-es/endpoint/ruleset.js +3 -3
  106. package/dist-es/models/models_0.js +156 -0
  107. package/dist-es/pagination/DescribeActivitiesPaginator.js +25 -0
  108. package/dist-es/pagination/DescribeCommentsPaginator.js +25 -0
  109. package/dist-es/pagination/DescribeGroupsPaginator.js +25 -0
  110. package/dist-es/pagination/DescribeNotificationSubscriptionsPaginator.js +25 -0
  111. package/dist-es/pagination/DescribeResourcePermissionsPaginator.js +25 -0
  112. package/dist-es/pagination/DescribeRootFoldersPaginator.js +25 -0
  113. package/dist-es/pagination/SearchResourcesPaginator.js +25 -0
  114. package/dist-es/pagination/index.js +7 -0
  115. package/dist-es/protocols/Aws_restJson1.js +241 -0
  116. package/dist-types/WorkDocs.d.ts +7 -0
  117. package/dist-types/WorkDocsClient.d.ts +5 -4
  118. package/dist-types/commands/InitiateDocumentVersionUploadCommand.d.ts +3 -0
  119. package/dist-types/commands/SearchResourcesCommand.d.ts +56 -0
  120. package/dist-types/commands/index.d.ts +1 -0
  121. package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
  122. package/dist-types/models/models_0.d.ts +295 -0
  123. package/dist-types/pagination/DescribeActivitiesPaginator.d.ts +4 -0
  124. package/dist-types/pagination/DescribeCommentsPaginator.d.ts +4 -0
  125. package/dist-types/pagination/DescribeGroupsPaginator.d.ts +4 -0
  126. package/dist-types/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +4 -0
  127. package/dist-types/pagination/DescribeResourcePermissionsPaginator.d.ts +4 -0
  128. package/dist-types/pagination/DescribeRootFoldersPaginator.d.ts +4 -0
  129. package/dist-types/pagination/SearchResourcesPaginator.d.ts +4 -0
  130. package/dist-types/pagination/index.d.ts +7 -0
  131. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  132. package/dist-types/ts3.4/WorkDocs.d.ts +17 -0
  133. package/dist-types/ts3.4/WorkDocsClient.d.ts +10 -4
  134. package/dist-types/ts3.4/commands/SearchResourcesCommand.d.ts +37 -0
  135. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  136. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -5
  137. package/dist-types/ts3.4/models/models_0.d.ts +156 -0
  138. package/dist-types/ts3.4/pagination/DescribeActivitiesPaginator.d.ts +11 -0
  139. package/dist-types/ts3.4/pagination/DescribeCommentsPaginator.d.ts +11 -0
  140. package/dist-types/ts3.4/pagination/DescribeGroupsPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/DescribeNotificationSubscriptionsPaginator.d.ts +11 -0
  142. package/dist-types/ts3.4/pagination/DescribeResourcePermissionsPaginator.d.ts +11 -0
  143. package/dist-types/ts3.4/pagination/DescribeRootFoldersPaginator.d.ts +11 -0
  144. package/dist-types/ts3.4/pagination/SearchResourcesPaginator.d.ts +11 -0
  145. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  146. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  147. package/package.json +36 -36
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1CreateLabelsCommand = exports.deserializeAws_restJson1CreateFolderCommand = exports.deserializeAws_restJson1CreateCustomMetadataCommand = exports.deserializeAws_restJson1CreateCommentCommand = exports.deserializeAws_restJson1AddResourcePermissionsCommand = exports.deserializeAws_restJson1ActivateUserCommand = exports.deserializeAws_restJson1AbortDocumentVersionUploadCommand = exports.serializeAws_restJson1UpdateUserCommand = exports.serializeAws_restJson1UpdateFolderCommand = exports.serializeAws_restJson1UpdateDocumentVersionCommand = exports.serializeAws_restJson1UpdateDocumentCommand = exports.serializeAws_restJson1RestoreDocumentVersionsCommand = exports.serializeAws_restJson1RemoveResourcePermissionCommand = exports.serializeAws_restJson1RemoveAllResourcePermissionsCommand = exports.serializeAws_restJson1InitiateDocumentVersionUploadCommand = exports.serializeAws_restJson1GetResourcesCommand = exports.serializeAws_restJson1GetFolderPathCommand = exports.serializeAws_restJson1GetFolderCommand = exports.serializeAws_restJson1GetDocumentVersionCommand = exports.serializeAws_restJson1GetDocumentPathCommand = exports.serializeAws_restJson1GetDocumentCommand = exports.serializeAws_restJson1GetCurrentUserCommand = exports.serializeAws_restJson1DescribeUsersCommand = exports.serializeAws_restJson1DescribeRootFoldersCommand = exports.serializeAws_restJson1DescribeResourcePermissionsCommand = exports.serializeAws_restJson1DescribeNotificationSubscriptionsCommand = exports.serializeAws_restJson1DescribeGroupsCommand = exports.serializeAws_restJson1DescribeFolderContentsCommand = exports.serializeAws_restJson1DescribeDocumentVersionsCommand = exports.serializeAws_restJson1DescribeCommentsCommand = exports.serializeAws_restJson1DescribeActivitiesCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteNotificationSubscriptionCommand = exports.serializeAws_restJson1DeleteLabelsCommand = exports.serializeAws_restJson1DeleteFolderContentsCommand = exports.serializeAws_restJson1DeleteFolderCommand = exports.serializeAws_restJson1DeleteDocumentVersionCommand = exports.serializeAws_restJson1DeleteDocumentCommand = exports.serializeAws_restJson1DeleteCustomMetadataCommand = exports.serializeAws_restJson1DeleteCommentCommand = exports.serializeAws_restJson1DeactivateUserCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateNotificationSubscriptionCommand = exports.serializeAws_restJson1CreateLabelsCommand = exports.serializeAws_restJson1CreateFolderCommand = exports.serializeAws_restJson1CreateCustomMetadataCommand = exports.serializeAws_restJson1CreateCommentCommand = exports.serializeAws_restJson1AddResourcePermissionsCommand = exports.serializeAws_restJson1ActivateUserCommand = exports.serializeAws_restJson1AbortDocumentVersionUploadCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateUserCommand = exports.deserializeAws_restJson1UpdateFolderCommand = exports.deserializeAws_restJson1UpdateDocumentVersionCommand = exports.deserializeAws_restJson1UpdateDocumentCommand = exports.deserializeAws_restJson1RestoreDocumentVersionsCommand = exports.deserializeAws_restJson1RemoveResourcePermissionCommand = exports.deserializeAws_restJson1RemoveAllResourcePermissionsCommand = exports.deserializeAws_restJson1InitiateDocumentVersionUploadCommand = exports.deserializeAws_restJson1GetResourcesCommand = exports.deserializeAws_restJson1GetFolderPathCommand = exports.deserializeAws_restJson1GetFolderCommand = exports.deserializeAws_restJson1GetDocumentVersionCommand = exports.deserializeAws_restJson1GetDocumentPathCommand = exports.deserializeAws_restJson1GetDocumentCommand = exports.deserializeAws_restJson1GetCurrentUserCommand = exports.deserializeAws_restJson1DescribeUsersCommand = exports.deserializeAws_restJson1DescribeRootFoldersCommand = exports.deserializeAws_restJson1DescribeResourcePermissionsCommand = exports.deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = exports.deserializeAws_restJson1DescribeGroupsCommand = exports.deserializeAws_restJson1DescribeFolderContentsCommand = exports.deserializeAws_restJson1DescribeDocumentVersionsCommand = exports.deserializeAws_restJson1DescribeCommentsCommand = exports.deserializeAws_restJson1DescribeActivitiesCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteNotificationSubscriptionCommand = exports.deserializeAws_restJson1DeleteLabelsCommand = exports.deserializeAws_restJson1DeleteFolderContentsCommand = exports.deserializeAws_restJson1DeleteFolderCommand = exports.deserializeAws_restJson1DeleteDocumentVersionCommand = exports.deserializeAws_restJson1DeleteDocumentCommand = exports.deserializeAws_restJson1DeleteCustomMetadataCommand = exports.deserializeAws_restJson1DeleteCommentCommand = exports.deserializeAws_restJson1DeactivateUserCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateNotificationSubscriptionCommand = void 0;
3
+ exports.deserializeAws_restJson1CreateFolderCommand = exports.deserializeAws_restJson1CreateCustomMetadataCommand = exports.deserializeAws_restJson1CreateCommentCommand = exports.deserializeAws_restJson1AddResourcePermissionsCommand = exports.deserializeAws_restJson1ActivateUserCommand = exports.deserializeAws_restJson1AbortDocumentVersionUploadCommand = exports.serializeAws_restJson1UpdateUserCommand = exports.serializeAws_restJson1UpdateFolderCommand = exports.serializeAws_restJson1UpdateDocumentVersionCommand = exports.serializeAws_restJson1UpdateDocumentCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1RestoreDocumentVersionsCommand = exports.serializeAws_restJson1RemoveResourcePermissionCommand = exports.serializeAws_restJson1RemoveAllResourcePermissionsCommand = exports.serializeAws_restJson1InitiateDocumentVersionUploadCommand = exports.serializeAws_restJson1GetResourcesCommand = exports.serializeAws_restJson1GetFolderPathCommand = exports.serializeAws_restJson1GetFolderCommand = exports.serializeAws_restJson1GetDocumentVersionCommand = exports.serializeAws_restJson1GetDocumentPathCommand = exports.serializeAws_restJson1GetDocumentCommand = exports.serializeAws_restJson1GetCurrentUserCommand = exports.serializeAws_restJson1DescribeUsersCommand = exports.serializeAws_restJson1DescribeRootFoldersCommand = exports.serializeAws_restJson1DescribeResourcePermissionsCommand = exports.serializeAws_restJson1DescribeNotificationSubscriptionsCommand = exports.serializeAws_restJson1DescribeGroupsCommand = exports.serializeAws_restJson1DescribeFolderContentsCommand = exports.serializeAws_restJson1DescribeDocumentVersionsCommand = exports.serializeAws_restJson1DescribeCommentsCommand = exports.serializeAws_restJson1DescribeActivitiesCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteNotificationSubscriptionCommand = exports.serializeAws_restJson1DeleteLabelsCommand = exports.serializeAws_restJson1DeleteFolderContentsCommand = exports.serializeAws_restJson1DeleteFolderCommand = exports.serializeAws_restJson1DeleteDocumentVersionCommand = exports.serializeAws_restJson1DeleteDocumentCommand = exports.serializeAws_restJson1DeleteCustomMetadataCommand = exports.serializeAws_restJson1DeleteCommentCommand = exports.serializeAws_restJson1DeactivateUserCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateNotificationSubscriptionCommand = exports.serializeAws_restJson1CreateLabelsCommand = exports.serializeAws_restJson1CreateFolderCommand = exports.serializeAws_restJson1CreateCustomMetadataCommand = exports.serializeAws_restJson1CreateCommentCommand = exports.serializeAws_restJson1AddResourcePermissionsCommand = exports.serializeAws_restJson1ActivateUserCommand = exports.serializeAws_restJson1AbortDocumentVersionUploadCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateUserCommand = exports.deserializeAws_restJson1UpdateFolderCommand = exports.deserializeAws_restJson1UpdateDocumentVersionCommand = exports.deserializeAws_restJson1UpdateDocumentCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1RestoreDocumentVersionsCommand = exports.deserializeAws_restJson1RemoveResourcePermissionCommand = exports.deserializeAws_restJson1RemoveAllResourcePermissionsCommand = exports.deserializeAws_restJson1InitiateDocumentVersionUploadCommand = exports.deserializeAws_restJson1GetResourcesCommand = exports.deserializeAws_restJson1GetFolderPathCommand = exports.deserializeAws_restJson1GetFolderCommand = exports.deserializeAws_restJson1GetDocumentVersionCommand = exports.deserializeAws_restJson1GetDocumentPathCommand = exports.deserializeAws_restJson1GetDocumentCommand = exports.deserializeAws_restJson1GetCurrentUserCommand = exports.deserializeAws_restJson1DescribeUsersCommand = exports.deserializeAws_restJson1DescribeRootFoldersCommand = exports.deserializeAws_restJson1DescribeResourcePermissionsCommand = exports.deserializeAws_restJson1DescribeNotificationSubscriptionsCommand = exports.deserializeAws_restJson1DescribeGroupsCommand = exports.deserializeAws_restJson1DescribeFolderContentsCommand = exports.deserializeAws_restJson1DescribeDocumentVersionsCommand = exports.deserializeAws_restJson1DescribeCommentsCommand = exports.deserializeAws_restJson1DescribeActivitiesCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteNotificationSubscriptionCommand = exports.deserializeAws_restJson1DeleteLabelsCommand = exports.deserializeAws_restJson1DeleteFolderContentsCommand = exports.deserializeAws_restJson1DeleteFolderCommand = exports.deserializeAws_restJson1DeleteDocumentVersionCommand = exports.deserializeAws_restJson1DeleteDocumentCommand = exports.deserializeAws_restJson1DeleteCustomMetadataCommand = exports.deserializeAws_restJson1DeleteCommentCommand = exports.deserializeAws_restJson1DeactivateUserCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateNotificationSubscriptionCommand = exports.deserializeAws_restJson1CreateLabelsCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
@@ -964,6 +964,39 @@ const serializeAws_restJson1RestoreDocumentVersionsCommand = async (input, conte
964
964
  });
965
965
  };
966
966
  exports.serializeAws_restJson1RestoreDocumentVersionsCommand = serializeAws_restJson1RestoreDocumentVersionsCommand;
967
+ const serializeAws_restJson1SearchResourcesCommand = async (input, context) => {
968
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
969
+ const headers = map({}, isSerializableHeaderValue, {
970
+ "content-type": "application/json",
971
+ authentication: input.AuthenticationToken,
972
+ });
973
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v1/search";
974
+ let body;
975
+ body = JSON.stringify({
976
+ ...(input.AdditionalResponseFields != null && {
977
+ AdditionalResponseFields: serializeAws_restJson1AdditionalResponseFieldsList(input.AdditionalResponseFields, context),
978
+ }),
979
+ ...(input.Filters != null && { Filters: serializeAws_restJson1Filters(input.Filters, context) }),
980
+ ...(input.Limit != null && { Limit: input.Limit }),
981
+ ...(input.Marker != null && { Marker: input.Marker }),
982
+ ...(input.OrderBy != null && { OrderBy: serializeAws_restJson1SearchResultSortList(input.OrderBy, context) }),
983
+ ...(input.OrganizationId != null && { OrganizationId: input.OrganizationId }),
984
+ ...(input.QueryScopes != null && {
985
+ QueryScopes: serializeAws_restJson1SearchQueryScopeTypeList(input.QueryScopes, context),
986
+ }),
987
+ ...(input.QueryText != null && { QueryText: input.QueryText }),
988
+ });
989
+ return new protocol_http_1.HttpRequest({
990
+ protocol,
991
+ hostname,
992
+ port,
993
+ method: "POST",
994
+ headers,
995
+ path: resolvedPath,
996
+ body,
997
+ });
998
+ };
999
+ exports.serializeAws_restJson1SearchResourcesCommand = serializeAws_restJson1SearchResourcesCommand;
967
1000
  const serializeAws_restJson1UpdateDocumentCommand = async (input, context) => {
968
1001
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
969
1002
  const headers = map({}, isSerializableHeaderValue, {
@@ -2839,6 +2872,9 @@ const deserializeAws_restJson1InitiateDocumentVersionUploadCommandError = async
2839
2872
  case "FailedDependencyException":
2840
2873
  case "com.amazonaws.workdocs#FailedDependencyException":
2841
2874
  throw await deserializeAws_restJson1FailedDependencyExceptionResponse(parsedOutput, context);
2875
+ case "InvalidArgumentException":
2876
+ case "com.amazonaws.workdocs#InvalidArgumentException":
2877
+ throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
2842
2878
  case "InvalidPasswordException":
2843
2879
  case "com.amazonaws.workdocs#InvalidPasswordException":
2844
2880
  throw await deserializeAws_restJson1InvalidPasswordExceptionResponse(parsedOutput, context);
@@ -3008,6 +3044,52 @@ const deserializeAws_restJson1RestoreDocumentVersionsCommandError = async (outpu
3008
3044
  });
3009
3045
  }
3010
3046
  };
3047
+ const deserializeAws_restJson1SearchResourcesCommand = async (output, context) => {
3048
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3049
+ return deserializeAws_restJson1SearchResourcesCommandError(output, context);
3050
+ }
3051
+ const contents = map({
3052
+ $metadata: deserializeMetadata(output),
3053
+ });
3054
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3055
+ if (data.Items != null) {
3056
+ contents.Items = deserializeAws_restJson1ResponseItemsList(data.Items, context);
3057
+ }
3058
+ if (data.Marker != null) {
3059
+ contents.Marker = (0, smithy_client_1.expectString)(data.Marker);
3060
+ }
3061
+ return contents;
3062
+ };
3063
+ exports.deserializeAws_restJson1SearchResourcesCommand = deserializeAws_restJson1SearchResourcesCommand;
3064
+ const deserializeAws_restJson1SearchResourcesCommandError = async (output, context) => {
3065
+ const parsedOutput = {
3066
+ ...output,
3067
+ body: await parseErrorBody(output.body, context),
3068
+ };
3069
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3070
+ switch (errorCode) {
3071
+ case "InvalidArgumentException":
3072
+ case "com.amazonaws.workdocs#InvalidArgumentException":
3073
+ throw await deserializeAws_restJson1InvalidArgumentExceptionResponse(parsedOutput, context);
3074
+ case "ServiceUnavailableException":
3075
+ case "com.amazonaws.workdocs#ServiceUnavailableException":
3076
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3077
+ case "UnauthorizedOperationException":
3078
+ case "com.amazonaws.workdocs#UnauthorizedOperationException":
3079
+ throw await deserializeAws_restJson1UnauthorizedOperationExceptionResponse(parsedOutput, context);
3080
+ case "UnauthorizedResourceAccessException":
3081
+ case "com.amazonaws.workdocs#UnauthorizedResourceAccessException":
3082
+ throw await deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse(parsedOutput, context);
3083
+ default:
3084
+ const parsedBody = parsedOutput.body;
3085
+ (0, smithy_client_1.throwDefaultError)({
3086
+ output,
3087
+ parsedBody,
3088
+ exceptionCtor: WorkDocsServiceException_1.WorkDocsServiceException,
3089
+ errorCode,
3090
+ });
3091
+ }
3092
+ };
3011
3093
  const deserializeAws_restJson1UpdateDocumentCommand = async (output, context) => {
3012
3094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3013
3095
  return deserializeAws_restJson1UpdateDocumentCommandError(output, context);
@@ -3544,6 +3626,13 @@ const deserializeAws_restJson1UnauthorizedResourceAccessExceptionResponse = asyn
3544
3626
  });
3545
3627
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3546
3628
  };
3629
+ const serializeAws_restJson1AdditionalResponseFieldsList = (input, context) => {
3630
+ return input
3631
+ .filter((e) => e != null)
3632
+ .map((entry) => {
3633
+ return entry;
3634
+ });
3635
+ };
3547
3636
  const serializeAws_restJson1CustomMetadataMap = (input, context) => {
3548
3637
  return Object.entries(input).reduce((acc, [key, value]) => {
3549
3638
  if (value === null) {
@@ -3553,12 +3642,129 @@ const serializeAws_restJson1CustomMetadataMap = (input, context) => {
3553
3642
  return acc;
3554
3643
  }, {});
3555
3644
  };
3645
+ const serializeAws_restJson1DateRangeType = (input, context) => {
3646
+ return {
3647
+ ...(input.EndValue != null && { EndValue: Math.round(input.EndValue.getTime() / 1000) }),
3648
+ ...(input.StartValue != null && { StartValue: Math.round(input.StartValue.getTime() / 1000) }),
3649
+ };
3650
+ };
3651
+ const serializeAws_restJson1Filters = (input, context) => {
3652
+ return {
3653
+ ...(input.AncestorIds != null && {
3654
+ AncestorIds: serializeAws_restJson1SearchAncestorIdList(input.AncestorIds, context),
3655
+ }),
3656
+ ...(input.ContentCategories != null && {
3657
+ ContentCategories: serializeAws_restJson1SearchContentCategoryTypeList(input.ContentCategories, context),
3658
+ }),
3659
+ ...(input.CreatedRange != null && {
3660
+ CreatedRange: serializeAws_restJson1DateRangeType(input.CreatedRange, context),
3661
+ }),
3662
+ ...(input.Labels != null && { Labels: serializeAws_restJson1SearchLabelList(input.Labels, context) }),
3663
+ ...(input.ModifiedRange != null && {
3664
+ ModifiedRange: serializeAws_restJson1DateRangeType(input.ModifiedRange, context),
3665
+ }),
3666
+ ...(input.Principals != null && {
3667
+ Principals: serializeAws_restJson1SearchPrincipalTypeList(input.Principals, context),
3668
+ }),
3669
+ ...(input.ResourceTypes != null && {
3670
+ ResourceTypes: serializeAws_restJson1SearchResourceTypeList(input.ResourceTypes, context),
3671
+ }),
3672
+ ...(input.SearchCollectionTypes != null && {
3673
+ SearchCollectionTypes: serializeAws_restJson1SearchCollectionTypeList(input.SearchCollectionTypes, context),
3674
+ }),
3675
+ ...(input.SizeRange != null && { SizeRange: serializeAws_restJson1LongRangeType(input.SizeRange, context) }),
3676
+ ...(input.TextLocales != null && {
3677
+ TextLocales: serializeAws_restJson1TextLocaleTypeList(input.TextLocales, context),
3678
+ }),
3679
+ };
3680
+ };
3681
+ const serializeAws_restJson1LongRangeType = (input, context) => {
3682
+ return {
3683
+ ...(input.EndValue != null && { EndValue: input.EndValue }),
3684
+ ...(input.StartValue != null && { StartValue: input.StartValue }),
3685
+ };
3686
+ };
3556
3687
  const serializeAws_restJson1NotificationOptions = (input, context) => {
3557
3688
  return {
3558
3689
  ...(input.EmailMessage != null && { EmailMessage: input.EmailMessage }),
3559
3690
  ...(input.SendEmail != null && { SendEmail: input.SendEmail }),
3560
3691
  };
3561
3692
  };
3693
+ const serializeAws_restJson1SearchAncestorIdList = (input, context) => {
3694
+ return input
3695
+ .filter((e) => e != null)
3696
+ .map((entry) => {
3697
+ return entry;
3698
+ });
3699
+ };
3700
+ const serializeAws_restJson1SearchCollectionTypeList = (input, context) => {
3701
+ return input
3702
+ .filter((e) => e != null)
3703
+ .map((entry) => {
3704
+ return entry;
3705
+ });
3706
+ };
3707
+ const serializeAws_restJson1SearchContentCategoryTypeList = (input, context) => {
3708
+ return input
3709
+ .filter((e) => e != null)
3710
+ .map((entry) => {
3711
+ return entry;
3712
+ });
3713
+ };
3714
+ const serializeAws_restJson1SearchLabelList = (input, context) => {
3715
+ return input
3716
+ .filter((e) => e != null)
3717
+ .map((entry) => {
3718
+ return entry;
3719
+ });
3720
+ };
3721
+ const serializeAws_restJson1SearchPrincipalRoleList = (input, context) => {
3722
+ return input
3723
+ .filter((e) => e != null)
3724
+ .map((entry) => {
3725
+ return entry;
3726
+ });
3727
+ };
3728
+ const serializeAws_restJson1SearchPrincipalType = (input, context) => {
3729
+ return {
3730
+ ...(input.Id != null && { Id: input.Id }),
3731
+ ...(input.Roles != null && { Roles: serializeAws_restJson1SearchPrincipalRoleList(input.Roles, context) }),
3732
+ };
3733
+ };
3734
+ const serializeAws_restJson1SearchPrincipalTypeList = (input, context) => {
3735
+ return input
3736
+ .filter((e) => e != null)
3737
+ .map((entry) => {
3738
+ return serializeAws_restJson1SearchPrincipalType(entry, context);
3739
+ });
3740
+ };
3741
+ const serializeAws_restJson1SearchQueryScopeTypeList = (input, context) => {
3742
+ return input
3743
+ .filter((e) => e != null)
3744
+ .map((entry) => {
3745
+ return entry;
3746
+ });
3747
+ };
3748
+ const serializeAws_restJson1SearchResourceTypeList = (input, context) => {
3749
+ return input
3750
+ .filter((e) => e != null)
3751
+ .map((entry) => {
3752
+ return entry;
3753
+ });
3754
+ };
3755
+ const serializeAws_restJson1SearchResultSortList = (input, context) => {
3756
+ return input
3757
+ .filter((e) => e != null)
3758
+ .map((entry) => {
3759
+ return serializeAws_restJson1SearchSortResult(entry, context);
3760
+ });
3761
+ };
3762
+ const serializeAws_restJson1SearchSortResult = (input, context) => {
3763
+ return {
3764
+ ...(input.Field != null && { Field: input.Field }),
3765
+ ...(input.Order != null && { Order: input.Order }),
3766
+ };
3767
+ };
3562
3768
  const serializeAws_restJson1SharedLabels = (input, context) => {
3563
3769
  return input
3564
3770
  .filter((e) => e != null)
@@ -3586,6 +3792,13 @@ const serializeAws_restJson1StorageRuleType = (input, context) => {
3586
3792
  ...(input.StorageType != null && { StorageType: input.StorageType }),
3587
3793
  };
3588
3794
  };
3795
+ const serializeAws_restJson1TextLocaleTypeList = (input, context) => {
3796
+ return input
3797
+ .filter((e) => e != null)
3798
+ .map((entry) => {
3799
+ return entry;
3800
+ });
3801
+ };
3589
3802
  const deserializeAws_restJson1Activity = (output, context) => {
3590
3803
  return {
3591
3804
  CommentMetadata: output.CommentMetadata != null
@@ -3636,6 +3849,7 @@ const deserializeAws_restJson1CommentMetadata = (output, context) => {
3636
3849
  CommentId: (0, smithy_client_1.expectString)(output.CommentId),
3637
3850
  CommentStatus: (0, smithy_client_1.expectString)(output.CommentStatus),
3638
3851
  Contributor: output.Contributor != null ? deserializeAws_restJson1User(output.Contributor, context) : undefined,
3852
+ ContributorId: (0, smithy_client_1.expectString)(output.ContributorId),
3639
3853
  CreatedTimestamp: output.CreatedTimestamp != null
3640
3854
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
3641
3855
  : undefined,
@@ -3879,6 +4093,35 @@ const deserializeAws_restJson1ResourcePathComponentList = (output, context) => {
3879
4093
  });
3880
4094
  return retVal;
3881
4095
  };
4096
+ const deserializeAws_restJson1ResponseItem = (output, context) => {
4097
+ return {
4098
+ CommentMetadata: output.CommentMetadata != null
4099
+ ? deserializeAws_restJson1CommentMetadata(output.CommentMetadata, context)
4100
+ : undefined,
4101
+ DocumentMetadata: output.DocumentMetadata != null
4102
+ ? deserializeAws_restJson1DocumentMetadata(output.DocumentMetadata, context)
4103
+ : undefined,
4104
+ DocumentVersionMetadata: output.DocumentVersionMetadata != null
4105
+ ? deserializeAws_restJson1DocumentVersionMetadata(output.DocumentVersionMetadata, context)
4106
+ : undefined,
4107
+ FolderMetadata: output.FolderMetadata != null
4108
+ ? deserializeAws_restJson1FolderMetadata(output.FolderMetadata, context)
4109
+ : undefined,
4110
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4111
+ WebUrl: (0, smithy_client_1.expectString)(output.WebUrl),
4112
+ };
4113
+ };
4114
+ const deserializeAws_restJson1ResponseItemsList = (output, context) => {
4115
+ const retVal = (output || [])
4116
+ .filter((e) => e != null)
4117
+ .map((entry) => {
4118
+ if (entry === null) {
4119
+ return null;
4120
+ }
4121
+ return deserializeAws_restJson1ResponseItem(entry, context);
4122
+ });
4123
+ return retVal;
4124
+ };
3882
4125
  const deserializeAws_restJson1SharedLabels = (output, context) => {
3883
4126
  const retVal = (output || [])
3884
4127
  .filter((e) => e != null)
@@ -37,6 +37,7 @@ import { InitiateDocumentVersionUploadCommand, } from "./commands/InitiateDocume
37
37
  import { RemoveAllResourcePermissionsCommand, } from "./commands/RemoveAllResourcePermissionsCommand";
38
38
  import { RemoveResourcePermissionCommand, } from "./commands/RemoveResourcePermissionCommand";
39
39
  import { RestoreDocumentVersionsCommand, } from "./commands/RestoreDocumentVersionsCommand";
40
+ import { SearchResourcesCommand, } from "./commands/SearchResourcesCommand";
40
41
  import { UpdateDocumentCommand, } from "./commands/UpdateDocumentCommand";
41
42
  import { UpdateDocumentVersionCommand, } from "./commands/UpdateDocumentVersionCommand";
42
43
  import { UpdateFolderCommand, } from "./commands/UpdateFolderCommand";
@@ -589,6 +590,20 @@ export class WorkDocs extends WorkDocsClient {
589
590
  return this.send(command, optionsOrCb);
590
591
  }
591
592
  }
593
+ searchResources(args, optionsOrCb, cb) {
594
+ const command = new SearchResourcesCommand(args);
595
+ if (typeof optionsOrCb === "function") {
596
+ this.send(command, optionsOrCb);
597
+ }
598
+ else if (typeof cb === "function") {
599
+ if (typeof optionsOrCb !== "object")
600
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
601
+ this.send(command, optionsOrCb || {}, cb);
602
+ }
603
+ else {
604
+ return this.send(command, optionsOrCb);
605
+ }
606
+ }
592
607
  updateDocument(args, optionsOrCb, cb) {
593
608
  const command = new UpdateDocumentCommand(args);
594
609
  if (typeof optionsOrCb === "function") {
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { AbortDocumentVersionUploadRequestFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1AbortDocumentVersionUploadCommand, serializeAws_restJson1AbortDocumentVersionUploadCommand, } from "../protocols/Aws_restJson1";
6
6
  export class AbortDocumentVersionUploadCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class AbortDocumentVersionUploadCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, AbortDocumentVersionUploadCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { ActivateUserRequestFilterSensitiveLog, ActivateUserResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ActivateUserCommand, serializeAws_restJson1ActivateUserCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ActivateUserCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class ActivateUserCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, ActivateUserCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { AddResourcePermissionsRequestFilterSensitiveLog, AddResourcePermissionsResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1AddResourcePermissionsCommand, serializeAws_restJson1AddResourcePermissionsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class AddResourcePermissionsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class AddResourcePermissionsCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, AddResourcePermissionsCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateCommentRequestFilterSensitiveLog, CreateCommentResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateCommentCommand, serializeAws_restJson1CreateCommentCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateCommentCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateCommentCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateCommentCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateCustomMetadataRequestFilterSensitiveLog, CreateCustomMetadataResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateCustomMetadataCommand, serializeAws_restJson1CreateCustomMetadataCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateCustomMetadataCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateCustomMetadataCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateCustomMetadataCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateFolderRequestFilterSensitiveLog, CreateFolderResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateFolderCommand, serializeAws_restJson1CreateFolderCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateFolderCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateFolderCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateFolderCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateLabelsRequestFilterSensitiveLog, CreateLabelsResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateLabelsCommand, serializeAws_restJson1CreateLabelsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateLabelsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateLabelsCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateLabelsCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateNotificationSubscriptionRequestFilterSensitiveLog, CreateNotificationSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateNotificationSubscriptionCommand, serializeAws_restJson1CreateNotificationSubscriptionCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateNotificationSubscriptionCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateNotificationSubscriptionCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateNotificationSubscriptionCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateUserRequestFilterSensitiveLog, CreateUserResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateUserCommand, serializeAws_restJson1CreateUserCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateUserCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateUserCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateUserCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { DeactivateUserRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1DeactivateUserCommand, serializeAws_restJson1DeactivateUserCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeactivateUserCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class DeactivateUserCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, DeactivateUserCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { DeleteCommentRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1DeleteCommentCommand, serializeAws_restJson1DeleteCommentCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeleteCommentCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class DeleteCommentCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCommentCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { DeleteCustomMetadataRequestFilterSensitiveLog, DeleteCustomMetadataResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1DeleteCustomMetadataCommand, serializeAws_restJson1DeleteCustomMetadataCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeleteCustomMetadataCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class DeleteCustomMetadataCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCustomMetadataCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { DeleteDocumentRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1DeleteDocumentCommand, serializeAws_restJson1DeleteDocumentCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeleteDocumentCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class DeleteDocumentCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, DeleteDocumentCommand.getEndpointParameterInstructions()));