Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WorkDocs

import { WorkDocs } from "https://aws-api.deno.dev/v0.3/services/workdocs.ts?docs=full";
class WorkDocs {
constructor(apiFactory: client.ApiFactory);
async abortDocumentVersionUpload(params: AbortDocumentVersionUploadRequest, opts?: client.RequestOptions): Promise<void>;
async activateUser(params: ActivateUserRequest, opts?: client.RequestOptions): Promise<ActivateUserResponse>;
async addResourcePermissions(params: AddResourcePermissionsRequest, opts?: client.RequestOptions): Promise<AddResourcePermissionsResponse>;
async createComment(params: CreateCommentRequest, opts?: client.RequestOptions): Promise<CreateCommentResponse>;
async createCustomMetadata(params: CreateCustomMetadataRequest, opts?: client.RequestOptions): Promise<void>;
async createFolder(params: CreateFolderRequest, opts?: client.RequestOptions): Promise<CreateFolderResponse>;
async createLabels(params: CreateLabelsRequest, opts?: client.RequestOptions): Promise<void>;
async createNotificationSubscription(params: CreateNotificationSubscriptionRequest, opts?: client.RequestOptions): Promise<CreateNotificationSubscriptionResponse>;
async createUser(params: CreateUserRequest, opts?: client.RequestOptions): Promise<CreateUserResponse>;
async deactivateUser(params: DeactivateUserRequest, opts?: client.RequestOptions): Promise<void>;
async deleteComment(params: DeleteCommentRequest, opts?: client.RequestOptions): Promise<void>;
async deleteCustomMetadata(params: DeleteCustomMetadataRequest, opts?: client.RequestOptions): Promise<void>;
async deleteDocument(params: DeleteDocumentRequest, opts?: client.RequestOptions): Promise<void>;
async deleteFolder(params: DeleteFolderRequest, opts?: client.RequestOptions): Promise<void>;
async deleteFolderContents(params: DeleteFolderContentsRequest, opts?: client.RequestOptions): Promise<void>;
async deleteLabels(params: DeleteLabelsRequest, opts?: client.RequestOptions): Promise<void>;
async deleteNotificationSubscription(params: DeleteNotificationSubscriptionRequest, opts?: client.RequestOptions): Promise<void>;
async deleteUser(params: DeleteUserRequest, opts?: client.RequestOptions): Promise<void>;
async describeActivities(params?: DescribeActivitiesRequest, opts?: client.RequestOptions): Promise<DescribeActivitiesResponse>;
async describeComments(params: DescribeCommentsRequest, opts?: client.RequestOptions): Promise<DescribeCommentsResponse>;
async describeDocumentVersions(params: DescribeDocumentVersionsRequest, opts?: client.RequestOptions): Promise<DescribeDocumentVersionsResponse>;
async describeFolderContents(params: DescribeFolderContentsRequest, opts?: client.RequestOptions): Promise<DescribeFolderContentsResponse>;
async describeGroups(params: DescribeGroupsRequest, opts?: client.RequestOptions): Promise<DescribeGroupsResponse>;
async describeNotificationSubscriptions(params: DescribeNotificationSubscriptionsRequest, opts?: client.RequestOptions): Promise<DescribeNotificationSubscriptionsResponse>;
async describeResourcePermissions(params: DescribeResourcePermissionsRequest, opts?: client.RequestOptions): Promise<DescribeResourcePermissionsResponse>;
async describeRootFolders(params: DescribeRootFoldersRequest, opts?: client.RequestOptions): Promise<DescribeRootFoldersResponse>;
async describeUsers(params?: DescribeUsersRequest, opts?: client.RequestOptions): Promise<DescribeUsersResponse>;
async getCurrentUser(params: GetCurrentUserRequest, opts?: client.RequestOptions): Promise<GetCurrentUserResponse>;
async getDocument(params: GetDocumentRequest, opts?: client.RequestOptions): Promise<GetDocumentResponse>;
async getDocumentPath(params: GetDocumentPathRequest, opts?: client.RequestOptions): Promise<GetDocumentPathResponse>;
async getDocumentVersion(params: GetDocumentVersionRequest, opts?: client.RequestOptions): Promise<GetDocumentVersionResponse>;
async getFolder(params: GetFolderRequest, opts?: client.RequestOptions): Promise<GetFolderResponse>;
async getFolderPath(params: GetFolderPathRequest, opts?: client.RequestOptions): Promise<GetFolderPathResponse>;
async getResources(params?: GetResourcesRequest, opts?: client.RequestOptions): Promise<GetResourcesResponse>;
async initiateDocumentVersionUpload(params: InitiateDocumentVersionUploadRequest, opts?: client.RequestOptions): Promise<InitiateDocumentVersionUploadResponse>;
async removeAllResourcePermissions(params: RemoveAllResourcePermissionsRequest, opts?: client.RequestOptions): Promise<void>;
async removeResourcePermission(params: RemoveResourcePermissionRequest, opts?: client.RequestOptions): Promise<void>;
async updateDocument(params: UpdateDocumentRequest, opts?: client.RequestOptions): Promise<void>;
async updateDocumentVersion(params: UpdateDocumentVersionRequest, opts?: client.RequestOptions): Promise<void>;
async updateFolder(params: UpdateFolderRequest, opts?: client.RequestOptions): Promise<void>;
async updateUser(params: UpdateUserRequest, opts?: client.RequestOptions): Promise<UpdateUserResponse>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new WorkDocs(apiFactory: client.ApiFactory)
[src]

§Methods

§
abortDocumentVersionUpload(params: AbortDocumentVersionUploadRequest, opts?: client.RequestOptions): Promise<void>
[src]

Aborts the upload of the specified document version that was previously initiated by "InitiateDocumentVersionUpload". The client should make this call only when it no longer intends to upload the document version, or fails to do so.

§

Activates the specified user. Only active users can access Amazon WorkDocs.

§

Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.

§

Adds a new comment to the specified document version.

§
createCustomMetadata(params: CreateCustomMetadataRequest, opts?: client.RequestOptions): Promise<void>
[src]

Adds one or more custom properties to the specified resource (a folder, document, or version).

§

Creates a folder with the specified name and parent folder.

§
createLabels(params: CreateLabelsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Adds the specified list of labels to the given resource (a document or folder)

§

Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.

For more information, see Subscribe to Notifications in the Amazon WorkDocs Developer Guide.

§

Creates a user in a Simple AD or Microsoft AD directory. The status of a newly created user is "ACTIVE". New users can access Amazon WorkDocs.

§
deactivateUser(params: DeactivateUserRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.

§
deleteComment(params: DeleteCommentRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified comment from the document version.

§
deleteCustomMetadata(params: DeleteCustomMetadataRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes custom metadata from the specified resource.

§
deleteDocument(params: DeleteDocumentRequest, opts?: client.RequestOptions): Promise<void>
[src]

Permanently deletes the specified document and its associated metadata.

§
deleteFolder(params: DeleteFolderRequest, opts?: client.RequestOptions): Promise<void>
[src]

Permanently deletes the specified folder and its contents.

§
deleteFolderContents(params: DeleteFolderContentsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the contents of the specified folder.

§
deleteLabels(params: DeleteLabelsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified list of labels from a resource.

§
deleteNotificationSubscription(params: DeleteNotificationSubscriptionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified subscription from the specified organization.

§
deleteUser(params: DeleteUserRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified user from a Simple AD or Microsoft AD directory.

§

Describes the user activities in a specified time period.

§

List all the comments for the specified document version.

§

Retrieves the document versions for the specified document.

By default, only active versions are returned.

§

Describes the contents of the specified folder, including its documents and subfolders.

By default, Amazon WorkDocs returns the first 100 active document and folder metadata items. If there are more results, the response includes a marker that you can use to request the next set of results. You can also request initialized documents.

§

Describes the groups specified by the query. Groups are defined by the underlying Active Directory.

§

Lists the specified notification subscriptions.

§

Describes the permissions of a specified resource.

§

Describes the current user's special folders; the RootFolder and the RecycleBin. RootFolder is the root of user's files and folders and RecycleBin is the root of recycled items. This is not a valid action for SigV4 (administrative API) clients.

This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.

§

Describes the specified users. You can describe all users or filter the results (for example, by status or organization).

By default, Amazon WorkDocs returns the first 24 active or pending users. If there are more results, the response includes a marker that you can use to request the next set of results.

§

Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.

This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.

§

Retrieves details of a document.

§

Retrieves the path information (the hierarchy from the root folder) for the requested document.

By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.

§

Retrieves version metadata for the specified document.

§

Retrieves the metadata of the specified folder.

§

Retrieves the path information (the hierarchy from the root folder) for the specified folder.

By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested folder and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the parent folder names.

§

Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME.

§

Creates a new document object and version object.

The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call "UpdateDocumentVersion".

To cancel the document upload, call "AbortDocumentVersionUpload".

§
removeAllResourcePermissions(params: RemoveAllResourcePermissionsRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes all the permissions from the specified resource.

§
removeResourcePermission(params: RemoveResourcePermissionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes the permission for the specified principal from the specified resource.

§
updateDocument(params: UpdateDocumentRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.

§
updateDocumentVersion(params: UpdateDocumentVersionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Changes the status of the document version to ACTIVE.

Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by "InitiateDocumentVersionUpload".

§
updateFolder(params: UpdateFolderRequest, opts?: client.RequestOptions): Promise<void>
[src]

Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.

§

Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.

§Static Properties