# VpnGatewayProxy

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

Represents the VpnGateway Azure Provisioning model.

## Definition

```typescript
interface VpnGatewayProxy {
  bgpSettings: BgpSettingsProxy;
  connections: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnConnectionProxy;
  enableBgpRouteTranslationForNat: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  readonly id: BicepValueProxy;
  readonly iPConfigurations: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnGatewayIPConfigurationProxy;
  isRoutingPreferenceInternet: BicepValueProxy | boolean;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  natRules: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnGatewayNatRuleProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  tags: Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy;
  virtualHubId: BicepValueProxy;
  vpnGatewayScaleUnit: BicepValueProxy | number;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearEnableBgpRouteTranslationForNat(): void;
  clearIsRoutingPreferenceInternet(): void;
  clearLocation(): void;
  clearName(): void;
  clearVirtualHubId(): void;
  clearVpnGatewayScaleUnit(): void;
}
```

## Properties

- `bgpSettings`: [BgpSettingsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/bgpsettingsproxy.md) `get - set` -- Gets or sets the BgpSettings provisioning property.
- `connections`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnConnectionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvpnconnectionproxy.md) `get - set` -- Gets or sets the Connections provisioning property.
- `enableBgpRouteTranslationForNat`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableBgpRouteTranslationForNat provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `iPConfigurations`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnGatewayIPConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvpngatewayipconfigurationproxy.md) `get` -- Gets the IPConfigurations provisioning property.
- `isRoutingPreferenceInternet`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsRoutingPreferenceInternet provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `natRules`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnGatewayNatRuleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvpngatewaynatruleproxy.md) `get - set` -- Gets or sets the NatRules provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `virtualHubId`: `BicepValueProxy` `get - set` -- Gets or sets the VirtualHubId provisioning property.
- `vpnGatewayScaleUnit`: `BicepValueProxy | number` `get - set` -- Gets or sets the VpnGatewayScaleUnit provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearEnableBgpRouteTranslationForNat](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/clearenablebgproutetranslationfornat.md) -- `method` -- Clears the EnableBgpRouteTranslationForNat provisioning property.
    ```typescript
  clearEnableBgpRouteTranslationForNat(): void
  ```
- [clearIsRoutingPreferenceInternet](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/clearisroutingpreferenceinternet.md) -- `method` -- Clears the IsRoutingPreferenceInternet provisioning property.
    ```typescript
  clearIsRoutingPreferenceInternet(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearVirtualHubId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/clearvirtualhubid.md) -- `method` -- Clears the VirtualHubId provisioning property.
    ```typescript
  clearVirtualHubId(): void
  ```
- [clearVpnGatewayScaleUnit](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy/clearvpngatewayscaleunit.md) -- `method` -- Clears the VpnGatewayScaleUnit provisioning property.
    ```typescript
  clearVpnGatewayScaleUnit(): void
  ```
