title: How Publish SNS message in C# Lambda Core
body: <p>I found the code below at <a href="https://forums.aws.amazon.com/thread.jspa?threadID=53629" rel="noreferrer">https://forums.aws.amazon.com/thread.jspa?threadID=53629</a>: </p>
  
  <pre><code>AmazonSimpleNotificationService sns = AWSClientFactory.CreateAmazonSNSClient(key, secret);
  
  PublishRequest req = new PublishRequest();
  req.WithMessage("This is my test message");
  req.WithSubject("The Test Subject");
  req.WithTopicArn(topicArn);
  
  PublishResponse result = sns.Publish(req);
  </code></pre>
  
  <p>But does it work in .NET Core? If so how, and what using statements? </p>
  
  <p>I used this Nuget install: </p>
  
  <pre><code>  Install-Package AWSSDK.SimpleNotificationService -Version 3.3.0.23
  </code></pre>
  
  <p>Are the methods totally different? Just poking around using Intellisense, I have found: </p>
  
  <pre><code>  var req = new AmazonSimpleNotificationServiceRequest();
    var client = new AmazonSimpleNotificationServiceClient();
  </code></pre>
  
  <p>but req. doesn't show any properties. </p>
  
  <p>I've tried searching here: <a href="https://docs.aws.amazon.com/sdkfornet/v3/apidocs/Index.html" rel="noreferrer">https://docs.aws.amazon.com/sdkfornet/v3/apidocs/Index.html</a>
  but it is saying "The service is currently unavailable. Please try again after some time." (so yes, I will try later, but not sure it will have what I want anyhow). </p>
  
  <p>--- Update 10/30 - This is the the only publish method of the 
  AmazonSimpleNotificationServiceRequest() class 
  <a href="https://i.stack.imgur.com/oRMMs.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/oRMMs.jpg" alt="enter image description here"></a></p>
  
  <p>--- Update 2 on 10/30 - Found this post: 
  <a href="https://stackoverflow.com/questions/44078176/send-sms-using-aws-sns-net-core">Send SMS using AWS SNS - .Net Core</a></p>
  
  <p>Created new question for code that I'm trying, but it's not working: 
  <a href="https://stackoverflow.com/questions/47020436/aws-how-call-sns-publishasync-from-lambda-function">How to call SNS PublishAsync from Lambda Function?</a></p>