# withProperties

- Module: [Aspire.Hosting.Azure.EventHubs](/reference/api/typescript/aspire.hosting.azure.eventhubs.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Allows setting the properties of an Azure Event Hub resource.

## Definition

```typescript
interface AzureEventHubResource {
  // ... omitted for brevity
  withProperties(configure: (obj: AzureEventHubResource) => Promise<void>): AzureEventHubResource
}
```

## Parameters

- `configure` (`(obj: AzureEventHubResource) => Promise<void>`)

## Returns

[AzureEventHubResource](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubresource.md) `builder`

## Applies to

- [AzureEventHubResource](/reference/api/typescript/aspire.hosting.azure.eventhubs/azureeventhubresource.md)
