July 30, 2023

cAWSSNS – Docs for ESB ESB 7.x

cAWSSNS

Sends messages to an Amazon’s Simple Notification topic.

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
connection details you already defined.

Topic

Specify the name of the topic on Amazon’s Simple Notification
Service (SNS) to send message to.

Subject

Specify a subject for the message. It can be overriden by the
message header CamelAwsSnsSubject.

Usage

Usage rule

cAWSSNS can only be an end
component in a Route. It has to be used with the cAWSConnection component, which creates a
connection to Amazon Web services. For more information about
cAWSConnection, see cAWSConnection.

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

cAWSSNS_1.png

  1. From the Palette, drag and drop a cAWSConnection, a cTimer, a cSetBody, and a
    cAWSSNS component onto the design
    workspace.
  2. Label the components for better identification of their roles and link them
    with the Row > Route connection as shown above.

Configuring the components

  1. Double-click the cAWSConnection component to
    display its Basic settings view in the
    Component tab.

    cAWSSNS_2.png

  2. 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)
    .
  3. Double-click the cTimer component to open its
    Basic settings view in the Component tab.

    cAWSSNS_3.png

  4. In the Repeat field, enter 1 to generate the
    message exchange one time. Keep the default settings of the other
    options.
  5. Double-click the cSetBody component to open
    its Basic settings view in the Component tab.

    cAWSSNS_4.png

  6. Select CONSTANT from the Language drop-down list and type in "Hello world"
    in the Expression field as the message
    body.
  7. Double-click the cAWSSNS component to open
    its Basic settings view in the Component tab.

    cAWSSNS_5.png

  8. 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".
  9. Press Ctrl+S to save your Route.

Viewing the code and executing the Route

  1. Click the Code tab at the bottom of the
    design workspace to check the generated code.

    cAWSSNS_6.png

    As shown above, the message flow from sns_cTimer_1 is given a payload by
    sns_cSetBody_1 and then sent to
    sns_cAWSSNS_1.
  2. Press F6 to execute the Route. The logs of
    the message exchange are printed in the console.

    cAWSSNS_7.png

  3. 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.

    cAWSSNS_8.png

    An notification of the message is sent to the Email address:
    cAWSSNS_9.png


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x