AzureServiceBusSubscriptionResource
Handle
interface AzureServiceBusSubscriptionResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithParent, AzureServiceBusTopicResource]], IValueProvider, IValueWithReferences, IResourceWithAzureFunctionsConfig { readonly connectionStringExpression: ReferenceExpression; deadLetteringOnMessageExpiration: boolean; defaultMessageTimeToLive: timespan; forwardDeadLetteredMessagesTo: string; forwardTo: string; lockDuration: timespan; maxDeliveryCount: number; readonly parent: AzureServiceBusTopicResource; requiresSession: boolean; readonly rules: List<Aspire.Hosting.Azure.ServiceBus/Aspire.Hosting.Azure.AzureServiceBusRule>; subscriptionName: string; withProperties(configure: (obj: AzureServiceBusSubscriptionResource) => Promise<void>): AzureServiceBusSubscriptionResource;}20 members
Properties
property
connectionStringExpressionReferenceExpressiongetGets the connection string expression for the Azure Service Bus Subscription.
property
deadLetteringOnMessageExpirationbooleanget · setA value that indicates whether this queue has dead letter support when a message expires.
property
defaultMessageTimeToLivetimespanget · setISO 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.
property
forwardDeadLetteredMessagesTostringget · setQueue/Topic name to forward the Dead Letter message.
property
forwardTostringget · setQueue/Topic name to forward the messages.
property
lockDurationtimespanget · setISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
property
maxDeliveryCountnumberget · setThe maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.
property
parentAzureServiceBusTopicResourcegetGets the parent Azure Service Bus Topic resource.
property
requiresSessionbooleanget · setA value that indicates whether the queue supports the concept of sessions.
property
rulesList<Aspire.Hosting.Azure.ServiceBus/Aspire.Hosting.Azure.AzureServiceBusRule>getThe rules for this subscription.
property
subscriptionNamestringget · setThe subscription name.
Methods
Allows setting the properties of an Azure Service Bus Subscription resource.
withProperties(configure: (obj: AzureServiceBusSubscriptionResource) => Promise<void>): AzureServiceBusSubscriptionResourceParameters
configure(obj: AzureServiceBusSubscriptionResource) => Promise<void>Returns
AzureServiceBusSubscriptionResource