unsubscribe
Method to unsubscribe from an SNS topic
Returns following columns:
- status: status of the trigger call. OK if succeeded
- error: Error message in case of failure
Accepts the following parameters:
- arn: The ARN of the subscription you want to unsubscribe from.
- region: Region where the subscription is stored
Example
SELECT * FROM unsubscribe('subscription_arn');
See
https://docs.aws.amazon.com/sns/latest/dg/sns-create-subscribe-endpoint-to-topic.html