Skip to main content

activities

Creates, updates, deletes, gets or lists an activities resource.

Overview

Nameactivities
TypeResource
Idaws.workdocs.activities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
comment_metadataobjectMetadata of the commenting activity. This is an optional field and is filled for commenting activities.
initiatorobjectThe user who performed the action.
is_indirect_activitybooleanIndicates 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).
organization_idstringThe ID of the organization. (pattern: <code>[&\w+-.@]+</code>)
original_parentobjectThe original parent of the resource. This is an optional field and is filled for move activities.
participantsobjectThe 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.
resource_metadataobjectThe metadata of the resource involved in the user action.
time_stampstring (date-time)The timestamp when the action was performed.
typestringThe activity 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)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_activitiesselectregionAuthentication, startTime, endTime, organizationId, activityTypes, resourceId, userId, includeIndirectActivities, limit, markerDescribes the user activities in a specified time period.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
AuthenticationstringAmazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
activityTypesstringSpecifies which activity types to include in the response. If this field is left empty, all activity types are returned.
endTimestring (date-time)The timestamp that determines the end time of the activities. The response includes the activities performed before the specified timestamp.
includeIndirectActivitiesbooleanIncludes 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).
limitintegerThe maximum number of items to return.
markerstringThe marker for the next set of results.
organizationIdstringThe ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.
resourceIdstringThe document or folder ID for which to describe activity types.
startTimestring (date-time)The timestamp that determines the starting time of the activities. The response includes the activities performed after the specified timestamp.
userIdstringThe 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.

SELECT examples

Describes the user activities in a specified time period.

SELECT
comment_metadata,
initiator,
is_indirect_activity,
organization_id,
original_parent,
participants,
resource_metadata,
time_stamp,
type
FROM aws.workdocs.activities
WHERE region = '{{ region }}' -- required
AND Authentication = '{{ Authentication }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
AND organizationId = '{{ organizationId }}'
AND activityTypes = '{{ activityTypes }}'
AND resourceId = '{{ resourceId }}'
AND userId = '{{ userId }}'
AND includeIndirectActivities = '{{ includeIndirectActivities }}'
AND limit = '{{ limit }}'
AND marker = '{{ marker }}'
;