# AzureServiceBusSubscriptionResource

- Module: [Aspire.Hosting.Azure.ServiceBus](/reference/api/typescript/aspire.hosting.azure.servicebus.md)
- Version: `13.2.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureServiceBusSubscriptionResource
  extends IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    AzureServiceBusTopicResource]],
    IValueProvider,
    IValueWithReferences,
    IResourceWithAzureFunctionsConfig {
  deadLetteringOnMessageExpiration: boolean;
  defaultMessageTimeToLive: timespan;
  forwardDeadLetteredMessagesTo: string;
  forwardTo: string;
  lockDuration: timespan;
  maxDeliveryCount: number;
  readonly name: string;
  requiresSession: boolean;
  readonly rules: List<Aspire.Hosting.Azure.ServiceBus/Aspire.Hosting.Azure.AzureServiceBusRule>;
  subscriptionName: string;
  withProperties(configure: (obj: AzureServiceBusSubscriptionResource) => Promise<void>): AzureServiceBusSubscriptionResource;
}
```

## Properties

- `deadLetteringOnMessageExpiration`: `boolean` `get - set` -- Gets the DeadLetteringOnMessageExpiration property
- `defaultMessageTimeToLive`: `timespan` `get - set` -- Gets the DefaultMessageTimeToLive property
- `forwardDeadLetteredMessagesTo`: `string` `get - set` -- Gets the ForwardDeadLetteredMessagesTo property
- `forwardTo`: `string` `get - set` -- Gets the ForwardTo property
- `lockDuration`: `timespan` `get - set` -- Gets the LockDuration property
- `maxDeliveryCount`: `number` `get - set` -- Gets the MaxDeliveryCount property
- `name`: `string` `get` -- Gets the Name property
- `requiresSession`: `boolean` `get - set` -- Gets the RequiresSession property
- `rules`: `AzureServiceBusRule>` `get` -- Gets the Rules property
- `subscriptionName`: `string` `get - set` -- Gets the SubscriptionName property

## Methods

- [withProperties](/reference/api/typescript/aspire.hosting.azure.servicebus/azureservicebussubscriptionresource/withproperties.md) -- `method` -- Configures properties of an Azure Service Bus subscription
    ```typescript
  withProperties(configure: (obj: AzureServiceBusSubscriptionResource) => Promise<void>): AzureServiceBusSubscriptionResource
  ```
