# Rule

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/types/proxy_config_param/Rule)

## Signature

```python
Rule()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    name: Required[str],
    aws: RuleAws,
    azure: RuleAzure,
    description: str,
    enabled: bool,
    env_vars: Dict[str, str],
    gcp: RuleGcp,
    headers: Iterable[RuleHeader],
    match_headers: SequenceNotStr[str],
    match_hosts: SequenceNotStr[str],
    match_paths: SequenceNotStr[str],
    relay_id: str,
    rewrite: RuleRewrite,
    type: str,
)
```

| Name | Type |
|------|------|
| `name` | `Required[str]` |
| `aws` | `RuleAws` |
| `azure` | `RuleAzure` |
| `description` | `str` |
| `enabled` | `bool` |
| `env_vars` | `Dict[str, str]` |
| `gcp` | `RuleGcp` |
| `headers` | `Iterable[RuleHeader]` |
| `match_headers` | `SequenceNotStr[str]` |
| `match_hosts` | `SequenceNotStr[str]` |
| `match_paths` | `SequenceNotStr[str]` |
| `relay_id` | `str` |
| `rewrite` | `RuleRewrite` |
| `type` | `str` |


## Properties

- `name`
- `aws`
- `azure`
- `description`
- `enabled`
- `env_vars`
- `gcp`
- `headers`
- `match_headers`
- `match_hosts`
- `match_paths`
- `relay_id`
- `rewrite`
- `type`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/types/proxy_config_param.py#L295)