# InboundNatRuleProxy

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

## Definition

```typescript
interface InboundNatRuleProxy {
  backendAddressPoolId: BicepValueProxy;
  readonly backendIPConfiguration: NetworkInterfaceIPConfigurationProxy;
  backendPort: BicepValueProxy | number;
  enableFloatingIP: BicepValueProxy | boolean;
  enableTcpReset: BicepValueProxy | boolean;
  readonly eTag: BicepValueProxy;
  frontendIPConfigurationId: BicepValueProxy;
  frontendPort: BicepValueProxy | number;
  frontendPortRangeEnd: BicepValueProxy | number;
  frontendPortRangeStart: BicepValueProxy | number;
  id: BicepValueProxy;
  idleTimeoutInMinutes: BicepValueProxy | number;
  name: BicepValueProxy | string;
  parent: LoadBalancerProxy;
  protocol: BicepValueProxy | LoadBalancingTransportProtocol;
  readonly provisioningState: BicepValueProxy | NetworkProvisioningState;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearBackendAddressPoolId(): void;
  clearBackendPort(): void;
  clearEnableFloatingIP(): void;
  clearEnableTcpReset(): void;
  clearFrontendIPConfigurationId(): void;
  clearFrontendPort(): void;
  clearFrontendPortRangeEnd(): void;
  clearFrontendPortRangeStart(): void;
  clearId(): void;
  clearIdleTimeoutInMinutes(): void;
  clearName(): void;
  clearProtocol(): void;
}
```

## Properties

- `backendAddressPoolId`: `BicepValueProxy` `get - set` -- Gets or sets the BackendAddressPoolId provisioning property.
- `backendIPConfiguration`: [NetworkInterfaceIPConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/networkinterfaceipconfigurationproxy.md) `get` -- Gets the BackendIPConfiguration provisioning property.
- `backendPort`: `BicepValueProxy | number` `get - set` -- Gets or sets the BackendPort provisioning property.
- `enableFloatingIP`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableFloatingIP provisioning property.
- `enableTcpReset`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the EnableTcpReset provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `frontendIPConfigurationId`: `BicepValueProxy` `get - set` -- Gets or sets the FrontendIPConfigurationId provisioning property.
- `frontendPort`: `BicepValueProxy | number` `get - set` -- Gets or sets the FrontendPort provisioning property.
- `frontendPortRangeEnd`: `BicepValueProxy | number` `get - set` -- Gets or sets the FrontendPortRangeEnd provisioning property.
- `frontendPortRangeStart`: `BicepValueProxy | number` `get - set` -- Gets or sets the FrontendPortRangeStart provisioning property.
- `id`: `BicepValueProxy` `get - set` -- Gets or sets the Id provisioning property.
- `idleTimeoutInMinutes`: `BicepValueProxy | number` `get - set` -- Gets or sets the IdleTimeoutInMinutes provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `parent`: [LoadBalancerProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.network/loadbalancerproxy.md) `get - set` -- Gets or sets the Parent provisioning property.
- `protocol`: `BicepValueProxy | LoadBalancingTransportProtocol` `get - set` -- Gets or sets the Protocol provisioning property.
- `provisioningState`: `BicepValueProxy | NetworkProvisioningState` `get` -- Gets the ProvisioningState provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearBackendAddressPoolId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearbackendaddresspoolid.md) -- `method` -- Clears the BackendAddressPoolId provisioning property.
    ```typescript
  clearBackendAddressPoolId(): void
  ```
- [clearBackendPort](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearbackendport.md) -- `method` -- Clears the BackendPort provisioning property.
    ```typescript
  clearBackendPort(): void
  ```
- [clearEnableFloatingIP](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearenablefloatingip.md) -- `method` -- Clears the EnableFloatingIP provisioning property.
    ```typescript
  clearEnableFloatingIP(): void
  ```
- [clearEnableTcpReset](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearenabletcpreset.md) -- `method` -- Clears the EnableTcpReset provisioning property.
    ```typescript
  clearEnableTcpReset(): void
  ```
- [clearFrontendIPConfigurationId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearfrontendipconfigurationid.md) -- `method` -- Clears the FrontendIPConfigurationId provisioning property.
    ```typescript
  clearFrontendIPConfigurationId(): void
  ```
- [clearFrontendPort](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearfrontendport.md) -- `method` -- Clears the FrontendPort provisioning property.
    ```typescript
  clearFrontendPort(): void
  ```
- [clearFrontendPortRangeEnd](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearfrontendportrangeend.md) -- `method` -- Clears the FrontendPortRangeEnd provisioning property.
    ```typescript
  clearFrontendPortRangeEnd(): void
  ```
- [clearFrontendPortRangeStart](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearfrontendportrangestart.md) -- `method` -- Clears the FrontendPortRangeStart provisioning property.
    ```typescript
  clearFrontendPortRangeStart(): void
  ```
- [clearId](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearid.md) -- `method` -- Clears the Id provisioning property.
    ```typescript
  clearId(): void
  ```
- [clearIdleTimeoutInMinutes](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearidletimeoutinminutes.md) -- `method` -- Clears the IdleTimeoutInMinutes provisioning property.
    ```typescript
  clearIdleTimeoutInMinutes(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearProtocol](/reference/api/typescript/aspire.hosting.azure.provisioning.network/inboundnatruleproxy/clearprotocol.md) -- `method` -- Clears the Protocol provisioning property.
    ```typescript
  clearProtocol(): void
  ```
