# NamespaceNetworkPolicyRule

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

## Definition

```typescript
enum NamespaceNetworkPolicyRule {
  DenyAll = 0,
  AllowAll = 1,
  AllowSameNamespace = 2,
}
```

## Values

- `DenyAll` = `0`
- `AllowAll` = `1`
- `AllowSameNamespace` = `2`
