@aws-sdk/client-workdocs 3.35.0 → 3.36.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 (286) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/WorkDocs.js +0 -1
  3. package/dist-cjs/WorkDocsClient.js +0 -1
  4. package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js +0 -1
  5. package/dist-cjs/commands/ActivateUserCommand.js +0 -1
  6. package/dist-cjs/commands/AddResourcePermissionsCommand.js +0 -1
  7. package/dist-cjs/commands/CreateCommentCommand.js +0 -1
  8. package/dist-cjs/commands/CreateCustomMetadataCommand.js +0 -1
  9. package/dist-cjs/commands/CreateFolderCommand.js +0 -1
  10. package/dist-cjs/commands/CreateLabelsCommand.js +0 -1
  11. package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js +0 -1
  12. package/dist-cjs/commands/CreateUserCommand.js +0 -1
  13. package/dist-cjs/commands/DeactivateUserCommand.js +0 -1
  14. package/dist-cjs/commands/DeleteCommentCommand.js +0 -1
  15. package/dist-cjs/commands/DeleteCustomMetadataCommand.js +0 -1
  16. package/dist-cjs/commands/DeleteDocumentCommand.js +0 -1
  17. package/dist-cjs/commands/DeleteFolderCommand.js +0 -1
  18. package/dist-cjs/commands/DeleteFolderContentsCommand.js +0 -1
  19. package/dist-cjs/commands/DeleteLabelsCommand.js +0 -1
  20. package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js +0 -1
  21. package/dist-cjs/commands/DeleteUserCommand.js +0 -1
  22. package/dist-cjs/commands/DescribeActivitiesCommand.js +0 -1
  23. package/dist-cjs/commands/DescribeCommentsCommand.js +0 -1
  24. package/dist-cjs/commands/DescribeDocumentVersionsCommand.js +0 -1
  25. package/dist-cjs/commands/DescribeFolderContentsCommand.js +0 -1
  26. package/dist-cjs/commands/DescribeGroupsCommand.js +0 -1
  27. package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js +0 -1
  28. package/dist-cjs/commands/DescribeResourcePermissionsCommand.js +0 -1
  29. package/dist-cjs/commands/DescribeRootFoldersCommand.js +0 -1
  30. package/dist-cjs/commands/DescribeUsersCommand.js +0 -1
  31. package/dist-cjs/commands/GetCurrentUserCommand.js +0 -1
  32. package/dist-cjs/commands/GetDocumentCommand.js +0 -1
  33. package/dist-cjs/commands/GetDocumentPathCommand.js +0 -1
  34. package/dist-cjs/commands/GetDocumentVersionCommand.js +0 -1
  35. package/dist-cjs/commands/GetFolderCommand.js +0 -1
  36. package/dist-cjs/commands/GetFolderPathCommand.js +0 -1
  37. package/dist-cjs/commands/GetResourcesCommand.js +0 -1
  38. package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js +0 -1
  39. package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js +0 -1
  40. package/dist-cjs/commands/RemoveResourcePermissionCommand.js +0 -1
  41. package/dist-cjs/commands/UpdateDocumentCommand.js +0 -1
  42. package/dist-cjs/commands/UpdateDocumentVersionCommand.js +0 -1
  43. package/dist-cjs/commands/UpdateFolderCommand.js +0 -1
  44. package/dist-cjs/commands/UpdateUserCommand.js +0 -1
  45. package/dist-cjs/endpoints.js +0 -1
  46. package/dist-cjs/index.js +0 -1
  47. package/dist-cjs/models/index.js +0 -1
  48. package/dist-cjs/models/models_0.js +0 -1
  49. package/dist-cjs/pagination/DescribeDocumentVersionsPaginator.js +0 -1
  50. package/dist-cjs/pagination/DescribeFolderContentsPaginator.js +0 -1
  51. package/dist-cjs/pagination/DescribeUsersPaginator.js +0 -1
  52. package/dist-cjs/pagination/Interfaces.js +0 -1
  53. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  54. package/dist-cjs/runtimeConfig.browser.js +2 -3
  55. package/dist-cjs/runtimeConfig.js +3 -4
  56. package/dist-cjs/runtimeConfig.native.js +0 -1
  57. package/dist-cjs/runtimeConfig.shared.js +0 -1
  58. package/dist-es/WorkDocs.js +0 -1
  59. package/dist-es/WorkDocsClient.js +0 -1
  60. package/dist-es/commands/AbortDocumentVersionUploadCommand.js +0 -1
  61. package/dist-es/commands/ActivateUserCommand.js +0 -1
  62. package/dist-es/commands/AddResourcePermissionsCommand.js +0 -1
  63. package/dist-es/commands/CreateCommentCommand.js +0 -1
  64. package/dist-es/commands/CreateCustomMetadataCommand.js +0 -1
  65. package/dist-es/commands/CreateFolderCommand.js +0 -1
  66. package/dist-es/commands/CreateLabelsCommand.js +0 -1
  67. package/dist-es/commands/CreateNotificationSubscriptionCommand.js +0 -1
  68. package/dist-es/commands/CreateUserCommand.js +0 -1
  69. package/dist-es/commands/DeactivateUserCommand.js +0 -1
  70. package/dist-es/commands/DeleteCommentCommand.js +0 -1
  71. package/dist-es/commands/DeleteCustomMetadataCommand.js +0 -1
  72. package/dist-es/commands/DeleteDocumentCommand.js +0 -1
  73. package/dist-es/commands/DeleteFolderCommand.js +0 -1
  74. package/dist-es/commands/DeleteFolderContentsCommand.js +0 -1
  75. package/dist-es/commands/DeleteLabelsCommand.js +0 -1
  76. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +0 -1
  77. package/dist-es/commands/DeleteUserCommand.js +0 -1
  78. package/dist-es/commands/DescribeActivitiesCommand.js +0 -1
  79. package/dist-es/commands/DescribeCommentsCommand.js +0 -1
  80. package/dist-es/commands/DescribeDocumentVersionsCommand.js +0 -1
  81. package/dist-es/commands/DescribeFolderContentsCommand.js +0 -1
  82. package/dist-es/commands/DescribeGroupsCommand.js +0 -1
  83. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +0 -1
  84. package/dist-es/commands/DescribeResourcePermissionsCommand.js +0 -1
  85. package/dist-es/commands/DescribeRootFoldersCommand.js +0 -1
  86. package/dist-es/commands/DescribeUsersCommand.js +0 -1
  87. package/dist-es/commands/GetCurrentUserCommand.js +0 -1
  88. package/dist-es/commands/GetDocumentCommand.js +0 -1
  89. package/dist-es/commands/GetDocumentPathCommand.js +0 -1
  90. package/dist-es/commands/GetDocumentVersionCommand.js +0 -1
  91. package/dist-es/commands/GetFolderCommand.js +0 -1
  92. package/dist-es/commands/GetFolderPathCommand.js +0 -1
  93. package/dist-es/commands/GetResourcesCommand.js +0 -1
  94. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +0 -1
  95. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +0 -1
  96. package/dist-es/commands/RemoveResourcePermissionCommand.js +0 -1
  97. package/dist-es/commands/UpdateDocumentCommand.js +0 -1
  98. package/dist-es/commands/UpdateDocumentVersionCommand.js +0 -1
  99. package/dist-es/commands/UpdateFolderCommand.js +0 -1
  100. package/dist-es/commands/UpdateUserCommand.js +0 -1
  101. package/dist-es/endpoints.js +0 -1
  102. package/dist-es/index.js +0 -1
  103. package/dist-es/models/index.js +0 -1
  104. package/dist-es/models/models_0.js +0 -1
  105. package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +0 -1
  106. package/dist-es/pagination/DescribeFolderContentsPaginator.js +0 -1
  107. package/dist-es/pagination/DescribeUsersPaginator.js +0 -1
  108. package/dist-es/pagination/Interfaces.js +0 -1
  109. package/dist-es/protocols/Aws_restJson1.js +0 -1
  110. package/dist-es/runtimeConfig.browser.js +1 -2
  111. package/dist-es/runtimeConfig.js +2 -3
  112. package/dist-es/runtimeConfig.native.js +0 -1
  113. package/dist-es/runtimeConfig.shared.js +0 -1
  114. package/package.json +33 -30
  115. package/dist-cjs/WorkDocs.js.map +0 -1
  116. package/dist-cjs/WorkDocsClient.js.map +0 -1
  117. package/dist-cjs/commands/AbortDocumentVersionUploadCommand.js.map +0 -1
  118. package/dist-cjs/commands/ActivateUserCommand.js.map +0 -1
  119. package/dist-cjs/commands/AddResourcePermissionsCommand.js.map +0 -1
  120. package/dist-cjs/commands/CreateCommentCommand.js.map +0 -1
  121. package/dist-cjs/commands/CreateCustomMetadataCommand.js.map +0 -1
  122. package/dist-cjs/commands/CreateFolderCommand.js.map +0 -1
  123. package/dist-cjs/commands/CreateLabelsCommand.js.map +0 -1
  124. package/dist-cjs/commands/CreateNotificationSubscriptionCommand.js.map +0 -1
  125. package/dist-cjs/commands/CreateUserCommand.js.map +0 -1
  126. package/dist-cjs/commands/DeactivateUserCommand.js.map +0 -1
  127. package/dist-cjs/commands/DeleteCommentCommand.js.map +0 -1
  128. package/dist-cjs/commands/DeleteCustomMetadataCommand.js.map +0 -1
  129. package/dist-cjs/commands/DeleteDocumentCommand.js.map +0 -1
  130. package/dist-cjs/commands/DeleteFolderCommand.js.map +0 -1
  131. package/dist-cjs/commands/DeleteFolderContentsCommand.js.map +0 -1
  132. package/dist-cjs/commands/DeleteLabelsCommand.js.map +0 -1
  133. package/dist-cjs/commands/DeleteNotificationSubscriptionCommand.js.map +0 -1
  134. package/dist-cjs/commands/DeleteUserCommand.js.map +0 -1
  135. package/dist-cjs/commands/DescribeActivitiesCommand.js.map +0 -1
  136. package/dist-cjs/commands/DescribeCommentsCommand.js.map +0 -1
  137. package/dist-cjs/commands/DescribeDocumentVersionsCommand.js.map +0 -1
  138. package/dist-cjs/commands/DescribeFolderContentsCommand.js.map +0 -1
  139. package/dist-cjs/commands/DescribeGroupsCommand.js.map +0 -1
  140. package/dist-cjs/commands/DescribeNotificationSubscriptionsCommand.js.map +0 -1
  141. package/dist-cjs/commands/DescribeResourcePermissionsCommand.js.map +0 -1
  142. package/dist-cjs/commands/DescribeRootFoldersCommand.js.map +0 -1
  143. package/dist-cjs/commands/DescribeUsersCommand.js.map +0 -1
  144. package/dist-cjs/commands/GetCurrentUserCommand.js.map +0 -1
  145. package/dist-cjs/commands/GetDocumentCommand.js.map +0 -1
  146. package/dist-cjs/commands/GetDocumentPathCommand.js.map +0 -1
  147. package/dist-cjs/commands/GetDocumentVersionCommand.js.map +0 -1
  148. package/dist-cjs/commands/GetFolderCommand.js.map +0 -1
  149. package/dist-cjs/commands/GetFolderPathCommand.js.map +0 -1
  150. package/dist-cjs/commands/GetResourcesCommand.js.map +0 -1
  151. package/dist-cjs/commands/InitiateDocumentVersionUploadCommand.js.map +0 -1
  152. package/dist-cjs/commands/RemoveAllResourcePermissionsCommand.js.map +0 -1
  153. package/dist-cjs/commands/RemoveResourcePermissionCommand.js.map +0 -1
  154. package/dist-cjs/commands/UpdateDocumentCommand.js.map +0 -1
  155. package/dist-cjs/commands/UpdateDocumentVersionCommand.js.map +0 -1
  156. package/dist-cjs/commands/UpdateFolderCommand.js.map +0 -1
  157. package/dist-cjs/commands/UpdateUserCommand.js.map +0 -1
  158. package/dist-cjs/endpoints.js.map +0 -1
  159. package/dist-cjs/index.js.map +0 -1
  160. package/dist-cjs/models/index.js.map +0 -1
  161. package/dist-cjs/models/models_0.js.map +0 -1
  162. package/dist-cjs/pagination/DescribeDocumentVersionsPaginator.js.map +0 -1
  163. package/dist-cjs/pagination/DescribeFolderContentsPaginator.js.map +0 -1
  164. package/dist-cjs/pagination/DescribeUsersPaginator.js.map +0 -1
  165. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  166. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  167. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  168. package/dist-cjs/runtimeConfig.js.map +0 -1
  169. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  170. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  171. package/dist-es/WorkDocs.js.map +0 -1
  172. package/dist-es/WorkDocsClient.js.map +0 -1
  173. package/dist-es/commands/AbortDocumentVersionUploadCommand.js.map +0 -1
  174. package/dist-es/commands/ActivateUserCommand.js.map +0 -1
  175. package/dist-es/commands/AddResourcePermissionsCommand.js.map +0 -1
  176. package/dist-es/commands/CreateCommentCommand.js.map +0 -1
  177. package/dist-es/commands/CreateCustomMetadataCommand.js.map +0 -1
  178. package/dist-es/commands/CreateFolderCommand.js.map +0 -1
  179. package/dist-es/commands/CreateLabelsCommand.js.map +0 -1
  180. package/dist-es/commands/CreateNotificationSubscriptionCommand.js.map +0 -1
  181. package/dist-es/commands/CreateUserCommand.js.map +0 -1
  182. package/dist-es/commands/DeactivateUserCommand.js.map +0 -1
  183. package/dist-es/commands/DeleteCommentCommand.js.map +0 -1
  184. package/dist-es/commands/DeleteCustomMetadataCommand.js.map +0 -1
  185. package/dist-es/commands/DeleteDocumentCommand.js.map +0 -1
  186. package/dist-es/commands/DeleteFolderCommand.js.map +0 -1
  187. package/dist-es/commands/DeleteFolderContentsCommand.js.map +0 -1
  188. package/dist-es/commands/DeleteLabelsCommand.js.map +0 -1
  189. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js.map +0 -1
  190. package/dist-es/commands/DeleteUserCommand.js.map +0 -1
  191. package/dist-es/commands/DescribeActivitiesCommand.js.map +0 -1
  192. package/dist-es/commands/DescribeCommentsCommand.js.map +0 -1
  193. package/dist-es/commands/DescribeDocumentVersionsCommand.js.map +0 -1
  194. package/dist-es/commands/DescribeFolderContentsCommand.js.map +0 -1
  195. package/dist-es/commands/DescribeGroupsCommand.js.map +0 -1
  196. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js.map +0 -1
  197. package/dist-es/commands/DescribeResourcePermissionsCommand.js.map +0 -1
  198. package/dist-es/commands/DescribeRootFoldersCommand.js.map +0 -1
  199. package/dist-es/commands/DescribeUsersCommand.js.map +0 -1
  200. package/dist-es/commands/GetCurrentUserCommand.js.map +0 -1
  201. package/dist-es/commands/GetDocumentCommand.js.map +0 -1
  202. package/dist-es/commands/GetDocumentPathCommand.js.map +0 -1
  203. package/dist-es/commands/GetDocumentVersionCommand.js.map +0 -1
  204. package/dist-es/commands/GetFolderCommand.js.map +0 -1
  205. package/dist-es/commands/GetFolderPathCommand.js.map +0 -1
  206. package/dist-es/commands/GetResourcesCommand.js.map +0 -1
  207. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js.map +0 -1
  208. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js.map +0 -1
  209. package/dist-es/commands/RemoveResourcePermissionCommand.js.map +0 -1
  210. package/dist-es/commands/UpdateDocumentCommand.js.map +0 -1
  211. package/dist-es/commands/UpdateDocumentVersionCommand.js.map +0 -1
  212. package/dist-es/commands/UpdateFolderCommand.js.map +0 -1
  213. package/dist-es/commands/UpdateUserCommand.js.map +0 -1
  214. package/dist-es/endpoints.js.map +0 -1
  215. package/dist-es/index.js.map +0 -1
  216. package/dist-es/models/index.js.map +0 -1
  217. package/dist-es/models/models_0.js.map +0 -1
  218. package/dist-es/pagination/DescribeDocumentVersionsPaginator.js.map +0 -1
  219. package/dist-es/pagination/DescribeFolderContentsPaginator.js.map +0 -1
  220. package/dist-es/pagination/DescribeUsersPaginator.js.map +0 -1
  221. package/dist-es/pagination/Interfaces.js.map +0 -1
  222. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  223. package/dist-es/runtimeConfig.browser.js.map +0 -1
  224. package/dist-es/runtimeConfig.js.map +0 -1
  225. package/dist-es/runtimeConfig.native.js.map +0 -1
  226. package/dist-es/runtimeConfig.shared.js.map +0 -1
  227. package/jest.config.js +0 -4
  228. package/src/WorkDocs.ts +0 -1548
  229. package/src/WorkDocsClient.ts +0 -439
  230. package/src/commands/AbortDocumentVersionUploadCommand.ts +0 -101
  231. package/src/commands/ActivateUserCommand.ts +0 -96
  232. package/src/commands/AddResourcePermissionsCommand.ts +0 -97
  233. package/src/commands/CreateCommentCommand.ts +0 -95
  234. package/src/commands/CreateCustomMetadataCommand.ts +0 -96
  235. package/src/commands/CreateFolderCommand.ts +0 -95
  236. package/src/commands/CreateLabelsCommand.ts +0 -96
  237. package/src/commands/CreateNotificationSubscriptionCommand.ts +0 -107
  238. package/src/commands/CreateUserCommand.ts +0 -96
  239. package/src/commands/DeactivateUserCommand.ts +0 -96
  240. package/src/commands/DeleteCommentCommand.ts +0 -95
  241. package/src/commands/DeleteCustomMetadataCommand.ts +0 -95
  242. package/src/commands/DeleteDocumentCommand.ts +0 -95
  243. package/src/commands/DeleteFolderCommand.ts +0 -95
  244. package/src/commands/DeleteFolderContentsCommand.ts +0 -95
  245. package/src/commands/DeleteLabelsCommand.ts +0 -95
  246. package/src/commands/DeleteNotificationSubscriptionCommand.ts +0 -101
  247. package/src/commands/DeleteUserCommand.ts +0 -95
  248. package/src/commands/DescribeActivitiesCommand.ts +0 -95
  249. package/src/commands/DescribeCommentsCommand.ts +0 -95
  250. package/src/commands/DescribeDocumentVersionsCommand.ts +0 -96
  251. package/src/commands/DescribeFolderContentsCommand.ts +0 -100
  252. package/src/commands/DescribeGroupsCommand.ts +0 -96
  253. package/src/commands/DescribeNotificationSubscriptionsCommand.ts +0 -106
  254. package/src/commands/DescribeResourcePermissionsCommand.ts +0 -100
  255. package/src/commands/DescribeRootFoldersCommand.ts +0 -103
  256. package/src/commands/DescribeUsersCommand.ts +0 -99
  257. package/src/commands/GetCurrentUserCommand.ts +0 -101
  258. package/src/commands/GetDocumentCommand.ts +0 -95
  259. package/src/commands/GetDocumentPathCommand.ts +0 -100
  260. package/src/commands/GetDocumentVersionCommand.ts +0 -95
  261. package/src/commands/GetFolderCommand.ts +0 -95
  262. package/src/commands/GetFolderPathCommand.ts +0 -100
  263. package/src/commands/GetResourcesCommand.ts +0 -96
  264. package/src/commands/InitiateDocumentVersionUploadCommand.ts +0 -105
  265. package/src/commands/RemoveAllResourcePermissionsCommand.ts +0 -98
  266. package/src/commands/RemoveResourcePermissionCommand.ts +0 -96
  267. package/src/commands/UpdateDocumentCommand.ts +0 -96
  268. package/src/commands/UpdateDocumentVersionCommand.ts +0 -98
  269. package/src/commands/UpdateFolderCommand.ts +0 -96
  270. package/src/commands/UpdateUserCommand.ts +0 -96
  271. package/src/endpoints.ts +0 -68
  272. package/src/index.ts +0 -48
  273. package/src/models/index.ts +0 -1
  274. package/src/models/models_0.ts +0 -3531
  275. package/src/pagination/DescribeDocumentVersionsPaginator.ts +0 -59
  276. package/src/pagination/DescribeFolderContentsPaginator.ts +0 -59
  277. package/src/pagination/DescribeUsersPaginator.ts +0 -59
  278. package/src/pagination/Interfaces.ts +0 -8
  279. package/src/protocols/Aws_restJson1.ts +0 -6692
  280. package/src/runtimeConfig.browser.ts +0 -41
  281. package/src/runtimeConfig.native.ts +0 -17
  282. package/src/runtimeConfig.shared.ts +0 -17
  283. package/src/runtimeConfig.ts +0 -46
  284. package/tsconfig.es.json +0 -10
  285. package/tsconfig.json +0 -33
  286. package/tsconfig.types.json +0 -9
