-
-
Save awswithdotnet/1c3adcd2046d8c19df37896a75014d3d to your computer and use it in GitHub Desktop.
3 things sns 11-01-22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var snsClient = new AmazonSimpleNotificationServiceClient(); | |
string tenantIdentifierAttributeKey = "tenant-id"; | |
MessageAttributeValue tenantIdentifierAttributeValue = new MessageAttributeValue(); | |
tenantIdentifierAttributeValue.StringValue = "(tenant-id-value)" | |
tenantIdentifierAttributeValue.DataType = "String"; | |
PublishRequest publishRequest = new PublishRequest(); | |
publishRequest.MessageAttributes.Add(tenantIdentifierAttributeKey, tenantIdentifierAttributeValue); | |
publishRequest.Message = "Test Message"; | |
publishRequest.TopicArn = "(my-topic-arn)"; | |
await snsClient.PublishAsync(publishRequest); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment