# BgpConnectionProxy

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

## Definition

```typescript
interface BgpConnectionProxy {
  readonly connectionState: BicepValueProxy | HubBgpConnectionStatus;
  readonly eTag: BicepValueProxy;
  hubVirtualNetworkConnectionId: BicepValueProxy;
  readonly id: BicepValueProxy;
  name: BicepValueProxy | string;
  parent: VirtualHubProxy;
  peerAsn: BicepValueProxy | number;
  peerIP: BicepValueProxy | string;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearHubVirtualNetworkConnectionId(): void;
  clearName(): void;
  clearPeerAsn(): void;
  clearPeerIP(): void;
}
```

## Properties

- `connectionState`: `BicepValueProxy | HubBgpConnectionStatus` `get` -- Gets the ConnectionState provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `hubVirtualNetworkConnectionId`: `BicepValueProxy` `get - set` -- Gets or sets the HubVirtualNetworkConnectionId provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [VirtualHubProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/virtualhubproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `peerAsn`: `BicepValueProxy | number` `get - set` -- Gets or sets the PeerAsn provisioning property.
- `peerIP`: `BicepValueProxy | string` `get - set` -- Gets or sets the PeerIP provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpconnectionproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearHubVirtualNetworkConnectionId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpconnectionproxy/clearhubvirtualnetworkconnectionid.md) -- `method` -- Clears the HubVirtualNetworkConnectionId provisioning property.
    ```typescript
  clearHubVirtualNetworkConnectionId(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpconnectionproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPeerAsn](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpconnectionproxy/clearpeerasn.md) -- `method` -- Clears the PeerAsn provisioning property.
    ```typescript
  clearPeerAsn(): void
  ```
- [clearPeerIP](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpconnectionproxy/clearpeerip.md) -- `method` -- Clears the PeerIP provisioning property.
    ```typescript
  clearPeerIP(): void
  ```
