AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Interface for accessing WorkDocs

The Amazon WorkDocs API is designed for the following use cases:

All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed. They not only require the use of the Amazon Web Services SDK, but also allow for the exclusive use of IAM users and roles to help facilitate access, trust, and permission policies. By creating a role and allowing an IAM user to access the Amazon WorkDocs site, the IAM user gains full administrative visibility into the entire Amazon WorkDocs site (or as set in the IAM policy). This includes, but is not limited to, the ability to modify file permissions and upload any file to any user. This allows developers to perform the three use cases above, as well as give users the ability to grant access on a selective basis using the IAM model.

The pricing for Amazon WorkDocs APIs varies depending on the API call type for these actions:

  • READ (Get*)

  • WRITE (Activate*, Add*, Create*, Deactivate*, Initiate*, Update*)

  • LIST (Describe*)

  • DELETE*, CANCEL

For information about Amazon WorkDocs API pricing, see Amazon WorkDocs Pricing.

Inheritance Hierarchy

Amazon.WorkDocs.IAmazonWorkDocs

Namespace: Amazon.WorkDocs
Assembly: AWSSDK.WorkDocs.dll
Version: 3.x.y.z

Syntax

C#
public interface IAmazonWorkDocs
         IAmazonService, IDisposable

The IAmazonWorkDocs type exposes the following members

Properties

NameTypeDescription
Public Property Paginators Amazon.WorkDocs.Model.IWorkDocsPaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AbortDocumentVersionUpload(AbortDocumentVersionUploadRequest)

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.

Public Method AbortDocumentVersionUploadAsync(AbortDocumentVersionUploadRequest, CancellationToken)

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.

Public Method ActivateUser(ActivateUserRequest)

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

Public Method ActivateUserAsync(ActivateUserRequest, CancellationToken)

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

Public Method AddResourcePermissions(AddResourcePermissionsRequest)

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

Public Method AddResourcePermissionsAsync(AddResourcePermissionsRequest, CancellationToken)

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

Public Method CreateComment(CreateCommentRequest)

Adds a new comment to the specified document version.

Public Method CreateCommentAsync(CreateCommentRequest, CancellationToken)

Adds a new comment to the specified document version.

Public Method CreateCustomMetadata(CreateCustomMetadataRequest)

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

Public Method CreateCustomMetadataAsync(CreateCustomMetadataRequest, CancellationToken)

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

Public Method CreateFolder(CreateFolderRequest)

Creates a folder with the specified name and parent folder.

Public Method CreateFolderAsync(CreateFolderRequest, CancellationToken)

Creates a folder with the specified name and parent folder.

Public Method CreateLabels(CreateLabelsRequest)

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

Public Method CreateLabelsAsync(CreateLabelsRequest, CancellationToken)

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

Public Method CreateNotificationSubscription(CreateNotificationSubscriptionRequest)

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

For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide.

Public Method CreateNotificationSubscriptionAsync(CreateNotificationSubscriptionRequest, CancellationToken)

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

For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide.

Public Method CreateUser(CreateUserRequest)

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.

Public Method CreateUserAsync(CreateUserRequest, CancellationToken)

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.

Public Method DeactivateUser(DeactivateUserRequest)

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

Public Method DeactivateUserAsync(DeactivateUserRequest, CancellationToken)

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

Public Method DeleteComment(DeleteCommentRequest)

Deletes the specified comment from the document version.

Public Method DeleteCommentAsync(DeleteCommentRequest, CancellationToken)

Deletes the specified comment from the document version.

Public Method DeleteCustomMetadata(DeleteCustomMetadataRequest)

Deletes custom metadata from the specified resource.

Public Method DeleteCustomMetadataAsync(DeleteCustomMetadataRequest, CancellationToken)

Deletes custom metadata from the specified resource.

Public Method DeleteDocument(DeleteDocumentRequest)

Permanently deletes the specified document and its associated metadata.

Public Method DeleteDocumentAsync(DeleteDocumentRequest, CancellationToken)

Permanently deletes the specified document and its associated metadata.

Public Method DeleteDocumentVersion(DeleteDocumentVersionRequest)

Deletes a specific version of a document.

Public Method DeleteDocumentVersionAsync(DeleteDocumentVersionRequest, CancellationToken)

Deletes a specific version of a document.

Public Method DeleteFolder(DeleteFolderRequest)

Permanently deletes the specified folder and its contents.

Public Method DeleteFolderAsync(DeleteFolderRequest, CancellationToken)

Permanently deletes the specified folder and its contents.

Public Method DeleteFolderContents(DeleteFolderContentsRequest)

Deletes the contents of the specified folder.

Public Method DeleteFolderContentsAsync(DeleteFolderContentsRequest, CancellationToken)

Deletes the contents of the specified folder.

Public Method DeleteLabels(DeleteLabelsRequest)

Deletes the specified list of labels from a resource.

Public Method DeleteLabelsAsync(DeleteLabelsRequest, CancellationToken)

Deletes the specified list of labels from a resource.

Public Method DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest)

Deletes the specified subscription from the specified organization.

Public Method DeleteNotificationSubscriptionAsync(DeleteNotificationSubscriptionRequest, CancellationToken)

Deletes the specified subscription from the specified organization.

Public Method DeleteUser(DeleteUserRequest)

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

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.

