cAWSSNS
cAWSSNS Standard properties
These properties are used to configure cAWSSNS running in the Standard Job framework.
The Standard
cAWSSNS component belongs to the AWS and Connectivity families.
Basic settings
Connection |
Select an AWS connection component from the list to reuse the |
Topic |
Specify the name of the topic on Amazon’s Simple Notification |
Subject |
Specify a subject for the message. It can be overriden by the |
Usage
Usage rule |
cAWSSNS can only be an end |
Limitation |
 n/a |
Sending messages to Amazon’s SNS topic
This scenario applies only to Talend Open Studio for ESB, Talend Data Services Platform and Talend Data Fabric.
This scenario will show you how to use the cAWSSNS
component to send message to the Amazon’s SNS topic.
You must have a valid Amazon Web Services developer account, and be signed up to use
Amazon’s SNS. For more information, see Amazon SNS.
Dropping and linking the components
-
From the Palette, drag and drop a cAWSConnection, a cTimer, a cSetBody, and a
cAWSSNS component onto the design
workspace. -
Label the components for better identification of their roles and link them
with the Row > Route connection as shown above.
Configuring the components
-
Double-click the cAWSConnection component to
display its Basic settings view in the
Component tab. -
In the Access Key and Secret Key fields, enter the authentication credentials of your
AWS account. For how to get your Access Key and Access Secret, see Access keys (access key ID and
secret access key). -
Double-click the cTimer component to open its
Basic settings view in the Component tab. -
In the Repeat field, enter
1
to generate the
message exchange one time. Keep the default settings of the other
options. -
Double-click the cSetBody component to open
its Basic settings view in the Component tab. -
Select CONSTANT from the Language drop-down list and type in
"Hello world"
in the Expression field as the message
body. -
Double-click the cAWSSNS component to open
its Basic settings view in the Component tab. -
In the Connection list, select the cAWSConnection component that you have just
configured to connect to Amazon’s SNS service.In the Topic field, enter the name of the
topic to send message to,"talend-com-tesb-sns"
in this use
case.In the Subject field, give a subject for the message, for
example"Talend"
. - Press Ctrl+S to save your Route.
Viewing the code and executing the Route
-
Click the Code tab at the bottom of the
design workspace to check the generated code.As shown above, the message flow fromsns_cTimer_1
is given a payload by
sns_cSetBody_1
and then sent to
sns_cAWSSNS_1
. -
Press F6 to execute the Route. The logs of
the message exchange are printed in the console. -
An email address has already subscribed to the SNS topic as shown below. For more
information about how to subscribe to a topic, see the site http://docs.aws.amazon.com/sns/latest/dg/SubscribeTopic.html.An notification of the message is sent to the Email address: