April 2018
Intermediate to advanced
280 pages
8h 37m
English
The classes and functions related to the SNS service are available in the SimpleNotificationService library, which must be imported in the application program.
An SNS topic can be created simply by invoking the CreateTopic() function of the AmazonSimpleNotificationServiceClient class. The following code shows how to create an SNS topic and set its attributes:
using System;using Amazon;using Amazon.SimpleNotificationService;using Amazon.SimpleNotificationService.Model;namespace packtpubSNSDemo{ class SNSDemo { public static void Main(string[] args) { var sns_object = new AmazonSimpleNotificationServiceClient(); string email_id = "manoj.hirway@packtpub.com"; try { // Create an SNS topic called "PACKT-PUB" Console.WriteLine("Creating ...