# EventHubsDisasterRecoveryProxy

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

## Definition

```typescript
interface EventHubsDisasterRecoveryProxy {
  alternateName: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  readonly location: BicepValueProxy;
  readonly name: BicepValueProxy | string;
  parent: EventHubsNamespaceProxy;
  partnerNamespace: BicepValueProxy | string;
  readonly pendingReplicationOperationsCount: BicepValueProxy | number;
  readonly provisioningState: BicepValueProxy | EventHubsDisasterRecoveryProvisioningState;
  readonly role: BicepValueProxy | EventHubsDisasterRecoveryRole;
  readonly systemData: EventHubsSystemDataProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAlternateName(): void;
  clearPartnerNamespace(): void;
}
```

## Properties

- `alternateName`: `BicepValueProxy | string` `get - set` -- Gets or sets the AlternateName provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id 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.
- `partnerNamespace`: `BicepValueProxy | string` `get - set` -- Gets or sets the PartnerNamespace provisioning property.
- `pendingReplicationOperationsCount`: `BicepValueProxy | number` `get` -- Gets the PendingReplicationOperationsCount provisioning property.
- `provisioningState`: `BicepValueProxy | EventHubsDisasterRecoveryProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `role`: `BicepValueProxy | EventHubsDisasterRecoveryRole` `get` -- Gets the Role 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/eventhubsdisasterrecoveryproxy/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/eventhubsdisasterrecoveryproxy/clearalternatename.md) -- `method` -- Clears the AlternateName provisioning property.
    ```typescript
  clearAlternateName(): void
  ```
- [clearPartnerNamespace](/reference/api/typescript/aspire.hosting.azure.provisioning.eventhubs/eventhubsdisasterrecoveryproxy/clearpartnernamespace.md) -- `method` -- Clears the PartnerNamespace provisioning property.
    ```typescript
  clearPartnerNamespace(): void
  ```
