AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface WorkDocsAsyncClient extends AutoCloseable
builder()
method.
The 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-premise or off-premise 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 anti-virus or data loss prevention. The APIs, in conjunction with Amazon CloudTrail, allow these applications to detect when changes occur in Amazon WorkDocs, so the application can take the necessary actions and replace the target file. The application can also choose to email the user if the target file violates the policy.
eDiscovery/Analytics: General administrative applications are supported, such as eDiscovery and analytics. These applications can choose to mimic and/or record the actions in an Amazon WorkDocs site, in conjunction with Amazon CloudTrails, to replicate data for eDiscovery, backup, or analytical applications.
All Amazon WorkDocs APIs are Amazon authenticated, certificate-signed APIs. They not only require the use of the AWS 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.
Modifier and Type | Method | Description |
---|---|---|
default CompletableFuture<AbortDocumentVersionUploadResponse> |
abortDocumentVersionUpload(AbortDocumentVersionUploadRequest abortDocumentVersionUploadRequest) |
Aborts the upload of the specified document version that was previously initiated by
InitiateDocumentVersionUpload.
|
default CompletableFuture<ActivateUserResponse> |
activateUser(ActivateUserRequest activateUserRequest) |
Activates the specified user.
|
default CompletableFuture<AddResourcePermissionsResponse> |
addResourcePermissions(AddResourcePermissionsRequest addResourcePermissionsRequest) |
Creates a set of permissions for the specified folder or document.
|
static WorkDocsAsyncClientBuilder |
builder() |
Create a builder that can be used to configure and create a
WorkDocsAsyncClient . |
static WorkDocsAsyncClient |
create() |
Create a
WorkDocsAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<CreateCommentResponse> |
createComment(CreateCommentRequest createCommentRequest) |
Adds a new comment to the specified document version.
|
default CompletableFuture<CreateCustomMetadataResponse> |
createCustomMetadata(CreateCustomMetadataRequest createCustomMetadataRequest) |
Adds one or more custom properties to the specified resource (a folder, document, or version).
|
default CompletableFuture<CreateFolderResponse> |
createFolder(CreateFolderRequest createFolderRequest) |
Creates a folder with the specified name and parent folder.
|
default CompletableFuture<CreateLabelsResponse> |
createLabels(CreateLabelsRequest createLabelsRequest) |
Adds the specified list of labels to the given resource (a document or folder)
|
default CompletableFuture<CreateNotificationSubscriptionResponse> |
createNotificationSubscription(CreateNotificationSubscriptionRequest createNotificationSubscriptionRequest) |
Configure WorkDocs to use Amazon SNS notifications.
|
default CompletableFuture<CreateUserResponse> |
createUser(CreateUserRequest createUserRequest) |
Creates a user in a Simple AD or Microsoft AD directory.
|
default CompletableFuture<DeactivateUserResponse> |
deactivateUser(DeactivateUserRequest deactivateUserRequest) |
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
|
default CompletableFuture<DeleteCommentResponse> |
deleteComment(DeleteCommentRequest deleteCommentRequest) |
Deletes the specified comment from the document version.
|
default CompletableFuture<DeleteCustomMetadataResponse> |
deleteCustomMetadata(DeleteCustomMetadataRequest deleteCustomMetadataRequest) |
Deletes custom metadata from the specified resource.
|
default CompletableFuture<DeleteDocumentResponse> |
deleteDocument(DeleteDocumentRequest deleteDocumentRequest) |
Permanently deletes the specified document and its associated metadata.
|
default CompletableFuture<DeleteFolderResponse> |
deleteFolder(DeleteFolderRequest deleteFolderRequest) |
Permanently deletes the specified folder and its contents.
|
default CompletableFuture<DeleteFolderContentsResponse> |
deleteFolderContents(DeleteFolderContentsRequest deleteFolderContentsRequest) |
Deletes the contents of the specified folder.
|
default CompletableFuture<DeleteLabelsResponse> |
deleteLabels(DeleteLabelsRequest deleteLabelsRequest) |
Deletes the specified list of labels from a resource.
|
default CompletableFuture<DeleteNotificationSubscriptionResponse> |
deleteNotificationSubscription(DeleteNotificationSubscriptionRequest deleteNotificationSubscriptionRequest) |
Deletes the specified subscription from the specified organization.
|
default CompletableFuture<DeleteUserResponse> |
deleteUser(DeleteUserRequest deleteUserRequest) |
Deletes the specified user from a Simple AD or Microsoft AD directory.
|
default CompletableFuture<DescribeActivitiesResponse> |
describeActivities(DescribeActivitiesRequest describeActivitiesRequest) |
Describes the user activities in a specified time period.
|
default CompletableFuture<DescribeCommentsResponse> |
describeComments(DescribeCommentsRequest describeCommentsRequest) |
List all the comments for the specified document version.
|
default CompletableFuture<DescribeDocumentVersionsResponse> |
describeDocumentVersions(DescribeDocumentVersionsRequest describeDocumentVersionsRequest) |
Retrieves the document versions for the specified document.
|
default CompletableFuture<DescribeFolderContentsResponse> |
describeFolderContents(DescribeFolderContentsRequest describeFolderContentsRequest) |
Describes the contents of the specified folder, including its documents and subfolders.
|
default CompletableFuture<DescribeNotificationSubscriptionsResponse> |
describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest describeNotificationSubscriptionsRequest) |
Lists the specified notification subscriptions.
|
default CompletableFuture<DescribeResourcePermissionsResponse> |
describeResourcePermissions(DescribeResourcePermissionsRequest describeResourcePermissionsRequest) |
Describes the permissions of a specified resource.
|
default CompletableFuture<DescribeRootFoldersResponse> |
describeRootFolders(DescribeRootFoldersRequest describeRootFoldersRequest) |
Describes the current user's special folders; the
RootFolder and the RecyleBin . |
default CompletableFuture<DescribeUsersResponse> |
describeUsers(DescribeUsersRequest describeUsersRequest) |
Describes the specified users.
|
default CompletableFuture<GetCurrentUserResponse> |
getCurrentUser(GetCurrentUserRequest getCurrentUserRequest) |
Retrieves details of the current user for whom the authentication token was generated.
|
default CompletableFuture<GetDocumentResponse> |
getDocument(GetDocumentRequest getDocumentRequest) |
Retrieves details of a document.
|
default CompletableFuture<GetDocumentPathResponse> |
getDocumentPath(GetDocumentPathRequest getDocumentPathRequest) |
Retrieves the path information (the hierarchy from the root folder) for the requested document.
|
default CompletableFuture<GetDocumentVersionResponse> |
getDocumentVersion(GetDocumentVersionRequest getDocumentVersionRequest) |
Retrieves version metadata for the specified document.
|
default CompletableFuture<GetFolderResponse> |
getFolder(GetFolderRequest getFolderRequest) |
Retrieves the metadata of the specified folder.
|
default CompletableFuture<GetFolderPathResponse> |
getFolderPath(GetFolderPathRequest getFolderPathRequest) |
Retrieves the path information (the hierarchy from the root folder) for the specified folder.
|
default CompletableFuture<InitiateDocumentVersionUploadResponse> |
initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest initiateDocumentVersionUploadRequest) |
Creates a new document object and version object.
|
default CompletableFuture<RemoveAllResourcePermissionsResponse> |
removeAllResourcePermissions(RemoveAllResourcePermissionsRequest removeAllResourcePermissionsRequest) |
Removes all the permissions from the specified resource.
|
default CompletableFuture<RemoveResourcePermissionResponse> |
removeResourcePermission(RemoveResourcePermissionRequest removeResourcePermissionRequest) |
Removes the permission for the specified principal from the specified resource.
|
default CompletableFuture<UpdateDocumentResponse> |
updateDocument(UpdateDocumentRequest updateDocumentRequest) |
Updates the specified attributes of a document.
|
default CompletableFuture<UpdateDocumentVersionResponse> |
updateDocumentVersion(UpdateDocumentVersionRequest updateDocumentVersionRequest) |
Changes the status of the document version to ACTIVE.
|
default CompletableFuture<UpdateFolderResponse> |
updateFolder(UpdateFolderRequest updateFolderRequest) |
Updates the specified attributes of the specified folder.
|
default CompletableFuture<UpdateUserResponse> |
updateUser(UpdateUserRequest updateUserRequest) |
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the
Amazon WorkDocs site.
|
close
static WorkDocsAsyncClient create()
WorkDocsAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static WorkDocsAsyncClientBuilder builder()
WorkDocsAsyncClient
.default CompletableFuture<AbortDocumentVersionUploadResponse> abortDocumentVersionUpload(AbortDocumentVersionUploadRequest 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.
abortDocumentVersionUploadRequest
- default CompletableFuture<ActivateUserResponse> activateUser(ActivateUserRequest activateUserRequest)
Activates the specified user. Only active users can access Amazon WorkDocs.
activateUserRequest
- default CompletableFuture<AddResourcePermissionsResponse> addResourcePermissions(AddResourcePermissionsRequest addResourcePermissionsRequest)
Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
addResourcePermissionsRequest
- default CompletableFuture<CreateCommentResponse> createComment(CreateCommentRequest createCommentRequest)
Adds a new comment to the specified document version.
createCommentRequest
- default CompletableFuture<CreateCustomMetadataResponse> createCustomMetadata(CreateCustomMetadataRequest createCustomMetadataRequest)
Adds one or more custom properties to the specified resource (a folder, document, or version).
createCustomMetadataRequest
- default CompletableFuture<CreateFolderResponse> createFolder(CreateFolderRequest createFolderRequest)
Creates a folder with the specified name and parent folder.
createFolderRequest
- default CompletableFuture<CreateLabelsResponse> createLabels(CreateLabelsRequest createLabelsRequest)
Adds the specified list of labels to the given resource (a document or folder)
createLabelsRequest
- default CompletableFuture<CreateNotificationSubscriptionResponse> createNotificationSubscription(CreateNotificationSubscriptionRequest createNotificationSubscriptionRequest)
Configure WorkDocs to use Amazon SNS notifications.
The endpoint receives a confirmation message, and must confirm the subscription. For more information, see Confirm the Subscription in the Amazon Simple Notification Service Developer Guide.
createNotificationSubscriptionRequest
- default CompletableFuture<CreateUserResponse> createUser(CreateUserRequest 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.
createUserRequest
- default CompletableFuture<DeactivateUserResponse> deactivateUser(DeactivateUserRequest deactivateUserRequest)
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
deactivateUserRequest
- default CompletableFuture<DeleteCommentResponse> deleteComment(DeleteCommentRequest deleteCommentRequest)
Deletes the specified comment from the document version.
deleteCommentRequest
- default CompletableFuture<DeleteCustomMetadataResponse> deleteCustomMetadata(DeleteCustomMetadataRequest deleteCustomMetadataRequest)
Deletes custom metadata from the specified resource.
deleteCustomMetadataRequest
- default CompletableFuture<DeleteDocumentResponse> deleteDocument(DeleteDocumentRequest deleteDocumentRequest)
Permanently deletes the specified document and its associated metadata.
deleteDocumentRequest
- default CompletableFuture<DeleteFolderResponse> deleteFolder(DeleteFolderRequest deleteFolderRequest)
Permanently deletes the specified folder and its contents.
deleteFolderRequest
- default CompletableFuture<DeleteFolderContentsResponse> deleteFolderContents(DeleteFolderContentsRequest deleteFolderContentsRequest)
Deletes the contents of the specified folder.
deleteFolderContentsRequest
- default CompletableFuture<DeleteLabelsResponse> deleteLabels(DeleteLabelsRequest deleteLabelsRequest)
Deletes the specified list of labels from a resource.
deleteLabelsRequest
- default CompletableFuture<DeleteNotificationSubscriptionResponse> deleteNotificationSubscription(DeleteNotificationSubscriptionRequest deleteNotificationSubscriptionRequest)
Deletes the specified subscription from the specified organization.
deleteNotificationSubscriptionRequest
- default CompletableFuture<DeleteUserResponse> deleteUser(DeleteUserRequest deleteUserRequest)
Deletes the specified user from a Simple AD or Microsoft AD directory.
deleteUserRequest
- default CompletableFuture<DescribeActivitiesResponse> describeActivities(DescribeActivitiesRequest describeActivitiesRequest)
Describes the user activities in a specified time period.
describeActivitiesRequest
- default CompletableFuture<DescribeCommentsResponse> describeComments(DescribeCommentsRequest describeCommentsRequest)
List all the comments for the specified document version.
describeCommentsRequest
- default CompletableFuture<DescribeDocumentVersionsResponse> describeDocumentVersions(DescribeDocumentVersionsRequest describeDocumentVersionsRequest)
Retrieves the document versions for the specified document.
By default, only active versions are returned.
describeDocumentVersionsRequest
- default CompletableFuture<DescribeFolderContentsResponse> describeFolderContents(DescribeFolderContentsRequest 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.
describeFolderContentsRequest
- default CompletableFuture<DescribeNotificationSubscriptionsResponse> describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest describeNotificationSubscriptionsRequest)
Lists the specified notification subscriptions.
describeNotificationSubscriptionsRequest
- default CompletableFuture<DescribeResourcePermissionsResponse> describeResourcePermissions(DescribeResourcePermissionsRequest describeResourcePermissionsRequest)
Describes the permissions of a specified resource.
describeResourcePermissionsRequest
- default CompletableFuture<DescribeRootFoldersResponse> describeRootFolders(DescribeRootFoldersRequest describeRootFoldersRequest)
Describes the current user's special folders; the RootFolder
and the RecyleBin
.
RootFolder
is the root of user's files and folders and RecyleBin
is the root of
recycled items. This is not a valid action for SigV4 (administrative API) clients.
describeRootFoldersRequest
- default CompletableFuture<DescribeUsersResponse> describeUsers(DescribeUsersRequest 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.
describeUsersRequest
- default CompletableFuture<GetCurrentUserResponse> getCurrentUser(GetCurrentUserRequest 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.
getCurrentUserRequest
- default CompletableFuture<GetDocumentResponse> getDocument(GetDocumentRequest getDocumentRequest)
Retrieves details of a document.
getDocumentRequest
- default CompletableFuture<GetDocumentPathResponse> getDocumentPath(GetDocumentPathRequest 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.
getDocumentPathRequest
- default CompletableFuture<GetDocumentVersionResponse> getDocumentVersion(GetDocumentVersionRequest getDocumentVersionRequest)
Retrieves version metadata for the specified document.
getDocumentVersionRequest
- default CompletableFuture<GetFolderResponse> getFolder(GetFolderRequest getFolderRequest)
Retrieves the metadata of the specified folder.
getFolderRequest
- default CompletableFuture<GetFolderPathResponse> getFolderPath(GetFolderPathRequest 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.
getFolderPathRequest
- default CompletableFuture<InitiateDocumentVersionUploadResponse> initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest 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.
initiateDocumentVersionUploadRequest
- default CompletableFuture<RemoveAllResourcePermissionsResponse> removeAllResourcePermissions(RemoveAllResourcePermissionsRequest removeAllResourcePermissionsRequest)
Removes all the permissions from the specified resource.
removeAllResourcePermissionsRequest
- default CompletableFuture<RemoveResourcePermissionResponse> removeResourcePermission(RemoveResourcePermissionRequest removeResourcePermissionRequest)
Removes the permission for the specified principal from the specified resource.
removeResourcePermissionRequest
- default CompletableFuture<UpdateDocumentResponse> updateDocument(UpdateDocumentRequest updateDocumentRequest)
Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
updateDocumentRequest
- default CompletableFuture<UpdateDocumentVersionResponse> updateDocumentVersion(UpdateDocumentVersionRequest 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.
updateDocumentVersionRequest
- default CompletableFuture<UpdateFolderResponse> updateFolder(UpdateFolderRequest updateFolderRequest)
Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.
updateFolderRequest
- default CompletableFuture<UpdateUserResponse> updateUser(UpdateUserRequest updateUserRequest)
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
updateUserRequest
- Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.