# KustoEventHubDataConnectionProxy

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

Represents the KustoEventHubDataConnection Azure Provisioning model.

## Definition

```typescript
interface KustoEventHubDataConnectionProxy {
  compression: BicepValueProxy | EventHubMessagesCompressionType;
  consumerGroup: BicepValueProxy | string;
  databaseRouting: BicepValueProxy | KustoDatabaseRouting;
  dataFormat: BicepValueProxy | KustoEventHubDataFormat;
  eventHubResourceId: BicepValueProxy;
  eventSystemProperties: Aspire_Hosting_Azure_Provisioning_Kusto_Generated_ListOfStringProxy;
  readonly managedIdentityObjectId: BicepValueProxy | guid;
  managedIdentityResourceId: BicepValueProxy;
  mappingRuleName: BicepValueProxy | string;
  readonly provisioningState: BicepValueProxy | KustoProvisioningState;
  retrievalStartOn: BicepValueProxy | datetimeoffset;
  tableName: BicepValueProxy | string;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearCompression(): void;
  clearConsumerGroup(): void;
  clearDatabaseRouting(): void;
  clearDataFormat(): void;
  clearEventHubResourceId(): void;
  clearManagedIdentityResourceId(): void;
  clearMappingRuleName(): void;
  clearRetrievalStartOn(): void;
  clearTableName(): void;
}
```

## Properties

- `compression`: `BicepValueProxy | EventHubMessagesCompressionType` `get - set` -- Gets or sets the Compression provisioning property.
- `consumerGroup`: `BicepValueProxy | string` `get - set` -- Gets or sets the ConsumerGroup provisioning property.
- `databaseRouting`: `BicepValueProxy | KustoDatabaseRouting` `get - set` -- Gets or sets the DatabaseRouting provisioning property.
- `dataFormat`: `BicepValueProxy | KustoEventHubDataFormat` `get - set` -- Gets or sets the DataFormat provisioning property.
- `eventHubResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the EventHubResourceId provisioning property.
- `eventSystemProperties`: [Aspire_Hosting_Azure_Provisioning_Kusto_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/aspire-hosting-azure-provisioning-kusto-generated-listofstringproxy.md) `get - set` -- Gets or sets the EventSystemProperties provisioning property.
- `managedIdentityObjectId`: `BicepValueProxy | guid` `get` -- Gets the ManagedIdentityObjectId provisioning property.
- `managedIdentityResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the ManagedIdentityResourceId provisioning property.
- `mappingRuleName`: `BicepValueProxy | string` `get - set` -- Gets or sets the MappingRuleName provisioning property.
- `provisioningState`: `BicepValueProxy | KustoProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `retrievalStartOn`: `BicepValueProxy | datetimeoffset` `get - set` -- Gets or sets the RetrievalStartOn provisioning property.
- `tableName`: `BicepValueProxy | string` `get - set` -- Gets or sets the TableName provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearCompression](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/clearcompression.md) -- `method` -- Clears the Compression provisioning property.
    ```typescript
  clearCompression(): void
  ```
- [clearConsumerGroup](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/clearconsumergroup.md) -- `method` -- Clears the ConsumerGroup provisioning property.
    ```typescript
  clearConsumerGroup(): void
  ```
- [clearDatabaseRouting](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/cleardatabaserouting.md) -- `method` -- Clears the DatabaseRouting provisioning property.
    ```typescript
  clearDatabaseRouting(): void
  ```
- [clearDataFormat](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/cleardataformat.md) -- `method` -- Clears the DataFormat provisioning property.
    ```typescript
  clearDataFormat(): void
  ```
- [clearEventHubResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/cleareventhubresourceid.md) -- `method` -- Clears the EventHubResourceId provisioning property.
    ```typescript
  clearEventHubResourceId(): void
  ```
- [clearManagedIdentityResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/clearmanagedidentityresourceid.md) -- `method` -- Clears the ManagedIdentityResourceId provisioning property.
    ```typescript
  clearManagedIdentityResourceId(): void
  ```
- [clearMappingRuleName](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/clearmappingrulename.md) -- `method` -- Clears the MappingRuleName provisioning property.
    ```typescript
  clearMappingRuleName(): void
  ```
- [clearRetrievalStartOn](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/clearretrievalstarton.md) -- `method` -- Clears the RetrievalStartOn provisioning property.
    ```typescript
  clearRetrievalStartOn(): void
  ```
- [clearTableName](/reference/api/typescript/aspire.hosting.azure.provisioning.kusto/kustoeventhubdataconnectionproxy/cleartablename.md) -- `method` -- Clears the TableName provisioning property.
    ```typescript
  clearTableName(): void
  ```
