Skip to main content

notification_subscriptions

Creates, updates, deletes, gets or lists a notification_subscriptions resource.

Overview

Namenotification_subscriptions
TypeResource
Idaws.workdocs.notification_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
end_pointstringThe endpoint of the subscription.
protocolstringThe protocol of the subscription. (HTTPS, SQS)
subscription_idstringThe ID of the subscription. (pattern: <code>[&\w+-.@]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_notification_subscriptionsselectorganization_id, regionmarker, limitLists the specified notification subscriptions.
create_notification_subscriptioninsertorganization_id, region, Endpoint, SubscriptionTypeConfigure 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.
delete_notification_subscriptiondeletesubscription_id, organization_id, regionDeletes the specified subscription from the specified organization.

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
organization_idstringThe ID of the organization.
regionstringAWS region (default: us-east-1)
subscription_idstringThe ID of the subscription.
limitintegerThe maximum number of items to return with this call.
markerstringThe marker for the next set of results. (You received this marker from a previous call.)

SELECT examples

Lists the specified notification subscriptions.

SELECT
end_point,
protocol,
subscription_id
FROM aws.workdocs.notification_subscriptions
WHERE organization_id = '{{ organization_id }}' -- required
AND region = '{{ region }}' -- required
AND marker = '{{ marker }}'
AND limit = '{{ limit }}'
;

INSERT examples

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.

INSERT INTO aws.workdocs.notification_subscriptions (
Endpoint,
Protocol,
SubscriptionType,
organization_id,
region
)
SELECT
'{{ Endpoint }}' /* required */,
'{{ Protocol }}',
'{{ SubscriptionType }}' /* required */,
'{{ organization_id }}',
'{{ region }}'
RETURNING
subscription
;

DELETE examples

Deletes the specified subscription from the specified organization.

DELETE FROM aws.workdocs.notification_subscriptions
WHERE subscription_id = '{{ subscription_id }}' --required
AND organization_id = '{{ organization_id }}' --required
AND region = '{{ region }}' --required
;