AzureServiceBusTopicResource

Handle
📦 Aspire.Hosting.Azure.ServiceBus v17.0.0

Represents a Service Bus Topic. Initializes a new instance of the AzureServiceBusTopicResource class.

type AzureServiceBusTopicResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithParent
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string expression for the Azure Service Bus Topic.
ConnectionStringExpression() *ReferenceExpression
propertyDefaultMessageTimeToLive*float64get · set
ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.
DefaultMessageTimeToLive() (*float64, error)
SetDefaultMessageTimeToLive(value *float64) AzureServiceBusTopicResource
propertyDuplicateDetectionHistoryTimeWindow*float64get · set
ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
DuplicateDetectionHistoryTimeWindow() (*float64, error)
SetDuplicateDetectionHistoryTimeWindow(value *float64) AzureServiceBusTopicResource
propertyParentAzureServiceBusResourceget
Gets the parent Azure Service Bus resource.
Parent() AzureServiceBusResource
propertyRequiresDuplicateDetection*boolget · set
A value indicating if this topic requires duplicate detection.
RequiresDuplicateDetection() (*bool, error)
SetRequiresDuplicateDetection(value *bool) AzureServiceBusTopicResource
propertyResourceTypeDisplayNamestringget
Gets the ResourceTypeDisplayName property
ResourceTypeDisplayName() (string, error)
propertyTopicNamestringget · set
The topic name.
TopicName() (string, error)
SetTopicName(value string) AzureServiceBusTopicResource

Methods

Adds an Azure Service Bus Subscription resource to the application model.
AddServiceBusSubscription(
name string,
options ...*AddServiceBusSubscriptionOptions,
) AzureServiceBusSubscriptionResource
namestringThe name of the subscription resource.
options...*AddServiceBusSubscriptionOptionsOptional settings, described under Options.

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

SubscriptionName*stringThe name of the Service Bus Subscription. If not provided, this defaults to the same value as name.
AzureServiceBusSubscriptionResource

The resource builder.

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

methodWithPropertiesbuilder
Allows setting the properties of an Azure Service Bus Topic resource.
WithProperties(configure func(obj AzureServiceBusTopicResource)) AzureServiceBusTopicResource
configurefunc(obj AzureServiceBusTopicResource)callbackA method that can be used for customizing the AzureServiceBusTopicResource.
AzureServiceBusTopicResource

The resource builder.

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