Freigeben über


SNSResourceExtensions.AddSNSTopic Method

Definition

Adds an Amazon SNS topic.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SNS.Topic>> AddSNSTopic (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource> builder, string name, Amazon.CDK.AWS.SNS.ITopicProps? props = default);
static member AddSNSTopic : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IStackResource> * string * Amazon.CDK.AWS.SNS.ITopicProps -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SNS.Topic>>
<Extension()>
Public Function AddSNSTopic (builder As IResourceBuilder(Of IStackResource), name As String, Optional props As ITopicProps = Nothing) As IResourceBuilder(Of IConstructResource(Of Topic))

Parameters

builder
IResourceBuilder<IStackResource>

The builder for the AWS CDK stack.

name
String

The name of the resource.

props
Amazon.CDK.AWS.SNS.ITopicProps

The properties of the topic.

Returns

IResourceBuilder<IConstructResource<Amazon.CDK.AWS.SNS.Topic>>

Applies to