public void AWSClientWithConfigFileTest() { AWS.LoadAwsCredentialsProfile(_region, "C:\\aws_developer.csv", "default"); #region SNS //Create SNS Topic string snsTopic = "awssimpleclientssns"; var createSNSResponse = AWS.SNS.CreateTopicAsync(new CreateTopicRequest() { Name = snsTopic }).GetAwaiter().GetResult(); Assert.IsNotNull(createSNSResponse); Assert.IsTrue(createSNSResponse.HttpStatusCode == System.Net.HttpStatusCode.OK); string snsTopicArn = createSNSResponse.TopicArn; //Delete SNS Topic //The deletion may not succeed, you may manually delete it later. var deleteSNSResponse = AWS.SNS.DeleteTopicAsync(new DeleteTopicRequest() { TopicArn = snsTopicArn, }); Assert.IsNotNull(deleteSNSResponse); Assert.IsTrue(createSNSResponse.HttpStatusCode == System.Net.HttpStatusCode.OK); #endregion }