# ServiceBusQueueProxy

- Module: [Aspire.Hosting.Azure.Provisioning.ServiceBus](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the ServiceBusQueue Azure Provisioning model.

## Definition

```typescript
interface ServiceBusQueueProxy {
  readonly accessedOn: BicepValueProxy | datetimeoffset;
  autoDeleteOnIdle: BicepValueProxy | timespan;
  readonly countDetails: MessageCountDetailsProxy;
  readonly createdOn: BicepValueProxy | datetimeoffset;
  deadLetteringOnMessageExpiration: BicepValueProxy | boolean;
  defaultMessageTimeToLive: BicepValueProxy | timespan;
  duplicateDetectionHistoryTimeWindow: BicepValueProxy | timespan;
  enableBatchedOperations: BicepValueProxy | boolean;
  enableExpress: BicepValueProxy | boolean;
  enablePartitioning: BicepValueProxy | boolean;
  forwardDeadLetteredMessagesTo: BicepValueProxy | string;
  forwardTo: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  readonly location: BicepValueProxy;
  lockDuration: BicepValueProxy | timespan;
  maxDeliveryCount: BicepValueProxy | number;
  maxMessageSizeInKilobytes: BicepValueProxy | number;
  maxSizeInMegabytes: BicepValueProxy | number;
  readonly messageCount: BicepValueProxy | number;
  name: BicepValueProxy | string;
  parent: ServiceBusNamespaceProxy;
  requiresDuplicateDetection: BicepValueProxy | boolean;
  requiresSession: BicepValueProxy | boolean;
  readonly sizeInBytes: BicepValueProxy | number;
  status: BicepValueProxy | ServiceBusMessagingEntityStatus;
  readonly systemData: ServiceBusSystemDataProxy;
  readonly updatedOn: BicepValueProxy | datetimeoffset;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAutoDeleteOnIdle(): void;
  clearDeadLetteringOnMessageExpiration(): void;
  clearDefaultMessageTimeToLive(): void;
  clearDuplicateDetectionHistoryTimeWindow(): void;
  clearEnableBatchedOperations(): void;
  clearEnableExpress(): void;
  clearEnablePartitioning(): void;
  clearForwardDeadLetteredMessagesTo(): void;
  clearForwardTo(): void;
  clearLockDuration(): void;
  clearMaxDeliveryCount(): void;
  clearMaxMessageSizeInKilobytes(): void;
  clearMaxSizeInMegabytes(): void;
  clearName(): void;
  clearRequiresDuplicateDetection(): void;
  clearRequiresSession(): void;
  clearStatus(): void;
}
```

## Properties

- `accessedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the AccessedOn provisioning property.
- `autoDeleteOnIdle`: `BicepValueProxy | timespan` `get - set` -- Gets or sets the AutoDeleteOnIdle provisioning property.
- `countDetails`: [MessageCountDetailsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/messagecountdetailsproxy.md) `get` -- Gets the CountDetails provisioning property.
- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `deadLetteringOnMessageExpiration`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the DeadLetteringOnMessageExpiration provisioning property.
- `defaultMessageTimeToLive`: `BicepValueProxy | timespan` `get - set` -- Gets or sets the DefaultMessageTimeToLive provisioning property.
- `duplicateDetectionHistoryTimeWindow`: `BicepValueProxy | timespan` `get - set` -- Gets or sets the DuplicateDetectionHistoryTimeWindow provisioning property.
- `enableBatchedOperations`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableBatchedOperations provisioning property.
- `enableExpress`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableExpress provisioning property.
- `enablePartitioning`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnablePartitioning provisioning property.
- `forwardDeadLetteredMessagesTo`: `BicepValueProxy | string` `get - set` -- Gets or sets the ForwardDeadLetteredMessagesTo provisioning property.
- `forwardTo`: `BicepValueProxy | string` `get - set` -- Gets or sets the ForwardTo provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `lockDuration`: `BicepValueProxy | timespan` `get - set` -- Gets or sets the LockDuration provisioning property.
- `maxDeliveryCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the MaxDeliveryCount provisioning property.
- `maxMessageSizeInKilobytes`: `BicepValueProxy | number` `get - set` -- Gets or sets the MaxMessageSizeInKilobytes provisioning property.
- `maxSizeInMegabytes`: `BicepValueProxy | number` `get - set` -- Gets or sets the MaxSizeInMegabytes provisioning property.
- `messageCount`: `BicepValueProxy | number` `get` -- Gets the MessageCount provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [ServiceBusNamespaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusnamespaceproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `requiresDuplicateDetection`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the RequiresDuplicateDetection provisioning property.
- `requiresSession`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the RequiresSession provisioning property.
- `sizeInBytes`: `BicepValueProxy | number` `get` -- Gets the SizeInBytes provisioning property.
- `status`: `BicepValueProxy | ServiceBusMessagingEntityStatus` `get - set` -- Gets or sets the Status provisioning property.
- `systemData`: [ServiceBusSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebussystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `updatedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the UpdatedOn provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAutoDeleteOnIdle](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearautodeleteonidle.md) -- `method` -- Clears the AutoDeleteOnIdle provisioning property.
    ```typescript
  clearAutoDeleteOnIdle(): void
  ```
- [clearDeadLetteringOnMessageExpiration](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/cleardeadletteringonmessageexpiration.md) -- `method` -- Clears the DeadLetteringOnMessageExpiration provisioning property.
    ```typescript
  clearDeadLetteringOnMessageExpiration(): void
  ```
- [clearDefaultMessageTimeToLive](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/cleardefaultmessagetimetolive.md) -- `method` -- Clears the DefaultMessageTimeToLive provisioning property.
    ```typescript
  clearDefaultMessageTimeToLive(): void
  ```
- [clearDuplicateDetectionHistoryTimeWindow](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearduplicatedetectionhistorytimewindow.md) -- `method` -- Clears the DuplicateDetectionHistoryTimeWindow provisioning property.
    ```typescript
  clearDuplicateDetectionHistoryTimeWindow(): void
  ```
- [clearEnableBatchedOperations](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearenablebatchedoperations.md) -- `method` -- Clears the EnableBatchedOperations provisioning property.
    ```typescript
  clearEnableBatchedOperations(): void
  ```
- [clearEnableExpress](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearenableexpress.md) -- `method` -- Clears the EnableExpress provisioning property.
    ```typescript
  clearEnableExpress(): void
  ```
- [clearEnablePartitioning](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearenablepartitioning.md) -- `method` -- Clears the EnablePartitioning provisioning property.
    ```typescript
  clearEnablePartitioning(): void
  ```
- [clearForwardDeadLetteredMessagesTo](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearforwarddeadletteredmessagesto.md) -- `method` -- Clears the ForwardDeadLetteredMessagesTo provisioning property.
    ```typescript
  clearForwardDeadLetteredMessagesTo(): void
  ```
- [clearForwardTo](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearforwardto.md) -- `method` -- Clears the ForwardTo provisioning property.
    ```typescript
  clearForwardTo(): void
  ```
- [clearLockDuration](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearlockduration.md) -- `method` -- Clears the LockDuration provisioning property.
    ```typescript
  clearLockDuration(): void
  ```
- [clearMaxDeliveryCount](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearmaxdeliverycount.md) -- `method` -- Clears the MaxDeliveryCount provisioning property.
    ```typescript
  clearMaxDeliveryCount(): void
  ```
- [clearMaxMessageSizeInKilobytes](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearmaxmessagesizeinkilobytes.md) -- `method` -- Clears the MaxMessageSizeInKilobytes provisioning property.
    ```typescript
  clearMaxMessageSizeInKilobytes(): void
  ```
- [clearMaxSizeInMegabytes](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearmaxsizeinmegabytes.md) -- `method` -- Clears the MaxSizeInMegabytes provisioning property.
    ```typescript
  clearMaxSizeInMegabytes(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearRequiresDuplicateDetection](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearrequiresduplicatedetection.md) -- `method` -- Clears the RequiresDuplicateDetection provisioning property.
    ```typescript
  clearRequiresDuplicateDetection(): void
  ```
- [clearRequiresSession](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearrequiressession.md) -- `method` -- Clears the RequiresSession provisioning property.
    ```typescript
  clearRequiresSession(): void
  ```
- [clearStatus](/reference/api/typescript/aspire.hosting.azure.provisioning.servicebus/servicebusqueueproxy/clearstatus.md) -- `method` -- Clears the Status provisioning property.
    ```typescript
  clearStatus(): void
  ```
