Menu
Lumberyard
Developer Guide (Version 1.12)

SNS (Notification Service) Nodes

You can use these flow graph nodes to process Amazon Simple Notification Service (Amazon SNS) messages.

ParseMessage node


                    ParseMessage

Inputs

Port Type Description
Parse Any Extract the subject and body text in JSON format from an Amazon SNS message
Message String The JSON message to deserialize.

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message
Body String The message body
Subject String The message subject

Notify node

Publishes messages to an Amazon SNS topic.


                    Notify

Inputs

Port Type Description
Notify Any Sends a notification to an Amazon SNS topic
Message String The message to send
Subject String The subject of the message
TopicARN String The Amazon Resource Name for your Amazon SNS topic

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message

CheckArnSubscribed node

Checks if an ARN is subscribed to an Amazon SNS topic.


                    CheckArnSubscribed

Inputs

Port Type Description
Check Any Checks if an ARN is subscribed to an Amazon SNS topic
TopicARN String The Amazon SNS topic ARN to check
Endpoint String The endpoint to check for subscription to the specified topic. The endpoint can be an email address, an Amazon SQS queue, or any other endpoint type supported by Amazon SNS.

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message
True Any The ARN is subscribed to the Amazon SNS topic
False Any The ARN is not subscribed to the Amazon SNS topic

SubscribeToTopic node

Subscribes to an Amazon SNS topic.


                    SubscribeToTopic

Inputs

Port Type Description
Subscribe Any Subscribes to a topic to receive messages published to that topic. For more information, see Subscribe to a Topic.
Protocol String The protocol of the endpoint to which to subscribe
TopicARN String The ARN of the Amazon SNS topic to which to subscribe
Endpoint String The address of the endpoint to subscribe (for example, an email address). For information on sending to HTTP or HTTPS, see Sending Amazon SNS Messages to HTTP/HTTPS Endpoints.

Outputs

Port Type Description
Success Any Activated upon a successful operation
Error String Activated upon an error being detected; the value of the port is the error message
SubscriptionArn String The ARN of the created subscription

For more information on Amazon SNS, see the Amazon Simple Notification Service Developer Guide.