@aws-sdk/client-workdocs 3.315.0 → 3.316.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.
@@ -44,439 +44,333 @@ import { UpdateDocumentVersionCommandInput, UpdateDocumentVersionCommandOutput }
44
44
  import { UpdateFolderCommandInput, UpdateFolderCommandOutput } from "./commands/UpdateFolderCommand";
45
45
  import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
46
46
  import { WorkDocsClient } from "./WorkDocsClient";
47
- /**
48
- * @public
49
- * <p>The Amazon WorkDocs API is designed for the following use cases:</p>
50
- * <ul>
51
- * <li>
52
- * <p>File Migration: File migration applications are supported for users who
53
- * want to migrate their files from an on-premises or off-premises file system or
54
- * service. Users can insert files into a user directory structure, as well as
55
- * allow for basic metadata changes, such as modifications to the permissions of
56
- * files.</p>
57
- * </li>
58
- * <li>
59
- * <p>Security: Support security applications are supported for users who have
60
- * additional security needs, such as antivirus or data loss prevention. The API
61
- * actions, along with CloudTrail, allow these applications to detect when
62
- * changes occur in Amazon WorkDocs. Then, the application can take the necessary
63
- * actions and replace the target file. If the target file violates the policy, the
64
- * application can also choose to email the user.</p>
65
- * </li>
66
- * <li>
67
- * <p>eDiscovery/Analytics: General administrative applications are supported,
68
- * such as eDiscovery and analytics. These applications can choose to mimic or
69
- * record the actions in an Amazon WorkDocs site, along with CloudTrail, to
70
- * replicate data for eDiscovery, backup, or analytical applications.</p>
71
- * </li>
72
- * </ul>
73
- * <p>All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed.
74
- * They not only require the use of the Amazon Web Services SDK, but also allow for the exclusive use of
75
- * IAM users and roles to help facilitate access, trust, and permission policies. By
76
- * creating a role and allowing an IAM user to access the Amazon WorkDocs site, the
77
- * IAM user gains full administrative visibility into the entire Amazon WorkDocs site (or as
78
- * set in the IAM policy). This includes, but is not limited to, the ability to modify file
79
- * permissions and upload any file to any user. This allows developers to perform the three
80
- * use cases above, as well as give users the ability to grant access on a selective basis
81
- * using the IAM model.</p>
82
- * <note>
83
- * <p>The pricing for Amazon WorkDocs APIs varies depending on the API call type for these actions:</p>
84
- * <ul>
85
- * <li>
86
- * <p>
87
- * <code>READ (Get*)</code>
88
- * </p>
89
- * </li>
90
- * <li>
91
- * <p>
92
- * <code>WRITE (Activate*, Add*, Create*, Deactivate*, Initiate*, Update*)</code>
93
- * </p>
94
- * </li>
95
- * <li>
96
- * <p>
97
- * <code>LIST (Describe*)</code>
98
- * </p>
99
- * </li>
100
- * <li>
101
- * <p>
102
- * <code>DELETE*, CANCEL</code>
103
- * </p>
104
- * </li>
105
- * </ul>
106
- * <p>For information about Amazon WorkDocs API pricing, see <a href="https://aws.amazon.com/workdocs/pricing/">Amazon WorkDocs Pricing</a>.</p>
107
- * </note>
108
- */
109
- export declare class WorkDocs extends WorkDocsClient {
47
+ export interface WorkDocs {
110
48
  /**
111
- * @public
112
- * <p>Aborts the upload of the specified document version that was previously initiated
113
- * by <a>InitiateDocumentVersionUpload</a>. The client should make this call
114
- * only when it no longer intends to upload the document version, or fails to do
115
- * so.</p>
49
+ * @see {@link AbortDocumentVersionUploadCommand}
116
50
  */
117
51
  abortDocumentVersionUpload(args: AbortDocumentVersionUploadCommandInput, options?: __HttpHandlerOptions): Promise<AbortDocumentVersionUploadCommandOutput>;
118
52
  abortDocumentVersionUpload(args: AbortDocumentVersionUploadCommandInput, cb: (err: any, data?: AbortDocumentVersionUploadCommandOutput) => void): void;
119
53
  abortDocumentVersionUpload(args: AbortDocumentVersionUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AbortDocumentVersionUploadCommandOutput) => void): void;
120
54
  /**
121
- * @public
122
- * <p>Activates the specified user. Only active users can access Amazon
123
- * WorkDocs.</p>
55
+ * @see {@link ActivateUserCommand}
124
56
  */
125
57
  activateUser(args: ActivateUserCommandInput, options?: __HttpHandlerOptions): Promise<ActivateUserCommandOutput>;
126
58
  activateUser(args: ActivateUserCommandInput, cb: (err: any, data?: ActivateUserCommandOutput) => void): void;
127
59
  activateUser(args: ActivateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ActivateUserCommandOutput) => void): void;
