import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AbortDocumentVersionUploadCommand , AbortDocumentVersionUploadCommandInput , AbortDocumentVersionUploadCommandOutput , } from "./commands/AbortDocumentVersionUploadCommand" ; import { ActivateUserCommand , ActivateUserCommandInput , ActivateUserCommandOutput , } from "./commands/ActivateUserCommand" ; import { AddResourcePermissionsCommand , AddResourcePermissionsCommandInput , AddResourcePermissionsCommandOutput , } from "./commands/AddResourcePermissionsCommand" ; import { CreateCommentCommand , CreateCommentCommandInput , CreateCommentCommandOutput , } from "./commands/CreateCommentCommand" ; import { CreateCustomMetadataCommand , CreateCustomMetadataCommandInput , CreateCustomMetadataCommandOutput , } from "./commands/CreateCustomMetadataCommand" ; import { CreateFolderCommand , CreateFolderCommandInput , CreateFolderCommandOutput , } from "./commands/CreateFolderCommand" ; import { CreateLabelsCommand , CreateLabelsCommandInput , CreateLabelsCommandOutput , } from "./commands/CreateLabelsCommand" ; import { CreateNotificationSubscriptionCommand , CreateNotificationSubscriptionCommandInput , CreateNotificationSubscriptionCommandOutput , } from "./commands/CreateNotificationSubscriptionCommand" ; import { CreateUserCommand , CreateUserCommandInput , CreateUserCommandOutput } from "./commands/CreateUserCommand" ; import { DeactivateUserCommand , DeactivateUserCommandInput , DeactivateUserCommandOutput , } from "./commands/DeactivateUserCommand" ; import { DeleteCommentCommand , DeleteCommentCommandInput , DeleteCommentCommandOutput , } from "./commands/DeleteCommentCommand" ; import { DeleteCustomMetadataCommand , DeleteCustomMetadataCommandInput , DeleteCustomMetadataCommandOutput , } from "./commands/DeleteCustomMetadataCommand" ; import { DeleteDocumentCommand , DeleteDocumentCommandInput , DeleteDocumentCommandOutput , } from "./commands/DeleteDocumentCommand" ; import { DeleteFolderCommand , DeleteFolderCommandInput , DeleteFolderCommandOutput , } from "./commands/DeleteFolderCommand" ; import { DeleteFolderContentsCommand , DeleteFolderContentsCommandInput , DeleteFolderContentsCommandOutput , } from "./commands/DeleteFolderContentsCommand" ; import { DeleteLabelsCommand , DeleteLabelsCommandInput , DeleteLabelsCommandOutput , } from "./commands/DeleteLabelsCommand" ; import { DeleteNotificationSubscriptionCommand , DeleteNotificationSubscriptionCommandInput , DeleteNotificationSubscriptionCommandOutput , } from "./commands/DeleteNotificationSubscriptionCommand" ; import { DeleteUserCommand , DeleteUserCommandInput , DeleteUserCommandOutput } from "./commands/DeleteUserCommand" ; import { DescribeActivitiesCommand , DescribeActivitiesCommandInput , DescribeActivitiesCommandOutput , } from "./commands/DescribeActivitiesCommand" ; import { DescribeCommentsCommand , DescribeCommentsCommandInput , DescribeCommentsCommandOutput , } from "./commands/DescribeCommentsCommand" ; import { DescribeDocumentVersionsCommand , DescribeDocumentVersionsCommandInput , DescribeDocumentVersionsCommandOutput , } from "./commands/DescribeDocumentVersionsCommand" ; import { DescribeFolderContentsCommand , DescribeFolderContentsCommandInput , DescribeFolderContentsCommandOutput , } from "./commands/DescribeFolderContentsCommand" ; import { DescribeGroupsCommand , DescribeGroupsCommandInput , DescribeGroupsCommandOutput , } from "./commands/DescribeGroupsCommand" ; import { DescribeNotificationSubscriptionsCommand , DescribeNotificationSubscriptionsCommandInput , DescribeNotificationSubscriptionsCommandOutput , } from "./commands/DescribeNotificationSubscriptionsCommand" ; import { DescribeResourcePermissionsCommand , DescribeResourcePermissionsCommandInput , DescribeResourcePermissionsCommandOutput , } from "./commands/DescribeResourcePermissionsCommand" ; import { DescribeRootFoldersCommand , DescribeRootFoldersCommandInput , DescribeRootFoldersCommandOutput , } from "./commands/DescribeRootFoldersCommand" ; import { DescribeUsersCommand , DescribeUsersCommandInput , DescribeUsersCommandOutput , } from "./commands/DescribeUsersCommand" ; import { GetCurrentUserCommand , GetCurrentUserCommandInput , GetCurrentUserCommandOutput , } from "./commands/GetCurrentUserCommand" ; import { GetDocumentCommand , GetDocumentCommandInput , GetDocumentCommandOutput } from "./commands/GetDocumentCommand" ; import { GetDocumentPathCommand , GetDocumentPathCommandInput , GetDocumentPathCommandOutput , } from "./commands/GetDocumentPathCommand" ; import { GetDocumentVersionCommand , GetDocumentVersionCommandInput , GetDocumentVersionCommandOutput , } from "./commands/GetDocumentVersionCommand" ; import { GetFolderCommand , GetFolderCommandInput , GetFolderCommandOutput } from "./commands/GetFolderCommand" ; import { GetFolderPathCommand , GetFolderPathCommandInput , GetFolderPathCommandOutput , } from "./commands/GetFolderPathCommand" ; import { GetResourcesCommand , GetResourcesCommandInput , GetResourcesCommandOutput , } from "./commands/GetResourcesCommand" ; import { InitiateDocumentVersionUploadCommand , InitiateDocumentVersionUploadCommandInput , InitiateDocumentVersionUploadCommandOutput , } from "./commands/InitiateDocumentVersionUploadCommand" ; import { RemoveAllResourcePermissionsCommand , RemoveAllResourcePermissionsCommandInput , RemoveAllResourcePermissionsCommandOutput , } from "./commands/RemoveAllResourcePermissionsCommand" ; import { RemoveResourcePermissionCommand , RemoveResourcePermissionCommandInput , RemoveResourcePermissionCommandOutput , } from "./commands/RemoveResourcePermissionCommand" ; import { UpdateDocumentCommand , UpdateDocumentCommandInput , UpdateDocumentCommandOutput , } from "./commands/UpdateDocumentCommand" ; import { UpdateDocumentVersionCommand , UpdateDocumentVersionCommandInput , UpdateDocumentVersionCommandOutput , } from "./commands/UpdateDocumentVersionCommand" ; import { UpdateFolderCommand , UpdateFolderCommandInput , UpdateFolderCommandOutput , } from "./commands/UpdateFolderCommand" ; import { UpdateUserCommand , UpdateUserCommandInput , UpdateUserCommandOutput } from "./commands/UpdateUserCommand" ; import { WorkDocsClient } from "./WorkDocsClient" ; /**
 * <p>The WorkDocs API is designed for the following use cases:</p>
 *         <ul>
 *             <li>
 *                 <p>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.</p>
 *             </li>
 *             <li>
 *                 <p>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 AWS 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.</p>
 *             </li>
 *             <li>
 *                 <p>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 AWS CloudTrail, to
 *                     replicate data for eDiscovery, backup, or analytical applications.</p>
 *             </li>
 *          </ul>
 *         <p>All Amazon WorkDocs API actions are Amazon authenticated and certificate-signed.
 *             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.</p>
 */ export class WorkDocs extends WorkDocsClient { /**
     * <p>Aborts the upload of the specified document version that was previously initiated
     *             by <a>InitiateDocumentVersionUpload</a>. The client should make this call
     *             only when it no longer intends to upload the document version, or fails to do
     *             so.</p>
     */ public abortDocumentVersionUpload ( args , options ? ) ; public abortDocumentVersionUpload ( args , cb ) ; public abortDocumentVersionUpload ( args , options , cb ) ; public abortDocumentVersionUpload ( args , optionsOrCb ? , cb ? ) { const command = new AbortDocumentVersionUploadCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Activates the specified user. Only active users can access Amazon
     *             WorkDocs.</p>
     */ public activateUser ( args , options ? ) ; public activateUser ( args , cb ) ; public activateUser ( args , options , cb ) ; public activateUser ( args , optionsOrCb ? , cb ? ) { const command = new ActivateUserCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates a set of permissions for the specified folder or document. The resource
     *             permissions are overwritten if the principals already have different
     *             permissions.</p>
     */ public addResourcePermissions ( args , options ? ) ; public addResourcePermissions ( args , cb ) ; public addResourcePermissions ( args , options , cb ) ; public addResourcePermissions ( args , optionsOrCb ? , cb ? ) { const command = new AddResourcePermissionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Adds a new comment to the specified document version.</p>
     */ public createComment ( args , options ? ) ; public createComment ( args , cb ) ; public createComment ( args , options , cb ) ; public createComment ( args , optionsOrCb ? , cb ? ) { const command = new CreateCommentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Adds one or more custom properties to the specified resource (a folder, document,
     *             or version).</p>
     */ public createCustomMetadata ( args , options ? ) ; public createCustomMetadata ( args , cb ) ; public createCustomMetadata ( args , options , cb ) ; public createCustomMetadata ( args , optionsOrCb ? , cb ? ) { const command = new CreateCustomMetadataCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates a folder with the specified name and parent folder.</p>
     */ public createFolder ( args , options ? ) ; public createFolder ( args , cb ) ; public createFolder ( args , options , cb ) ; public createFolder ( args , optionsOrCb ? , cb ? ) { const command = new CreateFolderCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Adds the specified list of labels to the given resource (a document or
     *             folder)</p>
     */ public createLabels ( args , options ? ) ; public createLabels ( args , cb ) ; public createLabels ( args , options , cb ) ; public createLabels ( args , optionsOrCb ? , cb ? ) { const command = new CreateLabelsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a
     *             confirmation message, and must confirm the subscription.</p>
     *         <p>For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/subscribe-notifications.html">Subscribe to
     *                 Notifications</a> in the <i>Amazon WorkDocs Developer
     *             Guide</i>.</p>
     */ public createNotificationSubscription ( args , options ? ) ; public createNotificationSubscription ( args , cb ) ; public createNotificationSubscription ( args , options , cb ) ; public createNotificationSubscription ( args , optionsOrCb ? , cb ? ) { const command = new CreateNotificationSubscriptionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>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.</p>
     */ public createUser ( args , options ? ) ; public createUser ( args , cb ) ; public createUser ( args , options , cb ) ; public createUser ( args , optionsOrCb ? , cb ? ) { const command = new CreateUserCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deactivates the specified user, which revokes the user's access to Amazon
     *             WorkDocs.</p>
     */ public deactivateUser ( args , options ? ) ; public deactivateUser ( args , cb ) ; public deactivateUser ( args , options , cb ) ; public deactivateUser ( args , optionsOrCb ? , cb ? ) { const command = new DeactivateUserCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the specified comment from the document version.</p>
     */ public deleteComment ( args , options ? ) ; public deleteComment ( args , cb ) ; public deleteComment ( args , options , cb ) ; public deleteComment ( args , optionsOrCb ? , cb ? ) { const command = new DeleteCommentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes custom metadata from the specified resource.</p>
     */ public deleteCustomMetadata ( args , options ? ) ; public deleteCustomMetadata ( args , cb ) ; public deleteCustomMetadata ( args , options , cb ) ; public deleteCustomMetadata ( args , optionsOrCb ? , cb ? ) { const command = new DeleteCustomMetadataCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Permanently deletes the specified document and its associated metadata.</p>
     */ public deleteDocument ( args , options ? ) ; public deleteDocument ( args , cb ) ; public deleteDocument ( args , options , cb ) ; public deleteDocument ( args , optionsOrCb ? , cb ? ) { const command = new DeleteDocumentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Permanently deletes the specified folder and its contents.</p>
     */ public deleteFolder ( args , options ? ) ; public deleteFolder ( args , cb ) ; public deleteFolder ( args , options , cb ) ; public deleteFolder ( args , optionsOrCb ? , cb ? ) { const command = new DeleteFolderCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the contents of the specified folder.</p>
     */ public deleteFolderContents ( args , options ? ) ; public deleteFolderContents ( args , cb ) ; public deleteFolderContents ( args , options , cb ) ; public deleteFolderContents ( args , optionsOrCb ? , cb ? ) { const command = new DeleteFolderContentsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the specified list of labels from a resource.</p>
     */ public deleteLabels ( args , options ? ) ; public deleteLabels ( args , cb ) ; public deleteLabels ( args , options , cb ) ; public deleteLabels ( args , optionsOrCb ? , cb ? ) { const command = new DeleteLabelsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the specified subscription from the specified organization.</p>
     */ public deleteNotificationSubscription ( args , options ? ) ; public deleteNotificationSubscription ( args , cb ) ; public deleteNotificationSubscription ( args , options , cb ) ; public deleteNotificationSubscription ( args , optionsOrCb ? , cb ? ) { const command = new DeleteNotificationSubscriptionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Deletes the specified user from a Simple AD or Microsoft AD directory.</p>
     */ public deleteUser ( args , options ? ) ; public deleteUser ( args , cb ) ; public deleteUser ( args , options , cb ) ; public deleteUser ( args , optionsOrCb ? , cb ? ) { const command = new DeleteUserCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Describes the user activities in a specified time period.</p>
     */ public describeActivities ( args , options ? ) ; public describeActivities ( args , cb ) ; public describeActivities ( args , options , cb ) ; public describeActivities ( args , optionsOrCb ? , cb ? ) { const command = new DescribeActivitiesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>List all the comments for the specified document version.</p>
     */ public describeComments ( args , options ? ) ; public describeComments ( args , cb ) ; public describeComments ( args , options , cb ) ; public describeComments ( args , optionsOrCb ? , cb ? ) { const command = new DescribeCommentsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves the document versions for the specified document.</p>
     *         <p>By default, only active versions are returned.</p>
     */ public describeDocumentVersions ( args , options ? ) ; public describeDocumentVersions ( args , cb ) ; public describeDocumentVersions ( args , options , cb ) ; public describeDocumentVersions ( args , optionsOrCb ? , cb ? ) { const command = new DescribeDocumentVersionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Describes the contents of the specified folder, including its documents and
     *             subfolders.</p>
     *         <p>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.</p>
     */ public describeFolderContents ( args , options ? ) ; public describeFolderContents ( args , cb ) ; public describeFolderContents ( args , options , cb ) ; public describeFolderContents ( args , optionsOrCb ? , cb ? ) { const command = new DescribeFolderContentsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Describes the groups specified by the query. Groups are defined by the underlying
     *             Active Directory.</p>
     */ public describeGroups ( args , options ? ) ; public describeGroups ( args , cb ) ; public describeGroups ( args , options , cb ) ; public describeGroups ( args , optionsOrCb ? , cb ? ) { const command = new DescribeGroupsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists the specified notification subscriptions.</p>
     */ public describeNotificationSubscriptions ( args , options ? ) ; public describeNotificationSubscriptions ( args , cb ) ; public describeNotificationSubscriptions ( args , options , cb ) ; public describeNotificationSubscriptions ( args , optionsOrCb ? , cb ? ) { const command = new DescribeNotificationSubscriptionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Describes the permissions of a specified resource.</p>
     */ public describeResourcePermissions ( args , options ? ) ; public describeResourcePermissions ( args , cb ) ; public describeResourcePermissions ( args , options , cb ) ; public describeResourcePermissions ( args , optionsOrCb ? , cb ? ) { const command = new DescribeResourcePermissionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Describes the current user's special folders; the <code>RootFolder</code> and the
     *                 <code>RecycleBin</code>. <code>RootFolder</code> is the root of user's files and
     *             folders and <code>RecycleBin</code> is the root of recycled items. This is not a valid
     *             action for SigV4 (administrative API) clients.</p>
     *         <p>This action requires an authentication token. To get an authentication token,
     *             register an application with Amazon WorkDocs. For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html">Authentication and Access
     *                 Control for User Applications</a> in the
     *             <i>Amazon
     *             WorkDocs Developer Guide</i>.</p>
     */ public describeRootFolders ( args , options ? ) ; public describeRootFolders ( args , cb ) ; public describeRootFolders ( args , options , cb ) ; public describeRootFolders ( args , optionsOrCb ? , cb ? ) { const command = new DescribeRootFoldersCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Describes the specified users. You can describe all users or filter the results
     *             (for example, by status or organization).</p>
     *         <p>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.</p>
     */ public describeUsers ( args , options ? ) ; public describeUsers ( args , cb ) ; public describeUsers ( args , options , cb ) ; public describeUsers ( args , optionsOrCb ? , cb ? ) { const command = new DescribeUsersCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves details of the current user for whom the authentication token was
     *             generated. This is not a valid action for SigV4 (administrative API) clients.</p>
     *         <p>This action requires an authentication token. To get an authentication token,
     *             register an application with Amazon WorkDocs. For more information, see <a href="https://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html">Authentication and Access
     *                 Control for User Applications</a> in the
     *             <i>Amazon
     *                 WorkDocs Developer Guide</i>.</p>
     */ public getCurrentUser ( args , options ? ) ; public getCurrentUser ( args , cb ) ; public getCurrentUser ( args , options , cb ) ; public getCurrentUser ( args , optionsOrCb ? , cb ? ) { const command = new GetCurrentUserCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves details of a document.</p>
     */ public getDocument ( args , options ? ) ; public getDocument ( args , cb ) ; public getDocument ( args , options , cb ) ; public getDocument ( args , optionsOrCb ? , cb ? ) { const command = new GetDocumentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves the path information (the hierarchy from the root folder) for the
     *             requested document.</p>
     *         <p>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.</p>
     */ public getDocumentPath ( args , options ? ) ; public getDocumentPath ( args , cb ) ; public getDocumentPath ( args , options , cb ) ; public getDocumentPath ( args , optionsOrCb ? , cb ? ) { const command = new GetDocumentPathCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves version metadata for the specified document.</p>
     */ public getDocumentVersion ( args , options ? ) ; public getDocumentVersion ( args , cb ) ; public getDocumentVersion ( args , options , cb ) ; public getDocumentVersion ( args , optionsOrCb ? , cb ? ) { const command = new GetDocumentVersionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves the metadata of the specified folder.</p>
     */ public getFolder ( args , options ? ) ; public getFolder ( args , cb ) ; public getFolder ( args , options , cb ) ; public getFolder ( args , optionsOrCb ? , cb ? ) { const command = new GetFolderCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves the path information (the hierarchy from the root folder) for the
     *             specified folder.</p>
     *         <p>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.</p>
     */ public getFolderPath ( args , options ? ) ; public getFolderPath ( args , cb ) ; public getFolderPath ( args , options , cb ) ; public getFolderPath ( args , optionsOrCb ? , cb ? ) { const command = new GetFolderPathCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Retrieves a collection of resources, including folders and documents. The only
     *             <code>CollectionType</code> supported is <code>SHARED_WITH_ME</code>.</p>
     */ public getResources ( args , options ? ) ; public getResources ( args , cb ) ; public getResources ( args , options , cb ) ; public getResources ( args , optionsOrCb ? , cb ? ) { const command = new GetResourcesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates a new document object and version object.</p>
     *         <p>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 <a>UpdateDocumentVersion</a>.</p>
     *         <p>To cancel the document upload, call <a>AbortDocumentVersionUpload</a>.</p>
     */ public initiateDocumentVersionUpload ( args , options ? ) ; public initiateDocumentVersionUpload ( args , cb ) ; public initiateDocumentVersionUpload ( args , options , cb ) ; public initiateDocumentVersionUpload ( args , optionsOrCb ? , cb ? ) { const command = new InitiateDocumentVersionUploadCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes all the permissions from the specified resource.</p>
     */ public removeAllResourcePermissions ( args , options ? ) ; public removeAllResourcePermissions ( args , cb ) ; public removeAllResourcePermissions ( args , options , cb ) ; public removeAllResourcePermissions ( args , optionsOrCb ? , cb ? ) { const command = new RemoveAllResourcePermissionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes the permission for the specified principal from the specified
     *             resource.</p>
     */ public removeResourcePermission ( args , options ? ) ; public removeResourcePermission ( args , cb ) ; public removeResourcePermission ( args , options , cb ) ; public removeResourcePermission ( args , optionsOrCb ? , cb ? ) { const command = new RemoveResourcePermissionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the specified attributes of a document. The user must have access to both
     *             the document and its parent folder, if applicable.</p>
     */ public updateDocument ( args , options ? ) ; public updateDocument ( args , cb ) ; public updateDocument ( args , options , cb ) ; public updateDocument ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDocumentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Changes the status of the document version to ACTIVE. </p>
     *         <p>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 <a>InitiateDocumentVersionUpload</a>. </p>
     */ public updateDocumentVersion ( args , options ? ) ; public updateDocumentVersion ( args , cb ) ; public updateDocumentVersion ( args , options , cb ) ; public updateDocumentVersion ( args , optionsOrCb ? , cb ? ) { const command = new UpdateDocumentVersionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the specified attributes of the specified folder. The user must have access
     *             to both the folder and its parent folder, if applicable.</p>
     */ public updateFolder ( args , options ? ) ; public updateFolder ( args , cb ) ; public updateFolder ( args , options , cb ) ; public updateFolder ( args , optionsOrCb ? , cb ? ) { const command = new UpdateFolderCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the specified attributes of the specified user, and grants or revokes
     *             administrative privileges to the Amazon WorkDocs site.</p>
     */ public updateUser ( args , options ? ) ; public updateUser ( args , cb ) ; public updateUser ( args , options , cb ) ; public updateUser ( args , optionsOrCb ? , cb ? ) { const command = new UpdateUserCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }