@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonWorkDocs
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonWorkDocs
instead.
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.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
AbortDocumentVersionUploadResult |
abortDocumentVersionUpload(AbortDocumentVersionUploadRequest abortDocumentVersionUploadRequest)
Aborts the upload of the specified document version that was previously initiated by
InitiateDocumentVersionUpload.
|
ActivateUserResult |
activateUser(ActivateUserRequest activateUserRequest)
Activates the specified user.
|
AddResourcePermissionsResult |
addResourcePermissions(AddResourcePermissionsRequest addResourcePermissionsRequest)
Creates a set of permissions for the specified folder or document.
|
CreateCommentResult |
createComment(CreateCommentRequest createCommentRequest)
Adds a new comment to the specified document version.
|
CreateCustomMetadataResult |
createCustomMetadata(CreateCustomMetadataRequest createCustomMetadataRequest)
Adds one or more custom properties to the specified resource (a folder, document, or version).
|
CreateFolderResult |
createFolder(CreateFolderRequest createFolderRequest)
Creates a folder with the specified name and parent folder.
|
CreateLabelsResult |
createLabels(CreateLabelsRequest createLabelsRequest)
Adds the specified list of labels to the given resource (a document or folder)
|
CreateNotificationSubscriptionResult |
createNotificationSubscription(CreateNotificationSubscriptionRequest createNotificationSubscriptionRequest)
Configure Amazon WorkDocs to use Amazon SNS notifications.
|
CreateUserResult |
createUser(CreateUserRequest createUserRequest)
Creates a user in a Simple AD or Microsoft AD directory.
|
DeactivateUserResult |
deactivateUser(DeactivateUserRequest deactivateUserRequest)
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
|
DeleteCommentResult |
deleteComment(DeleteCommentRequest deleteCommentRequest)
Deletes the specified comment from the document version.
|
DeleteCustomMetadataResult |
deleteCustomMetadata(DeleteCustomMetadataRequest deleteCustomMetadataRequest)
Deletes custom metadata from the specified resource.
|
DeleteDocumentResult |
deleteDocument(DeleteDocumentRequest deleteDocumentRequest)
Permanently deletes the specified document and its associated metadata.
|
DeleteDocumentVersionResult |
deleteDocumentVersion(DeleteDocumentVersionRequest deleteDocumentVersionRequest)
Deletes a specific version of a document.
|
DeleteFolderResult |
deleteFolder(DeleteFolderRequest deleteFolderRequest)
Permanently deletes the specified folder and its contents.
|
DeleteFolderContentsResult |
deleteFolderContents(DeleteFolderContentsRequest deleteFolderContentsRequest)
Deletes the contents of the specified folder.
|
DeleteLabelsResult |
deleteLabels(DeleteLabelsRequest deleteLabelsRequest)
Deletes the specified list of labels from a resource.
|
DeleteNotificationSubscriptionResult |
deleteNotificationSubscription(DeleteNotificationSubscriptionRequest deleteNotificationSubscriptionRequest)
Deletes the specified subscription from the specified organization.
|
DeleteUserResult |
deleteUser(DeleteUserRequest deleteUserRequest)
Deletes the specified user from a Simple AD or Microsoft AD directory.
|
DescribeActivitiesResult |
describeActivities(DescribeActivitiesRequest describeActivitiesRequest)
Describes the user activities in a specified time period.
|
DescribeCommentsResult |
describeComments(DescribeCommentsRequest describeCommentsRequest)
List all the comments for the specified document version.
|
DescribeDocumentVersionsResult |
describeDocumentVersions(DescribeDocumentVersionsRequest describeDocumentVersionsRequest)
Retrieves the document versions for the specified document.
|
DescribeFolderContentsResult |
describeFolderContents(DescribeFolderContentsRequest describeFolderContentsRequest)
Describes the contents of the specified folder, including its documents and subfolders.
|
DescribeGroupsResult |
describeGroups(DescribeGroupsRequest describeGroupsRequest)
Describes the groups specified by the query.
|
DescribeNotificationSubscriptionsResult |
describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest describeNotificationSubscriptionsRequest)
Lists the specified notification subscriptions.
|
DescribeResourcePermissionsResult |
describeResourcePermissions(DescribeResourcePermissionsRequest describeResourcePermissionsRequest)
Describes the permissions of a specified resource.
|
DescribeRootFoldersResult |
describeRootFolders(DescribeRootFoldersRequest describeRootFoldersRequest)
Describes the current user's special folders; the
RootFolder and the RecycleBin . |
DescribeUsersResult |
describeUsers(DescribeUsersRequest describeUsersRequest)
Describes the specified users.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetCurrentUserResult |
getCurrentUser(GetCurrentUserRequest getCurrentUserRequest)
Retrieves details of the current user for whom the authentication token was generated.
|
GetDocumentResult |
getDocument(GetDocumentRequest getDocumentRequest)
Retrieves details of a document.
|
GetDocumentPathResult |
getDocumentPath(GetDocumentPathRequest getDocumentPathRequest)
Retrieves the path information (the hierarchy from the root folder) for the requested document.
|
GetDocumentVersionResult |
getDocumentVersion(GetDocumentVersionRequest getDocumentVersionRequest)
Retrieves version metadata for the specified document.
|
GetFolderResult |
getFolder(GetFolderRequest getFolderRequest)
Retrieves the metadata of the specified folder.
|
GetFolderPathResult |
getFolderPath(GetFolderPathRequest getFolderPathRequest)
Retrieves the path information (the hierarchy from the root folder) for the specified folder.
|
GetResourcesResult |
getResources(GetResourcesRequest getResourcesRequest)
Retrieves a collection of resources, including folders and documents.
|
InitiateDocumentVersionUploadResult |
initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest initiateDocumentVersionUploadRequest)
Creates a new document object and version object.
|
RemoveAllResourcePermissionsResult |
removeAllResourcePermissions(RemoveAllResourcePermissionsRequest removeAllResourcePermissionsRequest)
Removes all the permissions from the specified resource.
|
RemoveResourcePermissionResult |
removeResourcePermission(RemoveResourcePermissionRequest removeResourcePermissionRequest)
Removes the permission for the specified principal from the specified resource.
|
RestoreDocumentVersionsResult |
restoreDocumentVersions(RestoreDocumentVersionsRequest restoreDocumentVersionsRequest)
Recovers a deleted version of an Amazon WorkDocs document.
|
SearchResourcesResult |
searchResources(SearchResourcesRequest searchResourcesRequest)
Searches metadata and the content of folders, documents, document versions, and comments.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
UpdateDocumentResult |
updateDocument(UpdateDocumentRequest updateDocumentRequest)
Updates the specified attributes of a document.
|
UpdateDocumentVersionResult |
updateDocumentVersion(UpdateDocumentVersionRequest updateDocumentVersionRequest)
Changes the status of the document version to ACTIVE.
|
UpdateFolderResult |
updateFolder(UpdateFolderRequest updateFolderRequest)
Updates the specified attributes of the specified folder.
|
UpdateUserResult |
updateUser(UpdateUserRequest updateUserRequest)
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the
Amazon WorkDocs site.
|
static final String ENDPOINT_PREFIX
AbortDocumentVersionUploadResult 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
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ConcurrentModificationException
- The resource hierarchy is changing.ActivateUserResult activateUser(ActivateUserRequest activateUserRequest)
Activates the specified user. Only active users can access Amazon WorkDocs.
activateUserRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.AddResourcePermissionsResult 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
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.CreateCommentResult createComment(CreateCommentRequest createCommentRequest)
Adds a new comment to the specified document version.
createCommentRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DocumentLockedForCommentsException
- This exception is thrown when the document is locked for comments and user tries to create or delete a
comment on that document.InvalidCommentOperationException
- The requested operation is not allowed on the specified comment object.CreateCustomMetadataResult createCustomMetadata(CreateCustomMetadataRequest createCustomMetadataRequest)
Adds one or more custom properties to the specified resource (a folder, document, or version).
createCustomMetadataRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.CustomMetadataLimitExceededException
- The limit has been reached on the number of custom properties for the specified resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.CreateFolderResult createFolder(CreateFolderRequest createFolderRequest)
Creates a folder with the specified name and parent folder.
createFolderRequest
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.LimitExceededException
- The maximum of 100,000 files and folders under the parent folder has been exceeded.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.CreateLabelsResult createLabels(CreateLabelsRequest createLabelsRequest)
Adds the specified list of labels to the given resource (a document or folder)
createLabelsRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.TooManyLabelsException
- The limit has been reached on the number of labels for the specified resource.CreateNotificationSubscriptionResult createNotificationSubscription(CreateNotificationSubscriptionRequest 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.
createNotificationSubscriptionRequest
- UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.TooManySubscriptionsException
- You've reached the limit on the number of subscriptions for the WorkDocs instance.ServiceUnavailableException
- One or more of the dependencies is unavailable.InvalidArgumentException
- The pagination marker or limit fields are not valid.CreateUserResult 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
- EntityAlreadyExistsException
- The resource already exists.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeactivateUserResult deactivateUser(DeactivateUserRequest deactivateUserRequest)
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
deactivateUserRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeleteCommentResult deleteComment(DeleteCommentRequest deleteCommentRequest)
Deletes the specified comment from the document version.
deleteCommentRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DocumentLockedForCommentsException
- This exception is thrown when the document is locked for comments and user tries to create or delete a
comment on that document.DeleteCustomMetadataResult deleteCustomMetadata(DeleteCustomMetadataRequest deleteCustomMetadataRequest)
Deletes custom metadata from the specified resource.
deleteCustomMetadataRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeleteDocumentResult deleteDocument(DeleteDocumentRequest deleteDocumentRequest)
Permanently deletes the specified document and its associated metadata.
deleteDocumentRequest
- EntityNotExistsException
- The resource does not exist.LimitExceededException
- The maximum of 100,000 files and folders under the parent folder has been exceeded.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeleteDocumentVersionResult deleteDocumentVersion(DeleteDocumentVersionRequest deleteDocumentVersionRequest)
Deletes a specific version of a document.
deleteDocumentVersionRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.InvalidOperationException
- The operation is invalid.UnauthorizedOperationException
- The operation is not permitted.DeleteFolderResult deleteFolder(DeleteFolderRequest deleteFolderRequest)
Permanently deletes the specified folder and its contents.
deleteFolderRequest
- EntityNotExistsException
- The resource does not exist.LimitExceededException
- The maximum of 100,000 files and folders under the parent folder has been exceeded.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeleteFolderContentsResult deleteFolderContents(DeleteFolderContentsRequest deleteFolderContentsRequest)
Deletes the contents of the specified folder.
deleteFolderContentsRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeleteLabelsResult deleteLabels(DeleteLabelsRequest deleteLabelsRequest)
Deletes the specified list of labels from a resource.
deleteLabelsRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.DeleteNotificationSubscriptionResult deleteNotificationSubscription(DeleteNotificationSubscriptionRequest deleteNotificationSubscriptionRequest)
Deletes the specified subscription from the specified organization.
deleteNotificationSubscriptionRequest
- UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.EntityNotExistsException
- The resource does not exist.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.DeleteUserResult deleteUser(DeleteUserRequest 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.
deleteUserRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeActivitiesResult describeActivities(DescribeActivitiesRequest describeActivitiesRequest)
Describes the user activities in a specified time period.
describeActivitiesRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeCommentsResult describeComments(DescribeCommentsRequest describeCommentsRequest)
List all the comments for the specified document version.
describeCommentsRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeDocumentVersionsResult describeDocumentVersions(DescribeDocumentVersionsRequest describeDocumentVersionsRequest)
Retrieves the document versions for the specified document.
By default, only active versions are returned.
describeDocumentVersionsRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.InvalidPasswordException
- The password is invalid.DescribeFolderContentsResult 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
- EntityNotExistsException
- The resource does not exist.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.DescribeGroupsResult describeGroups(DescribeGroupsRequest describeGroupsRequest)
Describes the groups specified by the query. Groups are defined by the underlying Active Directory.
describeGroupsRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeNotificationSubscriptionsResult describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest describeNotificationSubscriptionsRequest)
Lists the specified notification subscriptions.
describeNotificationSubscriptionsRequest
- UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.EntityNotExistsException
- The resource does not exist.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeResourcePermissionsResult describeResourcePermissions(DescribeResourcePermissionsRequest describeResourcePermissionsRequest)
Describes the permissions of a specified resource.
describeResourcePermissionsRequest
- InvalidArgumentException
- The pagination marker or limit fields are not valid.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeRootFoldersResult describeRootFolders(DescribeRootFoldersRequest 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.
describeRootFoldersRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DescribeUsersResult 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
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.InvalidArgumentException
- The pagination marker or limit fields are not valid.RequestedEntityTooLargeException
- The response is too large to return. The request must include a filter to reduce the size of the
response.GetCurrentUserResult 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.
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.
getCurrentUserRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.GetDocumentResult getDocument(GetDocumentRequest getDocumentRequest)
Retrieves details of a document.
getDocumentRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.InvalidPasswordException
- The password is invalid.GetDocumentPathResult 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
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.GetDocumentVersionResult getDocumentVersion(GetDocumentVersionRequest getDocumentVersionRequest)
Retrieves version metadata for the specified document.
getDocumentVersionRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.InvalidPasswordException
- The password is invalid.GetFolderResult getFolder(GetFolderRequest getFolderRequest)
Retrieves the metadata of the specified folder.
getFolderRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.GetFolderPathResult 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
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.GetResourcesResult getResources(GetResourcesRequest getResourcesRequest)
Retrieves a collection of resources, including folders and documents. The only CollectionType
supported is SHARED_WITH_ME
.
getResourcesRequest
- UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.UnauthorizedOperationException
- The operation is not permitted.InvalidArgumentException
- The pagination marker or limit fields are not valid.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.InitiateDocumentVersionUploadResult 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
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.StorageLimitExceededException
- The storage limit has been exceeded.StorageLimitWillExceedException
- The storage limit will be exceeded.LimitExceededException
- The maximum of 100,000 files and folders under the parent folder has been exceeded.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DraftUploadOutOfSyncException
- This exception is thrown when a valid checkout ID is not presented on document version upload calls for a
document that has been checked out from Web client.ResourceAlreadyCheckedOutException
- The resource is already checked out.InvalidPasswordException
- The password is invalid.InvalidArgumentException
- The pagination marker or limit fields are not valid.RemoveAllResourcePermissionsResult removeAllResourcePermissions(RemoveAllResourcePermissionsRequest removeAllResourcePermissionsRequest)
Removes all the permissions from the specified resource.
removeAllResourcePermissionsRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.RemoveResourcePermissionResult removeResourcePermission(RemoveResourcePermissionRequest removeResourcePermissionRequest)
Removes the permission for the specified principal from the specified resource.
removeResourcePermissionRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.RestoreDocumentVersionsResult restoreDocumentVersions(RestoreDocumentVersionsRequest restoreDocumentVersionsRequest)
Recovers a deleted version of an Amazon WorkDocs document.
restoreDocumentVersionsRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.InvalidOperationException
- The operation is invalid.UnauthorizedOperationException
- The operation is not permitted.SearchResourcesResult searchResources(SearchResourcesRequest searchResourcesRequest)
Searches metadata and the content of folders, documents, document versions, and comments.
searchResourcesRequest
- InvalidArgumentException
- The pagination marker or limit fields are not valid.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.UnauthorizedOperationException
- The operation is not permitted.ServiceUnavailableException
- One or more of the dependencies is unavailable.UpdateDocumentResult 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
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.LimitExceededException
- The maximum of 100,000 files and folders under the parent folder has been exceeded.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.UpdateDocumentVersionResult 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
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConcurrentModificationException
- The resource hierarchy is changing.InvalidOperationException
- The operation is invalid.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.UpdateFolderResult 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
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConflictingOperationException
- Another operation is in progress on the resource that conflicts with the current operation.ConcurrentModificationException
- The resource hierarchy is changing.LimitExceededException
- The maximum of 100,000 files and folders under the parent folder has been exceeded.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.UpdateUserResult updateUser(UpdateUserRequest updateUserRequest)
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
updateUserRequest
- EntityNotExistsException
- The resource does not exist.UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.IllegalUserStateException
- The user is undergoing transfer of ownership.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.FailedDependencyException
- The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the
organization is failing, such as a connected Active Directory.ServiceUnavailableException
- One or more of the dependencies is unavailable.DeactivatingLastSystemUserException
- The last user in the organization is being deactivated.InvalidArgumentException
- The pagination marker or limit fields are not valid.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.