# EventHubsEncryptionProxy

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

## Definition

```typescript
interface EventHubsEncryptionProxy {
  keySource: BicepValueProxy | EventHubsKeySource;
  keyVaultProperties: Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsKeyVaultPropertiesProxy;
  requireInfrastructureEncryption: BicepValueProxy | boolean;
  clearKeySource(): void;
  clearRequireInfrastructureEncryption(): void;
}
```

## Properties

- `keySource`: `BicepValueProxy | EventHubsKeySource` `get - set` -- Gets or sets the KeySource provisioning property.
- `keyVaultProperties`: [Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsKeyVaultPropertiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/aspire-hosting-azure-provisioning-eventhubs-generated-listofeventhubskeyvaultpropertiesproxy.md) `get - set` -- Gets or sets the KeyVaultProperties provisioning property.
- `requireInfrastructureEncryption`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the RequireInfrastructureEncryption provisioning property.

## Methods

- [clearKeySource](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsencryptionproxy/clearkeysource.md) -- `method` -- Clears the KeySource provisioning property.
    ```typescript
  clearKeySource(): void
  ```
- [clearRequireInfrastructureEncryption](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsencryptionproxy/clearrequireinfrastructureencryption.md) -- `method` -- Clears the RequireInfrastructureEncryption provisioning property.
    ```typescript
  clearRequireInfrastructureEncryption(): void
  ```
