Create Topic

The CreateTopic activity is used to create the SNS topic. If the topic already exists, it's topicARN will be returned.

General

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

Field Module Property? Description
Name No Name to be displayed as a label for the activity in the process.
SNS Client Yes 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 of the CreateTopic activity.

Input

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

Input Item Data Type Description
Name String Required. The name of the topic to be created. This name is incorporated into the TopicARN value returned.
Permissions Complex Permissions contribute to the policy for the queue. Permissions control whether queues can be shared with other principles (userIDs).
Label String An arbitrary label for the permission.
AccountId Int One or more Amazon Account IDs for which the permission is to be applied.
Action String One or more actions the client wants to allow for the specified principals. The following values are valid values:

Publish | Subscribe | Receive.

Note: If you enter a value in any one of the fields Label, AccountId, or Action, 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 CreateTopic activity. The following table lists the output element in the Output tab of the CreateTopic activity.

Output Item Data Type Description
TopicARN String The AWS Resource Name for the newly created topic. This is the value that must be used when publishing to or deleting the topic.

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.