# SNSResourceExtensions

- Kind: `class`
- Package: [Aspire.Hosting.AWS](/reference/api/csharp/aspire.hosting.aws.md)
- Version: `13.2.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Definition

```csharp
namespace Aspire.Hosting;

public static class SNSResourceExtensions
{
    // ...
}
```

## Methods

- [AddSNSTopic(IResourceBuilder<IStackResource>, string, ITopicProps?)](/reference/api/csharp/aspire.hosting.aws/snsresourceextensions/methods.md#addsnstopic-iresourcebuilder-istackresource-string-itopicprops) : `IResourceBuilder<IConstructResource<Topic>>` `extension`
- [AddSubscription(IResourceBuilder<IConstructResource<Topic>>, IResourceBuilder<IConstructResource<IQueue>>, SqsSubscriptionProps?)](/reference/api/csharp/aspire.hosting.aws/snsresourceextensions/methods.md#addsubscription-iresourcebuilder-iconstructresource-topic-iresourcebuilder-iconstructresource-iqueue-sqssubscriptionprops) : `IResourceBuilder<IConstructResource<Topic>>` `extension`
- [WithReference(IResourceBuilder<TDestination>, IResourceBuilder<IConstructResource<Topic>>, string?)](/reference/api/csharp/aspire.hosting.aws/snsresourceextensions/methods.md#withreference-iresourcebuilder-tdestination-iresourcebuilder-iconstructresource-topic-string) : `IResourceBuilder<TDestination>` `extension`
