2022/11/14 - Amazon WorkDocs - 2 new 2 updated api methods
Changes Added 2 new document related operations, DeleteDocumentVersion and RestoreDocumentVersions.
Deletes a version of an Amazon WorkDocs document. Use the DeletePriorVersions parameter to delete prior versions.
See also: AWS API Documentation
Request Syntax
client.delete_document_version(
AuthenticationToken='string',
DocumentId='string',
VersionId='string',
DeletePriorVersions=True|False
)
string
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
string
[REQUIRED]
The ID of a document.
string
[REQUIRED]
The version ID of a document.
boolean
[REQUIRED]
When set to TRUE , deletes the specified version and all prior versions of a document.
None
Recovers a deleted version of an Amazon WorkDocs document.
See also: AWS API Documentation
Request Syntax
client.restore_document_versions(
AuthenticationToken='string',
DocumentId='string'
)
string
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
string
[REQUIRED]
The ID of the document.
None
{'Protocol': {'SQS'}}
Response {'Subscription': {'Protocol': {'SQS'}}}
Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.
For more information, see Setting up notifications for an IAM user or role in the Amazon WorkDocs Developer Guide .
See also: AWS API Documentation
Request Syntax
client.create_notification_subscription(
OrganizationId='string',
Endpoint='string',
Protocol='HTTPS'|'SQS',
SubscriptionType='ALL'
)
string
[REQUIRED]
The ID of the organization.
string
[REQUIRED]
The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https .
string
[REQUIRED]
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
string
[REQUIRED]
The notification type.
dict
Response Syntax
{
'Subscription': {
'SubscriptionId': 'string',
'EndPoint': 'string',
'Protocol': 'HTTPS'|'SQS'
}
}
Response Structure
(dict) --
Subscription (dict) --
The subscription.
SubscriptionId (string) --
The ID of the subscription.
EndPoint (string) --
The endpoint of the subscription.
Protocol (string) --
The protocol of the subscription.
{'Subscriptions': {'Protocol': {'SQS'}}}
Lists the specified notification subscriptions.
See also: AWS API Documentation
Request Syntax
client.describe_notification_subscriptions(
OrganizationId='string',
Marker='string',
Limit=123
)
string
[REQUIRED]
The ID of the organization.
string
The marker for the next set of results. (You received this marker from a previous call.)
integer
The maximum number of items to return with this call.
dict
Response Syntax
{
'Subscriptions': [
{
'SubscriptionId': 'string',
'EndPoint': 'string',
'Protocol': 'HTTPS'|'SQS'
},
],
'Marker': 'string'
}
Response Structure
(dict) --
Subscriptions (list) --
The subscriptions.
(dict) --
Describes a subscription.
SubscriptionId (string) --
The ID of the subscription.
EndPoint (string) --
The endpoint of the subscription.
Protocol (string) --
The protocol of the subscription.
Marker (string) --
The marker to use when requesting the next set of results. If there are no additional results, the string is empty.