Amazon WorkDocs

2017/06/02 - Amazon WorkDocs - 7 new 26 updated api methods

Changes  This release includes new APIs to manage tags and custom metadata on resources and also new APIs to add and retrieve comments at the document level.

DeleteLabels (new) Link ¶

Deletes the specified list of labels from a resource.

See also: AWS API Documentation

Request Syntax

client.delete_labels(
    ResourceId='string',
    AuthenticationToken='string',
    Labels=[
        'string',
    ],
    DeleteAll=True|False
)
type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type Labels

list

param Labels

List of labels to delete from the resource.

  • (string) --

type DeleteAll

boolean

param DeleteAll

Flag to request removal of all labels from the specified resource.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DeleteComment (new) Link ¶

Deletes the specified comment from the document version.

See also: AWS API Documentation

Request Syntax

client.delete_comment(
    AuthenticationToken='string',
    DocumentId='string',
    VersionId='string',
    CommentId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type VersionId

string

param VersionId

[REQUIRED]

The ID of the document version.

type CommentId

string

param CommentId

[REQUIRED]

The ID of the comment.

returns

None

CreateComment (new) Link ¶

Adds a new comment to the specified document version.

See also: AWS API Documentation

Request Syntax

client.create_comment(
    AuthenticationToken='string',
    DocumentId='string',
    VersionId='string',
    ParentId='string',
    ThreadId='string',
    Text='string',
    Visibility='PUBLIC'|'PRIVATE',
    NotifyCollaborators=True|False
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type VersionId

string

param VersionId

[REQUIRED]

The ID of the document version.

type ParentId

string

param ParentId

The ID of the parent comment.

type ThreadId

string

param ThreadId

The ID of the root comment in the thread.

type Text

string

param Text

[REQUIRED]

The text of the comment.

type Visibility

string

param Visibility

The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.

type NotifyCollaborators

boolean

param NotifyCollaborators

Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.

rtype

dict

returns

Response Syntax

{
    'Comment': {
        'CommentId': 'string',
        'ParentId': 'string',
        'ThreadId': 'string',
        'Text': 'string',
        'Contributor': {
            'Id': 'string',
            'Username': 'string',
            'EmailAddress': 'string',
            'GivenName': 'string',
            'Surname': 'string',
            'OrganizationId': 'string',
            'RootFolderId': 'string',
            'RecycleBinFolderId': 'string',
            'Status': 'ACTIVE'|'INACTIVE'|'PENDING',
            'Type': 'USER'|'ADMIN',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'TimeZoneId': 'string',
            'Locale': 'en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default',
            'Storage': {
                'StorageUtilizedInBytes': 123,
                'StorageRule': {
                    'StorageAllocatedInBytes': 123,
                    'StorageType': 'UNLIMITED'|'QUOTA'
                }
            }
        },
        'CreatedTimestamp': datetime(2015, 1, 1),
        'Status': 'DRAFT'|'PUBLISHED'|'DELETED',
        'Visibility': 'PUBLIC'|'PRIVATE',
        'RecipientId': 'string'
    }
}

Response Structure

  • (dict) --

    • Comment (dict) --

      The comment that has been created.

      • CommentId (string) --

        The ID of the comment.

      • ParentId (string) --

        The ID of the parent comment.

      • ThreadId (string) --

        The ID of the root comment in the thread.

      • Text (string) --

        The text of the comment.

      • Contributor (dict) --

        The details of the user who made the comment.

        • Id (string) --

          The ID of the user.

        • Username (string) --

          The login name of the user.

        • EmailAddress (string) --

          The email address of the user.

        • GivenName (string) --

          The given name of the user.

        • Surname (string) --

          The surname of the user.

        • OrganizationId (string) --

          The ID of the organization.

        • RootFolderId (string) --

          The ID of the root folder.

        • RecycleBinFolderId (string) --

          The ID of the recycle bin folder.

        • Status (string) --

          The status of the user.

        • Type (string) --

          The type of user.

        • CreatedTimestamp (datetime) --

          The time when the user was created.

        • ModifiedTimestamp (datetime) --

          The time when the user was modified.

        • TimeZoneId (string) --

          The time zone ID of the user.

        • Locale (string) --

          The locale of the user.

        • Storage (dict) --

          The storage for the user.

          • StorageUtilizedInBytes (integer) --

            The amount of storage utilized, in bytes.

          • StorageRule (dict) --

            The storage for a user.

            • StorageAllocatedInBytes (integer) --

              The amount of storage allocated, in bytes.

            • StorageType (string) --

              The type of storage.

      • CreatedTimestamp (datetime) --

        The time that the comment was created.

      • Status (string) --

        The status of the comment.

      • Visibility (string) --

        The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.

      • RecipientId (string) --

        If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.

DeleteCustomMetadata (new) Link ¶

Deletes custom metadata from the specified resource.

See also: AWS API Documentation

Request Syntax

client.delete_custom_metadata(
    AuthenticationToken='string',
    ResourceId='string',
    VersionId='string',
    Keys=[
        'string',
    ],
    DeleteAll=True|False
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource, either a document or folder.

type VersionId

string

param VersionId

The ID of the version, if the custom metadata is being deleted from a document version.

type Keys

list

param Keys

List of properties to remove.

  • (string) --

type DeleteAll

boolean

param DeleteAll

Flag to indicate removal of all custom metadata properties from the specified resource.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

CreateLabels (new) Link ¶

Adds the specified list of labels to the given resource (a document or folder)

See also: AWS API Documentation

Request Syntax

client.create_labels(
    ResourceId='string',
    Labels=[
        'string',
    ],
    AuthenticationToken='string'
)
type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

type Labels

list

param Labels

[REQUIRED]

List of labels to add to the resource.

  • (string) --

type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

CreateCustomMetadata (new) Link ¶

Adds one or more custom properties to the specified resource (a folder, document, or version).

See also: AWS API Documentation

Request Syntax

client.create_custom_metadata(
    AuthenticationToken='string',
    ResourceId='string',
    VersionId='string',
    CustomMetadata={
        'string': 'string'
    }
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

type VersionId

string

param VersionId

The ID of the version, if the custom metadata is being added to a document version.

type CustomMetadata

dict

param CustomMetadata

[REQUIRED]

Custom metadata in the form of name-value pairs.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DescribeComments (new) Link ¶

List all the comments for the specified document version.

See also: AWS API Documentation

Request Syntax

client.describe_comments(
    AuthenticationToken='string',
    DocumentId='string',
    VersionId='string',
    Limit=123,
    Marker='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type VersionId

string

param VersionId

[REQUIRED]

The ID of the document version.

type Limit

integer

param Limit

The maximum number of items to return.

type Marker

string

param Marker

The marker for the next set of results. This marker was received from a previous call.

rtype

dict

returns

Response Syntax

{
    'Comments': [
        {
            'CommentId': 'string',
            'ParentId': 'string',
            'ThreadId': 'string',
            'Text': 'string',
            'Contributor': {
                'Id': 'string',
                'Username': 'string',
                'EmailAddress': 'string',
                'GivenName': 'string',
                'Surname': 'string',
                'OrganizationId': 'string',
                'RootFolderId': 'string',
                'RecycleBinFolderId': 'string',
                'Status': 'ACTIVE'|'INACTIVE'|'PENDING',
                'Type': 'USER'|'ADMIN',
                'CreatedTimestamp': datetime(2015, 1, 1),
                'ModifiedTimestamp': datetime(2015, 1, 1),
                'TimeZoneId': 'string',
                'Locale': 'en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default',
                'Storage': {
                    'StorageUtilizedInBytes': 123,
                    'StorageRule': {
                        'StorageAllocatedInBytes': 123,
                        'StorageType': 'UNLIMITED'|'QUOTA'
                    }
                }
            },
            'CreatedTimestamp': datetime(2015, 1, 1),
            'Status': 'DRAFT'|'PUBLISHED'|'DELETED',
            'Visibility': 'PUBLIC'|'PRIVATE',
            'RecipientId': 'string'
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • Comments (list) --

      The list of comments for the specified document version.

      • (dict) --

        Describes a comment.

        • CommentId (string) --

          The ID of the comment.

        • ParentId (string) --

          The ID of the parent comment.

        • ThreadId (string) --

          The ID of the root comment in the thread.

        • Text (string) --

          The text of the comment.

        • Contributor (dict) --

          The details of the user who made the comment.

          • Id (string) --

            The ID of the user.

          • Username (string) --

            The login name of the user.

          • EmailAddress (string) --

            The email address of the user.

          • GivenName (string) --

            The given name of the user.

          • Surname (string) --

            The surname of the user.

          • OrganizationId (string) --

            The ID of the organization.

          • RootFolderId (string) --

            The ID of the root folder.

          • RecycleBinFolderId (string) --

            The ID of the recycle bin folder.

          • Status (string) --

            The status of the user.

          • Type (string) --

            The type of user.

          • CreatedTimestamp (datetime) --

            The time when the user was created.

          • ModifiedTimestamp (datetime) --

            The time when the user was modified.

          • TimeZoneId (string) --

            The time zone ID of the user.

          • Locale (string) --

            The locale of the user.

          • Storage (dict) --

            The storage for the user.

            • StorageUtilizedInBytes (integer) --

              The amount of storage utilized, in bytes.

            • StorageRule (dict) --

              The storage for a user.

              • StorageAllocatedInBytes (integer) --

                The amount of storage allocated, in bytes.

              • StorageType (string) --

                The type of storage.

        • CreatedTimestamp (datetime) --

          The time that the comment was created.

        • Status (string) --

          The status of the comment.

        • Visibility (string) --

          The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.

        • RecipientId (string) --

          If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.

    • Marker (string) --

      The marker for the next set of results. This marker was received from a previous call.

AbortDocumentVersionUpload (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.abort_document_version_upload(
    AuthenticationToken='string',
    DocumentId='string',
    VersionId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type VersionId

string

param VersionId

[REQUIRED]

The ID of the version.

returns

None

ActivateUser (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Activates the specified user. Only active users can access Amazon WorkDocs.

See also: AWS API Documentation

Request Syntax

client.activate_user(
    UserId='string',
    AuthenticationToken='string'
)
type UserId

string

param UserId

[REQUIRED]

The ID of the user.

type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

rtype

dict

returns

Response Syntax

{
    'User': {
        'Id': 'string',
        'Username': 'string',
        'EmailAddress': 'string',
        'GivenName': 'string',
        'Surname': 'string',
        'OrganizationId': 'string',
        'RootFolderId': 'string',
        'RecycleBinFolderId': 'string',
        'Status': 'ACTIVE'|'INACTIVE'|'PENDING',
        'Type': 'USER'|'ADMIN',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'TimeZoneId': 'string',
        'Locale': 'en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default',
        'Storage': {
            'StorageUtilizedInBytes': 123,
            'StorageRule': {
                'StorageAllocatedInBytes': 123,
                'StorageType': 'UNLIMITED'|'QUOTA'
            }
        }
    }
}

Response Structure

  • (dict) --

    • User (dict) --

      The user information.

      • Id (string) --

        The ID of the user.

      • Username (string) --

        The login name of the user.

      • EmailAddress (string) --

        The email address of the user.

      • GivenName (string) --

        The given name of the user.

      • Surname (string) --

        The surname of the user.

      • OrganizationId (string) --

        The ID of the organization.

      • RootFolderId (string) --

        The ID of the root folder.

      • RecycleBinFolderId (string) --

        The ID of the recycle bin folder.

      • Status (string) --

        The status of the user.

      • Type (string) --

        The type of user.

      • CreatedTimestamp (datetime) --

        The time when the user was created.

      • ModifiedTimestamp (datetime) --

        The time when the user was modified.

      • TimeZoneId (string) --

        The time zone ID of the user.

      • Locale (string) --

        The locale of the user.

      • Storage (dict) --

        The storage for the user.

        • StorageUtilizedInBytes (integer) --

          The amount of storage utilized, in bytes.

        • StorageRule (dict) --

          The storage for a user.

          • StorageAllocatedInBytes (integer) --

            The amount of storage allocated, in bytes.

          • StorageType (string) --

            The type of storage.

AddResourcePermissions (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Creates a set of permissions for the specified folder or document. The resource permissions are overwritten if the principals already have different permissions.

See also: AWS API Documentation

Request Syntax

client.add_resource_permissions(
    AuthenticationToken='string',
    ResourceId='string',
    Principals=[
        {
            'Id': 'string',
            'Type': 'USER'|'GROUP'|'INVITE'|'ANONYMOUS'|'ORGANIZATION',
            'Role': 'VIEWER'|'CONTRIBUTOR'|'OWNER'|'COOWNER'
        },
    ]
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

type Principals

list

param Principals

[REQUIRED]

The users, groups, or organization being granted permission.

  • (dict) --

    Describes the recipient type and ID, if available.

    • Id (string) -- [REQUIRED]

      The ID of the recipient.

    • Type (string) -- [REQUIRED]

      The type of the recipient.

    • Role (string) -- [REQUIRED]

      The role of the recipient.

rtype

dict

returns

Response Syntax

{
    'ShareResults': [
        {
            'PrincipalId': 'string',
            'Role': 'VIEWER'|'CONTRIBUTOR'|'OWNER'|'COOWNER',
            'Status': 'SUCCESS'|'FAILURE',
            'ShareId': 'string',
            'StatusMessage': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • ShareResults (list) --

      The share results.

      • (dict) --

        Describes the share results of a resource.

        • PrincipalId (string) --

          The ID of the principal.

        • Role (string) --

          The role.

        • Status (string) --

          The status.

        • ShareId (string) --

          The ID of the resource that was shared.

        • StatusMessage (string) --

          The status message.

CreateFolder (updated) Link ¶
Changes (request, response)
Request
{'AuthenticationToken': 'string'}
Response
{'Metadata': {'Labels': ['string'],
              'LatestVersionSize': 'long',
              'Size': 'long'}}

Creates a folder with the specified name and parent folder.

See also: AWS API Documentation

Request Syntax

client.create_folder(
    AuthenticationToken='string',
    Name='string',
    ParentFolderId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type Name

string

param Name

The name of the new folder.

type ParentFolderId

string

param ParentFolderId

[REQUIRED]

The ID of the parent folder.

rtype

dict

returns

Response Syntax

{
    'Metadata': {
        'Id': 'string',
        'Name': 'string',
        'CreatorId': 'string',
        'ParentFolderId': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
        'Signature': 'string',
        'Labels': [
            'string',
        ],
        'Size': 123,
        'LatestVersionSize': 123
    }
}

Response Structure

  • (dict) --

    • Metadata (dict) --

      The metadata of the folder.

      • Id (string) --

        The ID of the folder.

      • Name (string) --

        The name of the folder.

      • CreatorId (string) --

        The ID of the creator.

      • ParentFolderId (string) --

        The ID of the parent folder.

      • CreatedTimestamp (datetime) --

        The time when the folder was created.

      • ModifiedTimestamp (datetime) --

        The time when the folder was updated.

      • ResourceState (string) --

        The resource state of the folder.

      • Signature (string) --

        The unique identifier created from the subfolders and documents of the folder.

      • Labels (list) --

        List of labels on the folder.

        • (string) --

      • Size (integer) --

      • LatestVersionSize (integer) --

CreateUser (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string', 'EmailAddress': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.create_user(
    OrganizationId='string',
    Username='string',
    EmailAddress='string',
    GivenName='string',
    Surname='string',
    Password='string',
    TimeZoneId='string',
    StorageRule={
        'StorageAllocatedInBytes': 123,
        'StorageType': 'UNLIMITED'|'QUOTA'
    },
    AuthenticationToken='string'
)
type OrganizationId

string

param OrganizationId

The ID of the organization.

type Username

string

param Username

[REQUIRED]

The login name of the user.

type EmailAddress

string

param EmailAddress

The email address of the user.

type GivenName

string

param GivenName

[REQUIRED]

The given name of the user.

type Surname

string

param Surname

[REQUIRED]

The surname of the user.

type Password

string

param Password

[REQUIRED]

The password of the user.

type TimeZoneId

string

param TimeZoneId

The time zone ID of the user.

type StorageRule

dict

param StorageRule

The amount of storage for the user.

  • StorageAllocatedInBytes (integer) --

    The amount of storage allocated, in bytes.

  • StorageType (string) --

    The type of storage.

type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

rtype

dict

returns

Response Syntax

{
    'User': {
        'Id': 'string',
        'Username': 'string',
        'EmailAddress': 'string',
        'GivenName': 'string',
        'Surname': 'string',
        'OrganizationId': 'string',
        'RootFolderId': 'string',
        'RecycleBinFolderId': 'string',
        'Status': 'ACTIVE'|'INACTIVE'|'PENDING',
        'Type': 'USER'|'ADMIN',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'TimeZoneId': 'string',
        'Locale': 'en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default',
        'Storage': {
            'StorageUtilizedInBytes': 123,
            'StorageRule': {
                'StorageAllocatedInBytes': 123,
                'StorageType': 'UNLIMITED'|'QUOTA'
            }
        }
    }
}

Response Structure

  • (dict) --

    • User (dict) --

      The user information.

      • Id (string) --

        The ID of the user.

      • Username (string) --

        The login name of the user.

      • EmailAddress (string) --

        The email address of the user.

      • GivenName (string) --

        The given name of the user.

      • Surname (string) --

        The surname of the user.

      • OrganizationId (string) --

        The ID of the organization.

      • RootFolderId (string) --

        The ID of the root folder.

      • RecycleBinFolderId (string) --

        The ID of the recycle bin folder.

      • Status (string) --

        The status of the user.

      • Type (string) --

        The type of user.

      • CreatedTimestamp (datetime) --

        The time when the user was created.

      • ModifiedTimestamp (datetime) --

        The time when the user was modified.

      • TimeZoneId (string) --

        The time zone ID of the user.

      • Locale (string) --

        The locale of the user.

      • Storage (dict) --

        The storage for the user.

        • StorageUtilizedInBytes (integer) --

          The amount of storage utilized, in bytes.

        • StorageRule (dict) --

          The storage for a user.

          • StorageAllocatedInBytes (integer) --

            The amount of storage allocated, in bytes.

          • StorageType (string) --

            The type of storage.

DeactivateUser (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Deactivates the specified user, which revokes the user's access to Amazon WorkDocs.

See also: AWS API Documentation

Request Syntax

client.deactivate_user(
    UserId='string',
    AuthenticationToken='string'
)
type UserId

string

param UserId

[REQUIRED]

The ID of the user.

type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

returns

None

DeleteDocument (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Permanently deletes the specified document and its associated metadata.

See also: AWS API Documentation

Request Syntax

client.delete_document(
    AuthenticationToken='string',
    DocumentId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

returns

None

DeleteFolder (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Permanently deletes the specified folder and its contents.

See also: AWS API Documentation

Request Syntax

client.delete_folder(
    AuthenticationToken='string',
    FolderId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type FolderId

string

param FolderId

[REQUIRED]

The ID of the folder.

returns

None

DeleteFolderContents (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Deletes the contents of the specified folder.

See also: AWS API Documentation

Request Syntax

client.delete_folder_contents(
    AuthenticationToken='string',
    FolderId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type FolderId

string

param FolderId

[REQUIRED]

The ID of the folder.

returns

None

DeleteUser (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Deletes the specified user from a Simple AD or Microsoft AD directory.

See also: AWS API Documentation

Request Syntax

client.delete_user(
    AuthenticationToken='string',
    UserId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type UserId

string

param UserId

[REQUIRED]

The ID of the user.

returns

None

DescribeDocumentVersions (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Retrieves the document versions for the specified document.

By default, only active versions are returned.

See also: AWS API Documentation

Request Syntax

client.describe_document_versions(
    AuthenticationToken='string',
    DocumentId='string',
    Marker='string',
    Limit=123,
    Include='string',
    Fields='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type Marker

string

param Marker

The marker for the next set of results. (You received this marker from a previous call.)

type Limit

integer

param Limit

The maximum number of versions to return with this call.

type Include

string

param Include

A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.

type Fields

string

param Fields

Specify "SOURCE" to include initialized versions and a URL for the source document.

rtype

dict

returns

Response Syntax

{
    'DocumentVersions': [
        {
            'Id': 'string',
            'Name': 'string',
            'ContentType': 'string',
            'Size': 123,
            'Signature': 'string',
            'Status': 'INITIALIZED'|'ACTIVE',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'ContentCreatedTimestamp': datetime(2015, 1, 1),
            'ContentModifiedTimestamp': datetime(2015, 1, 1),
            'CreatorId': 'string',
            'Thumbnail': {
                'string': 'string'
            },
            'Source': {
                'string': 'string'
            }
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • DocumentVersions (list) --

      The document versions.

      • (dict) --

        Describes a version of a document.

        • Id (string) --

          The ID of the version.

        • Name (string) --

          The name of the version.

        • ContentType (string) --

          The content type of the document.

        • Size (integer) --

          The size of the document, in bytes.

        • Signature (string) --

          The signature of the document.

        • Status (string) --

          The status of the document.

        • CreatedTimestamp (datetime) --

          The time stamp when the document was first uploaded.

        • ModifiedTimestamp (datetime) --

          The time stamp when the document was last uploaded.

        • ContentCreatedTimestamp (datetime) --

          The time stamp when the content of the document was originally created.

        • ContentModifiedTimestamp (datetime) --

          The time stamp when the content of the document was modified.

        • CreatorId (string) --

          The ID of the creator.

        • Thumbnail (dict) --

          The thumbnail of the document.

          • (string) --

            • (string) --

        • Source (dict) --

          The source of the document.

          • (string) --

            • (string) --

    • Marker (string) --

      The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

DescribeFolderContents (updated) Link ¶
Changes (request, response)
Request
{'AuthenticationToken': 'string'}
Response
{'Documents': {'Labels': ['string']},
 'Folders': {'Labels': ['string'], 'LatestVersionSize': 'long', 'Size': 'long'}}

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.

See also: AWS API Documentation

Request Syntax

client.describe_folder_contents(
    AuthenticationToken='string',
    FolderId='string',
    Sort='DATE'|'NAME',
    Order='ASCENDING'|'DESCENDING',
    Limit=123,
    Marker='string',
    Type='ALL'|'DOCUMENT'|'FOLDER',
    Include='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type FolderId

string

param FolderId

[REQUIRED]

The ID of the folder.

type Sort

string

param Sort

The sorting criteria.

type Order

string

param Order

The order for the contents of the folder.

type Limit

integer

param Limit

The maximum number of items to return with this call.

type Marker

string

param Marker

The marker for the next set of results. This marker was received from a previous call.

type Type

string

param Type

The type of items.

type Include

string

param Include

The contents to include. Specify "INITIALIZED" to include initialized documents.

rtype

dict

returns

Response Syntax

{
    'Folders': [
        {
            'Id': 'string',
            'Name': 'string',
            'CreatorId': 'string',
            'ParentFolderId': 'string',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
            'Signature': 'string',
            'Labels': [
                'string',
            ],
            'Size': 123,
            'LatestVersionSize': 123
        },
    ],
    'Documents': [
        {
            'Id': 'string',
            'CreatorId': 'string',
            'ParentFolderId': 'string',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'LatestVersionMetadata': {
                'Id': 'string',
                'Name': 'string',
                'ContentType': 'string',
                'Size': 123,
                'Signature': 'string',
                'Status': 'INITIALIZED'|'ACTIVE',
                'CreatedTimestamp': datetime(2015, 1, 1),
                'ModifiedTimestamp': datetime(2015, 1, 1),
                'ContentCreatedTimestamp': datetime(2015, 1, 1),
                'ContentModifiedTimestamp': datetime(2015, 1, 1),
                'CreatorId': 'string',
                'Thumbnail': {
                    'string': 'string'
                },
                'Source': {
                    'string': 'string'
                }
            },
            'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
            'Labels': [
                'string',
            ]
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • Folders (list) --

      The subfolders in the specified folder.

      • (dict) --

        Describes a folder.

        • Id (string) --

          The ID of the folder.

        • Name (string) --

          The name of the folder.

        • CreatorId (string) --

          The ID of the creator.

        • ParentFolderId (string) --

          The ID of the parent folder.

        • CreatedTimestamp (datetime) --

          The time when the folder was created.

        • ModifiedTimestamp (datetime) --

          The time when the folder was updated.

        • ResourceState (string) --

          The resource state of the folder.

        • Signature (string) --

          The unique identifier created from the subfolders and documents of the folder.

        • Labels (list) --

          List of labels on the folder.

          • (string) --

        • Size (integer) --

        • LatestVersionSize (integer) --

    • Documents (list) --

      The documents in the specified folder.

      • (dict) --

        Describes the document.

        • Id (string) --

          The ID of the document.

        • CreatorId (string) --

          The ID of the creator.

        • ParentFolderId (string) --

          The ID of the parent folder.

        • CreatedTimestamp (datetime) --

          The time when the document was created.

        • ModifiedTimestamp (datetime) --

          The time when the document was updated.

        • LatestVersionMetadata (dict) --

          The latest version of the document.

          • Id (string) --

            The ID of the version.

          • Name (string) --

            The name of the version.

          • ContentType (string) --

            The content type of the document.

          • Size (integer) --

            The size of the document, in bytes.

          • Signature (string) --

            The signature of the document.

          • Status (string) --

            The status of the document.

          • CreatedTimestamp (datetime) --

            The time stamp when the document was first uploaded.

          • ModifiedTimestamp (datetime) --

            The time stamp when the document was last uploaded.

          • ContentCreatedTimestamp (datetime) --

            The time stamp when the content of the document was originally created.

          • ContentModifiedTimestamp (datetime) --

            The time stamp when the content of the document was modified.

          • CreatorId (string) --

            The ID of the creator.

          • Thumbnail (dict) --

            The thumbnail of the document.

            • (string) --

              • (string) --

          • Source (dict) --

            The source of the document.

            • (string) --

              • (string) --

        • ResourceState (string) --

          The resource state.

        • Labels (list) --

          List of labels on the document.

          • (string) --

    • Marker (string) --

      The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

DescribeResourcePermissions (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Describes the permissions of a specified resource.

See also: AWS API Documentation

Request Syntax

client.describe_resource_permissions(
    AuthenticationToken='string',
    ResourceId='string',
    Limit=123,
    Marker='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

type Limit

integer

param Limit

The maximum number of items to return with this call.

type Marker

string

param Marker

The marker for the next set of results. (You received this marker from a previous call)

rtype

dict

returns

Response Syntax

{
    'Principals': [
        {
            'Id': 'string',
            'Type': 'USER'|'GROUP'|'INVITE'|'ANONYMOUS'|'ORGANIZATION',
            'Roles': [
                {
                    'Role': 'VIEWER'|'CONTRIBUTOR'|'OWNER'|'COOWNER',
                    'Type': 'DIRECT'|'INHERITED'
                },
            ]
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • Principals (list) --

      The principals.

      • (dict) --

        Describes a resource.

        • Id (string) --

          The ID of the resource.

        • Type (string) --

          The type of resource.

        • Roles (list) --

          The permission information for the resource.

          • (dict) --

            Describes the permissions.

            • Role (string) --

              The role of the user.

            • Type (string) --

              The type of permissions.

    • Marker (string) --

      The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

DescribeUsers (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.describe_users(
    AuthenticationToken='string',
    OrganizationId='string',
    UserIds='string',
    Query='string',
    Include='ALL'|'ACTIVE_PENDING',
    Order='ASCENDING'|'DESCENDING',
    Sort='USER_NAME'|'FULL_NAME'|'STORAGE_LIMIT'|'USER_STATUS'|'STORAGE_USED',
    Marker='string',
    Limit=123,
    Fields='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type OrganizationId

string

param OrganizationId

The ID of the organization.

type UserIds

string

param UserIds

The IDs of the users.

type Query

string

param Query

A query to filter users by user name.

type Include

string

param Include

The state of the users. Specify "ALL" to include inactive users.

type Order

string

param Order

The order for the results.

type Sort

string

param Sort

The sorting criteria.

type Marker

string

param Marker

The marker for the next set of results. (You received this marker from a previous call.)

type Limit

integer

param Limit

The maximum number of items to return.

type Fields

string

param Fields

A comma-separated list of values. Specify "STORAGE_METADATA" to include the user storage quota and utilization information.

rtype

dict

returns

Response Syntax

{
    'Users': [
        {
            'Id': 'string',
            'Username': 'string',
            'EmailAddress': 'string',
            'GivenName': 'string',
            'Surname': 'string',
            'OrganizationId': 'string',
            'RootFolderId': 'string',
            'RecycleBinFolderId': 'string',
            'Status': 'ACTIVE'|'INACTIVE'|'PENDING',
            'Type': 'USER'|'ADMIN',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'TimeZoneId': 'string',
            'Locale': 'en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default',
            'Storage': {
                'StorageUtilizedInBytes': 123,
                'StorageRule': {
                    'StorageAllocatedInBytes': 123,
                    'StorageType': 'UNLIMITED'|'QUOTA'
                }
            }
        },
    ],
    'TotalNumberOfUsers': 123,
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • Users (list) --

      The users.

      • (dict) --

        Describes a user.

        • Id (string) --

          The ID of the user.

        • Username (string) --

          The login name of the user.

        • EmailAddress (string) --

          The email address of the user.

        • GivenName (string) --

          The given name of the user.

        • Surname (string) --

          The surname of the user.

        • OrganizationId (string) --

          The ID of the organization.

        • RootFolderId (string) --

          The ID of the root folder.

        • RecycleBinFolderId (string) --

          The ID of the recycle bin folder.

        • Status (string) --

          The status of the user.

        • Type (string) --

          The type of user.

        • CreatedTimestamp (datetime) --

          The time when the user was created.

        • ModifiedTimestamp (datetime) --

          The time when the user was modified.

        • TimeZoneId (string) --

          The time zone ID of the user.

        • Locale (string) --

          The locale of the user.

        • Storage (dict) --

          The storage for the user.

          • StorageUtilizedInBytes (integer) --

            The amount of storage utilized, in bytes.

          • StorageRule (dict) --

            The storage for a user.

            • StorageAllocatedInBytes (integer) --

              The amount of storage allocated, in bytes.

            • StorageType (string) --

              The type of storage.

    • TotalNumberOfUsers (integer) --

      The total number of users included in the results.

    • Marker (string) --

      The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

GetDocument (updated) Link ¶
Changes (request, response)
Request
{'AuthenticationToken': 'string', 'IncludeCustomMetadata': 'boolean'}
Response
{'CustomMetadata': {'string': 'string'}, 'Metadata': {'Labels': ['string']}}

Retrieves details of a document.

See also: AWS API Documentation

Request Syntax

client.get_document(
    AuthenticationToken='string',
    DocumentId='string',
    IncludeCustomMetadata=True|False
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type IncludeCustomMetadata

boolean

param IncludeCustomMetadata

Set this to TRUE to include custom metadata in the response.

rtype

dict

returns

Response Syntax

{
    'Metadata': {
        'Id': 'string',
        'CreatorId': 'string',
        'ParentFolderId': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'LatestVersionMetadata': {
            'Id': 'string',
            'Name': 'string',
            'ContentType': 'string',
            'Size': 123,
            'Signature': 'string',
            'Status': 'INITIALIZED'|'ACTIVE',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'ContentCreatedTimestamp': datetime(2015, 1, 1),
            'ContentModifiedTimestamp': datetime(2015, 1, 1),
            'CreatorId': 'string',
            'Thumbnail': {
                'string': 'string'
            },
            'Source': {
                'string': 'string'
            }
        },
        'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
        'Labels': [
            'string',
        ]
    },
    'CustomMetadata': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Metadata (dict) --

      The metadata details of the document.

      • Id (string) --

        The ID of the document.

      • CreatorId (string) --

        The ID of the creator.

      • ParentFolderId (string) --

        The ID of the parent folder.

      • CreatedTimestamp (datetime) --

        The time when the document was created.

      • ModifiedTimestamp (datetime) --

        The time when the document was updated.

      • LatestVersionMetadata (dict) --

        The latest version of the document.

        • Id (string) --

          The ID of the version.

        • Name (string) --

          The name of the version.

        • ContentType (string) --

          The content type of the document.

        • Size (integer) --

          The size of the document, in bytes.

        • Signature (string) --

          The signature of the document.

        • Status (string) --

          The status of the document.

        • CreatedTimestamp (datetime) --

          The time stamp when the document was first uploaded.

        • ModifiedTimestamp (datetime) --

          The time stamp when the document was last uploaded.

        • ContentCreatedTimestamp (datetime) --

          The time stamp when the content of the document was originally created.

        • ContentModifiedTimestamp (datetime) --

          The time stamp when the content of the document was modified.

        • CreatorId (string) --

          The ID of the creator.

        • Thumbnail (dict) --

          The thumbnail of the document.

          • (string) --

            • (string) --

        • Source (dict) --

          The source of the document.

          • (string) --

            • (string) --

      • ResourceState (string) --

        The resource state.

      • Labels (list) --

        List of labels on the document.

        • (string) --

    • CustomMetadata (dict) --

      The custom metadata on the document.

      • (string) --

        • (string) --

GetDocumentPath (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.get_document_path(
    AuthenticationToken='string',
    DocumentId='string',
    Limit=123,
    Fields='string',
    Marker='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type Limit

integer

param Limit

The maximum number of levels in the hierarchy to return.

type Fields

string

param Fields

A comma-separated list of values. Specify NAME to include the names of the parent folders.

type Marker

string

param Marker

This value is not supported.

rtype

dict

returns

Response Syntax

{
    'Path': {
        'Components': [
            {
                'Id': 'string',
                'Name': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • Path (dict) --

      The path information.

      • Components (list) --

        The components of the resource path.

        • (dict) --

          Describes the resource path.

          • Id (string) --

            The ID of the resource path.

          • Name (string) --

            The name of the resource path.

GetDocumentVersion (updated) Link ¶
Changes (request, response)
Request
{'AuthenticationToken': 'string', 'IncludeCustomMetadata': 'boolean'}
Response
{'CustomMetadata': {'string': 'string'}}

Retrieves version metadata for the specified document.

See also: AWS API Documentation

Request Syntax

client.get_document_version(
    AuthenticationToken='string',
    DocumentId='string',
    VersionId='string',
    Fields='string',
    IncludeCustomMetadata=True|False
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type VersionId

string

param VersionId

[REQUIRED]

The version ID of the document.

type Fields

string

param Fields

A comma-separated list of values. Specify "SOURCE" to include a URL for the source document.

type IncludeCustomMetadata

boolean

param IncludeCustomMetadata

Set this to TRUE to include custom metadata in the response.

rtype

dict

returns

Response Syntax

{
    'Metadata': {
        'Id': 'string',
        'Name': 'string',
        'ContentType': 'string',
        'Size': 123,
        'Signature': 'string',
        'Status': 'INITIALIZED'|'ACTIVE',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'ContentCreatedTimestamp': datetime(2015, 1, 1),
        'ContentModifiedTimestamp': datetime(2015, 1, 1),
        'CreatorId': 'string',
        'Thumbnail': {
            'string': 'string'
        },
        'Source': {
            'string': 'string'
        }
    },
    'CustomMetadata': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Metadata (dict) --

      The version metadata.

      • Id (string) --

        The ID of the version.

      • Name (string) --

        The name of the version.

      • ContentType (string) --

        The content type of the document.

      • Size (integer) --

        The size of the document, in bytes.

      • Signature (string) --

        The signature of the document.

      • Status (string) --

        The status of the document.

      • CreatedTimestamp (datetime) --

        The time stamp when the document was first uploaded.

      • ModifiedTimestamp (datetime) --

        The time stamp when the document was last uploaded.

      • ContentCreatedTimestamp (datetime) --

        The time stamp when the content of the document was originally created.

      • ContentModifiedTimestamp (datetime) --

        The time stamp when the content of the document was modified.

      • CreatorId (string) --

        The ID of the creator.

      • Thumbnail (dict) --

        The thumbnail of the document.

        • (string) --

          • (string) --

      • Source (dict) --

        The source of the document.

        • (string) --

          • (string) --

    • CustomMetadata (dict) --

      The custom metadata on the document version.

      • (string) --

        • (string) --

GetFolder (updated) Link ¶
Changes (request, response)
Request
{'AuthenticationToken': 'string', 'IncludeCustomMetadata': 'boolean'}
Response
{'CustomMetadata': {'string': 'string'},
 'Metadata': {'Labels': ['string'],
              'LatestVersionSize': 'long',
              'Size': 'long'}}

Retrieves the metadata of the specified folder.

See also: AWS API Documentation

Request Syntax

client.get_folder(
    AuthenticationToken='string',
    FolderId='string',
    IncludeCustomMetadata=True|False
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type FolderId

string

param FolderId

[REQUIRED]

The ID of the folder.

type IncludeCustomMetadata

boolean

param IncludeCustomMetadata

Set to TRUE to include custom metadata in the response.

rtype

dict

returns

Response Syntax

{
    'Metadata': {
        'Id': 'string',
        'Name': 'string',
        'CreatorId': 'string',
        'ParentFolderId': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
        'Signature': 'string',
        'Labels': [
            'string',
        ],
        'Size': 123,
        'LatestVersionSize': 123
    },
    'CustomMetadata': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Metadata (dict) --

      The metadata of the folder.

      • Id (string) --

        The ID of the folder.

      • Name (string) --

        The name of the folder.

      • CreatorId (string) --

        The ID of the creator.

      • ParentFolderId (string) --

        The ID of the parent folder.

      • CreatedTimestamp (datetime) --

        The time when the folder was created.

      • ModifiedTimestamp (datetime) --

        The time when the folder was updated.

      • ResourceState (string) --

        The resource state of the folder.

      • Signature (string) --

        The unique identifier created from the subfolders and documents of the folder.

      • Labels (list) --

        List of labels on the folder.

        • (string) --

      • Size (integer) --

      • LatestVersionSize (integer) --

    • CustomMetadata (dict) --

      The custom metadata on the folder.

      • (string) --

        • (string) --

GetFolderPath (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.get_folder_path(
    AuthenticationToken='string',
    FolderId='string',
    Limit=123,
    Fields='string',
    Marker='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type FolderId

string

param FolderId

[REQUIRED]

The ID of the folder.

type Limit

integer

param Limit

The maximum number of levels in the hierarchy to return.

type Fields

string

param Fields

A comma-separated list of values. Specify "NAME" to include the names of the parent folders.

type Marker

string

param Marker

This value is not supported.

rtype

dict

returns

Response Syntax

{
    'Path': {
        'Components': [
            {
                'Id': 'string',
                'Name': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • Path (dict) --

      The path information.

      • Components (list) --

        The components of the resource path.

        • (dict) --

          Describes the resource path.

          • Id (string) --

            The ID of the resource path.

          • Name (string) --

            The name of the resource path.

InitiateDocumentVersionUpload (updated) Link ¶
Changes (request, response)
Request
{'AuthenticationToken': 'string'}
Response
{'Metadata': {'Labels': ['string']}}

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 .

See also: AWS API Documentation

Request Syntax

client.initiate_document_version_upload(
    AuthenticationToken='string',
    Id='string',
    Name='string',
    ContentCreatedTimestamp=datetime(2015, 1, 1),
    ContentModifiedTimestamp=datetime(2015, 1, 1),
    ContentType='string',
    DocumentSizeInBytes=123,
    ParentFolderId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type Id

string

param Id

The ID of the document.

type Name

string

param Name

The name of the document.

type ContentCreatedTimestamp

datetime

param ContentCreatedTimestamp

The time stamp when the content of the document was originally created.

type ContentModifiedTimestamp

datetime

param ContentModifiedTimestamp

The time stamp when the content of the document was modified.

type ContentType

string

param ContentType

The content type of the document.

type DocumentSizeInBytes

integer

param DocumentSizeInBytes

The size of the document, in bytes.

type ParentFolderId

string

param ParentFolderId

[REQUIRED]

The ID of the parent folder.

rtype

dict

returns

Response Syntax

{
    'Metadata': {
        'Id': 'string',
        'CreatorId': 'string',
        'ParentFolderId': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'LatestVersionMetadata': {
            'Id': 'string',
            'Name': 'string',
            'ContentType': 'string',
            'Size': 123,
            'Signature': 'string',
            'Status': 'INITIALIZED'|'ACTIVE',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'ModifiedTimestamp': datetime(2015, 1, 1),
            'ContentCreatedTimestamp': datetime(2015, 1, 1),
            'ContentModifiedTimestamp': datetime(2015, 1, 1),
            'CreatorId': 'string',
            'Thumbnail': {
                'string': 'string'
            },
            'Source': {
                'string': 'string'
            }
        },
        'ResourceState': 'ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED',
        'Labels': [
            'string',
        ]
    },
    'UploadMetadata': {
        'UploadUrl': 'string',
        'SignedHeaders': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Metadata (dict) --

      The document metadata.

      • Id (string) --

        The ID of the document.

      • CreatorId (string) --

        The ID of the creator.

      • ParentFolderId (string) --

        The ID of the parent folder.

      • CreatedTimestamp (datetime) --

        The time when the document was created.

      • ModifiedTimestamp (datetime) --

        The time when the document was updated.

      • LatestVersionMetadata (dict) --

        The latest version of the document.

        • Id (string) --

          The ID of the version.

        • Name (string) --

          The name of the version.

        • ContentType (string) --

          The content type of the document.

        • Size (integer) --

          The size of the document, in bytes.

        • Signature (string) --

          The signature of the document.

        • Status (string) --

          The status of the document.

        • CreatedTimestamp (datetime) --

          The time stamp when the document was first uploaded.

        • ModifiedTimestamp (datetime) --

          The time stamp when the document was last uploaded.

        • ContentCreatedTimestamp (datetime) --

          The time stamp when the content of the document was originally created.

        • ContentModifiedTimestamp (datetime) --

          The time stamp when the content of the document was modified.

        • CreatorId (string) --

          The ID of the creator.

        • Thumbnail (dict) --

          The thumbnail of the document.

          • (string) --

            • (string) --

        • Source (dict) --

          The source of the document.

          • (string) --

            • (string) --

      • ResourceState (string) --

        The resource state.

      • Labels (list) --

        List of labels on the document.

        • (string) --

    • UploadMetadata (dict) --

      The upload metadata.

      • UploadUrl (string) --

        The URL of the upload.

      • SignedHeaders (dict) --

        The signed headers.

        • (string) --

          • (string) --

RemoveAllResourcePermissions (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Removes all the permissions from the specified resource.

See also: AWS API Documentation

Request Syntax

client.remove_all_resource_permissions(
    AuthenticationToken='string',
    ResourceId='string'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

returns

None

RemoveResourcePermission (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Removes the permission for the specified principal from the specified resource.

See also: AWS API Documentation

Request Syntax

client.remove_resource_permission(
    AuthenticationToken='string',
    ResourceId='string',
    PrincipalId='string',
    PrincipalType='USER'|'GROUP'|'INVITE'|'ANONYMOUS'|'ORGANIZATION'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type ResourceId

string

param ResourceId

[REQUIRED]

The ID of the resource.

type PrincipalId

string

param PrincipalId

[REQUIRED]

The principal ID of the resource.

type PrincipalType

string

param PrincipalType

The principal type of the resource.

returns

None

UpdateDocument (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.

See also: AWS API Documentation

Request Syntax

client.update_document(
    AuthenticationToken='string',
    DocumentId='string',
    Name='string',
    ParentFolderId='string',
    ResourceState='ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type Name

string

param Name

The name of the document.

type ParentFolderId

string

param ParentFolderId

The ID of the parent folder.

type ResourceState

string

param ResourceState

The resource state of the document. Note that only ACTIVE and RECYCLED are supported.

returns

None

UpdateDocumentVersion (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

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 .

See also: AWS API Documentation

Request Syntax

client.update_document_version(
    AuthenticationToken='string',
    DocumentId='string',
    VersionId='string',
    VersionStatus='ACTIVE'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type DocumentId

string

param DocumentId

[REQUIRED]

The ID of the document.

type VersionId

string

param VersionId

[REQUIRED]

The version ID of the document.

type VersionStatus

string

param VersionStatus

The status of the version.

returns

None

UpdateFolder (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.

See also: AWS API Documentation

Request Syntax

client.update_folder(
    AuthenticationToken='string',
    FolderId='string',
    Name='string',
    ParentFolderId='string',
    ResourceState='ACTIVE'|'RESTORING'|'RECYCLING'|'RECYCLED'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type FolderId

string

param FolderId

[REQUIRED]

The ID of the folder.

type Name

string

param Name

The name of the folder.

type ParentFolderId

string

param ParentFolderId

The ID of the parent folder.

type ResourceState

string

param ResourceState

The resource state of the folder. Note that only ACTIVE and RECYCLED are accepted values from the API.

returns

None

UpdateUser (updated) Link ¶
Changes (request)
{'AuthenticationToken': 'string'}

Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.

See also: AWS API Documentation

Request Syntax

client.update_user(
    AuthenticationToken='string',
    UserId='string',
    GivenName='string',
    Surname='string',
    Type='USER'|'ADMIN',
    StorageRule={
        'StorageAllocatedInBytes': 123,
        'StorageType': 'UNLIMITED'|'QUOTA'
    },
    TimeZoneId='string',
    Locale='en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default'
)
type AuthenticationToken

string

param AuthenticationToken

Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.

type UserId

string

param UserId

[REQUIRED]

The ID of the user.

type GivenName

string

param GivenName

The given name of the user.

type Surname

string

param Surname

The surname of the user.

type Type

string

param Type

The type of the user.

type StorageRule

dict

param StorageRule

The amount of storage for the user.

  • StorageAllocatedInBytes (integer) --

    The amount of storage allocated, in bytes.

  • StorageType (string) --

    The type of storage.

type TimeZoneId

string

param TimeZoneId

The time zone ID of the user.

type Locale

string

param Locale

The locale of the user.

rtype

dict

returns

Response Syntax

{
    'User': {
        'Id': 'string',
        'Username': 'string',
        'EmailAddress': 'string',
        'GivenName': 'string',
        'Surname': 'string',
        'OrganizationId': 'string',
        'RootFolderId': 'string',
        'RecycleBinFolderId': 'string',
        'Status': 'ACTIVE'|'INACTIVE'|'PENDING',
        'Type': 'USER'|'ADMIN',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'ModifiedTimestamp': datetime(2015, 1, 1),
        'TimeZoneId': 'string',
        'Locale': 'en'|'fr'|'ko'|'de'|'es'|'ja'|'ru'|'zh_CN'|'zh_TW'|'pt_BR'|'default',
        'Storage': {
            'StorageUtilizedInBytes': 123,
            'StorageRule': {
                'StorageAllocatedInBytes': 123,
                'StorageType': 'UNLIMITED'|'QUOTA'
            }
        }
    }
}

Response Structure

  • (dict) --

    • User (dict) --

      The user information.

      • Id (string) --

        The ID of the user.

      • Username (string) --

        The login name of the user.

      • EmailAddress (string) --

        The email address of the user.

      • GivenName (string) --

        The given name of the user.

      • Surname (string) --

        The surname of the user.

      • OrganizationId (string) --

        The ID of the organization.

      • RootFolderId (string) --

        The ID of the root folder.

      • RecycleBinFolderId (string) --

        The ID of the recycle bin folder.

      • Status (string) --

        The status of the user.

      • Type (string) --

        The type of user.

      • CreatedTimestamp (datetime) --

        The time when the user was created.

      • ModifiedTimestamp (datetime) --

        The time when the user was modified.

      • TimeZoneId (string) --

        The time zone ID of the user.

      • Locale (string) --

        The locale of the user.

      • Storage (dict) --

        The storage for the user.

        • StorageUtilizedInBytes (integer) --

          The amount of storage utilized, in bytes.

        • StorageRule (dict) --

          The storage for a user.

          • StorageAllocatedInBytes (integer) --

            The amount of storage allocated, in bytes.

          • StorageType (string) --

            The type of storage.