# EventHubsNetworkRuleSetProxy

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

## Definition

```typescript
interface EventHubsNetworkRuleSetProxy {
  defaultAction: BicepValueProxy | EventHubsNetworkRuleSetDefaultAction;
  readonly id: BicepValueProxy;
  iPRules: Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsNetworkRuleSetIPRulesProxy;
  readonly location: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: EventHubsNamespaceProxy;
  publicNetworkAccess: BicepValueProxy | EventHubsPublicNetworkAccessFlag;
  readonly systemData: EventHubsSystemDataProxy;
  trustedServiceAccessEnabled: BicepValueProxy | boolean;
  virtualNetworkRules: Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsNetworkRuleSetVirtualNetworkRulesProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDefaultAction(): void;
  clearPublicNetworkAccess(): void;
  clearTrustedServiceAccessEnabled(): void;
}
```

## Properties

- `defaultAction`: `BicepValueProxy | EventHubsNetworkRuleSetDefaultAction` `get - set` -- Gets or sets the DefaultAction provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `iPRules`: [Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsNetworkRuleSetIPRulesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/aspire-hosting-azure-provisioning-eventhubs-generated-listofeventhubsnetworkrulesetiprulesproxy.md) `get - set` -- Gets or sets the IPRules provisioning property.
- `location`: `BicepValueProxy` `get` -- Gets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get` -- Gets 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.
- `publicNetworkAccess`: `BicepValueProxy | EventHubsPublicNetworkAccessFlag` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `systemData`: [EventHubsSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `trustedServiceAccessEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the TrustedServiceAccessEnabled provisioning property.
- `virtualNetworkRules`: [Aspire_Hosting_Azure_Provisioning_EventHubs_Generated_ListOfEventHubsNetworkRuleSetVirtualNetworkRulesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/aspire-hosting-azure-provisioning-eventhubs-generated-listofeventhubsnetworkrulesetvirtualnetworkrulesproxy.md) `get - set` -- Gets or sets the VirtualNetworkRules provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnetworkrulesetproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDefaultAction](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnetworkrulesetproxy/cleardefaultaction.md) -- `method` -- Clears the DefaultAction provisioning property.
    ```typescript
  clearDefaultAction(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnetworkrulesetproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [clearTrustedServiceAccessEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsnetworkrulesetproxy/cleartrustedserviceaccessenabled.md) -- `method` -- Clears the TrustedServiceAccessEnabled provisioning property.
    ```typescript
  clearTrustedServiceAccessEnabled(): void
  ```
