Activities that you can perform in Amazon SNS are listed as services that you can configure in a Service step in a process.
To configure a service, you need to identify and pass the input fields required for the service. You can also use the service output to perform other steps in the process.
Create Topic
Application Integration creates a topic to which notifications and messages can be published.
Input Field
Name of the topic you want to create.
Output Fields
- Amazon resource name (ARN) assigned to the topic You can use the topic ARN to publish messages to, subscribe to, or unsubscribe from a topic.
- Topic ARN response
- Status code
Delete Topic
Application Integration deletes a topic and all its subscriptions.
Note: When you delete a topic, messages that were previously sent to the topic might not be delivered to the topic subscribers.
Input Field
Amazon resource name of the topic that you want to delete.
Output Field
Status code
List Topics
Application Integration returns a list of the requester's topics.
Input Field
Next token. Optional. Amazon SNS Connector returns up to 100 topics at a time. If there are more that 100 topics in the Amazon SNS server, the next token parameter is returned to support pagination. For example, you can configure a data decision step in a process and use the Next Token parameter to fetch the remaining topics.
Output Fields
- Topic List
- Status code
- Next token response
- Next token
Publish Message
Application Integration sends a message to all the subscribed endpoints associated with a topic.
The format of the outgoing message to each subscribed endpoint depends on the notification protocol you select.
Input Fields
- The Amazon resource name assigned to the topic.
- Message you want to publish on the topic.
- Subject of the message you want to publish on the topic.
Output Fields
- Publish response
- Status code
Set Display Name
Application Integration sets a display name to a topic. To publish SMS messages for a topic, you must assign a display name to the topic.
Input Fields
- The Amazon resource name of the topic to which you want to set a display name.
- Display name you want to set for the topic.
Output Field
Status code
Subscribe Topic
Application Integration prepares to subscribe an endpoint by sending a confirmation message to the endpoint.
To actually subscribe to the topic, an endpoint owner must complete the confirmation process. For example, when you subscribe to an HTTP endpoint, the web application sends a confirmation message to the AWS service.
Input Fields
- The Amazon resource name of the topic to which you want to subscribe.
- Endpoint to which you want to send the notification.
- Protocol to send the notification. You can choose one of the following subscriber protocol options: HTTP, HTTPS, email, application, SMS, SQS, and Lambda.
Output Fields
- Subscribe result
- Response metadata
- Status code
- Request ID
- Error message
Unsubscribe
Application Integration deletes a subscription to a topic.
Input Field
The subscription ARN of the topic from which you want to unsubscribe. The subscription ARN value is available in the Subscribe Result output field of the Subscription service.