128
60
  /**
129
- * @public
130
- * <p>Creates a set of permissions for the specified folder or document. The resource
131
- * permissions are overwritten if the principals already have different
132
- * permissions.</p>
61
+ * @see {@link AddResourcePermissionsCommand}
133
62
  */
134
63
  addResourcePermissions(args: AddResourcePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<AddResourcePermissionsCommandOutput>;
135
64
  addResourcePermissions(args: AddResourcePermissionsCommandInput, cb: (err: any, data?: AddResourcePermissionsCommandOutput) => void): void;
136
65
  addResourcePermissions(args: AddResourcePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddResourcePermissionsCommandOutput) => void): void;
137
66
  /**
138
- * @public
139
- * <p>Adds a new comment to the specified document version.</p>
67
+ * @see {@link CreateCommentCommand}
140
68
  */
141
69
  createComment(args: CreateCommentCommandInput, options?: __HttpHandlerOptions): Promise<CreateCommentCommandOutput>;
142
70
  createComment(args: CreateCommentCommandInput, cb: (err: any, data?: CreateCommentCommandOutput) => void): void;
143
71
  createComment(args: CreateCommentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCommentCommandOutput) => void): void;
144
72
  /**
145
- * @public
146
- * <p>Adds one or more custom properties to the specified resource (a folder, document,
147
- * or version).</p>
73
+ * @see {@link CreateCustomMetadataCommand}
148
74
  */
149
75
  createCustomMetadata(args: CreateCustomMetadataCommandInput, options?: __HttpHandlerOptions): Promise<CreateCustomMetadataCommandOutput>;
150
76
  createCustomMetadata(args: CreateCustomMetadataCommandInput, cb: (err: any, data?: CreateCustomMetadataCommandOutput) => void): void;
151
77
  createCustomMetadata(args: CreateCustomMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCustomMetadataCommandOutput) => void): void;
152
78
  /**
153
- * @public
154
- * <p>Creates a folder with the specified name and parent folder.</p>
79
+ * @see {@link CreateFolderCommand}
155
80
  */
156
81
  createFolder(args: CreateFolderCommandInput, options?: __HttpHandlerOptions): Promise<CreateFolderCommandOutput>;
157
82
  createFolder(args: CreateFolderCommandInput, cb: (err: any, data?: CreateFolderCommandOutput) => void): void;
158
83
  createFolder(args: CreateFolderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFolderCommandOutput) => void): void;
159
84
  /**
160
- * @public
161
- * <p>Adds the specified list of labels to the given resource (a document or
162
- * folder)</p>
85
+ * @see {@link CreateLabelsCommand}
163
86
  */
164
87
  createLabels(args: CreateLabelsCommandInput, options?: __HttpHandlerOptions): Promise<CreateLabelsCommandOutput>;
165
88
  createLabels(args: CreateLabelsCommandInput, cb: (err: any, data?: CreateLabelsCommandOutput) => void): void;
166
89
  createLabels(args: CreateLabelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLabelsCommandOutput) => void): void;
167
90
  /**
168
- * @public
169
- * <p>Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a
170
- * confirmation message, and must confirm the subscription.</p>
171
- * <p>For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/manage-notifications.html">Setting up notifications for an IAM user or role</a> in the <i>Amazon WorkDocs Developer
172
- * Guide</i>.</p>
91
+ * @see {@link CreateNotificationSubscriptionCommand}
173
92
  */
174
93
  createNotificationSubscription(args: CreateNotificationSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CreateNotificationSubscriptionCommandOutput>;
175
94
  createNotificationSubscription(args: CreateNotificationSubscriptionCommandInput, cb: (err: any, data?: CreateNotificationSubscriptionCommandOutput) => void): void;
176
95
  createNotificationSubscription(args: CreateNotificationSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNotificationSubscriptionCommandOutput) => void): void;
177
96
  /**
178
- * @public
179
- * <p>Creates a user in a Simple AD or Microsoft AD directory. The status of a newly
180
- * created user is "ACTIVE". New users can access Amazon WorkDocs.</p>
97
+ * @see {@link CreateUserCommand}
181
98
  */
