Publish

The Publish activity is used to publish a message on a SNS Topic.

General

In the General tab, you can select shared resource to establish a connection to the Amazon server. The following table lists the configurations in the General tab of the Publish activity.

Field Module Property? Description
Name No Name to be displayed as a label for the activity in the process.
SNS Client Yes Required. The SNS activities use the same client shared resource configuration as the SQS activities. Select SNS Client configuration either from an existing resource or create a new resource, by using the Choose/Create Default Resource icon.

Description

In the Description tab, you can provide a short description for the Publish activity.

Input

In the Input tab, you can specify input values for the Publish activity. The following table lists the input elements in the Input tab of the Publish activity.

Input Item Data Type Description
TopicARN String Optional. The Amazon Resource Name for the topic. Either TopicARN or TargetARN must be specified but not both.
TargetARN String Optional. The Amazon Resource Name for the endpoint to which you want to publish the output. Either TopicARN or TargetARN must be specified but not both.
Subject String Optional.The value to be used as the subject line when the message is delivered to email endpoints.
MessageStructure String Optional.Set MessageStructure to JSON, if you want to send a different message for each protocol.
PhoneNumber String Optional.The phone number to which you want to deliver an SMS message.
SnsMessage String The message you want to send to the topic.
Body String Required. Content of the message.
MessageAttrs Complex Any message attributes that were included with the message. Each attribute is composed of a Name, Type, and Value.
Name String The name of the attribute.
Type String The type of the attribute.
Value String A string representation of the attribute value.
Note: If you enter a value in any one of the fields Name, Type, or Value, then you need to enter values for remaining two fields, as these fields become required fields.

Output

In the Output tab, you can find the output value of the Publish activity. The following table lists the output element in the Output tab of the Publish activity.

Output Item Data Type Description
MessageId String Contains the message identifier for the message.

Fault

The Fault tab lists exceptions that are generated by this activity.

Fault Data Type Description
SQSException Any exception generated by the activity after execution. It has the following fields: ErrorCode and ErrorMessage.
ErrorCode String The plug-in error code for the exception. For more information, refer to Error Codes topic.
ErrorMessage String The plug-in error message for the exception. It contains the error message from the AWS SQS API call that failed.