ballerinax/aws.sns Ballerina library
The Ballerina AWS SNS provides the capability to manage topics and subscriptions in AWS SNS.
This module supports Amazon SNS REST API
Before using this connector in your Ballerina application, complete the following:
To use the AWS SNS connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
ballerinax/aws.sns module into the Ballerina project.
Step 2: Create a new connector instance
You can now enter the credentials in the SNS client configuration and create the SNS client by passing the configuration as follows.
Step 3: Invoke connector operation
You can create a topic in SNS as follows with
createTopicmethod for a preferred topic name and the required set of attributes.
bal runcommand to compile and run the Ballerina program.
Released date: about 1 year ago
Ballerina version: 2201.2.1
Pull count: 1