# EventHubsNamespaceProxy

- 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 EventHubsNamespace Azure Provisioning model.

## Definition

```typescript
interface EventHubsNamespaceProxy {
  alternateName: BicepValueProxy | string;
  clusterArmId: BicepValueProxy;
  readonly createdOn: BicepValueProxy | datetimeoffset;
  disableLocalAuth: BicepValueProxy | boolean;
  encryption: EventHubsEncryptionProxy;
  geoDataReplication: NamespaceGeoDataReplicationPropertiesProxy;
  readonly id: BicepValueProxy;
  identity: EventHubsManagedServiceIdentityProxy;
  isAutoInflateEnabled: BicepValueProxy | boolean;
  kafkaEnabled: BicepValueProxy | boolean;
  location: BicepValueProxy;
  maximumThroughputUnits: BicepValueProxy | number;
  readonly metricId: BicepValueProxy | string;
  minimumTlsVersion: BicepValueProxy | EventHubsTlsVersion;
  name: BicepValueProxy | string;
  privateEndpointConnections: Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsPrivateEndpointConnectionDataProxy;
  readonly provisioningState: BicepValueProxy | string;
  publicNetworkAccess: BicepValueProxy | EventHubsPublicNetworkAccess;
  readonly serviceBusEndpoint: BicepValueProxy | string;
  sku: EventHubsSkuProxy;
  readonly status: BicepValueProxy | string;
  readonly systemData: EventHubsSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_DictionaryOfStringProxy;
  readonly updatedOn: BicepValueProxy | datetimeoffset;
  zoneRedundant: BicepValueProxy | boolean;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAlternateName(): void;
  clearClusterArmId(): void;
  clearDisableLocalAuth(): void;
  clearIsAutoInflateEnabled(): void;
  clearKafkaEnabled(): void;
  clearLocation(): void;
  clearMaximumThroughputUnits(): void;
  clearMinimumTlsVersion(): void;
  clearName(): void;
  clearPublicNetworkAccess(): void;
  clearZoneRedundant(): void;
  createRoleAssignment(
      role: EventHubsBuiltInRoleProxy,
      principalType: BicepValueProxy | RoleManagementPrincipalType,
      principalId: BicepValueProxy | guid,
      bicepIdentifierSuffix: string): EventHubsRoleAssignmentProxy;
}
```

## Properties

- `alternateName`: `BicepValueProxy | string` `get - set` -- Gets or sets the AlternateName provisioning property.
- `clusterArmId`: `BicepValueProxy` `get - set` -- Gets or sets the ClusterArmId provisioning property.
- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `disableLocalAuth`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the DisableLocalAuth provisioning property.
- `encryption`: [EventHubsEncryptionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsencryptionproxy.md) `get - set` -- Gets or sets the Encryption provisioning property.
- `geoDataReplication`: [NamespaceGeoDataReplicationPropertiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/namespacegeodatareplicationpropertiesproxy.md) `get - set` -- Gets or sets the GeoDataReplication provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [EventHubsManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `isAutoInflateEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAutoInflateEnabled provisioning property.
- `kafkaEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the KafkaEnabled provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `maximumThroughputUnits`: `BicepValueProxy | number` `get - set` -- Gets or sets the MaximumThroughputUnits provisioning property.
- `metricId`: `BicepValueProxy | string` `get` -- Gets the MetricId provisioning property.
- `minimumTlsVersion`: `BicepValueProxy | EventHubsTlsVersion` `get - set` -- Gets or sets the MinimumTlsVersion provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `privateEndpointConnections`: [Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsPrivateEndpointConnectionDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/aspire-hosting-azure-provisioning-eventhubs-generated-listofeventhubsprivateendpointconnectiondataproxy.md) `get - set` -- Gets or sets the PrivateEndpointConnections provisioning property.
- `provisioningState`: `BicepValueProxy | string` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | EventHubsPublicNetworkAccess` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `serviceBusEndpoint`: `BicepValueProxy | string` `get` -- Gets the ServiceBusEndpoint provisioning property.
- `sku`: [EventHubsSkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `status`: `BicepValueProxy | string` `get` -- Gets the Status provisioning property.
- `systemData`: [EventHubsSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/aspire-hosting-azure-provisioning-eventhubs-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `updatedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the UpdatedOn provisioning property.
- `zoneRedundant`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the ZoneRedundant provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAlternateName](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearalternatename.md) -- `method` -- Clears the AlternateName provisioning property.
    ```typescript
  clearAlternateName(): void
  ```
- [clearClusterArmId](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearclusterarmid.md) -- `method` -- Clears the ClusterArmId provisioning property.
    ```typescript
  clearClusterArmId(): void
  ```
- [clearDisableLocalAuth](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/cleardisablelocalauth.md) -- `method` -- Clears the DisableLocalAuth provisioning property.
    ```typescript
  clearDisableLocalAuth(): void
  ```
- [clearIsAutoInflateEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearisautoinflateenabled.md) -- `method` -- Clears the IsAutoInflateEnabled provisioning property.
    ```typescript
  clearIsAutoInflateEnabled(): void
  ```
- [clearKafkaEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearkafkaenabled.md) -- `method` -- Clears the KafkaEnabled provisioning property.
    ```typescript
  clearKafkaEnabled(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearMaximumThroughputUnits](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearmaximumthroughputunits.md) -- `method` -- Clears the MaximumThroughputUnits provisioning property.
    ```typescript
  clearMaximumThroughputUnits(): void
  ```
- [clearMinimumTlsVersion](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearminimumtlsversion.md) -- `method` -- Clears the MinimumTlsVersion provisioning property.
    ```typescript
  clearMinimumTlsVersion(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [clearZoneRedundant](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/clearzoneredundant.md) -- `method` -- Clears the ZoneRedundant provisioning property.
    ```typescript
  clearZoneRedundant(): void
  ```
- [createRoleAssignment](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnamespaceproxy/createroleassignment.md) -- `method` -- Invokes CreateRoleAssignment on the EventHubsNamespace provisioning model.
    ```typescript
  createRoleAssignment(role: EventHubsBuiltInRoleProxy, principalType: BicepValueProxy | RoleManagementPrincipalType, principalId: BicepValueProxy | guid, bicepIdentifierSuffix: string): EventHubsRoleAssignmentProxy
  ```
