# VpnGatewayNatRuleProxy

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

## Definition

```typescript
interface VpnGatewayNatRuleProxy {
  readonly egressVpnSiteLinkConnections: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy;
  readonly eTag: BicepValueProxy;
  externalMappings: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnNatRuleMappingProxy;
  readonly id: BicepValueProxy;
  readonly ingressVpnSiteLinkConnections: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy;
  internalMappings: Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnNatRuleMappingProxy;
  iPConfigurationId: BicepValueProxy | string;
  mode: BicepValueProxy | VpnNatRuleMode;
  name: BicepValueProxy | string;
  parent: VpnGatewayProxy;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  vpnNatRuleType: BicepValueProxy | VpnNatRuleType;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIPConfigurationId(): void;
  clearMode(): void;
  clearName(): void;
  clearVpnNatRuleType(): void;
}
```

## Properties

- `egressVpnSiteLinkConnections`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofwritablesubresourceproxy.md) `get` -- Gets the EgressVpnSiteLinkConnections provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `externalMappings`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnNatRuleMappingProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvpnnatrulemappingproxy.md) `get - set` -- Gets or sets the ExternalMappings provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `ingressVpnSiteLinkConnections`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfWritableSubResourceProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofwritablesubresourceproxy.md) `get` -- Gets the IngressVpnSiteLinkConnections provisioning property.
- `internalMappings`: [Aspire_Hosting_Azure_Provisioning_Network_Generated_ListOfVpnNatRuleMappingProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/aspire-hosting-azure-provisioning-network-generated-listofvpnnatrulemappingproxy.md) `get - set` -- Gets or sets the InternalMappings provisioning property.
- `iPConfigurationId`: `BicepValueProxy | string` `get - set` -- Gets or sets the IPConfigurationId provisioning property.
- `mode`: `BicepValueProxy | VpnNatRuleMode` `get - set` -- Gets or sets the Mode provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [VpnGatewayProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewayproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `vpnNatRuleType`: `BicepValueProxy | VpnNatRuleType` `get - set` -- Gets or sets the VpnNatRuleType provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewaynatruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIPConfigurationId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewaynatruleproxy/clearipconfigurationid.md) -- `method` -- Clears the IPConfigurationId provisioning property.
    ```typescript
  clearIPConfigurationId(): void
  ```
- [clearMode](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewaynatruleproxy/clearmode.md) -- `method` -- Clears the Mode provisioning property.
    ```typescript
  clearMode(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewaynatruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearVpnNatRuleType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/vpngatewaynatruleproxy/clearvpnnatruletype.md) -- `method` -- Clears the VpnNatRuleType provisioning property.
    ```typescript
  clearVpnNatRuleType(): void
  ```
