Skip to content
DocsTry Aspire
DocsTry

AzureServiceBusTopicResource

Handle
📦 Aspire.Hosting.Azure.ServiceBus v13.4.0
interface AzureServiceBusTopicResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
AzureServiceBusResource]],
IValueProvider,
IValueWithReferences,
IResourceWithAzureFunctionsConfig {
readonly connectionStringExpression: ReferenceExpression;
defaultMessageTimeToLive: timespan;
duplicateDetectionHistoryTimeWindow: timespan;
readonly parent: AzureServiceBusResource;
requiresDuplicateDetection: boolean;
topicName: string;
addServiceBusSubscription(
name: string,
subscriptionName?: string): AzureServiceBusSubscriptionResource;
withProperties(configure: (obj: AzureServiceBusTopicResource) => Promise<void>): AzureServiceBusTopicResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the Azure Service Bus Topic.
propertydefaultMessageTimeToLivetimespanget · 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.
propertyduplicateDetectionHistoryTimeWindowtimespanget · set
ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
propertyparentAzureServiceBusResourceget
Gets the parent Azure Service Bus resource.
propertyrequiresDuplicateDetectionbooleanget · set
A value indicating if this topic requires duplicate detection.
propertytopicNamestringget · set
The topic name.

Methods

Adds an Azure Service Bus Subscription resource to the application model.
addServiceBusSubscription(
name: string,
subscriptionName?: string): AzureServiceBusSubscriptionResource
namestring
subscriptionNamestringoptional
AzureServiceBusSubscriptionResource
methodwithPropertiesbuilder
Allows setting the properties of an Azure Service Bus Topic resource.
withProperties(configure: (obj: AzureServiceBusTopicResource) => Promise<void>): AzureServiceBusTopicResource
configure(obj: AzureServiceBusTopicResource) => Promise<void>
AzureServiceBusTopicResource