182
99
  createUser(args: CreateUserCommandInput, options?: __HttpHandlerOptions): Promise<CreateUserCommandOutput>;
183
100
  createUser(args: CreateUserCommandInput, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
184
101
  createUser(args: CreateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUserCommandOutput) => void): void;
185
102
  /**
186
- * @public
187
- * <p>Deactivates the specified user, which revokes the user's access to Amazon
188
- * WorkDocs.</p>
103
+ * @see {@link DeactivateUserCommand}
189
104
  */
190
105
  deactivateUser(args: DeactivateUserCommandInput, options?: __HttpHandlerOptions): Promise<DeactivateUserCommandOutput>;
191
106
  deactivateUser(args: DeactivateUserCommandInput, cb: (err: any, data?: DeactivateUserCommandOutput) => void): void;
192
107
  deactivateUser(args: DeactivateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeactivateUserCommandOutput) => void): void;
193
108
  /**
194
- * @public
195
- * <p>Deletes the specified comment from the document version.</p>
109
+ * @see {@link DeleteCommentCommand}
196
110
  */
197
111
  deleteComment(args: DeleteCommentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommentCommandOutput>;
198
112
  deleteComment(args: DeleteCommentCommandInput, cb: (err: any, data?: DeleteCommentCommandOutput) => void): void;
199
113
  deleteComment(args: DeleteCommentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCommentCommandOutput) => void): void;
200
114
  /**
201
- * @public
202
- * <p>Deletes custom metadata from the specified resource.</p>
115
+ * @see {@link DeleteCustomMetadataCommand}
203
116
  */
204
117
  deleteCustomMetadata(args: DeleteCustomMetadataCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomMetadataCommandOutput>;
205
118
  deleteCustomMetadata(args: DeleteCustomMetadataCommandInput, cb: (err: any, data?: DeleteCustomMetadataCommandOutput) => void): void;
206
119
  deleteCustomMetadata(args: DeleteCustomMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomMetadataCommandOutput) => void): void;
207
120
  /**
208
- * @public
209
- * <p>Permanently deletes the specified document and its associated metadata.</p>
121
+ * @see {@link DeleteDocumentCommand}
210
122
  */
211
123
  deleteDocument(args: DeleteDocumentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDocumentCommandOutput>;
212
124
  deleteDocument(args: DeleteDocumentCommandInput, cb: (err: any, data?: DeleteDocumentCommandOutput) => void): void;
213
125
  deleteDocument(args: DeleteDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDocumentCommandOutput) => void): void;
214
126
  /**
215
- * @public
216
- * <p>Deletes a specific version of a document.</p>
127
+ * @see {@link DeleteDocumentVersionCommand}
217
128
  */
218
129
  deleteDocumentVersion(args: DeleteDocumentVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDocumentVersionCommandOutput>;
219
130
  deleteDocumentVersion(args: DeleteDocumentVersionCommandInput, cb: (err: any, data?: DeleteDocumentVersionCommandOutput) => void): void;
220
131
  deleteDocumentVersion(args: DeleteDocumentVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDocumentVersionCommandOutput) => void): void;
221
132
  /**
222
- * @public
223
- * <p>Permanently deletes the specified folder and its contents.</p>
133
+ * @see {@link DeleteFolderCommand}
224
134
  */
225
135
  deleteFolder(args: DeleteFolderCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFolderCommandOutput>;
226
136
  deleteFolder(args: DeleteFolderCommandInput, cb: (err: any, data?: DeleteFolderCommandOutput) => void): void;
227
137
  deleteFolder(args: DeleteFolderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFolderCommandOutput) => void): void;
228
138
  /**
229
- * @public
230
- * <p>Deletes the contents of the specified folder.</p>
139
+ * @see {@link DeleteFolderContentsCommand}
231
140
  */
232
141
  deleteFolderContents(args: DeleteFolderContentsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFolderContentsCommandOutput>;
233
142
  deleteFolderContents(args: DeleteFolderContentsCommandInput, cb: (err: any, data?: DeleteFolderContentsCommandOutput) => void): void;
234
143
  deleteFolderContents(args: DeleteFolderContentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFolderContentsCommandOutput) => void): void;
235
144
  /**
236
- * @public
237
- * <p>Deletes the specified list of labels from a resource.</p>
145
+ * @see {@link DeleteLabelsCommand}
238
146
  */
