Print

AWS SNS Output

The AWS_SNS ouput plugin is used to make AWS_SNS requests (Amazon Simple Notification Service). Once a request reaches the Aws SNS infrastructure, it can be forwarded to many differ enttypes of consumers.

Parameters

aws_topic_arn: OPTIONAL. The valid options are ‘application/json’ or ‘text/plain’, which is the default.

aws_region: OPTIONAL. If using content_type ‘text/plain’, the delimiter parameter can be used to specify how to separate fields. If not entered, the default value is ‘,’ making the output message comma-separated.

aws_key: OPTIONAL. The valid options are ‘GET’,’POST’, ‘POST’. The default is ‘POST’.

aws_secret: OPTIONAL. If using content_type ‘application/json’, then field values will be automatically formatted in json using the field name as keys and the field value as values. In case you need all these fields nested under a parent key, then you specify the parent_key.

Syntax

OUTPUT AWS_SNS (
    aws_topic_arn   <string, required>
    aws_region      <single, required>
    aws_key         <string, required>
    aws_secret      <string, required>
)

Example

A simple output posting JSON payload to a topic for every message received by STREAM mystream:

SELECT session_id, session_status
FROM mystream
OUTPUT AWS_SNS (
    aws_topic_arn   'arn:aws:sns:us-west-1:79385813535:riodb-test'
    aws_region      'us-west-1'
    aws_key         'BKAADMA3O5FB4WDE5QSM'
    aws_secret      'dHcdYf/ptc3X4gS7N5P9iGsF2dX3DDsrfu38hD3/'
)
formatter JSON ()
Table of Contents
Scroll to Top