SNSResourceExtensions.AddSubscription Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.