@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonWorkDocsClient extends AmazonWebServiceClient implements AmazonWorkDocs
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.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AbortDocumentVersionUploadResult |
abortDocumentVersionUpload(AbortDocumentVersionUploadRequest request)
Aborts the upload of the specified document version that was previously initiated by
InitiateDocumentVersionUpload.
|
ActivateUserResult |
activateUser(ActivateUserRequest request)
Activates the specified user.
|
AddResourcePermissionsResult |
addResourcePermissions(AddResourcePermissionsRequest request)
Creates a set of permissions for the specified folder or document.
|
static AmazonWorkDocsClientBuilder |
builder() |
CreateCommentResult |
createComment(CreateCommentRequest request)
Adds a new comment to the specified document version.
|
CreateCustomMetadataResult |
createCustomMetadata(CreateCustomMetadataRequest request)
Adds one or more custom properties to the specified resource (a folder, document, or version).
|
CreateFolderResult |
createFolder(CreateFolderRequest request)
Creates a folder with the specified name and parent folder.
|
CreateLabelsResult |
createLabels(CreateLabelsRequest request)
Adds the specified list of labels to the given resource (a document or folder)
|
CreateNotificationSubscriptionResult |
createNotificationSubscription(CreateNotificationSubscriptionRequest request)
Configure WorkDocs to use Amazon SNS notifications.
|
CreateUserResult |
createUser(CreateUserRequest request)
Creates a user in a Simple AD or Microsoft AD directory.
|
DeactivateUserResult |
deactivateUser(DeactivateUserRequest request)
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
|
DeleteCommentResult |
deleteComment(DeleteCommentRequest request)
Deletes the specified comment from the document version.
|
DeleteCustomMetadataResult |
deleteCustomMetadata(DeleteCustomMetadataRequest request)
Deletes custom metadata from the specified resource.
|
DeleteDocumentResult |
deleteDocument(DeleteDocumentRequest request)
Permanently deletes the specified document and its associated metadata.
|
DeleteFolderResult |
deleteFolder(DeleteFolderRequest request)
Permanently deletes the specified folder and its contents.
|
DeleteFolderContentsResult |
deleteFolderContents(DeleteFolderContentsRequest request)
Deletes the contents of the specified folder.
|
DeleteLabelsResult |
deleteLabels(DeleteLabelsRequest request)
Deletes the specified list of labels from a resource.
|
DeleteNotificationSubscriptionResult |
deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request)
Deletes the specified subscription from the specified organization.
|
DeleteUserResult |
deleteUser(DeleteUserRequest request)
Deletes the specified user from a Simple AD or Microsoft AD directory.
|
DescribeActivitiesResult |
describeActivities(DescribeActivitiesRequest request)
Describes the user activities in a specified time period.
|
DescribeCommentsResult |
describeComments(DescribeCommentsRequest request)
List all the comments for the specified document version.
|
DescribeDocumentVersionsResult |
describeDocumentVersions(DescribeDocumentVersionsRequest request)
Retrieves the document versions for the specified document.
|
DescribeFolderContentsResult |
describeFolderContents(DescribeFolderContentsRequest request)
Describes the contents of the specified folder, including its documents and subfolders.
|
DescribeNotificationSubscriptionsResult |
describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request)
Lists the specified notification subscriptions.
|
DescribeResourcePermissionsResult |
describeResourcePermissions(DescribeResourcePermissionsRequest request)
Describes the permissions of a specified resource.
|
DescribeRootFoldersResult |
describeRootFolders(DescribeRootFoldersRequest request)
Describes the current user's special folders; the
RootFolder and the RecyleBin . |
DescribeUsersResult |
describeUsers(DescribeUsersRequest request)
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 request)
Retrieves details of the current user for whom the authentication token was generated.
|
GetDocumentResult |
getDocument(GetDocumentRequest request)
Retrieves details of a document.
|
GetDocumentPathResult |
getDocumentPath(GetDocumentPathRequest request)
Retrieves the path information (the hierarchy from the root folder) for the requested document.
|
GetDocumentVersionResult |
getDocumentVersion(GetDocumentVersionRequest request)
Retrieves version metadata for the specified document.
|
GetFolderResult |
getFolder(GetFolderRequest request)
Retrieves the metadata of the specified folder.
|
GetFolderPathResult |
getFolderPath(GetFolderPathRequest request)
Retrieves the path information (the hierarchy from the root folder) for the specified folder.
|
InitiateDocumentVersionUploadResult |
initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request)
Creates a new document object and version object.
|
RemoveAllResourcePermissionsResult |
removeAllResourcePermissions(RemoveAllResourcePermissionsRequest request)
Removes all the permissions from the specified resource.
|
RemoveResourcePermissionResult |
removeResourcePermission(RemoveResourcePermissionRequest request)
Removes the permission for the specified principal from the specified resource.
|
UpdateDocumentResult |
updateDocument(UpdateDocumentRequest request)
Updates the specified attributes of a document.
|
UpdateDocumentVersionResult |
updateDocumentVersion(UpdateDocumentVersionRequest request)
Changes the status of the document version to ACTIVE.
|
UpdateFolderResult |
updateFolder(UpdateFolderRequest request)
Updates the specified attributes of the specified folder.
|
UpdateUserResult |
updateUser(UpdateUserRequest request)
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the
Amazon WorkDocs site.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdown
public static AmazonWorkDocsClientBuilder builder()
public AbortDocumentVersionUploadResult abortDocumentVersionUpload(AbortDocumentVersionUploadRequest request)
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.
abortDocumentVersionUpload
in interface AmazonWorkDocs
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 AWS 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.public ActivateUserResult activateUser(ActivateUserRequest request)
Activates the specified user. Only active users can access Amazon WorkDocs.
activateUser
in interface AmazonWorkDocs
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 AWS 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.public AddResourcePermissionsResult addResourcePermissions(AddResourcePermissionsRequest request)
Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
addResourcePermissions
in interface AmazonWorkDocs
addResourcePermissionsRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The AWS 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.public CreateCommentResult createComment(CreateCommentRequest request)
Adds a new comment to the specified document version.
createComment
in interface AmazonWorkDocs
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 AWS 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.public CreateCustomMetadataResult createCustomMetadata(CreateCustomMetadataRequest request)
Adds one or more custom properties to the specified resource (a folder, document, or version).
createCustomMetadata
in interface AmazonWorkDocs
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 AWS 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.public CreateFolderResult createFolder(CreateFolderRequest request)
Creates a folder with the specified name and parent folder.
createFolder
in interface AmazonWorkDocs
createFolderRequest
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.LimitExceededException
- The maximum of 100,000 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 AWS 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.public CreateLabelsResult createLabels(CreateLabelsRequest request)
Adds the specified list of labels to the given resource (a document or folder)
createLabels
in interface AmazonWorkDocs
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 AWS 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.public CreateNotificationSubscriptionResult createNotificationSubscription(CreateNotificationSubscriptionRequest request)
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.
createNotificationSubscription
in interface AmazonWorkDocs
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.public CreateUserResult createUser(CreateUserRequest request)
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.
createUser
in interface AmazonWorkDocs
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 AWS 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.public DeactivateUserResult deactivateUser(DeactivateUserRequest request)
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
deactivateUser
in interface AmazonWorkDocs
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 AWS 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.public DeleteCommentResult deleteComment(DeleteCommentRequest request)
Deletes the specified comment from the document version.
deleteComment
in interface AmazonWorkDocs
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 AWS 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.public DeleteCustomMetadataResult deleteCustomMetadata(DeleteCustomMetadataRequest request)
Deletes custom metadata from the specified resource.
deleteCustomMetadata
in interface AmazonWorkDocs
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 AWS 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.public DeleteDocumentResult deleteDocument(DeleteDocumentRequest request)
Permanently deletes the specified document and its associated metadata.
deleteDocument
in interface AmazonWorkDocs
deleteDocumentRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.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 AWS 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.public DeleteFolderResult deleteFolder(DeleteFolderRequest request)
Permanently deletes the specified folder and its contents.
deleteFolder
in interface AmazonWorkDocs
deleteFolderRequest
- EntityNotExistsException
- The resource does not exist.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.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 AWS 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.public DeleteFolderContentsResult deleteFolderContents(DeleteFolderContentsRequest request)
Deletes the contents of the specified folder.
deleteFolderContents
in interface AmazonWorkDocs
deleteFolderContentsRequest
- 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 AWS 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.public DeleteLabelsResult deleteLabels(DeleteLabelsRequest request)
Deletes the specified list of labels from a resource.
deleteLabels
in interface AmazonWorkDocs
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 AWS 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.public DeleteNotificationSubscriptionResult deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request)
Deletes the specified subscription from the specified organization.
deleteNotificationSubscription
in interface AmazonWorkDocs
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.public DeleteUserResult deleteUser(DeleteUserRequest request)
Deletes the specified user from a Simple AD or Microsoft AD directory.
deleteUser
in interface AmazonWorkDocs
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 AWS 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.public DescribeActivitiesResult describeActivities(DescribeActivitiesRequest request)
Describes the user activities in a specified time period.
describeActivities
in interface AmazonWorkDocs
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 and/or limit fields are not valid.FailedDependencyException
- The AWS 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.public DescribeCommentsResult describeComments(DescribeCommentsRequest request)
List all the comments for the specified document version.
describeComments
in interface AmazonWorkDocs
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 AWS 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.public DescribeDocumentVersionsResult describeDocumentVersions(DescribeDocumentVersionsRequest request)
Retrieves the document versions for the specified document.
By default, only active versions are returned.
describeDocumentVersions
in interface AmazonWorkDocs
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 and/or limit fields are not valid.FailedDependencyException
- The AWS 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.public DescribeFolderContentsResult describeFolderContents(DescribeFolderContentsRequest request)
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.
describeFolderContents
in interface AmazonWorkDocs
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 and/or limit fields are not valid.FailedDependencyException
- The AWS 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.public DescribeNotificationSubscriptionsResult describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request)
Lists the specified notification subscriptions.
describeNotificationSubscriptions
in interface AmazonWorkDocs
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.public DescribeResourcePermissionsResult describeResourcePermissions(DescribeResourcePermissionsRequest request)
Describes the permissions of a specified resource.
describeResourcePermissions
in interface AmazonWorkDocs
describeResourcePermissionsRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The AWS 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.public DescribeRootFoldersResult describeRootFolders(DescribeRootFoldersRequest request)
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.
describeRootFolders
in interface AmazonWorkDocs
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 and/or limit fields are not valid.FailedDependencyException
- The AWS 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.public DescribeUsersResult describeUsers(DescribeUsersRequest request)
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.
describeUsers
in interface AmazonWorkDocs
describeUsersRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The AWS 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 and/or limit fields are not valid.public GetCurrentUserResult getCurrentUser(GetCurrentUserRequest request)
Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.
getCurrentUser
in interface AmazonWorkDocs
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 AWS 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.public GetDocumentResult getDocument(GetDocumentRequest request)
Retrieves details of a document.
getDocument
in interface AmazonWorkDocs
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 and/or limit fields are not valid.FailedDependencyException
- The AWS 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.public GetDocumentPathResult getDocumentPath(GetDocumentPathRequest request)
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.
getDocumentPath
in interface AmazonWorkDocs
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 AWS 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.public GetDocumentVersionResult getDocumentVersion(GetDocumentVersionRequest request)
Retrieves version metadata for the specified document.
getDocumentVersion
in interface AmazonWorkDocs
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 AWS 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.public GetFolderResult getFolder(GetFolderRequest request)
Retrieves the metadata of the specified folder.
getFolder
in interface AmazonWorkDocs
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 and/or limit fields are not valid.FailedDependencyException
- The AWS 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.public GetFolderPathResult getFolderPath(GetFolderPathRequest request)
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.
getFolderPath
in interface AmazonWorkDocs
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 AWS 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.public InitiateDocumentVersionUploadResult initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request)
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.
initiateDocumentVersionUpload
in interface AmazonWorkDocs
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.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 AWS 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.public RemoveAllResourcePermissionsResult removeAllResourcePermissions(RemoveAllResourcePermissionsRequest request)
Removes all the permissions from the specified resource.
removeAllResourcePermissions
in interface AmazonWorkDocs
removeAllResourcePermissionsRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The AWS 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.public RemoveResourcePermissionResult removeResourcePermission(RemoveResourcePermissionRequest request)
Removes the permission for the specified principal from the specified resource.
removeResourcePermission
in interface AmazonWorkDocs
removeResourcePermissionRequest
- UnauthorizedOperationException
- The operation is not permitted.UnauthorizedResourceAccessException
- The caller does not have access to perform the action on the resource.FailedDependencyException
- The AWS 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.public UpdateDocumentResult updateDocument(UpdateDocumentRequest request)
Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
updateDocument
in interface AmazonWorkDocs
updateDocumentRequest
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.LimitExceededException
- The maximum of 100,000 folders under the parent folder has been exceeded.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.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 AWS 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.public UpdateDocumentVersionResult updateDocumentVersion(UpdateDocumentVersionRequest request)
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.
updateDocumentVersion
in interface AmazonWorkDocs
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 AWS 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.public UpdateFolderResult updateFolder(UpdateFolderRequest request)
Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.
updateFolder
in interface AmazonWorkDocs
updateFolderRequest
- EntityNotExistsException
- The resource does not exist.EntityAlreadyExistsException
- The resource already exists.ProhibitedStateException
- The specified document version is not in the INITIALIZED state.ConcurrentModificationException
- The resource hierarchy is changing.LimitExceededException
- The maximum of 100,000 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 AWS 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.public UpdateUserResult updateUser(UpdateUserRequest request)
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
updateUser
in interface AmazonWorkDocs
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.FailedDependencyException
- The AWS 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.public 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 the request.
getCachedResponseMetadata
in interface AmazonWorkDocs
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.