@@ -1,439 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import {
53
- AbortDocumentVersionUploadCommandInput,
54
- AbortDocumentVersionUploadCommandOutput,
55
- } from "./commands/AbortDocumentVersionUploadCommand";
56
- import { ActivateUserCommandInput, ActivateUserCommandOutput } from "./commands/ActivateUserCommand";
57
- import {
58
- AddResourcePermissionsCommandInput,
59
- AddResourcePermissionsCommandOutput,
60
- } from "./commands/AddResourcePermissionsCommand";
61
- import { CreateCommentCommandInput, CreateCommentCommandOutput } from "./commands/CreateCommentCommand";
62
- import {
63
- CreateCustomMetadataCommandInput,
64
- CreateCustomMetadataCommandOutput,
65
- } from "./commands/CreateCustomMetadataCommand";
66
- import { CreateFolderCommandInput, CreateFolderCommandOutput } from "./commands/CreateFolderCommand";
67
- import { CreateLabelsCommandInput, CreateLabelsCommandOutput } from "./commands/CreateLabelsCommand";
68
- import {
69
- CreateNotificationSubscriptionCommandInput,
70
- CreateNotificationSubscriptionCommandOutput,
71
- } from "./commands/CreateNotificationSubscriptionCommand";
72
- import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
73
- import { DeactivateUserCommandInput, DeactivateUserCommandOutput } from "./commands/DeactivateUserCommand";
74
- import { DeleteCommentCommandInput, DeleteCommentCommandOutput } from "./commands/DeleteCommentCommand";
75
- import {
76
- DeleteCustomMetadataCommandInput,
77
- DeleteCustomMetadataCommandOutput,
78
- } from "./commands/DeleteCustomMetadataCommand";
79
- import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "./commands/DeleteDocumentCommand";
80
- import { DeleteFolderCommandInput, DeleteFolderCommandOutput } from "./commands/DeleteFolderCommand";
81
- import {
82
- DeleteFolderContentsCommandInput,
83
- DeleteFolderContentsCommandOutput,
84
- } from "./commands/DeleteFolderContentsCommand";
85
- import { DeleteLabelsCommandInput, DeleteLabelsCommandOutput } from "./commands/DeleteLabelsCommand";
86
- import {
87
- DeleteNotificationSubscriptionCommandInput,
88
- DeleteNotificationSubscriptionCommandOutput,
89
- } from "./commands/DeleteNotificationSubscriptionCommand";
90
- import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
91
- import { DescribeActivitiesCommandInput, DescribeActivitiesCommandOutput } from "./commands/DescribeActivitiesCommand";
92
- import { DescribeCommentsCommandInput, DescribeCommentsCommandOutput } from "./commands/DescribeCommentsCommand";
93
- import {
94
- DescribeDocumentVersionsCommandInput,
95
- DescribeDocumentVersionsCommandOutput,
96
- } from "./commands/DescribeDocumentVersionsCommand";
97
- import {
98
- DescribeFolderContentsCommandInput,
99
- DescribeFolderContentsCommandOutput,
100
- } from "./commands/DescribeFolderContentsCommand";
101
- import { DescribeGroupsCommandInput, DescribeGroupsCommandOutput } from "./commands/DescribeGroupsCommand";
102
- import {
103
- DescribeNotificationSubscriptionsCommandInput,
104
- DescribeNotificationSubscriptionsCommandOutput,
105
- } from "./commands/DescribeNotificationSubscriptionsCommand";
106
- import {
107
- DescribeResourcePermissionsCommandInput,
108
- DescribeResourcePermissionsCommandOutput,
109
- } from "./commands/DescribeResourcePermissionsCommand";
110
- import {
111
- DescribeRootFoldersCommandInput,
112
- DescribeRootFoldersCommandOutput,
113
- } from "./commands/DescribeRootFoldersCommand";
114
- import { DescribeUsersCommandInput, DescribeUsersCommandOutput } from "./commands/DescribeUsersCommand";
115
- import { GetCurrentUserCommandInput, GetCurrentUserCommandOutput } from "./commands/GetCurrentUserCommand";
116
- import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand";
117
- import { GetDocumentPathCommandInput, GetDocumentPathCommandOutput } from "./commands/GetDocumentPathCommand";
118
- import { GetDocumentVersionCommandInput, GetDocumentVersionCommandOutput } from "./commands/GetDocumentVersionCommand";
119
- import { GetFolderCommandInput, GetFolderCommandOutput } from "./commands/GetFolderCommand";
120
- import { GetFolderPathCommandInput, GetFolderPathCommandOutput } from "./commands/GetFolderPathCommand";
121
- import { GetResourcesCommandInput, GetResourcesCommandOutput } from "./commands/GetResourcesCommand";
122
- import {
123
- InitiateDocumentVersionUploadCommandInput,
124
- InitiateDocumentVersionUploadCommandOutput,
125
- } from "./commands/InitiateDocumentVersionUploadCommand";
126
- import {
127
- RemoveAllResourcePermissionsCommandInput,
128
- RemoveAllResourcePermissionsCommandOutput,
129
- } from "./commands/RemoveAllResourcePermissionsCommand";
130
- import {
131
- RemoveResourcePermissionCommandInput,
132
- RemoveResourcePermissionCommandOutput,
133
- } from "./commands/RemoveResourcePermissionCommand";
134
- import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "./commands/UpdateDocumentCommand";
135
- import {
136
- UpdateDocumentVersionCommandInput,
137
- UpdateDocumentVersionCommandOutput,
138
- } from "./commands/UpdateDocumentVersionCommand";
139
- import { UpdateFolderCommandInput, UpdateFolderCommandOutput } from "./commands/UpdateFolderCommand";
140
- import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
141
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
142
-
143
- export type ServiceInputTypes =
144
- | AbortDocumentVersionUploadCommandInput
145
- | ActivateUserCommandInput
146
- | AddResourcePermissionsCommandInput
147
- | CreateCommentCommandInput
148
- | CreateCustomMetadataCommandInput
149
- | CreateFolderCommandInput
150
- | CreateLabelsCommandInput
151
- | CreateNotificationSubscriptionCommandInput
152
- | CreateUserCommandInput
153
- | DeactivateUserCommandInput
154
- | DeleteCommentCommandInput
155
- | DeleteCustomMetadataCommandInput
156
- | DeleteDocumentCommandInput
157
- | DeleteFolderCommandInput
158
- | DeleteFolderContentsCommandInput
159
- | DeleteLabelsCommandInput
160
- | DeleteNotificationSubscriptionCommandInput
161
- | DeleteUserCommandInput
162
- | DescribeActivitiesCommandInput
163
- | DescribeCommentsCommandInput
164
- | DescribeDocumentVersionsCommandInput
165
- | DescribeFolderContentsCommandInput
166
- | DescribeGroupsCommandInput
167
- | DescribeNotificationSubscriptionsCommandInput
168
- | DescribeResourcePermissionsCommandInput
169
- | DescribeRootFoldersCommandInput
170
- | DescribeUsersCommandInput
171
- | GetCurrentUserCommandInput
172
- | GetDocumentCommandInput
173
- | GetDocumentPathCommandInput
174
- | GetDocumentVersionCommandInput
175
- | GetFolderCommandInput
176
- | GetFolderPathCommandInput
177
- | GetResourcesCommandInput
178
- | InitiateDocumentVersionUploadCommandInput
179
- | RemoveAllResourcePermissionsCommandInput
180
- | RemoveResourcePermissionCommandInput
181
- | UpdateDocumentCommandInput
182
- | UpdateDocumentVersionCommandInput
183
- | UpdateFolderCommandInput
184
- | UpdateUserCommandInput;
185
-
186
- export type ServiceOutputTypes =
187
- | AbortDocumentVersionUploadCommandOutput
188
- | ActivateUserCommandOutput
189
- | AddResourcePermissionsCommandOutput
190
- | CreateCommentCommandOutput
191
- | CreateCustomMetadataCommandOutput
192
- | CreateFolderCommandOutput
193
- | CreateLabelsCommandOutput
194
- | CreateNotificationSubscriptionCommandOutput
195
- | CreateUserCommandOutput
196
- | DeactivateUserCommandOutput
197
- | DeleteCommentCommandOutput
198
- | DeleteCustomMetadataCommandOutput
199
- | DeleteDocumentCommandOutput
200
- | DeleteFolderCommandOutput
201
- | DeleteFolderContentsCommandOutput
202
- | DeleteLabelsCommandOutput
203
- | DeleteNotificationSubscriptionCommandOutput
204
- | DeleteUserCommandOutput
205
- | DescribeActivitiesCommandOutput
206
- | DescribeCommentsCommandOutput
207
- | DescribeDocumentVersionsCommandOutput
208
- | DescribeFolderContentsCommandOutput
209
- | DescribeGroupsCommandOutput
210
- | DescribeNotificationSubscriptionsCommandOutput
211
- | DescribeResourcePermissionsCommandOutput
212
- | DescribeRootFoldersCommandOutput
213
- | DescribeUsersCommandOutput
214
- | GetCurrentUserCommandOutput
215
- | GetDocumentCommandOutput
216
- | GetDocumentPathCommandOutput
217
- | GetDocumentVersionCommandOutput
218
- | GetFolderCommandOutput
219
- | GetFolderPathCommandOutput
220
- | GetResourcesCommandOutput
221
- | InitiateDocumentVersionUploadCommandOutput
222
- | RemoveAllResourcePermissionsCommandOutput
223
- | RemoveResourcePermissionCommandOutput
224
- | UpdateDocumentCommandOutput
225
- | UpdateDocumentVersionCommandOutput
226
- | UpdateFolderCommandOutput
227
- | UpdateUserCommandOutput;
228
-
229
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
230
- /**
231
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
232
- */
233
- requestHandler?: __HttpHandler;
234
-
235
- /**
236
- * A constructor for a class implementing the {@link __Hash} interface
237
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
238
- * @internal
239
- */
240
- sha256?: __HashConstructor;
241
-
242
- /**
243
- * The function that will be used to convert strings into HTTP endpoints.
244
- * @internal
245
- */
246
- urlParser?: __UrlParser;
247
-
248
- /**
249
- * A function that can calculate the length of a request body.
250
- * @internal
251
- */
252
- bodyLengthChecker?: (body: any) => number | undefined;
253
-
254
- /**
255
- * A function that converts a stream into an array of bytes.
256
- * @internal
257
- */
258
- streamCollector?: __StreamCollector;
259
-
260
- /**
261
- * The function that will be used to convert a base64-encoded string to a byte array.
262
- * @internal
263
- */
264
- base64Decoder?: __Decoder;
265
-
266
- /**
267
- * The function that will be used to convert binary data to a base64-encoded string.
268
- * @internal
269
- */
270
- base64Encoder?: __Encoder;
271
-
272
- /**
273
- * The function that will be used to convert a UTF8-encoded string to a byte array.
274
- * @internal
275
- */
276
- utf8Decoder?: __Decoder;
277
-
278
- /**
279
- * The function that will be used to convert binary data to a UTF-8 encoded string.
280
- * @internal
281
- */
282
- utf8Encoder?: __Encoder;
283
-
284
- /**
285
- * The runtime environment.
286
- * @internal
287
- */
288
- runtime?: string;
289
-
290
- /**
291
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
292
- * trait of an operation.
293
- */
294
- disableHostPrefix?: boolean;
295
-
296
- /**
297
- * Value for how many times a request will be made at most in case of retry.
298
- */
299
- maxAttempts?: number | __Provider<number>;
300
-
301
- /**
302
- * Specifies which retry algorithm to use.
303
- */
304
- retryMode?: string | __Provider<string>;
305
-
306
- /**
307
- * Optional logger for logging debug/info/warn/error.
308
- */
309
- logger?: __Logger;
310
-
311
- /**
312
- * Unique service identifier.
313
- * @internal
314
- */
315
- serviceId?: string;
316
-
317
- /**
318
- * The AWS region to which this client will send requests
319
- */
320
- region?: string | __Provider<string>;
321
-
322
- /**
323
- * Default credentials provider; Not available in browser runtime.
324
- * @internal
325
- */
326
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
327
-
328
- /**
329
- * Fetch related hostname, signing name or signing region with given region.
330
- * @internal
331
- */
332
- regionInfoProvider?: RegionInfoProvider;
333
-
334
- /**
335
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
336
- * @internal
337
- */
338
- defaultUserAgentProvider?: Provider<__UserAgent>;
339
- }
340
-
341
- type WorkDocsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
342
- ClientDefaults &
343
- RegionInputConfig &
344
- EndpointsInputConfig &
345
- RetryInputConfig &
346
- HostHeaderInputConfig &
347
- AwsAuthInputConfig &
348
- UserAgentInputConfig;
349
- /**
350
- * The configuration interface of WorkDocsClient class constructor that set the region, credentials and other options.
351
- */
352
- export interface WorkDocsClientConfig extends WorkDocsClientConfigType {}
353
-
354
- type WorkDocsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
355
- Required<ClientDefaults> &
356
- RegionResolvedConfig &
357
- EndpointsResolvedConfig &
358
- RetryResolvedConfig &
359
- HostHeaderResolvedConfig &
360
- AwsAuthResolvedConfig &
361
- UserAgentResolvedConfig;
362
- /**
363
- * The resolved configuration interface of WorkDocsClient class. This is resolved and normalized from the {@link WorkDocsClientConfig | constructor configuration interface}.
364
- */
365
- export interface WorkDocsClientResolvedConfig extends WorkDocsClientResolvedConfigType {}
366
-
367
- /**
368
- * <p>The WorkDocs API is designed for the following use cases:</p>
369
- * <ul>
370
- * <li>
371
- * <p>File Migration: File migration applications are supported for users who
372
- * want to migrate their files from an on-premises or off-premises file system or
373
- * service. Users can insert files into a user directory structure, as well as
374
- * allow for basic metadata changes, such as modifications to the permissions of
375
- * files.</p>
376
- * </li>
377
- * <li>
378
- * <p>Security: Support security applications are supported for users who have
379
- * additional security needs, such as antivirus or data loss prevention. The API
380
- * actions, along with AWS CloudTrail, allow these applications to detect when
381
- * changes occur in Amazon WorkDocs. Then, the application can take the necessary
382
- * actions and replace the target file. If the target file violates the policy, the
383
- * application can also choose to email the user.</p>
384
- * </li>
385
- * <li>
386
- * <p>eDiscovery/Analytics: General administrative applications are supported,
387
- * such as eDiscovery and analytics. These applications can choose to mimic or
388
- * record the actions in an Amazon WorkDocs site, along with AWS CloudTrail, to
389
- * replicate data for eDiscovery, backup, or analytical applications.</p>
390
- * </li>
391
- * </ul>
392
- * <p>All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed.
393
- * They not only require the use of the AWS SDK, but also allow for the exclusive use of
394
- * IAM users and roles to help facilitate access, trust, and permission policies. By
395
- * creating a role and allowing an IAM user to access the Amazon WorkDocs site, the IAM
396
- * user gains full administrative visibility into the entire Amazon WorkDocs site (or as
397
- * set in the IAM policy). This includes, but is not limited to, the ability to modify file
398
- * permissions and upload any file to any user. This allows developers to perform the three
399
- * use cases above, as well as give users the ability to grant access on a selective basis
400
- * using the IAM model.</p>
401
- */
402
- export class WorkDocsClient extends __Client<
403
- __HttpHandlerOptions,
404
- ServiceInputTypes,
405
- ServiceOutputTypes,
406
- WorkDocsClientResolvedConfig
407
- > {
408
- /**
409
- * The resolved configuration of WorkDocsClient class. This is resolved and normalized from the {@link WorkDocsClientConfig | constructor configuration interface}.
410
- */
411
- readonly config: WorkDocsClientResolvedConfig;
412
-
413
- constructor(configuration: WorkDocsClientConfig) {
414
- const _config_0 = __getRuntimeConfig(configuration);
415
- const _config_1 = resolveRegionConfig(_config_0);
416
- const _config_2 = resolveEndpointsConfig(_config_1);
417
- const _config_3 = resolveRetryConfig(_config_2);
418
- const _config_4 = resolveHostHeaderConfig(_config_3);
419
- const _config_5 = resolveAwsAuthConfig(_config_4);
420
- const _config_6 = resolveUserAgentConfig(_config_5);
421
- super(_config_6);
422
- this.config = _config_6;
423
- this.middlewareStack.use(getRetryPlugin(this.config));
424
- this.middlewareStack.use(getContentLengthPlugin(this.config));
425
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
426
- this.middlewareStack.use(getLoggerPlugin(this.config));
427
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
428
- this.middlewareStack.use(getUserAgentPlugin(this.config));
429
- }
430
-
431
- /**
432
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
433
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
434
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
435
- */
436
- destroy(): void {
437
- super.destroy();
438
- }
439
- }
@@ -1,101 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { AbortDocumentVersionUploadRequest } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1AbortDocumentVersionUploadCommand,
17
- serializeAws_restJson1AbortDocumentVersionUploadCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
20
-
21
- export interface AbortDocumentVersionUploadCommandInput extends AbortDocumentVersionUploadRequest {}
22
- export interface AbortDocumentVersionUploadCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Aborts the upload of the specified document version that was previously initiated
26
- * by <a>InitiateDocumentVersionUpload</a>. The client should make this call
27
- * only when it no longer intends to upload the document version, or fails to do
28
- * so.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { WorkDocsClient, AbortDocumentVersionUploadCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
33
- * // const { WorkDocsClient, AbortDocumentVersionUploadCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
34
- * const client = new WorkDocsClient(config);
35
- * const command = new AbortDocumentVersionUploadCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link AbortDocumentVersionUploadCommandInput} for command's `input` shape.
40
- * @see {@link AbortDocumentVersionUploadCommandOutput} for command's `response` shape.
41
- * @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class AbortDocumentVersionUploadCommand extends $Command<
45
- AbortDocumentVersionUploadCommandInput,
46
- AbortDocumentVersionUploadCommandOutput,
47
- WorkDocsClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: AbortDocumentVersionUploadCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: WorkDocsClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<AbortDocumentVersionUploadCommandInput, AbortDocumentVersionUploadCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "WorkDocsClient";
72
- const commandName = "AbortDocumentVersionUploadCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: AbortDocumentVersionUploadRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: (output: any) => output,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: AbortDocumentVersionUploadCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1AbortDocumentVersionUploadCommand(input, context);
90
- }
91
-
92
- private deserialize(
93
- output: __HttpResponse,
94
- context: __SerdeContext
95
- ): Promise<AbortDocumentVersionUploadCommandOutput> {
96
- return deserializeAws_restJson1AbortDocumentVersionUploadCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ActivateUserRequest, ActivateUserResponse } from "../models/models_0";
15
- import {
16
- deserializeAws_restJson1ActivateUserCommand,
17
- serializeAws_restJson1ActivateUserCommand,
18
- } from "../protocols/Aws_restJson1";
19
- import { ServiceInputTypes, ServiceOutputTypes, WorkDocsClientResolvedConfig } from "../WorkDocsClient";
20
-
21
- export interface ActivateUserCommandInput extends ActivateUserRequest {}
22
- export interface ActivateUserCommandOutput extends ActivateUserResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Activates the specified user. Only active users can access Amazon
26
- * WorkDocs.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { WorkDocsClient, ActivateUserCommand } from "@aws-sdk/client-workdocs"; // ES Modules import
31
- * // const { WorkDocsClient, ActivateUserCommand } = require("@aws-sdk/client-workdocs"); // CommonJS import
32
- * const client = new WorkDocsClient(config);
33
- * const command = new ActivateUserCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link ActivateUserCommandInput} for command's `input` shape.
38
- * @see {@link ActivateUserCommandOutput} for command's `response` shape.
39
- * @see {@link WorkDocsClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class ActivateUserCommand extends $Command<
43
- ActivateUserCommandInput,
44
- ActivateUserCommandOutput,
45
- WorkDocsClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: ActivateUserCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: WorkDocsClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<ActivateUserCommandInput, ActivateUserCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "WorkDocsClient";
70
- const commandName = "ActivateUserCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: ActivateUserRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: ActivateUserResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: ActivateUserCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_restJson1ActivateUserCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ActivateUserCommandOutput> {
91
- return deserializeAws_restJson1ActivateUserCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }