Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET v3: Adding additional action for SNS publishing with attributes #5284

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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