# RouteResourceProxy

- Module: [Aspire.Hosting.Azure.Provisioning.Network](/reference/api/typescript/aspire.hosting.azure.provisioning.network.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the RouteResource Azure Provisioning model.

## Definition

```typescript
interface RouteResourceProxy {
  addressPrefix: BicepValueProxy | string;
  readonly eTag: BicepValueProxy;
  hasBgpOverride: BicepValueProxy | boolean;
  id: BicepValueProxy;
  name: BicepValueProxy | string;
  nextHopIPAddress: BicepValueProxy | string;
  nextHopType: BicepValueProxy | RouteNextHopType;
  parent: RouteTableProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearAddressPrefix(): void;
  clearHasBgpOverride(): void;
  clearId(): void;
  clearName(): void;
  clearNextHopIPAddress(): void;
  clearNextHopType(): void;
}
```

## Properties

- `addressPrefix`: `BicepValueProxy | string` `get - set` -- Gets or sets the AddressPrefix provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `hasBgpOverride`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the HasBgpOverride provisioning property.
- `id`: `BicepValueProxy` `get - set` -- Gets or sets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `nextHopIPAddress`: `BicepValueProxy | string` `get - set` -- Gets or sets the NextHopIPAddress provisioning property.
- `nextHopType`: `BicepValueProxy | RouteNextHopType` `get - set` -- Gets or sets the NextHopType provisioning property.
- `parent`: [RouteTableProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routetableproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearAddressPrefix](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/clearaddressprefix.md) -- `method` -- Clears the AddressPrefix provisioning property.
    ```typescript
  clearAddressPrefix(): void
  ```
- [clearHasBgpOverride](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/clearhasbgpoverride.md) -- `method` -- Clears the HasBgpOverride provisioning property.
    ```typescript
  clearHasBgpOverride(): void
  ```
- [clearId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/clearid.md) -- `method` -- Clears the Id provisioning property.
    ```typescript
  clearId(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearNextHopIPAddress](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/clearnexthopipaddress.md) -- `method` -- Clears the NextHopIPAddress provisioning property.
    ```typescript
  clearNextHopIPAddress(): void
  ```
- [clearNextHopType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/routeresourceproxy/clearnexthoptype.md) -- `method` -- Clears the NextHopType provisioning property.
    ```typescript
  clearNextHopType(): void
  ```
