AzureServiceBusSubscriptionResource

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

Represents a Service Bus Subscription. Initializes a new instance of the AzureServiceBusSubscriptionResource class.

type AzureServiceBusSubscriptionResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithParent
}

Properties

propertyConnectionStringExpression*ReferenceExpressionget
Gets the connection string expression for the Azure Service Bus Subscription.
ConnectionStringExpression() *ReferenceExpression
propertyDeadLetteringOnMessageExpiration*boolget · set
A value that indicates whether this queue has dead letter support when a message expires.
DeadLetteringOnMessageExpiration() (*bool, error)
SetDeadLetteringOnMessageExpiration(value *bool) AzureServiceBusSubscriptionResource
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) AzureServiceBusSubscriptionResource
propertyForwardDeadLetteredMessagesTo*stringget · set
Queue/Topic name to forward the Dead Letter message.
ForwardDeadLetteredMessagesTo() (*string, error)
SetForwardDeadLetteredMessagesTo(value *string) AzureServiceBusSubscriptionResource
propertyForwardTo*stringget · set
Queue/Topic name to forward the messages.
ForwardTo() (*string, error)
SetForwardTo(value *string) AzureServiceBusSubscriptionResource
propertyLockDuration*float64get · set
ISO 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.
LockDuration() (*float64, error)
SetLockDuration(value *float64) AzureServiceBusSubscriptionResource
propertyMaxDeliveryCount*float64get · set
The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.
MaxDeliveryCount() (*float64, error)
SetMaxDeliveryCount(value *float64) AzureServiceBusSubscriptionResource
propertyParentAzureServiceBusTopicResourceget
Gets the parent Azure Service Bus Topic resource.
Parent() AzureServiceBusTopicResource
propertyRequiresSession*boolget · set
A value that indicates whether the queue supports the concept of sessions.
RequiresSession() (*bool, error)
SetRequiresSession(value *bool) AzureServiceBusSubscriptionResource
propertyResourceTypeDisplayNamestringget
Gets the ResourceTypeDisplayName property
ResourceTypeDisplayName() (string, error)
propertyRules*List[*AzureServiceBusRule]get
The rules for this subscription.
Rules() *List[*AzureServiceBusRule]
propertySubscriptionNamestringget · set
The subscription name.
SubscriptionName() (string, error)
SetSubscriptionName(value string) AzureServiceBusSubscriptionResource

Methods

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

The resource builder.

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