Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddServiceBusTopic

Method
📦 Aspire.Hosting.Azure.ServiceBus v17.0.0
func (AzureServiceBusResource) AddServiceBusTopic(
name string,
options ...*AddServiceBusTopicOptions,
) AzureServiceBusTopicResource

Signature

methodAddServiceBusTopicbuilder
Adds an Azure Service Bus Topic resource to the application model.
AddServiceBusTopic(
name string,
options ...*AddServiceBusTopicOptions,
) AzureServiceBusTopicResource
namestringThe name of the topic resource.
options...*AddServiceBusTopicOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddServiceBusTopicOptions argument.

TopicName*stringThe name of the Service Bus Topic. If not provided, this defaults to the same value as name.
AzureServiceBusTopicResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: