Class: AWS.WorkDocs
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.WorkDocs
- Identifier:
- workdocs
- API Version:
- 2016-05-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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.
-
READ (Get*)
-
WRITE (Activate*, Add*, Create*, Deactivate*, Initiate*, Update*)
-
LIST (Describe*)
-
DELETE*, CANCEL
Sending a Request Using WorkDocs
var workdocs = new AWS.WorkDocs();
workdocs.abortDocumentVersionUpload(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the WorkDocs object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var workdocs = new AWS.WorkDocs({apiVersion: '2016-05-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the workdocs service identifier:
AWS.config.apiVersions = {
workdocs: '2016-05-01',
// other service API versions
};
var workdocs = new AWS.WorkDocs();
Constructor Summary collapse
-
new AWS.WorkDocs(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
abortDocumentVersionUpload(params = {}, callback) ⇒ AWS.Request
Aborts the upload of the specified document version that was previously initiated by InitiateDocumentVersionUpload.
-
activateUser(params = {}, callback) ⇒ AWS.Request
Activates the specified user.
-
addResourcePermissions(params = {}, callback) ⇒ AWS.Request
Creates a set of permissions for the specified folder or document.
-
createComment(params = {}, callback) ⇒ AWS.Request
Adds a new comment to the specified document version.
.
-
createCustomMetadata(params = {}, callback) ⇒ AWS.Request
Adds one or more custom properties to the specified resource (a folder, document, or version).
.
-
createFolder(params = {}, callback) ⇒ AWS.Request
Creates a folder with the specified name and parent folder.
.
-
createLabels(params = {}, callback) ⇒ AWS.Request
Adds the specified list of labels to the given resource (a document or folder)
.
-
createNotificationSubscription(params = {}, callback) ⇒ AWS.Request
Configure Amazon WorkDocs to use Amazon SNS notifications.
-
createUser(params = {}, callback) ⇒ AWS.Request
Creates a user in a Simple AD or Microsoft AD directory.
-
deactivateUser(params = {}, callback) ⇒ AWS.Request
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
.
-
deleteComment(params = {}, callback) ⇒ AWS.Request
Deletes the specified comment from the document version.
.
-
deleteCustomMetadata(params = {}, callback) ⇒ AWS.Request
Deletes custom metadata from the specified resource.
.
-
deleteDocument(params = {}, callback) ⇒ AWS.Request
Permanently deletes the specified document and its associated metadata.
.
-
deleteDocumentVersion(params = {}, callback) ⇒ AWS.Request
Deletes a specific version of a document.
.
-
deleteFolder(params = {}, callback) ⇒ AWS.Request
Permanently deletes the specified folder and its contents.
.
-
deleteFolderContents(params = {}, callback) ⇒ AWS.Request
Deletes the contents of the specified folder.
.
-
deleteLabels(params = {}, callback) ⇒ AWS.Request
Deletes the specified list of labels from a resource.
.
-
deleteNotificationSubscription(params = {}, callback) ⇒ AWS.Request
Deletes the specified subscription from the specified organization.
.
-
deleteUser(params = {}, callback) ⇒ AWS.Request
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.
-
describeActivities(params = {}, callback) ⇒ AWS.Request
Describes the user activities in a specified time period.
.
-
describeComments(params = {}, callback) ⇒ AWS.Request
List all the comments for the specified document version.
.
-
describeDocumentVersions(params = {}, callback) ⇒ AWS.Request
Retrieves the document versions for the specified document.
By default, only active versions are returned.
. -
describeFolderContents(params = {}, callback) ⇒ AWS.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.
-
describeGroups(params = {}, callback) ⇒ AWS.Request
Describes the groups specified by the query.
-
describeNotificationSubscriptions(params = {}, callback) ⇒ AWS.Request
Lists the specified notification subscriptions.
.
-
describeResourcePermissions(params = {}, callback) ⇒ AWS.Request
Describes the permissions of a specified resource.
.
-
describeRootFolders(params = {}, callback) ⇒ AWS.Request
Describes the current user's special folders; the
RootFolder
and theRecycleBin
. -
describeUsers(params = {}, callback) ⇒ AWS.Request
Describes the specified users.
-
getCurrentUser(params = {}, callback) ⇒ AWS.Request
Retrieves details of the current user for whom the authentication token was generated.
-
getDocument(params = {}, callback) ⇒ AWS.Request
Retrieves details of a document.
.
-
getDocumentPath(params = {}, callback) ⇒ AWS.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.
-
getDocumentVersion(params = {}, callback) ⇒ AWS.Request
Retrieves version metadata for the specified document.
.
-
getFolder(params = {}, callback) ⇒ AWS.Request
Retrieves the metadata of the specified folder.
.
-
getFolderPath(params = {}, callback) ⇒ AWS.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.
-
getResources(params = {}, callback) ⇒ AWS.Request
Retrieves a collection of resources, including folders and documents.
-
initiateDocumentVersionUpload(params = {}, callback) ⇒ AWS.Request
Creates a new document object and version object.
The client specifies the parent folder ID and name of the document to upload.
-
removeAllResourcePermissions(params = {}, callback) ⇒ AWS.Request
Removes all the permissions from the specified resource.
.
-
removeResourcePermission(params = {}, callback) ⇒ AWS.Request
Removes the permission for the specified principal from the specified resource.
.
-
restoreDocumentVersions(params = {}, callback) ⇒ AWS.Request
Recovers a deleted version of an Amazon WorkDocs document.
.
-
searchResources(params = {}, callback) ⇒ AWS.Request
Searches metadata and the content of folders, documents, document versions, and comments.
.
-
updateDocument(params = {}, callback) ⇒ AWS.Request
Updates the specified attributes of a document.
-
updateDocumentVersion(params = {}, callback) ⇒ AWS.Request
Changes the status of the document version to ACTIVE.
-
updateFolder(params = {}, callback) ⇒ AWS.Request
Updates the specified attributes of the specified folder.
-
updateUser(params = {}, callback) ⇒ AWS.Request
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.WorkDocs(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
abortDocumentVersionUpload(params = {}, callback) ⇒ AWS.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.
activateUser(params = {}, callback) ⇒ AWS.Request
Activates the specified user. Only active users can access Amazon WorkDocs.
addResourcePermissions(params = {}, callback) ⇒ AWS.Request
Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.
createComment(params = {}, callback) ⇒ AWS.Request
Adds a new comment to the specified document version.
createCustomMetadata(params = {}, callback) ⇒ AWS.Request
Adds one or more custom properties to the specified resource (a folder, document, or version).
createFolder(params = {}, callback) ⇒ AWS.Request
Creates a folder with the specified name and parent folder.
createLabels(params = {}, callback) ⇒ AWS.Request
Adds the specified list of labels to the given resource (a document or folder)
createNotificationSubscription(params = {}, callback) ⇒ AWS.Request
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.
createUser(params = {}, callback) ⇒ AWS.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.
deactivateUser(params = {}, callback) ⇒ AWS.Request
Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.
deleteComment(params = {}, callback) ⇒ AWS.Request
Deletes the specified comment from the document version.
deleteCustomMetadata(params = {}, callback) ⇒ AWS.Request
Deletes custom metadata from the specified resource.
deleteDocument(params = {}, callback) ⇒ AWS.Request
Permanently deletes the specified document and its associated metadata.
deleteDocumentVersion(params = {}, callback) ⇒ AWS.Request
Deletes a specific version of a document.
deleteFolder(params = {}, callback) ⇒ AWS.Request
Permanently deletes the specified folder and its contents.
deleteFolderContents(params = {}, callback) ⇒ AWS.Request
Deletes the contents of the specified folder.
deleteLabels(params = {}, callback) ⇒ AWS.Request
Deletes the specified list of labels from a resource.
deleteNotificationSubscription(params = {}, callback) ⇒ AWS.Request
Deletes the specified subscription from the specified organization.
deleteUser(params = {}, callback) ⇒ AWS.Request
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.
describeActivities(params = {}, callback) ⇒ AWS.Request
Describes the user activities in a specified time period.
describeComments(params = {}, callback) ⇒ AWS.Request
List all the comments for the specified document version.
describeDocumentVersions(params = {}, callback) ⇒ AWS.Request
Retrieves the document versions for the specified document.
By default, only active versions are returned.
describeFolderContents(params = {}, callback) ⇒ AWS.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.
describeGroups(params = {}, callback) ⇒ AWS.Request
Describes the groups specified by the query. Groups are defined by the underlying Active Directory.
describeNotificationSubscriptions(params = {}, callback) ⇒ AWS.Request
Lists the specified notification subscriptions.
describeResourcePermissions(params = {}, callback) ⇒ AWS.Request
Describes the permissions of a specified resource.
describeRootFolders(params = {}, callback) ⇒ AWS.Request
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.
describeUsers(params = {}, callback) ⇒ AWS.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.
getCurrentUser(params = {}, callback) ⇒ AWS.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.
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.
getDocumentPath(params = {}, callback) ⇒ AWS.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.
getDocumentVersion(params = {}, callback) ⇒ AWS.Request
Retrieves version metadata for the specified document.
getFolderPath(params = {}, callback) ⇒ AWS.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.
getResources(params = {}, callback) ⇒ AWS.Request
Retrieves a collection of resources, including folders and documents. The only CollectionType
supported is SHARED_WITH_ME
.
initiateDocumentVersionUpload(params = {}, callback) ⇒ AWS.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.
removeAllResourcePermissions(params = {}, callback) ⇒ AWS.Request
Removes all the permissions from the specified resource.
removeResourcePermission(params = {}, callback) ⇒ AWS.Request
Removes the permission for the specified principal from the specified resource.
restoreDocumentVersions(params = {}, callback) ⇒ AWS.Request
Recovers a deleted version of an Amazon WorkDocs document.
searchResources(params = {}, callback) ⇒ AWS.Request
Searches metadata and the content of folders, documents, document versions, and comments.
updateDocument(params = {}, callback) ⇒ AWS.Request
Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
updateDocumentVersion(params = {}, callback) ⇒ AWS.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.