WorkDocs / Paginator / DescribeActivities

DescribeActivities#

class WorkDocs.Paginator.DescribeActivities#
paginator = client.get_paginator('describe_activities')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from WorkDocs.Client.describe_activities().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    AuthenticationToken='string',
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    OrganizationId='string',
    ActivityTypes='string',
    ResourceId='string',
    UserId='string',
    IncludeIndirectActivities=True|False,
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • AuthenticationToken (string) – Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

  • StartTime (datetime) – The timestamp that determines the starting time of the activities. The response includes the activities performed after the specified timestamp.

  • EndTime (datetime) – The timestamp that determines the end time of the activities. The response includes the activities performed before the specified timestamp.

  • OrganizationId (string) – The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.

  • ActivityTypes (string) – Specifies which activity types to include in the response. If this field is left empty, all activity types are returned.

  • ResourceId (string) – The document or folder ID for which to describe activity types.

  • UserId (string) – The ID of the user who performed the action. The response includes activities pertaining to this user. This is an optional parameter and is only applicable for administrative API (SigV4) requests.

  • IncludeIndirectActivities (boolean) – Includes indirect activities. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'UserActivities': [
        {
            'Type': 'DOCUMENT_CHECKED_IN'|'DOCUMENT_CHECKED_OUT'|'DOCUMENT_RENAMED'|'DOCUMENT_VERSION_UPLOADED'|'DOCUMENT_VERSION_DELETED'|'DOCUMENT_VERSION_VIEWED'|'DOCUMENT_VERSION_DOWNLOADED'|'DOCUMENT_RECYCLED'|'DOCUMENT_RESTORED'|'DOCUMENT_REVERTED'|'DOCUMENT_SHARED'|'DOCUMENT_UNSHARED'|'DOCUMENT_SHARE_PERMISSION_CHANGED'|'DOCUMENT_SHAREABLE_LINK_CREATED'|'DOCUMENT_SHAREABLE_LINK_REMOVED'|'DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED'|'DOCUMENT_MOVED'|'DOCUMENT_COMMENT_ADDED'|'DOCUMENT_COMMENT_DELETED'|'DOCUMENT_ANNOTATION_ADDED'|'DOCUMENT_ANNOTATION_DELETED'|'FOLDER_CREATED'|'FOLDER_DELETED'|'FOLDER_RENAMED'|'FOLDER_RECYCLED'|'FOLDER_RESTORED'|'FOLDER_SHARED'|'FOLDER_UNSHARED'|'FOLDER_SHARE_PERMISSION_CHANGED'|'FOLDER_SHAREABLE_LINK_CREATED'|'FOLDER_SHAREABLE_LINK_REMOVED'|'FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED'|'FOLDER_MOVED',
            'TimeStamp': datetime(2015, 1, 1),
            'IsIndirectActivity': True|False,
            'OrganizationId': 'string',
            'Initiator': {
                'Id': 'string',
                'Username': 'string',
                'GivenName': 'string',
                'Surname': 'string',
                'EmailAddress': 'string'
            },
            'Participants': {
                'Users': [
                    {
                        'Id': 'string',
                        'Username': 'string',
                        'GivenName': 'string',
                        'Surname': 'string',
                        'EmailAddress': 'string'
                    },
                ],
                'Groups': [
                    {
                        'Id': 'string',
                        'Name': 'string'
                    },
                ]
            },
            'ResourceMetadata': {
                'Type': 'FOLDER'|'DOCUMENT',
                'Name': 'string',
                'OriginalName': 'string',
                'Id': 'string',
                'VersionId': 'string',
                'Owner': {
                    'Id': 'string',
                    'Username': 'string',
                    'GivenName': 'string',
                    'Surname': 'string',
                    'EmailAddress': 'string'
                },
                'ParentId': 'string'
            },
            'OriginalParent': {
                'Type': 'FOLDER'|'DOCUMENT',
                'Name': 'string',
                'OriginalName': 'string',
                'Id': 'string',
                'VersionId': 'string',
                'Owner': {
                    'Id': 'string',
                    'Username': 'string',
                    'GivenName': 'string',
                    'Surname': 'string',
                    'EmailAddress': 'string'
                },
                'ParentId': 'string'
            },
            'CommentMetadata': {
                'CommentId': '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'|'POWERUSER'|'MINIMALUSER'|'WORKSPACESUSER',
                    '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),
                'CommentStatus': 'DRAFT'|'PUBLISHED'|'DELETED',
                'RecipientId': 'string',
                'ContributorId': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • UserActivities (list) –

      The list of activities for the specified user and time period.

      • (dict) –

        Describes the activity information.

        • Type (string) –

          The activity type.

        • TimeStamp (datetime) –

          The timestamp when the action was performed.

        • IsIndirectActivity (boolean) –

          Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).

        • OrganizationId (string) –

          The ID of the organization.

        • Initiator (dict) –

          The user who performed the action.

          • Id (string) –

            The ID of the user.

          • Username (string) –

            The name of the user.

          • GivenName (string) –

            The given name of the user before a rename operation.

          • Surname (string) –

            The surname of the user.

          • EmailAddress (string) –

            The email address of the user.

        • Participants (dict) –

          The list of users or groups impacted by this action. This is an optional field and is filled for the following sharing activities: DOCUMENT_SHARED, DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.

          • Users (list) –

            The list of users.

            • (dict) –

              Describes the metadata of the user.

              • Id (string) –

                The ID of the user.

              • Username (string) –

                The name of the user.

              • GivenName (string) –

                The given name of the user before a rename operation.

              • Surname (string) –

                The surname of the user.

              • EmailAddress (string) –

                The email address of the user.

          • Groups (list) –

            The list of user groups.

            • (dict) –

              Describes the metadata of a user group.

              • Id (string) –

                The ID of the user group.

              • Name (string) –

                The name of the group.

        • ResourceMetadata (dict) –

          The metadata of the resource involved in the user action.

          • Type (string) –

            The type of resource.

          • Name (string) –

            The name of the resource.

          • OriginalName (string) –

            The original name of the resource before a rename operation.

          • Id (string) –

            The ID of the resource.

          • VersionId (string) –

            The version ID of the resource. This is an optional field and is filled for action on document version.

          • Owner (dict) –

            The owner of the resource.

            • Id (string) –

              The ID of the user.

            • Username (string) –

              The name of the user.

            • GivenName (string) –

              The given name of the user before a rename operation.

            • Surname (string) –

              The surname of the user.

            • EmailAddress (string) –

              The email address of the user.

          • ParentId (string) –

            The parent ID of the resource before a rename operation.

        • OriginalParent (dict) –

          The original parent of the resource. This is an optional field and is filled for move activities.

          • Type (string) –

            The type of resource.

          • Name (string) –

            The name of the resource.

          • OriginalName (string) –

            The original name of the resource before a rename operation.

          • Id (string) –

            The ID of the resource.

          • VersionId (string) –

            The version ID of the resource. This is an optional field and is filled for action on document version.

          • Owner (dict) –

            The owner of the resource.

            • Id (string) –

              The ID of the user.

            • Username (string) –

              The name of the user.

            • GivenName (string) –

              The given name of the user before a rename operation.

            • Surname (string) –

              The surname of the user.

            • EmailAddress (string) –

              The email address of the user.

          • ParentId (string) –

            The parent ID of the resource before a rename operation.

        • CommentMetadata (dict) –

          Metadata of the commenting activity. This is an optional field and is filled for commenting activities.

          • CommentId (string) –

            The ID of the comment.

          • Contributor (dict) –

            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 used, 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 timestamp that the comment was created.

          • CommentStatus (string) –

            The status of the comment.

          • RecipientId (string) –

            The ID of the user being replied to.

          • ContributorId (string) –

            The ID of the user who made the comment.

    • NextToken (string) –

      A token to resume pagination.