Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Creating a topic

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content