際際滷

際際滷Share a Scribd company logo
Mule (AWS) SNS Connector
By
Raghavender Reddy
Reference: https://docs.mulesoft.com/mule-user-guide/v/3.7/amazon-sns-connector
Amazon Simple Notification Services (SNS)
Amazon Simple Notification Service (Amazon SNS) is a fast, flexible, fully managed push notification service
that lets you send individual messages or to fan-out messages to large numbers of recipients. Amazon SNS
makes it simple and cost effective to send push notifications to mobile device users, email recipients or
even send messages to other distributed services.
With Amazon SNS, you can send notifications to Apple, Google, Fire OS, and Windows devices, as well as to
Android devices in China with Baidu Cloud Push. You can use SNS to send SMS messages to mobile device
users world wide. Beyond these endpoints, Amazon SNS can also deliver messages to Amazon Simple
Queue Service (SQS), AWS Lambda functions, or to any HTTP endpoint.
Ref: https://aws.amazon.com/sns/
Mule SNS Connector
 Anypoint Amazon SNS Connector is Used to Connect to the Amazon SNS Services.
Raghavender Reddy
Anypoint Amazon SNS Connector Configuration
 Following Configuration Details are required to Connect to the
AWS SNS using Anypoint SNS Connector.
a. Access key
b. Secret key
c. Topic Arn Details
Raghavender Reddy
Raghavender Reddy
Anypoint Amazon SNS Operations
 Add Permission
 Confirm Subscription
 Create Platform Application
 Create Platform Endpoint
 Create Topic
 Delete Endpoint
 Delete Platform Application
 Delete Topic
 Get Endpoint Attributes
 Get Platform Application Attributes
 Get Subscription Attributes
 Get Topic Attributes
 List Endpoint By Platform Application
 List Platform Application
 List Subscriptions By Topic
 List Subscriptions
 List Topics
 Publish
 Remove Permission
 Set Endpoint Attributes
 Set Platform Application Attributes
 Set Subscription Attributes
 Set Topic Attributes
 Subscribe
 Unsubscribe
Raghavender Reddy
Creating Topic in AWS SNS
 We will create topic in AWS Service and will publish messages using Anypoint SNS Connector.
 Create AWS account and access AWS Simple Notification services and Click on Create Topic.
Raghavender Reddy
 Provide Topic Name and Display Name
Raghavender Reddy
Creating Subscription in AWS SNS
 Click on Subscription and Create Subscription and Enter the ARN of the topic entered.
 Select Protocol, protocol Can be HTTP, HTTPS , Email, SMS, Email Json.
 Here I select Email ,,when ever a message is published by topic , I want to send an email to the subscriber.
 Enter the email address of the subscriber.
Raghavender Reddy
 Confirmation Email , will be Sent to the End user , Once he confirms then he will be added to subscription list.
Raghavender Reddy
Publishing Message to Topic
 Using SNS topic , we can publish message as follows,
 Select on Topic and Click on Publish Message to Topic.
Raghavender Reddy
Publishing Message to Topic using SNS Connector
1)Create New Configuration and add access key, secret key and Topic ARN.
2) You can access key and secret key from AWS IAM .
Raghavender Reddy
Configure to SNS Connector and Test Connection
 1) Create a flow called sample Flow and Drag HTTP Connector
 2) Configure the host, port .method , URL
 <flow name="snssampleFlow">
 <http:listener config-ref="HTTP_Listener_Configuration" path="/test" allowedMethods="GET" doc:name="HTTP"/>
 </flow>
Raghavender ReddyRaghavender Reddy
Configure SNS Connector and Test Connection
 Drag AWS SNS Connector to the flow and Configure the required properties.
 <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8083" doc:name="HTTP Listener Configuration"/>
 <sns:config name="Amazon_SNS__Configuration" accessKey="AKIAJ7FL7VWFMTE5L5CQ"
secretKey="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" testTopicArn="arn:aws:sns:us-east-1:550435687413:emailService"
doc:name="Amazon SNS: Configuration"/>
 <flow name="snssampleFlow">
 <http:listener config-ref="HTTP_Listener_Configuration" path="/test" allowedMethods="GET" doc:name="HTTP"/>
 <sns:publish config-ref="Amazon_SNS__Configuration" doc:name="Amazon SNS">
 <sns:publish topicArn="arn:aws:sns:us-east-1:550435687413:FunTopic" message="Hi" subject="Hi"/>
 </sns:publish>
 </flow>
 </mule>
Raghavender Reddy
Configure SNS Connector and Test Connection
Raghavender Reddy
Publishing Message
 1) Click on Operation in the SNS Connector and select Publish.
 2) Once we select Publish then we need to fill message subject and body fields with the content
Raghavender Reddy
Send Request to the API
 An email is triggered to the appropriate subscribers and in return it return a unique response Id
Raghavender Reddy
Thank You
 References
 https://aws.amazon.com/sns/
 https://docs.mulesoft.com/getting-started/anypoint-
exchange
Raghavender Reddy

More Related Content

Similar to Mule (aws)sns (7)

PPTX
Serverless solution architecture in AWS
Runcy Oommen
PPTX
Ovations AWS pop-up loft 2019 Technical presentation
GeanBoegman
PPTX
AWS Summit Barcelona 2015 - Introducing Amazon API Gateway
Vadim Zendejas
PPTX
Windsor AWS UG Deep dive IAM 2 - no json101
Goran Karmisevic
PDF
AWS re:Invent 2020 Serverless Recap
Daniel Zivkovic
PPTX
Azure integration in dynamic crm
ssuser93127c1
PPTX
amazon web service PPT presentation.pptx
shraddharahane63
Serverless solution architecture in AWS
Runcy Oommen
Ovations AWS pop-up loft 2019 Technical presentation
GeanBoegman
AWS Summit Barcelona 2015 - Introducing Amazon API Gateway
Vadim Zendejas
Windsor AWS UG Deep dive IAM 2 - no json101
Goran Karmisevic
AWS re:Invent 2020 Serverless Recap
Daniel Zivkovic
Azure integration in dynamic crm
ssuser93127c1
amazon web service PPT presentation.pptx
shraddharahane63

Recently uploaded (20)

PDF
Best Software Development at Best Prices
softechies7
PDF
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
PPTX
arctitecture application system design os dsa
za241967
PPTX
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
PPTX
Agentforce TDX 2025 Hackathon Achievement
GetOnCRM Solutions
PPTX
Iobit Driver Booster Pro 12 Crack Free Download
chaudhryakashoo065
PDF
OpenChain Webinar - AboutCode - Practical Compliance in One Stack Licensing...
Shane Coughlan
PDF
Code Once; Run Everywhere - A Beginners Journey with React Native
Hasitha Walpola
PDF
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
PDF
Building scalbale cloud native apps with .NET 8
GillesMathieu10
DOCX
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
PDF
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
PDF
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
PDF
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
PDF
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
PDF
Which Hiring Management Tools Offer the Best ROI?
HireME
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
PPTX
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
PDF
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
PDF
Automated Test Case Repair Using Language Models
Lionel Briand
Best Software Development at Best Prices
softechies7
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
arctitecture application system design os dsa
za241967
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
Agentforce TDX 2025 Hackathon Achievement
GetOnCRM Solutions
Iobit Driver Booster Pro 12 Crack Free Download
chaudhryakashoo065
OpenChain Webinar - AboutCode - Practical Compliance in One Stack Licensing...
Shane Coughlan
Code Once; Run Everywhere - A Beginners Journey with React Native
Hasitha Walpola
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
Building scalbale cloud native apps with .NET 8
GillesMathieu10
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
Which Hiring Management Tools Offer the Best ROI?
HireME
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
Automated Test Case Repair Using Language Models
Lionel Briand
Ad

Mule (aws)sns

  • 1. Mule (AWS) SNS Connector By Raghavender Reddy Reference: https://docs.mulesoft.com/mule-user-guide/v/3.7/amazon-sns-connector
  • 2. Amazon Simple Notification Services (SNS) Amazon Simple Notification Service (Amazon SNS) is a fast, flexible, fully managed push notification service that lets you send individual messages or to fan-out messages to large numbers of recipients. Amazon SNS makes it simple and cost effective to send push notifications to mobile device users, email recipients or even send messages to other distributed services. With Amazon SNS, you can send notifications to Apple, Google, Fire OS, and Windows devices, as well as to Android devices in China with Baidu Cloud Push. You can use SNS to send SMS messages to mobile device users world wide. Beyond these endpoints, Amazon SNS can also deliver messages to Amazon Simple Queue Service (SQS), AWS Lambda functions, or to any HTTP endpoint. Ref: https://aws.amazon.com/sns/
  • 3. Mule SNS Connector Anypoint Amazon SNS Connector is Used to Connect to the Amazon SNS Services. Raghavender Reddy
  • 4. Anypoint Amazon SNS Connector Configuration Following Configuration Details are required to Connect to the AWS SNS using Anypoint SNS Connector. a. Access key b. Secret key c. Topic Arn Details Raghavender Reddy
  • 6. Anypoint Amazon SNS Operations Add Permission Confirm Subscription Create Platform Application Create Platform Endpoint Create Topic Delete Endpoint Delete Platform Application Delete Topic Get Endpoint Attributes Get Platform Application Attributes Get Subscription Attributes Get Topic Attributes List Endpoint By Platform Application List Platform Application List Subscriptions By Topic List Subscriptions List Topics Publish Remove Permission Set Endpoint Attributes Set Platform Application Attributes Set Subscription Attributes Set Topic Attributes Subscribe Unsubscribe Raghavender Reddy
  • 7. Creating Topic in AWS SNS We will create topic in AWS Service and will publish messages using Anypoint SNS Connector. Create AWS account and access AWS Simple Notification services and Click on Create Topic. Raghavender Reddy
  • 8. Provide Topic Name and Display Name Raghavender Reddy
  • 9. Creating Subscription in AWS SNS Click on Subscription and Create Subscription and Enter the ARN of the topic entered. Select Protocol, protocol Can be HTTP, HTTPS , Email, SMS, Email Json. Here I select Email ,,when ever a message is published by topic , I want to send an email to the subscriber. Enter the email address of the subscriber. Raghavender Reddy
  • 10. Confirmation Email , will be Sent to the End user , Once he confirms then he will be added to subscription list. Raghavender Reddy
  • 11. Publishing Message to Topic Using SNS topic , we can publish message as follows, Select on Topic and Click on Publish Message to Topic. Raghavender Reddy
  • 12. Publishing Message to Topic using SNS Connector 1)Create New Configuration and add access key, secret key and Topic ARN. 2) You can access key and secret key from AWS IAM . Raghavender Reddy
  • 13. Configure to SNS Connector and Test Connection 1) Create a flow called sample Flow and Drag HTTP Connector 2) Configure the host, port .method , URL <flow name="snssampleFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/test" allowedMethods="GET" doc:name="HTTP"/> </flow> Raghavender ReddyRaghavender Reddy
  • 14. Configure SNS Connector and Test Connection Drag AWS SNS Connector to the flow and Configure the required properties. <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8083" doc:name="HTTP Listener Configuration"/> <sns:config name="Amazon_SNS__Configuration" accessKey="AKIAJ7FL7VWFMTE5L5CQ" secretKey="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" testTopicArn="arn:aws:sns:us-east-1:550435687413:emailService" doc:name="Amazon SNS: Configuration"/> <flow name="snssampleFlow"> <http:listener config-ref="HTTP_Listener_Configuration" path="/test" allowedMethods="GET" doc:name="HTTP"/> <sns:publish config-ref="Amazon_SNS__Configuration" doc:name="Amazon SNS"> <sns:publish topicArn="arn:aws:sns:us-east-1:550435687413:FunTopic" message="Hi" subject="Hi"/> </sns:publish> </flow> </mule> Raghavender Reddy
  • 15. Configure SNS Connector and Test Connection Raghavender Reddy
  • 16. Publishing Message 1) Click on Operation in the SNS Connector and select Publish. 2) Once we select Publish then we need to fill message subject and body fields with the content Raghavender Reddy
  • 17. Send Request to the API An email is triggered to the appropriate subscribers and in return it return a unique response Id Raghavender Reddy
  • 18. Thank You References https://aws.amazon.com/sns/ https://docs.mulesoft.com/getting-started/anypoint- exchange Raghavender Reddy

Editor's Notes

  • #3: QuickStarter has created an outline to help you get started on your presentation. Some slides include information here in the notes to provide additional topics for you to research.