239
147
  deleteLabels(args: DeleteLabelsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLabelsCommandOutput>;
240
148
  deleteLabels(args: DeleteLabelsCommandInput, cb: (err: any, data?: DeleteLabelsCommandOutput) => void): void;
241
149
  deleteLabels(args: DeleteLabelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLabelsCommandOutput) => void): void;
242
150
  /**
243
- * @public
244
- * <p>Deletes the specified subscription from the specified organization.</p>
151
+ * @see {@link DeleteNotificationSubscriptionCommand}
245
152
  */
246
153
  deleteNotificationSubscription(args: DeleteNotificationSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNotificationSubscriptionCommandOutput>;
247
154
  deleteNotificationSubscription(args: DeleteNotificationSubscriptionCommandInput, cb: (err: any, data?: DeleteNotificationSubscriptionCommandOutput) => void): void;
248
155
  deleteNotificationSubscription(args: DeleteNotificationSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNotificationSubscriptionCommandOutput) => void): void;
249
156
  /**
250
- * @public
251
- * <p>Deletes the specified user from a Simple AD or Microsoft AD directory.</p>
252
- * <important>
253
- * <p>Deleting a user immediately and permanently deletes all content in that user's folder structure. Site retention policies do NOT apply to this type of deletion.</p>
254
- * </important>
157
+ * @see {@link DeleteUserCommand}
255
158
  */
256
159
  deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
257
160
  deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
258
161
  deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
259
162
  /**
260
- * @public
261
- * <p>Describes the user activities in a specified time period.</p>
163
+ * @see {@link DescribeActivitiesCommand}
262
164
  */
263
165
  describeActivities(args: DescribeActivitiesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeActivitiesCommandOutput>;
264
166
  describeActivities(args: DescribeActivitiesCommandInput, cb: (err: any, data?: DescribeActivitiesCommandOutput) => void): void;
265
167
  describeActivities(args: DescribeActivitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeActivitiesCommandOutput) => void): void;
266
168
  /**
267
- * @public
268
- * <p>List all the comments for the specified document version.</p>
169
+ * @see {@link DescribeCommentsCommand}
269
170
  */
270
171
  describeComments(args: DescribeCommentsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCommentsCommandOutput>;
271
172
  describeComments(args: DescribeCommentsCommandInput, cb: (err: any, data?: DescribeCommentsCommandOutput) => void): void;
272
173
  describeComments(args: DescribeCommentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCommentsCommandOutput) => void): void;
273
174
  /**
274
- * @public
275
- * <p>Retrieves the document versions for the specified document.</p>
276
- * <p>By default, only active versions are returned.</p>
175
+ * @see {@link DescribeDocumentVersionsCommand}
277
176
  */
278
177
  describeDocumentVersions(args: DescribeDocumentVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDocumentVersionsCommandOutput>;
279
178
  describeDocumentVersions(args: DescribeDocumentVersionsCommandInput, cb: (err: any, data?: DescribeDocumentVersionsCommandOutput) => void): void;
280
179
  describeDocumentVersions(args: DescribeDocumentVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDocumentVersionsCommandOutput) => void): void;
281
180
  /**
282
- * @public
283
- * <p>Describes the contents of the specified folder, including its documents and
284
- * subfolders.</p>
285
- * <p>By default, Amazon WorkDocs returns the first 100 active document and folder
286
- * metadata items. If there are more results, the response includes a marker that you can
287
- * use to request the next set of results. You can also request initialized
288
- * documents.</p>
181
+ * @see {@link DescribeFolderContentsCommand}
289
182
  */
290
183
  describeFolderContents(args: DescribeFolderContentsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFolderContentsCommandOutput>;
291
184
  describeFolderContents(args: DescribeFolderContentsCommandInput, cb: (err: any, data?: DescribeFolderContentsCommandOutput) => void): void;
292
185
  describeFolderContents(args: DescribeFolderContentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFolderContentsCommandOutput) => void): void;
293
186
  /**
294
- * @public
295
- * <p>Describes the groups specified by the query. Groups are defined by the underlying
296
- * Active Directory.</p>
187
+ * @see {@link DescribeGroupsCommand}
297
188
  */
298
189
  describeGroups(args: DescribeGroupsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeGroupsCommandOutput>;
299
190
  describeGroups(args: DescribeGroupsCommandInput, cb: (err: any, data?: DescribeGroupsCommandOutput) => void): void;
300
191
  describeGroups(args: DescribeGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeGroupsCommandOutput) => void): void;
