# AzureServiceBusQueueResource

- 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 AzureServiceBusQueueResource
  extends IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    AzureServiceBusResource]],
    IValueProvider,
    IValueWithReferences,
    IResourceWithAzureFunctionsConfig {
  deadLetteringOnMessageExpiration: boolean;
  defaultMessageTimeToLive: timespan;
  duplicateDetectionHistoryTimeWindow: timespan;
  forwardDeadLetteredMessagesTo: string;
  forwardTo: string;
  lockDuration: timespan;
  maxDeliveryCount: number;
  readonly name: string;
  queueName: string;
  requiresDuplicateDetection: boolean;
  requiresSession: boolean;
  withProperties(configure: (obj: AzureServiceBusQueueResource) => Promise<void>): AzureServiceBusQueueResource;
}
```

## Properties

- `deadLetteringOnMessageExpiration`: `boolean` `get - set` -- Gets the DeadLetteringOnMessageExpiration property
- `defaultMessageTimeToLive`: `timespan` `get - set` -- Gets the DefaultMessageTimeToLive property
- `duplicateDetectionHistoryTimeWindow`: `timespan` `get - set` -- Gets the DuplicateDetectionHistoryTimeWindow 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
- `queueName`: `string` `get - set` -- Gets the QueueName property
- `requiresDuplicateDetection`: `boolean` `get - set` -- Gets the RequiresDuplicateDetection property
- `requiresSession`: `boolean` `get - set` -- Gets the RequiresSession property

## Methods

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