# TrafficDetectionRuleProxy

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

## Definition

```typescript
interface TrafficDetectionRuleProxy {
  packetsPerSecond: BicepValueProxy | number;
  trafficType: BicepValueProxy | DdosTrafficType;
  clearPacketsPerSecond(): void;
  clearTrafficType(): void;
}
```

## Properties

- `packetsPerSecond`: `BicepValueProxy | number` `get - set` -- Gets or sets the PacketsPerSecond provisioning property.
- `trafficType`: `BicepValueProxy | DdosTrafficType` `get - set` -- Gets or sets the TrafficType provisioning property.

## Methods

- [clearPacketsPerSecond](/reference/api/typescript/aspire.hosting.azure.provisioning.network/trafficdetectionruleproxy/clearpacketspersecond.md) -- `method` -- Clears the PacketsPerSecond provisioning property.
    ```typescript
  clearPacketsPerSecond(): void
  ```
- [clearTrafficType](/reference/api/typescript/aspire.hosting.azure.provisioning.network/trafficdetectionruleproxy/cleartraffictype.md) -- `method` -- Clears the TrafficType provisioning property.
    ```typescript
  clearTrafficType(): void
  ```
