WorkDocsClient

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

  • File Migration: File migration applications are supported for users who want to migrate their files from an on-premises or off-premises file system or service. Users can insert files into a user directory structure, as well as allow for basic metadata changes, such as modifications to the permissions of files.

  • Security: Support security applications are supported for users who have additional security needs, such as antivirus or data loss prevention. The API actions, along with CloudTrail, allow these applications to detect when changes occur in Amazon WorkDocs. Then, the application can take the necessary actions and replace the target file. If the target file violates the policy, the application can also choose to email the user.

  • eDiscovery/Analytics: General administrative applications are supported, such as eDiscovery and analytics. These applications can choose to mimic or record the actions in an Amazon WorkDocs site, along with CloudTrail, to replicate data for eDiscovery, backup, or analytical applications.

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.

Properties

Link copied to clipboard
abstract override val config: WorkDocsClient.Config

WorkDocsClient's configuration

Functions

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Adds a new comment to the specified document version.

Link copied to clipboard

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

Link copied to clipboard

Creates a folder with the specified name and parent folder.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
abstract suspend fun createUser(input: CreateUserRequest): CreateUserResponse

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.

Link copied to clipboard

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

Link copied to clipboard

Deletes the specified comment from the document version.

Link copied to clipboard

Deletes custom metadata from the specified resource.

Link copied to clipboard

Permanently deletes the specified document and its associated metadata.

Link copied to clipboard

Deletes a specific version of a document.

Link copied to clipboard

Permanently deletes the specified folder and its contents.

Link copied to clipboard

Deletes the contents of the specified folder.

Link copied to clipboard

Deletes the specified list of labels from a resource.

Link copied to clipboard

Deletes the specified subscription from the specified organization.

Link copied to clipboard
abstract suspend fun deleteUser(input: DeleteUserRequest): DeleteUserResponse

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

Link copied to clipboard
abstract suspend fun describeActivities(input: DescribeActivitiesRequest = DescribeActivitiesRequest { }): DescribeActivitiesResponse

Describes the user activities in a specified time period.

Link copied to clipboard

List all the comments for the specified document version.

Link copied to clipboard

Retrieves the document versions for the specified document.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Lists the specified notification subscriptions.

Link copied to clipboard

Describes the permissions of a specified resource.

Link copied to clipboard

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.

Link copied to clipboard
abstract suspend fun describeUsers(input: DescribeUsersRequest = DescribeUsersRequest { }): DescribeUsersResponse

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

Link copied to clipboard

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

Link copied to clipboard
abstract suspend fun getDocument(input: GetDocumentRequest): GetDocumentResponse

Retrieves details of a document.

Link copied to clipboard

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

Link copied to clipboard

Retrieves version metadata for the specified document.

Link copied to clipboard
abstract suspend fun getFolder(input: GetFolderRequest): GetFolderResponse

Retrieves the metadata of the specified folder.

Link copied to clipboard

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

Link copied to clipboard
abstract suspend fun getResources(input: GetResourcesRequest = GetResourcesRequest { }): GetResourcesResponse

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

Link copied to clipboard
abstract suspend fun initiateDocumentVersionUpload(input: InitiateDocumentVersionUploadRequest = InitiateDocumentVersionUploadRequest { }): InitiateDocumentVersionUploadResponse

Creates a new document object and version object.

Link copied to clipboard

Removes all the permissions from the specified resource.

Link copied to clipboard

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

Link copied to clipboard

Recovers a deleted version of an Amazon WorkDocs document.

Link copied to clipboard
abstract suspend fun searchResources(input: SearchResourcesRequest = SearchResourcesRequest { }): SearchResourcesResponse

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

Link copied to clipboard

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

Link copied to clipboard

Changes the status of the document version to ACTIVE.

Link copied to clipboard

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

Link copied to clipboard
abstract suspend fun updateUser(input: UpdateUserRequest): UpdateUserResponse

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

Inherited functions

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Adds a new comment to the specified document version.

Link copied to clipboard

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

Link copied to clipboard

Creates a folder with the specified name and parent folder.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
inline suspend fun WorkDocsClient.createUser(crossinline block: CreateUserRequest.Builder.() -> Unit): CreateUserResponse

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.

Link copied to clipboard

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

Link copied to clipboard

Deletes the specified comment from the document version.

Link copied to clipboard

Deletes custom metadata from the specified resource.

Link copied to clipboard

Permanently deletes the specified document and its associated metadata.

Link copied to clipboard

Deletes a specific version of a document.

Link copied to clipboard

Permanently deletes the specified folder and its contents.

Link copied to clipboard

Deletes the contents of the specified folder.

Link copied to clipboard

Deletes the specified list of labels from a resource.

Link copied to clipboard

Deletes the specified subscription from the specified organization.

Link copied to clipboard
inline suspend fun WorkDocsClient.deleteUser(crossinline block: DeleteUserRequest.Builder.() -> Unit): DeleteUserResponse

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

Link copied to clipboard

Describes the user activities in a specified time period.

Link copied to clipboard

List all the comments for the specified document version.

Link copied to clipboard

Retrieves the document versions for the specified document.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Lists the specified notification subscriptions.

Link copied to clipboard

Describes the permissions of a specified resource.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
inline suspend fun WorkDocsClient.getDocument(crossinline block: GetDocumentRequest.Builder.() -> Unit): GetDocumentResponse

Retrieves details of a document.

Link copied to clipboard

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

Link copied to clipboard

Retrieves version metadata for the specified document.

Link copied to clipboard
inline suspend fun WorkDocsClient.getFolder(crossinline block: GetFolderRequest.Builder.() -> Unit): GetFolderResponse

Retrieves the metadata of the specified folder.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Creates a new document object and version object.

Link copied to clipboard

Removes all the permissions from the specified resource.

Link copied to clipboard

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

Link copied to clipboard

Recovers a deleted version of an Amazon WorkDocs document.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Changes the status of the document version to ACTIVE.

Link copied to clipboard

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

Link copied to clipboard
inline suspend fun WorkDocsClient.updateUser(crossinline block: UpdateUserRequest.Builder.() -> Unit): UpdateUserResponse

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

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.