共用方式為


SNSResourceExtensions.AddSubscription Method

Definition

Subscribe some endpoint to this topic.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SNS.Topic>> AddSubscription (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SNS.Topic>> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SQS.IQueue>> destination, Amazon.CDK.AWS.SNS.Subscriptions.SqsSubscriptionProps? props = default);
static member AddSubscription : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SNS.Topic>> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SQS.IQueue>> * Amazon.CDK.AWS.SNS.Subscriptions.SqsSubscriptionProps -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SNS.Topic>>
<Extension()>
Public Function AddSubscription (builder As IResourceBuilder(Of IConstructResource(Of Topic)), destination As IResourceBuilder(Of IConstructResource(Of IQueue)), Optional props As SqsSubscriptionProps = Nothing) As IResourceBuilder(Of IConstructResource(Of Topic))

Parameters

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

The builder for the topic resource.

destination
IResourceBuilder<IConstructResource<Amazon.CDK.AWS.SQS.IQueue>>

The notification destination queue.

props
Amazon.CDK.AWS.SNS.Subscriptions.SqsSubscriptionProps

>Properties for an SQS subscription.

Returns

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

Applies to