# EventHubAuthorizationRuleProxy

- Module: [Aspire.Hosting.Azure.Provisioning.EventHubs](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the EventHubAuthorizationRule Azure Provisioning model.

## Definition

```typescript
interface EventHubAuthorizationRuleProxy {
  readonly id: BicepValueProxy;
  readonly location: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: EventHubProxy;
  rights: Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsAccessRightProxy;
  readonly systemData: EventHubsSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearName(): void;
  getKeys(): EventHubsAccessKeysProxy;
}
```

## Properties

- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [EventHubProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `rights`: [Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsAccessRightProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/aspire-hosting-azure-provisioning-eventhubs-generated-listofeventhubsaccessrightproxy.md) `get - set` -- Gets or sets the Rights provisioning property.
- `systemData`: [EventHubsSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubauthorizationruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubauthorizationruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [getKeys](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubauthorizationruleproxy/getkeys.md) -- `method` -- Invokes GetKeys on the EventHubAuthorizationRule provisioning model.
    ```typescript
  getKeys(): EventHubsAccessKeysProxy
  ```