301
192
  /**
302
- * @public
303
- * <p>Lists the specified notification subscriptions.</p>
193
+ * @see {@link DescribeNotificationSubscriptionsCommand}
304
194
  */
305
195
  describeNotificationSubscriptions(args: DescribeNotificationSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeNotificationSubscriptionsCommandOutput>;
306
196
  describeNotificationSubscriptions(args: DescribeNotificationSubscriptionsCommandInput, cb: (err: any, data?: DescribeNotificationSubscriptionsCommandOutput) => void): void;
307
197
  describeNotificationSubscriptions(args: DescribeNotificationSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeNotificationSubscriptionsCommandOutput) => void): void;
308
198
  /**
309
- * @public
310
- * <p>Describes the permissions of a specified resource.</p>
199
+ * @see {@link DescribeResourcePermissionsCommand}
311
200
  */
312
201
  describeResourcePermissions(args: DescribeResourcePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeResourcePermissionsCommandOutput>;
313
202
  describeResourcePermissions(args: DescribeResourcePermissionsCommandInput, cb: (err: any, data?: DescribeResourcePermissionsCommandOutput) => void): void;
314
203
  describeResourcePermissions(args: DescribeResourcePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeResourcePermissionsCommandOutput) => void): void;
315
204
  /**
316
- * @public
317
- * <p>Describes the current user's special folders; the <code>RootFolder</code> and the
318
- * <code>RecycleBin</code>. <code>RootFolder</code> is the root of user's files and
319
- * folders and <code>RecycleBin</code> is the root of recycled items. This is not a valid
320
- * action for SigV4 (administrative API) clients.</p>
321
- * <p>This action requires an authentication token. To get an authentication token,
322
- * register an application with Amazon WorkDocs. For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html">Authentication and Access
323
- * Control for User Applications</a> in the
324
- * <i>Amazon
325
- * WorkDocs Developer Guide</i>.</p>
205
+ * @see {@link DescribeRootFoldersCommand}
326
206
  */
327
207
  describeRootFolders(args: DescribeRootFoldersCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRootFoldersCommandOutput>;
328
208
  describeRootFolders(args: DescribeRootFoldersCommandInput, cb: (err: any, data?: DescribeRootFoldersCommandOutput) => void): void;
329
209
  describeRootFolders(args: DescribeRootFoldersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRootFoldersCommandOutput) => void): void;
330
210
  /**
331
- * @public
332
- * <p>Describes the specified users. You can describe all users or filter the results
333
- * (for example, by status or organization).</p>
334
- * <p>By default, Amazon WorkDocs returns the first 24 active or pending users. If there
335
- * are more results, the response includes a marker that you can use to request the next
336
- * set of results.</p>
211
+ * @see {@link DescribeUsersCommand}
337
212
  */
338
213
  describeUsers(args: DescribeUsersCommandInput, options?: __HttpHandlerOptions): Promise<DescribeUsersCommandOutput>;
339
214
  describeUsers(args: DescribeUsersCommandInput, cb: (err: any, data?: DescribeUsersCommandOutput) => void): void;
340
215
  describeUsers(args: DescribeUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeUsersCommandOutput) => void): void;
341
216
  /**
342
- * @public
343
- * <p>Retrieves details of the current user for whom the authentication token was
344
- * generated. This is not a valid action for SigV4 (administrative API) clients.</p>
345
- * <p>This action requires an authentication token. To get an authentication token,
346
- * register an application with Amazon WorkDocs. For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html">Authentication and Access
347
- * Control for User Applications</a> in the
348
- * <i>Amazon
349
- * WorkDocs Developer Guide</i>.</p>
217
+ * @see {@link GetCurrentUserCommand}
350
218
  */
351
219
  getCurrentUser(args: GetCurrentUserCommandInput, options?: __HttpHandlerOptions): Promise<GetCurrentUserCommandOutput>;
352
220
  getCurrentUser(args: GetCurrentUserCommandInput, cb: (err: any, data?: GetCurrentUserCommandOutput) => void): void;
353
221
  getCurrentUser(args: GetCurrentUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCurrentUserCommandOutput) => void): void;
354
222
  /**
355
- * @public
356
- * <p>Retrieves details of a document.</p>
223
+ * @see {@link GetDocumentCommand}
357
224
  */
358
225
  getDocument(args: GetDocumentCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentCommandOutput>;
359
226
  getDocument(args: GetDocumentCommandInput, cb: (err: any, data?: GetDocumentCommandOutput) => void): void;
360
227
  getDocument(args: GetDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentCommandOutput) => void): void;
