# EventHubsNamespaceAuthorizationRuleProxy

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

Represents the EventHubsNamespaceAuthorizationRule Azure Provisioning model.

## Definition

```typescript
interface EventHubsNamespaceAuthorizationRuleProxy {
  readonly id: BicepValueProxy;
  readonly location: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: EventHubsNamespaceProxy;
  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`: [EventHubsNamespaceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy.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/eventhubsnamespaceauthorizationruleproxy/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/eventhubsnamespaceauthorizationruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [getKeys](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceauthorizationruleproxy/getkeys.md) -- `method` -- Invokes GetKeys on the EventHubsNamespaceAuthorizationRule provisioning model.
    ```typescript
  getKeys(): EventHubsAccessKeysProxy
  ```