Public Method DeleteUserAsync(DeleteUserRequest, CancellationToken)

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

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.

Public Method DescribeActivities(DescribeActivitiesRequest)

Describes the user activities in a specified time period.

Public Method DescribeActivitiesAsync(DescribeActivitiesRequest, CancellationToken)

Describes the user activities in a specified time period.

Public Method DescribeComments(DescribeCommentsRequest)

List all the comments for the specified document version.

Public Method DescribeCommentsAsync(DescribeCommentsRequest, CancellationToken)

List all the comments for the specified document version.

Public Method DescribeDocumentVersions(DescribeDocumentVersionsRequest)

Retrieves the document versions for the specified document.

By default, only active versions are returned.

Public Method DescribeDocumentVersionsAsync(DescribeDocumentVersionsRequest, CancellationToken)

Retrieves the document versions for the specified document.

By default, only active versions are returned.

Public Method DescribeFolderContents(DescribeFolderContentsRequest)

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.

Public Method DescribeFolderContentsAsync(DescribeFolderContentsRequest, CancellationToken)

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.

Public Method DescribeGroups(DescribeGroupsRequest)

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

Public Method DescribeGroupsAsync(DescribeGroupsRequest, CancellationToken)

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

Public Method DescribeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest)

Lists the specified notification subscriptions.

Public Method DescribeNotificationSubscriptionsAsync(DescribeNotificationSubscriptionsRequest, CancellationToken)

Lists the specified notification subscriptions.

Public Method DescribeResourcePermissions(DescribeResourcePermissionsRequest)

Describes the permissions of a specified resource.

Public Method DescribeResourcePermissionsAsync(DescribeResourcePermissionsRequest, CancellationToken)

Describes the permissions of a specified resource.

Public Method DescribeRootFolders(DescribeRootFoldersRequest)

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.

Public Method DescribeRootFoldersAsync(DescribeRootFoldersRequest, CancellationToken)

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.

Public Method DescribeUsers(DescribeUsersRequest)

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.

Public Method DescribeUsersAsync(DescribeUsersRequest, CancellationToken)

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.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method GetCurrentUser(GetCurrentUserRequest)

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.

Public Method GetCurrentUserAsync(GetCurrentUserRequest, CancellationToken)

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.

Public Method GetDocument(GetDocumentRequest)

Retrieves details of a document.

Public Method GetDocumentAsync(GetDocumentRequest, CancellationToken)

Retrieves details of a document.

Public Method GetDocumentPath(GetDocumentPathRequest)

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.

Public Method GetDocumentPathAsync(GetDocumentPathRequest, CancellationToken)

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.

Public Method GetDocumentVersion(GetDocumentVersionRequest)

Retrieves version metadata for the specified document.

Public Method GetDocumentVersionAsync(GetDocumentVersionRequest, CancellationToken)

Retrieves version metadata for the specified document.

Public Method GetFolder(GetFolderRequest)

Retrieves the metadata of the specified folder.

Public Method GetFolderAsync(GetFolderRequest, CancellationToken)

Retrieves the metadata of the specified folder.

Public Method GetFolderPath(GetFolderPathRequest)

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.

Public Method GetFolderPathAsync(GetFolderPathRequest, CancellationToken)

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.

Public Method GetResources(GetResourcesRequest)

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

Public Method GetResourcesAsync(GetResourcesRequest, CancellationToken)

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

Public Method InitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest)

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.

Public Method InitiateDocumentVersionUploadAsync(InitiateDocumentVersionUploadRequest, CancellationToken)

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.

Public Method RemoveAllResourcePermissions(RemoveAllResourcePermissionsRequest)

Removes all the permissions from the specified resource.

Public Method RemoveAllResourcePermissionsAsync(RemoveAllResourcePermissionsRequest, CancellationToken)

Removes all the permissions from the specified resource.

Public Method RemoveResourcePermission(RemoveResourcePermissionRequest)

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

Public Method RemoveResourcePermissionAsync(RemoveResourcePermissionRequest, CancellationToken)

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

Public Method RestoreDocumentVersions(RestoreDocumentVersionsRequest)

Recovers a deleted version of an Amazon WorkDocs document.

Public Method RestoreDocumentVersionsAsync(RestoreDocumentVersionsRequest, CancellationToken)

Recovers a deleted version of an Amazon WorkDocs document.

Public Method SearchResources(SearchResourcesRequest)

Searches metadata and the content of folders, documents, document versions, and comments.

Public Method SearchResourcesAsync(SearchResourcesRequest, CancellationToken)

Searches metadata and the content of folders, documents, document versions, and comments.

Public Method UpdateDocument(UpdateDocumentRequest)

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

Public Method UpdateDocumentAsync(UpdateDocumentRequest, CancellationToken)

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

Public Method UpdateDocumentVersion(UpdateDocumentVersionRequest)

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.

Public Method UpdateDocumentVersionAsync(UpdateDocumentVersionRequest, CancellationToken)

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.

Public Method UpdateFolder(UpdateFolderRequest)

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

Public Method UpdateFolderAsync(UpdateFolderRequest, CancellationToken)

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

Public Method UpdateUser(UpdateUserRequest)

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

Public Method UpdateUserAsync(UpdateUserRequest, CancellationToken)

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

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5