Skip to content

Commit

Permalink
Adding additional action to Topics and Queues
Browse files Browse the repository at this point in the history
  • Loading branch information
rlhagerm committed Aug 18, 2023
1 parent c1ca275 commit a9b8175
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .doc_gen/metadata/sns_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,17 @@ sns_Publish_WithAttribute:
synopsis: publish a message with an attribute using &SNS;.
category:
languages:
.NET:
versions:
- sdk_version: 3
github: dotnetv3/cross-service/TopicsAndQueues
excerpts:
- description: Publish a message to a topic with group, duplication, and attribute options.
snippet_tags:
- TopicsAndQueues.dotnetv3.PublishWithOptions
- description: Apply the user's selections to the publish action.
snippet_tags:
- TopicsAndQueues.dotnetv3.Publish
C++:
versions:
- sdk_version: 1
Expand Down
5 changes: 3 additions & 2 deletions dotnetv3/SNS/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--Generated by WRITEME on 2023-08-09 16:54:15.891744 (UTC)-->
<!--Generated by WRITEME on 2023-08-18 14:09:40.943346 (UTC)-->
# Amazon SNS code examples for the SDK for .NET

## Overview
Expand Down Expand Up @@ -46,9 +46,10 @@ Code excerpts that show you how to call individual service functions.
* [Get the properties of a topic](GetTopicAttributesExample/GetTopicAttributesExample/GetTopicAttributes.cs#L6) (`GetTopicAttributes`)
* [List the subscribers of a topic](ListSNSSubscriptionsExample/ListSNSSubscriptionsExample/ListSubscriptions.cs#L6) (`ListSubscriptions`)
* [List topics](ListSNSTopicsExample/ListSNSTopicsExample/ListSNSTopics.cs#L6) (`ListTopics`)
* [Publish a message with an attribute](../cross-service/TopicsAndQueues/Scenarios/TopicsAndQueuesScenario/TopicsAndQueues.cs#L334) (`Publish`)
* [Publish an SMS text message](SNSMessageExample/SNSMessageExample/SNSMessage.cs#L4) (`Publish`)
* [Publish to a topic](PublishToSNSTopicExample/PublishToSNSTopicExample/PublishToSNSTopic.cs#L6) (`Publish`)
* [Subscribe an SQS queue to a topic](../cross-service/TopicsAndQueues/Actions/SNSActions/SNSWrapper.cs#L94) (`Subscribe`)
* [Subscribe an SQS queue to a topic](../cross-service/TopicsAndQueues/Actions/SNSActions/SNSWrapper.cs#L67) (`Subscribe`)
* [Subscribe an email address to a topic](ManageTopicSubscriptionExample/ManageTopicSubscriptionExample/ManageTopicSubscription.cs#L38) (`Subscribe`)
* [Subscribe with a filter to a topic](../cross-service/TopicsAndQueues/Actions/SNSActions/SNSWrapper.cs#L94) (`Subscribe`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ public static string CreateFilterPolicy()
return filterPolicy;
}

// snippet-start:[TopicsAndQueues.dotnetv3.PublishWithOptions]
/// <summary>
/// Publish messages using user settings.
/// </summary>
Expand Down Expand Up @@ -391,6 +392,7 @@ public static async Task PublishMessages()
keepSendingMessages = GetYesNoResponse("Send another message?", false);
}
}
// snippet-end:[TopicsAndQueues.dotnetv3.PublishWithOptions]

/// <summary>
/// Poll for the published messages to see the results of the user's choices.
Expand Down

0 comments on commit a9b8175

Please sign in to comment.