361
228
  /**
362
- * @public
363
- * <p>Retrieves the path information (the hierarchy from the root folder) for the
364
- * requested document.</p>
365
- * <p>By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the
366
- * requested document and only includes the IDs of the parent folders in the path. You can
367
- * limit the maximum number of levels. You can also request the names of the parent
368
- * folders.</p>
229
+ * @see {@link GetDocumentPathCommand}
369
230
  */
370
231
  getDocumentPath(args: GetDocumentPathCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentPathCommandOutput>;
371
232
  getDocumentPath(args: GetDocumentPathCommandInput, cb: (err: any, data?: GetDocumentPathCommandOutput) => void): void;
372
233
  getDocumentPath(args: GetDocumentPathCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentPathCommandOutput) => void): void;
373
234
  /**
374
- * @public
375
- * <p>Retrieves version metadata for the specified document.</p>
235
+ * @see {@link GetDocumentVersionCommand}
376
236
  */
377
237
  getDocumentVersion(args: GetDocumentVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentVersionCommandOutput>;
378
238
  getDocumentVersion(args: GetDocumentVersionCommandInput, cb: (err: any, data?: GetDocumentVersionCommandOutput) => void): void;
379
239
  getDocumentVersion(args: GetDocumentVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentVersionCommandOutput) => void): void;
380
240
  /**
381
- * @public
382
- * <p>Retrieves the metadata of the specified folder.</p>
241
+ * @see {@link GetFolderCommand}
383
242
  */
384
243
  getFolder(args: GetFolderCommandInput, options?: __HttpHandlerOptions): Promise<GetFolderCommandOutput>;
385
244
  getFolder(args: GetFolderCommandInput, cb: (err: any, data?: GetFolderCommandOutput) => void): void;
386
245
  getFolder(args: GetFolderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFolderCommandOutput) => void): void;
387
246
  /**
388
- * @public
389
- * <p>Retrieves the path information (the hierarchy from the root folder) for the
390
- * specified folder.</p>
391
- * <p>By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the
392
- * requested folder and only includes the IDs of the parent folders in the path. You can
393
- * limit the maximum number of levels. You can also request the parent folder
394
- * names.</p>
247
+ * @see {@link GetFolderPathCommand}
395
248
  */
396
249
  getFolderPath(args: GetFolderPathCommandInput, options?: __HttpHandlerOptions): Promise<GetFolderPathCommandOutput>;
397
250
  getFolderPath(args: GetFolderPathCommandInput, cb: (err: any, data?: GetFolderPathCommandOutput) => void): void;
398
251
  getFolderPath(args: GetFolderPathCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFolderPathCommandOutput) => void): void;
399
252
  /**
400
- * @public
401
- * <p>Retrieves a collection of resources, including folders and documents. The only
402
- * <code>CollectionType</code> supported is <code>SHARED_WITH_ME</code>.</p>
253
+ * @see {@link GetResourcesCommand}
403
254
  */
404
255
  getResources(args: GetResourcesCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcesCommandOutput>;
405
256
  getResources(args: GetResourcesCommandInput, cb: (err: any, data?: GetResourcesCommandOutput) => void): void;
406
257
  getResources(args: GetResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcesCommandOutput) => void): void;
407
258
  /**
408
- * @public
409
- * <p>Creates a new document object and version object.</p>
410
- * <p>The client specifies the parent folder ID and name of the document to upload. The
411
- * ID is optionally specified when creating a new version of an existing document. This is
412
- * the first step to upload a document. Next, upload the document to the URL returned from
413
- * the call, and then call <a>UpdateDocumentVersion</a>.</p>
414
- * <p>To cancel the document upload, call <a>AbortDocumentVersionUpload</a>.</p>
259
+ * @see {@link InitiateDocumentVersionUploadCommand}
415
260
  */
416
261
  initiateDocumentVersionUpload(args: InitiateDocumentVersionUploadCommandInput, options?: __HttpHandlerOptions): Promise<InitiateDocumentVersionUploadCommandOutput>;
417
262
  initiateDocumentVersionUpload(args: InitiateDocumentVersionUploadCommandInput, cb: (err: any, data?: InitiateDocumentVersionUploadCommandOutput) => void): void;
418
263
  initiateDocumentVersionUpload(args: InitiateDocumentVersionUploadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InitiateDocumentVersionUploadCommandOutput) => void): void;
419
264
  /**
420
- * @public
421
- * <p>Removes all the permissions from the specified resource.</p>
265
+ * @see {@link RemoveAllResourcePermissionsCommand}
422
266
  */
423
267
  removeAllResourcePermissions(args: RemoveAllResourcePermissionsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveAllResourcePermissionsCommandOutput>;
424
268
  removeAllResourcePermissions(args: RemoveAllResourcePermissionsCommandInput, cb: (err: any, data?: RemoveAllResourcePermissionsCommandOutput) => void): void;
425
269
  removeAllResourcePermissions(args: RemoveAllResourcePermissionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveAllResourcePermissionsCommandOutput) => void): void;
426
270
  /**
427
- * @public
428
- * <p>Removes the permission for the specified principal from the specified
429
- * resource.</p>
271
+ * @see {@link RemoveResourcePermissionCommand}
430
272
  */
431
273
  removeResourcePermission(args: RemoveResourcePermissionCommandInput, options?: __HttpHandlerOptions): Promise<RemoveResourcePermissionCommandOutput>;
432
274
  removeResourcePermission(args: RemoveResourcePermissionCommandInput, cb: (err: any, data?: RemoveResourcePermissionCommandOutput) => void): void;
433
275
  removeResourcePermission(args: RemoveResourcePermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveResourcePermissionCommandOutput) => void): void;
434
276
  /**
435
- * @public
436
- * <p>Recovers a deleted version of an Amazon WorkDocs document.</p>
277
+ * @see {@link RestoreDocumentVersionsCommand}
437
278
  */
438
279
  restoreDocumentVersions(args: RestoreDocumentVersionsCommandInput, options?: __HttpHandlerOptions): Promise<RestoreDocumentVersionsCommandOutput>;
439
280
  restoreDocumentVersions(args: RestoreDocumentVersionsCommandInput, cb: (err: any, data?: RestoreDocumentVersionsCommandOutput) => void): void;
440
281
  restoreDocumentVersions(args: RestoreDocumentVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreDocumentVersionsCommandOutput) => void): void;
441
282
  /**
442
- * @public
443
- * <p>Searches metadata and the content of folders, documents, document versions, and comments.</p>
283
+ * @see {@link SearchResourcesCommand}
444
284
  */
445
285
  searchResources(args: SearchResourcesCommandInput, options?: __HttpHandlerOptions): Promise<SearchResourcesCommandOutput>;
446
286
  searchResources(args: SearchResourcesCommandInput, cb: (err: any, data?: SearchResourcesCommandOutput) => void): void;
447
287
  searchResources(args: SearchResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchResourcesCommandOutput) => void): void;
448
288
  /**
449
- * @public
450
- * <p>Updates the specified attributes of a document. The user must have access to both
451
- * the document and its parent folder, if applicable.</p>
289
+ * @see {@link UpdateDocumentCommand}
452
290
  */
453
291
  updateDocument(args: UpdateDocumentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDocumentCommandOutput>;
454
292
  updateDocument(args: UpdateDocumentCommandInput, cb: (err: any, data?: UpdateDocumentCommandOutput) => void): void;
455
293
  updateDocument(args: UpdateDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDocumentCommandOutput) => void): void;
456
294
  /**
457
- * @public
458
- * <p>Changes the status of the document version to ACTIVE. </p>
459
- * <p>Amazon WorkDocs also sets its document container to ACTIVE. This is the last step
460
- * in a document upload, after the client uploads the document to an S3-presigned URL
461
- * returned by <a>InitiateDocumentVersionUpload</a>. </p>
295
+ * @see {@link UpdateDocumentVersionCommand}
462
296
  */
463
297
  updateDocumentVersion(args: UpdateDocumentVersionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDocumentVersionCommandOutput>;
464
298
  updateDocumentVersion(args: UpdateDocumentVersionCommandInput, cb: (err: any, data?: UpdateDocumentVersionCommandOutput) => void): void;
465
299
  updateDocumentVersion(args: UpdateDocumentVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDocumentVersionCommandOutput) => void): void;
466
300
  /**
467
- * @public
468
- * <p>Updates the specified attributes of the specified folder. The user must have access
469
- * to both the folder and its parent folder, if applicable.</p>
301
+ * @see {@link UpdateFolderCommand}
470
302
  */
471
303
  updateFolder(args: UpdateFolderCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFolderCommandOutput>;
472
304
  updateFolder(args: UpdateFolderCommandInput, cb: (err: any, data?: UpdateFolderCommandOutput) => void): void;
473
305
  updateFolder(args: UpdateFolderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFolderCommandOutput) => void): void;
474
306
  /**
475
- * @public
476
- * <p>Updates the specified attributes of the specified user, and grants or revokes
477
- * administrative privileges to the Amazon WorkDocs site.</p>
307
+ * @see {@link UpdateUserCommand}
478
308
  */
479
309
  updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
480
310
  updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
481
311
  updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
482
312
  }
313
+ /**
314
+ * @public
315
+ * <p>The Amazon WorkDocs API is designed for the following use cases:</p>
316
+ * <ul>
317
+ * <li>
318
+ * <p>File Migration: File migration applications are supported for users who
319
+ * want to migrate their files from an on-premises or off-premises file system or
320
+ * service. Users can insert files into a user directory structure, as well as
321
+ * allow for basic metadata changes, such as modifications to the permissions of
322
+ * files.</p>
323
+ * </li>
324
+ * <li>
325
+ * <p>Security: Support security applications are supported for users who have
326
+ * additional security needs, such as antivirus or data loss prevention. The API
327
+ * actions, along with CloudTrail, allow these applications to detect when
328
+ * changes occur in Amazon WorkDocs. Then, the application can take the necessary
329
+ * actions and replace the target file. If the target file violates the policy, the
330
+ * application can also choose to email the user.</p>
331
+ * </li>
332
+ * <li>
333
+ * <p>eDiscovery/Analytics: General administrative applications are supported,
334
+ * such as eDiscovery and analytics. These applications can choose to mimic or
335
+ * record the actions in an Amazon WorkDocs site, along with CloudTrail, to
336
+ * replicate data for eDiscovery, backup, or analytical applications.</p>
337
+ * </li>
338
+ * </ul>
339
+ * <p>All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed.
340
+ * They not only require the use of the Amazon Web Services SDK, but also allow for the exclusive use of
341
+ * IAM users and roles to help facilitate access, trust, and permission policies. By
342
+ * creating a role and allowing an IAM user to access the Amazon WorkDocs site, the
343
+ * IAM user gains full administrative visibility into the entire Amazon WorkDocs site (or as
344
+ * set in the IAM policy). This includes, but is not limited to, the ability to modify file
345
+ * permissions and upload any file to any user. This allows developers to perform the three
346
+ * use cases above, as well as give users the ability to grant access on a selective basis
347
+ * using the IAM model.</p>
348
+ * <note>
349
+ * <p>The pricing for Amazon WorkDocs APIs varies depending on the API call type for these actions:</p>
350
+ * <ul>
351
+ * <li>
352
+ * <p>
353
+ * <code>READ (Get*)</code>
354
+ * </p>
355
+ * </li>
356
+ * <li>
357
+ * <p>
358
+ * <code>WRITE (Activate*, Add*, Create*, Deactivate*, Initiate*, Update*)</code>
359
+ * </p>
360
+ * </li>
361
+ * <li>
362
+ * <p>
363
+ * <code>LIST (Describe*)</code>
364
+ * </p>
365
+ * </li>
366
+ * <li>
367
+ * <p>
368
+ * <code>DELETE*, CANCEL</code>
369
+ * </p>
370
+ * </li>
371
+ * </ul>
372
+ * <p>For information about Amazon WorkDocs API pricing, see <a href="https://aws.amazon.com/workdocs/pricing/">Amazon WorkDocs Pricing</a>.</p>
373
+ * </note>
374
+ */
375
+ export declare class WorkDocs extends WorkDocsClient implements WorkDocs {
376
+ }
@@ -176,7 +176,7 @@ import {
176
176
  UpdateUserCommandOutput,
177
177
  } from "./commands/UpdateUserCommand";
178
178
  import { WorkDocsClient } from "./WorkDocsClient";
179
- export declare class WorkDocs extends WorkDocsClient {
179
+ export interface WorkDocs {
180
180
  abortDocumentVersionUpload(
181
181
  args: AbortDocumentVersionUploadCommandInput,
182
182
  options?: __HttpHandlerOptions
@@ -756,3 +756,4 @@ export declare class WorkDocs extends WorkDocsClient {
756
756
  cb: (err: any, data?: UpdateUserCommandOutput) => void
757
757
  ): void;
758
758
  }
759
+ export declare class WorkDocs extends WorkDocsClient implements WorkDocs {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-workdocs",
3
3
  "description": "AWS SDK for JavaScript Workdocs Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",