Creating a Job for listing Amazon SQS queues - 7.0

Amazon SQS

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Amazon services (Integration) > Amazon SQS components
Data Quality and Preparation > Third-party systems > Amazon services (Integration) > Amazon SQS components
Design and Development > Third-party systems > Amazon services (Integration) > Amazon SQS components
EnrichPlatform
Talend Studio

Create a Job to open a connection to access Amazon SQS, then iterate and list the URLs of all Amazon SQS queues in a specified region, finally display the total number of the queues in the region.

Prerequisites: You must create several Amazon SQS queues in an AWS region in order to replicate this scenario. In this example, four queues talend, talend-dev, talend-doc and talend-qa have been created in the region Asia Pacific (Tokyo) as shown in below figure.

Procedure

  1. Create a new Job and add a tSQSConnection component, a tSQSQueueList component, a tIterateToFlow component, a tLogRow component, and a tJava component by typing their names in the design workspace or dropping them from the Palette.
  2. Link the tSQSQueueList component to the tIterateToFlow component using a Row > Iterate connection.
  3. Link the tIterateToFlow component to the tLogRow component using a Row > Main connection.
  4. Link the tSQSConnection component to the tSQSQueueList component using a Trigger > OnSubjobOk connection.
  5. Link the tSQSQueueList component to the tJava component using a Trigger > OnSubjobOk connection.