Amazon SNS Connector Guide

Amazon SNS Connector Guide

Process with Amazon SNS Connector Examples

Process with Amazon SNS Connector Examples

You can configure the Service steps in a process to perform multiple activities in Amazon SNS. For example, you can create a topic, subscribe to a topic, and publish messages to the topic.

Publish a Message

You can publish a message to the subscribed endpoints associated with a topic.
In this example to publish a message, perform the following steps:
  1. Create an Amazon SNS connection to connect to Amazon Simple Notification Service.
  2. Create a process and configure a Service step using the services in an Amazon SNS connection.
  3. Insert a step and select the Publish Message service. Specify the ARN of the topic to which you want to publish a message and specify the message that you want to publish.
  4. Configure an assignment step to capture the status code and the publish response output fields of the Publish Message service.
  5. Save, publish, and run the process. The message is published to all the subscribed endpoints of the topic.

Create and Subscribe to a Topic

In this example to create a topic and subscribe to the topic, perform the following steps:
  1. Create an Amazon SNS connection to connect to Amazon Simple Notification Service.
  2. Create a process and configure a service step using the services in an Amazon SNS connection.
  3. Insert a step and select the Create Topic service and specify a topic name as input for the service.
  4. Insert a step and select the Subscribe Topic service and pass the Topic ARN output field of the Create Topic service as input. Select the protocol as email and specify a valid email address.
  5. Create process variables to capture the value of the output fields of the Create Topic service to view the topic ARN and the status code.
  6. Save, publish, and run the process.
The Secure Agent creates a topic based on the topic name you specify in the Create Topic service. Amazon SNS sends a confirmation message to the email address you specify in the Subscribe Topic service. Complete the confirmation process. The notification endpoint you specify in the Subscribe Topic service is subscribed to the topic.

0 COMMENTS

We’d like to hear from you!